/* The per-player game page (game.html). Builds on the tokens and components in style.css. */

/* ---------- shared bits ---------- */
.topbar { display: flex; align-items: center; gap: 16px; padding: 16px 28px; flex-wrap: wrap; }
.topbar .logo { font-size: 1.6rem; color: var(--text); text-decoration: none; }
button.big, .btn.big { font-size: 1.2rem; padding: 0.9em 2.4em; }
.pill { display: inline-block; background: var(--panel-2); color: var(--text); text-decoration: none; border-radius: 999px; padding: 0.5em 1em; font-weight: 600; }
.section-title { margin: 8px 0 0; font-size: 1.1rem; font-weight: 800; letter-spacing: 0.02em; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } }


/* ======================================================================================
   Game room (docs/visual-design.md §7.3, "Toybox Atlas"). Daylight for the lobby, reveal and
   final; dusk (body.dusk) around the panorama. Street View is never covered, blurred or tinted:
   no backdrop-filter anywhere on this page, the lead veil and the scrim over a round are opaque.
   ====================================================================================== */
.game { min-height: 100dvh; }
.game .round, .game .split { --sv-footer: 40px; }
body.in-round { --sv-footer: 40px; }

/* ---------- lobby layout: table (58 %) | setup (42 %) ---------- */
.lobby { height: 100dvh; display: flex; flex-direction: column; }
.lobby .topbar { flex: none; padding: 12px 24px; }
.party { margin: 0; font-size: 1.15rem; font-weight: 700; display: inline-flex; align-items: center; gap: .45em; }
.topbar .copy, .topbar .manage-open { padding: .5em 1.1em; display: inline-flex; align-items: center; gap: .45em; }
.account-chip { margin-left: auto; }
.account-chip button { padding: .5em 1.1em; }
.lobby-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); gap: 0; }
.lobby-stage { position: relative; overscroll-behavior: contain; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 4px 8px 16px 24px; overflow-y: auto; }
.lobby-body { position: relative; overscroll-behavior: contain; min-height: 0; overflow-y: auto; padding: 4px 24px 0 20px; display: grid; gap: 14px; align-content: start; }
.lobby-body > .legal-links { margin-top: 8px; }

/* the party code: one chunky lemon cell per letter (§7.3.1) */
.code-cells { display: inline-flex; gap: 4px; vertical-align: middle; font-size: 1rem; letter-spacing: 0; color: var(--ink); line-height: 1; }
.code-cells:empty { display: none; }
.code-cell {
  display: inline-grid; place-items: center; min-width: 1.4em; height: 1.55em; padding: 0 .1em;
  border-radius: 8px; background: var(--lemon); color: var(--ink); font-weight: 800; letter-spacing: 0;
  box-shadow: var(--outline), var(--toy-1); font-variant-numeric: tabular-nums;
}
dialog.sheet .code-cell { font-size: 1.1em; }

.section-title { display: flex; align-items: center; gap: 10px; }
.section-title .step {
  display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 50%; flex: none;
  background: var(--ink); color: var(--cream); font-size: .85rem; font-weight: 800;
}

/* ---------- the table view (3D, or the backdrop with 2D pucks) ---------- */
.table-wrap {
  position: relative; flex: none; width: 100%; aspect-ratio: 5 / 4; max-height: calc(100% - 132px); min-height: 280px;
  border-radius: var(--r-xl); overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 50% 30%, var(--cream), var(--clay));
  box-shadow: var(--outline), var(--toy-2);
}
.table-wrap.shake { animation: table-shake 240ms ease-out; }
@keyframes table-shake { 25% { translate: 2px 0; } 50% { translate: -2px 1px; } 75% { translate: 1px 0; } }
.table-view { position: absolute; inset: 0; }
.table-view .stage-fallback, .strip-view .stage-fallback, .podium-view .stage-fallback, .gone-view .stage-fallback {
  display: flex; flex-wrap: wrap; justify-content: center; align-content: end; align-items: end; gap: 8px;
  padding: 0 8% 11%;
}
.strip-view .stage-fallback { padding-bottom: 14px; gap: 6px; }
.podium-view .stage-fallback { padding-bottom: 12%; }
.table-view .puck, .strip-view .puck, .podium-view .puck, .gone-view .puck { animation: gp-land var(--t-slow) var(--ease-bounce) both; }

/* name tags under each seat, placed from view.slotRect() (DOM, so they stay crisp and readable) */
.name-tags { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity var(--t-base) var(--ease-out); }
.name-tags.on { opacity: 1; }
.name-tag {
  position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  padding: 2px 8px 2px 6px; border-radius: var(--r-pill); background: #fff; color: var(--ink);
  font-size: .78rem; font-weight: 700; line-height: 1.3; box-shadow: 0 0 0 2px var(--ink), 0 2px 0 var(--edge-ink);
  will-change: transform;
}
.name-tag::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px var(--ink); flex: none; }
.name-tag.off { opacity: .55; }
.tag-name { max-width: 9em; overflow: hidden; text-overflow: ellipsis; }
.tag-sticker {
  display: inline-block; padding: 0 5px; border-radius: var(--r-pill); font-size: .64rem; letter-spacing: .04em; text-transform: uppercase;
  background: var(--lemon); box-shadow: 0 0 0 1.5px var(--ink); rotate: -3deg;
}
.tag-sticker.is-you { background: var(--sky); rotate: 2deg; }
.tag-sticker.is-turf { background: transparent; box-shadow: none; padding: 0; font-size: .8rem; text-transform: none; rotate: 0deg; }

