/* Game Night. Copyright (C) 2026 B7 Collective LLC.
   Its own feel inside The Imagination Space: a game show on a fairground midway at dusk. The question sits on a marquee
   framed in warm bulbs, the answers are three lit booths, and every right answer earns a ticket in the player's color.
   Big type everywhere, and a TV mode sized from the screen's height, so a family on the couch can read it from 10 feet. */

@font-face { font-family: "Literata"; src: url("/assets/fonts/literata-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("/assets/fonts/literata-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("/assets/fonts/literata-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --dusk: #0D1326; --dusk-2: #141C38; --dusk-3: #1B2547; --panel: rgba(17, 24, 48, .9); --panel-2: rgba(28, 37, 70, .82);
  --text: #F6F1E7; --text-2: rgba(246, 241, 231, .8); --text-3: rgba(246, 241, 231, .66); --hair: rgba(246, 241, 231, .16); --hair-2: rgba(246, 241, 231, .28);
  --bulb: #FFD27A; --bulb-hot: #FFF3D1; --amber: #F2B544; --amber-lip: #C88D21; --amber-ink: #2A1D05;
  --yes: #7FDCAA; --yes-deep: #1F6B47; --no: #F2A68C;
  --c0: #5CC8B8; --c1: #F28AA8; --c2: #B9A0F5;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1); --spring: cubic-bezier(.34, 1.5, .5, 1);
  --pad: clamp(14px, 3.6vw, 44px);
  --r: 16px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; height: 100%; scroll-padding-bottom: 120px; }
body { margin: 0; min-height: 100%; min-height: 100dvh; background: var(--dusk); color: var(--text); font: 400 18px/1.5 var(--sans); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -.012em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--bulb); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; padding: 12px 18px; border-radius: 12px; background: var(--amber); color: var(--amber-ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--bulb-hot); outline-offset: 3px; box-shadow: 0 0 0 7px rgba(242, 181, 68, .45); }
main:focus, [tabindex="-1"]:focus { outline: none; box-shadow: none; }
.muted { color: var(--text-3); }
.small { font-size: 15px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.kicker { font: italic 400 clamp(18px, .5vw + 14px, 24px)/1.3 var(--serif); color: var(--bulb); } /* the announcer's line, not a label */

/* ---------------------------------------------------------------- the midway behind everything */
.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--dusk); }
.sky img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: .95; filter: saturate(1.1); }
.sky::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(13, 19, 38, .7) 0%, rgba(13, 19, 38, .3) 50%, rgba(13, 19, 38, .05) 100%),
  linear-gradient(180deg, rgba(13, 19, 38, .1), rgba(13, 19, 38, .2) 55%, rgba(13, 19, 38, .85) 92%); }
body:not([data-view="home"]) .sky::after { background: linear-gradient(180deg, rgba(13, 19, 38, .55), rgba(13, 19, 38, .88)); }
body[data-view="play"] .sky img { opacity: .5; filter: blur(3px) saturate(1.1); transform: scale(1.04); }
body[data-view="play"] .sky::after { background: radial-gradient(90% 80% at 50% 40%, rgba(13, 19, 38, .55), rgba(13, 19, 38, .92)); }

/* ---------------------------------------------------------------- top bar */
.bar { position: relative; z-index: 5; display: flex; align-items: center; gap: 18px; max-width: 1560px; margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) calc(max(var(--pad), env(safe-area-inset-right)) + 190px) 10px max(var(--pad), env(safe-area-inset-left)); }
.bar-base { position: absolute; width: 0; height: 0; } /* the Who's playing chip sits fixed at the top right; it lives here so it comes early in the tab order */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); min-height: 44px; }
.brand b { display: block; font: 600 22px/1 var(--serif); }
.brand small { display: block; margin-top: 3px; font-size: 13px; color: var(--text-3); }
.bar-nav { display: flex; gap: 4px; margin-left: auto; }
.bar-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px; color: var(--text-2); text-decoration: none; font-weight: 700; font-size: 16px; }
.bar-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.bar-nav a[aria-current] { color: var(--text); box-shadow: inset 0 -3px 0 var(--amber); border-radius: 12px 12px 4px 4px; }
@media (max-width: 899px) { .bar-nav { display: none; } }
@media (max-width: 520px) { .brand small { display: none; } .brand b { font-size: 19px; } .bar { min-height: 64px; } }
@media (max-width: 460px) { .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }
.phone-nav { display: none; }
@media (max-width: 899px) { .phone-nav { display: flex; flex-wrap: wrap; gap: 10px; } }
body[data-view="play"] .bar-nav { display: none; }

main { position: relative; z-index: 1; }
.view { max-width: 1560px; margin: 0 auto; padding: 8px max(var(--pad), env(safe-area-inset-right)) calc(40px + env(safe-area-inset-bottom)) max(var(--pad), env(safe-area-inset-left)); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: var(--text); font: 700 18px/1.2 var(--sans); text-decoration: none;
  transition: transform .18s var(--ease), background .18s, box-shadow .18s; }
