/* Categories!: a modern game-show look. Deep navy, rich blue panels with a fine edge, gold for money, white type.
   Its own design (a ladder of five values you climb, not a board of squares), restrained motion, and big, easy
   targets on a phone. Barlow Condensed for numbers and headings, Atkinson Hyperlegible for clues and reading. */
@font-face { font-family: "Atkinson"; src: url("/fonts/atkinson-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/fonts/atkinson-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --night: #070f26;
  --navy: #0a1533;
  --navy-2: #0f1e45;
  --blue: #1b3f97;
  --blue-2: #132f78;
  --edge: rgba(160, 190, 255, .22);
  --edge-strong: rgba(190, 210, 255, .38);
  --gold: #f4c64e;
  --gold-2: #d9a42b;
  --gold-ink: #1d1400;
  --ink: #f5f7ff;
  --soft: #c9d3f2;
  --muted: #94a3cf;
  --miss: #ff9a8a;
  --body: "Atkinson", system-ui, -apple-system, "Segoe UI", sans-serif;
  --show: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --panel: linear-gradient(180deg, #2149a8 0%, #163683 55%, #12306f 100%);
  --panel-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 0 0 1px var(--edge) inset, 0 18px 40px -18px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; background: var(--night); }
body {
  margin: 0; min-height: 100vh; min-height: 100svh; color: var(--ink); font: 400 1rem/1.5 var(--body); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 460px at 50% -120px, rgba(64, 108, 220, .38), transparent 70%),
    radial-gradient(600px 400px at 50% 110%, rgba(40, 70, 160, .25), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--night) 100%);
  background-attachment: fixed;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus { outline: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--gold) 70%, transparent); outline-offset: 3px; }
svg { display: block; }
[hidden] { display: none !important; }

/* ---------- Top ---------- */
.bar { display: flex; align-items: center; justify-content: space-between; max-width: 560px; margin: 0 auto;
  padding: calc(10px + env(safe-area-inset-top)) 12px 6px 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.55rem/1 var(--show); letter-spacing: .02em; }
.brand__mark { width: 30px; height: 30px; }
.brand__mark .brand__tile { fill: var(--blue); stroke: var(--edge-strong); stroke-width: 1; }
.brand__mark .bang { fill: var(--gold); }
.bar__tools { display: flex; gap: 2px; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--soft); transition: background-color .15s, color .15s; }
.icon-btn:hover { background: rgba(255, 255, 255, .07); color: var(--ink); }
.icon-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn svg .dot { fill: currentColor; }
[data-sound] .mute { display: none; }
[data-sound].is-muted .mute { display: inline; }
[data-sound].is-muted .wave { display: none; }

/* ---------- Screens ---------- */
.stage { max-width: 560px; margin: 0 auto; padding: 6px 16px calc(32px + env(safe-area-inset-bottom)); }
.screen.is-in { animation: enter .34s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }
.is-loading .screen--note .note__title { opacity: .7; }
.screen--note { padding: 64px 8px; text-align: center; }
.note__title { margin: 0; font: 700 1.9rem/1.15 var(--show); letter-spacing: .01em; }
.note__text { margin: 10px auto 0; max-width: 34ch; color: var(--soft); }

.kicker { margin: 10px 0 0; color: var(--muted); font: 600 .95rem/1.3 var(--show); letter-spacing: .08em; text-transform: uppercase; text-align: center; }
.today { margin: 18px 0 0; color: var(--gold); font: 600 1rem/1 var(--show); letter-spacing: .18em; text-transform: uppercase; text-align: center; }
.category { margin: 8px auto 0; max-width: 18ch; font: 700 clamp(2.4rem, 11vw, 3.4rem)/1 var(--show); letter-spacing: .01em; text-align: center; text-wrap: balance;
  text-shadow: 0 2px 24px rgba(80, 130, 255, .35); }

/* One column of a game board: the category's tile, then the five values, $100 at the top. Tiles have a TV bevel;
   a used one goes dark and says how it went; the one up next glows. */
