:root { --c0: #ff4fa3; --c1: #19e6c1; --c0d: #a8246a; --c1d: #0c8f78; --gold: #ffd84d; --goldd: #b8860b; --ink: #fff; --bg: #0d0524; --panel: #2a1460; --panel2: #3b1d85; --card: #160a38; --navy: #1a0830; --mute: #d9ccff; --good: #2be37a; --bad: #ff3b5c; }
/* on a wide-colour screen (most OLED TVs) the show colours step outside sRGB; everything else falls back to the hex values above */
@media (color-gamut: p3) { @supports (color: color(display-p3 1 1 1)) { :root { --c0: color(display-p3 1 .24 .62); --c1: color(display-p3 .08 .93 .76); --gold: color(display-p3 1 .86 .24); --good: color(display-p3 .14 .9 .44); --bad: color(display-p3 1 .19 .33); } } }
/* ============================================================================================================
   THE SYSTEM. Every screen is built from these; a new game should not need a colour, radius, border or font
   size of its own.
   Type      --display (Bungee, capitals) is for titles, numbers and labels of a few words.
             --body (Nunito) is for anything you read as a sentence: questions, rules, captions.
             Emoji are drawn by --glyph, a single-colour set that takes the colour of the text around it.
             Sizes step through --fs-label, --fs-body, --fs-lead, --fs-title, --fs-hero.
   Surfaces  One card: --surface with a --line border in --edge, corners --r-l. Rows and tiles inside it use --r-s.
             A card that belongs to a side swaps the border for --frame in that side's colour (--tc).
             --surface-2 is the raised version (the question, a revealed row).
   Accent    Gold is the brand and the "look here" colour: pills (.qtitle and friends), the clock, the lit answer.
             Green and red only ever mean right and wrong.
   Zones     The score strip is the top row. The bottom 5.8em of the stage belongs to the host's caption, the Next
             button and the controls; scenes never draw there.
   ============================================================================================================ */
:root {
  --glyph: 'Noto Emoji';
  --display: Bungee, var(--glyph), Impact, sans-serif; --shade: 'Bungee Shade', Bungee, var(--glyph), sans-serif; --body: Nunito, var(--glyph), system-ui, sans-serif;
  --picture: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; /* full-colour emoji, only where the emoji IS the content (picture rounds) */
  --fs-label: .8em; --fs-body: 1.15em; --fs-lead: 1.5em; --fs-title: 2.1em; --fs-hero: 4.4em;
  --r-s: .55em; --r-l: 1.1em; --r-pill: 3em;
  --line: .13em; --frame: .2em; --edge: #ffffff47;
  --surface: #120830f2; --surface-2: #2a1460; --lift: 0 .4em 0 #0000005c; --pill-lift: 0 .2em 0 var(--goldd);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: #000; overflow: hidden; }
body { color: var(--ink); font-family: var(--body); font-weight: 800; }
h1, h2, h3, h4, .display { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.05; letter-spacing: .01em; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; }
.t0 { --tc: var(--c0); --tcd: var(--c0d); } .t1 { --tc: var(--c1); --tcd: var(--c1d); }
/* free-for-all: every contestant has a colour of their own (same order as SOLO_COL in stage/main.js) */
.t2 { --tc: #ffd84d; --tcd: #b8860b; } .t3 { --tc: #5aa0ff; --tcd: #2759a8; } .t4 { --tc: #ff7a3d; --tcd: #a8431a; } .t5 { --tc: #b78cff; --tcd: #6a45b0; }
.t6 { --tc: #7be04a; --tcd: #3f8a1e; } .t7 { --tc: #ff5a5a; --tcd: #a82a2a; } .t8 { --tc: #4fd8ff; --tcd: #1f87a8; } .t9 { --tc: #f7a8ff; --tcd: #a357ab; }
.t10 { --tc: #c8d44a; --tcd: #7d861f; } .t11 { --tc: #ffffff; --tcd: #9a93b5; } .tg { --tc: var(--gold); --tcd: var(--goldd); }

/* shared motion */
@keyframes flicker { 0% { opacity: 0; } 8% { opacity: 1; } 12% { opacity: .15; } 20% { opacity: 1; } 26% { opacity: .3; } 34%, 100% { opacity: 1; } }
@keyframes slam { 0% { transform: scale(3.4); opacity: 0; } 55% { transform: scale(.92); opacity: 1; } 75% { transform: scale(1.05); } 100% { transform: scale(1); opacity: 1; } }
@keyframes pop { 0% { transform: scale(0); opacity: 0; } 70% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes rise { from { transform: translateY(1.4em); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drop { 0% { transform: translateY(-160%); opacity: 0; } 60% { transform: translateY(8%); opacity: 1; } 80% { transform: translateY(-4%); } 100% { transform: none; opacity: 1; } }
@keyframes flipx { from { transform: perspective(40em) rotateX(-90deg); opacity: 0; } to { transform: perspective(40em) rotateX(0); opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sweepA { from { transform: rotate(-18deg); } to { transform: rotate(14deg); } }
@keyframes sweepB { from { transform: rotate(16deg); } to { transform: rotate(-12deg); } }
@keyframes pulse { 50% { transform: scale(1.06); } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-.6em); } 40% { transform: translateX(.5em); } 60% { transform: translateX(-.3em); } 80% { transform: translateX(.2em); } }
@keyframes heart { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.14); } 24% { transform: scale(1); } 36% { transform: scale(1.08); } 48% { transform: scale(1); } }
@keyframes drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes ring { from { transform: scale(.7); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
@keyframes tickA { from { transform: translateY(-70%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tickB { from { transform: translateY(-70%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes numA { 0% { transform: scale(2.6); opacity: 0; } 40% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes numB { 0% { transform: scale(2.6); opacity: 0; } 40% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes spread { from { letter-spacing: .02em; opacity: 0; } to { letter-spacing: .3em; opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* everything on the stage is sized in em so it scales to any TV */
#stage { position: fixed; inset: 0; margin: auto; width: calc(100% * var(--fit, 1)); height: calc(100% * var(--fit, 1)); font-size: calc(min(1.5vw, 2.67vh) * var(--fit, 1)); overflow: hidden; display: grid; grid-template-rows: 4.6em 1fr;
  background: radial-gradient(90% 70% at 50% 108%, #4a1a9a 0%, #1f0b52 42%, var(--bg) 74%, #03010a 100%); }
#stage::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .09; background: radial-gradient(circle, #fff .06em, transparent .085em) 0 0 / .75em .75em; }
#stage::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 9em; pointer-events: none;
  background: repeating-linear-gradient(to bottom, #ffffff10 0 1px, transparent 1px .7em), radial-gradient(60% 100% at 50% 100%, #ff4fa340, transparent 70%); }
/* Beams are a soft-edged cone drawn once as a gradient and then only rotated, which the graphics card does for free.
   (They used to be blurred and screen-blended, which re-blended the whole 4K stage every frame and starved the audio.) */
.spot { position: absolute; top: -6em; width: 24em; height: 52em; margin-left: -4em; pointer-events: none; opacity: .3; transform-origin: 50% 0; will-change: transform;
  background: conic-gradient(from 168deg at 50% 0, transparent 0deg, var(--sc) 9deg, var(--sc) 15deg, transparent 24deg, transparent 360deg);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 88%); mask-image: linear-gradient(to bottom, #000, transparent 88%); transition: opacity .8s; }
.s1 { left: 3%; --sc: var(--c0); animation: sweepA 9s ease-in-out infinite alternate; }
.s2 { left: 38%; --sc: #fff; animation: sweepB 11s ease-in-out infinite alternate; }
.s3 { left: 73%; --sc: var(--c1); animation: sweepA 8s ease-in-out infinite alternate-reverse; }
/* house lights: body.dim drops them for a reveal, body.dark is a full blackout.
   The layer is pure black, so on an OLED the blackout switches those pixels off and only the lit cards remain. */
#dim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: #000; opacity: 0; transition: opacity .7s; }
body.dim #dim { opacity: .9; } body.dark #dim { opacity: 1; } body.dim .spot, body.dark .spot { opacity: .04; }
/* bulbs: two fixed rows of lamps that swap brightness. Nothing is repainted, only faded. */
.bulbs { position: absolute; left: 0; right: 0; height: .85em; z-index: 6; pointer-events: none; }
.bulbs::before, .bulbs::after { content: ''; position: absolute; inset: 0; will-change: opacity; animation: bulbA .5s steps(1) infinite;
  background: radial-gradient(circle at .57em 50%, #fff .13em, var(--gold) .23em, #ffd84d55 .3em, transparent .42em) 0 0 / 2.3em 100%; }
.bulbs::after { background-position: 1.15em 0; animation-name: bulbB; }
.bulbs.top { top: 0; } .bulbs.bottom { bottom: 0; } .bulbs.bottom::before { animation-name: bulbB; } .bulbs.bottom::after { animation-name: bulbA; }
@keyframes bulbA { 0% { opacity: 1; } 50% { opacity: .22; } } @keyframes bulbB { 0% { opacity: .22; } 50% { opacity: 1; } }
/* calm is the setting; lite switches itself on if the screen cannot keep up (see watchFrames in main.js) */
body.calm .spot, body.lite .spot, body.calm .bulbs::before, body.calm .bulbs::after, body.lite .bulbs::before, body.lite .bulbs::after { animation: none; }

/* scores: one quiet line while a game runs; a team's score grows and glows only when points land */
#hud { position: relative; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1em; padding: 1.4em 2.4em .2em; }
#hud .hside { display: flex; align-items: center; gap: 1.2em; min-width: 0; } #hud .hside.r { justify-content: flex-end; }
#hud .team { position: relative; display: flex; align-items: center; gap: .6em; transform-origin: 0 50%; }
#hud .hside.r .team { flex-direction: row-reverse; transform-origin: 100% 50%; }
#hud .team::before { content: ''; flex: none; width: .5em; height: 2.1em; border-radius: .25em; background: var(--tc); }
/* more than two sides: tighter, the title stacks, and past four the names give way to faces */
#hud.solo .hside { gap: .9em; } #hud.solo .team { gap: .35em; } #hud.solo .team::before { width: .35em; height: 1.7em; }
#hud.solo .tname { letter-spacing: .04em; max-width: 6.5em; overflow: hidden; text-overflow: ellipsis; } #hud.solo .tscore { font-size: 1.2em; }
#hud.solo #hud-sub { display: block; } #hud.solo #hud-sub:not(:empty)::before { content: none; }
#hud.many .tname { font-size: 1.15em; letter-spacing: 0; } #hud.many .tscore { font-size: 1.05em; } #hud.many .hside { gap: .7em; } #hud.crowd .hside { font-size: .72em; }
#hud .tname { font-size: .8em; letter-spacing: .14em; text-transform: uppercase; color: var(--tc); white-space: nowrap; }
#hud .tscore { font-family: var(--display); font-size: 1.6em; font-variant-numeric: tabular-nums; }
#hud .team.bump { animation: hudbump 1.7s; } #hud .team.bump .tscore { text-shadow: 0 0 .7em var(--tc); }
@keyframes hudbump { 0%, 100% { transform: scale(1); } 12%, 78% { transform: scale(1.35); } }
#hud .mid { text-align: center; font-size: .8em; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); } #hud-title, #hud-sub { display: inline; } #hud-sub:not(:empty)::before { content: ' · '; }
.float { position: absolute; top: 95%; left: 1.2em; font-family: var(--display); font-size: 1.7em; animation: floatup 1.8s both; pointer-events: none; z-index: 9; }
#hud .hside.r .float { left: auto; right: 1.2em; } #hud.solo .float { font-size: 1.2em; left: .6em; } #hud.solo .hside.r .float { right: .6em; } .float.plus { color: var(--good); } .float.minus { color: var(--bad); }
@keyframes floatup { 0% { transform: translateY(.5em) scale(.6); opacity: 0; } 20% { transform: none; opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(1.2em); opacity: 0; } }

#timer { position: absolute; top: 4.5em; left: 14%; right: 14%; height: .5em; border-radius: 1em; background: #0009; z-index: 5; opacity: 0; transition: opacity .2s; overflow: hidden; }
#timer.on { opacity: 1; } #timer i { display: block; height: 100%; width: 100%; background: var(--gold); border-radius: 1em; } #timer.low i { background: var(--bad); }

#scene { position: relative; z-index: 2; min-height: 0; padding: 1.2em 2.4em 5.8em; display: grid; place-items: center; }
#scene.in > * { animation: scenein .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes scenein { from { transform: scale(.88) translateY(1em); opacity: 0; } }
#scene.still.in > * { animation: none; } #scene.in > .gtitle { animation: shake .45s .15s; } #scene.in > .how, #scene.in > .board, #scene.in > .finale { animation: fade .3s; }
#scene > * { width: 100%; max-height: 100%; }

#caption { position: absolute; z-index: 7; left: 50%; bottom: 1.5em; transform: translate(-50%, 250%); max-width: 88%; display: flex; gap: .5em; align-items: center; padding: .3em 1.2em; border-radius: 2em; background: #000c; border: .1em solid var(--gold); transition: transform .3s cubic-bezier(.2, 1.3, .4, 1); }
#caption.on { transform: translate(-50%, 0); } #caption p { margin: 0; font-size: .85em; font-weight: 700; line-height: 1.25; } #caption .mic { font-size: .9em; animation: wob 1s ease-in-out infinite; }
@keyframes wob { 50% { transform: rotate(-12deg) scale(1.1); } }
#banner { position: absolute; z-index: 8; top: 42%; left: 50%; transform: translate(-50%, -50%) scale(0); font-family: var(--display); font-size: 3.4em; text-align: center; padding: .25em .8em; border-radius: .35em; background: var(--bg); border: .08em solid var(--gold); box-shadow: 0 .15em 0 var(--goldd); pointer-events: none; white-space: nowrap; }
#banner.on { animation: bannerin .4s both; } @keyframes bannerin { 0% { transform: translate(-50%, -50%) scale(3.2) rotate(-2deg); opacity: 0; } 60% { transform: translate(-50%, -50%) scale(.94) rotate(-2deg); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1) rotate(-2deg); opacity: 1; } }
#banner .bad small { display: inline; color: var(--bad); }
#banner small { display: block; font-size: .35em; color: var(--gold); letter-spacing: .1em; } #banner .bad { color: var(--bad); } #banner .t0, #banner .t1 { color: var(--tc); }
#flash { position: absolute; inset: 0; pointer-events: none; z-index: 9; opacity: 0; }
#flash.good { background: var(--good); animation: flash .45s; } #flash.bad { background: var(--bad); animation: flash .45s; } #flash.buzz { background: #fff; animation: flash .45s; }
@keyframes flash { from { opacity: .7; } to { opacity: 0; } }
#fx { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
#ctl { position: absolute; z-index: 11; right: .6em; bottom: 1.2em; display: flex; gap: .3em; opacity: .25; transition: opacity .2s; } #ctl:hover { opacity: 1; }
#ctl button, #next { background: #000a; border-radius: .5em; padding: .3em .55em; font-size: .9em; }
#next { position: absolute; z-index: 11; right: .6em; bottom: 3.6em; background: var(--gold); color: var(--navy); font-family: var(--display); box-shadow: 0 .2em 0 var(--goldd); }
#net { position: absolute; z-index: 11; left: .8em; bottom: 1.2em; font-size: .7em; opacity: .7; }
#tap { position: absolute; z-index: 12; left: 50%; top: 5.4em; transform: translateX(-50%); background: #000c; padding: .3em 1em; border-radius: 2em; font-size: .75em; }

/* shared bits */
.chip { display: inline-flex; align-items: center; gap: .25em; padding: .12em .6em; border-radius: 2em; background: var(--tc); color: var(--navy); font-size: .8em; margin: .12em; white-space: nowrap; animation: chipin .25s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes chipin { from { transform: scale(0); } }
.hint { opacity: .7; font-size: .8em; text-align: center; margin: .4em 0 0; }
.pulse { animation: pulse 1.1s ease-in-out infinite; }
.sign { text-align: center; line-height: 1; }
.sign span { display: block; font-family: var(--display); font-size: 2.1em; color: #fff; text-shadow: .07em .07em 0 #c2560f, 0 0 .5em #ff7a3d66; animation: flicker .9s .3s both; }
.sign b { display: block; font-family: var(--shade); font-weight: 400; font-size: 5.6em; line-height: 1.1; color: var(--gold); text-shadow: 0 0 .25em #ff7a3d, 0 0 .6em #ff7a3d88; animation: flicker 1.1s .9s both; }
.title-card { text-align: center; display: grid; gap: .5em; justify-items: center; }
.title-card h1 { font-size: 4.4em; color: var(--gold); text-shadow: .05em .05em 0 var(--c0), .1em .1em 0 #7a1fb8; } .title-card h3 { font-size: 1.6em; color: var(--tc, #fff); }
.title-card small { letter-spacing: .2em; text-transform: uppercase; color: var(--mute); } .title-card .tag { font-size: 1.4em; margin: 0; } .ie { font-size: 5em; line-height: 1; animation: pulse 1.4s infinite; }
.versus { display: flex; gap: 1.5em; align-items: center; justify-content: center; margin-top: 1.4em; } .vs { font-family: var(--display); font-size: 2.6em; color: var(--gold); text-shadow: .07em .07em 0 var(--c0); animation: slam .5s 1.6s both; }
.vteam { min-width: 16em; border-radius: 1.1em; background: var(--card); border: .2em solid var(--tc); box-shadow: 0 .5em 0 var(--tcd); overflow: hidden; animation: rise .5s 1.3s both; }
.vteam.wide { min-width: 30em; max-width: 46em; } .vteam.wide > div { display: flex; flex-wrap: wrap; gap: .4em; justify-content: center; }
.vteam h3 { background: var(--tc); color: var(--navy); padding: .5em .8em; font-size: 1.35em; } .vteam > div { padding: .7em; min-height: 3.4em; }

/* start screen (before the lobby) */
body.start #hud { visibility: hidden; } body.start #tap { top: auto; bottom: 1.3em; } body.start #btn-skip { display: none; } body.start #ctl { right: auto; left: .6em; }
#scene.st { margin-top: -3em; padding-bottom: 2.3em; }
.start { width: 100%; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 25.8em; gap: 2.9em; text-align: left; }
.st-left { display: flex; flex-direction: column; gap: 1.1em; min-height: 0; }
.st-card, .st-panel { border-radius: 1.15em; background: var(--card); border: .2em solid var(--gold); box-shadow: 0 .5em 0 var(--goldd); overflow: hidden; display: flex; }
.st-card { align-items: stretch; animation: drop .6s both; }
.st-sign { flex: 1; min-width: 0; padding: .8em .8em .8em 1.1em; display: flex; flex-direction: column; justify-content: center; }
.st-sign span { font-family: var(--display); font-size: 1.15em; line-height: 1.1; white-space: nowrap; text-transform: uppercase; text-shadow: .08em .08em 0 #c2560f, 0 0 .5em #ff7a3d66; animation: flicker .9s .5s both; }
.st-sign b { font-family: var(--shade); font-weight: 400; font-size: 4.2em; line-height: 1.1; white-space: nowrap; text-transform: uppercase; color: var(--gold); text-shadow: 0 0 .3em #ff7a3d, 0 0 .75em #ff7a3d88; animation: flicker 1.1s 1s both; }
.st-qr { width: 10.4em; height: 10.4em; flex: none; align-self: center; margin: .8em; background: #fff; border-radius: .6em; padding: .2em; display: grid; place-items: center; } .st-qr svg { width: 100%; height: 100%; display: block; }
.st-strip { width: 2.1em; flex: none; background: var(--gold); color: var(--navy); display: grid; place-items: center; writing-mode: vertical-rl; font-family: var(--display); font-size: 1.05em; letter-spacing: .14em; white-space: nowrap; transition: background .3s; }
.st-card.on .st-strip, .st-card.on .st-qr { background: var(--good); } .st-card.on .st-qr b { font-family: var(--display); font-weight: 400; font-size: 6em; line-height: 1; color: #06231d; animation: pop .4s both; }
.st-play { flex: 1; min-height: 0; display: flex; align-items: center; gap: 1.9em; animation: rise .5s 1.4s both; }
.st-go { position: relative; width: 12em; height: 12em; flex: none; border-radius: 50%; background: var(--gold); border: .36em solid #fff; box-shadow: 0 .73em 0 var(--goldd); color: var(--navy); display: flex; flex-direction: column; align-items: center; justify-content: center; animation: pulse 1.4s 2s infinite; }
.st-go svg { width: 4.8em; height: 4.8em; } .st-go span { font-family: var(--display); font-size: 2.1em; line-height: 1; }
.st-go::after { content: ''; position: absolute; inset: -.36em; border-radius: 50%; border: .26em solid var(--gold); animation: ring 1.8s infinite; pointer-events: none; }
.st-go:disabled { opacity: .35; animation: none; cursor: default; } .st-go:disabled::after { display: none; }
.st-sum h3 { font-size: 1.55em; line-height: 1.15; text-transform: uppercase; } .st-sum p { margin: .5em 0 0; font-size: 1.15em; line-height: 1.3; } .st-sum p.bad { color: #ff8a9c; }
.st-panel { flex-direction: column; min-height: 0; animation: rise .5s 1.1s both; }
.st-panel header { padding: .6em 1em; background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: space-between; } .st-panel h2 { font-size: 1.35em; text-transform: uppercase; }
.st-panel header button { width: 2.5em; height: 2.5em; border-radius: 50%; background: var(--navy); }
.st-body { flex: 1; min-height: 0; padding: 1em; display: flex; flex-direction: column; gap: 1em; }
.st-body small { display: block; font-size: .72em; letter-spacing: .16em; color: var(--mute); text-transform: uppercase; margin-bottom: .55em; }
.st-levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4em; }
.st-levels button { height: 3.3em; border-radius: .8em; border: .17em solid #fff6; background: var(--bg); font-family: var(--display); font-size: .88em; text-transform: uppercase; } .st-levels button.on { background: var(--gold); color: var(--navy); border-color: #fff; box-shadow: 0 .3em 0 var(--goldd); }
.st-two { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.2em; align-items: end; } .st-two .st-rounds { display: block; } .st-two .st-rounds small { margin-bottom: .55em; }
.st-modes { display: grid; grid-template-columns: 1fr 1fr; gap: .4em; } .st-modes button { height: 2.7em; border-radius: .8em; border: .17em solid #fff6; background: var(--bg); font-family: var(--display); font-size: .88em; text-transform: uppercase; } .st-modes button.on { background: var(--gold); color: var(--navy); border-color: #fff; box-shadow: 0 .3em 0 var(--goldd); }
.st-rounds { display: flex; align-items: center; justify-content: space-between; } .st-rounds small { margin: 0 0 .2em; } .st-rounds span { font-size: .88em; }
.st-rounds > div:last-child { display: flex; align-items: center; gap: .5em; } .st-rounds button { width: 2.7em; height: 2.7em; border-radius: .7em; border: .15em solid #fff6; background: var(--bg); font-family: var(--display); }
.st-rounds b { width: 1.6em; text-align: center; font-family: var(--display); font-weight: 400; font-size: 2.1em; color: var(--gold); }
.st-cathead { display: flex; align-items: center; justify-content: space-between; } .st-cathead small { margin: 0; } .st-cathead i { font-style: normal; } .st-cathead button { background: none; color: var(--gold); text-decoration: underline; font-size: .8em; padding: .5em; }
.st-cats { display: flex; flex-wrap: wrap; gap: .4em; margin-top: .4em; } .st-cats button { padding: .5em .75em; border-radius: 2em; border: .1em dashed #fff8; background: none; color: var(--mute); font-size: .83em; font-weight: 900; }
.st-cats button.on { border-style: solid; border-color: var(--gold); background: var(--panel2); color: #fff; }
.st-hat { margin-top: auto; padding: .75em .9em; border-radius: .7em; border: .1em solid #fff6; background: var(--bg); display: flex; justify-content: space-between; font-size: .9em; } .st-hat b { font-family: var(--display); font-weight: 400; color: var(--gold); text-transform: uppercase; }

/* lobby */
#scene.lob { padding-bottom: 1.7em; }
.lobby { width: 100%; height: 100%; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: .9em; }
.lobby .sign span { font-size: 1.7em; } .lobby .sign b { font-size: 4.2em; }
.lrow3 { display: grid; grid-template-columns: minmax(0, 1fr) 15.6em minmax(0, 1fr); gap: 1.7em; min-height: 0; padding-bottom: .5em; }
.lteam { border-radius: 1.15em; background: var(--card); border: .2em solid var(--tc); box-shadow: 0 .5em 0 var(--tcd); overflow: hidden; display: flex; flex-direction: column; min-height: 0; animation: rise .5s 2s both; }
.lteam header { padding: .6em .9em; background: var(--tc); display: flex; align-items: center; justify-content: space-between; } .lteam h3 { font-size: 1.4em; color: var(--navy); }
.lteam header span { padding: .2em .7em; border-radius: 1em; background: var(--navy); color: var(--tc); font-family: var(--display); font-size: .85em; text-transform: uppercase; }
.lps { flex: 1; padding: .9em; display: flex; flex-wrap: wrap; gap: .5em; align-content: flex-start; overflow: hidden; }
.lteam.tg h3 { font-size: 1.25em; }
.lp { position: relative; display: flex; align-items: center; gap: .4em; padding: .3em .85em .3em .4em; border-radius: 2em; background: var(--tc); color: var(--navy); font-size: 1.1em; font-weight: 900; }
.lp i { font-style: normal; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--navy); display: grid; place-items: center; }
.lp em { font-style: normal; font-size: .6em; letter-spacing: .1em; padding: .15em .6em; border-radius: 1em; background: var(--navy); color: var(--gold); }
.lp.new { animation: pop .45s both; } .lp.new::after { content: ''; position: absolute; inset: 0; border-radius: 2em; border: .15em solid #fff; animation: ring .7s both; }
.lp.off { opacity: .4; } .lp.ghost { background: none; color: #fffa; border: .1em dashed #fff6; padding-left: .85em; }
.join { border-radius: 1.15em; background: var(--gold); color: var(--navy); box-shadow: 0 .5em 0 var(--goldd); padding: .7em; min-height: 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3em; animation: drop .7s 1.5s both; }
.join h4 { font-size: 1.05em; letter-spacing: .08em; } .join small { font-size: .68em; letter-spacing: .14em; }
.qr { flex: 0 1 auto; min-height: 0; height: 7.6em; aspect-ratio: 1; background: #fff; border-radius: .6em; border: .2em solid var(--navy); padding: .15em; } .qr svg { width: 100%; height: 100%; display: block; }
.code { display: flex; gap: .3em; } .code i { font-style: normal; width: 1.35em; height: 1.6em; border-radius: .25em; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-family: var(--display); font-size: 1.75em; animation: flipx .4s 2s both; }
.code i:nth-child(2) { animation-delay: 2.12s; } .code i:nth-child(3) { animation-delay: 2.24s; } .code i:nth-child(4) { animation-delay: 2.36s; }
.url { font-size: .6em; opacity: .85; word-break: break-all; text-align: center; }
.lfoot { display: flex; align-items: center; gap: 1.2em; animation: fade .5s 2.6s both; } .lfoot .lbl { font-family: var(--display); font-size: .95em; line-height: 1.2; color: var(--gold); text-transform: uppercase; }
.lcards { display: flex; gap: .5em; } .lcards i { font-style: normal; width: 1.95em; height: 2.6em; border-radius: .32em; background: var(--panel); border: .07em solid var(--gold); display: grid; place-items: center; font-family: var(--display); font-size: 1.3em; color: var(--gold); }
.lcards i.fin { width: 4.6em; height: 5.9em; font-size: .57em; background: var(--gold); color: var(--navy); } .lcards i.more { border-style: dashed; font-size: .85em; width: 3em; height: 4em; }
.lgo { flex: 1; text-align: center; font-family: var(--display); font-size: 1.25em; text-transform: uppercase; text-shadow: 0 0 .7em var(--gold); animation: blink 1.4s ease-in-out infinite; }

/* game reveal: reel, title, how-to-play slides, countdown */
.reel { display: grid; gap: 1.4em; justify-items: center; text-align: center; } .reel small { font-family: var(--display); font-size: 1.35em; text-transform: uppercase; animation: spread .8s both; }
.reel-win { position: relative; width: 45em; max-width: 100%; height: 8.8em; border-radius: 1.25em; background: var(--bg); border: .3em solid var(--gold); box-shadow: 0 .5em 0 var(--goldd), inset 0 0 2.6em #000; overflow: hidden; display: grid; place-items: center; }
.reel-win::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--bg), transparent 30%, transparent 70%, var(--bg)); }
.reel-name { font-family: var(--display); font-size: 3.4em; white-space: nowrap; } .reel-name.a { animation: tickA .09s ease-out both; } .reel-name.b { animation: tickB .09s ease-out both; }
.reel em { font-style: normal; letter-spacing: .2em; color: var(--mute); animation: blink .5s infinite; }
.gtitle { display: grid; gap: .9em; justify-items: center; text-align: center; animation: shake .45s .15s; }
.gtitle .ie { font-size: 4.5em; animation: pop .5s .2s both; } .gtitle h1 { font-size: 6em; line-height: 1; color: var(--gold); text-shadow: .04em .04em 0 var(--c0), .08em .08em 0 #7a1fb8; animation: slam .5s both; }
.gtitle p { margin: 0; font-size: 1.65em; animation: rise .5s .7s both; } .gtitle small { letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.how { width: 100%; height: 100%; display: grid; grid-template-rows: auto 1fr auto; gap: 1em; }
.how-head { display: flex; align-items: center; justify-content: space-between; text-align: left; } .how-head small { display: block; font-size: .8em; letter-spacing: .2em; color: var(--mute); text-transform: uppercase; }
.how-head h2 { font-size: 2.2em; color: var(--gold); text-shadow: .07em .07em 0 var(--c0); }
.pips { display: flex; gap: .5em; } .pips i { width: .75em; height: .75em; border-radius: .4em; background: #fff6; } .pips i.on { width: 2.3em; background: var(--gold); }
.how-body { display: grid; grid-template-columns: 31em minmax(0, 1fr); gap: 2.9em; align-items: center; min-height: 0; }
.art { height: 100%; max-height: 22em; border-radius: 1.35em; background: #0d0524cc; border: .15em solid var(--gold); display: flex; align-items: center; justify-content: space-evenly; gap: .6em; padding: 1.2em; overflow: hidden; animation: rise .4s both; }
.how-txt { display: grid; gap: .5em; text-align: left; } .how-txt .n { font-family: var(--shade); font-size: 7em; line-height: 1; color: var(--gold); animation: slam .45s both; }
.how-txt h3 { font-size: 2em; line-height: 1.14; animation: rise .4s .2s both; }
.how-ready { display: flex; align-items: center; justify-content: center; gap: 1em; min-height: 2.6em; } .how-ready .seats { margin: 0; min-height: 0; } .rdy { font-family: var(--display); font-weight: 400; color: var(--gold); white-space: nowrap; }
/* the number sits dead centre of the stage; the label hangs above it without pushing it down */
.count { position: relative; height: 100%; display: grid; place-items: center; text-align: center; }
.count span { position: absolute; top: .6em; left: 0; right: 0; margin: auto; width: max-content; padding: .25em 1.2em; border-radius: 2em; background: var(--gold); color: var(--navy); font-family: var(--display); font-size: 1.55em; box-shadow: 0 .2em 0 var(--goldd); animation: drop .5s both; }
.count b { font-family: var(--shade); font-weight: 400; font-size: 15em; line-height: 1; padding-bottom: .06em; color: var(--gold); text-shadow: 0 0 .27em var(--gold); }
.count b.go { color: var(--good); text-shadow: 0 0 .27em var(--good); } .count b.a { animation: numA .5s both; } .count b.b { animation: numB .5s both; }

/* how-to-play pictograms */
.pg { display: grid; place-items: center; animation: pop .4s .15s both; } .pg ~ .pg { animation-delay: .7s; } .pg-arrow { font-family: var(--display); font-size: 2.6em; color: var(--gold); animation: fade .3s .5s both; }
.pg-phone { width: 8.6em; height: 15.6em; border: .26em solid #fff; border-radius: 1.5em; background: #1a0b3b; padding: 1.8em .7em .7em; gap: .5em; align-content: center; place-items: stretch; position: relative; }
.pg-tv { width: 14em; height: 9.6em; border: .26em solid #fff; border-radius: .9em; background: #0b0620; padding: .7em; gap: .4em; align-content: center; place-items: stretch; position: relative; overflow: hidden; }
.pg-emo { font-size: 6.5em; line-height: 1; } .pg-emo.sm { font-size: 3.4em; text-align: center; }
.pg-big { gap: .5em; font-family: var(--display); text-align: center; } .pg-big b { font-weight: 400; font-size: 2.6em; line-height: 1.1; padding: .12em .45em; border-radius: .25em; background: var(--gold); color: var(--navy); box-shadow: 0 .12em 0 var(--goldd); animation: pop .4s .3s both; }
.pg-big b ~ b { animation-delay: .9s; } .pg-big b ~ b ~ b { animation-delay: 1.3s; } .pg-big b.good { background: var(--good); box-shadow: 0 .12em 0 #0b7a3e; } .pg-big b.bad { background: var(--bad); color: #fff; box-shadow: 0 .12em 0 #8d0321; }
.pg-big small { font-family: var(--body); font-size: 1.05em; color: var(--mute); max-width: 14em; }
.q4 { display: grid; grid-template-columns: 1fr 1fr; gap: .4em; flex: 1; min-height: 5em; height: 100%; } .q4 i { border-radius: .5em; position: relative; }
.q4 i:nth-child(1) { background: #e3123c; } .q4 i:nth-child(2) { background: #1f7bff; } .q4 i:nth-child(3) { background: #f5a800; } .q4 i:nth-child(4) { background: #17b26a; }
.pg-phone .q4 { height: 10em; } .pg-tv .q4 { min-height: 0; height: 4.4em; } .pg-tv .q4.lights, .pg-tv .q4.out { height: 7.6em; }
.q4.lights i { animation: pop .4s both; } .q4.lights i:nth-child(1) { animation-delay: .4s; } .q4.lights i:nth-child(2) { animation-delay: .8s; } .q4.lights i:nth-child(3) { animation-delay: 1.2s; } .q4.lights i:nth-child(4) { animation-delay: 1.6s; }
.q4.out i:not(:nth-child(4)) { animation: pgdim .5s 1.2s both; } .q4.out i:nth-child(4) { box-shadow: 0 0 1.6em #17b26a; animation: heart 1.2s 1.4s infinite; } @keyframes pgdim { to { filter: grayscale(1) brightness(.25); } }
.tapme { animation: pulse .8s 1s infinite; } .tapme::after { content: ''; position: absolute; left: 50%; top: 50%; width: 2.2em; height: 2.2em; margin: -1.1em; border-radius: 50%; border: .2em solid #fff; animation: ring .9s 1s infinite both; }
.lines i { display: block; height: .5em; border-radius: .3em; background: #fff6; margin: .3em 0; } .lines i:nth-child(2) { width: 65%; }
.buzz { width: 6em; height: 6em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff8a9c, #e3123c 60%, #8d0321); justify-self: center; box-shadow: 0 0 2em var(--bad); display: grid; place-items: center; font-family: var(--display); animation: pulse .6s infinite; }
.typing { height: 2em; border-radius: .4em; border: .12em solid #fffa; position: relative; overflow: hidden; } .typing::before { content: ''; position: absolute; left: .4em; top: .55em; height: .6em; background: #fff; border-radius: .2em; animation: typew 2.4s steps(7) infinite; } @keyframes typew { from { width: 0; } to { width: 80%; } }
.squig { width: 100%; height: 100%; min-height: 5em; } .squig path { fill: none; stroke: var(--c0); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 240; animation: drawp 2.6s ease-in-out infinite; } @keyframes drawp { from { stroke-dashoffset: 240; } 70%, 100% { stroke-dashoffset: 0; } }
.slider { height: .7em; border-radius: .4em; background: #fff4; position: relative; margin: 1em 0; } .slider::after { content: ''; position: absolute; top: -.25em; width: 35%; height: 1.2em; border-radius: .5em; background: var(--gold); animation: slidex 1.8s ease-in-out infinite alternate; } @keyframes slidex { from { left: 4%; } to { left: 60%; } }
.mash { height: 6em; border-radius: 1em; background: var(--gold); color: var(--navy); display: grid; place-items: center; font-family: var(--display); font-size: 1.2em; animation: pulse .25s infinite; }
.prow i { display: block; font-style: normal; height: 1.5em; line-height: 1.4em; border-radius: .3em; background: #0009; border: .08em solid #fff5; margin: .3em 0; text-align: center; font-size: .9em; } .prow i.on { background: var(--gold); border-color: #fff; animation: pulse .9s 1s infinite; }
.prow.flip i.on { background: linear-gradient(90deg, #2b5bff, #1630a8); animation: flipx .4s .5s both; } .prow.flip i.on ~ i.on { animation-delay: 1.1s; }
.tiles3 { display: flex; gap: .4em; justify-content: center; } .tiles3 i { font-style: normal; width: 2.4em; height: 2.4em; border-radius: .3em; background: #fff; display: grid; place-items: center; font-size: 1.5em; animation: pgblur 3s ease-out infinite; } @keyframes pgblur { from { filter: blur(.3em) hue-rotate(200deg); transform: scale(.8) rotate(20deg); } 70%, 100% { filter: none; transform: none; } }
.wh { width: 8em; height: 8em; border-radius: 50%; border: .35em solid var(--gold); background: conic-gradient(#e3123c 0 25%, #1f7bff 0 50%, #f5a800 0 75%, #17b26a 0); animation: spin 2.6s cubic-bezier(.3, .6, .3, 1) infinite; }
.pegs2 { height: 100%; min-height: 7em; background: radial-gradient(circle, #9aa7d8 .18em, transparent .22em) 0 0 / 1.6em 1.6em; position: relative; } .pegs2::after { content: ''; position: absolute; width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--c0); border: .12em dashed #fff; animation: pgfall 2s ease-in infinite; } @keyframes pgfall { 0% { top: -15%; left: 40%; } 30% { left: 54%; } 60% { left: 42%; } 100% { top: 85%; left: 58%; } }
.g12 { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3em; } .g12 i { height: 1.7em; border-radius: .25em; background: linear-gradient(#2b5bff, #1630a8); } .g12 i.hot { background: var(--gold); animation: pulse .8s infinite; }
.hx { display: flex; flex-wrap: wrap; gap: .2em; justify-content: center; } .hx i { width: 2.2em; height: 2.5em; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(#ffe487, #f0b400); } .hx i.a { background: var(--c0); } .hx i.b { background: var(--c1); } .hx i.hot { background: #fff; animation: pulse .8s infinite; }
.hx4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: .25em; padding: .3em; border-radius: .5em; border: .25em solid; border-color: var(--c1) var(--c0); } .hx4 i { height: 1.5em; border-radius: .25em; background: linear-gradient(#ffe487, #f0b400); } .hx4 i.a { background: var(--c0); animation: pop .3s both; } .hx4 i.b { background: var(--c1); animation: pop .3s both; }
.hx4 i:nth-child(4n+2) { animation-delay: .5s; } .hx4 i:nth-child(4n+3) { animation-delay: .8s; } .hx4 i:nth-child(4n) { animation-delay: 1.1s; } .hx4 i.b:nth-child(n+5) { animation-delay: .5s; } .hx4 i.b:nth-child(n+9) { animation-delay: .8s; } .hx4 i.b:nth-child(n+13) { animation-delay: 1.1s; }
.pgcap { display: grid; gap: .4em; justify-items: center; } .pgcap small { font-family: var(--display); font-size: .78em; color: var(--tc); text-transform: uppercase; white-space: nowrap; }
.pgt { position: absolute; width: 2.4em; height: 2.4em; margin: -1.2em; border-radius: 50%; background: radial-gradient(circle, #fff 0 22%, var(--tc) 23% 48%, #fff 49% 66%, var(--tc) 67%); animation: pgpop 2.2s linear infinite; } @keyframes pgpop { 0% { transform: scale(0); } 10%, 80% { transform: scale(1); } 100% { transform: scale(0); } }
.padx { height: 6em; border-radius: .6em; border: .15em solid var(--c1); position: relative; } .padx::after { content: ''; position: absolute; width: 1.6em; height: 1.6em; margin: -.8em; border-radius: 50%; border: .2em solid var(--gold); animation: pgaim 2.4s ease-in-out infinite; } @keyframes pgaim { 0%, 100% { left: 25%; top: 35%; } 50% { left: 70%; top: 60%; } }
.tw { width: 6em; display: flex; flex-direction: column-reverse; align-items: center; gap: .15em; } .tw i { height: 1.1em; border-radius: .2em; background: var(--c1); animation: pop .3s both; }
.tw i:nth-child(1) { width: 100%; animation-delay: .3s; } .tw i:nth-child(2) { width: 88%; animation-delay: .7s; } .tw i:nth-child(3) { width: 80%; animation-delay: 1.1s; } .tw i:nth-child(4) { width: 62%; animation-delay: 1.5s; } .tw i:nth-child(5) { width: 50%; animation-delay: 1.9s; }
.ck { width: 8em; height: 8em; border-radius: 50%; border: .4em solid var(--gold); background: var(--bg); position: relative; } .ck::after { content: ''; position: absolute; left: 50%; top: 10%; width: .3em; height: 40%; margin-left: -.15em; background: #fff; border-radius: .2em; transform-origin: 50% 100%; animation: spin 3s linear infinite; }
.tm { display: flex; gap: .8em; } .tm i { font-style: normal; padding: .7em 1em; border-radius: .7em; font-family: var(--display); font-size: 1.3em; color: var(--navy); background: var(--c0); box-shadow: 0 .25em 0 var(--c0d); } .tm i ~ i { background: var(--c1); box-shadow: 0 .25em 0 var(--c1d); }
.tm.turns i { animation: blink 1.6s infinite; } .tm.turns i ~ i { animation-delay: .8s; }
.ltr { display: flex; gap: .25em; justify-content: center; } .ltr i { font-style: normal; width: 1.5em; height: 1.9em; border-radius: .15em; background: #17b26a; border: .08em solid #fff; display: grid; place-items: center; font-family: var(--display); color: transparent; } .ltr i.on { background: #fff; color: var(--navy); animation: flipx .4s 1s both; }
.busy { font-size: 1.9em; line-height: 1.25; text-align: center; letter-spacing: .1em; animation: pgvanish 3.4s infinite; } @keyframes pgvanish { 0%, 60% { opacity: 1; } 75%, 100% { opacity: 0; } }
.rgl { display: flex; gap: .15em; } .rgl i { flex: 1; height: 2.4em; background: var(--panel2); border: .08em solid #fff5; } .rgl i.on { background: var(--good); animation: pulse .9s 1s infinite; }

/* question card */
.qcard { width: 47em; max-width: 100%; justify-self: center; text-align: center; } .qcard.mini { width: 40em; }
.qtitle { display: inline-block; font-family: var(--display); font-size: .95em; color: var(--navy); background: var(--gold); padding: .2em 1.1em; border-radius: 2em; margin-bottom: .7em; box-shadow: 0 .18em 0 var(--goldd); }
.qcard h2, .ball h2, .survey h2 { position: relative; font-size: 2em; line-height: 1.2; background: var(--panel); border: .08em solid #fff6; border-radius: .5em; padding: .7em .9em; box-shadow: 0 .4em 1em #0009; overflow: hidden; }
.qcard h2 .w { display: inline-block; animation: rise .35s both; }
/* the clock lives in the card: the bottom edge drains into a seconds box that fills a notch in the corner */
h2.clocked { padding: .7em 3em 1.15em; }
.qclock { --kc: var(--gold); } h2.low .qclock { --kc: var(--bad); }
.qclock .qtrack { position: absolute; left: 0; right: 2.6em; bottom: 0; height: .42em; background: var(--bg); overflow: hidden; }
.qclock .qtrack i { display: block; height: 100%; background: var(--kc); transform-origin: 100% 50%; animation: drain linear both; }
.qclock .qline { position: absolute; left: 0; right: 2.6em; bottom: .42em; height: .08em; background: #fff6; }
.qclock .qbase { position: absolute; right: 0; bottom: 0; width: 2.6em; height: .5em; background: var(--kc); }
/* padding-top centres the number in the whole gold block (box plus the strip under it), not just the box */
.qclock b { position: absolute; right: 0; bottom: .42em; width: 2.6em; height: 1.5em; padding-top: .36em; border-radius: .45em 0 0 0; border-top: .08em solid #fff6; border-left: .08em solid #fff6; background: var(--kc); color: var(--navy); display: grid; place-items: center; font-weight: 400; font-size: 1em; line-height: 1; }
.qclock.done .qtrack i { animation-play-state: paused; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: .7em; margin-top: 1em; } .opts.three { grid-template-columns: 1fr 1fr 1fr; }
.opt { position: relative; display: flex; align-items: center; gap: .6em; text-align: left; padding: .5em .8em; border-radius: .6em; background: var(--bg); border: .14em solid #fff6; font-size: 1.45em; font-weight: 900; min-height: 3em; transition: opacity .3s, transform .25s, background .2s, box-shadow .2s; }
.opt > b { flex: none; width: 1.75em; height: 1.75em; border-radius: .4em; background: var(--gold); color: var(--navy); display: grid; place-items: center; font-family: var(--display); font-weight: 400; }
.opt.hide { visibility: hidden; } .opt.in { animation: flipx .4s both; }
.opts.hunt .opt { opacity: .6; } .opts.hunt .opt.hot { opacity: 1; background: var(--gold); color: var(--navy); border-color: #fff; box-shadow: 0 0 2em var(--gold); transform: scale(1.03); }
.opt.good { background: var(--good); color: #062a14; border-color: #fff; transform: scale(1.05); box-shadow: 0 0 2.4em var(--good); } .opt.good::after { content: ''; position: absolute; inset: -.14em; border-radius: .6em; border: .2em solid #fff; animation: optring .8s both; pointer-events: none; } @keyframes optring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.12, 1.5); opacity: 0; } }
.opt.dim { opacity: .35; }
.who { margin-left: auto; display: flex; flex-wrap: wrap; gap: .1em; justify-content: flex-end; } .who i { font-style: normal; background: var(--tc); border-radius: 50%; width: 1.5em; height: 1.5em; display: grid; place-items: center; font-size: .8em; animation: pop .35s both; }
.who i.coin { width: .9em; height: .9em; border: .12em solid #fff; }
.answered { min-height: 2em; margin-top: .6em; text-align: center; }
/* every contestant has a seat that lights in their team colour when they lock in */
.seats { display: flex; flex-wrap: wrap; gap: .5em; justify-content: center; min-height: 2.5em; margin-top: 1em; }
.seat { padding: .25em .85em; border-radius: 2em; border: .1em dashed #fff8; color: var(--mute); font-size: .95em; font-weight: 900; } .seat.on { border-style: solid; border-color: #fff; background: var(--tc); color: var(--navy); box-shadow: 0 0 1.1em -.1em var(--tc); animation: pop .35s both; }
.cards2 { display: flex; gap: 3em; justify-content: center; } .cards2.multi { flex-wrap: wrap; gap: 1.6em 2em; align-content: center; } .report { width: 16em; text-align: center; padding: 1em; border-radius: 1em; background: #fdf6e3; color: #222; border: .25em solid var(--tc); box-shadow: 0 .5em 0 var(--tcd); transform: rotate(-2deg); } .report:last-child { transform: rotate(2deg); }
.report h3 { color: #222; } .grade { font-family: var(--display); font-size: 5em; color: #d81b3c; line-height: 1.1; animation: slam .5s .3s both; }

/* scoreboard */
.board { width: 100%; height: 100%; display: grid; grid-template-rows: auto 1fr; gap: .9em; text-align: center; }
.board h1 { font-size: 2.8em; color: var(--gold); text-shadow: .07em .07em 0 var(--c0); animation: drop .6s both; }
.bpips { display: flex; gap: .4em; justify-content: center; align-items: center; margin-top: .6em; font-size: .8em; letter-spacing: .16em; color: var(--mute); text-transform: uppercase; animation: fade .5s .4s both; }
.bpips i { width: 2.1em; height: .75em; border-radius: .4em; background: #fff4; } .bpips i.on { background: var(--gold); } .bpips span { margin-left: .6em; }
.brow { display: grid; grid-template-columns: 11.5em minmax(0, 1fr) 11.5em; gap: 2em; min-height: 0; padding-bottom: .9em; }
.bside { border-radius: 1em; background: #0d0524cc; border: .1em solid #fff5; padding: 1em .9em; display: flex; flex-direction: column; gap: .7em; text-align: left; opacity: 0; min-height: 0; } .bside.r { text-align: center; align-items: center; }
.board.done .bside { animation: rise .5s both; } .board.done .bside.r { animation-delay: .2s; }
.bside small { display: block; font-size: .72em; letter-spacing: .16em; color: var(--mute); text-transform: uppercase; } .bside h4 { color: var(--gold); font-size: 1.05em; line-height: 1.15; margin-top: .2em; text-transform: uppercase; }
.bgain { padding: .5em .7em; border-radius: .7em; background: #ffffff14; background: color-mix(in srgb, var(--tc) 15%, transparent); } .bgain small { color: var(--tc); } .bgain b { display: block; font-family: var(--display); font-weight: 400; font-size: 2em; line-height: 1.1; }
.bmvp { margin-top: auto; } .bmvp .chip { font-size: 1.1em; margin: .3em 0; }
.bq { width: 6.8em; height: 9em; border-radius: .8em; background: var(--panel); border: .2em solid var(--gold); display: grid; place-items: center; animation: pulse 1.2s infinite; } .bq b { font-family: var(--display); font-weight: 400; font-size: 4.4em; color: var(--gold); }
.bleft { margin-top: auto; width: 100%; } .bleft div { display: flex; gap: .4em; justify-content: center; flex-wrap: wrap; margin-top: .4em; }
.bleft i { font-style: normal; width: 2.3em; height: 3em; border-radius: .4em; background: var(--panel); border: .1em solid var(--gold); display: grid; place-items: center; font-family: var(--display); color: var(--gold); } .bleft i.fin { width: 5.6em; height: 4.4em; font-size: .68em; background: var(--gold); color: var(--navy); }
/* three or more sides: no side panel, slimmer bars with each side's gain for the round under its name */
.board.multi .brow { grid-template-columns: minmax(0, 1fr) 11.5em; } .board.multi .bars { gap: 1.5em; } .board.multi .bmid { left: auto; right: 0; top: 0; transform: none; }
.bplus { font-family: var(--display); font-size: 1.3em; color: var(--tc); line-height: 1.5; } .board.multi .bar .nm { overflow: hidden; text-overflow: ellipsis; font-size: 1.5em; width: 108%; } .board.multi .bplus { font-size: 1.8em; }
.bars { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 8.3em; min-height: 0; }
.bar { position: relative; width: 12.5em; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bar .crown { height: 2.8em; } .bar .crown span { display: block; font-size: 2.6em; line-height: 1; animation: drop .6s both; filter: drop-shadow(0 0 .25em var(--gold)); }
.bar .num { font-family: var(--display); font-size: 3.5em; line-height: 1.1; font-variant-numeric: tabular-nums; text-shadow: 0 0 .4em var(--tc); } .bars.hold .num { animation: heart .9s infinite; }
.bar .fill { width: 100%; border-radius: .9em .9em 0 0; background: repeating-linear-gradient(to bottom, var(--tc) 0 1.15em, var(--tcd) 1.15em 1.35em); }
.bar .nm { width: 116%; padding: .4em 0; border-radius: 0 0 .7em .7em; background: var(--bg); border: .15em solid var(--tc); font-family: var(--display); font-size: 1.2em; color: var(--tc); white-space: nowrap; }
.bmid { position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; }
.bneck { font-family: var(--display); font-size: 1.5em; line-height: 1.1; animation: heart .9s infinite; }
.blead { padding: .5em .9em; border-radius: .7em; background: var(--gold); color: var(--navy); transform: rotate(-4deg); box-shadow: 0 .4em 0 var(--goldd); } .blead > div { animation: pop .45s both; }
.blead b { display: block; font-family: var(--display); font-weight: 400; font-size: 2.3em; line-height: 1; } .blead small { font-size: .78em; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }

/* finale */
.finale { width: 100%; height: 100%; display: grid; grid-template-rows: 8em auto 5em; gap: 1.3em; justify-items: center; align-content: center; text-align: center; }
.ftop { display: grid; place-items: center; } .ftease { font-family: var(--display); font-size: 1.8em; text-transform: uppercase; text-shadow: 0 0 .7em var(--gold); animation: spread 1.4s both; }
.fwin { display: flex; align-items: center; gap: .9em; animation: shake .45s .1s; } .fwin .trophy { font-size: 5em; line-height: 1; animation: drop .7s .3s both; filter: drop-shadow(0 0 .2em var(--gold)); }
.fwin h1 { font-size: 4.6em; line-height: 1; color: var(--tc); text-transform: uppercase; text-shadow: .05em .05em 0 var(--gold), .1em .1em 0 #7a1fb8; animation: slam .5s both; }
.fplates { position: relative; display: flex; gap: 4.2em; justify-content: center; } .fplates.multi { gap: 1.5em; flex-wrap: wrap; } .fplates.multi .fplate { width: 20.5em; min-height: 9.5em; }
.fplate { width: 20.8em; min-height: 12.5em; padding: 1em; border-radius: 1.25em; background: var(--bg); border: .26em solid var(--tc); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3em; opacity: .7; transition: transform .5s cubic-bezier(.2, 1.5, .4, 1), opacity .15s, box-shadow .15s; animation: rise .6s backwards; } .fplate ~ .fplate { animation-delay: .15s; }
.fplate h3 { font-size: 1.7em; color: var(--tc); text-transform: uppercase; } .fplate b { font-family: var(--display); font-weight: 400; font-size: 4.6em; line-height: 1.1; font-variant-numeric: tabular-nums; text-shadow: .045em .045em 0 #7a1fb8; }
.fplates.hunt .fplate { opacity: .35; } .fplates .fplate.lit { opacity: 1; transform: scale(1.03); box-shadow: 0 0 3.6em var(--tc); }
.fplates .fplate.won { opacity: 1; transform: scale(1.08); box-shadow: 0 0 3.6em var(--tc); } .fplates .fplate.lost { opacity: .4; transform: scale(.9); }
.fby { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%) rotate(-4deg); } .fby > div { padding: .4em .8em; border-radius: .7em; background: var(--gold); color: var(--navy); box-shadow: 0 .3em 0 var(--goldd); animation: pop .45s both; }
.fby small { display: block; font-size: .68em; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; } .fby b { display: block; font-family: var(--display); font-weight: 400; font-size: 2.1em; line-height: 1; }
.fbot { display: flex; align-items: center; justify-content: center; gap: 1em; }
.fmvp { padding: .5em 1.3em; border-radius: 2.5em; background: var(--gold); color: var(--navy); box-shadow: 0 .4em 0 var(--goldd); display: flex; align-items: center; gap: .7em; animation: pop .5s both; } .fmvp small { font-family: var(--display); font-size: 1.05em; } .fmvp span { font-size: 1.45em; font-weight: 900; } .fmvp b { font-family: var(--display); font-weight: 400; font-size: 1.25em; }
.wcam { height: 5em; border-radius: .6em; border: .2em solid var(--gold); transform: scaleX(-1); }

/* four corners */
.corners { position: relative; height: 100%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: .7em; }
.corner { border-radius: 1em; background: var(--c); padding: .7em 1em; font-size: 1.5em; display: flex; flex-direction: column; transition: all .5s; box-shadow: inset 0 0 3em #0006; }
.corner:nth-child(2), .corner:nth-child(4) { align-items: flex-end; text-align: right; } .corner:nth-child(n+3) { flex-direction: column-reverse; }
.corner .who { margin: 0; font-size: .7em; } .corner.dark { filter: grayscale(1) brightness(.25); } .corner.lit { box-shadow: 0 0 3em var(--c), inset 0 0 2em #fff8; }
.cq { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56%; text-align: center; font-size: 1.6em; background: #000d; border: .12em solid var(--gold); border-radius: .7em; padding: .6em; } .cq small { display: block; font-size: .5em; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; }

/* vault */
.vault { display: grid; gap: 1em; } .vmap { display: flex; gap: .5em; justify-content: center; }
.room { width: 9em; text-align: center; padding: .5em .3em; border-radius: .6em; background: #0008; border: .12em solid #fff3; font-size: .8em; display: grid; } .room b { font-size: 1.8em; } .room i { font-family: var(--display); font-style: normal; color: var(--gold); font-size: 1.3em; }
.room.open { background: var(--good); color: #062a14; } .room.open i { color: #062a14; } .room.now { border-color: var(--gold); box-shadow: 0 0 1.4em var(--gold); transform: scale(1.08); }

/* fuse box */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6em; max-width: 48em; justify-self: center; } .gcol { display: grid; gap: .5em; }
.gcol h4 { text-align: center; font-size: .95em; background: var(--gold); color: #150830; padding: .5em .2em; border-radius: .5em; min-height: 2.6em; display: grid; place-items: center; }
.tile { font-family: var(--display); font-size: 2em; text-align: center; padding: .25em; border-radius: .4em; background: linear-gradient(#2b5bff, #1630a8); border: .08em solid #8fb0ff; box-shadow: 0 0 .8em #2b5bff88; min-height: 1.75em; }
.tile.used { background: #0006; border-color: #fff2; box-shadow: none; } .tile.hot { background: var(--gold); color: #150830; transform: scale(1.12); box-shadow: 0 0 1.5em var(--gold); }

/* honeycomb */
.hexwrap { display: flex; align-items: center; justify-content: center; gap: 1.5em; width: auto !important; } .hexside { font-size: 2em; text-align: center; color: var(--tc); font-family: var(--display); }
/* each team's goal, large, beside the board; the board's edges are in the colour of the team that has to reach them */
.hexgoal { width: 9.5em; flex: none; padding: .8em .5em; border-radius: 1em; background: var(--card); border: .2em solid var(--tc); box-shadow: 0 .4em 0 var(--tcd); display: grid; gap: .15em; justify-items: center; text-align: center; color: var(--tc); }
.hexgoal b { font-size: 2.6em; line-height: 1; font-weight: 400; } .hexgoal span { font-family: var(--display); font-size: .95em; text-transform: uppercase; }
.hexgoal i { font-style: normal; font-family: var(--display); font-size: 4.2em; line-height: 1; } .hexgoal small { font-size: .85em; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.hexboard.solo { border-color: var(--gold); } .hexgoal.tally { gap: .3em; align-content: start; } .hexgoal.tally em { font-style: normal; font-family: var(--display); font-size: 1.15em; color: var(--tc); }
.hexboard { padding: .9em 1.1em; border-radius: 1.2em; border: .4em solid; border-color: var(--c1) var(--c0); background: #0d052488; }
.hexrow { display: flex; margin-top: -1.45em; } .hexrow:first-child { margin-top: 0; } .hexrow.odd { margin-left: 2.95em; }
.hex { width: 2.5em; height: 2.85em; margin: 0 .09em; display: grid; place-items: center; font-family: var(--display); font-size: 2.2em; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(#ffe487, #f0b400); color: #3a2a00; transition: all .3s; }
.hex.own { background: var(--tc); color: #150830; } .hex.dead { background: #241a3a; color: #fff3; } .hex.hot { background: #fff; transform: scale(1.15); z-index: 2; }
.hexq { text-align: center; font-size: 1.7em; margin-top: .6em; background: #000a; border-radius: .6em; padding: .4em 1em; width: auto !important; justify-self: center; }
#scene.hexes { grid-template-rows: auto auto; align-content: center; }

/* inner clock */
.results { max-width: 34em; justify-self: center; } .results h2 { text-align: center; font-size: 2.2em; color: var(--gold); margin-bottom: .4em; }
.rrow { display: grid; grid-template-columns: 1fr auto 5em; align-items: center; gap: 1em; padding: .25em .8em; border-radius: .5em; background: #0007; margin: .25em 0; font-size: 1.2em; animation: scenein .4s backwards; }
.rrow b { font-family: var(--display); } .rrow i { font-style: normal; opacity: .7; text-align: right; } .rrow.best { background: var(--gold); color: #150830; transform: scale(1.05); }

/* sky stack */
.towers { display: flex; justify-content: center; gap: 8em; height: 100%; } .towers.multi { gap: 1.5em; } .towers.multi .tower { width: auto; flex: 1; max-width: 12em; min-width: 0; } .towers.multi .tower h3 { font-size: .9em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; } .towers.multi .tnum { font-size: 2em; } .tower { width: 12em; display: flex; flex-direction: column; align-items: center; height: 100%; }
.tcol { flex: 1; width: 100%; display: flex; align-items: flex-end; border-bottom: .3em solid #fff; min-height: 0; } .tnum { font-family: var(--display); font-size: 3em; } .tower h3 { color: var(--tc); padding: .3em; }
.tfill { width: 100%; height: 0; transition: height .35s cubic-bezier(.2, 1.5, .4, 1); background: repeating-linear-gradient(0deg, var(--tc) 0 1.1em, var(--tcd, #0008) 1.1em 1.25em); border-radius: .3em .3em 0 0; box-shadow: 0 0 2em -.3em var(--tc); }
.camwrap, .dare { position: relative; text-align: center; height: 100%; display: grid; place-items: center; } .camwrap video, .dare video { max-height: 100%; height: 22em; border-radius: 1em; border: .25em solid var(--gold); transform: scaleX(-1); }
.camwrap video { transform: none; } /* unmirrored so left/right match what the judge sees */
.camlabel { position: absolute; bottom: .5em; background: #000c; padding: .4em 1em; border-radius: 2em; }
.dare { grid-template-rows: auto auto 1fr; gap: .5em; } .dare h3 { color: var(--tc); font-size: 1.6em; } .dare h1 { font-size: 2.4em; color: var(--gold); max-width: 20em; } .dare video { height: 14em; }

/* pop shots */
.range { position: relative; height: 100%; aspect-ratio: 16/9; max-width: 100%; justify-self: center; width: auto !important; }
.field { position: absolute; inset: 0; border-radius: 1em; border: .2em solid #fff4; background: radial-gradient(circle at 50% 50%, #0b2a4a, #050b1c); overflow: hidden; }
.rscores { position: absolute; top: .3em; left: 1em; right: 1em; z-index: 3; display: flex; justify-content: space-between; gap: .6em; } .rscore { font-family: var(--display); font-size: 2.2em; color: var(--tc); text-shadow: 0 0 .4em #000; white-space: nowrap; } .rscore b { font-weight: 400; } .rscores:has(.rscore:nth-child(5)) .rscore { font-size: 1.4em; }
.target { position: absolute; width: 4.2em; height: 4.2em; margin: -2.1em; border-radius: 50%; display: grid; place-items: center; font-size: 1.1em; background: radial-gradient(circle, #fff 0 22%, var(--tc) 23% 48%, #fff 49% 66%, var(--tc) 67%); animation: tpop 2.6s linear forwards; }
.target.gold { --tc: var(--gold); color: #a35b00; font-size: 1.3em; box-shadow: 0 0 1.5em var(--gold); } @keyframes tpop { 0% { transform: scale(0); } 8% { transform: scale(1.15); } 12%, 85% { transform: scale(1); } 100% { transform: scale(0); } }
.target.hit { animation: thit .3s forwards; } @keyframes thit { to { transform: scale(2); opacity: 0; } }
.shot { position: absolute; width: 1.6em; height: 1.6em; margin: -.8em; border-radius: 50%; border: .2em solid var(--tc); animation: thit .35s forwards; } .cross { position: absolute; margin: -.7em; font-size: 1.4em; transition: left .08s linear, top .08s linear; filter: drop-shadow(0 0 .3em var(--tc)); z-index: 2; }

/* blind sketch */
.sketch { display: grid; grid-template-columns: 1fr 13em; grid-template-rows: auto 1fr; gap: .6em; height: 100%; } .shead { grid-column: 1 / -1; text-align: center; font-size: 1.3em; color: var(--tc); font-family: var(--display); }
.sketch canvas { width: 100%; height: 100%; min-height: 0; object-fit: contain; background: #0b0620; border: .2em solid #fff5; border-radius: .8em; } .feed { overflow: hidden; display: flex; flex-direction: column; gap: .2em; font-size: .85em; } .feed .ok { color: var(--good); font-size: 1.2em; }

/* photographic */
.photo { position: relative; height: 100%; aspect-ratio: 16/9; max-width: 100%; width: auto !important; justify-self: center; border-radius: 1em; border: .3em solid #fff; background: linear-gradient(135deg, hsl(var(--hue) 60% 82%), hsl(calc(var(--hue) + 60) 60% 70%)); overflow: hidden; }
.photo span { position: absolute; font-size: 3.4em; line-height: 1; }

/* spin cycle */
.wheelwrap { display: flex; align-items: center; justify-content: center; gap: 2em; height: 100%; } .wcol { display: flex; flex-direction: column; gap: .8em; justify-content: center; }
.wheelwrap.multi .wside { width: 11em; padding: .35em .5em; font-size: .78em; } .wheelwrap.multi .wside .pot { font-size: 2.2em; line-height: 1.1; } .wheelwrap.crowd .wside { font-size: .56em; } .wheelwrap.crowd .wcol { gap: .4em; }
.wside { width: 13em; text-align: center; padding: .8em; border-radius: 1em; background: #0007; border: .14em solid var(--tc); opacity: .55; transition: all .3s; } .wside.turn { opacity: 1; transform: scale(1.06); box-shadow: 0 0 2em var(--tc); } .wside.done { opacity: .75; }
.wside h3 { color: var(--tc); } .pot { font-family: var(--display); font-size: 3em; } .wstat { color: var(--gold); min-height: 1.4em; }
.wheelbox { position: relative; height: 100%; aspect-ratio: 1; max-height: 25em; } .pointer { position: absolute; top: -.7em; left: 50%; transform: translateX(-50%); font-size: 2.4em; color: var(--gold); z-index: 3; filter: drop-shadow(0 .1em .1em #000); }
.wheel { position: absolute; inset: 0; border-radius: 50%; border: .5em solid var(--gold); box-shadow: 0 0 3em #000, 0 0 2em var(--gold); }
.wheel span { position: absolute; inset: 0; display: flex; justify-content: center; pointer-events: none; } .wheel b { margin-top: .45em; font-family: var(--display); font-size: .82em; text-shadow: 0 .08em 0 #0008; font-weight: 400; } .wheel b.bust { color: var(--bad); font-size: 1.6em; }

/* peg drop */
.pegwrap { display: grid; grid-template-columns: 16em 1fr; gap: 1.5em; height: 100%; align-items: center; } .pinfo { text-align: center; } .pinfo h3 { color: var(--gold); margin: .3em 0; } .pinfo p { margin: .2em 0; } .bet { font-family: var(--display); color: var(--gold); font-size: 1.4em; }
.peg { position: relative; height: 100%; aspect-ratio: 1.15; max-width: 100%; justify-self: center; background: linear-gradient(#1a2a6c, #0d1440); border: .3em solid var(--gold); border-radius: 1em; overflow: hidden; }
.pegs i { position: absolute; width: .7em; height: .7em; margin: -.35em; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, #9aa7d8); }
.slots { position: absolute; left: 0; right: 0; bottom: 0; height: 15%; display: grid; grid-template-columns: repeat(9, 1fr); } .slots > div { border-left: .12em solid var(--gold); text-align: center; font-family: var(--display); font-size: 1.05em; background: #17b26a55; padding-top: .2em; }
.slots .zero { background: #e3123c66; } .slots em { display: flex; justify-content: center; gap: .1em; flex-wrap: wrap; } .slots em i { width: .6em; height: .6em; border-radius: 50%; background: var(--tc); border: .08em solid #fff; }
.pchip { position: absolute; width: 2.4em; height: 2.4em; margin: -1.2em; border-radius: 50%; display: grid; place-items: center; background: var(--tc); color: #150830; border: .18em dashed #fff; font-family: var(--display); font-size: .8em; transition: left .17s ease-in-out, top .17s ease-in; z-index: 3; box-shadow: 0 .2em .5em #000a; }
.pchip.big { position: static; margin: 0 auto; font-size: 2em; }

/* roll & reveal */
.puzzle { text-align: center; display: grid; gap: .8em; justify-items: center; } .pcat { font-family: var(--display); background: var(--gold); color: #150830; padding: .15em 1em; border-radius: 2em; }
.pwords { display: flex; flex-wrap: wrap; gap: .5em 1.4em; justify-content: center; max-width: 40em; } .pword { display: flex; gap: .2em; }
.pword i { width: 1.5em; height: 1.9em; display: grid; place-items: center; font-style: normal; font-family: var(--display); font-size: 1.9em; background: #17b26a; border: .08em solid #fff; border-radius: .15em; color: transparent; } .pword i.on { background: #fff; color: #150830; animation: flip .4s; } @keyframes flip { from { transform: rotateY(90deg); } }
.pused b { display: inline-block; width: 1.3em; font-family: var(--display); font-weight: 400; } .pused .u { opacity: .2; } .dice { min-height: 5em; } .die small { display: block; font-size: .3em; line-height: 1; } .die { font-size: 5em; line-height: 1; color: var(--tc); margin: 0 .3em; display: inline-block; animation: tumble .6s; } @keyframes tumble { from { transform: rotate(-540deg) scale(.2); } }

/* potluck */
.menu { max-width: 34em; justify-self: center; background: #fdf6e3; color: #2a1a0a; border-radius: .6em; padding: 1em 1.6em; box-shadow: 0 1em 3em #000a; border: .5em double #b8860b; } .menu h2 { text-align: center; font-size: 2em; color: #7a1f1f; margin-bottom: .4em; }
.course { display: flex; gap: .8em; align-items: center; padding: .4em 0; border-top: .08em dashed #b8860b; } .course b { font-size: 2.2em; } .course h4 { font-size: 1.2em; color: #7a1f1f; } .course p { margin: 0; font-size: .85em; } .course.gone { opacity: .3; text-decoration: line-through; }

/* common thread */
.bonds { text-align: center; display: grid; gap: .7em; justify-items: center; } .btally { display: flex; gap: .4em 3em; font-size: 1.2em; flex-wrap: wrap; justify-content: center; } .btally:has(span:nth-child(4)) { gap: .3em 1.4em; font-size: 1em; } .btally span { color: var(--tc); } .bonds h2 { font-size: 1.8em; color: var(--gold); }
.btiles { display: flex; gap: 1.2em; } .btile { width: 2.1em; height: 2.1em; display: grid; place-items: center; font-size: 6em; line-height: 1; background: #fff; border-radius: .13em; border: .04em solid var(--gold); animation: warp 9s ease-out both; }
@keyframes warp { from { filter: blur(.5em) hue-rotate(200deg) contrast(2); transform: scale(.7) rotate(25deg) skew(20deg); } to { filter: none; transform: none; } } .btile.clear { animation: none; }
.banswer { font-family: var(--display); font-size: 2.2em; min-height: 1.2em; color: var(--good); }

/* mix & match */
.mm { max-width: 44em; justify-self: center; text-align: center; } .mmrow { display: grid; grid-template-columns: 1fr 16em; gap: .6em; margin: .35em 0; font-size: 1.25em; } .mmrow span { background: var(--panel2); border-radius: .5em; padding: .4em .8em; text-align: left; }
.mmrow b { background: #0008; border: .1em dashed #fff5; border-radius: .5em; padding: .4em; font-weight: 800; } .mmrow b.on { background: var(--good); color: #062a14; border-style: solid; animation: flip .4s; }
.mmbank { display: flex; gap: .6em; justify-content: center; margin-top: .6em; } .mmbank i { font-style: normal; background: var(--gold); color: #150830; padding: .3em .9em; border-radius: .5em; font-size: 1.15em; } .mmsc { margin-right: .8em; }

/* deep cuts */
.survey { max-width: 40em; justify-self: center; } .survey h2 { text-align: center; font-size: 1.7em; } .srows { margin-top: .6em; display: grid; gap: .3em; }
.srow { display: grid; grid-template-columns: 2em 1fr auto auto; gap: .6em; align-items: center; padding: .3em .8em; border-radius: .5em; background: #0009; border: .1em solid #fff3; font-size: 1.2em; min-height: 2.2em; } .srow b { font-family: var(--display); color: var(--gold); } .srow em { font-style: normal; opacity: 0; font-size: .7em; }
.srow.on { background: linear-gradient(90deg, #2b5bff, #1630a8); animation: flip .4s; } .srow.on em { opacity: 1; } .snot { text-align: center; margin-top: .5em; color: var(--bad); min-height: 1.6em; }

/* ballpark */
.ball { max-width: 50em; justify-self: center; text-align: center; } .line { position: relative; display: flex; gap: .2em; margin-top: 2.4em; }
.seg { flex: 1; padding: .5em .2em; background: var(--panel2); border: .1em solid #fff4; min-height: 5em; transition: all .3s; } .seg:first-child { border-radius: .8em 0 0 .8em; } .seg:nth-last-child(2) { border-radius: 0 .8em .8em 0; } .seg span { font-family: var(--display); font-size: 1.2em; } .seg .who { justify-content: center; margin: .3em 0 0; }
.seg.good { background: var(--good); color: #062a14; } .seg.dim { opacity: .35; }
.marker { position: absolute; top: -2.2em; bottom: -.3em; width: .25em; margin-left: -.12em; background: var(--gold); opacity: 0; box-shadow: 0 0 1em var(--gold); } .marker.go { opacity: 1; transition: left 1.4s cubic-bezier(.3, 1.3, .5, 1); } .marker b { position: absolute; top: -.2em; left: 50%; transform: translate(-50%, -100%); font-family: var(--display); font-size: 1.4em; color: var(--gold); white-space: nowrap; }

/* settings dialog */
dialog { overflow-y: auto; background: #1d0f45; color: #fff; border: 3px solid var(--gold); border-radius: 18px; padding: 22px 26px; width: min(640px, 92vw); font: 700 15px/1.35 Nunito, system-ui, sans-serif; max-height: 92vh; }
dialog::backdrop { background: #000a; } dialog h2 { color: var(--gold); margin-bottom: 10px; font-size: 24px; }
dialog fieldset { border: 1px solid #fff3; border-radius: 12px; margin: 0 0 12px; padding: 10px 14px; display: grid; gap: 8px; } dialog legend { padding: 0 6px; color: var(--gold); }
dialog label { display: grid; gap: 3px; } dialog label.chk { display: flex; gap: 8px; align-items: center; } dialog small { opacity: .6; font-weight: 600; }
dialog input[type=text], dialog input[type=password], dialog select { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid #fff4; background: #0006; color: #fff; font: inherit; }
dialog .row { display: flex; gap: 8px; align-items: center; } dialog .row.end { justify-content: flex-end; } dialog .sliders { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.gl { display: flex; flex-wrap: wrap; gap: 6px; } dialog .gl button { font-size: 13px; padding: 6px 10px; opacity: .45; background: #0008; border: 1px solid #fff3; } dialog .gl button.on { opacity: 1; background: var(--panel2); border-color: var(--gold); }
dialog button { background: var(--panel2); border-radius: 8px; padding: 8px 14px; white-space: nowrap; } dialog button.go { background: var(--gold); color: #150830; } .note { font-size: 13px; opacity: .8; margin: 0; }

/* party games */
.qcard.party { max-width: 56em; } .qcard.party .pic:empty { display: none; }
.qcard.haspic { display: grid; grid-template-columns: 24em 1fr; gap: 1.2em; align-items: center; max-width: 62em; } .qcard.haspic h2 { font-size: 1.4em; } .qcard.haspic .opts { grid-template-columns: 1fr; } .qcard.haspic .opt { font-size: 1em; min-height: 2.2em; }
.pic canvas, .gwall canvas { width: 100%; display: block; background: #0b0620; border: .2em solid var(--gold); border-radius: .7em; }
.opt span { display: flex; flex-direction: column; } .opt span small { font-size: .55em; opacity: .85; font-weight: 800; letter-spacing: .03em; }
.opt.lie { background: #3a1030; border-color: var(--bad); } .hint.big { font-size: 1.4em; opacity: 1; margin-top: 1em; }
.hintrow { display: inline-flex; gap: .2em; margin-left: .8em; vertical-align: middle; } .hintrow i { width: 1.1em; height: 1.4em; border-bottom: .14em solid #fff; font-style: normal; color: var(--gold); text-transform: uppercase; display: grid; place-items: center; } .hintrow i.sp { border: 0; width: .6em; }
.gallery { text-align: center; } .gallery h2 { font-size: 2em; color: var(--gold); margin-bottom: .5em; } .gwall { display: flex; flex-wrap: wrap; gap: .8em; justify-content: center; } .gwall figure { margin: 0; width: 13em; } .gwall figcaption { color: var(--tc); font-size: .85em; padding-top: .2em; } .gwall canvas { border-color: var(--tc); }
.clues { text-align: center; max-width: 54em; justify-self: center; } .clues h2 { font-size: 2em; margin-bottom: .5em; } .cluewall { display: flex; flex-wrap: wrap; gap: .7em; justify-content: center; min-height: 6em; }
.clue { padding: .5em .9em; border-radius: .7em; background: #fdf6e3; color: #222; border: .18em solid var(--tc); animation: scenein .4s cubic-bezier(.2, 1.4, .4, 1); display: grid; justify-items: center; transform: rotate(-2deg); } .clue:nth-child(even) { transform: rotate(2deg); } .clue b { font-family: var(--display); font-weight: 400; font-size: 1.5em; text-transform: uppercase; }


/* ============================================================================================================
   SYSTEM PASS: every screen brought onto the shared rules above. (Rules here deliberately come last.)
   ============================================================================================================ */

/* ---- type ---- */
/* sentences are set in the body face, in sentence case; the display face keeps to titles, numbers and short labels */
.qcard h2, .ball h2, .survey h2, .how-txt h3, .cq, .hexq, .dare h1, .shead, .clues h2, .title-card .tag, .gtitle p, .pinfo p {
  font-family: var(--body); font-weight: 900; letter-spacing: 0; text-transform: none; }
.qcard h2, .ball h2, .survey h2 { font-size: var(--fs-title); line-height: 1.22; }
.how-txt h3 { font-size: var(--fs-title); line-height: 1.2; } .dare h1 { font-size: var(--fs-title); color: #fff; line-height: 1.2; }
.cq, .hexq { font-size: var(--fs-lead); line-height: 1.25; } .shead { font-size: 1.25em; }
.qclock b { font-family: var(--display); }
/* small capitals labels: one size, one tracking */
.title-card small, .gtitle small, .how-head small, .bside small, .bpips, .reel em, #hud .mid, .cq small, .join small, .st-body small {
  font-size: var(--fs-label); letter-spacing: .16em; }
#hud .tname { font-size: .92em; letter-spacing: .1em; } #hud.solo .tname { letter-spacing: .03em; } #hud.many .tname { font-size: 1.15em; }

/* ---- glyphs take the colour of their surroundings; make sure that colour shows ---- */
.ie, .trophy, .pg-emo, .course b, .room b { color: var(--gold); } .title-card[class*=" t"] .ie { color: var(--tc); }
.lp i, .lp em { color: var(--tc); } .lp.off i { color: #fff8; }
.who i, .slots em i { color: var(--navy); }
.target { color: var(--navy); } .cross { color: var(--tc); } .srow em { color: var(--gold); }
.crown span { color: var(--gold); } #caption .mic { color: var(--gold); }
/* the picture rounds keep full-colour emoji: there the emoji is the question */
.btile, .photo span, .busy, .tiles3 i { font-family: var(--picture); }

/* ---- surfaces: one card ---- */
.art, .bside, .cq, .hexq, .rrow, .room, .srow, .opt, .mmrow span, .mmrow b, .seg, .tile, #caption, .field, .sketch canvas, .pic canvas, .gwall canvas, .peg, .menu, .report, .clue, .wside, .hexgoal, .vteam, .lteam, .fplate, .hexboard {
  background: var(--surface); border: var(--line) solid var(--edge); box-shadow: none; }
.art, .bside, .menu, .report, .wside, .hexgoal, .vteam, .lteam, .fplate, .hexboard, .field, .peg, .cq, .sketch canvas, .pic canvas, .gwall canvas, .reel-win { border-radius: var(--r-l); }
.opt, .srow, .rrow, .room, .mmrow span, .mmrow b, .tile, .seg, .clue, .hexq, .gcol h4, .mmbank i { border-radius: var(--r-s); }
.seg { border-radius: 0; } .seg:first-child { border-radius: var(--r-s) 0 0 var(--r-s); } .seg:nth-last-child(2) { border-radius: 0 var(--r-s) var(--r-s) 0; }
/* a card that belongs to a side: same card, framed in that side's colour */
.report, .clue, .wside, .hexgoal, .vteam, .lteam, .fplate, .gwall canvas { border: var(--frame) solid var(--tc); }
.vteam, .lteam, .report, .hexgoal { box-shadow: 0 .4em 0 var(--tcd); }
.peg, .reel-win, .pic canvas { border: var(--frame) solid var(--gold); }
.hexboard { border: .4em solid; border-color: var(--c1) var(--c0); } .hexboard.solo { border-color: var(--gold); }
/* raised: the question itself, and a row once it is revealed */
.qcard h2, .ball h2, .survey h2 { background: var(--surface-2); border: var(--line) solid var(--edge); border-radius: var(--r-l); box-shadow: var(--lift); }
.srow.on { background: var(--surface-2); border-color: #fff8; } .tile { background: var(--surface-2); color: var(--gold); min-height: 1.75em; }
.tile.used { background: #0006; border-color: #fff2; } .tile.hot { background: var(--gold); color: var(--navy); border-color: #fff; box-shadow: 0 0 1.5em var(--gold); }
.seg { background: var(--surface-2); } .seg.good, .mmrow b.on, .room.open { background: var(--good); color: #062a14; border-color: #fff; } .mmrow b { border-style: dashed; } .mmrow b.on { border-style: solid; }
.rrow.best { background: var(--gold); color: var(--navy); border-color: #fff; }
.opts.hunt .opt.hot { background: var(--gold); box-shadow: 0 0 2em var(--gold); } .opt.good { background: var(--good); box-shadow: 0 0 2.4em var(--good); } .opt.lie { background: #3a1030; border-color: var(--bad); }
.room.now { border-color: var(--gold); box-shadow: 0 0 1.4em var(--gold); } .wside.turn { box-shadow: 0 0 2em var(--tc); }
.fplates .fplate.lit, .fplates .fplate.won { box-shadow: 0 0 3.6em var(--tc); }
/* the rules slide: the picture stands on the stage itself rather than in a half-empty box */
.art { background: none; border: 0; font-size: 1.12em; }
/* letter tiles (Roll & Reveal, and its picture in the rules): the same dark tile, white when turned */
.pword i, .ltr i { background: var(--surface-2); border: var(--line) solid var(--edge); border-radius: .2em; } .pword i.on, .ltr i.on { background: #fff; border-color: #fff; }
.hex { background: var(--gold); color: var(--navy); } .hex.own { background: var(--tc); } .hex.dead { background: #241a3a; color: #fff3; } .hex.hot { background: #fff; }
/* things that used to be paper: report cards, the menu, clue slips. Same card as everything else now. */
.report { color: #fff; transform: none; } .report:last-child { transform: none; } .report h3 { color: var(--tc); } .grade { color: var(--gold); } .report p { margin: .2em 0 0; color: var(--mute); }
.menu { color: #fff; border: var(--frame) solid var(--gold); padding: 1em 1.6em; } .menu h2 { color: var(--gold); } .course { border-top: var(--line) solid var(--edge); } .course h4 { color: var(--gold); } .course p { color: var(--mute); }
.clue { color: #fff; transform: none; } .clue:nth-child(even) { transform: none; } .clue.dim { opacity: .45; }
.field { background: #070418; } .slots > div { border-left: var(--line) solid var(--edge); background: #2be37a26; } .slots .zero { background: #ff3b5c33; }

/* ---- the gold pill: every label and call-to-action is the same object ---- */
.qtitle, .pcat, .count span, #next, .fmvp, .gcol h4, .mmbank i, .pg-big b {
  background: var(--gold); color: var(--navy); font-family: var(--display); font-weight: 400; box-shadow: var(--pill-lift); }
.qtitle, .pcat, .count span, #next, .fmvp { border-radius: var(--r-pill); }
.pg-big b.good { background: var(--good); box-shadow: 0 .2em 0 #0b7a3e; } .pg-big b.bad { background: var(--bad); color: #fff; box-shadow: 0 .2em 0 #8d0321; }

/* ---- zones: nothing sits on top of the picture ---- */
#caption { bottom: 1.4em; border-radius: var(--r-l); padding: .45em 1.2em; max-width: 62%; } #caption p { font-size: .95em; font-weight: 800; }
#next { right: 2.4em; bottom: 1.5em; padding: .45em 1.1em; font-size: .95em; }
/* the mouse controls only show while the mouse is moving */
#ctl { left: 2.4em; right: auto; bottom: 1.5em; opacity: 0; pointer-events: none; } body.mouse #ctl { opacity: .8; pointer-events: auto; } #ctl button { background: var(--surface); border: var(--line) solid var(--edge); border-radius: var(--r-s); }
#net { left: 2.4em; bottom: .5em; } #tap { top: auto; bottom: 1.6em; background: var(--surface); border: var(--line) solid var(--edge); border-radius: var(--r-pill); font-size: .8em; }
#banner { border-radius: var(--r-s); border: var(--frame) solid var(--gold); box-shadow: 0 .15em 0 var(--goldd); }

/* ---- the room goes quiet while a game is being played, so the content is the brightest thing on screen ---- */
#stage::before, #stage::after { transition: opacity .8s; }
body.play #stage::before { opacity: .035; } body.play #stage::after { opacity: .45; } body.play .spot { opacity: .12; } body.play.dim .spot, body.play.dark .spot { opacity: .04; }
#caption.on ~ #tap { display: none; } /* the caption has that spot while the host is talking */
body.start #tap { display: none; } /* pressing Play switches the sound on anyway */
/* the caption never grows past three lines (the host is saying it anyway), so it stays inside its zone */
#caption { max-width: 70%; } #caption p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: .9em; }


/* ============================================================================================================
   MOTION. Every movement on the stage is one of these, and each one means one thing. If something moves and it
   is not on this list, it should not be moving.
     slam      a title, verdict or number LANDS (game title, winner, grade, banner, countdown)
     light     a sign switches ON (the neon flicker)
     lightup   the studio lights hit a set: a group of panels appears together, on one beat, with a thud
     flip      something hidden is REVEALED (answers, the room code, letter tiles, survey rows, clue slips)
     deal      a set of like things is handed out one at a time (plates, rooms, columns, mystery cards)
     lock      a person commits or arrives: pop, with a ring (seats, chips, a contestant joining)
     stamp     a badge is slapped on (pop): lead margin, MVP, "won by"
     land      an object drops onto something and settles (the crown, the trophy, the hanging sign)
     face-off  opponents come in from their own sides and VS lands where they meet
     read      words appear in reading order, as the host says them
     cut       a change of scene: no movement at all
     quiet     supporting detail fades in after the main event
   Things only loop while: someone is being waited on (a call to action), the host is talking, the suspense is
   on (heartbeat), or a rules picture is demonstrating an action.
   ============================================================================================================ */
@keyframes lightup { 0% { opacity: 0; filter: brightness(5) saturate(0); } 25% { opacity: 1; filter: brightness(2.6) saturate(.4); } 100% { opacity: 1; filter: none; } }
@keyframes deal { from { opacity: 0; transform: translateY(-.9em) rotate(-3deg) scale(.96); } } /* no end state: each thing settles to its own look */
@keyframes read { from { opacity: 0; transform: translateY(.3em); } }
@keyframes cut { from { opacity: 0; } }
@keyframes enterL { from { opacity: 0; transform: translateX(-18em); } 70% { opacity: 1; transform: translateX(.8em); } to { opacity: 1; transform: none; } }
@keyframes enterR { from { opacity: 0; transform: translateX(18em); } 70% { opacity: 1; transform: translateX(-.8em); } to { opacity: 1; transform: none; } }

/* cut: scenes change without moving. What is inside them does the performing. */
#scene.in > *, #scene.in > .how, #scene.in > .board, #scene.in > .finale { animation: cut .12s linear; }
#scene.still.in > * { animation: none; } #scene.in > .gtitle { animation: shake .45s .15s; }
#caption { transform: translate(-50%, 0); opacity: 0; transition: opacity .2s; } #caption.on { opacity: 1; }

/* slam */
.pulse { animation: slam .45s both; } .board h1 { animation: slam .5s both; }
/* stamp */
.ie { animation: pop .4s both; } .gtitle .ie { animation: pop .4s .25s both; }
/* quiet */
.gtitle p { animation: cut .35s .6s both; } .board.done .bside { animation: fade .35s both; } .board.done .bside.r { animation-delay: .15s; }
.bq { animation: none; } .count span { animation: none; } .art { animation: none; }
/* read */
.qcard h2 .w, .how-txt h3 .w { display: inline-block; animation: read .3s both; } .how-txt h3 { animation: none; }
/* flip */
.clue { animation: flipx .4s both; }

/* the start screen: the sign is lowered and switches on, then the lights hit the controls together */
.st-sign span { animation: flicker .6s .35s both; } .st-sign b { animation: flicker .8s .6s both; }
.st-play, .st-panel { animation: lightup .5s 1.2s both; }
/* the lobby: sign on, lights up on the three panels at once, the room code flips over, tonight's cards are dealt */
.sign span { animation: flicker .6s .15s both; } .sign b { animation: flicker .8s .45s both; }
.lteam, .join { animation: lightup .5s 1.3s both; }
.code i { animation: flipx .4s 1.65s both; } .code i:nth-child(2) { animation-delay: 1.75s; } .code i:nth-child(3) { animation-delay: 1.85s; } .code i:nth-child(4) { animation-delay: 1.95s; }
.lfoot { animation: none; } .lfoot .lbl { animation: cut .3s 1.9s both; } .lcards i { animation: deal .28s both; }
.lcards i:nth-child(1) { animation-delay: 2.00s; } .lcards i:nth-child(2) { animation-delay: 2.07s; } .lcards i:nth-child(3) { animation-delay: 2.14s; } .lcards i:nth-child(4) { animation-delay: 2.21s; } .lcards i:nth-child(5) { animation-delay: 2.28s; } .lcards i:nth-child(6) { animation-delay: 2.35s; } .lcards i:nth-child(7) { animation-delay: 2.42s; } .lcards i:nth-child(8) { animation-delay: 2.49s; } .lcards i:nth-child(9) { animation-delay: 2.56s; } .lcards i:nth-child(10) { animation-delay: 2.63s; } .lcards i:nth-child(11) { animation-delay: 2.70s; }
.lgo { animation: cut .3s 2.6s backwards, blink 1.4s 2.9s ease-in-out infinite; }
/* the welcome: the sides come in from their own wings and VS lands between them */
.vteam { animation: enterL .5s 1.3s both; } .vteam ~ .vteam { animation-name: enterR; } .vs { animation: slam .45s 1.7s both; } .vteam.wide { animation: lightup .5s 1.3s both; }
/* deal: sets are handed out in order */
.fplate { animation: deal .32s backwards; } .report, .room, .gcol, .mmrow, .course, .rrow, .wside { animation: deal .28s backwards; }
.fplate:nth-child(1) { animation-delay: 0.05s; } .fplate:nth-child(2) { animation-delay: 0.13s; } .fplate:nth-child(3) { animation-delay: 0.21s; } .fplate:nth-child(4) { animation-delay: 0.29s; } .fplate:nth-child(5) { animation-delay: 0.37s; } .fplate:nth-child(6) { animation-delay: 0.45s; } .fplate:nth-child(7) { animation-delay: 0.53s; } .fplate:nth-child(8) { animation-delay: 0.61s; } .fplate:nth-child(9) { animation-delay: 0.69s; } .fplate:nth-child(10) { animation-delay: 0.77s; } .fplate:nth-child(11) { animation-delay: 0.85s; } .fplate:nth-child(12) { animation-delay: 0.93s; }
.report:nth-child(1) { animation-delay: 0.05s; } .report:nth-child(2) { animation-delay: 0.13s; } .report:nth-child(3) { animation-delay: 0.21s; } .report:nth-child(4) { animation-delay: 0.29s; } .report:nth-child(5) { animation-delay: 0.37s; } .report:nth-child(6) { animation-delay: 0.45s; } .report:nth-child(7) { animation-delay: 0.53s; } .report:nth-child(8) { animation-delay: 0.61s; } .report:nth-child(9) { animation-delay: 0.69s; } .report:nth-child(10) { animation-delay: 0.77s; } .report:nth-child(11) { animation-delay: 0.85s; } .report:nth-child(12) { animation-delay: 0.93s; }
.room:nth-child(1) { animation-delay: 0.05s; } .room:nth-child(2) { animation-delay: 0.13s; } .room:nth-child(3) { animation-delay: 0.21s; } .room:nth-child(4) { animation-delay: 0.29s; } .room:nth-child(5) { animation-delay: 0.37s; } .room:nth-child(6) { animation-delay: 0.45s; } .room:nth-child(7) { animation-delay: 0.53s; } .room:nth-child(8) { animation-delay: 0.61s; } .room:nth-child(9) { animation-delay: 0.69s; } .room:nth-child(10) { animation-delay: 0.77s; } .room:nth-child(11) { animation-delay: 0.85s; } .room:nth-child(12) { animation-delay: 0.93s; }
.gcol:nth-child(1) { animation-delay: 0.05s; } .gcol:nth-child(2) { animation-delay: 0.13s; } .gcol:nth-child(3) { animation-delay: 0.21s; } .gcol:nth-child(4) { animation-delay: 0.29s; } .gcol:nth-child(5) { animation-delay: 0.37s; } .gcol:nth-child(6) { animation-delay: 0.45s; } .gcol:nth-child(7) { animation-delay: 0.53s; } .gcol:nth-child(8) { animation-delay: 0.61s; } .gcol:nth-child(9) { animation-delay: 0.69s; } .gcol:nth-child(10) { animation-delay: 0.77s; } .gcol:nth-child(11) { animation-delay: 0.85s; } .gcol:nth-child(12) { animation-delay: 0.93s; }
.mmrow:nth-child(1) { animation-delay: 0.05s; } .mmrow:nth-child(2) { animation-delay: 0.13s; } .mmrow:nth-child(3) { animation-delay: 0.21s; } .mmrow:nth-child(4) { animation-delay: 0.29s; } .mmrow:nth-child(5) { animation-delay: 0.37s; } .mmrow:nth-child(6) { animation-delay: 0.45s; } .mmrow:nth-child(7) { animation-delay: 0.53s; } .mmrow:nth-child(8) { animation-delay: 0.61s; } .mmrow:nth-child(9) { animation-delay: 0.69s; } .mmrow:nth-child(10) { animation-delay: 0.77s; } .mmrow:nth-child(11) { animation-delay: 0.85s; } .mmrow:nth-child(12) { animation-delay: 0.93s; }
.course:nth-child(1) { animation-delay: 0.05s; } .course:nth-child(2) { animation-delay: 0.13s; } .course:nth-child(3) { animation-delay: 0.21s; } .course:nth-child(4) { animation-delay: 0.29s; } .course:nth-child(5) { animation-delay: 0.37s; } .course:nth-child(6) { animation-delay: 0.45s; } .course:nth-child(7) { animation-delay: 0.53s; } .course:nth-child(8) { animation-delay: 0.61s; } .course:nth-child(9) { animation-delay: 0.69s; } .course:nth-child(10) { animation-delay: 0.77s; } .course:nth-child(11) { animation-delay: 0.85s; } .course:nth-child(12) { animation-delay: 0.93s; }

/* The glyph font has a much deeper descender than the text faces. With line-height left to the browser, any line
   holding a glyph grew downwards and the words sat high in their pill. A fixed line-height keeps every line the
   same height whatever it contains; pills also centre their contents outright. */
#stage { line-height: 1.35; }
.seat, .chip, .lp { display: inline-flex; align-items: center; line-height: 1.2; } .seat { gap: .3em; }
dialog .picks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; } dialog .picks select { flex: 1; min-width: 0; }

/* beat: a call-to-action throbs like a heartbeat, and a ring leaves it at the top of each beat. One clock for both
   (they used to run at 1.4s and 1.8s, so the ring drifted in and out of step with the button). */
@keyframes beat { 0%, 30%, 100% { transform: scale(1); } 12% { transform: scale(1.07); } }
@keyframes beatring { 0%, 11% { transform: scale(1); opacity: 0; } 12% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.st-go { animation: beat 1.6s 2s infinite; } .st-go::after { animation: beatring 1.6s 2s infinite both; }
.st-go:disabled, .st-go:disabled::after { animation: none; }
.tapme { animation: beat 1.2s 1s infinite; } .tapme::after { animation: beatring 1.2s 1s infinite both; }

/* the bulbs are part of the show's lighting, not wallpaper: they chase while the room is being worked (start screen,
   lobby, titles, scoreboard, finale) and hold a steady warm glow while a game is being played */
body.play .bulbs::before, body.play .bulbs::after { animation: none; opacity: .6; }

/* teams selector: 2, 3, 4 or none (free-for-all) */
.st-modes { grid-template-columns: 1fr 1fr 1fr 1.7fr; } .st-modes button { line-height: 1; padding: 0; font-size: 1em; }
/* three or four teams: two boxes a side in the lobby, and a tighter face-off on the welcome */
.lcol { display: flex; flex-direction: column; gap: .8em; min-height: 0; min-width: 0; } .lcol .lteam { flex: 1; }
.lcol .lteam ~ .lteam, .lcol:has(.lteam ~ .lteam) .lteam { animation-name: lightup; } .lcol:has(.lteam ~ .lteam) .lteam h3 { font-size: 1.1em; } .lcol:has(.lteam ~ .lteam) .lteam header { padding: .35em .8em; } .lcol:has(.lteam ~ .lteam) .lps { padding: .5em; gap: .35em; } .lcol:has(.lteam ~ .lteam) .lp { font-size: .92em; }
.versus.multi { gap: .7em; font-size: .74em; flex-wrap: wrap; } .versus.multi .vteam { min-width: 13em; } .versus.multi .vs { font-size: 1.8em; }
.st-body { gap: .82em; } .st-modes button { min-width: 2.4em; }
#hud.solo:not(.many) .tname { max-width: 9em; }

/* scoreboard: the "ready for the next round" seats sit under the bars and appear when the vote opens */
.board { grid-template-rows: auto 1fr auto; } .bready { visibility: hidden; min-height: 2.4em; } .bready.on { visibility: visible; animation: fade .3s both; }
/* final result: each plate is stamped with what that side wagered */
.fw { display: block; min-height: 1.4em; font-family: var(--display); font-size: 1.05em; letter-spacing: .04em; opacity: 0; } .fw.on { opacity: 1; animation: pop .45s both; } .fw.good { color: var(--good); } .fw.bad { color: var(--bad); }
/* start screen: the last team button holds a word, not a digit */
.st-modes button:last-child { font-size: .8em; padding: 0 .3em; white-space: nowrap; }
.st-modes { grid-template-columns: 1fr 1fr 1fr 2.2fr; } .st-modes button:last-child { font-size: .78em; height: 3.46em; padding: 0; } /* same height as the digit buttons (2.7em at their size) */
.st-modes { display: flex; gap: .3em; } .st-modes button { flex: 0 0 2.1em; min-width: 0; } .st-modes button:last-child { flex: 1 0 auto; padding: 0 .5em; }

/* ============================================================================================================
   SCORE STRIP. Each side is a plate: its name on the dark card, its score in a solid block of its own colour with
   a slanted edge, like a broadcast score bug. The title sits in a quiet pill between them.
   ============================================================================================================ */
#hud { padding: 1.15em 2.4em .2em; }
#hud .team { height: 2.5em; gap: 0; align-items: stretch; background: var(--surface); border: var(--line) solid var(--tc); border-radius: .65em; box-shadow: 0 0 1.5em -.55em var(--tc); transition: box-shadow .3s; }
#hud .team::before { content: none; }
#hud .tname { display: flex; align-items: center; padding: 0 .95em; font-size: .9em; font-weight: 900; letter-spacing: .08em; color: var(--tc); line-height: 1; }
#hud .tscore { display: grid; place-items: center; min-width: 3.1em; padding: 0 .55em 0 .9em; background: var(--tc); color: var(--navy); font-size: 1.45em; line-height: 1; border-radius: 0 .28em .28em 0; clip-path: polygon(.42em 0, 100% 0, 100% 100%, 0 100%); }
#hud .hside.r .tscore { padding: 0 .9em 0 .55em; border-radius: .28em 0 0 .28em; clip-path: polygon(0 0, calc(100% - .42em) 0, 100% 100%, 0 100%); }
#hud .team.bump { box-shadow: 0 0 2.2em .1em var(--tc); } #hud .team.bump .tscore { text-shadow: none; }
#hud .mid { justify-self: center; padding: .5em 1.4em; border-radius: var(--r-pill); background: var(--surface); border: var(--line) solid var(--edge); line-height: 1.25; }
#hud .mid:has(#hud-title:empty) { visibility: hidden; }
/* more than two sides: smaller plates; past four, a face and a score */
#hud.solo .team { height: 2.1em; } #hud.solo .team::before { content: none; } #hud.solo .tname { padding: 0 .6em; font-size: .8em; } #hud.solo .tscore { font-size: 1.1em; min-width: 2.7em; padding: 0 .4em 0 .7em; } #hud.solo .hside.r .tscore { padding: 0 .7em 0 .4em; }
#hud.solo .mid { border-radius: var(--r-s); padding: .35em 1em; }
#hud.many .tname { padding: 0 .35em; font-size: 1.05em; } #hud.many .tscore { font-size: 1em; min-width: 2.5em; }

/* ============================================================================================================
   EDGE LIGHT. The rows of bulbs are replaced by a neon edge along the top and bottom of the stage: a thin line in
   the show's colours with a soft wash into the room. While the room is being worked a highlight runs along it;
   while a game is being played it holds still.
   ============================================================================================================ */
@keyframes edgerun { from { transform: translateX(-110%); } to { transform: translateX(680%); } }
.bulbs { height: .16em; background: linear-gradient(90deg, var(--c0), var(--gold) 50%, var(--c1)); box-shadow: 0 0 .9em .08em #ffd84d99, 0 0 2.6em .25em #ff4fa340; transition: opacity .8s; }
.bulbs.bottom { background: linear-gradient(90deg, var(--c1), var(--gold) 50%, var(--c0)); }
.bulbs::before { inset: auto; left: 0; right: 0; top: 100%; height: 3.2em; background: linear-gradient(to bottom, #ffd84d1f, transparent); animation: none; opacity: 1; }
.bulbs.bottom::before { top: auto; bottom: 100%; background: linear-gradient(to top, #ffd84d1f, transparent); animation: none; }
.bulbs::after { inset: auto; left: 0; top: -.12em; width: 16%; height: .4em; border-radius: 50%; background: linear-gradient(90deg, transparent, #fff, transparent); opacity: .9; animation: edgerun 5.5s linear infinite; will-change: transform; }
.bulbs.bottom::after { animation: edgerun 5.5s linear infinite reverse; }
body.play .bulbs { opacity: .75; } body.play .bulbs::before { animation: none; opacity: 1; } body.play .bulbs::after { animation: none; opacity: 0; }
body.calm .bulbs::after, body.lite .bulbs::after { display: none; } body.dark .bulbs { opacity: .25; }

/* Subtitles: two lines at most, a sentence or two at a time (see say() in main.js), in a slimmer card. That frees
   more of the stage for the game: the strip reserved at the bottom shrinks from 5.8em to 4.5em. */
#caption { bottom: 1.15em; padding: .35em 1.1em; max-width: 64%; } #caption p { -webkit-line-clamp: 2; font-size: .85em; line-height: 1.25; }
#scene { padding-bottom: 4.5em; } #next { bottom: 1.2em; } #ctl { bottom: 1.2em; }
/* Fuse Box: the board uses the room it has */
.grid { max-width: 58em; width: 100%; gap: .7em; } .gcol { gap: .6em; } .gcol h4 { font-size: 1.05em; min-height: 2.9em; } .tile { font-size: 2.3em; min-height: 1.95em; display: grid; place-items: center; }
/* rules slides: the middle row gives way, so the "ready" seats always stay above the subtitle */
.how { grid-template-rows: auto minmax(0, 1fr) auto; gap: .7em; overflow: hidden; } .how-ready { min-height: 2.3em; }

/* Points landing: the plate itself turns gold and shows only what was won, a glint crosses it, then it clears to
   the total (which counts up). A loss turns it red, with no glint. Nothing changes size. */
@keyframes gainin { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }
@keyframes gainout { to { opacity: 0; } }
@keyframes glint { from { transform: translateX(-160%) skewX(-18deg); } to { transform: translateX(460%) skewX(-18deg); } }
.gain { position: absolute; inset: calc(-1 * var(--line)); z-index: 2; border-radius: .65em; overflow: hidden; display: grid; place-items: center; pointer-events: none;
  font-family: var(--display); font-size: 1.5em; line-height: 1; color: var(--navy); background: linear-gradient(180deg, #fff3b0, var(--gold) 45%, #e0a800); box-shadow: 0 0 1.6em var(--gold);
  animation: gainin .16s ease-out both, gainout .3s ease-in .98s forwards; }
.gain::after { content: ''; position: absolute; top: -25%; bottom: -25%; left: 0; width: 32%; background: linear-gradient(100deg, transparent, #ffffffe6 50%, transparent); animation: glint .55s .14s ease-out both; }
.gain.minus { color: #fff; background: linear-gradient(180deg, #ff8a9c, var(--bad) 50%, #b5122f); box-shadow: 0 0 1.4em var(--bad); } .gain.minus::after { display: none; }
#hud.solo .gain { font-size: 1.1em; }
#hud .team.bump { animation: none; }

/* Lobby join card: the same framed card as the teams, in gold. A header band, the code as large as the card allows,
   and the room code on a footer strip. */
.join { padding: 0; gap: 0; align-items: stretch; justify-content: flex-start; background: var(--surface); color: #fff; border: var(--frame) solid var(--gold); border-radius: var(--r-l); box-shadow: 0 .5em 0 var(--goldd), 0 0 2.4em -.8em var(--gold); overflow: hidden; }
.join h4 { display: flex; align-items: center; justify-content: center; gap: .4em; padding: .55em .6em; background: var(--gold); color: var(--navy); font-size: 1.25em; letter-spacing: .04em; text-transform: uppercase; } .join h4 i { font-style: normal; }
.jq { flex: 1; min-height: 0; display: grid; place-items: center; padding: .7em; container-type: size; }
.jq .qr { flex: none; width: min(100cqw, 100cqh); height: min(100cqw, 100cqh); aspect-ratio: 1; padding: .35em; border-radius: .7em; border: 0; background: #fff; box-shadow: 0 0 0 .18em var(--gold), 0 0 1.6em -.2em var(--gold); }
.jfoot { display: grid; justify-items: center; gap: .3em; padding: .55em .6em .6em; background: #0d0524; border-top: var(--line) solid var(--edge); }
.jfoot small { font-size: .68em; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.jfoot .code i { background: var(--gold); color: var(--navy); width: 1.3em; height: 1.5em; border-radius: .22em; box-shadow: 0 .12em 0 var(--goldd); }
.jfoot .url { font-size: .58em; color: var(--mute); opacity: 1; }
/* who is here, and who has to act */
.lgo { display: grid; gap: .15em; animation: cut .3s 2.6s backwards; text-shadow: none; } .lgo b { font-weight: 400; font-size: 1.2em; color: var(--gold); } .lgo span { font-family: var(--body); font-weight: 900; font-size: .78em; letter-spacing: .12em; color: #fff; animation: blink 1.6s 2.9s ease-in-out infinite; }
/* the mouse controls live in the left margin, clear of whatever is at the bottom of the scene */
#ctl { left: .35em; bottom: auto; top: 50%; transform: translateY(-50%); flex-direction: column; }
/* keep the header and footer of the join card slim so the code itself is as large as possible */
.join h4 { padding: .4em .6em; font-size: 1.15em; } .jq { padding: .55em; }
.jfoot { grid-template-columns: auto auto; justify-content: center; align-items: center; gap: .25em .7em; padding: .45em .6em .5em; } .jfoot small { text-align: right; line-height: 1.2; max-width: 4em; } .jfoot .url { grid-column: 1 / -1; }

/* lobby: a little more air between the sign, the three cards and the footer, and around the code */
.lobby { gap: 1.25em; } .lrow3 { gap: 2em; padding-bottom: .7em; }
.join h4 { padding: .5em .6em; } .jq { padding: .9em 1em; } .jq .qr { width: min(100cqw, 100cqh, 11.5em); height: min(100cqw, 100cqh, 11.5em); }
.jfoot { padding: .6em .8em .65em; gap: .35em .8em; }
h2.low .qclock[style] { --kc: var(--bad) !important; }

/* Start screen, left column: the Play button and its summary sit in a card of their own, exactly as wide as the
   sign card above and ending level with the settings panel, so every edge on the screen lines up by construction.
   (A bare circle under a rectangle never looks aligned, even when it is.) The ring stays inside the card. */
@keyframes beatring-s { 0%, 11% { transform: scale(1); opacity: 0; } 12% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.2); opacity: 0; } }
.st-left { gap: 1.3em; }
.st-play { padding: 1.3em 2em; gap: 2em; border-radius: 1.15em; background: var(--surface); border: var(--line) solid var(--edge); box-shadow: var(--lift); margin-bottom: .1em; }
.st-go::after { animation: beatring-s 1.6s 2s infinite both; }
.st-sum { min-width: 0; }
/* Start screen: the Play group is open again (no card), and centred in the space under the sign card, so there is
   no edge for the circle to look misaligned against. The ring stays small. */
.st-play { padding: 0; background: none; border: 0; box-shadow: none; justify-content: center; gap: 2.2em; margin-bottom: 0; } .st-sum { max-width: 17em; }
/* the reel landing on tonight's game: the window lights up and the name settles */
.reel-win.landed { border-color: #fff; box-shadow: 0 .5em 0 var(--goldd), 0 0 3em var(--gold), inset 0 0 2.6em #000; transition: box-shadow .2s, border-color .2s; } .reel-win.landed .reel-name { color: var(--gold); animation: pop .35s both; }

/* TEAMS YOU CAN CHANGE. The captain is labelled in the lobby and wears a "C" on every name chip after that. */
.lp em.cap { background: var(--navy); color: #fff; } .lteam:not(.tg) header { cursor: pointer; } body.mouse .lteam:not(.tg) header:hover h3::after { content: ' ✎'; opacity: .6; }
.capt { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; margin-left: .3em; border-radius: 50%; background: var(--navy); color: var(--tc); font-family: var(--display); font-size: .72em; font-weight: 400; line-height: 1; }
.capline { margin-top: .6em; display: flex; flex-wrap: wrap; gap: .4em; justify-content: center; font-size: 1.3em; }
#team-edit { width: min(560px, 92vw); border-color: var(--tc); } #team-edit h2 { margin: 0 0 .6em; font-family: var(--display); font-weight: 400; color: var(--tc); text-transform: uppercase; }
#team-edit input[type=text] { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px; border: 2px solid #fff5; background: #0d0524; color: #fff; font: inherit; font-size: 18px; }
.te-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; } .te-row.sw { grid-template-columns: repeat(6, 1fr); }
.te-row button { aspect-ratio: 1; padding: 0; border-radius: 10px; border: 2px solid #fff3; background: #0006; color: #fff; font-family: var(--glyph); font-size: 22px; cursor: pointer; }
.te-row button.on { background: var(--tc); color: var(--navy); border-color: #fff; } .te-row.sw button { aspect-ratio: 2.2; border-color: #0006; } .te-row.sw button.on { border-color: #fff; box-shadow: 0 0 0 3px #fff; }
.te-row.sw button:disabled { opacity: .18; cursor: not-allowed; }
/* a long team name stays on one line: it shrinks a little, then trails off */
.lteam header { gap: .5em; } .lteam h3 { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lteam header span { flex: none; white-space: nowrap; } .lteam h3.long { font-size: 1.1em; } .lcol:has(.lteam ~ .lteam) .lteam h3.long { font-size: .92em; }

/* lobby join card: the room code and the address under it get room to breathe */
.jfoot { padding: .8em 1em 1em; gap: .7em .8em; } .jfoot .url { font-size: .66em; line-height: 1.3; text-align: center; } .jfoot .url b { color: var(--gold); font-weight: 900; }