.btn:hover { background: rgba(255, 255, 255, .16); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.amber { background: linear-gradient(180deg, #FFD27A, var(--amber) 55%, #E3A232); color: var(--amber-ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .55) inset, 0 -3px 0 var(--amber-lip) inset, 0 12px 24px -14px rgba(0, 0, 0, .7); }
.btn.amber:hover { background: linear-gradient(180deg, #FFE1A0, #F6C25E 55%, #E9AC3E); }
.btn.ghost { background: transparent; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.btn.big { min-height: 64px; padding: 16px 30px; font-size: clamp(19px, 1vw + 12px, 26px); }
.btn[disabled] { cursor: not-allowed; background: rgba(255, 255, 255, .07); color: var(--text-3); box-shadow: none; }
.btn svg { flex: none; }
.link { min-height: 44px; padding: 8px 4px; border: 0; background: none; color: var(--bulb); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* ---------------------------------------------------------------- the marquee: a panel framed with warm bulbs */
.marquee { --b: 24px; position: relative; isolation: isolate; border-radius: 30px; padding: calc(var(--b) + clamp(18px, 2.4vw, 40px));
  background: radial-gradient(120% 90% at 50% 0%, #22305C, #141B37 60%, #10162C); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 210, 122, .18); }
@property --k1 { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --k2 { syntax: "<number>"; inherits: true; initial-value: 1; }
.marquee::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: var(--b); pointer-events: none;
  --on1: color-mix(in srgb, var(--bulb-hot) calc(var(--k1) * 100%), #6B5226); --gl1: color-mix(in srgb, var(--bulb) calc(var(--k1) * 100%), #4F3C1C); --ha1: color-mix(in srgb, rgba(255, 196, 90, .32) calc(var(--k1) * 100%), transparent);
  --on2: color-mix(in srgb, var(--bulb-hot) calc(var(--k2) * 100%), #6B5226); --gl2: color-mix(in srgb, var(--bulb) calc(var(--k2) * 100%), #4F3C1C); --ha2: color-mix(in srgb, rgba(255, 196, 90, .32) calc(var(--k2) * 100%), transparent);
  background:
    radial-gradient(circle at 25% 25%, var(--on1) 0 calc(var(--b) * .1), var(--gl1) calc(var(--b) * .142), var(--ha1) calc(var(--b) * .233), transparent calc(var(--b) * .396)) center / calc(var(--b) * 2) calc(var(--b) * 2) round,
    radial-gradient(circle at 75% 75%, var(--on1) 0 calc(var(--b) * .1), var(--gl1) calc(var(--b) * .142), var(--ha1) calc(var(--b) * .233), transparent calc(var(--b) * .396)) center / calc(var(--b) * 2) calc(var(--b) * 2) round,
    radial-gradient(circle at 75% 25%, var(--on2) 0 calc(var(--b) * .1), var(--gl2) calc(var(--b) * .142), var(--ha2) calc(var(--b) * .233), transparent calc(var(--b) * .396)) center / calc(var(--b) * 2) calc(var(--b) * 2) round,
    radial-gradient(circle at 25% 75%, var(--on2) 0 calc(var(--b) * .1), var(--gl2) calc(var(--b) * .142), var(--ha2) calc(var(--b) * .233), transparent calc(var(--b) * .396)) center / calc(var(--b) * 2) calc(var(--b) * 2) round;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.marquee::after { content: ""; position: absolute; inset: var(--b); z-index: -1; border-radius: calc(30px - var(--b) / 2); pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 210, 122, .3); }
.marquee.win::before { animation: glow 1.4s var(--ease) 2; }
@keyframes glow { 50% { filter: brightness(1.6) drop-shadow(0 0 6px rgba(255, 210, 122, .9)); } }
/* The light chase: the two sets of bulbs trade places slowly (well under three changes a second, and soft, never a flash) */
.chase::before { animation: chase 1.1s ease-in-out infinite; }
@keyframes chase { 0%, 100% { --k1: 1; --k2: .28; } 50% { --k1: .28; --k2: 1; } }

/* ---------------------------------------------------------------- home */
.home { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); padding-top: clamp(8px, 4vh, 56px); }
.hero { max-width: 980px; }
.hero h1 { margin-top: 14px; font-size: clamp(38px, 3vw + 3vh + 8px, 92px); font-weight: 600; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--bulb); }
.hero .lede { margin-top: 18px; max-width: 46ch; font-size: clamp(18px, .5vw + 16px, 24px); color: var(--text-2); }
.hero .row { margin-top: 28px; }
.lastgame { max-width: 1180px; }
.lastgame h2 { font-size: 26px; }
.mini { list-style: none; margin: 14px 0 18px; padding: 0; display: grid; gap: 10px; }
.mini li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.mini .nm { font-weight: 700; font-size: 19px; min-width: 6ch; }
.mini .n { margin-left: auto; color: var(--text-2); }
.crown { color: var(--bulb); }

/* people dots, levels, tickets */
.dot { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font: 700 20px/1 var(--sans); box-shadow: 0 0 0 2px rgba(255, 255, 255, .18); }
.dot.sm { width: 34px; height: 34px; font-size: 16px; }
.dot.lg { width: clamp(56px, 4vw + 30px, 96px); height: clamp(56px, 4vw + 30px, 96px); font-size: clamp(26px, 2vw + 14px, 44px); }
.lvl { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--text-2); white-space: nowrap; }
.lvl.none { color: var(--bulb); text-decoration: underline; text-underline-offset: 4px; }
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.pips i.on { background: var(--bulb); }
.tix { display: inline-flex; flex-wrap: wrap; gap: 3px; }
.tk { filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .35)); }
.tk use { fill: currentColor; }
.tk.empty use { fill: rgba(255, 255, 255, .1); }

/* ---------------------------------------------------------------- setup */
.setup, .bests, .levels { padding-top: clamp(4px, 2vh, 28px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 1180px; }
.head h1 { margin-top: 8px; font-size: clamp(34px, 2vw + 2vh + 12px, 64px); }
.notice { color: var(--no); font-weight: 700; font-size: 19px; }
.group { padding: 0; }
.setup { gap: clamp(28px, 4vh, 44px); }
.group h2 { font-size: 24px; margin-bottom: 14px; }
.glabel { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.empty { color: var(--text-2); font-size: 19px; margin-bottom: 16px; }
.players { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.player { display: flex; align-items: stretch; gap: 8px; border-radius: 14px; background: rgba(255, 255, 255, .05); transition: background .2s; }
.player.on { background: rgba(255, 210, 122, .14); }
.pick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 14px; border: 0; background: none; cursor: pointer; text-align: left; border-radius: 18px; }
.pick .nm { font-size: 21px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) { .lvbtn { padding: 8px 8px 8px 0; } .lvbtn .pips { display: none; } .pick { gap: 10px; padding: 10px; } .pick .chk { width: 26px; height: 26px; } .player .dot { width: 38px; height: 38px; } }
.pick .chk { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--hair-2); }
.player.on .chk { background: var(--bulb) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%232A1D05' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; box-shadow: none; }
.lvbtn { flex: none; display: flex; align-items: center; min-height: 64px; padding: 8px 14px; border: 0; background: none; cursor: pointer; border-radius: 18px; }
.lvbtn:hover .lvl { background: rgba(255, 255, 255, .14); }
.chooser-row { list-style: none; }
.chooser { padding: 16px; border-radius: 14px; background: rgba(0, 0, 0, .25); }
.ch-h { color: var(--text-2); margin-bottom: 12px; }
.lvseg { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.lvseg button { display: grid; justify-items: start; gap: 4px; min-height: 84px; padding: 12px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .07); text-align: left; cursor: pointer; }
.lvseg button:hover { background: rgba(255, 255, 255, .12); }
.lvseg button[aria-checked="true"] { background: rgba(255, 210, 122, .16); box-shadow: inset 0 0 0 2px var(--bulb); }
.lvseg b { font-size: 18px; }
.lvseg small { color: var(--text-3); font-size: 14px; line-height: 1.25; }
.sample { margin-top: 14px; min-height: 5.6em; }
.sample .sl { color: var(--text-2); }
.sample .sq { margin-top: 6px; font: italic 400 19px/1.4 var(--serif); }
.sample .sq span { font: 700 14px var(--sans); font-style: normal; color: var(--text-3); display: block; }
@media (max-width: 699px) { .lvseg { grid-template-columns: 1fr; } .lvseg button { min-height: 56px; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; } .lvseg small { grid-column: 2; } .lvseg .pips { grid-row: span 2; } }
.btn.add { justify-content: flex-start; background: rgba(255, 210, 122, .1); color: var(--bulb); }
.addform label { display: block; font-weight: 700; margin-bottom: 8px; }
.addform input { flex: 1 1 220px; min-height: 56px; padding: 10px 16px; border-radius: 14px; border: 0; background: rgba(255, 255, 255, .92); color: #141B33; font-size: 20px; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .1); }
.addform input:focus-visible { outline: 3px solid #141B33; box-shadow: 0 0 0 7px var(--amber); }
.addform .msg { margin-top: 8px; color: var(--no); font-weight: 700; min-height: 1.4em; }
.addform .muted { margin-top: 4px; }
.topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.topic { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border: 0; border-radius: 16px; cursor: pointer; text-align: left;
  background: rgba(255, 255, 255, .06); color: var(--text-2); font-weight: 700; font-size: 18px; }
.topic .glyph { flex: none; color: var(--tc); opacity: .55; }
.topic.on { color: var(--text); background: color-mix(in srgb, var(--tc) 16%, transparent); box-shadow: inset 0 0 0 2px var(--tc); }
.topic.on .glyph { opacity: 1; }
@media (max-width: 899px) { .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 799px) { .split { grid-template-columns: 1fr; } }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.seg button { display: grid; gap: 2px; justify-items: start; min-height: 76px; padding: 10px 14px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .07); cursor: pointer; text-align: left; }
.seg button[aria-checked="true"] { background: rgba(255, 210, 122, .16); box-shadow: inset 0 0 0 2px var(--bulb); }
.seg b { font: 600 28px/1 var(--serif); }
.seg span { font-size: 14px; color: var(--text-3); line-height: 1.25; }
.switch { display: flex; align-items: flex-start; gap: 16px; width: 100%; padding: 12px 0; border: 0; background: none; text-align: left; cursor: pointer; }
.switch .knob { flex: none; position: relative; width: 56px; height: 32px; margin-top: 2px; border-radius: 999px; background: rgba(255, 255, 255, .18); transition: background .2s; }
.switch .knob::after { content: ""; position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .25s var(--spring); }
.switch[aria-checked="true"] .knob { background: var(--amber); }
.switch[aria-checked="true"] .knob::after { transform: translateX(24px); }
.switch b { display: block; font-size: 19px; }
.switch small { display: block; margin-top: 2px; color: var(--text-3); font-size: 15px; }
.go { position: sticky; bottom: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 20px;
  margin: 0 calc(-1 * var(--pad)); padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom)); background: rgba(13, 19, 38, .97); box-shadow: 0 -1px 0 var(--hair); }
@media (max-width: 599px) { .go { justify-content: stretch; } .go .btn { flex: 1 1 100%; } .go p { flex: 1 1 100%; text-align: center; } }

/* ---------------------------------------------------------------- play */
.play { display: grid; gap: clamp(12px, 1.6vw, 22px); padding-top: clamp(0px, 1vh, 16px); grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "board" "choices" "why" "act" "score"; }
.play > .qboard, .play > .handoff { grid-area: board; }
.play > .choices { grid-area: choices; }
.play > .act { grid-area: act; }
.play > .why { grid-area: why; }
.round { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); font-size: clamp(16px, .5vw + 13px, 22px); }
.round .glyph { color: var(--tc); }
.round b { color: var(--text); }
.qhead { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; align-items: center; }
.qhead .for { display: inline-flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: clamp(16px, .5vw + 13px, 22px); }
.q { margin-top: clamp(14px, 2vh, 28px); font-size: clamp(27px, 1.7vw + 2.1vh + 8px, 84px); font-weight: 600; line-height: 1.14; }
.q:focus { outline: none; }

.choices { display: grid; gap: clamp(10px, 1.2vw, 16px); }
.choice { --cc: var(--c0); position: relative; display: flex; align-items: center; gap: clamp(12px, 1.2vw, 20px); width: 100%; min-height: clamp(64px, 5vh + 30px, 120px);
  padding: clamp(10px, 1vw, 16px) clamp(14px, 1.6vw, 26px) clamp(10px, 1vw, 16px) clamp(10px, 1vw, 16px); border: 0; border-radius: 20px; cursor: pointer; text-align: left;
  background: rgba(255, 255, 255, .08); color: var(--text);
  font: 700 clamp(20px, 1vw + 1.3vh + 6px, 48px)/1.2 var(--sans); transition: transform .2s var(--ease), background .2s, box-shadow .2s, opacity .3s; }
.choice.c1 { --cc: var(--c1); } .choice.c2 { --cc: var(--c2); }
.choice .letter { flex: none; display: grid; place-items: center; width: clamp(44px, 2vw + 26px, 76px); aspect-ratio: 1; border-radius: 50%; background: var(--cc); color: #10162C;
  font: 600 clamp(22px, 1vw + 14px, 38px)/1 var(--serif); }
.choice .txt { flex: 1; }
.choice:hover:not([aria-disabled]) { background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .07)); }
.choice.sel { background: color-mix(in srgb, var(--cc) 22%, rgba(13, 19, 38, .6)); box-shadow: inset 0 0 0 3px var(--cc); transform: translateX(4px); }
.choice[aria-disabled] { cursor: default; }
.choice.right { background: rgba(127, 220, 170, .2); box-shadow: inset 0 0 0 3px var(--yes); animation: lit .7s var(--spring); }
.choice.right .letter { background: var(--yes); }
.choice.missed { opacity: .82; box-shadow: inset 0 0 0 2px rgba(242, 166, 140, .7); }
.choice.dim { opacity: .66; }
.choice .tag { flex: none; padding: 4px 12px; border-radius: 999px; font-size: clamp(13px, .4vw + 10px, 18px); background: rgba(0, 0, 0, .3); color: var(--text-2); }
.choice.right .tag { background: var(--yes); color: #0D2A1C; }
@keyframes lit { 0% { filter: brightness(1); } 50% { filter: brightness(1.35); } 100% { filter: brightness(1); } }

.act { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; align-items: center; }
.act .lock { min-width: min(100%, 300px); }
.why { padding: clamp(18px, 2vw, 32px); border-radius: var(--r); background: var(--panel); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); animation: rise .5s var(--ease) both; }
.verdict { display: flex; align-items: center; gap: 14px; font: 600 clamp(26px, 1.4vw + 1.4vh + 8px, 60px)/1.1 var(--serif); }
.verdict.yes { color: var(--yes); }
.verdict.no { color: var(--text); }
.ticket-pop { flex: none; animation: pop .8s var(--spring) both; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .4)); }
.ticket-pop use { fill: currentColor; }
.ans { margin-top: 12px; font-size: clamp(20px, .8vw + 1vh + 8px, 38px); }
.ans b { color: var(--yes); }
.because { margin-top: 14px; font: 400 clamp(19px, .6vw + 1vh + 8px, 34px)/1.45 var(--serif); color: var(--text-2); }
.src { margin-top: 14px; font-size: clamp(15px, .3vw + 13px, 20px); color: var(--text-3); }
.src a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--bulb); font-weight: 700; text-underline-offset: 4px; }
.why .row { margin-top: 18px; justify-content: flex-end; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes pop { 0% { transform: translateY(18px) rotate(-14deg) scale(.4); opacity: 0; } 100% { transform: none; opacity: 1; } }

.handoff { display: grid; justify-items: center; text-align: center; gap: clamp(10px, 1.6vh, 20px); padding-top: clamp(30px, 6vh, 80px); padding-bottom: clamp(30px, 6vh, 80px); }
.handoff .who { display: inline-flex; align-items: center; gap: clamp(14px, 1.4vw, 26px); font-size: clamp(44px, 3vw + 4vh + 6px, 130px); }
.handoff .btn { margin-top: 10px; }
.board { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.board li { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 12px; }
.board li.now { background: color-mix(in srgb, var(--pc) 30%, transparent); }
.board .nm { display: grid; font-weight: 700; font-size: 17px; line-height: 1.15; }
.board .nm small { font-weight: 400; color: var(--text-3); font-size: 13px; }
.board .n { margin-left: 4px; font: 600 26px/1 var(--serif); min-width: 1.2ch; text-align: right; }
.board .tix { max-width: 140px; }
@media (max-width: 599px) {
  .board { flex-wrap: wrap; gap: 6px; }
  .board li { flex: 1 1 calc(50% - 6px); min-width: 0; padding: 6px 10px 6px 6px; gap: 8px; }
  .board .nm { min-width: 0; font-size: 15px; }
  .board .nm, .board .nm small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .board .n { margin-left: auto; font-size: 22px; }
  .board .tix { display: none; }
  .act { position: sticky; bottom: 0; z-index: 3; margin: 0 calc(-1 * var(--pad)); padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, rgba(13, 19, 38, .96) 30%); }
  .act .lock { flex: 1; }
  .phase-reveal .choice.dim { display: none; }
  .marquee { --b: 18px; border-radius: 24px; }
  .qboard.marquee { padding: calc(var(--b) + 16px); }
}

/* Wide screens, a laptop or the TV: the question and booths on the left, the scoreboard or the reveal on the right */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .play { grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); align-items: start; column-gap: clamp(20px, 2.4vw, 44px);
    grid-template-areas: "board score" "choices score" "act score"; grid-template-rows: auto auto 1fr; }
  .play.phase-reveal { grid-template-areas: "board why" "choices why" "act score"; grid-template-rows: auto auto 1fr; }
  .play.phase-turn { grid-template-columns: minmax(0, 1fr); grid-template-areas: "board" "score"; justify-items: center; }
  .play.phase-turn .handoff { width: min(100%, 1100px); }
  .play.phase-turn .board { justify-content: center; }
  .play.phase-turn .side { width: min(100%, 1100px); }
  .play .board { flex-direction: column; flex-wrap: nowrap; }
  .play.phase-turn .board { flex-direction: row; flex-wrap: wrap; }
  .play.phase-turn .side { justify-items: center; }
  .board li { padding: 10px 16px 10px 10px; }
  .board .tix { max-width: none; flex: 1; }
  .board .n { margin-left: auto; }
  .play .why { position: sticky; top: 16px; }
}
@media (min-width: 1700px) { .board .nm { font-size: 22px; } .board .nm small { font-size: 16px; } .board .n { font-size: 34px; } .dot.sm { width: 42px; height: 42px; font-size: 19px; } }

