/* The computer games' layouts (/desk/, /draw/). The palette, the fonts and the base components are
   in retro.css, shared with the phones and loaded before this.

   Shared, not copied per game, so the two can't drift apart. A game's own pieces (the board,
   the canvas) stay in its own page. */
html { overflow-x:clip; }
body { margin:0; min-height:100vh; font-size:16px; line-height:1.5; display:flex; justify-content:center; }
main { width:100%; max-width:72rem; padding:28px 28px 48px; }
h1 { margin:0 0 1.2rem; }
/* The title is the way home. A link that looks like the title, not like a link. */
h1 a { color:inherit; text-decoration:none; }
h1 a:focus-visible { outline:4px solid #fff; outline-offset:6px; }
:root[data-season="spooky"] h1 .wob.w0, :root[data-season="spooky"] h1 .wob.w2 { color:#fff; }
:root[data-season="spooky"] h1 .wob.w1, :root[data-season="spooky"] h1 .wob.w3 { color:var(--ink); text-shadow:0 3px 0 rgba(255,255,255,.2); }
h2 { font-size:1.35rem; margin:0 0 .6rem; }
/* The title row: the title, then Sound (/shared/sound.js) and dark mode together at its end. A
   flex row rather than a corner overlay, so a long title wraps beside the controls instead of
   under them. Sound stays on every screen, play included: the cues happen during play, so that
   is where the way to stop them has to be.
   The controls sit level with the title's FIRST line, as one group. They used to be apart -- dark
   mode pinned in the window corner, Sound centred on the row -- and once the title wrapped, Sound
   hung between its two lines, a step below the switch beside it. So the row aligns to the top,
   and the group is exactly one title line tall (the h1's line-height, set here for that). */
.titlebar { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin:0 0 1.2rem; }
.titlebar h1 { margin:0; }
.titletools { flex:none; display:flex; align-items:center; gap:12px; min-height:calc(var(--title-size) * 1.3); }
.soundtoggle, .roombtn { position:relative; flex:none; display:inline-flex; align-items:center; justify-content:center; gap:8px; height:34px;
               padding:0 14px; font-size:.98rem; --px:2px; --face:var(--paper); --deep:var(--edge); color:var(--ghost-ink); }
.soundtoggle .note, .roombtn .note { font-size:1.1rem; line-height:1; }
.roombtn:focus-visible { outline:3px solid #fff; outline-offset:3px; }
/* Off says so in words; the struck-through note is a second signal, not the only one. */
.soundtoggle[aria-checked="false"] { background:rgba(0,0,0,.28); color:#fff; }
.soundtoggle[aria-checked="false"] .note { text-decoration:line-through; opacity:.8; }
.soundtoggle:focus-visible { outline:3px solid #fff; outline-offset:3px; }
/* A phone gives the title every pixel it can: Sound becomes its note alone. Off still reads
   without colour -- the note is struck through -- and the switch's name and state are unchanged
   for a screen reader (aria-label, aria-checked). */
@media (max-width: 560px) {
  .titletools .soundtoggle, .titletools .roombtn { width:44px; height:44px; padding:0; }
  .soundtoggle .label, .roombtn .label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  /* In a room the row holds Room as well, and the title needs the width more than dark mode does:
     the switch moves into the Room menu (roommenu.js) for as long as the button is showing. */
  .titletools:has(.roombtn:not([hidden])) > .themetoggle { display:none; }
}
/* The arcade face cannot shrink and "Character" cannot break, so at 24px the title and its controls
   need 360px plus the page's padding: on a 320-360px phone the row ran 36px past the screen and the
   whole page panned sideways. The next crisp size down (a multiple of 8) fits beside them. */
@media (max-width: 374px) { :root { --title-size:16px; } }
.screen { display:none; }
.screen.active { display:block; }
.card { padding:20px; }
.stack > * + * { margin-top:16px; }
.cols { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:20px; align-items:start; }
@media (max-width: 760px) { .cols { grid-template-columns:1fr; } main { padding:20px 16px 40px; } }
label { display:block; font-size:.92rem; text-transform:uppercase; color:var(--muted); margin:0 0 6px; }
input, select, textarea { width:100%; padding:12px 14px; font-size:1.05rem; }
textarea { resize:vertical; min-height:6.5em; font-weight:500; line-height:1.4; }
button { padding:14px 18px; font-size:1.1rem; }
button.wide { width:100%; }
.row { display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.row > .grow { flex:1; }
.err { color:var(--red); font-weight:700; min-height:1.3em; }
.on-field .err, .err.light { color:#ffd7dd; }
.hint { color:var(--muted); font-size:.92rem; }
/* Links in a card take the theme's link colour, not the browser's default blue, which all but
   disappears on a dark card. */
.card a { color:var(--link); font-weight:800; }
.light { color:rgba(255,255,255,.88); }
kbd { font:400 .9rem var(--font-name); background:var(--chip); border:1px solid var(--edge);
      border-bottom-width:3px; padding:1px 6px; color:var(--ink); }

/* Lobby */
.roomcode .ch:nth-child(1) { color:var(--red); } .roomcode .ch:nth-child(2) { color:var(--blue); }
.roomcode .ch:nth-child(3) { color:var(--amber-d); } .roomcode .ch:nth-child(4) { color:var(--green); }
.roster { display:flex; flex-wrap:wrap; gap:8px; list-style:none; margin:0; padding:0; }
.pill { display:inline-flex; align-items:center; gap:8px; background:var(--amber); color:#2b1c00;
 padding:8px 14px; font-weight:900; }
.dot { width:10px; height:10px; background:var(--ok); }
.dot.off { background:var(--off); }
.crown { font-size:.62rem; letter-spacing:.1em; background:rgba(0,0,0,.28); color:#fff; padding:2px 7px; }
/* The host's Remove, on a player's row: the phones' small red pill, still a chunky button. */
.rmbtn { padding:4px 10px; font-size:.74rem; background:var(--red); }
.rmbtn:active { transform:translateY(2px); }
/* Where a row has no room for the word: a round ✕, named for screen readers and on hover. */
.rmbtn.icon { width:26px; height:26px; padding:0; font-size:.8rem; line-height:1; display:inline-flex;
              align-items:center; justify-content:center; }
.choices { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:10px; }
.choice { display:flex; align-items:center; gap:10px; padding:12px; color:#fff;
          font-weight:800; cursor:pointer; }
.choice.c0 { background:var(--red); } .choice.c1 { background:var(--blue); } .choice.c2 { background:var(--green); }
.choice .shape { font-size:1.1rem; }
@media (max-width: 520px) { .choices { grid-template-columns:1fr; } }
/* A choice that cannot be taken yet says why beside it (the hint under the row), and looks it. */
.choice.disabled { opacity:.5; cursor:not-allowed; }

/* I'll pick them (desk): one slot per player -- who, what they have now, and a search under it. */
.pickslots { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(17rem, 1fr)); gap:10px; }
.pickslot { display:flex; flex-direction:column; gap:8px; padding:12px; background:var(--soft); }
.pickhead { display:flex; align-items:center; gap:10px; min-height:36px; }
.pickhead .name { font-weight:900; }
.pickcurrent { margin-left:auto; display:flex; align-items:center; gap:8px; font-weight:800; min-width:0; }
.pickcurrent.random { color:var(--muted); font-weight:700; }
.pickcurrent .lbl { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pickthumb { width:36px; height:36px; object-fit:cover; object-position:50% 20%; flex:none; }
.pickclear { flex:none; padding:4px 10px; font-size:.8rem; background:var(--paper); color:var(--ink); }
.pickslot .cs-row { background:var(--paper); }

/* The pool picker (/shared/pickers.js poolPicker). The phones style the same classes in their own
   page; this is the same design at desk width. Selected = filled blue AND a tick, never colour alone. */
.pp-chips { display:flex; flex-wrap:wrap; gap:8px; }
.pp-chip { display:inline-flex; align-items:center; gap:6px; padding:9px 14px;
           background:var(--chip); color:var(--ink); font-weight:800; font-size:.95rem; text-align:left; }
.pp-chip:active { transform:translateY(3px); }
.pp-chip.on { background:var(--blue); color:#fff; }
.pp-tick:empty { display:none; }
.pp-n { font-size:.75rem; font-weight:700; opacity:.7; }
.pp-quick .pp-chip { flex:1 1 0; padding:11px 14px; }
.pp-quick .pp-n { margin-left:auto; }
.pp-or { color:var(--muted); font-size:.8rem; font-weight:700; margin:12px 0 8px; }
.pp-summary { margin:12px 0 0; font-weight:700; font-size:.92rem; }
.pp-summary.warn { color:var(--red); }
.pp-fallback { color:var(--red); font-weight:700; font-size:.88rem; margin:0 0 8px; }
.pp-cat { background:var(--soft); margin-top:8px; }
.pp-cat summary { display:flex; align-items:center; gap:10px; padding:10px 12px; cursor:pointer; list-style:none; }
.pp-cat summary::-webkit-details-marker { display:none; }
.pp-catname { font-weight:900; }
.pp-count { color:var(--muted); font-size:.82rem; font-weight:700; }
.pp-cat.off .pp-count { color:var(--red); }
.pp-edit { margin-left:auto; font-size:.8rem; font-weight:900; color:var(--ghost-ink); background:var(--paper);
           padding:4px 11px; }
.pp-cat[open] .pp-edit .closed, .pp-cat:not([open]) .pp-edit .opened { display:none; }
/* Popular / A-Z, above the chosen categories' lists. The chosen one is filled AND pressed. */
.pp-sort { display:flex; align-items:center; justify-content:flex-end; gap:6px; margin-top:10px; }
.pp-sortlabel { color:var(--muted); font-size:.8rem; font-weight:800; margin-right:2px; }
.pp-sort button { padding:5px 12px; font-size:.82rem; background:var(--paper); color:var(--ink); }
.pp-sort button:active { transform:translateY(2px); }
.pp-sort button[aria-pressed="true"] { background:var(--blue); color:#fff; }
.pp-bulk { display:flex; gap:8px; padding:0 12px; }
.pp-bulk button { padding:6px 14px; font-size:.85rem; background:var(--paper); color:var(--ink); }
.pp-rows { max-height:260px; overflow-y:auto; padding:6px 12px 12px; display:grid;
           grid-template-columns:repeat(auto-fill, minmax(15rem, 1fr)); column-gap:16px; }
label.pp-row { display:flex; align-items:center; gap:10px; padding:7px 2px; margin:0; cursor:pointer;
               text-transform:none; letter-spacing:0; font-size:.95rem; font-weight:700; color:var(--ink); }
.pp-row input { width:18px; height:18px; padding:0; margin:0; flex:none; accent-color:var(--blue); }
.pp-rowname { flex:1; min-width:0; overflow-wrap:anywhere; }
.pp-row .pp-n { opacity:1; color:var(--muted); }

/* Character search (/shared/pickers.js characterSearch). */
.cs-row { display:flex; align-items:center; gap:10px; width:100%; text-align:left; padding:8px 12px;
          background:var(--soft); color:var(--ink); font-weight:800; margin-bottom:6px; }
.cs-row:active { transform:translateY(2px); }
.cs-thumb { width:36px; height:36px; object-fit:cover; object-position:50% 20%; flex:none; background:var(--paper); }
.cs-name { flex:1; min-width:0; overflow-wrap:anywhere; }
.cs-list { color:var(--muted); font-weight:700; font-size:.78rem; flex:none; max-width:40%; text-align:right; }

/* Character cards. FIXED image height: artwork arrives asynchronously, and a box that grows
   when it lands shoves everything below it -- here, the guess box being typed into. */
.cards { display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:16px; }
.pcard { background:var(--paper); color:var(--ink); padding:12px;
         display:flex; flex-direction:column; gap:6px; position:relative; }
.pcard .who { font-weight:900; display:flex; align-items:center; gap:6px; min-height:1.5em; }
.pcard .who .turns { margin-left:auto; color:var(--muted); font-weight:700; font-size:.82rem; }
.pcard .art { height:170px; background:var(--chip); display:flex; align-items:center;
              justify-content:center; overflow:hidden; }
.pcard .art img { width:100%; height:100%; object-fit:contain; }
.pcard .art .noimg { color:var(--muted); font-size:.85rem; padding:10px; text-align:center; }
.pcard .art.mystery { background:conic-gradient(var(--mystery-a) 25%, var(--mystery-b) 0 50%, var(--mystery-a) 0 75%, var(--mystery-b) 0) 0 0/24px 24px;
                      font-family:var(--font-arcade); font-size:64px; color:var(--mystery-ink); }
/* A player's notes, under their card, for everyone. Below the art on purpose: they change as the
   player types, and nothing anyone aims at sits beneath them. Empty notes take no room. */
.pcard .cname { font-family:var(--font-name); font-weight:900; font-size:1.12rem; line-height:1.2;
                min-height:2.4em; display:flex; align-items:center; }
.pcard .src { color:var(--muted); font-size:.78rem; min-height:1.2em; }
.pcard.current { --outline:var(--amber); --px:4px; }
.pcard.done { opacity:.72; }
.badge { font-size:.68rem; font-weight:900; letter-spacing:.06em; text-transform:uppercase;
         padding:2px 8px; background:var(--chip); color:var(--muted); }
.badge.go { background:var(--amber); color:#2b1c00; }
.badge.got { background:var(--green); color:#fff; }
.badge.out { background:var(--off); color:#fff; }

/* Play */
.turnbar { display:flex; align-items:center; gap:16px; margin-bottom:16px; }
.turnbar .who { font-family:var(--font-display); font-size:1.5rem; font-weight:900; }
.clock { flex:1; }
.clock i { display:block; height:100%; width:100%; transition:width 1s linear, background .3s; }
/* The colour carries "time is short" without moving, for anyone with motion turned down. */
.secs { font-size:16px; min-width:3ch; text-align:right; }
.guessbox { display:flex; gap:12px; }
.guessbox input { font-size:1.3rem; }
.verdict { font-weight:800; }
.verdict.wrong::before { content:"✗ "; color:var(--red); }
.verdict.correct::before { content:"✓ "; color:var(--green); }
.verdict.close::before { content:"? "; color:var(--amber-d); }
.log { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:4px; }
.log li { display:flex; gap:8px; align-items:baseline; }
.log .by { color:var(--muted); font-size:.82rem; }
.ruling { --outline:var(--amber); --px:4px; }

/* Guess on computers, during play (desk): the stage and the strip. The spotlight is whoever is
   asking questions, big; the strip is everyone, small, in seat order -- the faces along the bottom
   of a call. Picture heights are FIXED (no max-height): pictures arrive after the turn starts, and
   a box that grew when one landed would shove the strip and the guess box mid-turn. */
.stage { display:grid; grid-template-columns:minmax(0,1fr) minmax(18rem, 26rem); gap:20px; align-items:start; }
/* Side by side on a short window (below the fitted screen further down), the side column scrolls
   inside itself once its cards are taller than the window allows, and the page scrolls for the
   rest. Its padding is room for the cards' shadows. */
@media (min-width: 901px) {
  .stage > .stack { max-height:max(24rem, calc(100dvh - 21rem)); overflow-y:auto; overscroll-behavior:contain;
                    padding:4px 8px 14px 4px; }
  /* Your notes: under the side column, lined up with its cards (its padding), and on your own turn
     -- you are the spotlight, face down -- under the spotlight instead, with the column to itself. */
  .stage > .spotlight { grid-row:1 / span 2; }
  .stage > .stack { grid-column:2; grid-row:1; }
  .stage > .notescard { grid-column:2; grid-row:2; margin:0 8px 0 4px; }
  #game[data-spot-me] .stage > .spotlight { grid-row:1; }
  #game[data-spot-me] .stage > .stack { grid-row:1 / span 2; }
  #game[data-spot-me] .stage > .notescard { grid-column:1; grid-row:2; margin:0; }
}
/* The fitted play screen (desk, a window at least 901 x 700): the page is exactly the window, a
   flex column, so the strip of players is always on screen and nothing has to guess at how tall
   the title, turn bar or strip are. That guess (100dvh minus a fixed 21rem) was ~90px short at
   1280x800, which pushed the strip off the bottom and clipped the notes at the foot of the side
   column. Now the stage takes what is left: the picture is the part that gives (still a height
   the layout sets, never one an arriving image sets), and in the side column the guess log gives
   first, scrolling inside its own card, so the guess box and the notes stay whole. The side cards
   are tighter than elsewhere, and the strip's tiles shrink on shorter windows, so all of it fits
   from 1280x800 up; only a window shorter than that ever scrolls the side column. */
@media (min-width: 901px) and (min-height: 600px) {
  :root[data-playing] main.desk { height:100vh; height:100dvh; display:flex; flex-direction:column;
                                  padding-top:16px; padding-bottom:6px; }
  :root[data-playing] main.desk > .titlebar { flex:none; margin-bottom:12px; }
  main.desk > #game.active { flex:1; min-height:0; display:flex; flex-direction:column; }
  main.desk .turnbar { flex:none; margin-bottom:12px; }
  main.desk .stage { flex:1; min-height:0; grid-template-rows:minmax(0,1fr) auto; row-gap:12px; }
  main.desk .stage > .stack { max-height:none; height:100%; display:flex; flex-direction:column; padding-bottom:10px; }
  main.desk .stage > .stack > * { flex:none; }
  main.desk .stage > .stack > * + * { margin-top:10px; }
  main.desk .stage .stack .card, main.desk .notescard { padding:14px 16px; }
  main.desk .stage .card.stack > * + * { margin-top:10px; }
  main.desk .stage > .stack h2, main.desk .notescard h2 { margin-bottom:.3rem; }
  main.desk .notescard .hint { margin:0; }
  main.desk .notescard textarea { min-height:2.8em; height:2.8em; }
  /* While someone else guesses, the side column's cards rarely fill their row, and the notes sat
     under an empty gap squeezed to 2.8em. So the column's row is only as tall as its cards (and
     still gives, the log scrolling, when they are taller than the window), and the notes take the
     rest, their box growing into it. Not on your own turn: there the notes sit under the spotlight,
     which should keep the height. */
  main.desk #game:not([data-spot-me]) .stage { grid-template-rows:minmax(0, max-content) minmax(min-content, auto); align-content:stretch; }
  /* The spotlight spans both rows, and its own height would otherwise be shared out between them
     (most of it to the notes' row): size containment makes it take the rows, not set them. */
  main.desk #game:not([data-spot-me]) .stage > .spotlight { contain:size; }
  main.desk #game:not([data-spot-me]) .stage > .notescard { align-self:stretch; display:flex; flex-direction:column; }
  main.desk #game:not([data-spot-me]) .notescard textarea { flex:1 1 0; height:auto; }
  /* No line held open for an error that is rare here: when one comes, the log gives way for it. */
  main.desk .notescard .err:empty { display:none; }
  main.desk .stage > .stack > .logcard { flex:0 1 auto; min-height:5.5rem; display:flex; flex-direction:column; }
  main.desk .logcard .log { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; }
  main.desk .spotlight { align-self:stretch; min-height:0; overflow-y:auto; }
  main.desk .spotlight .art { flex:1 1 0; height:auto; min-height:7rem; }
  main.desk #game[data-spot-me] .spotlight .art { min-height:4rem; }
  main.desk .spotlight .notes { flex:none; max-height:6.6em; overflow-y:auto; }
  main.desk .strip { flex:none; margin-top:8px; }
  /* The feed docks over the title, which is decoration during play: down at the bottom right it
     covered the last tiles of the strip, names and all. Left of the title row's controls, one line
     a toast, and the newest two -- each one's news is also in the log or on the board. It takes no
     clicks: the title under it is the way home. The 320px is the title row's controls (Room, Sound,
     Dark Mode, ~298px measured, plus the row gap): change .titletools and re-measure it. */
  :root[data-playing] main.desk ~ .feed { pointer-events:none; top:16px; bottom:auto; right:auto; max-width:none; gap:4px; align-items:flex-start;
    left:max(28px, calc((100vw - 72rem) / 2 + 28px)); width:calc(min(100vw, 72rem) - 56px - 320px); }
  :root[data-playing] main.desk ~ .feed .toast { max-width:100%; padding:3px 10px; font-size:.9rem; line-height:1.25;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  :root[data-playing] main.desk ~ .feed .toast:nth-last-child(n+3) { display:none; }
  /* One line, cut short when it must: no room there for a ▼, which would only be the first thing cut. */
  :root[data-playing] main.desk ~ .feed .toast .rpgtext::after { content:none; }
}
/* Shorter windows take height from the strip rather than the stage: smaller pictures in the tiles,
   then (below 760) no notes lines in them -- those are still each tile's tooltip, and the guesser's
   are in the spotlight. The top padding still clears the current tile's 4px outline. */
@media (min-width: 901px) and (min-height: 600px) and (max-height: 899px) {
  main.desk .strip { padding-top:6px; padding-bottom:12px; }
  main.desk .tile .tart { height:3rem; }
  main.desk .tile .tart.mystery { font-size:24px; }
}
@media (min-width: 901px) and (min-height: 600px) and (max-height: 759px) {
  main.desk .tile .tnotes { display:none; }
  main.desk .tile .tart { height:2.25rem; }
  main.desk .tile .tart.mystery { font-size:16px; }
}
@media (max-width: 900px) {
  .stage { grid-template-columns:1fr; }
  /* One column (a phone): the notes' error line is rare, and held open it left ~40px of nothing
     under the box, as it does on the fitted screen above. The guess box's line stays held: a miss
     fills it every few seconds, and Pass under it should not jump each time. */
  .notescard .err:empty { display:none; }
}
/* A computer lobby opened on a phone: the host's settings run ~900px, and Start sat under all of
   them (1303px on a 360x640 screen). It rides the foot of the screen while the settings scroll
   past, so a host who is happy with the defaults never has to hunt for it. Sticky, not fixed: it
   stays inside the host's card, so it never covers the room code, the roster or a guest's page.
   What rides is the .startbar, the button AND #lobbyErr under it: that line says why Start is grey
   ("Waiting for one more player") and what the server said when it failed, and riding the button
   alone left it ~600px below, out of sight. The bar is card-coloured so the settings pass behind it. */
.startbar > .err { margin-top:8px; }
@media (max-width: 600px) {
  .startbar { position:sticky; bottom:0; z-index:2; background:var(--card); padding:8px 0 12px; }
  .startbar > .err:empty { display:none; }
  /* Disabled (waiting for a second player) is half opacity everywhere else, which here let the
     settings scrolling underneath show through the button. Riding, it is solid and greyed instead. */
  .startbar > #startBtn:disabled { opacity:1; --face:var(--soft); --deep:var(--chip-edge); color:var(--muted); }
}
/* On a short one, the lobby's mascot gives way too: the host's card would otherwise start so low
   that the riding button is cut off at the foot of a 360x640 screen. The phones' own page does the
   same in party/public/index.html (its max-height: 700px block). */
@media (max-width: 600px) and (max-height: 700px) {
  #lobby > .fx3d { display:none; }
}
.notescard textarea { min-height:4.5em; }
.spotlight { display:flex; flex-direction:column; gap:10px; --outline:var(--amber); --px:4px; }
.spothead { display:flex; align-items:center; flex-wrap:wrap; gap:8px 10px; }
.spothead .spotwho { font-family:var(--font-name); font-weight:900; font-size:1.3rem; overflow-wrap:anywhere; }
.spothead .turnno { margin-left:auto; color:var(--muted); font-weight:800; font-size:.9rem; }
.spotlight .art { height:clamp(12rem, calc(100dvh - 36rem), 26rem); background:var(--chip); display:flex;
                  align-items:center; justify-content:center; overflow:hidden; }
.spotlight .art img { width:100%; height:100%; object-fit:contain; }
.spotlight .art .noimg { color:var(--muted); }
/* The missing-picture card (common.js, marked data-noart) is an icon, not a picture: filling the
   spotlight with it made a broken frame the biggest thing on screen and the name an afterthought. */
.spotlight .art img[data-noart] { width:auto; height:min(40%, 6rem); min-height:3rem; }
.spotlight .art.mystery, .tile .tart.mystery { background:conic-gradient(var(--mystery-a) 25%, var(--mystery-b) 0 50%, var(--mystery-a) 0 75%, var(--mystery-b) 0) 0 0/24px 24px;
                  color:var(--mystery-ink); font-family:var(--font-arcade); }
.spotlight .art.mystery { font-size:96px; }
.spotname { font-family:var(--font-name); font-weight:900; font-size:2rem; line-height:1.15; overflow-wrap:anywhere; }
.spotlight .src { color:var(--muted); font-size:.9rem; margin-top:-6px; }
.spotlight .src:empty { display:none; }
.spotlight .notes { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.4; background:var(--soft); padding:10px 12px; }
.spotlight .notes:empty { display:none; }
.spotlight .notes::before { content:"Their notes"; display:block; font-size:.72rem; font-weight:900; letter-spacing:.05em;
                            text-transform:uppercase; color:var(--muted); margin-bottom:4px; }
/* `safe center`: centred while it fits, and scrolling from the first tile (not off both ends) once
   eight players are wider than the window. The padding is the room the current tile's outline
   needs inside a scrolling box. */
.strip { display:flex; justify-content:safe center; gap:12px; overflow-x:auto; padding:10px 8px 14px; margin-top:16px; }
.tile { flex:0 0 10.5rem; display:flex; flex-direction:column; gap:3px; background:var(--paper); color:var(--ink);
 padding:8px; min-width:0; }
.tile .tart { height:4.5rem; background:var(--chip); display:flex; align-items:center; justify-content:center;
              overflow:hidden; margin-bottom:3px; }
.tile .tart img { width:100%; height:100%; object-fit:contain; }
.tile .tart .noimg { color:var(--muted); font-size:.75rem; }
.tile .tart.mystery { font-size:32px; }
.tile .tname { display:flex; align-items:center; gap:6px; font-weight:900; font-size:.88rem; }
.tile .tname .n { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tile .tname .turns { flex:none; color:var(--muted); font-weight:700; font-size:.75rem; }
.tile .tchar { font-family:var(--font-name); font-weight:900; font-size:.95rem; line-height:1.2; overflow-wrap:anywhere; }
.tile .badge { align-self:flex-start; }
/* Two lines of someone's notes; the whole of them is the tile's tooltip, and the spotlight's. */
.tile .tnotes { font-size:.75rem; line-height:1.3; color:var(--muted); display:-webkit-box; -webkit-line-clamp:2;
                -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; }
.tile .tnotes:empty { display:none; }
.tile.current { --outline:var(--amber); --px:4px; }
.tile.done { opacity:.72; }
.ruling .q { font-family:var(--font-display); font-size:1.3rem; font-weight:900; }
.feed { position:fixed; right:20px; bottom:20px; display:flex; flex-direction:column; gap:8px; z-index:20; max-width:24rem; }
/* The RPG window itself is retro.css's (*RPG text boxes*). */
.toast { padding:10px 14px; font-weight:700; animation:pop .16s steps(3); }
@keyframes pop { from { transform:scale(.8); opacity:0 } to { transform:scale(1); opacity:1 } }
@media (prefers-reduced-motion: reduce) { .toast { animation:none; } .clock i { transition:none; } }

/* The theme switch: a small track with a knob that slides -- the same switch as the phones' page
   (src/web/party/public/index.html), so the site has one dark-mode control, not two styles of it.
   Wired by GTC.bindThemeToggles. Here it sits in the title row beside Sound (.titletools); relative
   only so the knob has something to slide within. The outline keeps it visible on the dark field. */
.themetoggle { position:relative; flex:none; width:56px; height:30px; padding:0;
 background:rgba(0,0,0,.28); box-shadow:inset 0 2px 0 rgba(0,0,0,.2);
               border:2px solid rgba(255,255,255,.4); }
.themetoggle:active { transform:none; box-shadow:inset 0 2px 0 rgba(0,0,0,.2); }
.themetoggle .knob { position:absolute; top:1px; left:1px; width:24px; height:24px;
                     background:#fff; color:var(--brand); font-size:1.15rem; line-height:24px; text-align:center; transition:left .15s steps(3); }
.themetoggle[aria-checked="true"] .knob { left:27px; background:var(--paper); color:var(--ink); }
.themetoggle:focus-visible { outline:3px solid #fff; outline-offset:3px; }
@media (prefers-reduced-motion: reduce) { .themetoggle .knob { transition:none; } }

/* Dark mode's tokens are in retro.css; chosen by the toggle (gtc_theme, shared with the phones'
   page) or, until somebody touches it, by the computer's own setting, and set in <head> by
   season.js before first paint. The canvas Draw draws on stays white on purpose, like paper. */
:root[data-theme="dark"][data-season="spooky"] h1 .wob.w1,
:root[data-theme="dark"][data-season="spooky"] h1 .wob.w3 { color:#ff9a4d; text-shadow:0 3px 0 rgba(0,0,0,.3); }
:root[data-theme="dark"] .roomcode .ch:nth-child(1) { color:#ff5a73; }
:root[data-theme="dark"] .roomcode .ch:nth-child(2) { color:#6aa8ff; }
:root[data-theme="dark"][data-season="spooky"] .roomcode .ch:nth-child(2) { color:#b49bff; }
:root[data-theme="dark"] .roomcode .ch:nth-child(3) { color:#ffb52e; }
:root[data-theme="dark"] .roomcode .ch:nth-child(4) { color:#55d43f; }
:root[data-theme="dark"] .err:not(.light) { color:#ff7a8e; }
:root[data-theme="dark"] .verdict.wrong::before { color:#ff7a8e; }
:root[data-theme="dark"] .verdict.correct::before { color:#55d43f; }
:root[data-theme="dark"] .verdict.close::before { color:#ffb52e; }
