/* CORRIDOR v2 — THE CARTESIAN RE-CHOREOGRAPHY. Minimal. Two states. No
   scaffolding chrome, no placebo layer (cut this pass). */
:root {
  --bg: #000;
  --fg: #e8e2d4;
  --amber: #ffb000;
  --dim: rgba(232, 226, 212, 0.45);
  --line: rgba(255, 176, 0, 0.28);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); }
body {
  color: var(--fg);
  font: 15px/1.75 ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  -webkit-font-smoothing: antialiased;
}
#app { min-height: 100dvh; display: grid; }
.state {
  grid-area: 1 / 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: clamp(20px, 6vw, 64px);
  max-width: 68ch;
  margin: 0 auto;
  width: 100%;
}
[hidden] { display: none !important; }

/* ── STATE A: extractor ─────────────────────────────────────────── */
.say {
  white-space: pre-wrap;
  font-size: clamp(15px, 2.1vw, 17px);
  letter-spacing: 0.01em;
}
.say p { margin: 0 0 1.1em; }
.say .glow { color: var(--amber); }
.say strong, .say b { color: var(--amber); font-weight: 600; }
.say.dim { color: var(--dim); }

/* ── ARRIVAL SCOPE — opening screen only, 2026-09-22 fold fix ───────────────
   The four-paragraph consent+question text (promptV2.js CONSENT_LINE +
   OPENING_QUESTION) is long enough to push BEGIN below the fold on short
   mobile viewports. `.arrival` is added to #extractor only while that text
   is showing (public/v2.js boot()/submit()) — every later roast/cycle bubble
   reuses the same #say/#composer elements without this class, so their
   spacing is untouched. Values sit at the stated legibility floor
   (line-height 1.3; font-size is untouched — already at its own 15px floor
   on these viewports via the existing clamp()) — see the fold-fix report for
   why this does not fully clear iPhone SE / small Android and what that
   implies. */
.state.arrival { padding-top: 12px; padding-bottom: 12px; }
.state.arrival .say { line-height: 1.3; }
.state.arrival .say p { margin: 0 0 0.4em; }
.state.arrival .composer { margin-top: 14px; gap: 8px; }
.state.arrival textarea { min-height: 56px; }
.state.arrival .btn { padding: 9px 20px; }

/* ── ARRIVAL SCROLL CUE — fold close-out, 2026-09-22 ────────────────────────
   CSS alone couldn't fully clear BEGIN on iPhone SE / small Android without
   breaching the floors above. Operator's ruling: accept the residual scroll,
   signal it. Created/destroyed by public/v2.js (initArrivalScrollCue /
   teardownArrivalScrollCue) — shown only while #send hasn't scrolled into
   view yet, via IntersectionObserver, so it never appears at all on a
   viewport where BEGIN already fits. Fixed to the viewport, not the content
   column, since the arrival content is taller than the screen when it shows. */
.arrival-scroll-cue {
  position: fixed;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  color: var(--amber);
  font-size: 20px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  animation: arrival-scroll-cue-bob 1.8s ease-in-out infinite;
}
.arrival-scroll-cue.visible { opacity: 0.55; }
@keyframes arrival-scroll-cue-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}
@media (prefers-reduced-motion: reduce) {
  .arrival-scroll-cue { animation: none; }
}

.composer { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg);
  font: inherit;
  padding: 12px 14px;
  resize: vertical;
  min-height: 96px;
  outline: none;
}
textarea:focus { border-color: var(--amber); }

.btn {
  align-self: flex-start;
  background: var(--amber);
  color: #000;
  border: 1px solid var(--amber);
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 10px 20px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.btn:hover { filter: brightness(1.12); }
.btn:disabled { opacity: 0.4; cursor: default; }
.btn.ghost { background: transparent; color: var(--amber); }
/* THE HINGE (2026-10-17): THAT'S ALL — the quiet way to decline "Anything else?", under TRANSMIT. */
.btn.thats-all { background: transparent; color: var(--amber); }
/* THE ACT 2 GLOW (2026-10-20): a faint amber light far off, at the corridor's end, behind the page
   (screen-blended just above the page: html and body both paint solid black, so a layer behind them
   is invisible; at these opacities screen can only add the faintest warm light). Barely there at strike 1, a little
   more at 2, a little more at 3 — slow enough that nobody sees it change. Amber, the house palette. */
.act2-glow { position: fixed; inset: 0; z-index: 0; mix-blend-mode: screen; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse 7% 20% at 50% 14%, rgba(255, 176, 0, 0.55), rgba(255, 176, 0, 0.12) 45%, rgba(255, 176, 0, 0) 75%);
  transition: opacity 7s ease-in-out; }