/* A phone on its side: the question on the left, the booths on the right */
@media (orientation: landscape) and (max-height: 520px) {
  .bar { padding-top: 6px; padding-bottom: 4px; }
  .play { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "board choices" "act choices"; align-items: start; column-gap: 16px; }
  .play.phase-reveal { grid-template-areas: "board why" "choices why"; }
  .play.phase-turn { grid-template-columns: 1fr; grid-template-areas: "board"; }
  .play > .side { display: none; }
  .play .marquee { --b: 16px; padding: calc(var(--b) + 14px); border-radius: 22px; }
  .play .q { font-size: clamp(20px, 4.4vh + 8px, 32px); margin-top: 8px; }
  .play .choice { min-height: 56px; font-size: 18px; padding: 6px 12px 6px 8px; }
  .play .choice .letter { width: 38px; font-size: 20px; }
  .play .choices { gap: 8px; }
  .play.phase-reveal .choice.dim { display: none; }
  .handoff { padding-top: 18px; padding-bottom: 18px; gap: 6px; }
  .handoff .who { font-size: 40px; }
  .verdict { font-size: 26px; } .because { font-size: 18px; } .ans { font-size: 19px; }
  .act { position: static; background: none; padding: 0; margin: 0; }
}

/* A foldable half-open on the table (tabletop): the question on the top half, the booths on the bottom half */
@media (vertical-viewport-segments: 2) {
  body[data-view="play"] .bar { display: none; }
  .play { position: fixed; inset: 0; z-index: 2; overflow: hidden; padding: 0 max(var(--pad), env(safe-area-inset-left)); gap: 0; grid-template-columns: minmax(0, 860px); justify-content: center;
    grid-template-rows: env(viewport-segment-height 0 0, 50vh) calc(env(viewport-segment-top 0 1, 50vh) - env(viewport-segment-bottom 0 0, 50vh)) 1fr;
    grid-template-areas: "board" "." "choices"; }
  .play.phase-reveal { grid-template-areas: "board" "." "why"; }
  .play.phase-turn { grid-template-areas: "board" "." "score"; }
  .play > .qboard, .play > .handoff { align-self: center; max-height: calc(env(viewport-segment-height 0 0, 50vh) - 24px); overflow: auto; }
  .play > .choices, .play > .why, .play.phase-turn > .side { align-self: start; padding-top: 18px; max-height: calc(100vh - env(viewport-segment-top 0 1, 50vh)); overflow: auto; }
  .play.phase-ask > .act { position: fixed; right: var(--pad); bottom: 16px; padding: 0; background: none; margin: 0; }
  .play.phase-ask > .side, .play.phase-reveal > .side, .play.phase-reveal > .choices { display: none; }
}
/* A foldable open like a book (hinge down the middle): the question on the left page, the booths on the right */
@media (horizontal-viewport-segments: 2) {
  .play { grid-template-columns: calc(env(viewport-segment-width 0 0, 50vw) - var(--pad)) calc(env(viewport-segment-left 1 0, 50vw) - env(viewport-segment-right 0 0, 50vw)) 1fr; column-gap: 0;
    grid-template-areas: "board . choices" "score . act"; }
  .play.phase-reveal { grid-template-areas: "board . why" "choices . why"; }
  .play.phase-turn { grid-template-areas: "board . score"; }
  .play > .why, .play > .choices, .play > .act { padding-left: 20px; }
}

/* ---------------------------------------------------------------- end of the night */
.end { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; padding-top: clamp(4px, 2vh, 28px); max-width: 1180px; }
.result h1 { margin-top: 12px; font-size: clamp(40px, 3vw + 3vh + 6px, 96px); }
.result .lede { margin-top: 12px; color: var(--text-2); font-size: clamp(18px, .5vw + 15px, 24px); max-width: 52ch; }
.final { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 10px; }
.final li { display: grid; grid-template-columns: 40px auto minmax(0, 1fr) auto; align-items: center; gap: 8px 16px; padding: 12px 18px; border-radius: 14px; }
.final li.top { background: rgba(255, 210, 122, .14); }
.final .place { font: 600 26px/1 var(--serif); color: var(--text-3); text-align: center; }
.final li.top .place { color: var(--bulb); }
.final .nm { display: grid; font-weight: 700; font-size: clamp(20px, .6vw + 16px, 28px); line-height: 1.15; }
.final .nm small { font-weight: 400; font-size: 15px; color: var(--text-3); }
.final .tix { grid-column: 3 / 4; grid-row: 2; }
.final .n { font: 600 clamp(22px, .6vw + 18px, 32px)/1 var(--serif); grid-row: 1 / span 2; grid-column: 4; }
.final li > .dot { grid-row: 1 / span 2; }
.final .place { grid-row: 1 / span 2; }
.recap { }
.recap h2 { font-size: 24px; }
.recap ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.recap li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; padding: 10px 4px; border-top: 1px solid var(--hair); }
.recap .qq { display: grid; gap: 2px; }
.recap .qq small { color: var(--text-3); font-size: 15px; }
.recap .mk { font-weight: 700; color: var(--text-3); width: 1.4em; text-align: center; }
.recap li.ok .mk { color: var(--yes); }

