/* ── Zip Blitz — LIST BLITZ, THE PLAY PAGE's own look (listblitz.css; listblitz.js) ─────────
   Only what is the list game's. Shared, and loaded by list.html: tokens.css (the palette),
   countpill.css (the round pill as the countdown, its place and height, and where the face-off
   starts under it), faceoff.css, playerbar.css (the pills and
   their found pulse, .pb-got), proximity.css (the time bar's track and mask), roundend.css
   (the round end's head, bar, card and board link), leaderboard.css (.lb-psheet sheets,
   .lb-toggle pills), answersheet.js's injected styles (the answer sheet, list rows included).
   Every font size is at least 0.82rem (tests/font_floor.test.mjs). */

/* This page's own tokens (trivia.html's :root keeps its own --danger; tests/list_blitz_page.test.mjs
   holds them equal). The pill's place and height are countpill.css's, shared, not copied. */
:root {
  --danger: #D1544A;                /* trivia.html --danger; not in tokens.css (see its header) */
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --tier: var(--accent);
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased; min-height: 100%; }
body * { box-sizing: border-box; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
[hidden] { display: none !important; }
#screen-results { max-width: 480px; margin: 0 auto; padding: calc(18px + var(--sat)) 16px calc(130px + var(--sab)); }

/* ── The round: one frame pinned to the VISIBLE viewport (listblitz.js fit()) ──────────
   The keyboard shrinks visualViewport, not the page, and iOS may scroll the page to show
   the field: the frame is sized to visualViewport and moved by its offsetTop, so the top
   bar stays at the top of what you see, the field sits on the keyboard, the list between.
   The shell is fixed and never transformed; the inner frame moves (CLAUDE.md UI rules). */
.lp-shell { position: fixed; inset: 0; overflow: hidden; background: var(--bg); }
.lp-frame { position: absolute; left: 0; right: 0; top: 0; height: 100%;
  display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; will-change: transform; }

/* The top bar: trivia's (.t-topbar, .t-back): a plain back arrow that asks before you give up,
   the progress where trivia has its question dots, and the list's (i). */
.lp-top { flex-shrink: 0; padding: calc(4px + var(--sat)) 8px 6px; background: var(--bg); }   /* no rule under it: trivia's .t-topbar has none */
/* Back | count | Skip + info: the count stays centred whatever sits on the right. */
.lp-topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.lp-topbar > .lp-tback { justify-self: start; }
.lp-tright { justify-self: end; display: flex; align-items: center; gap: 2px; }
.lp-tback, .lp-info { width: 44px; flex: none; }
/* SKIP, beside the info button for the whole round (George, 2026-11-21/22): the shared ghost button, small
   (roundui.css .t-btn-sm). A quiet pill: a way out, not the game. */
.lp-tback { padding: 8px 0; }   /* the arrow is trivia's .t-back (roundend.css) */
.lp-info { color: var(--muted); display: flex; align-items: center; justify-content: center; padding: 8px 0; }
.lp-progress { flex: 1; text-align: center; font-size: 0.95rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lp-progress b { font-family: var(--font-display); font-size: 1.3rem; color: var(--text); }

/* The pre-round: the pill and the face-off at TRIVIA'S place, from trivia's own rule (countpill.css:
   --pill-top, --pill-h, .cd-faceoff's top and .tall; George, 2026-11-22: it had been placed here, at the
   top under Back, by a copy). Only what is the list page's: the face-off's paper behind it
   (.lp-fo-ground, so the race under it does not show), its stacking, and its bottom (listblitz.js
   placeFaceoff: the bar's height). A .tall face-off hides the pill until it lands, as trivia's .fo-tall. */
.lp-pill.countdown-tier { z-index: 6; }
.lp-fo-ground { position: absolute; inset: 0; z-index: 4; background: var(--bg); pointer-events: none; }
.lp-fo.cd-faceoff { z-index: 5; padding-bottom: 10px; overflow: hidden; }
.lp-fo-tall .lp-pill.countdown-tier { visibility: hidden; }

/* The list. A slot is an answer option, at the app's size: the web's answer option
   (topic-page.css .zp-try-opt: 52px, radius 14px, 0.98rem 600) with the clue in trivia's
   option key chip (.t-option .t-key: 28px, radius 8px). */
.lp-list { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain; padding: 10px 12px 14px; position: relative; }
.lp-kb .lp-list { padding-top: 6px; }
/* THE LIST'S NAME, above the first entries (George, 2026-11-22: easy to miss on the face-off); the face-off's pill
   flies into it at GO (listblitz.js flyPill). It scrolls with the list. */
.lp-title { margin: 2px 4px 10px; text-align: center; font-family: var(--font-display); font-weight: 600;
  font-size: 1.25rem; line-height: 1.2; color: var(--tier-deep, var(--text)); overflow-wrap: break-word; }
.lp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lp-grid.lp-one { grid-template-columns: 1fr; }
.lp-slot { display: flex; flex-wrap: wrap; row-gap: 4px; align-items: center; gap: 10px; min-height: 52px; padding: 10px 12px 10px 10px;
  background: var(--surface); border: 1.5px solid var(--rule); border-radius: 14px; min-width: 0; }
.lp-clue { flex-shrink: 0; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg); border: 1px solid var(--rule); color: var(--muted);
  font-size: 0.82rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lp-clue.lp-letter { font-size: 0.92rem; }
/* A long name beside a wide clue takes a second line, never an ellipsis: it is the reward. */
.lp-name { flex: 1 1 6.5em; min-width: 0; font-size: 0.98rem; font-weight: 600; line-height: 1.2; overflow-wrap: break-word; }
.lp-blank { flex: 1 1 2em; height: 1.5px; background: var(--rule); align-self: center; }
.lp-slot.lp-found { border-color: color-mix(in srgb, var(--accent) 45%, var(--rule)); }
.lp-slot.lp-found .lp-clue { background: var(--t-tint); border-color: transparent; color: var(--accentDeep); }
.lp-slot.lp-found .lp-name { color: var(--accentDeep); }
.lp-slot.lp-hit { animation: lp-hit 900ms ease-out; }
@keyframes lp-hit { 0% { background: var(--accent); transform: scale(1.04); } 30% { background: var(--t-tint); transform: scale(1); } 100% { background: var(--surface); } }
@media (prefers-reduced-motion: reduce) { .lp-slot.lp-hit { animation: none; background: var(--t-tint); } }

/* The bottom bar: trivia's (the pills, the draining time bar), then the field on the keyboard.
   The field is 1.1rem so iOS does not zoom on focus (under 16px zooms). */
.lp-entry { position: relative; flex-shrink: 0; padding: 8px 12px calc(8px + var(--kb-sab, var(--sab)));
  background: rgba(255, 252, 247, 0.96); border-top: 1.5px solid var(--rule); }
.lp-players { margin: 0 0 8px; }
.lp-timerow { margin: 0 2px 7px; }
.lp-mask { background: var(--accent); transition: width 0.25s linear, background 0.2s ease; }
.lp-mask.low { background: var(--danger); }
/* The minutes left, where trivia shows its "+N" (trivia.html .t-bar-points' look). */
.lp-time { flex-shrink: 0; min-width: 3.2ch; text-align: right; font-family: var(--font-display); font-weight: 700;
  font-size: 1.35rem; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.lp-time.low { color: var(--danger); }
/* "Full names, please", briefly, over the list's bottom edge. */
.lp-say { position: absolute; left: 12px; bottom: calc(100% + 6px); font-size: 0.85rem; color: var(--muted);
  background: var(--surface); border: 1.5px solid var(--rule); border-radius: 999px; padding: 4px 12px; pointer-events: none; }
.lp-say:empty { display: none; }
.lp-input { width: 100%; font: 600 1.1rem var(--font-ui); color: var(--text); background: #fff;
  border: 2px solid var(--tier); border-radius: 12px; padding: 11px 14px; outline: none; -webkit-appearance: none; }
.lp-input::placeholder { color: var(--faint); font-weight: 500; }
.lp-input.lp-flash { border-color: var(--accent); box-shadow: 0 0 0 4px var(--t-tint); }
/* No keyboard (the round began without a tap, or the accessory bar's ✓ dropped it): the field
   becomes one big tap target, since iOS raises the keyboard only inside a tap. The typed text
   stays and the clock keeps running. */
.lp-wake.t-btn { display: none; margin-top: 8px; }   /* trivia's primary button (roundui.css) */
.lp-asleep .lp-wake.t-btn { display: flex; }
.lp-asleep .lp-input { border-style: dashed; }

/* "Still there?" over the list. */
.lp-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; background: color-mix(in srgb, var(--bg) 88%, transparent); text-align: center; padding: 16px; z-index: 4; }
.lp-cover-t { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.lp-cover-s { font-size: 0.92rem; color: var(--muted); }

/* The sheets are leaderboard.css's .lb-psheet, docked in the frame (absolute, not the page's
   fixed) so they sit on the keyboard rather than behind it. */
.lb-psheet.lp-psheet { position: absolute; z-index: 30; padding-bottom: 12px; }
.lp-ps-title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; padding-right: 40px; margin: 2px 0 8px; }
.lp-ps-text { font-size: 0.95rem; color: var(--muted); line-height: 1.45; margin: 0 0 8px; }
.lp-ps-rule { font-size: 0.95rem; font-weight: 600; color: var(--accentDeep); margin: 0 0 4px; }
.lb-psheet-btn.lp-ps-danger { background: var(--danger); border-color: var(--danger); color: #fff; }

/* Primary and quiet buttons: the app's tactile press. */
.lp-cta { display: inline-block; text-decoration: none; text-align: center; background: var(--accent); color: #fff; font-weight: 700; font-size: 1.02rem; border-radius: 999px;
  padding: 13px 28px; box-shadow: 0 4px 0 var(--t-shadow); transition: transform 0.08s, box-shadow 0.08s; }
.lp-cta:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--t-shadow); }
.lp-quiet { display: inline-block; text-decoration: none; color: var(--accentDeep); font-weight: 600; font-size: 0.95rem; padding: 10px; }

/* The round end: roundend.css's card and bar; the bar is pinned as trivia pins its footer. */
.lp-endbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; }
.lp-end-actions { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 18px 0; }