.act2-glow[data-level="1"] { opacity: 0.05; }
.act2-glow[data-level="2"] { opacity: 0.09; }
.act2-glow[data-level="3"] { opacity: 0.14; }
.act2-glow[data-level="0"] { transition: opacity 1.2s ease-out; }
/* Reduced motion: one static faint glow through Act 2 — no growth, no fade. */
@media (prefers-reduced-motion: reduce) {
  .act2-glow, .act2-glow[data-level="0"] { transition: none; }
  .act2-glow[data-level="1"], .act2-glow[data-level="2"], .act2-glow[data-level="3"] { opacity: 0.07; }
}
.btn.ghost:hover { background: rgba(255, 176, 0, 0.08); }

/* THE PROCESSION (2026-10-17): one column under the verdict — the kept line,
   the Chief's procession lines, the YES step's share block, then the ONE
   control (sound switch beside it), with the walk's box below. */
.end-actions { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.share-note { flex-basis: 100%; margin: 6px 0 0; color: var(--dim); font-size: 12.5px; }
.share-note a { color: var(--amber); }

/* END-STATE "B" (2026-09-29): the kept line, the visitor's own link, Copy
   link + confirmation. The old share-chooser styles are retired with it. */
.kept-line { flex-basis: 100%; margin: 0; color: var(--amber); }
/* The no-clipboard fallback shows the text itself, selectable. */
.copied-note.manual { flex-basis: 100%; word-break: break-word; user-select: all; }
.copied-note { color: var(--amber); font-size: 12.5px; }
.proc-lines { display: flex; flex-direction: column; gap: 12px; }
.proc-lines:empty { display: none; }
.proc-line { margin: 0; color: var(--fg); }
.proc-echo { margin: 0; align-self: flex-end; color: var(--dim); letter-spacing: 0.12em; font-size: 13px; }
.proc-echo::before { content: "— "; }
.proc-line.reprompt.again { animation: reprompt-flash 0.9s ease-out; }
@keyframes reprompt-flash { from { color: var(--amber); } to { color: var(--fg); } }
@media (prefers-reduced-motion: reduce) { .proc-line.reprompt.again { animation: none; } }
.proc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.proc-row .sound-master.docked { position: static; opacity: 1; min-height: 44px; }
/* The procession's control: the Chief's chip, grown to a real target. The
   breath and the nag ladder (below) apply to it unchanged. */
.chief-btn.proc-btn { font-size: 14px; padding: 12px 18px; min-height: 44px; }
.proc-book { align-self: flex-start; }
/* The walk's box in one-word mode: one line, no resize. */
.composer.one-word { margin-top: 0; flex-direction: row; align-items: stretch; gap: 10px; }
.composer.one-word textarea { min-height: 0; height: 48px; resize: none; overflow: hidden; white-space: nowrap; padding: 11px 14px; flex: 1; min-width: 0; }
.composer.one-word .btn { align-self: stretch; }
/* YES: the message, then the marks. Monochrome cream: the platforms' rules
   allow their marks in monochrome, never recoloured; the palette allows no green. */
.share-block { display: flex; flex-direction: column; gap: 12px; }
.share-msg { margin: 0; padding: 10px 14px; border-left: 2px solid var(--line); color: var(--fg); display: flex; flex-direction: column; gap: 4px; }
.share-msg-url { color: var(--dim); font-size: 13px; word-break: break-all; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  background: transparent; color: var(--fg); border: 1px solid rgba(232, 226, 212, 0.35);
  font: inherit; font-size: 13px; letter-spacing: 0.08em; text-decoration: none; cursor: pointer;
}
.share-btn:hover, .share-btn:focus-visible { border-color: var(--fg); background: rgba(232, 226, 212, 0.06); outline: none; }
.share-mark { width: 20px; height: 20px; flex: none; }

.retry { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.retry-line { margin: 0; color: var(--amber); }

/* ── STATE B: cutaway (placeholder) ─────────────────────────────── */
#cutaway {
  background: #000;
  align-items: center;
  justify-content: center;
}
/* THE BLUE SQUARE (2026-10-20, Rhys's laptop walk): a double-click on TRANSMIT
   hid the walk on the first click and word-selected the cutaway's "·" on the
   second, so the selection highlight flashed over the dot. Nothing in a
   transition is selectable. */
.verdict-wait, #cutaway { -webkit-user-select: none; user-select: none; }
.cut-mark {
  color: rgba(255, 176, 0, 0.5);
  font-size: 22px;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.6; } }