/* ---------------------------------------------------------------- bests */
.empty-big { display: grid; justify-items: start; gap: 18px; }
.empty-big p { font-size: clamp(19px, .5vw + 16px, 24px); max-width: 48ch; color: var(--text-2); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.person { padding: 20px; border-radius: var(--r); background: var(--panel); }
.person header { display: flex; gap: 14px; align-items: center; }
.person h2 { font-size: 28px; margin-bottom: 6px; }
.person .dot.lg { width: 60px; height: 60px; font-size: 28px; }
.nums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px 0 0; }
.nums div { padding: 4px 0; }
.nums dt { font-size: 14px; color: var(--text-3); }
.nums dd { margin: 2px 0 0; font: 600 24px/1.1 var(--serif); }
.bars h3 { margin-top: 18px; font: 700 16px var(--sans); color: var(--text-2); }
.bars ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.bars li { display: grid; grid-template-columns: 7.2em minmax(40px, 1fr) auto; gap: 10px; align-items: center; font-size: 15px; }
.bars .tn { display: inline-flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.bars .tn .glyph { color: var(--tc); }
.bars .meter { display: block; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bars .meter i { display: block; height: 100%; border-radius: inherit; background: var(--tc); }
.bars .tv { color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fresh { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--hair-2); color: var(--text-2); }

/* ---------------------------------------------------------------- levels */
.levels .lede { color: var(--text-2); font-size: clamp(18px, .5vw + 15px, 23px); max-width: 60ch; }
.ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ladder li { display: grid; grid-template-columns: minmax(200px, 260px) 1fr; gap: 6px 26px; padding: 22px 0; }
.ladder li + li { border-top: 1px solid var(--hair); }
.ladder .lh { grid-row: span 3; display: grid; gap: 6px; align-content: start; justify-items: start; }
.ladder .lvl { font-size: 18px; }
.ladder .ages { color: var(--text-3); font-size: 15px; }
.ladder .eg { font: italic 400 19px/1.4 var(--serif); color: var(--text); }
.ladder .eg span { font: 700 14px var(--sans); color: var(--text-3); font-style: normal; }
.ladder .cnt { color: var(--text-3); font-size: 14px; }
@media (max-width: 699px) { .ladder li { grid-template-columns: 1fr; } .ladder .lh { grid-row: auto; } }
.fine { }
.fine h2 { font-size: 24px; }
.fine ul { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--text-2); }
.plain { display: grid; gap: 14px; padding-top: 6vh; max-width: 760px; }
.plain h1 { font-size: clamp(30px, 2vw + 20px, 52px); }
.noscript { padding: 40px var(--pad); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) { .marquee::before { display: none; } .choice, .btn, .topic, .player { border: 2px solid ButtonText; } }

/* tonight's rounds, under the scoreboard on wide screens */
.side { display: grid; gap: 18px; align-content: start; }
.play > .side { grid-area: score; }
.rounds { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rounds .rl { width: 100%; font-size: 15px; color: var(--text-3); font-weight: 700; }
.rounds li { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--tc); background: rgba(255, 255, 255, .05); opacity: .5; }
.rounds li.done { opacity: .85; }
.rounds li.now { opacity: 1; background: color-mix(in srgb, var(--tc) 28%, transparent); }
@media (max-width: 899px), (max-aspect-ratio: 1/1) { .rounds { display: none; } }

.endq { margin-top: 18px; }
.endq .row { margin-top: 10px; }

@media (max-width: 599px) {
  .final li { grid-template-columns: 22px auto minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 14px; }
  .final .place { font-size: 20px; }
  .final .tk { width: 18px; height: 11px; }
  .final .tix { gap: 2px; }
}
.marquee.chase.win::before { animation: glow 1.4s var(--ease) 2, chase 1.1s ease-in-out 2.8s infinite; }

/* ================================================================ Game Night additions */
/* header tools: TV mode and sound */
.bar-tools { display: flex; gap: 6px; margin-left: 12px; }
.tool { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 8px 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .08); color: var(--text); font: 700 15px/1 var(--sans); white-space: nowrap; }
.tool:hover { background: rgba(255, 255, 255, .15); }
#tv-toggle[aria-pressed="true"] { background: rgba(255, 210, 122, .18); box-shadow: inset 0 0 0 2px var(--bulb); }
#sound-toggle { padding: 8px; }
#sound-toggle[aria-pressed="false"] { color: var(--text-3); }
@media (max-width: 899px) { .bar-tools { margin-left: auto; } }
@media (max-width: 640px) { #tv-toggle { padding: 8px; } #tv-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
.brand small { white-space: nowrap; }
@media (max-width: 460px) {
  .brand span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .brand { gap: 8px; } .brand svg { width: 34px; height: 34px; } .brand b { font-size: 17px; } .brand small { display: block; font-size: 10.5px; margin-top: 2px; }
  .bar { gap: 8px; }
}
@media (max-width: 380px) { .brand svg { display: none; } }

/* the name and the house, wherever the name is shown big */
.title { display: block; }
.house { display: block; margin-top: .35em; font: italic 400 .3em/1.1 var(--serif); color: var(--bulb); }
.hero h1 .title { font-size: 1em; }

/* home: the four games */
.games { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 16px; max-width: 1180px; }
/* each game is a carnival ticket: colored card stock, dark ink, notched ends */
.ticket { position: relative; display: grid; gap: 6px; align-content: start; padding: 18px 26px 20px; border-radius: 6px; background: var(--rc); color: #141B33;
  -webkit-mask: radial-gradient(circle 11px at 0 50%, transparent 10px, #000 11px) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 50%, transparent 10px, #000 11px) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 11px at 0 50%, transparent 10px, #000 11px) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 50%, transparent 10px, #000 11px) right / 51% 100% no-repeat; }
.ticket:nth-child(odd) { transform: rotate(-1.2deg); } .ticket:nth-child(even) { transform: rotate(1deg) translateY(4px); }
.ticket .glyph { color: #141B33; }
.ticket b { font: 600 23px/1.15 var(--serif); }
.ticket span { font-size: 16px; line-height: 1.35; color: rgba(20, 27, 51, .85); }
.lineup h2 { font-size: clamp(24px, 1vw + 18px, 34px); }
.lineup-note { margin-top: 22px; max-width: 64ch; color: var(--text-2); font-size: clamp(17px, .3vw + 15px, 20px); }
@media (max-width: 999px) { .games { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .games { grid-template-columns: 1fr; } .ticket { grid-template-columns: auto 1fr; column-gap: 14px; } .ticket .glyph { grid-row: span 2; } }

/* setup additions */
.guest { font: italic 400 15px/1.2 var(--serif); color: #DCD0FF; white-space: nowrap; }
.adds { gap: 10px; }
.adds .btn.add { flex: 1 1 240px; width: auto; }
.mix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.topic.game { align-items: flex-start; }
.topic.game .glyph { margin-top: 2px; }
.topic.game b { display: block; font-size: 19px; }
.topic.game small { display: block; font-weight: 400; font-size: 14px; color: var(--text-3); line-height: 1.3; }
.topic.small { min-height: 52px; font-size: 16px; padding: 8px 12px; gap: 8px; }
.split .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.group h3 { font: 700 17px var(--sans); color: var(--text-2); margin-bottom: 10px; }
.seg { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
.seg b { font-size: 24px; }
@media (max-width: 599px) { .mix { grid-template-columns: 1fr; } .seg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.group > .switch { margin-top: 18px; }
.flabel { margin: 14px 0 8px; font-weight: 700; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches button { width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
.swatches button[aria-checked="true"] { box-shadow: 0 0 0 3px var(--dusk), 0 0 0 6px var(--bulb); }
.lvmini { display: flex; flex-wrap: wrap; gap: 8px; }
.lvmini button { min-height: 44px; padding: 8px 14px; border: 0; border-radius: 999px; cursor: pointer; background: rgba(255, 255, 255, .08); font-weight: 700; }
.lvmini button[aria-checked="true"] { background: rgba(255, 210, 122, .18); box-shadow: inset 0 0 0 2px var(--bulb); }
.keep { display: flex !important; align-items: center; gap: 12px; min-height: 48px; margin-top: 12px; font-weight: 700; cursor: pointer; }
.keep input { width: 24px; height: 24px; accent-color: var(--amber); }
.vol { display: grid; gap: 4px; margin-top: 12px; font-weight: 700; }
.vol input { width: 100%; height: 44px; accent-color: var(--amber); }

/* pictures on cards */
.pic { display: block; color: var(--text); }
.pic .a { stroke: var(--bulb); }

/* ---------------------------------------------------------------- the stage screens: title card, round wheel, spotlight, standings */
.stage { display: grid; gap: clamp(14px, 2vh, 26px); padding-top: clamp(0px, 2vh, 24px); }
.title-card { place-items: center; min-height: calc(100dvh - 120px); }
.big-sign { width: min(100%, 1100px); text-align: center; display: grid; justify-items: center; gap: clamp(12px, 2vh, 24px); }
.sign { font-size: clamp(54px, 6vw + 4vh, 168px); line-height: .95; }
.sign .title { color: var(--bulb); }
.big-sign .lede, .round-info .lede, .handoff .lede, .standings .lede { color: var(--text-2); font-size: clamp(18px, .6vw + 1vh + 8px, 30px); max-width: 52ch; }
.cast { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(12px, 2vw, 30px); }
.cast li { display: grid; justify-items: center; gap: 8px; font-weight: 700; font-size: clamp(17px, .6vw + 12px, 26px); animation: rise .6s var(--ease) both; }
.cast li:nth-child(2) { animation-delay: .1s; } .cast li:nth-child(3) { animation-delay: .2s; } .cast li:nth-child(4) { animation-delay: .3s; }
.cast li:nth-child(5) { animation-delay: .4s; } .cast li:nth-child(6) { animation-delay: .5s; } .cast li:nth-child(7) { animation-delay: .6s; } .cast li:nth-child(8) { animation-delay: .7s; }

.round-card { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; align-content: center; min-height: calc(100dvh - 120px); }
@media (min-width: 760px) and (min-aspect-ratio: 1/1) { .round-card { grid-template-columns: auto minmax(0, 1fr); text-align: left; justify-items: start; column-gap: clamp(30px, 5vw, 90px); align-items: center; } }
.wheel { position: relative; width: clamp(220px, 40vmin, 520px); aspect-ratio: 1; }
.wheel-svg { width: 100%; height: 100%; border-radius: 50%; transform: rotate(var(--land));
  box-shadow: 0 0 0 6px #10162C, 0 0 0 10px var(--bulb); }
@keyframes spin { from { transform: rotate(0deg); } }
.wheel .pointer { position: absolute; left: 50%; top: -14px; width: 0; height: 0; margin-left: -16px; border: 16px solid transparent; border-top: 30px solid var(--bulb-hot); border-bottom: 0; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .6)); }
.round-info { display: grid; gap: clamp(10px, 1.6vh, 20px); justify-items: inherit; }
.round-card.is-spun .round-info > * { animation: rise .5s var(--ease) both; }
.wheel.idle .wheel-svg { transform: rotate(0deg); }
.wheel.revving .wheel-svg { animation: rev .7s linear infinite; }
.wheel.landing .wheel-svg { animation: spin 2.2s cubic-bezier(.12, .82, .22, 1) both; }
@keyframes rev { to { transform: rotate(360deg); } }
.round-name { display: inline-flex; align-items: center; gap: .3em; font-size: clamp(44px, 4vw + 3vh, 128px); color: var(--text); }
.round-name .glyph { width: .8em; height: .8em; color: var(--rc); }
.topic-line { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(18px, .6vw + 13px, 30px); color: var(--text-2); }
.topic-line b { color: var(--text); }
.topic-line .glyph { color: var(--tc); }

.handoff-wrap { justify-items: center; }
.handoff-wrap > .handoff { width: min(100%, 1100px); }
.handoff-wrap > .side { width: min(100%, 1100px); }
.handoff-wrap .board { justify-content: center; }
.spotlight { background: radial-gradient(55% 80% at 50% -5%, color-mix(in srgb, var(--pc) 30%, rgba(255, 236, 190, .3)), transparent 72%), radial-gradient(120% 90% at 50% 0%, #22305C, #141B37 60%, #10162C); }
.spotlight .who .dot { box-shadow: 0 0 0 4px rgba(255, 255, 255, .25); animation: spot .8s var(--spring) both; }
@keyframes spot { from { transform: scale(.5); opacity: 0; } }
.handoff .lv { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.standings .marquee { width: min(100%, 1000px); margin: 0 auto; text-align: center; display: grid; justify-items: center; gap: clamp(10px, 1.6vh, 20px); }
.standings h1 { font-size: clamp(40px, 3vw + 3vh, 100px); }
.standings-list { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 10px; text-align: left; }
.standings-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 10px 6px; border-bottom: 1px solid rgba(255, 210, 122, .18); }
.standings-list .nm { display: grid; font-weight: 700; font-size: clamp(20px, .6vw + 16px, 32px); line-height: 1.15; min-width: 0; }
.standings-list .nm small { font-weight: 400; font-size: 15px; color: var(--text-3); }
.standings-list .n { font: 600 clamp(28px, 1vw + 20px, 48px)/1 var(--serif); min-width: 1.4ch; text-align: right; }
.n.bump { animation: bump .6s var(--spring); color: var(--bulb); }
@keyframes bump { 40% { transform: scale(1.4); } }
@media (max-width: 599px) { .standings-list .tix { display: none; } .standings-list li { grid-template-columns: auto minmax(0, 1fr) auto; } }

/* ---------------------------------------------------------------- question extras */
.tf-claim { margin-top: clamp(12px, 1.6vh, 22px); font: 600 clamp(24px, 1.4vw + 1.6vh + 6px, 66px)/1.15 var(--serif); }
.tf-claim b { color: var(--bulb); }
.drum { margin-top: 14px; font: 700 clamp(20px, .8vw + 1vh + 8px, 40px)/1.2 var(--sans); color: var(--bulb); }
.drum::after { content: ""; animation: dots 1.2s steps(1) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.choices.tf { grid-template-columns: 1fr 1fr; }
.big-tf { justify-content: center; min-height: clamp(90px, 10vh + 40px, 200px); font-size: clamp(26px, 1.4vw + 1.6vh + 8px, 64px); }
.big-tf .txt { flex: none; }
.big-tf.t { --cc: var(--yes); } .big-tf.f { --cc: var(--no); }
.big-tf .tag { position: absolute; bottom: 8px; }
.keypad-wrap { align-content: start; }
.entry-box { display: grid; place-items: center; min-height: clamp(84px, 8vh + 40px, 170px); border-radius: 14px; background: #090E1E; }
.entry { font: 600 clamp(40px, 2vw + 3vh + 10px, 110px)/1 var(--serif); font-variant-numeric: tabular-nums; }
.entry small { font: 700 .34em var(--sans); color: var(--text-2); }
.keypad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.keypad button { min-height: clamp(56px, 4vh + 30px, 96px); border: 0; border-radius: 12px; cursor: pointer; background: rgba(255, 255, 255, .09); font: 600 clamp(24px, 1vw + 1vh + 10px, 44px)/1 var(--serif); }
.keypad button:hover { background: rgba(255, 255, 255, .16); }
.keypad button:active { transform: scale(.97); }
.close-result { font-size: clamp(20px, .8vw + 1vh + 8px, 38px); }
.close-result b { color: var(--yes); }
.clock { position: relative; display: grid; place-items: center; width: clamp(74px, 5vw + 3vh, 150px); aspect-ratio: 1; margin-top: clamp(10px, 1.6vh, 20px); }
.clock .ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--bulb) calc(var(--p) * 360deg), rgba(255, 255, 255, .12) 0);
  -webkit-mask: radial-gradient(closest-side, transparent 78%, #000 80%); mask: radial-gradient(closest-side, transparent 78%, #000 80%); transition: background .3s; }
.clock b { position: relative; font: 600 clamp(26px, 1.2vw + 1.6vh + 6px, 56px)/1 var(--serif); font-variant-numeric: tabular-nums; }
.clock.low .ring { background: conic-gradient(var(--no) calc(var(--p) * 360deg), rgba(255, 255, 255, .12) 0); }
.clock.low b { color: var(--no); }

/* ---------------------------------------------------------------- Act it out */
.act-stage > .card-zone, .act-stage > .who-grid { grid-area: choices; }
.act-stage > .paused { grid-column: 1 / -1; }
.rules { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(12px, 1.6vh, 20px); }
.rule-line, .twist-line { font-size: clamp(17px, .5vw + 14px, 27px); color: var(--text-2); }
.rule-line b { color: var(--text); }
.twist-line { color: #F6B8CB; font-style: italic; font-family: var(--serif); }
.twist-line b { color: #FFD3E0; }
.rules { display: grid; gap: 6px; }
.twist-chip { background: rgba(242, 138, 168, .16); box-shadow: inset 0 0 0 2px #F28AA8; }
.act-board .lede { margin-top: 12px; color: var(--text-2); font-size: clamp(17px, .5vw + 14px, 28px); }
.card-zone { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; padding: clamp(16px, 2vw, 26px); border-radius: var(--r); background: var(--panel); }
.qr { display: grid; place-items: center; width: clamp(200px, 24vw, 380px); aspect-ratio: 1; padding: 10px; border-radius: 18px; background: #fff; color: #10162C; text-align: center; }
.qr svg { width: 100%; height: 100%; }
.peek-box { display: grid; gap: 14px; align-content: start; }
.btn.peek { min-height: 64px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; }
.peek-card { position: fixed; left: 50%; top: 50%; z-index: 30; transform: translate(-50%, -50%); width: min(92vw, 560px); padding: 28px; border-radius: 26px; pointer-events: none;
  background: #FFF6DC; color: #10162C; text-align: center; box-shadow: 0 40px 100px rgba(0, 0, 0, .7); display: grid; justify-items: center; gap: 12px; }
.peek-card[hidden] { display: none; }
.peek-card .pic { color: #10162C; } .peek-card .pic .a { stroke: #B4741A; }
.peek-text { font: 600 clamp(30px, 4vw, 48px)/1.1 var(--serif); }
@media (max-width: 699px) { .card-zone { grid-template-columns: 1fr; justify-items: center; } .qr { width: min(78vw, 320px); } }
.btn.huge { min-height: clamp(84px, 6vh + 40px, 140px); padding: 18px 52px; font: 600 clamp(30px, 1.6vw + 1.6vh + 8px, 72px)/1 var(--serif); }
.act-buttons { justify-content: flex-start; }
.acting .clock { width: clamp(120px, 8vw + 6vh, 260px); }
.acting .clock b { font-size: clamp(40px, 2vw + 3vh, 100px); }
.paused { text-align: center; font-weight: 700; font-size: clamp(18px, .6vw + 14px, 28px); color: var(--bulb); }
.who-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; align-content: start; }
.who-btn { display: flex; align-items: center; gap: 14px; min-height: clamp(70px, 4vh + 40px, 120px); padding: 12px 18px; border: 0; border-radius: 18px; cursor: pointer; text-align: left;
  background: color-mix(in srgb, var(--pc, #888) 30%, transparent); font: 700 clamp(20px, .8vw + 14px, 36px)/1.15 var(--sans); }
.who-btn:hover { background: color-mix(in srgb, var(--pc, #888) 45%, transparent); }
.who-btn.nobody { justify-content: center; background: rgba(255, 255, 255, .07); color: var(--text-2); }
.reveal-card { display: flex; align-items: center; gap: 16px; margin-top: clamp(12px, 1.6vh, 22px); font: 400 clamp(20px, 1vw + 1vh + 8px, 46px)/1.25 var(--serif); }
.reveal-card .art { flex: none; }
.reveal-card b { color: var(--bulb); font-weight: 600; }

/* ---------------------------------------------------------------- end, extras */
.award { color: var(--bulb); font-weight: 700; }
.fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; }

/* the TV mode suggestion when a phone turns sideways */
.tv-hint { position: fixed; z-index: 35; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(94vw, 680px); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  padding: 14px 18px; border-radius: 16px; background: #10162C; box-shadow: 0 20px 60px rgba(0, 0, 0, .7); animation: rise .5s var(--ease) both; }
.tv-hint p { flex: 1 1 260px; }
.tv-hint .btn { min-height: 48px; }

/* ================================================================ TV mode
   One 16:9 stage measured in --u (one hundredth of the stage's height), so a phone mirrored to the TV, a laptop on HDMI
   and a TV browser all show the same layout at the same proportions. Margins keep 5% clear on every side for overscan. */
body.tv { --u: min(1vh, .5625vw); --ox: calc(var(--u) * 8.9); --oy: calc(var(--u) * 5); }
body.tv .bar { max-width: calc(var(--u) * 177.8); padding: var(--oy) var(--ox) calc(var(--u) * 1.4); gap: calc(var(--u) * 2); }
body.tv:not([data-view="play"]) .bar { padding-right: calc(var(--ox) + 190px); }
body.tv[data-view="play"] .bar-base { display: none; }
body.tv .brand svg { width: calc(var(--u) * 6.4); height: calc(var(--u) * 6.4); display: block; }
body.tv .brand span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
body.tv .brand b { font-size: calc(var(--u) * 3.3); }
body.tv .brand small { display: block; font-size: max(11px, calc(var(--u) * 1.8)); }
body.tv .tool { min-height: max(44px, calc(var(--u) * 5.6)); min-width: max(44px, calc(var(--u) * 5.6)); font-size: max(13px, calc(var(--u) * 1.9)); }
body.tv .tool svg { width: max(20px, calc(var(--u) * 2.8)); height: max(20px, calc(var(--u) * 2.8)); }
body.tv .view { max-width: calc(var(--u) * 177.8); padding: 0 var(--ox) var(--oy); }
body.tv .btn { min-height: max(48px, calc(var(--u) * 6.6)); font-size: max(16px, calc(var(--u) * 2.5)); padding: calc(var(--u) * 1.2) calc(var(--u) * 3); }
body.tv .btn.big { min-height: max(52px, calc(var(--u) * 8)); font-size: max(17px, calc(var(--u) * 3)); }
body.tv .btn.huge { min-height: max(64px, calc(var(--u) * 13)); font-size: max(26px, calc(var(--u) * 6)); padding: calc(var(--u) * 2) calc(var(--u) * 6); }
body.tv .marquee, body.tv .play .marquee { --b: calc(var(--u) * 2.5); border-radius: calc(var(--u) * 3.2); padding: calc(var(--b) + var(--u) * 2.2); }
body.tv .kicker { font-size: max(12px, calc(var(--u) * 2)); }
body.tv .dot.sm { width: calc(var(--u) * 4.4); height: calc(var(--u) * 4.4); font-size: calc(var(--u) * 2.1); }
body.tv .dot { width: calc(var(--u) * 5.6); height: calc(var(--u) * 5.6); font-size: calc(var(--u) * 2.6); }
body.tv .dot.lg { width: calc(var(--u) * 10); height: calc(var(--u) * 10); font-size: calc(var(--u) * 4.8); }
body.tv .lvl { font-size: calc(var(--u) * 2); padding: calc(var(--u) * .6) calc(var(--u) * 1.4); }
body.tv .pips i { width: calc(var(--u) * .9); height: calc(var(--u) * .9); }
body.tv .guest { font-size: calc(var(--u) * 1.5); }

/* home on the TV */
body.tv .home { padding-top: calc(var(--u) * 2); gap: calc(var(--u) * 3); }
body.tv .hero { max-width: calc(var(--u) * 120); }
body.tv .hero h1 { font-size: calc(var(--u) * 9); margin-top: calc(var(--u) * 1.4); }
body.tv .hero .lede { font-size: calc(var(--u) * 2.6); margin-top: calc(var(--u) * 2); }
body.tv .hero .row { margin-top: calc(var(--u) * 3); }
body.tv .games { max-width: none; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(var(--u) * 1.6); }
body.tv .games li { padding: calc(var(--u) * 2.2); border-radius: calc(var(--u) * 2.2); }
body.tv .games b { font-size: calc(var(--u) * 2.8); }
body.tv .games span { font-size: calc(var(--u) * 1.9); }
body.tv .games .glyph { width: calc(var(--u) * 4.4); height: calc(var(--u) * 4.4); }
body.tv .how, body.tv .phone-nav { display: none; }

/* the show on the TV */
body.tv .stage, body.tv .play { padding-top: calc(var(--u) * 1); gap: calc(var(--u) * 2.2); }
body.tv .title-card, body.tv .round-card { min-height: calc(100vh - var(--u) * 20); }
body.tv .big-sign { width: 100%; gap: calc(var(--u) * 2.2); }
body.tv .sign { font-size: calc(var(--u) * 14); }
body.tv .big-sign .lede, body.tv .round-info .lede, body.tv .handoff .lede, body.tv .standings .lede { font-size: calc(var(--u) * 2.8); }
body.tv .cast { gap: calc(var(--u) * 3); }
body.tv .cast li { font-size: calc(var(--u) * 2.6); gap: calc(var(--u) * 1); }
body.tv .round-card { grid-template-columns: auto minmax(0, 1fr); text-align: left; justify-items: start; column-gap: calc(var(--u) * 7); align-items: center; }
body.tv .wheel { width: calc(var(--u) * 58); }
body.tv .round-name { font-size: calc(var(--u) * 10); }
body.tv .topic-line { font-size: calc(var(--u) * 2.8); }
body.tv .topic-line .glyph { width: calc(var(--u) * 3.4); height: calc(var(--u) * 3.4); }
body.tv .round-info { gap: calc(var(--u) * 2.2); }
body.tv .round-info .muted { font-size: calc(var(--u) * 2.2); }

body.tv .handoff-wrap { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: start; justify-items: stretch; column-gap: calc(var(--u) * 3); }
body.tv .handoff-wrap > .handoff, body.tv .handoff-wrap > .side { width: auto; }
body.tv .handoff { padding-top: calc(var(--u) * 6); padding-bottom: calc(var(--u) * 6); gap: calc(var(--u) * 2); }
body.tv .handoff .who { font-size: calc(var(--u) * 11); gap: calc(var(--u) * 2.4); }
body.tv .handoff .who .dot.lg { width: calc(var(--u) * 13); height: calc(var(--u) * 13); font-size: calc(var(--u) * 6); }

body.tv .play { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); column-gap: calc(var(--u) * 3); row-gap: calc(var(--u) * 1.8); align-items: start;
  grid-template-areas: "board score" "choices score" "act score"; grid-template-rows: auto auto 1fr; }
body.tv .play.phase-reveal { grid-template-areas: "board why" "choices why" "act why"; }
body.tv .play.phase-reveal > .side { display: none; }
body.tv .play > .side { display: grid; }
body.tv .round, body.tv .qhead .for { font-size: calc(var(--u) * 2.3); }
body.tv .round .glyph { width: calc(var(--u) * 3); height: calc(var(--u) * 3); }
body.tv .play .q { font-size: calc(var(--u) * 5.4); margin-top: calc(var(--u) * 1.8); line-height: 1.12; }
body.tv .tf-claim { font-size: calc(var(--u) * 5); margin-top: calc(var(--u) * 1.6); }
body.tv .drum { font-size: calc(var(--u) * 3.6); }
body.tv .play .choices { gap: calc(var(--u) * 1.5); }
body.tv .play .choice { min-height: calc(var(--u) * 10.5); font-size: calc(var(--u) * 3.6); border-radius: calc(var(--u) * 2.2); padding: calc(var(--u) * 1.2) calc(var(--u) * 2.4) calc(var(--u) * 1.2) calc(var(--u) * 1.2); gap: calc(var(--u) * 1.8); }
body.tv .play .choice .letter { width: calc(var(--u) * 7); font-size: calc(var(--u) * 3.6); }
body.tv .play .choice .tag { font-size: calc(var(--u) * 1.8); }
body.tv .play .big-tf { min-height: calc(var(--u) * 18); font-size: calc(var(--u) * 5.4); }
body.tv .play.phase-reveal .choice.dim { display: flex; }
body.tv .entry-box { min-height: calc(var(--u) * 14); border-radius: calc(var(--u) * 2.2); }
body.tv .entry { font-size: calc(var(--u) * 9); }
body.tv .keypad { gap: calc(var(--u) * 1.2); grid-template-columns: repeat(6, minmax(0, 1fr)); }
body.tv .keypad button { min-height: max(48px, calc(var(--u) * 8.4)); font-size: calc(var(--u) * 4); border-radius: calc(var(--u) * 1.8); }
body.tv .keypad-wrap .muted { font-size: calc(var(--u) * 2); }
body.tv .close-result { font-size: calc(var(--u) * 3.4); }
body.tv .clock { width: calc(var(--u) * 11); margin-top: calc(var(--u) * 1.6); }
body.tv .clock b { font-size: calc(var(--u) * 4.2); }
body.tv .acting .clock { width: calc(var(--u) * 24); }
body.tv .acting .clock b { font-size: calc(var(--u) * 9); }
body.tv .why { padding: calc(var(--u) * 3); border-radius: calc(var(--u) * 2.6); }
body.tv .verdict { font-size: calc(var(--u) * 4.6); gap: calc(var(--u) * 1.6); }
body.tv .ticket-pop { width: calc(var(--u) * 7); height: calc(var(--u) * 4.2); }
body.tv .ans { font-size: calc(var(--u) * 3); margin-top: calc(var(--u) * 1.4); }
body.tv .because { font-size: calc(var(--u) * 2.7); margin-top: calc(var(--u) * 1.6); }
body.tv .src { font-size: max(13px, calc(var(--u) * 1.9)); margin-top: calc(var(--u) * 1.4); }
body.tv .why .row { margin-top: calc(var(--u) * 2); }
body.tv .board { flex-direction: column; flex-wrap: nowrap; gap: calc(var(--u) * 1); }
body.tv .handoff-wrap .board { justify-content: flex-start; }
body.tv .board li { padding: calc(var(--u) * 1) calc(var(--u) * 1.8) calc(var(--u) * 1) calc(var(--u) * 1); gap: calc(var(--u) * 1.4); border-radius: calc(var(--u) * 2); flex: none; }
body.tv .board .nm { font-size: calc(var(--u) * 2.5); }
body.tv .board .nm small { font-size: calc(var(--u) * 1.6); }
body.tv .board .n { font-size: calc(var(--u) * 3.8); margin-left: auto; }
body.tv .board .tix { display: inline-flex; flex: 1; max-width: none; }
body.tv .tk { width: calc(var(--u) * 2.8); height: calc(var(--u) * 1.7); }
body.tv .rounds { display: flex; padding: calc(var(--u) * 1.4) calc(var(--u) * 1.8); gap: calc(var(--u) * 1); border-radius: calc(var(--u) * 2); }
body.tv .rounds .rl { font-size: calc(var(--u) * 1.6); }
body.tv .rounds li { width: calc(var(--u) * 5); height: calc(var(--u) * 5); border-radius: calc(var(--u) * 1.4); }
body.tv .rounds .glyph { width: calc(var(--u) * 3); height: calc(var(--u) * 3); }
body.tv .act { position: static; background: none; padding: 0; margin: 0; gap: calc(var(--u) * 1.6); }

body.tv .act-stage { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-areas: "board score" "act score"; }
body.tv .act-stage.step-card, body.tv .act-stage.step-who { grid-template-areas: "board choices" "act choices"; }
body.tv .act-stage.step-card > .side, body.tv .act-stage.step-who > .side { display: none; }
body.tv .act-board .lede { font-size: calc(var(--u) * 2.6); margin-top: calc(var(--u) * 1.6); }
body.tv .rule-line, body.tv .twist-line { font-size: calc(var(--u) * 2.4); }
body.tv .card-zone { grid-template-columns: 1fr; justify-items: center; padding: calc(var(--u) * 2.4); gap: calc(var(--u) * 2); border-radius: calc(var(--u) * 2.6); }
body.tv .qr { width: calc(var(--u) * 40); border-radius: calc(var(--u) * 2); padding: calc(var(--u) * 1.2); }
body.tv .peek-box .small { font-size: max(13px, calc(var(--u) * 1.8)); }
body.tv .peek-box { justify-items: center; text-align: center; }
body.tv .who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--u) * 1.4); }
body.tv .who-btn { min-height: calc(var(--u) * 11); font-size: calc(var(--u) * 3); padding: calc(var(--u) * 1.4) calc(var(--u) * 2); border-radius: calc(var(--u) * 2); gap: calc(var(--u) * 1.4); }
body.tv .reveal-card { font-size: calc(var(--u) * 3.6); gap: calc(var(--u) * 2); }
body.tv .reveal-card .pic { width: calc(var(--u) * 12); height: calc(var(--u) * 12); }
body.tv .paused { font-size: calc(var(--u) * 2.6); }

body.tv .standings .marquee { width: calc(var(--u) * 120); gap: calc(var(--u) * 1.8); }
body.tv .standings h1 { font-size: calc(var(--u) * 7.4); }
body.tv .standings-list { gap: calc(var(--u) * 1.1); }
body.tv .standings-list li { padding: calc(var(--u) * 1.1) calc(var(--u) * .8); gap: calc(var(--u) * 2); }
body.tv .standings-list .nm { font-size: calc(var(--u) * 3); }
body.tv .standings-list .nm small { font-size: calc(var(--u) * 1.8); }
body.tv .standings-list .n { font-size: calc(var(--u) * 4.6); }
body.tv .standings-list .tix { display: inline-flex; }

body.tv .end { max-width: none; gap: calc(var(--u) * 3); padding-top: calc(var(--u) * 1); }
body.tv .result h1 { font-size: calc(var(--u) * 7.4); margin-top: calc(var(--u) * 1.4); }
body.tv .result .lede { font-size: calc(var(--u) * 2.6); max-width: none; }
body.tv .final { margin: calc(var(--u) * 2.4) 0; gap: calc(var(--u) * 1.1); grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.tv .final li { padding: calc(var(--u) * 1.3) calc(var(--u) * 2); border-radius: calc(var(--u) * 2); gap: calc(var(--u) * .6) calc(var(--u) * 1.8); grid-template-columns: calc(var(--u) * 4) auto minmax(0, 1fr) auto; }
body.tv .final .nm { font-size: calc(var(--u) * 3); }
body.tv .final .nm small { font-size: calc(var(--u) * 2); }
body.tv .final .n { font-size: calc(var(--u) * 3); }
body.tv .final .place { font-size: calc(var(--u) * 3.6); }
.rounds li.rl { display: block; width: 100%; height: auto; background: none; opacity: 1; border-radius: 0; box-shadow: none; }
body.tv .rounds li.rl { width: 100%; height: auto; }
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .act-stage.step-card, .act-stage.step-who { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-areas: "board choices" "act choices"; }
  .act-stage.step-card > .side, .act-stage.step-who > .side { display: none; }
  .act-stage .card-zone { grid-template-columns: 1fr; justify-items: center; }
  .act-stage .peek-box { justify-items: center; text-align: center; }
}

/* TV mode: the home lineup */
body.tv .lineup h2 { font-size: calc(var(--u) * 3.4); }
body.tv .ticket b { font-size: calc(var(--u) * 2.8); }
body.tv .ticket span { font-size: calc(var(--u) * 1.9); }
body.tv .ticket .glyph { width: calc(var(--u) * 4.4); height: calc(var(--u) * 4.4); }
body.tv .lineup-note { display: none; }
.standings .after { color: var(--text-2); font: italic 400 clamp(18px, .5vw + 14px, 26px)/1.3 var(--serif); }
body.tv .standings .after { font-size: calc(var(--u) * 2.6); }
.big-tf .letter .mark { width: 60%; height: 60%; }
.big-tf .letter .mark path { stroke-width: 3; }

/* Phones: the header tools sit on a second line under the Who's playing? chip, so the name, the chip and the tools never overlap */
.brand svg { flex: none; }
@media (max-width: 640px) {
  .bar { flex-wrap: wrap; row-gap: 4px; padding-right: max(var(--pad), env(safe-area-inset-right)); }
  .brand { max-width: calc(100% - 236px); min-width: 0; }
  .bar-tools { order: 3; width: 100%; justify-content: flex-end; margin: 0; }
  body.tv .bar { padding-right: var(--ox); }
}
@media (max-width: 460px) { .brand svg { display: none; } }

/* the scoreboard: one dark board over the stage, rather than loose rows */
@media (min-width: 900px) { .play > .side > .board { padding: 10px; border-radius: 16px; background: rgba(9, 14, 30, .72); } }
body.tv .play > .side > .board { padding: calc(var(--u) * 1); border-radius: calc(var(--u) * 2); background: rgba(9, 14, 30, .72); }
@media (max-width: 400px) { .brand small { white-space: normal; line-height: 1.15; } .brand { max-width: calc(100% - 232px); } }

/* TV mode fitting: the header row is a fixed height, and every stage screen fits what's left inside the margins */
.peek-short { display: none; }
body.tv .peek-short { display: block; font-size: max(13px, calc(var(--u) * 1.9)); }
body.tv .peek-long { display: none; }
body.tv { --hh: max(44px, calc(var(--u) * 6.4)); --avail: calc(100vh - var(--u) * 11.4 - var(--hh)); }
body.tv .bar { min-height: calc(var(--hh) + var(--u) * 6.4); }
body.tv .title-card, body.tv .round-card { min-height: var(--avail); padding-top: 0; }
@media (max-height: 520px) {
  body.tv .stage, body.tv .play { gap: calc(var(--u) * 1.4); padding-top: 0; }
  body.tv .marquee, body.tv .play .marquee { --b: calc(var(--u) * 2.1); padding: calc(var(--b) + var(--u) * 1.5); }
  body.tv .big-sign { gap: calc(var(--u) * 1.2); }
  body.tv .sign { font-size: calc(var(--u) * 11); }
  body.tv .cast .dot.lg { width: calc(var(--u) * 7.5); height: calc(var(--u) * 7.5); font-size: calc(var(--u) * 3.6); }
  body.tv .play .q { font-size: calc(var(--u) * 5); margin-top: calc(var(--u) * 1.2); }
  body.tv .act-board .lede { margin-top: calc(var(--u) * 1); }
  body.tv .rules { margin-top: calc(var(--u) * 1.2); }
  body.tv .qr { width: calc(var(--u) * 37); }
  body.tv .card-zone { padding: calc(var(--u) * 1.6); gap: calc(var(--u) * 1.4); }
  body.tv .acting .clock { width: calc(var(--u) * 19); margin-top: calc(var(--u) * 1); }
  body.tv .acting .clock b { font-size: calc(var(--u) * 7); }
  body.tv .play .choice { min-height: calc(var(--u) * 10); }
}
@media (max-height: 520px) {
  body.tv .act-buttons { flex-wrap: nowrap; gap: calc(var(--u) * 1.2); }
  body.tv .act-buttons .btn { padding-left: calc(var(--u) * 2.2); padding-right: calc(var(--u) * 2.2); }
  body.tv .btn.huge { min-height: 56px; font-size: calc(var(--u) * 5); padding: calc(var(--u) * 1.2) calc(var(--u) * 3.4); }
}
@media (max-width: 599px) {
  .final li { grid-template-columns: 22px auto minmax(0, 1fr); align-items: start; }
  .final .nm small { display: block; }
  .final .tix { grid-column: 3; grid-row: 2; }
  .final .n { grid-column: 3; grid-row: 3; font-size: 18px; color: var(--text-2); }
  .final li > .dot, .final .place { grid-row: 1 / span 3; align-self: center; }
}

/* ================================================================ Review 1: show features and TV fitting */
/* the Who's playing? chip stays off the show and the ceremony */
body[data-view="play"] .bar-base, body[data-view="end"] .bar-base { display: none; }
body[data-view="play"] .bar, body[data-view="end"] .bar { padding-right: max(var(--pad), env(safe-area-inset-right)); }
body.tv[data-view="play"] .bar, body.tv[data-view="end"] .bar { padding-right: var(--ox); }

/* home tickets: printed card stock with a little depth */
.ticket-wrap { list-style: none; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .45)) drop-shadow(0 2px 0 rgba(0, 0, 0, .25)); }
.ticket-wrap:nth-child(odd) { transform: rotate(-1.2deg); } .ticket-wrap:nth-child(even) { transform: rotate(1deg) translateY(4px); }
.ticket-wrap .ticket { transform: none; height: 100%; background-image: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 40%, rgba(0, 0, 0, .06)); background-color: var(--rc); }
.ticket::after { content: ""; position: absolute; inset: 7px 18px; border: 1.5px dashed rgba(20, 27, 51, .28); border-radius: 3px; pointer-events: none; }
@media (max-width: 479px) { .ticket-wrap .ticket { grid-template-columns: auto 1fr; column-gap: 14px; } }

/* setup: a fixed level column so names and levels line up */
.lvbtn { width: 150px; justify-content: flex-end; }
@media (max-width: 480px) { .lvbtn { width: 104px; } }

/* the scoreboard: who's playing now, beyond color */
.board li { position: relative; }
.now-mark { flex: none; color: var(--bulb); }
.board li.now .nm { color: var(--text); }
.board.many .tix { display: none; }
.rounds li.x2 { box-shadow: inset 0 -3px 0 var(--bulb); }
.x2tag { color: var(--bulb); }

/* title card callback and the grand finale */
.callback { font: italic 400 clamp(18px, .5vw + 14px, 26px)/1.3 var(--serif); color: var(--bulb); }
.finale { font: 600 clamp(20px, .8vw + 14px, 34px)/1.2 var(--serif); color: var(--bulb); }

/* the wheel: hold to spin */
.spin { touch-action: none; user-select: none; -webkit-user-select: none; }
.doors { display: flex; flex-wrap: wrap; gap: 12px; }
.btn.door { flex-direction: column; gap: 6px; min-width: 150px; min-height: 120px; border-radius: 14px 14px 6px 6px; padding: 14px 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 85%, #fff), var(--tc)); color: #141B33; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18), 0 12px 24px -12px rgba(0, 0, 0, .6); }
.btn.door .glyph { color: #141B33; }
.door-no { font: 700 13px var(--sans); opacity: .75; }
.door b { font: 600 22px/1.1 var(--serif); }
.pick { color: var(--text); }

/* the spotlight hand-off: stakes; and the TV banner */
.stakes { color: var(--bulb); font: italic 400 clamp(18px, .5vw + 14px, 28px)/1.3 var(--serif); }
.spot-banner { display: flex; align-items: center; gap: 14px; margin: -4px 0 14px; padding: 8px 14px 8px 8px; border-radius: 14px;
  background: radial-gradient(80% 160% at 0% 50%, color-mix(in srgb, var(--pc) 45%, transparent), transparent 75%); }
.spot-banner p { display: grid; }
.spot-banner b { font: 600 24px/1.15 var(--serif); }
.spot-banner .lvname { display: none; }
.spot-banner .stakes { font-size: 17px; }

/* zip it, then play along */
.zip { margin-top: 12px; color: var(--text-2); font-size: clamp(16px, .4vw + 13px, 24px); }
.also { margin-top: 14px; }
.also > p { color: var(--text-3); font-size: 15px; }
.also-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.also-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 12px 4px 4px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .07); font-weight: 700; cursor: pointer; }
.also-btn[aria-pressed="true"] { background: color-mix(in srgb, var(--pc) 45%, transparent); }

/* Close enough: the reveal and the Starters' counting pictures */
.close-head { font: 600 clamp(26px, 1.4vw + 1.4vh + 8px, 56px)/1.1 var(--serif); color: var(--bulb); }
.count-art { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 10px; border-radius: 14px; background: rgba(0, 0, 0, .25); }
.count-art .pic { width: clamp(40px, 6vw, 72px); height: auto; }

/* Act it out: helper, code, peek, multi-guess */
.card-zone .show-code, .card-zone .make-big { justify-self: center; }
.peek-ask { display: grid; gap: 10px; justify-items: start; }
.peek-confirm { display: grid; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(242, 166, 140, .14); }
.code-overlay { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; align-content: center; gap: 20px; background: rgba(9, 14, 30, .96); }
.qr.qr-big { width: min(80vh, 90vw); padding: 2vh; }
.who-btn small { display: block; font: 400 13px/1.2 var(--sans); color: var(--text-3); }
.who-btn[aria-pressed="true"] { background: color-mix(in srgb, var(--pc, #888) 60%, transparent); box-shadow: inset 0 0 0 3px var(--bulb); }
.who-btn[aria-pressed="true"]::after { content: ""; flex: none; width: 26px; height: 26px; margin-left: auto; border-radius: 50%;
  background: var(--bulb) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%232A1D05' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.who-done { grid-column: 1 / -1; }

/* standings arrows */
.move { display: inline-flex; width: 18px; justify-content: center; }
.move.up { color: var(--yes); } .move.down { color: var(--no); }
.standings-list li { grid-template-columns: auto minmax(0, 1fr) auto auto auto; }
@media (max-width: 599px) { .standings-list li { grid-template-columns: auto minmax(0, 1fr) auto auto; } }
.standings.many .standings-list { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.standings.many .standings-list .tix { display: none; }
@media (max-width: 599px) { .standings.many .standings-list { grid-template-columns: 1fr; } }

/* the ceremony */
.final li.hidden-row { visibility: hidden; }
.final li.shown { animation: rise .6s var(--ease) both; }
.result.waiting h1 { color: var(--text-2); }
.result.lit h1 { color: var(--bulb); }
.pb { color: var(--yes); }
.coach { display: grid; gap: 10px; margin: 6px 0 18px; }
.coach p { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: clamp(17px, .4vw + 14px, 22px); }
.end.many .final { grid-template-columns: 1fr 1fr; column-gap: 14px; }
@media (max-width: 899px) { .end.many .final { grid-template-columns: 1fr; } }

/* TV mode held upright: ask to turn the phone */
.tv-portrait { display: none; }
@media (orientation: portrait) {
  body.tv .tv-portrait { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; align-content: center; gap: 18px; padding: 32px; text-align: center; background: var(--dusk); }
  body.tv .tv-portrait h2 { font-size: clamp(30px, 8vw, 48px); }
  body.tv .tv-portrait p { color: var(--text-2); max-width: 32ch; }
  body.tv .tv-portrait .rotate { color: var(--text); }
  body.tv #main, body.tv .bar { visibility: hidden; }
}

/* ================================================================ TV mode: the show always fits the 16:9 stage
   Every play screen is a fixed-height grid inside the overscan margins; the primary button sits in its own row, so it's
   always on screen, whatever the player count. */
body.tv[data-view="play"] #view { height: calc(var(--avail) + var(--oy) - 2px); display: flex; flex-direction: column; justify-content: center; }
body.tv .play.tvstage { width: 100%; max-height: 100%; grid-template-rows: auto minmax(0, auto) auto; align-content: center; overflow: hidden; }
body.tv .play.tvstage.phase-ask, body.tv .play.tvstage.phase-drum { grid-template-areas: "board score" "choices score" "act score"; }
body.tv .play.tvstage > .side, body.tv .play.tvstage > .why { contain: size; height: 100%; min-height: 0; overflow: hidden; align-self: stretch; }
body.tv .play.tvstage > .choices { min-height: 0; overflow: hidden; }
body.tv .play.tvstage > .act { justify-content: flex-start; }
body.tv .play.tvstage.phase-reveal { height: calc(100% - 4px); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "board why" "choices why" "act why"; }
body.tv .play.tvstage > .why { display: flex; flex-direction: column; }
body.tv .play.tvstage > .why .because { min-height: 0; overflow: hidden; }
body.tv .play.tvstage > .why .row { margin-top: auto; padding-top: calc(var(--u) * 1.6); flex: none; }
body.tv .play.tvstage > .why .also { flex: none; }
body.tv .also > p { font-size: max(12px, calc(var(--u) * 1.7)); }
body.tv .also-btn { min-height: max(40px, calc(var(--u) * 5)); font-size: max(13px, calc(var(--u) * 1.9)); }
body.tv .zip { font-size: calc(var(--u) * 2.2); margin-top: calc(var(--u) * 1.2); }
body.tv .spot-banner { margin: 0 0 calc(var(--u) * 1.2); padding: calc(var(--u) * .8) calc(var(--u) * 1.4) calc(var(--u) * .8) calc(var(--u) * .8); gap: calc(var(--u) * 1.4); border-radius: calc(var(--u) * 1.6); }
body.tv .spot-banner b { font-size: calc(var(--u) * 3.2); }
body.tv .spot-banner .stakes { font-size: calc(var(--u) * 2.2); }
body.tv .spot-banner .dot { width: calc(var(--u) * 6); height: calc(var(--u) * 6); font-size: calc(var(--u) * 2.8); }
body.tv .stakes { font-size: calc(var(--u) * 2.6); }
body.tv .callback { font-size: calc(var(--u) * 2.4); }
body.tv .finale { font-size: calc(var(--u) * 3.2); }
body.tv .close-head { font-size: calc(var(--u) * 4.4); }
body.tv .board .nm small { font-size: calc(var(--u) * 2.2); }
body.tv .now-mark { width: calc(var(--u) * 1.8); height: calc(var(--u) * 1.8); }
/* many players: two columns, compact rows sized from the count */
body.tv .board.many { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--u) * .8); }
body.tv .board.many li { padding: calc(var(--u) * .6) calc(var(--u) * 1) calc(var(--u) * .6) calc(var(--u) * .6); gap: calc(var(--u) * .8); }
body.tv .board.many .nm { font-size: calc(var(--u) * 2.2); }
body.tv .board.many .n { font-size: calc(var(--u) * 3); }
body.tv .board.many .dot.sm { width: calc(var(--u) * 3.8); height: calc(var(--u) * 3.8); font-size: calc(var(--u) * 1.8); }
body.tv .board.many .nm small { font-size: calc(var(--u) * 1.8); }
/* Act it out on the TV */
body.tv .act-stage.tvstage { height: calc(100% - 4px); grid-template-rows: minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-content: stretch; }
body.tv .act-stage.tvstage.step-card, body.tv .act-stage.tvstage.step-who, body.tv .act-stage.tvstage.step-helper { grid-template-areas: "board choices" "act choices"; }
body.tv .act-stage.tvstage.step-acting, body.tv .act-stage.tvstage.step-result { grid-template-areas: "board score" "act score"; }
body.tv .act-stage.tvstage > .qboard { min-height: 0; overflow: hidden; align-self: center; }
body.tv .act-stage.tvstage > .card-zone, body.tv .act-stage.tvstage > .who-grid { contain: size; height: 100%; min-height: 0; overflow: hidden; align-self: stretch; }
body.tv .act-stage.tvstage.step-helper > .side { display: none; }
body.tv .act-stage.tvstage > .paused { grid-area: act; align-self: start; }
body.tv .card-zone { align-content: center; }
body.tv .card-zone .show-code, body.tv .card-zone .make-big { min-height: max(44px, calc(var(--u) * 5.6)); }
body.tv .peek-ask { justify-items: center; text-align: center; }
body.tv .peek-confirm p { font-size: max(13px, calc(var(--u) * 2)); }
body.tv .who-grid { align-content: center; grid-auto-rows: minmax(max(48px, calc(var(--u) * 7)), auto); }
body.tv .who-btn { min-height: max(48px, calc(var(--u) * 7.5)); }
body.tv .who-btn small { font-size: max(11px, calc(var(--u) * 1.6)); }
body.tv .doors { gap: calc(var(--u) * 1.6); }
body.tv .btn.door { min-width: calc(var(--u) * 17); min-height: calc(var(--u) * 15); padding: calc(var(--u) * 1.4) calc(var(--u) * 2); }
body.tv .door b { font-size: calc(var(--u) * 2.8); }
body.tv .door-no { font-size: calc(var(--u) * 1.6); }
body.tv .count-art .pic { width: calc(var(--u) * 6.5); }
body.tv .keypad-wrap.counting, body.tv .play.mode-close .keypad-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: calc(var(--u) * 2); }
body.tv .keypad-wrap > .keypad { grid-column: 2; grid-row: 1 / span 3; grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.tv .keypad-wrap > .muted { grid-column: 1; }
/* standings and the ceremony, sized from the count */
body.tv .standings.many .standings-list li { padding-top: calc(var(--u) * .8); padding-bottom: calc(var(--u) * .8); }
body.tv .standings.many .standings-list .nm { font-size: calc(var(--u) * 2.6); }
body.tv .standings.many .standings-list .n { font-size: calc(var(--u) * 3.8); }
body.tv .standings.many .standings-list .dot { width: calc(var(--u) * 4.6); height: calc(var(--u) * 4.6); }
body.tv .standings .marquee { max-height: var(--avail); }
body.tv .end.many .final li { padding-top: calc(var(--u) * .8); padding-bottom: calc(var(--u) * .8); }
body.tv .end.many .final .nm { font-size: calc(var(--u) * 2.4); }
body.tv .end.many .final .nm small { font-size: calc(var(--u) * 1.7); }
body.tv .end.many .final .tix { display: none; }
body.tv .end.many .final li { grid-template-columns: calc(var(--u) * 3) auto minmax(0, 1fr) auto; }
body.tv .coach p { font-size: calc(var(--u) * 2.2); }
body.tv .move { width: calc(var(--u) * 2.2); }
body.tv .move svg { width: calc(var(--u) * 1.8); height: calc(var(--u) * 1.8); }
/* phone on its side as the TV: the scoreboard becomes one strip of ticket counts during play, and targets stay 48px */
@media (max-height: 520px) {
  body.tv .play.tvstage.phase-ask, body.tv .play.tvstage.phase-drum, body.tv .act-stage.tvstage.step-acting { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, auto) auto; grid-template-areas: "score" "board" "choices" "act"; }
  body.tv .act-stage.tvstage.step-acting { grid-template-rows: auto minmax(0, 1fr) auto; }
  body.tv .play.tvstage.phase-ask > .side, body.tv .play.tvstage.phase-drum > .side, body.tv .act-stage.tvstage.step-acting > .side { contain: none; height: auto; overflow: visible; }
  body.tv .play.tvstage.phase-ask .rounds, body.tv .play.tvstage.phase-drum .rounds, body.tv .act-stage.step-acting .rounds { display: none; }
  body.tv .play.tvstage.phase-ask .board, body.tv .play.tvstage.phase-drum .board, body.tv .act-stage.step-acting .board { display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: flex-start; gap: 6px; background: none; padding: 0; }
  body.tv .play.tvstage.phase-ask .board li, body.tv .play.tvstage.phase-drum .board li, body.tv .act-stage.step-acting .board li { flex: none; padding: 2px 8px 2px 2px; gap: 5px; }
  body.tv .play.tvstage.phase-ask .board .nm, body.tv .play.tvstage.phase-drum .board .nm, body.tv .act-stage.step-acting .board .nm,
  body.tv .play.tvstage.phase-ask .board .tix, body.tv .play.tvstage.phase-drum .board .tix, body.tv .act-stage.step-acting .board .tix { display: none; }
  body.tv .play.tvstage.phase-ask .board .n, body.tv .play.tvstage.phase-drum .board .n, body.tv .act-stage.step-acting .board .n { font-size: 16px; margin: 0; }
  body.tv .play.tvstage.phase-ask .board .dot.sm, body.tv .play.tvstage.phase-drum .board .dot.sm, body.tv .act-stage.step-acting .board .dot.sm { width: 22px; height: 22px; font-size: 11px; }
  body.tv .play.tvstage.phase-ask .now-mark, body.tv .play.tvstage.phase-drum .now-mark, body.tv .act-stage.step-acting .now-mark { display: none; }
  body.tv .play .choice { min-height: 48px; }
  body.tv .play .choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.tv .play .choices.tf { grid-template-columns: 1fr 1fr; }
  body.tv .play .choices.keypad-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  body.tv .play .big-tf { min-height: 56px; }
  body.tv .spot-banner { margin-bottom: 4px; }
  body.tv .spot-banner .dot { width: 28px; height: 28px; font-size: 13px; }
  body.tv .zip { display: none; }
  body.tv .who-btn { min-height: 48px; }
  body.tv .keypad button { min-height: 44px; }
  body.tv .play .act .btn { min-height: 48px; }
  body.tv .standings.many .standings-list { row-gap: 2px; }
  body.tv .standings .marquee { padding: calc(var(--b) + var(--u) * 1); gap: calc(var(--u) * .8); }
  body.tv .standings h1 { font-size: calc(var(--u) * 6); }
}
/* TV fitting, tuned with eight players */
body.tv .play.tvstage { align-items: stretch; }
body.tv .play.tvstage > .qboard { align-self: start; }
body.tv .play.tvstage > .choices { align-content: start; }
body.tv .play.tvstage > .act { align-self: start; }
body.tv .play.tvstage .marquee { --b: calc(var(--u) * 2.2); padding: calc(var(--b) + var(--u) * 1.6); }
body.tv .play.tvstage .q { font-size: calc(var(--u) * 5); margin-top: calc(var(--u) * 1.2); }
body.tv .play.tvstage .q.long { font-size: calc(var(--u) * 4.4); }
body.tv .play.tvstage .q.longer { font-size: calc(var(--u) * 3.8); }
body.tv .play.tvstage .choice { min-height: calc(var(--u) * 9); font-size: calc(var(--u) * 3.4); }
body.tv .play.tvstage .choice .letter { width: calc(var(--u) * 6.2); font-size: calc(var(--u) * 3.2); }
body.tv .spot-banner { display: flex; align-items: center; }
body.tv .spot-banner p { display: block; line-height: 1.25; }
body.tv .spot-banner b { font-size: calc(var(--u) * 2.8); }
body.tv .spot-banner .dot { width: calc(var(--u) * 4.6); height: calc(var(--u) * 4.6); font-size: calc(var(--u) * 2.2); }
body.tv .spot-banner .stakes { font-size: calc(var(--u) * 2.3); }
body.tv .play.tvstage .zip { margin-top: calc(var(--u) * .8); font-size: calc(var(--u) * 2.1); }
@media (max-height: 520px) { body.tv .play.tvstage .choice { min-height: 48px; } }
body.tv .play.tvstage > .why { animation: none; }
body.tv .play.tvstage > .why > :not(.row) { min-height: 0; flex-shrink: 1; overflow: hidden; }
@media (max-height: 520px) { body.tv .also { display: none; } body.tv .why .src { margin-top: 4px; } }
body.tv .who-grid { grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
body.tv .who-btn { font-size: calc(var(--u) * 2.6); }
body.tv .also-btn { min-height: max(44px, calc(var(--u) * 5)); }
@media (max-height: 520px) { body.tv .who-grid { gap: 6px; grid-auto-rows: 48px; } body.tv .who-btn { min-height: 48px; padding: 4px 8px; } body.tv .who-btn .dot { width: 26px; height: 26px; font-size: 12px; } body.tv .who-btn small { display: none; } }
@media (max-height: 520px) {
  body.tv .act-stage.step-acting .act-board .lede { display: none; }
  body.tv .act-stage.step-acting .acting .clock { width: calc(var(--u) * 14); margin-top: calc(var(--u) * .6); }
  body.tv .act-stage.step-acting .acting .clock b { font-size: calc(var(--u) * 5); }
  body.tv .act-stage.step-acting .acting .q { font-size: calc(var(--u) * 4.6); margin-top: calc(var(--u) * .6); }
  body.tv .act-stage.step-acting .rules { margin-top: calc(var(--u) * .6); gap: 2px; }
  body.tv .act-stage.step-acting .spot-banner { display: none; }
}
/* the grown-up gate in front of every link out */
.srclink { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--bulb); font-weight: 700; font-family: var(--sans); font-size: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; text-align: left; }
.src-plain { color: var(--text-2); }
.gate { width: min(92vw, 30rem); padding: 26px; border: 0; border-radius: 18px; background: #141B37; color: var(--text); box-shadow: 0 40px 100px rgba(0, 0, 0, .7); }
.gate::backdrop { background: rgba(5, 8, 20, .8); }
.gate h2 { font-size: 26px; }
.gate .gate-host { margin: 8px 0 18px; color: var(--text-2); overflow-wrap: anywhere; font-size: 19px; }
.gate .hold { position: relative; overflow: hidden; width: 100%; min-height: 60px; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.gate .hold .fill { position: absolute; inset: 0; background: rgba(242, 181, 68, .35); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.gate .hold .lbl { position: relative; }
.gate .gate-go .btn { width: 100%; }
.gate .row { margin-top: 12px; }
/* a fractional pixel never makes the TV stage scroll */
html:has(body.tv[data-view="play"]) { overflow: hidden; }

/* ================================================================ Review 2 */
/* Make the code bigger works in TV mode too */
body.tv .qr.qr-big { width: min(80vh, 90vw); padding: 2vh; }
/* TV mode: no page nav; the show's own buttons are the navigation */
body.tv .bar-nav { display: none; }
/* the action bar holds Done and Nobody on Who guessed it, and Next on a reveal */
.who-act { justify-content: flex-end; }
.who-act .who-btn.nobody { min-height: 52px; width: auto; padding: 10px 20px; }
.next-act { justify-content: flex-end; }
body.tv .play.tvstage.phase-reveal > .act { align-self: end; }
body.tv .act-stage.tvstage.step-who > .act { align-self: end; }

/* Phones held upright, no TV: every main button stays on screen in a bar at the bottom */
@media (max-width: 599px) {
  .stage .btn.amber.big, .round-info > .btn, .doors, .standings .marquee > .btn, .handoff > .btn, .big-sign > .btn, .end .end-row, .end .result > .row {
    position: sticky; bottom: max(8px, env(safe-area-inset-bottom)); z-index: 4; }
  .doors { background: rgba(13, 19, 38, .96); padding: 8px; margin: 0 -8px; border-radius: 14px; }
  .doors .btn.door { min-width: 0; flex: 1 1 0; min-height: 84px; padding: 8px; }
  .end .end-row, .end .result > .row { background: rgba(13, 19, 38, .96); padding: 10px; margin: 0 -10px; border-radius: 14px; }
  .end .end-row .btn { flex: 1 1 auto; }
  .who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .who-btn { min-height: 52px; padding: 6px 10px; gap: 8px; font-size: 18px; }
  .who-btn .dot { width: 32px; height: 32px; font-size: 15px; }
  .who-btn small { font-size: 11px; }
  .act-board .lede { font-size: 16px; margin-top: 8px; }
  .act-board .reveal-card { font-size: 19px; margin-top: 8px; }
  .act-board .reveal-card .pic { width: 56px; height: 56px; }
  .act-board .q { font-size: 28px; }
  .play > .act { gap: 8px; }
  .play > .act .btn { min-height: 52px; }
  .card-zone { gap: 12px; padding: 14px; }
}
/* the TV reveal on a phone on its side: answer tags wrap under the answer, never cut off */
@media (max-height: 520px) {
  body.tv .play .choice { flex-wrap: wrap; row-gap: 2px; }
  body.tv .play .choice .tag { font-size: 11px; padding: 2px 8px; }
  body.tv .play .choices:not(.tf) .choice .txt { flex: 1 1 60%; min-width: 0; overflow-wrap: anywhere; }
}
body.tv .big-tf { flex-direction: column; justify-content: center; gap: calc(var(--u) * .6); }
body.tv .big-tf .tag { position: static; }

/* TV mode: the ceremony and end screen live in the same fixed stage as the standings */
body.tv[data-view="end"] #view { height: calc(var(--avail) + var(--oy) - 2px); display: flex; flex-direction: column; justify-content: center; }
html:has(body.tv[data-view="end"]) { overflow: hidden; }
body.tv .end { padding-top: 0; max-height: 100%; min-height: 0; display: flex; flex-direction: column; }
body.tv .end > .result { display: flex; flex-direction: column; min-height: 0; max-height: 100%; overflow: hidden; --b: calc(var(--u) * 2.2); padding: calc(var(--b) + var(--u) * 1.6); gap: calc(var(--u) * 1); }
body.tv .end .result h1 { margin: 0; font-size: calc(var(--u) * 6.4); }
body.tv .end .result .lede { margin: 0; font-size: calc(var(--u) * 2.2); }
body.tv .end .final { flex: 0 1 auto; min-height: 0; overflow: hidden; margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--u) * .8) calc(var(--u) * 1.4); }
body.tv .end .final li { padding: calc(var(--u) * .8) calc(var(--u) * 1.4); gap: calc(var(--u) * .4) calc(var(--u) * 1.2); grid-template-columns: calc(var(--u) * 3.4) auto minmax(0, 1fr) auto; }
body.tv .end .final .dot { width: calc(var(--u) * 4.6); height: calc(var(--u) * 4.6); font-size: calc(var(--u) * 2.2); }
body.tv .end .final .nm { font-size: calc(var(--u) * 2.6); }
body.tv .end .final .nm small { font-size: calc(var(--u) * 2.2); }
body.tv .end .final .tix { display: none; }
body.tv .end .final .n { font-size: calc(var(--u) * 2.6); grid-row: 1 / span 2; }
body.tv .end .final .place svg { width: calc(var(--u) * 3); height: calc(var(--u) * 3); }
body.tv .end .coach { margin: 0; gap: calc(var(--u) * .6); flex: none; }
body.tv .end .coach p { font-size: calc(var(--u) * 2.2); }
body.tv .end .coach .btn { min-height: max(44px, calc(var(--u) * 5.6)); }
body.tv .end .result > .row { flex: none; margin: 0; gap: calc(var(--u) * 1.2); }
body.tv .end .recap { display: none; }
.recap-overlay { overflow: auto; padding: 5vh 5vw; align-content: start; }
.recap-overlay .recap { width: min(100%, 1100px); }
@media (max-height: 520px) {
  body.tv .keypad-wrap > .keypad { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-row: 1 / span 2; gap: 6px; }
  body.tv .keypad-wrap > .muted { display: none; }
  body.tv .entry-box { min-height: 56px; }
  body.tv .entry { font-size: calc(var(--u) * 7); }
  body.tv .count-art { padding: 4px; gap: 2px; }
  body.tv .count-art .pic { width: calc(var(--u) * 5); }
}
@media (max-height: 520px) {
  body.tv .card-zone { grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: center; padding: 8px; gap: 8px; }
  body.tv .card-zone .qr { grid-row: 1 / span 3; width: calc(var(--u) * 34); }
  body.tv .card-zone .peek-ask .muted, body.tv .card-zone .peek-short { display: none; }
  body.tv .card-zone .make-big, body.tv .card-zone .show-code, body.tv .card-zone .peek-first, body.tv .card-zone .btn.peek { padding: 8px 12px; font-size: 14px; }
  body.tv .play .choices.keypad-wrap { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
}
@media (max-width: 599px) {
  .end .end-row { gap: 6px; padding: 8px; }
  .end .end-row .btn { flex: 1 1 45%; min-height: 48px; padding: 8px 10px; font-size: 15px; }
  .end .end-row .btn.big { font-size: 16px; }
}