/* start countdown: a chunky counter bouncing in the middle of the table (§5.3 step 1) */
.countdown {
  position: fixed; left: 50%; top: 18px; translate: -50% 0; z-index: var(--z-countdown); display: flex; align-items: center; gap: 14px;
  padding: 10px 14px 10px 20px; border-radius: var(--r-pill); background: var(--cocoa); color: var(--cream);
  box-shadow: var(--toy-2); animation: fade-in 200ms ease-out;
}
.countdown p { margin: 0; display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.2rem; }
.countdown-n {
  display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; border-radius: var(--r-md);
  background: var(--lemon); color: var(--ink); font-size: 1.5rem; font-variant-numeric: tabular-nums;
  box-shadow: var(--outline), var(--toy-1);
}
.countdown.on-table {
  position: absolute; inset: 0; left: 0; top: 0; translate: none; z-index: 4; flex-direction: column; justify-content: center;
  padding: 0; background: none; border-radius: 0; box-shadow: none; pointer-events: none; animation: none;
}
.countdown.on-table p { flex-direction: column; gap: 10px; }
.countdown.on-table .countdown-label {
  padding: .3em .9em; border-radius: var(--r-pill); background: var(--cream); color: var(--ink); font-size: var(--fs-tag);
  letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 0 0 2px var(--ink), 0 2px 0 var(--ink); rotate: -2deg;
}
.countdown.on-table .countdown-n {
  min-width: 0; width: clamp(96px, 16vw, 148px); height: clamp(96px, 16vw, 148px); border-radius: var(--r-xl);
  font-size: clamp(3.6rem, 9vw, 6rem); box-shadow: var(--outline), var(--toy-3);
}
.countdown-n.drop { animation: digit-drop 460ms var(--ease-bounce) both; }
@keyframes digit-drop { from { translate: 0 -46px; scale: .8; opacity: 0; } 40% { opacity: 1; } }
/* over the final ("Play again"): a capsule centred on the map half, the digit drops inside it */
.countdown:not(.on-table) { left: 29%; }
.countdown:not(.on-table) .countdown-n.drop { animation-name: digit-drop-sm; }
@keyframes digit-drop-sm { from { translate: 0 -12px; opacity: 0; } }
.countdown.on-table button { pointer-events: auto; }
.countdown button { padding: .5em 1.2em; }

/* the roster: the accessible seat list. Compact chips while the 3D table shows everyone (name tags
   carry the names there); the full puck grid is the 2D fallback ('off' tier, §7.3.1). */