@media (prefers-reduced-motion: reduce) { .cut-mark { animation: none; opacity: 0.4; } }

/* The book link in the Chief's redirect line. */
.say a.book-link { color: var(--amber); }

/* ── THE FILM LAYER (2026-10-01) ─────────────────────────────────────
   A portrait clip, framed as a document on the dark desk: full-bleed on a
   phone, a bordered 9:16 panel centred on a wide screen (never stretched). */
.film { align-items: center; justify-content: center; gap: 18px; }
.film-frame {
  container-type: inline-size;
  position: relative;
  width: min(100%, calc(86dvh * 9 / 16));
  aspect-ratio: 9 / 16;
  background: #000;
  border: 1px solid var(--line);
}
.film-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.film-hud {
  position: absolute; top: 10px; right: 12px;
  display: flex; gap: 12px; align-items: center;
  font-size: 11.5px; letter-spacing: 0.14em; color: var(--amber);
  text-shadow: 0 1px 3px #000;
}
.film-review { opacity: 0.85; animation: pulse 2.4s ease-in-out infinite; }
.film-count { min-width: 2ch; text-align: right; font-weight: 600; }
.film-skip, .film-play {
  position: absolute;
  background: rgba(0, 0, 0, 0.62);
  color: var(--amber);
  border: 1px solid var(--line);
  font: inherit; font-size: 12.5px; letter-spacing: 0.08em;
  padding: 8px 12px; cursor: pointer;
}
.film-skip { right: 12px; bottom: 12px; opacity: 0.7; }
.film-play { left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 26px; padding: 14px 22px; }
@media (prefers-reduced-motion: reduce) { .film-review { animation: none; } }

/* ── SOUND: ONE MASTER (2026-10-01) ──────────────────────────────────
   Beside BEGIN on the arrival screen; after BEGIN the same button docks to
   the top-left corner (the film's HUD owns top-right) for the whole session. */
.sound-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; color: var(--dim); font-size: 13px; }
.sound-master {
  background: rgba(0, 0, 0, 0.62); color: var(--amber);
  border: 1px solid var(--line);
  font: inherit; font-size: 12px; letter-spacing: 0.08em;
  padding: 6px 10px; cursor: pointer; white-space: nowrap;
}
.sound-master[aria-pressed="false"] { color: var(--dim); }
.sound-master.docked { position: fixed; top: 10px; left: 12px; z-index: 50; opacity: 0.8; }
/* Keep the first line of every reply clear of the docked control (2026-10-06:
   it sat over "I am the Chief"). */
body.sound-docked #extractor { padding-top: max(60px, clamp(20px, 6vw, 64px)); }
.state.arrival + .sound-row, .state.arrival .sound-row { margin-top: 8px; }
/* ARRIVAL START (2026-10-07): step one on the screen, between the demand and
   the input. Before the first tap the button is an INVITATION — amber,
   outlined, the most obvious thing after the text; after it, a compact state
   with a live pulse so "is the sound on?" never needs asking. */