.board-col { display: grid; gap: 6px; max-width: 420px; margin: 18px auto 0; padding: 6px; border-radius: 18px;
  background: #040a1d; box-shadow: 0 0 0 1px rgba(160, 190, 255, .12) inset, 0 24px 50px -20px rgba(0, 0, 0, .8); }
.board-col__head { display: grid; place-items: center; gap: 6px; min-height: 104px; padding: 14px 12px; border-radius: 12px; text-align: center;
  background: var(--panel); box-shadow: 0 2px 0 rgba(255, 255, 255, .12) inset, 0 -3px 0 rgba(0, 0, 0, .25) inset, 0 0 0 1px var(--edge) inset; }
.board-col .today { margin: 0; }
.board-col .category { margin: 0; font-size: clamp(2rem, 9.5vw, 2.8rem); text-transform: uppercase; letter-spacing: .02em; text-shadow: 0 3px 0 rgba(0, 0, 0, .45); }
.tiles { list-style: none; display: grid; gap: 6px; margin: 0; padding: 0; }
.tile { position: relative; display: grid; place-items: center; height: 60px; border-radius: 12px; background: var(--panel);
  box-shadow: 0 2px 0 rgba(255, 255, 255, .12) inset, 0 -3px 0 rgba(0, 0, 0, .25) inset, 0 0 0 1px var(--edge) inset; transition: background-color .3s; }
.tile b { font: 700 2.2rem/1 var(--show); color: var(--gold); letter-spacing: .02em; text-shadow: 0 3px 0 rgba(0, 0, 0, .45); }
.tile__state { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font: 700 1.05rem/1 var(--show); letter-spacing: .06em; }
.tile.is-next { box-shadow: 0 0 0 2px var(--gold) inset, 0 0 26px -6px rgba(244, 198, 78, .55); animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 2px var(--gold) inset, 0 0 34px -4px rgba(244, 198, 78, .75); } }
/* Play: the lit tile flashes and the rest of the board steps back, then the clue card opens out of the tile (app.js). */
.screen--home.is-leaving :is(.kicker, .home__go, .streak, .board-col__head, .tile:not(.is-picked)) { opacity: 0; transition: opacity .16s ease; }
.screen--home.is-leaving .board-col { background: transparent; box-shadow: none; transition: background-color .16s, box-shadow .16s; }
.tile.is-picked { animation: none; box-shadow: 0 0 0 2px var(--gold) inset, 0 0 40px -2px rgba(244, 198, 78, .85); filter: brightness(1.15); transition: filter .12s, box-shadow .12s; }
.screen--clue.from-tile.is-in { animation: none; }
.screen--clue.from-tile.is-in :is(.clue-top) { animation: enter .34s var(--ease) .18s both; }
.screen--clue.from-tile.is-splash.is-in .card__big b { animation: none; }
.tile.is-used { background: #0a1736; box-shadow: 0 0 0 1px rgba(160, 190, 255, .08) inset; }
.tile.is-used b { color: rgba(244, 198, 78, .28); text-shadow: none; }
.tile.is-right .tile__state { color: var(--gold); }
.tile.is-wrong .tile__state { color: var(--muted); }

/* Your winnings while you play: a lit score display that counts up when you're right. */
.bank { padding: 6px 14px; border-radius: 10px; background: #040a1d; box-shadow: 0 0 0 1px rgba(244, 198, 78, .35) inset;
  font: 700 1.25rem/1 var(--show); letter-spacing: .04em; color: var(--gold); font-variant-numeric: tabular-nums; transition: box-shadow .3s, transform .3s var(--ease); }
.bank.is-up { box-shadow: 0 0 0 1.5px var(--gold) inset, 0 0 22px -4px rgba(244, 198, 78, .7); transform: scale(1.06); }

.home__go { margin: 26px auto 0; max-width: 420px; text-align: center; }
.home__go .btn { width: 100%; }
.home__note { margin: 12px 0 0; color: var(--muted); font-size: .95rem; }

.streak { margin: 14px 0 0; text-align: center; color: var(--gold); font: 600 1.05rem/1.2 var(--show); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 26px; border-radius: 14px;
  font: 700 1.35rem/1 var(--show); letter-spacing: .06em; text-transform: uppercase; transition: transform .1s, filter .15s, opacity .15s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn--gold { background: linear-gradient(180deg, #f8d26c, #e3ad33); color: var(--gold-ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 10px 24px -12px rgba(240, 180, 40, .7); }
.btn--gold:hover { filter: brightness(1.05); }
.btn--ghost { color: var(--ink); box-shadow: 0 0 0 1.5px var(--edge-strong) inset; }
.btn--ghost:hover { background: rgba(255, 255, 255, .06); }

/* ---------- A clue ---------- */
/* Three columns, the outer two equal, so the winnings sit dead center whatever the label and clock say. */
.clue-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 6px 2px 10px; }
.clue-top > :first-child { justify-self: start; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clue-top > .bank { grid-column: 2; }
.clue-top > .clock { justify-self: end; }
.clue-top__step { color: var(--muted); font: 600 1rem/1 var(--show); letter-spacing: .1em; text-transform: uppercase; }
.clock { min-width: 64px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 1px var(--edge) inset;
  font: 700 1.15rem/1 var(--show); letter-spacing: .04em; font-variant-numeric: tabular-nums; text-align: center; color: var(--ink); }
.clock.is-stopped { color: var(--muted); }
.card { position: relative; margin: 0; padding: 22px 20px 26px; border-radius: 20px; background: var(--panel); box-shadow: var(--panel-shadow); text-align: center; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px 160px at 50% 0%, rgba(255, 255, 255, .12), transparent 70%); }
.card__cat { margin: 0; color: var(--soft); font: 600 .95rem/1.2 var(--show); letter-spacing: .14em; text-transform: uppercase; }
.card__value { margin: 6px 0 0; color: var(--gold); font: 700 2.6rem/1 var(--show); letter-spacing: .02em; text-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
/* The clue in big capitals, like a TV screen. */
.card__clue { position: relative; margin: 14px auto 0; max-width: 28ch; font: 700 clamp(1.2rem, 5.2vw, 1.55rem)/1.34 var(--body); text-transform: uppercase;
  letter-spacing: .015em; text-wrap: balance; text-shadow: 0 2px 0 rgba(0, 0, 0, .4); }
.screen--clue .card { min-height: 230px; display: grid; align-content: center; }
/* Before each clue: a cover over the card with just its value, big, zooming in. When the clue arrives (app.js,
   land()), the card eases to its new size, the cover fades, and the big value glides and shrinks into the value's
   own place, so nothing blinks or jumps; the clue fades in and the answer box rises in under it. */
.card__cover, .card__big { position: absolute; inset: 0; z-index: 1; display: none; pointer-events: none; }
.card__cover { border-radius: inherit; box-shadow: inherit;
  background: radial-gradient(420px 160px at 50% 0%, rgba(255, 255, 255, .12), transparent 70%), var(--panel); }
.card__big { z-index: 2; place-content: center; justify-items: center; gap: 10px; }
.card__big b { display: block; color: var(--gold); font: 700 6rem/1 var(--show); letter-spacing: .02em; text-shadow: 0 4px 0 rgba(0, 0, 0, .3);
  transform-origin: 50% 50%; will-change: transform; }
.card__big span { color: var(--soft); font: 600 1.05rem/1.2 var(--show); letter-spacing: .14em; text-transform: uppercase; }
.card__big span:empty { display: none; }
.screen--clue:is(.is-splash, .is-landing) .card__cover { display: block; }
.screen--clue:is(.is-splash, .is-landing) .card__big { display: grid; }
.screen--clue.is-splash.is-in .card__big b { animation: zoom .55s var(--ease) both; }
.screen--clue.is-splash.is-in .card__big span { animation: enter .4s var(--ease) .1s both; }
@keyframes zoom { from { opacity: 0; transform: scale(.55); } }
.screen--clue:is(.is-splash, .is-landing) .card__value { opacity: 0; }
.card__clue, .card__cat { transition: opacity .3s ease; }
.screen--clue.is-splash .card__clue, .screen--clue.is-splash .card__cat { opacity: 0; transition: none; }
.answer { transition: opacity .3s ease .08s, transform .4s var(--ease) .08s; }
.screen--clue.is-splash .answer { opacity: 0; transform: translateY(10px); transition: none; pointer-events: none; }

/* The answer box: the "Who is" is part of it, before the typing, and the question mark after. */
.answer { margin: 16px 0 0; }
.answer__field { display: flex; align-items: center; gap: 8px; min-height: 60px; padding: 0 16px; border-radius: 16px;
  background: rgba(5, 12, 34, .7); box-shadow: 0 0 0 1.5px var(--edge-strong) inset; cursor: text; transition: box-shadow .15s; }
.answer__field:focus-within { box-shadow: 0 0 0 2px var(--gold) inset, 0 0 22px -6px rgba(244, 198, 78, .45); }
.answer__prefix { flex: none; color: var(--gold); font: 700 1.3rem/1 var(--show); letter-spacing: .03em; white-space: nowrap; }
.answer__input { flex: 1; min-width: 0; height: 56px; border: 0; padding: 0; background: transparent; color: var(--ink);
  font: 700 1.2rem/1 var(--body); caret-color: var(--gold); }
.answer__input::placeholder { color: var(--muted); }
.answer__input:focus-visible { outline: none; }  /* the whole field lights up instead */
.answer__q { flex: none; color: var(--gold); font: 700 1.5rem/1 var(--show); }
.answer__go { width: 100%; margin-top: 12px; }
.answer__help { margin: 10px 0 0; text-align: center; color: var(--muted); font-size: .9rem; }
/* On a phone the real boxes stay hidden: what's typed on the game's keyboard shows here, with a caret. */
.answer__shown { display: none; }
.is-touch .answer__input { display: none; }
.is-touch .answer__shown { display: flex; align-items: center; flex: 1; min-width: 0; height: 56px; overflow: hidden; white-space: pre;
  font: 700 1.2rem/1 var(--body); color: var(--ink); }
.is-touch .answer__shown.is-long { justify-content: flex-end; }
.answer__text { flex: none; text-transform: capitalize; }
.is-touch .wager__field .answer__shown { font: 700 1.7rem/1 var(--show); letter-spacing: .03em; }
.caret { flex: none; width: 2px; height: 1.25em; margin-left: 2px; border-radius: 1px; background: var(--gold); animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- The keyboard (phones and tablets) ---------- */
:root { --key-h: 48px; --keys-h: 0px; }
.keys { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; gap: 7px; padding: 8px 5px calc(8px + env(safe-area-inset-bottom));
  background: #040a1d; box-shadow: 0 -1px 0 rgba(160, 190, 255, .14); transform: translateY(105%); transition: transform .3s var(--ease); }
body.has-keys .keys { transform: none; }
.keys__row { display: flex; gap: 6px; justify-content: center; max-width: 520px; width: 100%; margin: 0 auto; }
.keys button { flex: 1 1 0; min-width: 0; height: var(--key-h); border-radius: 9px; background: #1c3c8e; color: var(--ink);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .45), 0 1px 0 rgba(255, 255, 255, .12) inset; font: 700 1.2rem/1 var(--body); text-transform: uppercase;
  user-select: none; -webkit-user-select: none; transition: transform .08s, filter .12s; }
.keys button:active, .keys button.is-down { transform: translateY(1px); filter: brightness(1.3); }
.keys .k-half { flex: .5 1 0; }
.keys .k-wide { flex: 1.5 1 0; background: #11265e; }
.keys .k-mode { font: 700 1rem/1 var(--show); letter-spacing: .06em; }
.keys .k-space { flex: 4 1 0; background: #11265e; font: 600 1rem/1 var(--show); letter-spacing: .12em; color: var(--soft); }
.keys .k-go { flex: 2.4 1 0; background: linear-gradient(180deg, #f8d26c, #e3ad33); color: var(--gold-ink); font: 700 1.2rem/1 var(--show); letter-spacing: .06em; }
.keys button svg { width: 24px; height: 24px; margin: 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.keys--num .keys__row:last-child .k-wide { flex: 1 1 0; }
.keys--num .keys__row:last-child .k-go { flex: 3 1 0; }

/* While it's up, the screen is fixed: the clue (or wager) fills what's left above the keyboard, nothing scrolls, and
   Submit or Lock in lives on the keyboard. */
html:has(body.has-keys) { overflow: hidden; }
body.has-keys { display: flex; flex-direction: column; height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; padding-bottom: var(--keys-h); }
body.has-keys > :is(.bar, .testbar) { flex: none; width: 100%; }
body.has-keys .stage { flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; padding-bottom: 10px; }
body.has-keys .screen:not([hidden]) { flex: 1; min-height: 0; display: flex; flex-direction: column; }
body.has-keys .screen--clue .card { flex: 1; min-height: 0; padding: 14px 16px 18px; }
body.has-keys .card__clue { font-size: clamp(1.05rem, 4.7vw, 1.45rem); }
body.has-keys .answer { margin-top: 10px; }
body.has-keys :is(.answer__go, .answer__help, [data-wager-go]) { display: none; }
body.has-keys .screen--wager .card { padding: 16px 16px 18px; }
body.has-keys .wager__text { margin-top: 8px; font-size: .95rem; }
body.has-keys .wager__note:empty { display: none; }
@media (max-height: 700px) {
  :root { --key-h: 42px; }
  body.has-keys .card__value { font-size: 2rem; }
  body.has-keys .card__clue { font-size: clamp(.98rem, 4.3vw, 1.2rem); margin-top: 8px; }
  body.has-keys .card__big b { font-size: 4.4rem; }
  body.has-keys .final-cat { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  body.has-keys .chip { min-height: 40px; }
}
/* Small phones (an iPhone SE): a slimmer header, shorter keys, and a tighter card, so the clue fits. */
@media (max-height: 620px) {
  :root { --key-h: 38px; }
  .keys { gap: 6px; padding-top: 6px; }
  body.has-keys .bar { padding-top: calc(4px + env(safe-area-inset-top)); padding-bottom: 2px; }
  body.has-keys .brand { font-size: 1.3rem; }
  body.has-keys .brand__mark { width: 26px; height: 26px; }
  body.has-keys .icon-btn { width: 38px; height: 38px; }
  body.has-keys .clue-top { margin: 2px 2px 6px; }
  body.has-keys .screen--clue .card { padding: 10px 12px 14px; }
  body.has-keys .card__cat { font-size: .8rem; }
  body.has-keys .card__value { font-size: 1.6rem; margin-top: 2px; }
  body.has-keys .card__clue { font-size: .92rem; line-height: 1.28; margin-top: 6px; }
  body.has-keys .answer { margin-top: 8px; }
  body.has-keys .answer__field { min-height: 50px; }
  body.has-keys .answer__shown { height: 46px; }
  body.has-keys .testbar { margin-bottom: 2px; padding-top: 3px; padding-bottom: 3px; }
}
/* If a long clue still doesn't fit, the card scrolls by itself (never the page). */
body.has-keys .screen--clue .card { overflow-y: auto; overscroll-behavior: contain; }

/* ---------- The answer, revealed ---------- */
.card--reveal { padding: 24px 20px 24px; }
.verdict { margin: 0; font: 700 2.2rem/1 var(--show); letter-spacing: .04em; text-transform: uppercase; }
.card--reveal.is-right .verdict { color: var(--gold); }
.card--reveal.is-wrong .verdict { color: var(--miss); }
.card--reveal.is-right { box-shadow: 0 0 0 2px rgba(244, 198, 78, .65) inset, 0 0 40px -10px rgba(244, 198, 78, .4), 0 18px 40px -18px rgba(0, 0, 0, .7); }
.points { margin: 6px 0 0; font: 700 1.5rem/1 var(--show); letter-spacing: .03em; color: var(--soft); }
.card--reveal.is-right .points { color: var(--ink); }
.official { margin: 18px auto 0; max-width: 24ch; font: 700 clamp(1.45rem, 6.4vw, 1.9rem)/1.2 var(--body); text-wrap: balance; }
.said { margin: 8px 0 0; color: var(--muted); font-size: .95rem; }
.said:empty { display: none; }
.fact { margin: 16px auto 0; padding-top: 14px; max-width: 36ch; border-top: 1px solid var(--edge); color: var(--soft); font-size: 1rem; line-height: 1.45; text-wrap: pretty; }
.screen--reveal .btn { width: 100%; margin-top: 16px; }
.screen--reveal.is-in .verdict { animation: pop .42s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }

/* ---------- The Final Wager ---------- */
/* On the board: one more tile under the five, edged in gold. */
.tile--final { margin-top: 4px; background: linear-gradient(180deg, #15275e, #0c1a45);
  box-shadow: 0 0 0 1.5px rgba(244, 198, 78, .5) inset, 0 2px 0 rgba(255, 255, 255, .08) inset; }
.tile--final b { font-size: 1.45rem; letter-spacing: .16em; text-transform: uppercase; }
.tile--final.is-used { box-shadow: 0 0 0 1px rgba(244, 198, 78, .18) inset; }
/* The wager: the final category, big, then the amount. */
.card--final, .screen--clue:is(.is-final, .is-dd) .card, .card--reveal.is-final:not(.is-wrong) {
  box-shadow: 0 0 0 2px rgba(244, 198, 78, .6) inset, 0 0 44px -12px rgba(244, 198, 78, .35), 0 18px 40px -18px rgba(0, 0, 0, .7); }
.card--final { padding: 22px 20px 24px; }
.final-cat { margin: 10px auto 0; max-width: 16ch; font: 700 clamp(2.2rem, 10vw, 3rem)/1 var(--show); letter-spacing: .02em; text-transform: uppercase;
  text-wrap: balance; text-shadow: 0 3px 0 rgba(0, 0, 0, .45); }
.screen--wager.is-in .final-cat { animation: pop .5s var(--ease) .12s both; }
.wager__text { margin: 14px auto 0; max-width: 32ch; color: var(--soft); text-wrap: pretty; }
.wager { margin-top: 16px; }
.wager__input { font: 700 1.7rem/1 var(--show); letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.answer__prefix + .wager__input { margin-left: -4px; }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.chip { min-height: 46px; border-radius: 12px; box-shadow: 0 0 0 1.5px var(--edge-strong) inset; color: var(--soft);
  font: 700 1.15rem/1 var(--show); letter-spacing: .06em; text-transform: uppercase; transition: background-color .15s, color .15s, box-shadow .15s; }
.chip:hover { background: rgba(255, 255, 255, .06); color: var(--ink); }
.chip.is-on { box-shadow: 0 0 0 2px var(--gold) inset; color: var(--gold); }
.wager__note { min-height: 1.4em; margin: 10px 0 0; text-align: center; color: var(--muted); font-size: .9rem; }
.wager__note.is-over { color: var(--miss); font-weight: 700; }
.wager .btn, .wager__locked .btn { width: 100%; margin-top: 12px; }
.wager__locked { margin-top: 18px; text-align: center; }
.wager__locked p { margin: 0; color: var(--soft); }
.wager__locked b { color: var(--gold); font: 700 1.35rem/1 var(--show); letter-spacing: .03em; }
/* The final clue: its category shows over the wager during the splash, and its seconds drain along the card's
   bottom edge. */
.timer { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: rgba(0, 0, 0, .35); }
.timer i { display: block; height: 100%; background: var(--gold); transform-origin: left; transition: transform .25s linear, background-color .3s; }
.timer.is-low i { background: var(--miss); }
.clock.is-low { color: var(--miss); box-shadow: 0 0 0 1.5px rgba(255, 154, 138, .65) inset; animation: beat 1s ease-in-out infinite; }
@keyframes beat { 50% { transform: scale(1.06); } }
/* ---------- The Double Down ---------- */
/* Found: the splash's value turns into the words, big, in gold on a lit card. */
.screen--clue.is-dd-reveal .card__big b { font-size: clamp(2.7rem, 13.5vw, 3.8rem); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .35), 0 0 30px rgba(244, 198, 78, .55); }
/* On the board, once found: its tile says so. */
.tile.is-double:not(.is-used) .tile__state { color: var(--gold); font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; }
.tile.is-double:not(.is-used) { box-shadow: 0 0 0 1.5px rgba(244, 198, 78, .7) inset, 0 2px 0 rgba(255, 255, 255, .12) inset; }
.bank.is-down { box-shadow: 0 0 0 1.5px var(--miss) inset; color: var(--miss); }
.recap li.is-final b { min-width: 48px; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.recap li.is-final.is-wrong b { color: var(--muted); }
.recap em { flex: none; margin-left: auto; font: 700 1.15rem/1 var(--show); font-style: normal; letter-spacing: .03em; color: var(--gold); }
.recap li.is-wrong em { color: var(--miss); }

/* ---------- The final score ---------- */
.final { display: grid; justify-items: center; margin: 14px 0 0; }
.final .final__label { margin: 0 0 8px; color: var(--gold); font: 600 1rem/1 var(--show); letter-spacing: .18em; text-transform: uppercase; }
.final b { font: 700 clamp(3.6rem, 18vw, 4.8rem)/.95 var(--show); color: var(--gold); letter-spacing: .01em; text-shadow: 0 4px 30px rgba(244, 198, 78, .3); font-variant-numeric: tabular-nums; }
.final span { margin-top: 6px; color: var(--soft); font: 600 1.1rem/1 var(--show); letter-spacing: .1em; text-transform: uppercase; }
.final__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); list-style: none; margin: 16px 0 0; padding: 12px 4px; border-radius: 16px;
  background: rgba(255, 255, 255, .04); box-shadow: 0 0 0 1px var(--edge) inset; }
.final__stats li { display: grid; justify-items: center; gap: 4px; padding: 0 4px; text-align: center; }
.final__stats li + li { border-left: 1px solid var(--edge); }
.final__stats b { font: 700 1.7rem/1 var(--show); font-variant-numeric: tabular-nums; }
.final__stats span { color: var(--muted); font-size: .8rem; line-height: 1.2; }
/* Your answers: one card with hairlines between rows (Adam, 2026-11-25: the results were "a little busy"), each row
   ending in a check or a cross, or a wager's win or loss. */
.recap { list-style: none; margin: 16px 0 0; padding: 2px 14px; border-radius: 16px; background: rgba(255, 255, 255, .04); box-shadow: 0 0 0 1px var(--edge) inset; }
.recap li { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.recap li + li { border-top: 1px solid var(--edge); }
.recap b { flex: none; min-width: 48px; font: 700 1.15rem/1 var(--show); color: var(--gold); }
.recap li.is-wrong b { color: var(--muted); }
.recap span { min-width: 0; color: var(--soft); font-size: .92rem; line-height: 1.3; }
.recap li.is-right span { color: var(--ink); }
.recap em.mark { font: 700 1rem/1 var(--body); }
.results__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.results__actions .btn { min-height: 52px; padding: 0 12px; font-size: 1.15rem; }
.name { margin: 22px 0 0; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .04); box-shadow: 0 0 0 1px var(--edge) inset; }
.name__label { display: block; font: 600 1rem/1.2 var(--show); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.name__row { display: flex; gap: 8px; margin-top: 10px; }
.name__input { flex: 1; min-width: 0; height: 50px; padding: 0 14px; border: 0; border-radius: 12px; background: rgba(5, 12, 34, .7); color: var(--ink);
  box-shadow: 0 0 0 1.5px var(--edge-strong) inset; font: 700 1.05rem/1 var(--body); }
.name__input:focus { box-shadow: 0 0 0 2px var(--gold) inset; }
.name__save { min-height: 50px; padding: 0 18px; font-size: 1.15rem; }
.name__note { margin: 8px 0 0; color: var(--muted); font-size: .88rem; }
.next { margin: 16px 0 0; text-align: center; color: var(--muted); }
.next b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; top: calc(64px + env(safe-area-inset-top)); z-index: 40; width: max-content; max-width: calc(100% - 32px);
  transform: translate(-50%, -10px); opacity: 0; padding: 11px 16px; border-radius: 12px; background: var(--ink); color: var(--navy);
  font-weight: 700; text-align: center; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Sheets ---------- */
.sheet { width: min(100% - 24px, 480px); max-height: min(88vh, 760px); margin: auto; padding: 26px 22px 24px; border: 0; border-radius: 22px;
  background: linear-gradient(180deg, #13245a, #0c1940); color: var(--ink); box-shadow: 0 0 0 1px var(--edge) inset, 0 30px 80px -20px rgba(0, 0, 0, .7);
  overflow: auto; overscroll-behavior: contain; }
html:has(dialog[open]) { overflow: hidden; }
.sheet::backdrop { background: rgba(2, 6, 20, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet[open] { animation: rise .32s var(--ease); }
.sheet.is-closing { animation: sink .2s ease-in forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes sink { to { opacity: 0; transform: translateY(12px) scale(.98); } }
.sheet h2 { margin: 0 0 14px; font: 700 2rem/1 var(--show); letter-spacing: .02em; }
.sheet__close { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--soft); }
.sheet__close:hover { background: rgba(255, 255, 255, .07); }
.sheet__close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sheet > .btn { width: 100%; margin-top: 18px; }
/* The name window: the box, a line for a problem with it, and Save and play. */
.sheet__lede { margin: 0 0 16px; color: var(--soft); line-height: 1.45; }
.sheet--name .name__input { display: block; width: 100%; }
.sheet--name .name__input:focus-visible { outline: none; }
.sheet--name .name__note { margin: 8px 0 0; color: var(--ink); }
.sheet--name .name__note:empty { display: none; }
.sheet--name .btn { width: 100%; margin-top: 14px; }
/* Suggest a category: the idea, an optional note, and a thank-you once it's sent. */
.suggest__note { height: auto; min-height: 84px; margin-top: 10px; padding: 12px 14px; resize: none; font-weight: 600; line-height: 1.4; }
.suggest-line { margin: 18px 0 0; text-align: center; color: var(--soft); font-size: .95rem; }
.sheet .suggest-line { margin-top: 14px; }
.link-btn { padding: 4px 2px; border: 0; background: none; color: var(--gold); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.how { list-style: none; counter-reset: step; display: grid; gap: 14px; margin: 0; padding: 0; }
.how li { counter-increment: step; position: relative; padding-left: 40px; }
.how li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: var(--gold); color: var(--gold-ink); font: 700 1.05rem/1 var(--show); }
.how h3 { margin: 0; font: 700 1.3rem/1.2 var(--show); letter-spacing: .02em; }
.how p { margin: 2px 0 0; color: var(--soft); }

/* The leaderboard */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, .25); }
.tabs button { min-height: 40px; border-radius: 9px; font: 700 1.1rem/1 var(--show); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--blue); color: var(--ink); box-shadow: 0 0 0 1px var(--edge) inset; }
.board { margin-top: 14px; min-height: 120px; }
.board__list { list-style: none; margin: 0; padding: 0; }
.board__row, .board__head { display: grid; align-items: center; gap: 8px; padding: 10px 10px; border-bottom: 1px solid var(--edge); font-variant-numeric: tabular-nums; }
.board__list--today .board__row, .board__list--today .board__head { grid-template-columns: 32px 1fr 64px 60px; }
.board__list--all .board__row, .board__list--all .board__head { grid-template-columns: 32px 1fr 64px 48px 52px; }
.board__head { padding-top: 0; color: var(--muted); font: 600 .85rem/1 var(--show); letter-spacing: .1em; text-transform: uppercase; }
.board__row span:first-child { color: var(--gold); font: 700 1.15rem/1 var(--show); }
.board__row span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.board__row span:nth-child(n+3), .board__head span:nth-child(n+3) { text-align: right; }
.board__row span:nth-child(n+3) { font: 700 1.2rem/1 var(--show); letter-spacing: .02em; }
.board__row.is-you { background: rgba(244, 198, 78, .12); border-radius: 10px; border-bottom-color: transparent; }
.board__you { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(244, 198, 78, .12); font-weight: 700; }
.board__note { margin: 12px 0 0; color: var(--muted); font-size: .9rem; text-align: center; text-wrap: pretty; }

/* A test round from the portal. */
.testbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 528px; margin: 0 16px 6px; padding: 6px 6px 6px 14px;
  border-radius: 12px; background: rgba(244, 198, 78, .14); box-shadow: 0 0 0 1px rgba(244, 198, 78, .5) inset; font-size: .92rem; }
@media (min-width: 561px) { .testbar { margin: 0 auto 6px; } }
.testbar p { margin: 0; }
.testbar button { padding: 7px 12px; border-radius: 999px; box-shadow: 0 0 0 1.5px var(--edge-strong) inset; font-weight: 700; }
.noscript { max-width: 520px; margin: 40px auto; padding: 0 16px; text-align: center; }

/* ---------- Phones ---------- */
@media (max-width: 560px) {
  .sheet { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; padding: 24px 20px calc(18px + env(safe-area-inset-bottom)); }
  .sheet[open] { animation: up .36s var(--ease); }
  .sheet.is-closing { animation: down .24s ease-in forwards; }
  .sheet--name { width: calc(100% - 24px); margin: max(16px, env(safe-area-inset-top)) auto auto; border-radius: 22px; padding-bottom: 22px; }
  .sheet--name[open] { animation: rise .32s var(--ease); }
  .sheet--name.is-closing { animation: sink .2s ease-in forwards; }
}
@keyframes up { from { transform: translateY(100%); } }
@keyframes down { to { transform: translateY(100%); } }
/* Short screens: a tighter ladder and card, so the clue and the answer box fit above a keyboard. */
@media (max-height: 740px) {
  .tile { height: 47px; }
  .tile b { font-size: 2rem; }
  .board-col__head { min-height: 80px; padding: 10px 12px; }
  .board-col { margin-top: 12px; }
  .home__go { margin-top: 18px; }
  .card { padding: 16px 16px 20px; }
  .card__value { font-size: 2.2rem; }
  .card__big b { font-size: 5rem; }
  .card__clue { margin-top: 10px; }
  .tile--final { height: 47px; }
  .tile--final b { font-size: 1.3rem; }
}
/* Very short screens (an iPhone SE): six tiles and Play still fit. */
@media (max-height: 620px) {
  .kicker { margin-top: 4px; }
  .board-col { margin-top: 8px; gap: 5px; padding: 5px; }
  .tiles { gap: 5px; }
  .tile, .tile--final { height: 40px; }
  .tile b { font-size: 1.75rem; }
  .tile--final b { font-size: 1.15rem; }
  .board-col__head { min-height: 66px; padding: 8px 12px; gap: 4px; }
  .board-col .category { font-size: clamp(1.7rem, 8.5vw, 2.3rem); }
  .home__go { margin-top: 14px; }
  .home__note { margin-top: 8px; font-size: .9rem; }
}
@media (max-width: 360px) {
  .answer__prefix { font-size: 1.15rem; }
  .final__stats b { font-size: 1.45rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* The suggestion form fills the screen, with the × in the corner (Adam, 2026-11-25), like the email sign-up. */
.sheet--full { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: max(64px, calc(env(safe-area-inset-top) + 56px)) 22px max(28px, calc(env(safe-area-inset-bottom) + 20px));
  border-radius: 0; overflow-y: auto; overscroll-behavior: contain; }
.sheet--full[open] { display: flex; flex-direction: column; }
.sheet--full > * { width: 100%; max-width: 460px; margin-left: auto; margin-right: auto; }
.sheet--full .sheet__close { position: fixed; top: max(14px, calc(env(safe-area-inset-top) + 8px)); right: max(14px, calc(env(safe-area-inset-right) + 8px)); width: 44px; height: 44px;
  background: rgba(255, 255, 255, .08); color: var(--ink); max-width: none; margin: 0; }
.sheet--full h2 { font-size: clamp(2.2rem, 9vw, 2.8rem); margin-top: auto; }
.sheet--full form { margin-bottom: auto; }
@media (max-width: 639px) { .sheet--name.sheet--full { width: 100%; margin: 0; border-radius: 0; } }
.suggest__tell { display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; cursor: pointer; line-height: 1.3; }
.suggest__tell input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--gold); }
.suggest__tell span { display: grid; gap: 3px; }
.suggest__tell small { color: var(--soft); font-size: .88rem; }
.suggest__email { margin-top: 10px; }
.suggest__email[hidden] { display: none; }

/* Accessibility mode (public/settings.js): stronger secondary text and bigger clues. */
html.a11y { --muted: var(--soft); --soft: #e6ecff; }
html.a11y .card__clue { font-size: clamp(1.35rem, 5.9vw, 1.8rem); }
html.a11y body.has-keys .card__clue { font-size: clamp(1.2rem, 5.3vw, 1.6rem); }
html.a11y .sheet { font-size: 1.08rem; }
/* "Easy" beside a name on today's leaderboard, and easy mode's hint under a clue. */
.card__hint { margin: 8px 0 6px; color: var(--gold); font: 700 1.15rem/1.3 var(--body); letter-spacing: .16em; white-space: pre-wrap; word-break: break-word; }
/* Regular or Easy mode, under Today and All time: a smaller second choice. */
.modes { display: flex; justify-content: center; gap: 6px; margin: 10px 0 12px; }
.modes button { padding: 6px 14px; border-radius: 999px; color: var(--muted); font: 700 .88rem/1.2 var(--body); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.modes button[aria-pressed="true"] { color: var(--ink); background: var(--blue); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }

/* ---------- "Lock in your answer?" (2026-12-02) ---------- */
.sheet--lock { text-align: center; }
.sheet--lock h2 { margin: 4px 0 12px; }
.sheet--lock h2:focus { outline: none; }
.lock__answer { margin: 0; color: var(--gold); font: 700 1.7rem/1.15 var(--show); letter-spacing: .02em; overflow-wrap: anywhere; }
.lock__note { margin: 10px 0 0; color: var(--muted); font-size: .92rem; }
.lock__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.lock__buttons .btn { width: 100%; padding: 0 12px; }

/* ---------- Head-to-head (2026-12-03): play with friends, buzzing in ---------- */
.home__friends { width: 100%; margin-top: 10px; }
.home__h2h { margin: 14px auto 0; max-width: 32ch; color: var(--soft); text-align: center; }
.room__code { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 4px 0 14px; padding: 14px 16px;
  border-radius: 16px; background: var(--navy-2); box-shadow: 0 0 0 1px var(--edge) inset; }
.room__label { color: var(--muted); font-size: .9rem; }
.room__code b { color: var(--gold); font: 700 2.4rem/1 var(--show); letter-spacing: .22em; }
.room__players { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.room__players li { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 14px;
  background: var(--navy-2); box-shadow: 0 0 0 1px var(--edge) inset; font: 700 1.15rem/1 var(--show); letter-spacing: .02em; }
.room__players li.is-empty { color: var(--muted); font: 400 1rem/1 var(--body); background: transparent; box-shadow: 0 0 0 1.5px var(--edge) inset; }
.room__players .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.room__players .is-online .dot { background: #5fd49a; }
.room__players small { margin-left: auto; color: var(--muted); font: 600 .9rem/1 var(--body); letter-spacing: 0; }
.room__note { min-height: 1.4em; margin: 0 0 12px; color: var(--soft); }
.room__note.is-bad { color: var(--miss); }
.room__actions { display: grid; gap: 10px; }
.room__actions .btn { width: 100%; }
.room__small { margin: 14px 0 0; color: var(--muted); font-size: .9rem; }

/* Everyone's money, across the top. */
.mplayers { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; margin: 2px 0 8px; padding: 0; }
.mplayer { position: relative; min-width: 0; padding: 7px 10px 8px; border-radius: 12px; background: var(--navy-2); box-shadow: 0 0 0 1px var(--edge) inset; }
.mplayer__name { display: block; overflow: hidden; color: var(--soft); font: 700 .95rem/1.15 var(--show); letter-spacing: .03em; text-overflow: ellipsis; white-space: nowrap; }
.mplayer__score { display: block; color: var(--gold); font: 700 1.2rem/1.1 var(--show); font-variant-numeric: tabular-nums; }
.mplayer__score.is-neg { color: var(--miss); }
.mplayer__tag { position: absolute; top: 7px; right: 9px; color: var(--muted); font: 600 .8rem/1 var(--body); }
.mplayer.is-on { background: var(--blue-2); box-shadow: 0 0 0 2px var(--gold) inset; }
.mplayer.is-on .mplayer__name { color: var(--gold); }
.mplayer.is-out { opacity: .55; }
.screen--match .clue-top { margin-top: 2px; }
.card--match { min-height: 210px; display: grid; align-content: center; }
.card--match.is-intro .card__clue { font: 700 clamp(2rem, 9vw, 2.7rem)/1.05 var(--show); letter-spacing: .02em; color: var(--gold); }
.card--match.is-final { background: linear-gradient(180deg, #24306e 0%, #1a2559 60%, #141d4a 100%); }
.mreveal { position: relative; margin-top: 12px; }
.mreveal .verdict { margin: 0; font: 700 1.4rem/1.1 var(--show); letter-spacing: .04em; text-transform: uppercase; color: var(--gold); }
.mreveal.is-miss .verdict { color: var(--miss); }
.mreveal .official { margin: 8px 0 0; font: 700 1.25rem/1.25 var(--body); }
.mreveal .fact { margin: 10px auto 0; max-width: 34ch; color: var(--soft); font-size: .95rem; }
.card--match .timer { margin-top: 14px; }
.msay { min-height: 1.5em; margin: 12px 4px 0; color: var(--soft); text-align: center; font: 600 1.05rem/1.35 var(--body); }
.msay.is-good { color: var(--gold); }
.msay.is-bad { color: var(--miss); }
.mtries { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 8px 0 0; padding: 0; }
.mtries:empty { display: none; }
.mtries li { padding: 5px 10px; border-radius: 999px; background: rgba(255, 154, 138, .12); color: var(--miss); font-size: .9rem; }
.mtries li.is-right { background: rgba(244, 198, 78, .14); color: var(--gold); }

/* The buzzer: dark while the clue's being read, gold once it's live, and it says what's going on. */
.buzzer { display: grid; place-items: center; width: min(100%, 340px); height: 96px; margin: 16px auto 0; border-radius: 999px;
  background: var(--navy-2); color: var(--muted); box-shadow: 0 0 0 2px var(--edge-strong) inset, 0 12px 30px -16px rgba(0, 0, 0, .8);
  font: 700 2rem/1 var(--show); letter-spacing: .08em; text-transform: uppercase; user-select: none; -webkit-user-select: none;
  touch-action: manipulation; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
  transition: background-color .12s, color .12s, box-shadow .12s, transform .08s; }
.buzzer.is-live { background: linear-gradient(180deg, #ffdc7a, #e6a92c); color: var(--gold-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .55) inset, 0 0 0 4px rgba(244, 198, 78, .25), 0 16px 34px -14px rgba(240, 180, 40, .8); }
.buzzer.is-live:active, .buzzer.is-pressed { transform: scale(.97); }
.buzzer.is-in { background: var(--blue); color: var(--gold); box-shadow: 0 0 0 2px var(--gold) inset; }
.buzzer.is-early { background: #4a1f2a; color: var(--miss); box-shadow: 0 0 0 2px rgba(255, 154, 138, .5) inset; }
.buzzer:disabled { cursor: default; }
@media (prefers-reduced-motion: no-preference) { .buzzer.is-live { animation: buzz-glow 1.1s ease-in-out infinite alternate; } }
@keyframes buzz-glow { to { box-shadow: 0 1px 0 rgba(255, 255, 255, .55) inset, 0 0 0 9px rgba(244, 198, 78, .12), 0 16px 34px -14px rgba(240, 180, 40, .8); } }
html.a11y .buzzer.is-live { animation: none; }
.screen--match .answer, .screen--match .wager { margin-top: 14px; }

/* The finish: everyone's place. */
.standings { list-style: none; display: grid; gap: 8px; margin: 18px 0 0; padding: 0; }
.standings li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  background: var(--navy-2); box-shadow: 0 0 0 1px var(--edge) inset; font: 700 1.2rem/1.1 var(--show); letter-spacing: .02em; }
.standings li:first-child { box-shadow: 0 0 0 2px var(--gold) inset; }
.standings .place { color: var(--gold); min-width: 2.2ch; }
.standings .you { color: var(--muted); font: 600 .9rem/1 var(--body); }
.standings b { font-variant-numeric: tabular-nums; }
.standings b.is-neg { color: var(--miss); }
.recap li .who { display: block; color: var(--muted); font-size: .85rem; }

/* On a phone with the game's keyboard up (answering or wagering), the match fits above it like a clue does. */
body.has-keys .screen--match .card { flex: 1; min-height: 0; padding: 14px 16px 18px; overflow-y: auto; overscroll-behavior: contain; }
body.has-keys .screen--match .msay { margin-top: 8px; }
body.has-keys .screen--match .mtries { display: none; }
body.has-keys .screen--match .chips { margin-top: 8px; }

/* Joining with a code: a friend read it out, or the link didn't come through. */
.room__join { margin-top: 18px; }
.room__or { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; color: var(--muted); font-size: .95rem; }
.room__or::before, .room__or::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .35; }
.room__join-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.room__join-input { font-size: max(16px, 1.25rem); font-weight: 700; letter-spacing: .3em; text-transform: uppercase; text-align: center; }
.room__join-input::placeholder { letter-spacing: .04em; text-transform: none; font-weight: 400; }
.room__join-row .btn { min-width: 96px; height: auto; min-height: 0; align-self: stretch; }
.room__join-note { min-height: 1.3em; margin: 8px 0 0; color: var(--muted); font-size: .95rem; }
.room__join-note.is-bad { color: var(--miss); }
.sheet--room h2:focus { outline: none; }
.room__acct { margin: 14px 0 0; color: var(--muted); font-size: .95rem; text-align: center; }
.room__acct .link-btn { padding: 4px 2px; font-size: inherit; }