/* The board (until the real board, list_round_board through LB, comes with the boards). */
.lp-sheet { max-width: 520px; margin: 0 auto; }
.lp-standing { margin: 14px auto 0; text-align: left; }
.lp-row { display: flex; align-items: center; gap: 10px; padding: 11px 4px; font-size: 0.95rem;
  width: 100%; border-bottom: 1px solid var(--rule); text-align: left; color: var(--text); }
.lp-row:last-child { border-bottom: none; }
.lp-row-n { width: 1.4em; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.lp-row-av { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 700; color: #fff; background: var(--pcolor, var(--faint)); flex-shrink: 0; }
.lp-row.me .lp-row-av { background: var(--gold); color: #3a2e12; }
.lp-row.me { font-weight: 700; }
.lp-row-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-row-v { color: var(--muted); font-variant-numeric: tabular-nums; }
.lp-row-v b { color: var(--text); }
.lp-row-go { color: var(--faint); font-size: 1.2rem; font-weight: 600; margin-left: 2px; }

/* A message in place of the game (no lists yet, the day played). */
.lp-msg { max-width: 420px; margin: 0 auto; padding: calc(80px + var(--sat)) 24px; text-align: center; }
.lp-msg p { font-size: 1.05rem; color: var(--muted); margin: 0 0 22px; }

/* THE PILL NAMES THE LIST (George, 2026-11-21), so it is as wide as its name, up to the screen:
   trivia's pill is a fixed 128px for a level's one word. */
.countdown-tier.lp-pill { width: auto; min-width: 128px; max-width: calc(100vw - 32px); padding: 0 18px;
  box-sizing: border-box; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0.06em; }

/* THE PRE-ROUND (George, 2026-11-21): until GO the slots and the bar's clock, field and wake button are
   not on screen, so nothing flashes before the face-off and the face-off has no field under it. The
   race pills stay: the face-off lands everyone's on them. */
.lp-pre .lp-top, .lp-pre .lp-list { visibility: hidden; }
.lp-pre .lp-controls, .lp-pre .lp-say { display: none; }
/* GO: the bar rises in from below (listblitz.js reveal: --lp-rise is the controls' height). */
.lp-entry.lp-rise { animation: lp-rise 320ms cubic-bezier(.2, .8, .2, 1) both; }
@keyframes lp-rise { from { transform: translateY(var(--lp-rise, 0px)); } to { transform: none; } }

/* list.html's stalled boot (4s): the word and a way home, centred on the cream. Gone once a screen shows. */
.lp-loading { position: fixed; inset: 0; display: flex; }
.lp-loading[hidden], body:has(#screen-game:not([hidden])) .lp-loading, body:has(#screen-results:not([hidden])) .lp-loading { display: none; }

/* The face-off's Back pill (trivia's .countdown-back, roundui.css), over the face-off until GO. */
.lp-fo-back.countdown-back { z-index: 7; }
.lp-pre .lp-fo-back { visibility: visible; }
/* The answer sheet's header is Home's sub-header (ROUNDUI.subHeaderHtml); it bleeds 14px into a padding of 16. */
.lp-sheet .th-subhead { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }

/* THE ANSWERS AT THE END (George, 2026-11-22; listblitz.js endView): the keyboard drops, two columns become ONE
   (George: "so people who answer can appear on the same line as the answer ... Two columns looks very busy"), each
   row the clue, the name, and on the right the faces of who found it (the race pills' own disc, playerbar.css
   .t-pb-av, smaller). Names not found land quiet and dashed. Keyframes and the FLIP's Web Animations only, never
   transitions (CLAUDE.md: an idle WKWebView can freeze one); every end state is the plain rule. */
.lp-revealing .lp-grid { grid-template-columns: 1fr; }
.lp-revealing .lp-slot { flex-wrap: nowrap; }
.lp-slot.lp-missed { border-style: dashed; background: var(--bg); }
.lp-slot.lp-missed .lp-name { color: var(--muted); font-weight: 500; }
.lp-revealing .lp-slot.lp-missed { animation: lp-miss 360ms ease-out var(--lp-d, 0ms) both; }
@keyframes lp-miss { from { opacity: 0; } to { opacity: 1; } }
/* The faces, on the answer's line, right-aligned; side by side, never overlapped (an overlap cut "MR"). */
.lp-avs { flex: none; margin-left: auto; display: flex; align-items: center; gap: 2px; min-height: 24px; }
.lp-avs:empty { display: none; }
.t-pb-av.lp-av { width: 24px; height: 24px;
  animation: lp-pop 340ms cubic-bezier(.2, 1.5, .4, 1) var(--d, 0ms) both; }
.t-pb-av.lp-av-me { background: var(--gold); color: #3a2e12; }
@keyframes lp-pop { from { transform: scale(0); opacity: 0; } to { transform: none; opacity: 1; } }
/* A live room: a find while you watch pulses its cell. */
.lp-revealing .lp-slot.lp-pulse { animation: lp-pulse 700ms ease-out; }
@keyframes lp-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
@media (prefers-reduced-motion: reduce) {
  .lp-revealing .lp-slot.lp-missed, .lp-revealing .lp-slot.lp-pulse, .t-pb-av.lp-av { animation: none; }
}
.lp-revealing .lp-skip, .lp-revealing .lp-tback { visibility: hidden; }   /* the list is over: no way back into it */
.lp-reveal { display: flex; align-items: center; gap: 10px; min-height: 46px; }
.lp-reveal-t { flex: 1; min-width: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.35; }
.lp-reveal-t b { color: var(--text); }
/* The countdown says what happens next: "Results in 7", or "Others still playing · 2:41" in a room. */
.lp-reveal-s { display: block; font-weight: 600; color: var(--accentDeep); font-variant-numeric: tabular-nums; }
.lp-reveal-s:empty { display: none; }
.lp-reveal-go.t-btn { width: auto; flex: none; padding: 11px 18px; }

/* THE LADDER BETWEEN ROUNDS (listblitz.js ladderInto): launch.css's built-rail layer on the page's own cream, so the
   round end goes and the five rungs stand alone; LAUNCH's dissolving state takes the cream away (its !important). */
.zl-layer.lp-ladder { background: var(--bg); padding-top: var(--pill-top, 26.07vh); }
/* (The rung is the pill's height, so its TOP on the pill's top line is the face-off pill's own box: launch.css's
   layer centres the rung on that line, half a pill high, for a page that is leaving.) The morph's border-style:solid
   names no width, so a built rung gained the default 3px "medium" border and formed 48.5px tall, 3px low of the
   face-off pill (measured in e2e list-blitz "the ladder between rounds"): no border on this one. */
.zl-layer.lp-ladder .zl-first { border-width: 0 !important; }