.sound-row { justify-content: flex-start; flex-wrap: wrap; row-gap: 6px; }
.sound-master.invite {
  color: var(--amber); border: 1px solid var(--amber);
  font-size: 13px; padding: 10px 16px; letter-spacing: 0.1em;
}
.sound-master.invite:hover, .sound-master.invite:focus-visible { background: rgba(255, 176, 0, 0.12); }
.sound-master.live::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px;
  border-radius: 50%; background: var(--amber); vertical-align: middle;
  animation: sound-live 1.6s ease-in-out infinite;
}
.sound-master.live[aria-pressed="false"]::after { display: none; }
@keyframes sound-live { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sound-master.live::after { animation: none; } }
.sound-line { flex-basis: 100%; }   /* always its own row: no layout jump on the tap */
/* One height in both states (no jump), and a full 44 px tap target. */
.sound-row .sound-master { min-height: 44px; }
.sound-line.next { color: var(--fg, #e8e2d0); }
/* THE PRIVACY NOTICE (2026-10-21): a real notice, plain and quiet — the Chief's palette, never his voice. */
.privacy-note { margin: 18px 0 0; color: var(--dim); font-size: 12px; line-height: 1.55; max-width: 34em; }
/* BEGIN waits its turn (operator, 2026-10-07): outlined until the sound is
   decided (or the visitor starts on the sentence), so the sound invitation is
   the one loud first action. Still plainly live — full-opacity amber text and
   border, a pointer, a hover — never the greyed disabled look. */
.btn.waiting { background: transparent; color: var(--amber); }
.btn.waiting:hover, .btn.waiting:focus-visible { background: rgba(255, 176, 0, 0.12); filter: none; }
#send { transition: background-color 0.25s ease, color 0.25s ease; }
@media (prefers-reduced-motion: reduce) { #send { transition: none; } }

/* ── THE FINAL FILM: credit roll + ending (2026-10-01) ───────────────
   The roll is the Ministry's voice (the site monospace) with one line in the
   book's voice (IBM Plex Serif, self-hosted, SIL OFL). Sized to the frame's
   width (container units) so the longest credit fits on a phone. A soft dark
   band keeps it legible over any footage. Its position is set from the
   video's clock in v2.js. */
@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-serif-latin-400-italic.woff2") format("woff2"); }
.credits {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.5) 22%, rgba(0,0,0,0.5) 78%, rgba(0,0,0,0.15));
}
.credits-roll {
  position: absolute; left: 0; right: 0; top: 0;
  padding: 0 5cqw; text-align: center;
  color: var(--fg); font-size: clamp(13px, 4.2cqw, 20px); line-height: 1.85; letter-spacing: 0.05em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
  will-change: transform;
}
.cr-gap { height: 1.6em; }
.cr-break { height: 5.5em; }
.cr-line { font-weight: 600; text-wrap: balance; }
/* Stacked, as in film credits: the role small and dim, the name below it. A
   two-column layout wrapped mid-phrase on a phone. */
.cr-credit { display: flex; flex-direction: column; align-items: center; margin: 0.55em 0; }
.cr-label { color: var(--dim); font-size: 0.78em; letter-spacing: 0.1em; line-height: 1.5; }
.cr-value { color: var(--amber); line-height: 1.5; }
.cr-serif {
  font-family: "IBM Plex Serif", Georgia, serif; font-weight: 400; letter-spacing: 0.01em;
  font-size: 1.12em; color: var(--fg);
}
/* The ending: the book link is the hero, centred where the footage's doorway
   light lands (about 48% down), a large tap target; BACK TO YOUR FILE quiet below. */
.film-end {
  position: absolute; left: 0; right: 0; top: 48%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4cqw;
  padding: 0 7cqw;
}
.film-end.arrive { animation: end-arrive 900ms ease-out both; }
@keyframes end-arrive { from { opacity: 0; transform: translateY(calc(-50% + 10px)); } to { opacity: 1; transform: translateY(-50%); } }
.book-hero {
  display: block; width: 100%; box-sizing: border-box; text-align: center; text-decoration: none;
  padding: 6cqw 4cqw; min-height: 56px;
  background: rgba(0, 0, 0, 0.62); color: var(--amber);
  border: 1px solid var(--amber);
  font-size: clamp(14px, 4.6cqw, 24px); font-weight: 700; letter-spacing: 0.05em; line-height: 1.3; white-space: nowrap;
  text-shadow: 0 1px 3px #000; box-shadow: 0 0 28px rgba(255, 176, 0, 0.18);
}
.book-hero:hover, .book-hero:focus-visible { background: rgba(255, 176, 0, 0.12); outline: none; }
/* The ×: chrome, not a choice (same family as SKIP), top right, back to the verdict. */
.film-close {
  position: absolute; top: 10px; right: 12px; z-index: 3;
  background: rgba(0, 0, 0, 0.62); color: var(--amber); border: 1px solid var(--line);
  font: inherit; font-size: 20px; line-height: 1; width: 44px; height: 44px; cursor: pointer; opacity: 0.75;
}
.film-close:hover, .film-close:focus-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .film-end.arrive { animation: none; } }

