/* Breakout rooms (public/breakouts.js). The lobby's directory board: under the section bar, a strip of the letterboard's
   felt lists the rooms in board letters, Everyone first. The room you're in is lit (letter-white, felt letters); a
   breakout's sign carries the Mii heads of who's in it; new messages elsewhere get a small periwinkle square. "+ Room"
   sits at the end in a dashed outline, an empty slot on the board. */
.chat > .rooms { flex: none; display: flex; align-items: center; height: 42px; min-width: 0;
  background-color: var(--felt); background-image: repeating-linear-gradient(to bottom, transparent 0 7px, var(--felt-groove) 7px 9px);
  user-select: none; -webkit-user-select: none; }
.chat > .rooms:empty { display: none; }
.rooms-list { flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; gap: 4px; padding: 0 6px; overflow-x: auto;
  scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(to right, #000 calc(100% - 14px), transparent); -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 14px), transparent); }
.rooms-list::-webkit-scrollbar { display: none; }
.room-sign { flex: none; position: relative; display: inline-flex; align-items: center; gap: 7px; height: 30px; max-width: 200px; margin: 0;
  padding: 0 11px; border: 0; border-radius: 3px; background: none; color: var(--letter);
  font: 600 17px/1 var(--board); letter-spacing: .12em; text-transform: uppercase; text-shadow: 0 1px 0 #000a;
  cursor: pointer; -webkit-tap-highlight-color: transparent; }
.room-sign .room-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-top: 1px; }
.room-sign:not(.on) { opacity: .78; }
.room-sign:active { opacity: .6; }
.room-sign.on { background: var(--letter); color: var(--felt); text-shadow: none; opacity: 1; }
.room-sign:focus-visible, .room-new:focus-visible { outline-offset: 1px; }
.room-sign.new { opacity: 1; }
.room-sign.new::after { content: ""; flex: none; width: 7px; height: 7px; background: #7c8cff; }
.room-more { display: grid; place-items: center; width: 16px; height: 16px; margin-right: -3px; opacity: .55; font-style: normal; }
.room-more svg { width: 16px; height: 16px; }
.bo-heads { flex: none; display: inline-flex; }
.bo-heads .bo-face { width: 24px; height: 24px; margin-left: -8px; }
.bo-heads .bo-face:first-child { margin-left: -3px; }
.bo-face { display: block; }
.bo-face .mface { display: block; width: 100%; height: 100%; }
.bo-face .mface img, .bo-face .mface svg { display: block; width: 100%; height: 100%; }
.room-new { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 30px; margin: 0 8px 0 2px; padding: 0 11px 0 8px;
  border: 1.5px dashed rgb(245 245 242 / .5); border-radius: 3px; background: none; color: var(--letter);
  font: 600 16px/1 var(--board); letter-spacing: .12em; text-transform: uppercase; text-shadow: 0 1px 0 #000a; cursor: pointer; }
.room-new svg { width: 15px; height: 15px; }
.room-new span { padding-top: 1px; }
.room-new:active { background: rgb(245 245 242 / .12); }

/* the start of a breakout: its name on a small felt plate, and who can see it, straight on the fjords */
.bo-intro { display: grid; justify-items: center; gap: 8px; max-width: 36ch; margin: 14px auto 4px; }
.bo-intro b { display: inline-block; max-width: 100%; padding: 6px 12px 5px; border-radius: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background-color: var(--felt); background-image: repeating-linear-gradient(to bottom, transparent 0 7px, var(--felt-groove) 7px 9px);
  color: var(--letter); font: 600 21px/1 var(--board); letter-spacing: .14em; text-transform: uppercase; text-shadow: 0 1px 0 #000a; }
.bo-intro span { font-size: 14.5px; line-height: 1.4; }

/* the sheets: people to pick are their Mii heads on paper disks; a pick gets the periwinkle ring and an indigo tick */
.bo-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px 4px; }
.bo-p { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; margin: 0; padding: 2px 0; border: 0; background: none;
  color: var(--c, var(--ink)); font: 700 13.5px/1.2 var(--font); -webkit-tap-highlight-color: transparent; }
button.bo-p { cursor: pointer; }
@media (prefers-color-scheme: dark) { .bo-p { color: color-mix(in oklab, var(--c, #fff) 45%, white); } }
.bo-p-face { position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--paper);
  box-shadow: inset 0 0 0 1.5px var(--rule); transition: box-shadow .12s, background-color .12s; }
.bo-p-face .bo-face { width: 50px; height: 50px; }
.bo-p-n { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.bo-p:active .bo-p-face { scale: .94; }
.bo-p.on .bo-p-face { background: #eef0fb; box-shadow: 0 0 0 3px #7c8cff; }
@media (prefers-color-scheme: dark) { .bo-p.on .bo-p-face { background: #2e3558; } }
.bo-tick { position: absolute; right: -3px; bottom: -3px; display: none; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--indigo); color: #fff; box-shadow: 0 0 0 2px var(--wall-2); font-style: normal; }
.bo-tick svg { width: 13px; height: 13px; }
.bo-p.on .bo-tick { display: grid; }
.bo-here { position: absolute; right: 2px; bottom: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px var(--wall-2); }
.bo-p:focus-visible { outline-offset: 2px; border-radius: 10px; }
.sheet .bo-go { display: block; width: 100%; margin-top: 16px; }
.sheet .bo-name { font-size: 17px; }
.bo-rename { display: flex; gap: 8px; }
.bo-rename .field { flex: 1; min-width: 0; }
.bo-rename .btn { flex: none; }
.sheet .bo-leave { margin-top: 18px; }
.bo-leave .item:not(.armed) .grow > div:first-child { color: var(--danger); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .bo-p-face { transition: none; } }