.lobby-roster { display: grid; gap: 10px; }
.seats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px 10px; }
.seat { display: grid; justify-items: center; gap: 6px; text-align: center; min-width: 0; }
.seat .avatar { width: 64px; height: 64px; font-size: 1.35rem; box-shadow: 0 0 0 2.5px var(--ink), inset 0 -6px 0 rgba(0, 0, 0, .18); }
.seat-name { font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat.empty .avatar { background: transparent; box-shadow: none; border: 2px dashed color-mix(in srgb, var(--ink) 35%, transparent); }
.seat.off { opacity: .45; }
.seat.pop .avatar { animation: gp-land var(--t-slow) var(--ease-bounce) both; }
.badges { display: flex; gap: 4px; min-height: 1.2em; }
.badge.is-host { background: var(--lemon); color: var(--ink); }
.avatar { display: grid; place-items: center; border-radius: 50%; background: var(--c, var(--panel-2)); color: var(--ink); font-weight: 800; flex: none; }
body.has-3d .seats { display: flex; flex-wrap: wrap; gap: 8px; }
body.has-3d .seat { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: var(--r-pill); background: #fff; box-shadow: 0 0 0 2px var(--ink); }
body.has-3d .seat .avatar { width: 26px; height: 26px; font-size: .62rem; box-shadow: 0 0 0 2px var(--ink); }
body.has-3d .seat-name { font-size: .9rem; max-width: 10em; }
body.has-3d .seat.empty { display: none; }
body.has-3d .badges { min-height: 0; }
.lobby-stage > .react-bar { justify-content: flex-start; }

/* ---------- choice tiles (§3): modes, maps, formats ---------- */
.tiles { display: grid; gap: 16px 14px; padding-top: 14px; }
.modes { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.maps { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.formats { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.tiles .tile { min-height: 150px; font: inherit; }
.tile-icon { width: 34px; height: 34px; padding: 6px; border-radius: var(--r-sm); background: var(--tab); color: var(--ink); box-shadow: 0 0 0 2px var(--ink); box-sizing: content-box; }
.tile .tile-title { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.tile .tile-text { line-height: 1.35; font-weight: 500; }
.tile:is([aria-pressed='true']) .tile-text { color: color-mix(in srgb, var(--ink) 82%, transparent); }
.tile:disabled { cursor: default; }
.tiles.readonly .tile:not([aria-pressed='true']) { filter: saturate(.4); opacity: .7; }
.tile:focus-visible { outline: 3px dashed var(--ink); outline-offset: 6px; }
.tile:not(:disabled):active { translate: 0 3px; box-shadow: var(--outline), var(--toy-1); }
/* map tiles: a little diorama window (live on the full tier, a poster otherwise; §7.3.1) */
.map-window { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--r-md); overflow: hidden; background: var(--tab); box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 2px var(--ink); }
.map-window .stage-fallback { background-size: cover; background-position: center 60%; }
.map-window[data-map='world'] .stage-fallback { background-image: url(/art/scenes/world.webp); }
.map-window[data-map='europe'] .stage-fallback { background-image: url(/art/scenes/europe.webp); }
.map-window[data-map='americas'] .stage-fallback { background-image: url(/art/scenes/americas.webp); }
.map-window[data-map='asia'] .stage-fallback { background-image: url(/art/scenes/asia.webp); }
.map-window .stage-canvas { z-index: 1; }

.lobby .fields { justify-content: flex-start; }
.mode-line { margin: 0; font-size: .95rem; }
.start-row { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.waiting-host { font-size: 1.15rem; margin: 0; }
.start-hint { margin: 0; align-self: center; }
#league-line { margin: 0; }
#league-line b { color: var(--text); }
.twist-line { margin: 0; font-size: .9rem; }

/* ---------- round: the dusk surface around the panorama (§7.3.2) ---------- */
.round { position: fixed; inset: 0; overflow: hidden; background: var(--cocoa); }
.stage { position: absolute; inset: 0; background: #000; transition: bottom 280ms var(--ease-in-out); }
.stage img { width: 100%; height: 100%; object-fit: contain; display: block; }
.stage.veiled > * { visibility: hidden; }

/* view tools: 44 px cocoa discs with cream icons; vertically centred, never closer than 52 px to the
   floor (Google's footer strip) */
.tools {
  position: absolute; left: 16px; top: clamp(120px, 50%, calc(100% - 52px - 103px)); translate: 0 -50%; z-index: var(--z-hud);
  display: flex; flex-direction: column; gap: 10px;
}
.tool {
  width: 44px; height: 44px; padding: 0; border-radius: 50%; display: grid; place-items: center;
  background: var(--cocoa); color: var(--cream); font-size: 1.2rem; font-weight: 800;
  box-shadow: 0 0 0 2px rgba(255, 246, 228, .22), 0 3px 0 rgba(0, 0, 0, .6);
}
.tool:hover { background: var(--cocoa-3); }
.tool svg.icon { width: 22px; height: 22px; }
.compass i {
  display: block; width: 8px; height: 26px; transition: transform 80ms linear;
  background: linear-gradient(var(--stop-bright) 50%, var(--cream) 50%); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

/* the HUD: an opaque cocoa capsule at the top centre (desktop), a 56 px letterbox bar above the
   panorama on phones (body.hud-bar). No backdrop-filter. */
.hud-pill {
  position: absolute; top: 14px; left: 50%; translate: -50% 0; z-index: var(--z-hud);
  display: flex; align-items: center; gap: 14px; padding: 6px 12px 6px 18px; max-width: calc(100vw - 140px);
  background: var(--cocoa); color: var(--cream); border-radius: var(--r-pill);
  box-shadow: 0 0 0 2px rgba(255, 246, 228, .18), 0 5px 0 rgba(0, 0, 0, .55), 0 12px 24px -10px rgba(0, 0, 0, .5);
}
.hud-round { font-weight: 800; color: var(--sand); font-size: var(--fs-tag); letter-spacing: .06em; text-transform: uppercase; font-variant-numeric: tabular-nums; white-space: nowrap; }
.timer-ring { position: relative; display: grid; place-items: center; width: 40px; height: 40px; flex: none; color: var(--cream); }
.timer-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.timer-ring circle { fill: none; stroke-width: 3.5; }
.timer-ring .track { stroke: rgba(255, 246, 228, .16); }
.timer-ring .sweep { stroke: currentColor; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke-dashoffset 220ms linear; }
.hud-timer { font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.timer-ring.warn { color: var(--tangerine); }
.timer-ring.urgent { color: var(--stop-bright); }
.timer-ring.pulse { animation: timer-pulse 1s ease-in-out infinite; }
@keyframes timer-pulse { 50% { scale: 1.06; } }
.hud-glimpse { font-size: 1rem; font-weight: 700; color: var(--sand); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hud-energy { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 700; color: var(--sand); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hud-energy .energy { width: 56px; }

/* lock tally: one portrait per player, grey until locked, a spring pop and a green ring on lock */
.tally { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; max-width: 300px; }
.tally-face {
  width: 28px; height: 28px; border-radius: 50%; background: var(--c); object-fit: cover;
  filter: grayscale(1) brightness(.7); opacity: .65; box-shadow: 0 0 0 2px var(--cocoa-3);
  transition: filter var(--t-quick) var(--ease-out), opacity var(--t-quick) var(--ease-out), box-shadow var(--t-quick) var(--ease-out);
}
.tally-face.me { outline: 2px solid var(--cream); outline-offset: 2px; }
.tally-face.on { filter: none; opacity: 1; box-shadow: 0 0 0 2.5px var(--go-bright); }
.tally-face.pop { animation: gp-pop var(--t-base) var(--ease-spring) both; }
.tally-face.off { opacity: .3; }
.tally-face.ghost { opacity: .5; box-shadow: 0 0 0 2px var(--sand); }
.guide-mark { font-size: 1.1rem; line-height: 1; }
.hud-pill .sound-toggle, .hud-pill .manage-open {
  width: 34px; height: 34px; padding: 0; flex: none; display: grid; place-items: center;
  background: transparent; color: var(--cream); box-shadow: none; translate: none;
}
.hud-pill .sound-toggle:hover, .hud-pill .manage-open:hover { background: var(--cocoa-3); }

/* the guess dock: a cocoa card above Google's footer strip (§7.3.2) */
.dock {
  position: absolute; right: 18px; bottom: calc(var(--sv-footer) + 12px); z-index: var(--z-dock);
  display: grid; gap: 8px; justify-items: end; padding: 10px; border-radius: var(--r-lg);
  background: var(--cocoa-2); color: var(--cream);
  box-shadow: 0 0 0 2px rgba(255, 246, 228, .18), 0 5px 0 rgba(0, 0, 0, .55), 0 18px 34px -14px rgba(0, 0, 0, .55);
}
.dock .chips { display: flex; gap: 4px; }
.dock .chips button { padding: .4em .85em; font-size: .88rem; }
/* the map is the dock's top row: it grows up and to the left, so the chips and the lock button under
   it stay where they are (a click aimed at a chip never lands on the grown map) */
.guess-map {
  position: relative; order: -1; width: 300px; height: 196px; border-radius: var(--r-md); overflow: hidden;
  box-shadow: 0 0 0 3px var(--c, var(--lemon)); background: #a9d3df;
  transition: width 280ms var(--ease-out), height 280ms var(--ease-out);
}
.dock.big .guess-map { width: max(46vw, 300px); height: max(56vh, 196px); }
#guess-map { position: absolute; inset: 0; cursor: crosshair; }
/* desktop: the map's box already has the big size while the frame grows or shrinks (round.js) */
@media (min-width: 901px) {
  .guess-map.map-big #guess-map { inset: auto 0 0 auto; width: max(46vw, 300px); height: max(56vh, 196px); }
}
.sheet-handle { display: none; }
.pin-map {
  position: absolute; top: 8px; right: 8px; z-index: 1000; width: 34px; height: 34px; padding: 0;
  border-radius: 50%; background: var(--cocoa); font-size: 1rem; filter: grayscale(1); opacity: .85;
  box-shadow: 0 0 0 2px rgba(255, 246, 228, .3);
}
.pin-map.on { filter: none; opacity: 1; box-shadow: 0 0 0 2.5px var(--lemon); }
.dock .lock { justify-self: stretch; font-size: 1.1rem; }
.dock .lock.done { background: var(--go-bright); color: var(--ink); opacity: 1; box-shadow: var(--outline), var(--toy-1); animation: lock-bounce 420ms var(--ease-bounce) 1; }
@keyframes lock-bounce { 0% { scale: .92; } 60% { scale: 1.04; } 100% { scale: 1; } }
.dock.locked .chips { display: none; } /* locked: the chips fold away, the lock button says so */
.chip-help { display: grid; justify-items: end; gap: 4px; max-width: 320px; }
.chip-info { padding: .2em .7em; font-size: .8rem; font-weight: 600; background: transparent; color: var(--sand); box-shadow: none; }
.chip-info:hover, .chip-info[aria-expanded='true'] { color: var(--cream); translate: none; box-shadow: none; }
.chip-help-text { margin: 0; padding: 8px 10px; border-radius: 10px; font-size: .82rem; line-height: 1.35; background: var(--cocoa-3); color: var(--cream); text-align: left; }
.dock.locked .chip-help { display: none; }

/* the lead (loading line + 3-2-1): opaque by rule (§1.4); fades out uniformly, then is removed */
.intro {
  position: absolute; inset: 0; z-index: var(--z-intro); display: grid; place-items: center; align-content: center; text-align: center; padding: 24px;
  background: var(--veil-solid); color: var(--cream); transition: opacity 240ms var(--ease-out);
}
.intro.out { opacity: 0; }
.joke { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 700; max-width: 22em; margin: 0; animation: fade-in 400ms ease-out; text-wrap: balance; }
.intro-note { margin: 14px 0 0; max-width: 28em; color: var(--sand); font-size: .95rem; }
.intro .ring .track { stroke: rgba(255, 246, 228, .16); }
.guide-pill {
  position: absolute; right: 18px; bottom: calc(var(--sv-footer) + 12px); z-index: var(--z-dock); max-width: 360px; margin: 0; padding: 10px 16px;
  background: var(--cocoa); color: var(--cream); border-radius: var(--r-md); font-size: .95rem; line-height: 1.35;
  box-shadow: 0 0 0 2px rgba(255, 246, 228, .18), 0 4px 0 rgba(0, 0, 0, .55);
}
/* Glimpse / blind: the whole viewer is hidden; a cocoa card with a sticker title */
.round .eyes-card, .round .listen-card { background: var(--cocoa); color: var(--sand); gap: 10px; }
.round .eyes-card b, .round .listen-card b { font-size: var(--fs-display); letter-spacing: -.02em; }

/* the opaque veil before a round (§5.3 step 3): fades in over the whole viewport, removed at once */
.veil { position: fixed; inset: 0; z-index: 45; background: var(--veil-solid); opacity: 0; visibility: hidden; pointer-events: none; }
.veil.on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 240ms var(--ease-out); }

/* ---------- overlays ---------- */
/* Kept in the page and only faded, so its live region is announced. Over a round it is opaque. */
.scrim {
  position: fixed; inset: 0; z-index: var(--z-scrim); display: grid; place-items: center;
  background: var(--veil); opacity: 0; pointer-events: none; transition: opacity 300ms ease-out;
}
body.in-round .scrim { background: var(--veil-solid); }
.scrim.show { opacity: 1; pointer-events: auto; }
.scrim p {
  margin: 0; font-size: clamp(2.4rem, 7vw, 4.6rem); font-weight: 800; letter-spacing: -.03em; color: var(--lemon);
  -webkit-text-stroke: .045em var(--ink); paint-order: stroke fill; text-shadow: 0 .08em 0 var(--ink);
}
.scrim.show p { animation: pop 320ms var(--ease-spring); }
dialog.sheet { width: min(460px, calc(100vw - 32px)); }
dialog.sheet form { display: grid; gap: 14px; }
dialog.sheet h2 { margin: 0; font-size: var(--fs-h2); display: flex; align-items: center; gap: .4em; flex-wrap: wrap; }
.dusk dialog.sheet { background: var(--cocoa-2); color: var(--cream); box-shadow: 0 0 0 2.5px var(--cream), 0 7px 0 rgba(0, 0, 0, .6); }
#signin-dialog { width: min(520px, calc(100vw - 32px)); display: none; }
#signin-dialog[open] { display: grid; gap: 12px; }

/* the gone screen (§7.3.5): one figure alone at the party table */
.gone { min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 24px 16px; }
.gone-card { width: min(680px, 100%); display: grid; gap: 14px; justify-items: center; }
.gone .logo { font-size: 1.8rem; color: var(--text); text-decoration: none; }
.gone-view {
  position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--r-xl); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 30%, var(--cream), var(--clay)); box-shadow: var(--outline), var(--toy-2);
}
.gone h1 { margin: 6px 0 0; }
.gone p { margin: 0; max-width: 32em; }
.gone-home { color: var(--muted); font-weight: 600; }

/* ---------- reveal and final ---------- */
.split { position: fixed; inset: 0; display: grid; grid-template-columns: 58% 42%; background: var(--bg); }
.split.enter .split-map { animation: fade-in 400ms ease-out; }
.split.enter .split-panel { animation: panel-in 420ms var(--ease-out) both; }
@keyframes panel-in { from { translate: 48px 0; opacity: 0; } }
.split-map { height: 100%; min-height: 0; background: #a9d3df; /* the map's water (gmap.js), while it loads */ }
.split-panel {
  position: relative; background: url(/art/grain.svg) 0 0 / 220px 220px, var(--cream); overflow: auto; padding: 22px 28px 20px;
  display: flex; flex-direction: column; gap: 12px; min-height: 0; box-shadow: -2.5px 0 0 var(--ink);
}
.split-panel h2 { margin: 0; line-height: 1.05; }
.split-panel h2.sticker.display { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.split-panel p { margin: 0; }
.split-panel > .sound-toggle { position: absolute; top: 14px; right: 14px; z-index: 1; }
.split-panel > .eyebrow, .split-panel > #final-title { padding-right: 52px; }
.eyebrow { color: var(--muted); }

/* the reaction strip (§5.5): figures on pucks ordered by distance, reacting to their line */
.strip-view {
  position: relative; flex: none; height: 150px; border-radius: var(--r-lg); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 30%, var(--cream), var(--clay)); box-shadow: var(--outline), var(--toy-1);
}

/* your points: a lemon chunky card; the parts pop on as stickers */
.my-score {
  display: grid; gap: 4px; padding: 12px 18px 14px; border-radius: var(--r-lg); background: var(--lemon); color: var(--ink);
  box-shadow: var(--outline), var(--toy-2); opacity: 0; translate: 0 8px; transition: opacity 250ms, translate 250ms var(--ease-spring);
}
.my-score.in { opacity: 1; translate: 0 0; }
.my-score b { font-size: 2.8rem; font-weight: 800; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.my-score b.minus { color: var(--stop); }
.my-score .muted { color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.my-score .tags .tag {
  margin: 0; padding: .28em .7em; border-radius: var(--r-pill); background: #fff; color: var(--ink);
  font-size: .8rem; font-weight: 700; box-shadow: 0 0 0 2px var(--ink), 0 2px 0 var(--ink); rotate: -2deg;
  animation: gp-pop var(--t-base) var(--ease-spring) both; animation-delay: calc(var(--i, 0) * 70ms);
}
.my-score .tags .tag:nth-child(even) { rotate: 2deg; }
.my-score .tags .tag.good { background: var(--leaf); }
.my-score .tags .tag.gold { background: var(--tangerine); }
.my-score .tags .tag.bad { background: var(--stop-bright); color: var(--ink); }
.highlights { display: grid; gap: 4px; margin-top: 4px; }
.highlights .hl {
  margin: 0; padding: 6px 10px; border-radius: 10px; font-weight: 700; background: rgba(255, 255, 255, .55);
  box-shadow: inset 3px 0 0 var(--ink); animation: hl-in 350ms ease-out both;
}
.highlights .hl + .hl { animation-delay: 150ms; }
@keyframes hl-in { from { opacity: 0; transform: translateY(6px); } }

/* the ranking: chunky rows with each player's portrait; reorders with flip(), overtakers hop */
.ranking { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.rank-row {
  display: grid; grid-template-columns: 1.6em 28px minmax(0, 1fr) auto 4.4em 3.8em; gap: 10px; align-items: center;
  padding: 6px 14px 6px 10px; border-radius: var(--r-md); background: #fff; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px var(--ink), 0 3px 0 var(--edge-ink);
  opacity: 0; transform: translateX(24px); transition: opacity 250ms ease-out, transform 250ms ease-out;
}
.rank-row.in { opacity: 1; transform: none; }
.rank-row.me { background: color-mix(in srgb, var(--lemon) 55%, #fff); }
.rank-row.hop { animation: row-hop 360ms var(--ease-spring); }
@keyframes row-hop { 40% { translate: 0 -6px; } }
.rank-row .rank { color: var(--muted); font-weight: 800; }
.rank-row .dot { width: 14px; height: 14px; margin: 0 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px var(--ink); }
.rank-row .face { width: 28px; height: 28px; border-radius: 50%; background: var(--c); }
.rank-row .who { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row .pts, .rank-row .total { text-align: right; font-weight: 800; }
.rank-row .pts.minus { color: var(--stop); }
.rank-row .dist { display: grid; justify-items: start; }
.rank-row .hit { color: var(--stop); font-size: .8rem; font-weight: 700; }
.rank-row .auto-note { font-size: .75rem; font-weight: 600; line-height: 1.2; } /* a pin that was never locked, scored as a Hunch */
.rank-row.stand { grid-template-columns: 1.6em 28px minmax(4em, 1fr) auto auto auto; } /* the name keeps room next to the energy cell */
.rank-row.stand .total { display: flex; align-items: center; justify-content: flex-end; gap: 6px; white-space: nowrap; }
.rank-row.stand .total .energy { width: 32px; }
#final-rest .rank-row { grid-template-columns: 1.6em 28px minmax(0, 1fr) auto 4.4em; }
.continue { margin-top: auto; display: grid; gap: 10px; padding-top: 8px; }
.auto-bar { height: 6px; background: var(--clay); border-radius: 999px; overflow: hidden; box-shadow: inset 0 0 0 1.5px var(--ink); }
.auto-bar i { display: block; height: 100%; width: 0; background: var(--tangerine); }
.split-panel .row { display: flex; gap: 10px; flex-wrap: wrap; }

/* the podium view (§7.3.4, §5.6): toy blocks in front of the podium backdrop */
.podium-view {
  position: relative; flex: none; height: 300px; border-radius: var(--r-lg); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 30%, var(--cream), var(--clay)); box-shadow: var(--outline), var(--toy-2);
}
.podium-bars { display: flex; align-items: flex-end; justify-content: center; gap: 14px; padding-top: 6px; }
.podium-col { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 30%; max-width: 170px; text-align: center; min-width: 0; }
.podium-col .avatar { width: 48px; height: 48px; font-size: 1.1rem; margin-bottom: 4px; box-shadow: 0 0 0 2.5px var(--ink), inset 0 -6px 0 rgba(0, 0, 0, .18); }
.podium-name { font-size: 1.05rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-score { font-weight: 800; font-variant-numeric: tabular-nums; }
.podium-col .delta { min-height: 1.2em; color: var(--muted); }
.podium-col .bar {
  width: 100%; margin-top: 6px; border-radius: 14px 14px 0 0; display: grid; place-items: start center; padding-top: 8px;
  background: var(--c); color: var(--ink); font-size: 1.7rem; font-weight: 800; box-shadow: 0 0 0 2.5px var(--ink);
  transform: scaleY(0); transform-origin: bottom; transition: transform 500ms var(--ease-spring);
}
.podium-col.place1 .bar { height: 140px; background: var(--lemon); }
.podium-col.place2 .bar { height: 100px; background: var(--clay); }
.podium-col.place3 .bar { height: 72px; background: var(--tangerine); }
.podium-col.up .bar { transform: none; }
/* with the 3D podium live the figures stand on the blocks: the 2D columns become name cards */
.podium-view.is-live + .podium-bars { align-items: stretch; }
.podium-view.is-live + .podium-bars .avatar, .podium-view.is-live + .podium-bars .bar { display: none; }
.podium-view.is-live + .podium-bars .podium-col { padding: 8px 6px; border-radius: var(--r-md); background: #fff; box-shadow: 0 0 0 2px var(--ink), 0 3px 0 var(--edge-ink); }
/* the place as a medal on each card (the cards stand 2-1-3 like the blocks above them), ringed in the
   player's colour; the 2D bars carry the number themselves */
.podium-rank { display: none; }
.podium-view.is-live + .podium-bars .podium-rank {
  display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: 2px; border-radius: 50%;
  background: var(--clay); color: var(--ink); font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 5px var(--c);
}
.podium-view.is-live + .podium-bars .place1 .podium-rank { background: var(--lemon); width: 36px; height: 36px; font-size: 1.15rem; }
.podium-view.is-live + .podium-bars .place3 .podium-rank { background: var(--tangerine); }
#final-league a { color: var(--ink); font-weight: 700; }
.delta .count.plus { color: var(--go); }
.delta .count.minus { color: var(--stop); }

.awards-box { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.awards-box .section-title { margin: 6px 0 0; }
.awards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.award {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 2px; align-items: center;
  padding: 10px 12px; border-radius: var(--r-md); background: #fff; box-shadow: 0 0 0 2px var(--ink), 0 3px 0 var(--edge-ink);
  animation: gp-pop var(--t-base) var(--ease-spring) both; animation-delay: calc(400ms + var(--i, 0) * 90ms);
}
.award:nth-child(odd) { rotate: -1deg; }
.award:nth-child(even) { rotate: 1deg; }
.award-icon { grid-row: span 2; font-size: 1.7rem; line-height: 1; }
.award-title { font-weight: 800; }
.award-line { font-size: .85rem; color: var(--muted); line-height: 1.3; }

/* ---------- sound, reactions ---------- */
.sound-toggle {
  width: 40px; height: 40px; padding: 0; flex: none; display: grid; place-items: center;
  font-size: 1.1rem; background: var(--cream); color: var(--ink); box-shadow: var(--outline), var(--toy-1);
}
.sound-toggle svg.icon { width: 20px; height: 20px; }
.sound-toggle[aria-pressed='false'] { opacity: .75; }
.react-bar { display: flex; flex-wrap: wrap; gap: 6px; }
.react-bar button {
  width: 40px; height: 40px; padding: 0; font-size: 1.25rem; line-height: 1;
  background: #fff; box-shadow: 0 0 0 2px var(--ink), 0 3px 0 var(--edge-ink); transition: transform 120ms ease-out, opacity 150ms;
}
.react-bar button:hover { transform: scale(1.12); }
.react-bar button:active { transform: scale(.94); }
.react-bar.cool button { opacity: .5; }
/* Floating reactions: the whole window in the lobby, the map half on the reveal and final. */
.react-layer { position: fixed; inset: 0; z-index: var(--z-react); pointer-events: none; overflow: hidden; }
.react-layer.over-map { right: 42%; }
.react-column { position: absolute; width: 52px; height: 150px; } /* a lobby reaction rising from its sender's figure */

/* ---------- map markers ---------- */
.gp-pin {
  display: block; width: 26px; height: 26px; background: var(--c); border: 3px solid var(--ink);
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 3px 0 rgba(36, 23, 15, .5);
}
.gp-pin.drop { animation: pin-drop 380ms cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes pin-drop { from { transform: translateY(-26px) rotate(-45deg); opacity: 0; } }
.gp-target {
  position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--lemon); border: 3px solid var(--ink); color: var(--ink); font-weight: 800; font-size: .85rem; font-family: var(--font);
  animation: beacon-drop 520ms var(--ease-bounce) 300ms both;
}
.gp-target::before { /* one ring pulse as the beacon lands */
  content: ''; position: absolute; inset: -3px; border-radius: 50%; box-shadow: 0 0 0 3px var(--lemon);
  animation: beacon-ring 900ms ease-out 700ms both;
}
.gp-target:empty::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
@keyframes beacon-drop { from { translate: 0 -40px; opacity: 0; } 30% { opacity: 1; } }
@keyframes beacon-ring { from { scale: 1; opacity: .9; } to { scale: 2.6; opacity: 0; } }

/* ---------- phones and small tablets ---------- */
@media (max-width: 900px) {
  .lobby { height: auto; min-height: 100dvh; }
  .lobby .topbar { padding: 10px 16px; gap: 10px; }
  .topbar .copy { order: 5; }
  .topbar .account-chip { order: 6; margin-left: 0; }
  .topbar .party { margin-left: auto; }
  .topbar .manage-open { order: 5; }
  .lobby-main { display: block; }
  .lobby-stage { overflow: visible; padding: 0 16px 8px; }
  .lobby-body { overflow: visible; padding: 8px 16px 0; }
  .table-wrap { aspect-ratio: auto; height: 40vh; min-height: 240px; max-height: none; border-radius: var(--r-lg); }
  /* tiles: a swipe row, full-bleed to the screen edges, no visible scrollbar, room for the toy edge */
  .tiles {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto;
    scroll-snap-type: x mandatory; scroll-padding-inline: 16px; padding: 18px 16px 14px; margin: -6px -16px 0;
    scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .tiles::-webkit-scrollbar { display: none; }
  .tiles .tile { scroll-snap-align: start; min-height: 0; }
  .formats { grid-auto-columns: 70%; }
  .tile:where(:hover:not(:disabled)) { translate: none; }
  .seats { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
  .seat .avatar { width: 52px; height: 52px; font-size: 1.15rem; }
  .react-bar { flex-wrap: nowrap; gap: 4px; }
  .react-bar button { flex: 1 1 0; min-width: 0; width: auto; height: 38px; font-size: 1.1rem; }
  .start-row button.big { width: 100%; }

  /* round: the letterbox HUD above the panorama and the sheet below it; the panorama shrinks with the
     sheet instead of running under it, so Google's footer stays visible in both states */
  body.hud-bar .stage { top: 56px; bottom: var(--dock-h, 152px); }
  body.hud-bar .round:has(.dock.big) .stage { bottom: calc(var(--dock-h, 152px) - 40px + 58dvh); }
  body.hud-bar .round:has(.dock.hidden) .stage { bottom: 0; }
  body.hud-bar .hud-pill {
    top: 0; left: 0; right: 0; translate: none; height: 56px; max-width: none; border-radius: 0; gap: 10px;
    padding: 0 8px 0 14px; justify-content: space-between; box-shadow: 0 2px 0 rgba(0, 0, 0, .45);
  }
  body.hud-bar .tally { max-width: 40vw; flex-wrap: nowrap; overflow: hidden; gap: 3px; }
  body.hud-bar .tally-face { width: 24px; height: 24px; }
  body.hud-bar .timer-ring { width: 38px; height: 38px; }
  body.hud-bar .tools { top: 68px; translate: none; left: 10px; gap: 8px; } /* top: round.js fitTools() */
  body.hud-bar .tools.row { flex-direction: row; }
  body.hud-bar .tools.cramped { visibility: hidden; }
  .tool { width: 42px; height: 42px; }
  .dock {
    left: 0; right: 0; bottom: 0; justify-items: stretch; gap: 8px; border-radius: 18px 18px 0 0;
    padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
  }
  .dock .guess-map { order: -1; width: 100%; height: 40px; box-shadow: none; border-radius: 12px; transition: height 280ms var(--ease-in-out); }
  .dock.big .guess-map { width: 100%; height: 58dvh; box-shadow: 0 0 0 3px var(--c, var(--lemon)); }
  .sheet-handle {
    display: block; position: absolute; top: 0; left: 0; right: 0; height: 40px; z-index: 1001; border-radius: 12px;
    background: var(--cocoa-3); color: var(--cream); padding: 0; font-weight: 700; box-shadow: none; translate: none;
  }
  #guess-map { top: 40px; }
  .pin-map { display: none; }
  .dock .chips { display: flex; justify-content: stretch; }
  .dock .chips button { flex: 1; padding: .55em .3em; }
  .dock.locked .chips { display: none; }
  .chip-help { max-width: none; justify-items: stretch; }
  .chip-info { justify-self: center; }
  .guide-pill { left: 12px; right: 12px; max-width: none; }
  body.hud-bar .toast { top: 66px; bottom: auto; }

  .split { grid-template-columns: 1fr; grid-template-rows: 40dvh minmax(0, 1fr); }
  .countdown:not(.on-table) { left: 50%; }
  .split-panel { padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 -2.5px 0 var(--ink); }
  .strip-view { height: 132px; }
  .podium-view { height: 220px; }
  .my-score b { font-size: 2.6rem; }
  .rank-row { grid-template-columns: 1.4em 26px minmax(0, 1fr) auto 3.8em; padding: 7px 10px; gap: 8px; }
  .rank-row .face { width: 26px; height: 26px; }
  .rank-row .total { display: none; }
  .rank-row.stand { grid-template-columns: 1.4em 26px minmax(0, 1fr) auto 3.8em; }
  .rank-row.stand .total { display: none; }
  #final-rest .rank-row { grid-template-columns: 1.4em 26px minmax(0, 1fr) auto 3.8em; }
  #final-rest .rank-row .total { display: block; }
  .podium-col.place1 .bar { height: 100px; }
  .podium-col.place2 .bar { height: 74px; }
  .podium-col.place3 .bar { height: 54px; }
  .react-layer.over-map { right: 0; bottom: 60dvh; }
}

@media (max-width: 700px) {
  .lobby .topbar .copy, .lobby .topbar .manage-open { white-space: nowrap; padding: .5em .9em; font-size: .92rem; }
  .account-chip button { white-space: nowrap; font-size: .92rem; }
  /* the phone row: names only (the roster below carries the badges) */
  .name-tag { font-size: .7rem; padding: 1px 6px 1px 4px; }
  .name-tag .tag-sticker:not(.is-you) { display: none; }
}

/* Motion off (§5.7): everything lands in its end state; nothing loops. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .highlights .hl, .timer-ring.pulse, .table-wrap.shake, .countdown-n.drop, .rank-row.hop, .tally-face.pop, .award, .my-score .tags .tag, .gp-target, .gp-target::before, .dock .lock.done { animation: none !important; }
  .react-bar button:hover, .react-bar button:active { transform: none; }
  .veil.on, .intro { transition: none !important; }
}

/* ---- Home turf (lobby) ---- */
.turf { margin: 4px 0; padding: 14px 16px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--outline), var(--toy-1); }
.turf h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.turf p { margin: .3rem 0; }
.turf-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.turf-row .hidden { display: none; }
#turf-map { height: 240px; border-radius: var(--r-md); margin-top: .5rem; box-shadow: 0 0 0 2px var(--ink); }
#turf-status.bad { color: var(--stop); }
.badge.turf { background: transparent; padding: 0; font-size: 1rem; line-height: 1; }
button.badge.turf-clear { border: 0; cursor: pointer; font: inherit; font-size: .8rem; padding: 2px 6px; border-radius: 999px; background: var(--clay); color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); translate: none; }
button.badge.turf-clear:hover, button.badge.turf-clear:focus-visible { background: var(--stop-bright); }

/* ---- Underdog's call: chunky cards; the chosen one drops into the table ---- */
.pick { margin: 4px 0; padding: 14px 16px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--outline), var(--toy-1); }
.pick p { margin: 0 0 .6rem; font-weight: 700; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pick .card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 116px; padding: 12px;
  border-radius: var(--r-md); text-align: left; color: var(--ink); font-weight: 400; background: var(--cream);
  box-shadow: var(--outline), var(--toy-2);
}
.pick .card .mode-icon { font-size: 1.6rem; line-height: 1; }
.pick .card b { font-size: 1.02rem; font-weight: 800; }
.pick .card .mode-text { font-size: .82rem; line-height: 1.3; color: var(--ink-2); }
.pick .card[aria-pressed='true'] { background: var(--lemon); translate: 0 3px; box-shadow: var(--outline), var(--toy-1); }
.pick .card:focus-visible { outline: 3px dashed var(--ink); outline-offset: 4px; }
.pick button.card:disabled { opacity: 1; cursor: default; color: var(--ink); }
.pick button.card:disabled:not([aria-pressed='true']) { background: var(--clay); box-shadow: 0 0 0 2.5px var(--ink-2); }
@media (max-width: 700px) { .cards { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .pick .card { transition: none; translate: none !important; } }

/* ---------- moderation (host): the Players sheet and the lock badge ---------- */
.locked-badge { background: var(--clay); color: var(--ink); border-radius: 999px; padding: .3em .8em; font-size: .85rem; font-weight: 700; box-shadow: 0 0 0 2px var(--ink); }
#manage { display: none; }
#manage[open] { display: grid; gap: 14px; }
.lock-switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; line-height: 1.35; }
.lock-switch input {
  appearance: none; flex: none; position: relative; width: 46px; height: 26px; padding: 0; margin: 0; cursor: pointer;
  border-radius: 999px; background: var(--clay); box-shadow: inset 0 0 0 2px var(--ink); transition: background 150ms;
}
.lock-switch input::after {
  content: ''; position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ink); transition: transform 150ms;
}
.lock-switch input:checked { background: var(--lemon); }
.lock-switch input:checked::after { transform: translateX(20px); }
.lock-switch input:focus-visible { outline: 2px dashed var(--ink); outline-offset: 3px; }
.dusk .lock-switch input { background: var(--cocoa-3); box-shadow: inset 0 0 0 2px var(--sand); }
.dusk .lock-switch input::after { background: var(--cream); }
.dusk .lock-switch input:checked { background: var(--lemon); }
.dusk .lock-switch input:checked::after { background: var(--ink); }
.manage-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 50vh; overflow: auto; }
.manage-row { display: flex; align-items: center; gap: 10px; }
.manage-row .avatar { width: 34px; height: 34px; font-size: .85rem; box-shadow: 0 0 0 2px var(--ink); }
.manage-row.off { opacity: .6; }
.manage-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manage-kick { flex: none; padding: .4em .9em; font-size: .9rem; }
.manage-kick.armed { background: var(--stop-bright); color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .lock-switch input, .lock-switch input::after { transition: none; }
}
.gone .btn.big { justify-self: center; }

/* ---------- your figure (look-editor.js): the button in the join sheet, the lobby and the final ---------- */
dialog.sheet .name-row { display: flex; align-items: flex-end; gap: 14px; }
dialog.sheet .name-row > .field, dialog.sheet .name-row > #name-account { flex: 1; min-width: 0; margin: 0; }
dialog.sheet .name-row > #name-account { align-self: center; }
.roster-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.roster-head .section-title { margin: 0; }
.figure-open { padding: .45em 1.1em; font-size: var(--fs-small); }