/* ── THE CORNER HUD + "▶ HEAR THE CHIEF" (2026-10-14) ─────────────────
   After BEGIN the master docks into a fixed top-left row; the Chief's
   button sits beside it (the film's HUD owns top-right). It is a quiet
   control, not a call to action: same chip as the master, dimmer. */
.hud-left { position: fixed; top: 10px; left: 12px; z-index: 50; display: flex; gap: 8px; align-items: center; opacity: 0.8; }
.hud-left .sound-master.docked { position: static; opacity: 1; }
.chief-btn {
  background: rgba(0, 0, 0, 0.62); color: var(--dim);
  border: 1px solid var(--line);
  font: inherit; font-size: 12px; letter-spacing: 0.08em;
  padding: 6px 10px; cursor: pointer; white-space: nowrap;
}
.chief-btn:hover, .chief-btn:focus-visible { color: var(--amber); animation: none; }
/* The breathing glow (2026-10-15): a slow, quiet beckon from dim to amber
   and back, so the useless button looks faintly alive — the Chief knew you'd
   press it. 5 s a breath, far slower than the SOUND dot's 1.6 s, so it never
   reads as a notification. It runs only while the button is shown: hidden
   (during a clip, after a refusal, on CALIBRATION, before sound) is
   display:none, which stops the animation with it. */
@keyframes chief-breathe {
  0%, 100% { color: var(--dim); border-color: var(--line); text-shadow: none; box-shadow: none; }
  50% { color: rgba(255, 176, 0, 0.85); border-color: rgba(255, 176, 0, 0.5);
        text-shadow: 0 0 6px rgba(255, 176, 0, 0.35); box-shadow: 0 0 10px rgba(255, 176, 0, 0.12); }
}
@media (prefers-reduced-motion: no-preference) { .chief-btn { animation: chief-breathe 5s ease-in-out infinite; } }
@media (prefers-reduced-motion: reduce) { .chief-btn { color: rgba(232, 226, 212, 0.7); } }   /* still: just less faint */

/* THE NAG LADDER (2026-10-16, Rhys: approved as proposed, AMBER — the palette
   rule stands, no red). v2.js sets ONE class, nag-1…nag-5, per screen the
   button is shown and ignored, and drops it in the click handler before the
   line plays (calm = the breath above). Guardrails, by construction:
   - at most 1 flash a second (nag-3 and nag-5: 1 s cycle, 0.5 on / 0.5 off),
     a third of the WCAG 2.3.1 limit; nag-1/2/4 are fades, not flashes;
   - only this ~150 x 28 px chip ever changes; nothing here touches the page;
   - prefers-reduced-motion: no animation at any stage, static looks only. */
@keyframes chief-pulse {          /* nag-1: brisk pulse, 1.2 s */
  0%, 100% { color: var(--dim); border-color: var(--line); text-shadow: none; box-shadow: none; }
  50% { color: var(--amber); border-color: var(--amber); text-shadow: 0 0 6px rgba(255, 176, 0, 0.5); box-shadow: 0 0 12px rgba(255, 176, 0, 0.22); }
}
@keyframes chief-flash {          /* nag-2: quick flash, 0.6 s, sharper rise */
  0%, 100% { color: var(--dim); border-color: var(--line); text-shadow: none; box-shadow: none; }
  30% { color: var(--amber); border-color: var(--amber); text-shadow: 0 0 8px rgba(255, 176, 0, 0.6); box-shadow: 0 0 16px rgba(255, 176, 0, 0.35); }
}
@keyframes chief-blink {          /* nag-3: hard blink, text + border */
  0% { color: var(--amber); border-color: var(--amber); }
  50% { color: var(--dim); border-color: var(--line); }
}
@keyframes chief-lit {            /* nag-4: a glow round the lit chip */
  0%, 100% { box-shadow: 0 0 4px rgba(255, 176, 0, 0.55); }
  50% { box-shadow: 0 0 18px rgba(255, 176, 0, 0.55); }
}
@keyframes chief-alarm {          /* nag-5: the fill blinks amber / black — the cap */
  0% { background: var(--amber); color: #000; border-color: var(--amber); }
  50% { background: #000; color: var(--amber); border-color: var(--amber); }
}
.chief-btn.nag-1, .chief-btn.nag-2 { color: var(--amber); }
.chief-btn.nag-3 { color: var(--amber); border-color: var(--amber); }
.chief-btn.nag-4, .chief-btn.nag-5,
.chief-btn.nag-4:hover, .chief-btn.nag-5:hover, .chief-btn.nag-4:focus-visible, .chief-btn.nag-5:focus-visible {
  background: var(--amber); color: #000; border-color: var(--amber);
}
@media (prefers-reduced-motion: no-preference) {
  .chief-btn.nag-1 { animation: chief-pulse 1.2s ease-in-out infinite; }
  .chief-btn.nag-2 { animation: chief-flash 0.6s ease-out infinite; }
  .chief-btn.nag-3 { animation: chief-blink 1s step-end infinite; }
  .chief-btn.nag-4 { animation: chief-lit 1.2s ease-in-out infinite; }
  .chief-btn.nag-5 { animation: chief-alarm 1s step-end infinite; }
}
@media (prefers-reduced-motion: reduce) { .chief-btn[class*="nag-"] { animation: none; box-shadow: none; } }

/* ── THE PROCESSION BAR (2026-10-17; was the sticky share bar) ──────────
   Compact, bottom of the viewport, clear of the phone's home indicator. It
   carries the ONE current control, mirrored (v2.js). */
.share-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(0, 0, 0, 0.88); border-top: 1px solid var(--line);
}
.share-bar .chief-btn.proc-btn { align-self: center; }
@media (prefers-reduced-motion: no-preference) { .share-bar:not([hidden]) { animation: share-bar-in 0.35s ease-out; } }
@keyframes share-bar-in { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* ── THE VERDICT COUNT-UP (2026-10-15) ───────────────────────────────
   Inverted on purpose: black on white, over everything (the HUD too), the
   site's mono. Big, bold, racing. Tabular figures so the number never
   jitters sideways as it counts. docs/VERDICT_COUNTUP_2026-10-15.md */
.verdict-wait {
  position: fixed; inset: 0; z-index: 70;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: #fff; color: #000; padding: 16px;
}
.verdict-wait[hidden] { display: none; }
html.verdict-waiting, html.verdict-waiting body { background: #fff; }   /* no dark overscroll band on a phone */
.verdict-count {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  font-weight: 800; font-size: clamp(72px, 26vw, 220px); line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.verdict-wait-label {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  font-weight: 700; font-size: clamp(13px, 3.6vw, 18px); letter-spacing: 0.22em; text-align: center;
}

/* COLDOPEN_01 (PROTOTYPE, HELD): the rings over the arrival on a shared link.
   No permanent transition: it would promote the overlay to a composited layer,
   which a phone may show from a lower-resolution tile while the rings repaint
   every frame. The fade is attached only at the hand-off. */
.cold-open { position: fixed; inset: 0; z-index: 50; background: #000; }
.cold-open.out { opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
html.cold-pending body > *:not(.cold-open) { visibility: hidden; }
.cold-chip { position: absolute; right: 16px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 5;
  background: rgba(0,0,0,0.6); color: #fff; border: 1px solid #fff; font-size: 22px; padding: 10px 14px; cursor: pointer; }
