/* PATH 714 — TV host view */
#stage { position: fixed; inset: 0; background: var(--navy); display: flex; flex-direction: column; }
/* All scenes and cinematics play inside the holder, which now takes
   the FULL screen height (the bottom traveler strip was removed
   2026-11-19 — the board is the whole screen; traveler cards live on
   the phones). */
#scene-holder { position: relative; flex: 1; min-height: 0; }
/* Corner controls: back and sound cluster in the TOP-LEFT corner at
   75% size (35px), inside the ~4% overscan safe inset so a real TV
   never crops them. (Michael, 2026-11-18: the "?" help button is
   gone from the TV entirely — the TV is a display nobody walks up to
   tap; help lives on the phones. The cluster is two buttons now,
   gap closed, same corner anchor.) The lobby shares this anchor —
   see the body.in-lobby note below for how the pair keeps clear of
   the Travelers card that now shares its corner. */
.back-home { top: max(16px, 4vh); left: max(16px, 4vw); width: 35px; height: 35px; }
.back-home svg { width: 17px; height: 17px; }
.sound-toggle {
  position: fixed; top: max(16px, 4vh); left: max(16px, 4vw); margin-left: 43px; z-index: 60;
  width: 35px; height: 35px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-bright);
  background: linear-gradient(165deg, rgba(16,28,66,.88), rgba(8,16,38,.9));
  border: 1px solid rgba(212,175,55,.6);
  box-shadow: 0 10px 26px rgba(0,0,0,.55);
  transition: all .2s ease;
}
.sound-toggle svg { width: 17px; height: 17px; }
.sound-toggle:hover { border-color: var(--gold-bright); transform: translateY(-1px); }
.sound-toggle.off { color: rgba(207,196,165,.55); border-color: rgba(212,175,55,.3); }
.sound-toggle.gone { opacity: 0; pointer-events: none; }
/* Lobby corner (Michael, 2026-11-20, reversing the same morning's
   mirror): the lobby cluster sits TOP-LEFT like every other screen —
   at top-right the buttons landed on the painting's cross, and the
   lobby's right side now stays completely bare. The Travelers card
   shares the left corner since the column swap, so the pair must
   never touch it: at every TV size down to 854x480 the standard
   35px pair at the corner inset clears the card's left edge with
   daylight to spare (measured: 28px or more). Only 640x360 is
   tight — the card's top-left corner reaches to (35,18), leaving a
   35px margin strip no horizontal pair can fit — so there, and
   only there, the lobby pair steps down to 24px and stands
   vertically in that strip (Michael: "a little tiny smaller" is
   fine), 6px clear of the card. Keyed off body.in-lobby, toggled
   by setScene in tv.js; in-game screens keep the base rules at
   every size, exactly as before. */
@media (max-width: 720px) {
  body.in-lobby .back-home { top: 8px; left: 5px; width: 24px; height: 24px; }
  body.in-lobby .back-home svg { width: 12px; height: 12px; }
  body.in-lobby .sound-toggle { top: 38px; left: 5px; margin-left: 0; width: 24px; height: 24px; }
  body.in-lobby .sound-toggle svg { width: 12px; height: 12px; }
}
.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hidden { display: none !important; }

/* ---------- Backdrop shade (shared by the lobby + ceremony scenes) ---------- */
.title-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 42%, rgba(7,15,42,.18) 0%, rgba(7,15,42,.55) 78%, rgba(5,10,30,.85) 100%); }
/* (The title scene's own rules — .title-inner, #title-logo, .tagline,
   #btn-host, .title-note — left with the scene itself, 2026-11-19:
   the TV now opens directly on the lobby.) */

/* ---------- Lobby: the three-step wizard (Michael, 2026-11-26) ----------
   Three full screens, one step at a time: 1 JOIN · 2 TRAVELERS ·
   3 PLAY STYLE. Only the room's current step (state.lobbyStep,
   server-held, Guide-moved) is shown; each step is a centered
   column over the same painting. (The 2026-11-20 two-column mirror
   lobby retired with this build.) */
.lobby-inner { position: absolute; inset: 0; overflow: hidden; }
.lobby-step { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; padding: 4vh 4vw; gap: 13px; }
.lobby-step.active { display: flex; }
/* ONE heading treatment for every step (Michael, 2026-11-26:
   "Travelers and Play Style same color and font. Centered."): the
   old Travelers card heading — Cinzel, wide letterspacing, the
   bright gold — scaled up to carry a full screen, centered always. */
.lobby-step-title { font-family: Cinzel, serif; font-weight: 700; letter-spacing: .3em; font-size: 31px; color: var(--gold-bright); text-align: center; margin: 0; padding-left: .3em; text-shadow: 0 2px 14px rgba(0,0,0,.9), 0 0 26px rgba(0,0,0,.65), 0 0 5px rgba(0,0,0,.8); }
.lobby-step-kicker { font-family: var(--font-ui); font-size: 14.5px; font-weight: 800; letter-spacing: .18em; padding-left: .18em; color: var(--gold-bright); text-align: center; margin: 0; text-shadow: 0 2px 10px rgba(0,0,0,.9), 0 0 20px rgba(0,0,0,.65), 0 0 5px rgba(0,0,0,.8); }
.lobby-logo { width: 280px; filter: drop-shadow(0 10px 30px rgba(0,0,0,.6)); }
#room-code { font-family: Cinzel, serif; font-weight: 900; font-size: 118px; letter-spacing: .1em; line-height: 1.02; white-space: nowrap; }
/* Step 1's live arrivals line and Step 3's traveler count share one
   quiet italic voice. */
.lobby-arrivals { font-style: italic; color: var(--ivory); font-size: 21px; text-align: center; margin: 0; }
.lobby-step-btn { padding: 12px 34px; font-size: 17px; }
.lobby-step-nav { display: flex; gap: 14px; justify-content: center; }
.lobby-step-hint { font-style: italic; color: var(--ivory-dim); font-size: 15.5px; text-align: center; margin: 0; }
/* A named study's welcome on Step 1 (Study Library, 2026-11-28):
   the group name is the strongest type on the step after the room
   code itself; the book, the Guide and the welcome step down under
   it. In study mode the step tightens — emblem and QR step back a
   size — so the whole step still stands on one screen at the
   house's short heights. */
#lobby-study { padding: 12px 22px; text-align: center; max-width: min(680px, 86vw); }
#lobby-study p { margin: 2px 0; }
#lobby-study-name { font-family: Cinzel, serif; font-weight: 700; font-size: 30px; line-height: 1.2; color: var(--gold-bright); overflow-wrap: break-word; }
#lobby-study-line { font-size: 18px; color: var(--ivory); }
#lobby-study-guide { font-family: var(--font-ui); font-weight: 800; font-size: 15px; letter-spacing: .1em; color: var(--gold-bright); }
#lobby-study-welcome { font-style: italic; font-size: 16.5px; color: var(--ivory); }
#lobby-step-1.has-study { gap: 9px; }
#lobby-step-1.has-study .lobby-logo { width: 190px; }
#lobby-step-1.has-study .qr-card img { width: 128px; height: 128px; }
@media (max-height: 720px) {
  #lobby-step-1.has-study .lobby-logo { width: 120px; }
  #lobby-step-1.has-study .qr-card img { width: 104px; height: 104px; }
  #lobby-study { padding: 8px 18px; }
  #lobby-study-name { font-size: 25px; }
  #lobby-study-line { font-size: 16px; }
  #lobby-study-welcome { font-size: 15px; }
}
/* The shipped 561-640 rung (Step 1's column outgrew its frame under
   ~591px): a standing study takes the same medicine one step further —
   the emblem yields entirely, as it does at the floor. */
@media (min-height: 561px) and (max-height: 640px) {
  #lobby-step-1.has-study .lobby-logo { display: none; }
  #lobby-step-1.has-study .qr-card img { width: 80px; height: 80px; }
  #lobby-step-1.has-study #room-code { font-size: 50px; }
  #lobby-study-name { font-size: 23px; }
}
@media (max-height: 560px) {
  #lobby-step-1.has-study .lobby-logo { display: none; }
  #lobby-step-1.has-study .qr-card img { width: 68px; height: 68px; }
  #lobby-step-1.has-study { gap: 5px; }
  /* At the ladder's floor the study panel pays its own way: its four
     lines tighten, the room code steps down one size, and the join
     helper line yields — the panel itself (group, book, Guide,
     welcome) does the explaining on a study night, and the QR still
     stands beside the code. Measured against 683x384 and 640x360. */
  #lobby-step-1.has-study #room-code { font-size: 40px; }
  #lobby-step-1.has-study .lobby-join-sub { display: none; }
  #lobby-study { padding: 5px 14px; }
  #lobby-study p { margin: 0; }
  #lobby-study-name { font-size: 19px; line-height: 1.15; }
  #lobby-study-line { font-size: 13.5px; line-height: 1.25; }
  #lobby-study-guide { font-size: 12.5px; line-height: 1.25; }
  #lobby-study-welcome { font-size: 13px; line-height: 1.25; }
}
/* The header plaque + line cards (Michael, 2026-11-26 — the
   card-backing ruling: "something needs to be behind everything
   on these screens, and matching cards in every step,
   homogenous"): every wizard text block that floated on the
   painting now sits on the lobby's own card — the literal .panel
   treatment (the #scene-lobby override's navy gradient .92/.94
   since AAA P4, the shared 1px gold border .45, 16px radius, the panel shadow),
   the same card the roster and settings panels wear, so the art
   still breathes faintly through the navy while every word reads
   from across the room. .lobby-head wraps each step's heading
   lines (Step 1: kicker/title/code/instructions; Step 2:
   kicker/title; Step 3: kicker/title/count); .lobby-line cards a
   lone floating line (Step 1's arrivals + hint). The QR keeps its
   white card, the gold buttons were already solid, and the logo
   stays a floating brand mark as on every other screen. With the
   text carded, the art-halo text-shadows the floating lines
   carried are lifted: carded text elsewhere on this site —
   setting labels, captions, roster names, the strip's line —
   wears no halo, and the wizard now matches it. The arrivals,
   join and hint lines and the room code's drop-shadow exist only
   inside this lobby, so theirs are removed in their rules above;
   the two heading classes are shared with the Solo Display
   scene, whose headings still float on the painting — their
   halo stays in the shared rules and is lifted for the lobby
   only, by the scoped rule below. The plaque's padding steps down with the height
   bands like every other lobby card; the Step 3 picker constants
   were re-measured with the cards in place
   (work/tv-cards-measure.js) and adjusted by the measured delta
   only, so the book window keeps its size. */
.lobby-head { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 28px; max-width: 94vw; }
.lobby-line { padding: 6px 24px; }
#scene-lobby .lobby-step-title, #scene-lobby .lobby-step-kicker { text-shadow: none; }
@media (max-height: 960px) {
  .lobby-head { padding: 7px 26px; }
  .lobby-line { padding: 5px 22px; }
}
@media (max-height: 720px) {
  .lobby-head { padding: 6px 22px; }
  .lobby-line { padding: 4px 20px; }
}
@media (max-height: 560px) {
  .lobby-head { padding: 5px 18px; }
  .lobby-line { padding: 3px 16px; }
}
/* The latecomer strip (Steps 2 + 3): a slim translucent pill — the
   code in gold and a small QR — so a late traveler can always join
   no matter which screen the room is on. */
.lobby-strip { display: flex; align-items: center; gap: 13px; background: linear-gradient(165deg, rgba(14, 26, 66, .92), rgba(7, 15, 42, .94)); border: 1px solid var(--line); border-radius: 999px; padding: 7px 22px 7px 8px; max-width: 94vw; }
.strip-qr-card { background: #fff; border: 1.5px solid var(--gold); border-radius: 7px; padding: 3px; flex: none; line-height: 0; }
.strip-qr-card img { width: 52px; height: 52px; display: block; opacity: 0; transition: opacity .3s ease; }
.strip-qr-card img.qr-on { opacity: 1; }
.strip-text { font-size: 16.5px; color: var(--ivory); margin: 0; white-space: nowrap; }
.strip-code { font-family: Cinzel, serif; font-weight: 900; letter-spacing: .18em; font-size: 19px; white-space: nowrap; }
.lobby-join-sub { font-size: 21px; color: var(--ivory); line-height: 1.45; }
/* The QR box is TIGHT around the code (Michael, 2026-11-19): no
   caption inside it, a slim border, minimal padding — just the code,
   centered on the logo's axis above it. The code itself keeps its
   full size at every breakpoint so a phone camera reads it easily. */
.qr-card { margin-top: 18px; background: #fff; border: 2px solid var(--gold); border-radius: 10px; padding: 6px; box-shadow: 0 14px 40px rgba(0,0,0,.55); }
.qr-card img { width: 176px; height: 176px; display: block; opacity: 0; transition: opacity .3s ease; }
.qr-card img.qr-on { opacity: 1; }
/* Step 2's roster panel: the screen's whole job, so it takes the
   room the step offers — wide, and as tall as the column leaves;
   the list scrolls inside it on a short screen. */
.lobby-players { flex: 1 1 auto; min-height: 0; width: min(1060px, 94vw); padding: 24px 28px; display: flex; flex-direction: column; }
/* The travelers roster runs in TWO columns (Michael, 2026-11-22):
   eight to a side, so a full Gathering house of 16 fits the card
   and every inch of the panel works. The list still scrolls inside
   the panel when a smaller screen can't hold all eight rows. */
#lobby-player-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; align-content: start; scrollbar-width: thin; scrollbar-color: rgba(217,180,90,.5) transparent; }
/* Step 3's settings panel: wider than the old tucked-under card —
   the Journey's book picker gets real room here — and it scrolls
   internally if a short screen can't hold the whole card, so the
   step itself never overflows. */
.lobby-settings { padding: 16px 22px; display: flex; flex-direction: column; gap: 9px; flex: 0 1 auto; min-height: 0; overflow-y: auto; width: min(780px, 94vw); scrollbar-width: thin; scrollbar-color: rgba(217,180,90,.5) transparent; }
/* The two lobby cards once ran slightly translucent (Michael,
   2026-11-20: the painting ghosting faintly through the navy, alpha
   .84/.87). AAA P4 (2026-11-27) retires the local override's stops:
   the lobby cards now wear the shared .panel gradient verbatim
   (.92/.94 — one panel recipe on every screen, and the deeper bed
   raises every word's contrast). What survives from the 2026-11-20
   ruling is the blur ban: the shared .panel backdrop blur stays
   switched OFF on these cards, because live blur over full-screen
   art piles up frames on TV browsers. */
#scene-lobby .panel {
  background: linear-gradient(165deg, rgba(14, 26, 66, .92), rgba(7, 15, 42, .94));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; row-gap: 4px; }
.setting-row.col { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 7px; }
.setting-label { font-family: var(--font-ui); font-size: 13.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ivory-dim); text-align: left; }
.seg { display: flex; gap: 8px; }
/* ONE pill size for the whole lobby panel (Michael, 2026-11-19):
   Play Style and shared-level buttons share the same type, padding
   and height — the difficulty pills set the measure. */
.seg button { padding: 3px 10px; font-size: 10px; letter-spacing: .01em; }
/* The Play Style segment (2026-11-23 fix round): with three pills,
   the flex row pushed the third pill past the settings card's right
   edge on smaller TV viewports (Michael's live photo: the Journey
   pill hanging outside the card). The segment now takes the
   shared-level row's own recipe — a full-width grid of equal
   columns, buttons at min-width 0 — so all three pills sit inside
   the card at every size, at the same height as the level pills.
   The row stacks (label over pills), as it already rendered once
   the old row wrapped. */
#seg-mode { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; width: 100%; }
#seg-mode button { width: 100%; min-width: 0; padding-left: 1px; padding-right: 1px; white-space: nowrap; overflow: hidden; text-align: center; }
/* (The lobby's Matthew 7:14 verse block was removed 2026-11-19 —
   the verse lives on the landing page now. The freed room belongs to
   the Travelers panel.) */
#btn-start { padding: 10px 18px; font-size: 16.5px; margin-top: 2px; }
/* BEGIN THE JOURNEY wears the SAME bright logo gold as a selected
   pill (Michael, 2026-11-19: the old waiting look — the shared
   .btn-gold:disabled grayscale — read as a dull brown-tan that
   matched nothing). The waiting state only dims the same gold a
   touch; it never leaves the gold family. */
#btn-start { background: linear-gradient(180deg, #fad77d 0%, #edb249 48%, #cd7f1d 100%); }
#btn-start:disabled { filter: brightness(.93) saturate(.94); cursor: default; transform: none; }
.lobby-wait { font-style: italic; color: var(--ivory-dim); font-size: 14.5px; text-shadow: 0 1px 8px rgba(0,0,0,.9); }
/* (The Travelers heading left the panel in the 2026-11-26 wizard:
   it is the step title now — .lobby-step-title above, the one
   treatment every step heading wears.) */
.empty-note { grid-column: 1 / -1; align-self: center; text-align: center; font-style: italic; color: var(--ivory-dim); font-size: 19px; line-height: 1.5; padding-top: 30px; }
/* A lobby row is the game piece and the name — nothing else
   (Michael, 2026-11-22): no level pill, no line naming the piece
   or the pedestal. One line per traveler, two columns of them. */
.lobby-player { display: flex; align-items: center; gap: 10px; padding: 8px 4px; background: rgba(255, 255, 255, .07); border-bottom: 1px solid rgba(255, 255, 255, .14); animation: riseIn .3s both; min-width: 0; }
.lobby-player .piece-mini { width: 44px; height: 44px; flex: none; }
.lobby-player .lp-name { font-family: var(--font-ui); font-size: 23px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* The Gathering in the lobby: the shared-level segment (a matched
   4-column grid), the coordinator's badge, and a compact density
   for a full Gathering house (up to 16 travelers) so every row stays
   legible without the panel growing past its frame. (The Gathering
   explanation paragraph that sat under the Play Style segment left
   the card 2026-11-19 evening — it lives in the phones' help sheet;
   and the shared-level row is RESERVED — invisible but laid out —
   in Individual mode, so this card, and the Travelers panel whose
   height is what's left of the column, are the same size in both
   modes. Michael: "regardless of what they play, the cards are the
   same size.") */
#row-shared-level.reserved { visibility: hidden; }
#seg-shared-level { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; width: 100%; }
/* The four shared-level pills run at about half the standard segment
   size (Michael, 2026-11-19: the Scholar pill ran off the panel's
   edge) — small type, tight padding, and min-width 0 so the grid can
   always fit the whole row inside the panel. */
#seg-shared-level button { width: 100%; min-width: 0; padding: 3px 1px; font-size: 10px; letter-spacing: .01em; text-align: center; white-space: nowrap; overflow: hidden; }
/* The pill row's only label: one small quiet caption across the top
   of the pills (Michael, 2026-11-19 — the Gathering line above
   already says the rest; this is a caption, not a section heading). */
.seg-caption { font-family: var(--font-ui); font-size: 9.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ivory-dim); text-align: center; white-space: nowrap; }
/* The two sentence-length captions (2026-11-26, F5/F6): the mode
   explanation under the Play Style segment and the sitting
   explanation over its pills are full sentences, not labels — they
   keep the caption's dress but wrap inside the panel instead of
   running off its edge on a narrow TV. */
#mode-caption, #row-sitting .seg-caption { white-space: normal; line-height: 1.55; }
#mode-caption { font-size: 10.5px; letter-spacing: .09em; }
/* The sitting row is a column now (caption over pills); its pills
   center under their caption, as the book picker's caption centers
   over its grid. */
#seg-sitting { justify-content: center; }
/* The Guide's tag: a small gold plaque straddling the piece's
   base (Michael kept the tag in the lobby list, 2026-11-22) —
   on the piece, never in the name's width. */
/* The Guide's tag (Guide & Resume, 2026-11-27): the word GUIDE in
   gold, worn at the base of the Guide's piece — the same seat the
   cross plaque held (Michael, 2026-11-22: the tag stays on the
   piece, never in the name's width), now spelling the role out
   loud. Manrope, the label family. */
.lobby-player .lp-coord { position: absolute; left: 50%; transform: translateX(-50%); bottom: -7px; z-index: 2; padding: 1.5px 6px 2px; border-radius: 999px; background: radial-gradient(circle at 50% 38%, #16265c, #0a1128 78%); border: 1px solid var(--gold); color: var(--gold-bright); display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,.45); font-family: Manrope, sans-serif; font-weight: 800; font-size: 8.5px; letter-spacing: .14em; line-height: 1.25; white-space: nowrap; }
/* The same GUIDE word beside the Guide's name wherever names are
   honored — the reveal rosters and the victory standings — one
   treatment on every screen (homogeneity). */
.guide-tag { display: inline-block; vertical-align: middle; margin: 0 8px; padding: 1.5px 7px 2px; border-radius: 999px; background: rgba(8,16,38,.85); border: 1px solid var(--gold); color: var(--gold-bright); font-family: Manrope, sans-serif; font-weight: 800; font-size: 10px; letter-spacing: .14em; line-height: 1.3; white-space: nowrap; }
/* A seat whose traveler is not here rests (Journey resume fix,
   2026-12-02): the row dims — piece and name at resting strength —
   and a small quiet AWAY tag stands after the name, in the label
   family's dress but none of the Guide plaque's gold. The room
   reads its whole company at a glance: who is here at full
   strength, and whose seat is being kept. */
.lobby-player.resting { background: rgba(255, 255, 255, .03); }
.lobby-player.resting .piece-mini, .lobby-player.resting .lp-name { opacity: .42; }
.lobby-player .lp-away { flex: none; padding: 1.5px 6px 2px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); color: var(--ivory-dim); font-family: Manrope, sans-serif; font-weight: 800; font-size: 8.5px; letter-spacing: .14em; line-height: 1.25; white-space: nowrap; }
/* A crowded house (9-16 travelers, five rows or more) spreads its
   rows across the whole card — no empty half-panel under a full
   roster (Michael, 2026-11-22: use all the space that's possible). */
#lobby-player-list.many { column-gap: 10px; align-content: space-between; }
#lobby-player-list.many .lobby-player { padding: 5px 4px; gap: 6px; }
#lobby-player-list.many .lobby-player .piece-mini { width: 34px; height: 34px; }
#lobby-player-list.many .lobby-player .lp-name { font-size: 19px; }

/* Lobby height breakpoints — plain units only (TV browsers): each
   wizard step compresses as the viewport gets shorter so nothing
   leaves the frame. (Player-row rules use boosted specificity: their
   base rules sit later in this file.) */
@media (max-height: 960px) {
  .lobby-logo { width: 220px; }
  #room-code { font-size: 92px; }
  .lobby-join-sub { font-size: 18.5px; }
  .qr-card { margin-top: 12px; }
  .qr-card img { width: 140px; height: 140px; }
  .lobby-step { gap: 11px; }
  .lobby-step-title { font-size: 27px; }
  .lobby-arrivals { font-size: 19px; }
  .lobby-players { padding: 20px; }
  .lobby-settings { padding: 13px 18px; gap: 7px; }
  .seg button { padding: 3px 9px; font-size: 10px; }
  #btn-start { padding: 9px 16px; font-size: 15.5px; }
  .lobby-wait { font-size: 14px; }
}
@media (max-height: 800px) {
  .lobby-logo { width: 190px; }
  #room-code { font-size: 80px; }
  .qr-card img { width: 124px; height: 124px; }
  .lobby-step-title { font-size: 24px; }
  .lobby-players { padding: 18px; }
  .lobby-players .lobby-player { padding: 8px 8px; }
  .lobby-players .lobby-player .piece-mini { width: 46px; height: 46px; }
  .lobby-players .lobby-player .lp-name { font-size: 21px; }
  .lobby-settings { padding: 11px 16px; gap: 6px; }
  .lobby-step-btn { padding: 10px 28px; font-size: 16px; }
}
@media (max-height: 720px) {
  .lobby-step { padding: 3.5vh 4vw; gap: 9px; }
  .lobby-logo { width: 150px; }
  .lobby-step-title { font-size: 21px; }
  .lobby-step-kicker { font-size: 12.5px; }
  #room-code { font-size: 62px; }
  .lobby-join-sub { font-size: 16px; }
  .qr-card { margin-top: 9px; padding: 5px; }
  .qr-card img { width: 104px; height: 104px; }
  .lobby-arrivals { font-size: 17px; }
  .lobby-step-hint { font-size: 13.5px; }
  .lobby-players { padding: 14px; }
  .lobby-players .lobby-player { padding: 6px 8px; }
  .lobby-players .lobby-player .piece-mini { width: 40px; height: 40px; }
  .lobby-players .lobby-player .lp-name { font-size: 19px; }
  .lobby-settings { padding: 10px 15px; gap: 5px; }
  .seg button { padding: 3px 8px; font-size: 9.5px; }
  #seg-shared-level button { font-size: 9.5px; }
  #btn-start { padding: 8px 14px; font-size: 14.5px; }
  .lobby-wait { font-size: 13px; }
  #lobby-player-list .empty-note { padding-top: 14px; font-size: 16px; }
  .setting-row.col { gap: 5px; }
  .seg-caption { font-size: 9px; letter-spacing: .1em; }
  .strip-qr-card img { width: 44px; height: 44px; }
  .strip-text { font-size: 15px; }
}
/* The 576p rung (2026-11-26, the suite-rewrite finding): between
   the ≤720 ladder and the ≤560 floor, Step 1's column outgrew its
   frame — measured 590.6px of items (margins counted) against the
   step's content box, so at viewport heights under ~591px the
   centered column bled past the SCREEN itself (1024×576: the
   emblem's top 7px and the hint line's bottom 7px off-screen and
   unreachable — Steps 2/3 cannot do this; their panels flex and
   scroll inside). The ladder's own remedy, one rung scoped to
   Step 1 only: the brand mark, the code and the QR each yield a
   step, the gaps tighten — ~93px back, so the column fits its
   frame with room from 561px up. The band ends at 640px, above
   the last height (~635px) where the un-shrunk column exceeds
   its content box; at every taller size nothing here applies and
   the layout is exactly as it was. */
@media (min-height: 561px) and (max-height: 640px) {
  #lobby-step-1 { gap: 7px; }
  #lobby-step-1 .lobby-logo { width: 92px; }
  #lobby-step-1 #room-code { font-size: 56px; }
  #lobby-step-1 .qr-card { margin-top: 6px; }
  #lobby-step-1 .qr-card img { width: 88px; height: 88px; }
}
@media (max-height: 560px) {
  .lobby-step { padding: 3vh 3vw; gap: 7px; }
  /* At the ladder's floor the brand mark yields its height to the
     code and the QR — the step's job outranks its decoration. */
  #lobby-step-1 .lobby-logo { display: none; }
  .lobby-step-title { font-size: 18px; }
  .lobby-step-kicker { font-size: 11px; }
  #room-code { font-size: 47px; }
  .lobby-join-sub { font-size: 14px; line-height: 1.35; }
  .qr-card { margin-top: 7px; padding: 4px; }
  .qr-card img { width: 76px; height: 76px; }
  .lobby-arrivals { font-size: 15px; }
  .lobby-step-hint { display: none; }
  .lobby-step-btn { padding: 7px 22px; font-size: 14.5px; }
  .lobby-players { padding: 8px; }
  .lobby-players .lobby-player { padding: 3px 6px; }
  .lobby-players .lobby-player .piece-mini { width: 32px; height: 32px; }
  .lobby-players .lobby-player .lp-name { font-size: 17px; }
  .lobby-settings { padding: 8px 12px; gap: 3px; }
  .setting-label { font-size: 12px; }
  .seg button { padding: 2px 7px; font-size: 9.5px; }
  #seg-shared-level button { font-size: 9.5px; padding-top: 2px; padding-bottom: 2px; }
  #btn-start { padding: 6px 12px; font-size: 13.5px; margin-top: 0; }
  .lobby-wait { font-size: 12px; }
  #lobby-player-list .empty-note { padding-top: 4px; font-size: 12.5px; line-height: 1.35; }
  .setting-row.col { gap: 4px; }
  .strip-qr-card img { width: 36px; height: 36px; }
  .strip-text { font-size: 13.5px; }
  .strip-code { font-size: 16px; }
}
@media (max-width: 1150px) {
  .setting-label { font-size: 12.5px; }
  .seg button { font-size: 10px; padding-left: 9px; padding-right: 9px; }
  /* Narrower screens (2026-11-23 fix round): the section captions
     step down just enough to stay inside the card (framed-title
     discipline: shrink-to-fit, never spill). The book picker's
     two-column step lives after the base picker rules below — a
     media rule placed here would lose the cascade to them. */
  .seg-caption { font-size: 9px; }
}
@media (max-width: 980px) {
  .seg button { font-size: 9.5px; padding-left: 7px; padding-right: 7px; }
  .seg-caption { font-size: 8px; letter-spacing: .06em; }
  .strip-text { white-space: normal; text-align: center; }
}

/* piece composite (token standing on pedestal) */
.piece-mini { position: relative; flex: none; }
.piece-mini img.ped { position: absolute; left: 8%; bottom: 0; width: 84%; }
.piece-mini img.tok { position: absolute; left: 14%; bottom: 26%; width: 72%; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }

/* ---------- Game / board ---------- */
#scene-game { display: flex; }
#board-wrap { position: relative; flex: 1; height: 100%; overflow: hidden; background: radial-gradient(ellipse at center, #0c183d 0%, #050a1e 75%); }
#board-stage { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); box-shadow: 0 30px 80px rgba(0,0,0,.65); }
#board-img { position: absolute; inset: 0; width: 100%; height: 100%; }
#coin-layer, #piece-layer { position: absolute; inset: 0; }
.coin { position: absolute; transform: translate(-50%, -50%); pointer-events: none; aspect-ratio: 1; }
.coin img { width: 100%; display: block; filter: drop-shadow(0 3px 6px rgba(0,0,0,.55)); }
.coin .num {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: Cinzel, serif; font-weight: 900; color: #4a3205;
  text-shadow: 0 1px 0 rgba(255, 240, 190, .65), 0 -1px 1px rgba(60, 40, 0, .35);
}
.coin.final .num { color: #fff3cf; text-shadow: 0 2px 6px rgba(0,0,0,.75); }
.board-piece { position: absolute; width: 3.9%; aspect-ratio: 1; transform: translate(-50%, -88%); transition: left .46s cubic-bezier(.3,.7,.3,1), top .46s cubic-bezier(.3,.7,.3,1); pointer-events: none; z-index: 5; }
.board-piece .piece-mini { width: 100%; height: 100%; filter: drop-shadow(0 10px 14px rgba(0,0,0,.55)); }
.board-piece.hop .piece-mini { animation: hop .46s ease; }
@keyframes hop { 40% { transform: translateY(-16%) scale(1.06); } }
.board-piece.active-turn .piece-mini { animation: glowPulse 2.2s ease-in-out infinite; }

#gate-banner {
  position: absolute; top: max(22px, 4vh); left: 50%; transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(14,26,66,.92), rgba(7,15,42,.92));
  border: 1px solid rgba(217,180,90,.6); border-radius: 999px;
  padding: 10px 30px; font-family: var(--font-ui); font-weight: 700; font-size: clamp(16px, 1.5vw, 22px); letter-spacing: .08em;
  box-shadow: 0 10px 30px rgba(0,0,0,.55); z-index: 8; white-space: nowrap;
}
#gate-banner b { color: var(--gold-bright); }

/* ---------- the walk: pulse, lit stones, arrival ring ---------- */
.walk-pulse {
  position: absolute; width: 3.6%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; pointer-events: none; z-index: 6; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 240, 180, .95) 0%, rgba(242, 217, 140, .55) 42%, transparent 72%);
  transition-property: left, top; transition-timing-function: linear;
}
.coin img { transition: filter .3s ease; }
.coin.lit img { filter: brightness(1.55) saturate(1.2) drop-shadow(0 0 16px rgba(242, 217, 140, .95)); }
.coin.sevenlit img { filter: brightness(1.7) saturate(1.3) drop-shadow(0 0 22px rgba(255, 226, 130, 1)); }
.arrival-ring {
  position: absolute; width: 4.8%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(.35);
  border: 3px solid rgba(242, 217, 140, .95); border-radius: 50%;
  opacity: 0; pointer-events: none; z-index: 6;
  box-shadow: 0 0 24px rgba(242, 217, 140, .55), inset 0 0 18px rgba(242, 217, 140, .4);
}
.arrival-ring.go { animation: ringExpand 1.35s ease-out both; }
@keyframes ringExpand {
  0% { opacity: .95; transform: translate(-50%, -50%) scale(.35); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2); }
}
/* (The traveler strip's styles were removed with the strip itself,
   2026-11-19: the board takes the whole screen.) */

/* ---------- Question ----------
   ONE fixed geometry for every category and every question, Final
   Challenge included: the card never resizes, and its TYPE IS
   UNIFORM (Michael, 2026-11-19 evening: "Think homogenous —
   everything looks the same"). Every card renders at the same
   stem and option sizes — chosen for the couch (stem 41px, options
   31px at 1080p) — and the LAYOUT absorbs long content: tightened
   leading, a wider text measure, a smaller header plate, and
   full-height distribution (the prompt's and timer's top margins
   are auto, so slack splits into two bands — header + meta hold
   the top, prompt + options ride the middle, timer + answers-in
   anchor the bottom; the content always spans the card). --qscale
   is the fit guard's emergency lever ONLY: it sits at exactly 1
   for every card that fits (99.5% of the bank at 1080p) and steps
   down solely to keep a genuine bank extreme from clipping —
   those items are enumerated by verify/card-uniform-check.js,
   never silently shrunk. */
/* The card is a VISITOR, not a resident: it fades in over the board
   (gently dimmed at most — the board stays visible around it), never
   resizes or displaces the board, and YIELDS — fades/lifts out — while
   the walk and ceremonies play on the clear board, then returns for
   the reveal. */
#question-overlay { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, rgba(7,15,42,.16), rgba(7,15,42,.40)); animation: fadeIn .3s both; }
#question-overlay.yielding { opacity: 0; transition: opacity .55s ease; }
#question-overlay.yielding #q-inner { transform: translateY(-16px); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.q-card { width: min(1060px, 88%); height: min(880px, 92%); overflow: hidden; padding: min(10px, 1.4vh) min(40px, 3.6vw) min(16px, 2vh); text-align: center; animation: riseIn .3s cubic-bezier(.2,.8,.25,1) both; --qscale: 1; }
#q-inner { height: 100%; display: flex; flex-direction: column; overflow: hidden; transition: transform .55s ease; }
.q-header-wrap { flex: none; height: min(108px, 12.5vh); display: flex; align-items: flex-start; justify-content: center; }
#q-header { height: 100%; width: auto; max-width: 94%; object-fit: contain; filter: drop-shadow(0 10px 24px rgba(0,0,0,.5)); }
.q-meta { flex: none; display: flex; justify-content: center; gap: 26px; font-family: var(--font-ui); font-weight: 800; font-size: min(15px, 2.2vh); letter-spacing: .18em; color: var(--gold-bright); text-transform: uppercase; margin-top: 2px; margin-bottom: min(8px, 1.2vh); }
/* The KJV-wording tag (2026-12-02): a small pill in the meta row,
   worn only by Finish-the-Verse questions; its color rides the
   meta row's own (gold-bright on the dark card, gold-deep on ivory). */
.q-meta .kjv-tag { border: 1px solid var(--gold); border-radius: 999px; padding: 1px 10px; font-size: .85em; white-space: nowrap; }
#q-prompt { flex: none; font-size: calc(clamp(24px, min(2.45vw, 4.1vh), 41px) * var(--qscale, 1)); font-weight: 600; line-height: 1.22; margin: auto auto min(14px, 1.8vh); max-width: 100%; text-wrap: balance; }
#q-options { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: min(9px, 1.3vh); max-width: 100%; margin: 0 auto; width: 100%; margin-bottom: min(14px, 1.8vh); }
/* The transition covers PAINT only (background/opacity/border/shadow —
   the correct/wrong/dim state changes). font-size and padding must
   NEVER transition: they are the fit guard's geometry, driven by
   --qscale, and animating them left the card's sizes mid-flight for
   0.35s after every fit — the fit observer then re-measured the
   half-moved card and flip-flopped the scale (the flashing/jumping
   cards Michael filmed, 2026-11-21). Scale changes snap. */
/* Full TV Parity (2026-11-29): the options wear the PHONE's
   treatment verbatim — the dark translucent ground with its white
   sheen, the one --line border, the gold-ring letter, and the
   phone's own correct/wrong washes — in place of the retired
   ivory-pill language. Only the values moved; the couch geometry
   (padding, type, letter size, the --qscale fit lever) is
   untouched, so the fit guard's measurements stand as they were. */
.q-opt { display: flex; align-items: center; gap: 14px; text-align: left; background: linear-gradient(rgba(255,255,255,.08), rgba(255,255,255,.08)), rgba(7,15,42,.75); color: var(--ivory); border: 1px solid var(--line); border-radius: 12px; padding: calc(min(11px, 1.5vh) * var(--qscale, 1)) 16px; font-size: calc(clamp(18px, min(1.9vw, 3.1vh), 31px) * var(--qscale, 1)); font-weight: 600; line-height: 1.18; transition: background .35s ease, opacity .35s ease, border-color .35s ease, box-shadow .35s ease; }
.q-opt .letter { flex: none; width: calc(min(34px, 4.4vh) * var(--qscale, 1)); height: calc(min(34px, 4.4vh) * var(--qscale, 1)); border-radius: 50%; background: transparent; border: 1px solid rgba(217,180,90,.55); display: flex; align-items: center; justify-content: center; font-family: Cinzel, serif; font-weight: 900; font-size: calc(min(17px, 2.3vh) * var(--qscale, 1)); color: var(--gold-bright); }
.q-opt.dim { opacity: .45; }
.q-opt.correct { background: linear-gradient(rgba(60,160,90,.25), rgba(60,160,90,.25)), rgba(7,15,42,.75); border-color: #7ee2a0; box-shadow: 0 0 26px rgba(126,226,160,.30); }
.q-opt.wrong { background: linear-gradient(rgba(224,122,106,.25), rgba(224,122,106,.25)), rgba(7,15,42,.75); border-color: rgba(224,122,106,.65); }
#q-timer { position: relative; flex: none; height: 6px; background: rgba(255,248,230,.14); border-radius: 3px; margin: auto auto 0; max-width: 920px; width: 100%; overflow: hidden; }
/* fitCard measures the card's NATURAL stack (content at its minimum
   gaps) through this class: the auto margins above would otherwise
   report their distributed size and hide the slack the grow loop
   feeds on. */
#q-inner.fit-measure #q-prompt { margin-top: min(14px, 1.8vh); }
#q-inner.fit-measure #q-timer { margin-top: min(22px, 2.6vh); }
/* The three bonus zones, as quiet tints under the draining bar. The bar
   drains right-to-left, so its leading edge sits in the FIRST zone
   (right, soft gold) for the first third, the SECOND (middle, amber)
   for the second, and the THIRD (left, ember) for the last. */
.q-zone { position: absolute; top: 0; bottom: 0; width: 33.34%; }
.q-zone.z-first { right: 0; background: rgba(242, 217, 140, .30); }
.q-zone.z-second { left: 33.33%; background: rgba(224, 156, 52, .26); }
.q-zone.z-third { left: 0; background: rgba(198, 84, 44, .30); }
#q-timer-fill { position: relative; z-index: 1; height: 100%; width: 100%; opacity: .94; background: linear-gradient(90deg, #b8912a, #f2d98c); border-radius: 3px; }
/* The Gathering's quiet head-count under the timer: how many answers
   are in. No results ever show before the reveal — just the count. */
#q-answers-in { flex: none; margin: min(14px, 1.8vh) auto 0; font-family: var(--font-ui); font-weight: 800; letter-spacing: .18em; font-size: min(14px, 2vh); color: var(--ivory-dim); text-transform: uppercase; }
/* The multiplayer card's quiet instruction (P5, 2026-11-26): the
   Solo card already tells its one traveler to answer on their
   phone (through #q-answers-in); multiplayer cards now carry the
   same word on their own line, for watchers and latecomers. It
   wears #q-answers-in's dress — one line family under the card. */
#q-answer-note { flex: none; margin: min(10px, 1.4vh) auto 0; font-family: var(--font-ui); font-weight: 800; letter-spacing: .18em; font-size: min(13px, 1.9vh); color: var(--ivory-dim); text-transform: uppercase; text-align: center; }

/* ---------- The sequenced screens (2026-11-19) ----------
   Michael's governing priority: "clean screens! No cutoffs" — one job
   per screen, nothing stacked. The question card is question-only
   now; the reveal is a sequence of full screens over the board: the
   turn announcement, the answer + verse, the result, and (in The
   Gathering) who answered and the glory roll. */
#announce-overlay, #answer-verse-overlay, #result-overlay, #gather-glory-overlay, #lookback-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  /* AAA P5: the backing is the mockup's painting scrim (§(a)) —
     linear rgba(7,15,42,.88) → .94 — in place of the radial
     .90/.96; the same darkness family, the house gradient. */
  background: linear-gradient(rgba(7,15,42,.88), rgba(7,15,42,.94));
  animation: fadeIn .35s both; text-align: center; padding: 4vh 5vw;
}
#announce-overlay { z-index: 12; gap: 4.5vw; text-align: left; }
/* The Gathering's collective address (2026-11-19): one of the Father's
   eight lines, alone on the screen before each question — large,
   centered, gold on navy, in the turn announcement's dress. The fade
   is the beat: in gently (~0.7s), hold (~3.6s, fully readable), out
   gently (~0.7s) — the server holds the phase 5s and the animation
   runs inside it (lengthened from 3s on Michael's word, 2026-11-19
   evening: the line went by too quick to read). */
#address-overlay { position: absolute; inset: 0; z-index: 12; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4vh 6vw; background: linear-gradient(rgba(7,15,42,.88), rgba(7,15,42,.94)); animation: addressBeat 8s ease both; }
/* The phase-driven exit (Defect B, 2026-11-29): renderAddress
   retires the overlay's own animation, pins the words' live
   opacity inline, and adds this class — the words dissolve over
   the sequenced screens' 500 ms and only then does the question
   enter. The animation still owns the entrance and the hold;
   the exit belongs to the phase now, not the wall clock. */
#address-overlay.exiting { opacity: 0 !important; transition: opacity .5s ease; pointer-events: none; }
@keyframes addressBeat { 0% { opacity: 0; } 9% { opacity: 1; } 91% { opacity: 1; } 100% { opacity: 0; } }
#address-line { font-size: clamp(30px, 3.6vw, 56px); font-weight: 600; line-height: 1.3; color: var(--gold-bright); text-wrap: balance; text-shadow: 0 0 34px rgba(242,217,140,.35); }
#announce-piece .piece-mini { width: 30vmin; height: 30vmin; filter: drop-shadow(0 22px 44px rgba(0,0,0,.65)); animation: floaty 6s ease-in-out infinite; }
.announce-text { max-width: 62%; }
#announce-line { font-size: clamp(27px, 3.3vw, 52px); font-weight: 600; line-height: 1.3; color: var(--ivory); text-wrap: balance; }
#announce-stats { margin-top: 2.2vh; font-family: var(--font-ui); font-weight: 800; letter-spacing: .18em; font-size: clamp(14px, 1.5vw, 22px); color: var(--gold-bright); text-transform: uppercase; }
#answer-verse-overlay { z-index: 30; flex-direction: column; }
#av-kicker { font-family: var(--font-ui); font-weight: 800; letter-spacing: .18em; font-size: clamp(13px, 1.3vw, 19px); color: var(--gold-bright); text-transform: uppercase; }
#av-answer { font-family: Cinzel, serif; font-weight: 900; font-size: clamp(32px, 4.4vw, 66px); line-height: 1.12; color: var(--gold-bright); filter: drop-shadow(0 8px 26px rgba(0,0,0,.8)); margin-top: 1.6vh; max-width: 1050px; }
/* Full TV Parity (2026-11-29): the verse rides the phone's verse
   panel — the faint gold tint and the gold rule at its left, the
   phone's own values — instead of bare text on the scrim. The
   couch type is untouched; fitAnswerVerse's shrink loop already
   budgets the whole overlay, padding included. */
#av-verse { font-size: 39px; font-style: italic; line-height: 1.35; color: var(--ivory); max-width: 1020px; margin-top: 3vh; background: rgba(217,180,90,.07); border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; padding: 1.8vh 2.2vw; }
/* The citation belongs to the KJV verse (Michael, 2026-11-19
   evening): it sits DIRECTLY UNDER the verse text — answer, verse,
   citation — and, since BSB's removal (2026-11-20), it closes the
   screen unless a Final Challenge note follows. Its margin is the
   verse's own — close, like a signature under the words. */
#av-cite { font-family: Cinzel, serif; letter-spacing: .3em; font-size: clamp(13px, 1.3vw, 18px); color: var(--gold-bright); text-transform: uppercase; margin-top: 1.4vh; }
#av-note { font-size: clamp(17px, 1.8vw, 25px); font-style: italic; color: var(--ivory); margin-top: 2vh; max-width: 900px; }
/* Every traveler's ratio under the verse (Phase 6, 2026-12-04):
   on a group study's discussion stand, the Answer & Verse page
   carries each traveler's standing in the book — name, this
   question's verdict, and their mastery (correct of answered)
   from the Phase 2 counters. It stands only there: the glory
   keeps its own job, and the race modes never fill this block. */
#av-ratios { margin-top: 2.4vh; display: flex; flex-direction: column; gap: .7vh; align-items: center; }
#av-ratios.hidden { display: none; }
#av-ratios p { font-size: clamp(17px, 1.9vw, 26px); color: var(--ivory); }
#av-ratios p b { color: var(--gold-bright); font-weight: 700; }
#result-overlay { z-index: 30; flex-direction: column; }
#result-piece .piece-mini { width: 15vmin; height: 15vmin; filter: drop-shadow(0 14px 30px rgba(0,0,0,.6)); }
#result-title { font-family: Cinzel, serif; font-weight: 900; font-size: clamp(38px, 5vw, 76px); letter-spacing: .04em; line-height: 1.05; margin-top: 2vh; }
#result-title.good { color: var(--gold-bright); text-shadow: 0 0 34px rgba(242,217,140,.45); }
#result-title.bad { color: #ff9d8f; }
#result-points { font-family: Cinzel, serif; font-weight: 700; font-size: clamp(24px, 3vw, 44px); color: var(--ivory); margin-top: 1.4vh; }
#result-lines { margin-top: 1.6vh; display: flex; flex-direction: column; gap: .8vh; }
#result-lines p { font-size: clamp(18px, 2vw, 28px); font-style: italic; color: var(--ivory); }
#result-lines p b { color: var(--gold-bright); font-style: normal; }
#gather-glory-overlay { z-index: 30; flex-direction: column; }
.g-title { font-family: Cinzel, serif; font-weight: 900; letter-spacing: .3em; font-size: clamp(21px, 2.4vw, 36px); color: var(--gold-bright); }
.g-list { margin-top: 2.4vh; display: flex; flex-direction: column; gap: .9vh; width: min(860px, 86%); }
/* The rest of the company, below the glory roll (Michael, 2026-11-22:
   correct on top, who didn't below, every choice shown) — a gold rule
   divides them, and their rows rest quieter, never shamed. */
.g-list.g-rest { border-top: 1px solid rgba(217,180,90,.35); padding-top: 1.4vh; }
.g-rest .g-row { opacity: .8; }
/* A full house (9+ travelers) compacts the roll so all sixteen fit,
   and the whole screen rides higher on the page (Michael, 2026-11-22:
   "If it's a crowded room, you can move 'The Glory' higher on the
   page. Be responsive") — the title lifts and the roll takes the
   full height instead of centering and crowding the middle. */
#gather-glory-overlay.many { justify-content: flex-start; padding-top: 2.5vh; }
#gather-glory-overlay.many .g-list { gap: .4vh; margin-top: 1.4vh; }
#gather-glory-overlay.many .g-row { font-size: clamp(14px, 1.45vw, 20px); padding: .45vh 1.2vw; }
#gather-glory-overlay.many .g-title { font-size: clamp(18px, 2vw, 28px); }
.g-row { display: flex; align-items: baseline; justify-content: space-between; gap: 3vw; padding: .9vh 1.6vw; border-bottom: 1px solid rgba(217,180,90,.18); font-size: clamp(17px, 1.9vw, 27px); text-align: left; }
.g-row .g-name { font-weight: 700; color: var(--ivory); white-space: nowrap; }
.g-row .g-chose { color: var(--ivory-dim); font-style: italic; text-align: right; }
.g-row.correct .g-chose { color: var(--gold-bright); font-style: normal; }
.g-row .g-pts { font-family: Cinzel, serif; font-weight: 700; color: var(--gold-bright); white-space: nowrap; }
.g-row.dim { opacity: .55; }
#gather-glory-bonus, #gather-glory-seals { margin-top: 2vh; font-size: clamp(16px, 1.8vw, 24px); font-style: italic; color: var(--ivory); max-width: 900px; }
#gather-glory-bonus b, #gather-glory-seals b { color: var(--gold-bright); font-style: normal; }

/* ---------- Study Journey (2026-11-23) ----------
   The lobby picker: 66 books in a compact scroll grid inside the
   settings card — name and live count, gold when chosen. The
   journey status rides beneath: each book's walk, its six lamps
   as small flames, and the shelf of finished books. */
/* touch-action pan-y + overscroll containment (2026-11-23 fix
   round): a touch drag on the grid scrolls the GRID, not the lobby
   column behind it, and a wheel/trackpad scroll that reaches the
   end of the list stays in the list instead of chaining away. */
#book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; max-height: 168px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(212,175,55,.5) transparent; padding-right: 2px; touch-action: pan-y; overscroll-behavior: contain; }
.book-btn { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; padding: 3px 6px; min-width: 0; font-size: 10.5px; background: rgba(10,17,40,.55); color: var(--ivory); border: 1px solid rgba(212,175,55,.28); border-radius: 5px; cursor: pointer; text-align: left; }
.book-btn:hover { border-color: rgba(212,175,55,.65); }
.book-btn.sel { background: linear-gradient(180deg, #fad77d, #cd7f1d); color: #231303; border-color: #fad77d; font-weight: 700; }
.book-btn .bk-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.book-btn .bk-count { color: var(--gold-bright); font-family: Cinzel, serif; font-size: 9.5px; flex: none; }
.book-btn.sel .bk-count { color: #231303; }
.book-btn.empty { opacity: .45; }
.book-note { font-style: italic; color: var(--ivory-dim); font-size: 12.5px; text-align: center; }
/* Picker fit steps (2026-11-23 fix round) — placed AFTER the base
   picker rules so they win the cascade at equal specificity:
   two columns on narrower cards, so every book's name reads in full
   beside its count; a shorter scroll window on the shortest
   screens, so the whole settings card stays inside the frame (the
   list scrolls — that is what it is for). */
@media (max-width: 1150px) {
  #book-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-height: 560px) {
  #book-grid { max-height: 144px; }
}
/* Wizard Step 3 (2026-11-26): the picker gets the taller window its
   own full screen affords — the settings panel scrolls internally
   if the whole card still runs long. */
#lobby-step-3 #book-grid { max-height: 264px; }
/* Step 3 room for the books (Michael, 2026-11-26, from his TV: the
   picker showed a couple of rows and Sitting/Begin fell below the
   panel's fold — "make more room for the books, the books to
   study — that's the most important part on this screen"). The
   oversized BACK pills retired the same day (back rides the
   top-left arrow now), the step's header stack breathes a little
   less, and the books get the room the fixed rows leave: Sitting
   and Begin stay on screen and the GRID scrolls, inside the
   panel. Other modes keep the panel at its natural height,
   exactly as before. The 92vw cap keeps a clear margin around
   the panel on narrow TV viewports, where 94vw ran it near the
   screen's edge. (How the grid's room is measured changed the
   same evening — see "Picker sizing, second form" below.) */
#lobby-step-3 { gap: 9px; }
#lobby-step-3 .lobby-settings { width: min(780px, 92vw); padding-top: 12px; padding-bottom: 12px; }
/* Picker sizing, second form (Michael's live TV, 2026-11-26
   evening): the flex form above shipped in the morning and the
   sandbox verified it — 22 rows at 1080p — but on Michael's TV
   the picker rendered at ZERO height: no books at all, the panel
   at natural height, as if the whole mode-journey flex chain
   (panel flex-grow → row flex-grow → grid flex-grow, each link
   min-height: 0) had silently failed in the TV's engine, while
   every non-flex sizing in this stack (the old 264px window
   included) has always painted there. So the grid no longer
   takes its height from flex arithmetic at all: the panel and
   the books row stand at natural height like every other lobby
   panel, and the GRID carries a definite height anchored to the
   viewport — calc(100vh − the step's fixed furniture), stepped
   by the same max-height bands that step the panel's padding,
   with a floor no band edge can take to zero. calc + vh are as
   old as the hills; every engine that can paint this page at
   all sizes the picker this way. The constants are measured,
   not guessed (work/tv-picker-measure.js, flex form): non-grid
   furniture totals 544px at 1080p, ~499 at 900, ~423 at 720,
   ~348 at 540 — so at 1080p the window is 536px and all 66
   books stand on one screen exactly as the flex form measured;
   at 960×540 it is 188px (8–9 rows, the grid scrolls) with
   Sitting + Begin on screen. The 552px cap keeps a very tall
   screen's window hugging the 3-column content (~536px)
   instead of opening an empty well under the books.
   (Card-backing round, later the same day: the Step 3 header
   lines moved onto their .lobby-head card — see the plaque rules
   above — and the furniture was re-measured with the cards in
   place (work/tv-cards-measure.js): 550 at 1080p, 505 at 900,
   431 at 720, 356 at 540 — deltas of +6/+6/+8/+8 over the
   totals above. The four constants below rose by exactly those
   deltas, so the window is 530px at 1080p and the 3-column
   content (502px) still stands complete on one screen; at
   960×540 the window is 180px with Sitting + Begin on screen,
   as before.) */
#lobby-step-3.mode-journey .lobby-settings { flex: 0 1 auto; }
#lobby-step-3.mode-journey #row-books { flex: none; }
#lobby-step-3.mode-journey #book-grid { flex: none; height: calc(100vh - 550px); min-height: 64px; max-height: 552px; }
@media (max-height: 960px) {
  #lobby-step-3.mode-journey #book-grid { height: calc(100vh - 511px); }
}
@media (max-height: 720px) {
  #lobby-step-3.mode-journey #book-grid { height: calc(100vh - 436px); }
}
@media (max-height: 560px) {
  #lobby-step-3.mode-journey #book-grid { height: calc(100vh - 360px); }
}
@media (max-height: 960px) {
  #lobby-step-3 { gap: 8px; }
  #lobby-step-3 .lobby-settings { padding-top: 10px; padding-bottom: 10px; }
}
@media (max-height: 720px) {
  #lobby-step-3 { gap: 6px; }
  #lobby-step-3 .lobby-settings { padding-top: 8px; padding-bottom: 8px; }
}
@media (max-height: 560px) {
  #lobby-step-3 { gap: 5px; }
  #lobby-step-3 .lobby-settings { padding-top: 6px; padding-bottom: 6px; }
}
/* ---------- Wizard fit at Michael's TV size (2026-11-27, from his
   live playtest photo at ~683x384) ----------
   Three defects, one short-height rung (≤560px covers his 384 and
   the 360 stress size):
   (1) The latecomer strip's room code wrapped mid-code — "M R"
   over "C W" — because the code is set letter-spaced and the
   strip sentence wraps at narrow widths, so the code span broke
   at its own spaces. The code's nowrap rides its base rule above
   (never wraps, any size); this rung also compacts the strip a
   step and steps the code's size/spacing down.
   (2) Step 3 in Journey overflowed its card: the settings panel
   scrolled internally and BEGIN + the wait line sat below the
   fold — "the Journey has no way to start game study" — and the
   picker showed two scrolling rows of two columns. Here the
   Journey panel becomes a two-column grid: a rail (Play Style,
   knowledge, Sitting, Begin, the wait line) beside the books,
   which take the panel's full height in a compact 4-column grid —
   all 66 books on the one screen, NO scrollbar in the panel or
   the grid, every book reachable without scrolling anything.
   The grid keeps a definite viewport-anchored height (the
   second-form lesson: no flex chains on TV engines); its
   constant is measured, not guessed (work/wizard-fit-probe.js):
   everything else in the step totals ~133px at these heights.
   (3) The wait line's visibility is the same fit — it rides the
   rail, always on screen (the 1-traveler Journey state is in the
   probe's proof set). */
@media (max-height: 560px) {
  .lobby-strip { padding: 4px 16px 4px 5px; gap: 9px; }
  .strip-qr-card img { width: 22px; height: 22px; }
  .strip-text { font-size: 12.5px; }
  .strip-code { font-size: 14.5px; letter-spacing: .1em; }

  #lobby-step-3 { padding-top: 4px; padding-bottom: 4px; gap: 2px; }
  #lobby-step-3 .lobby-head { padding: 2px 14px; gap: 0; }
  #lobby-step-3 .lobby-step-kicker { font-size: 8.5px; }
  #lobby-step-3 .lobby-step-title { font-size: 13px; }
  #lobby-step-3 .lobby-arrivals { font-size: 11px; }

  #lobby-step-3 .lobby-settings { padding: 4px 10px; gap: 3px; }
  #lobby-step-3 .setting-row.col { gap: 3px; }
  #lobby-step-3 .setting-label { font-size: 10.5px; }
  #lobby-step-3 .seg-caption { font-size: 8px; }
  #lobby-step-3 .seg button { padding: 2px 5px; font-size: 8.5px; }
  #lobby-step-3 #btn-start { padding: 4px 12px; font-size: 12px; margin-top: 0; }
  #lobby-step-3 .lobby-wait { font-size: 11px; }
  #lobby-step-3 .book-note { font-size: 10.5px; }

  #lobby-step-3.mode-journey .lobby-settings {
    display: grid;
    grid-template-columns: 200px 1fr;
    column-gap: 10px;
    row-gap: 3px;
  }
  #lobby-step-3.mode-journey #row-books { grid-column: 2; grid-row: 1 / span 5; }
  #lobby-step-3.mode-journey #lobby-journey { grid-column: 1 / -1; }
  #lobby-step-3.mode-journey #seg-shared-level { grid-template-columns: repeat(2, 1fr); }
  #lobby-step-3.mode-journey #book-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1px 3px;
    height: calc(100vh - 133px);
    min-height: 0;
    max-height: none;
    overflow-y: hidden;
    padding-right: 0;
  }
  #lobby-step-3.mode-journey .book-btn { font-size: 8.5px; padding: 0 3px; line-height: 1.1; border-radius: 4px; gap: 3px; }
  #lobby-step-3.mode-journey .book-btn .bk-count { font-size: 8px; }
}
#lobby-journey { border-top: 1px solid rgba(217,180,90,.25); padding-top: 7px; display: flex; flex-direction: column; gap: 3px; }
#lobby-journey.hidden { display: none; }
/* The standing study at Step 3 (2026-11-28): a study / resumed
   Journey presents its settled choices here instead of the fresh
   picker. Type is the Step 1 study panel's own (the same facts,
   the same dress); nothing here is smaller than the panel it
   replaces — the fit is won by the picker and the progress block
   leaving the panel, not by shrinking a single letter. */
/* Standing rooms lay the settings panel out as one column at
   every size — the two-column picker grid exists for the picker,
   and the picker is not on this screen. */
#lobby-step-3.standing .lobby-settings { display: flex; flex-direction: column; }
#lobby-standing { display: flex; flex-direction: column; gap: 3px; text-align: center; padding: 4px 0 2px; }
#lobby-standing.hidden { display: none; }
.standing-name { font-family: Cinzel, serif; font-weight: 700; font-size: 30px; line-height: 1.2; color: var(--gold-bright); overflow-wrap: break-word; }
.standing-line { font-size: 18px; line-height: 1.35; color: var(--ivory); }
.standing-line.dim { font-size: 16.5px; color: #b9c4d6; }
#lobby-journey h4 { font-family: var(--font-ui); font-weight: 800; font-size: 10.5px; letter-spacing: .22em; color: var(--gold-bright); text-align: center; margin-bottom: 3px; }
.lj-row { display: flex; align-items: baseline; gap: 8px; font-size: 13px; padding: 1px 2px; }
.lj-row .lj-name { font-weight: 700; color: var(--ivory); white-space: nowrap; }
.lj-row.current .lj-name { color: var(--gold-bright); }
.lj-row .lj-pos { color: var(--ivory-dim); font-family: Cinzel, serif; font-size: 11px; white-space: nowrap; }
.lj-row .lj-flames { margin-left: auto; letter-spacing: 2px; font-size: 10px; }
.lj-flame { color: rgba(240,230,200,.22); }
.lj-flame.lit { color: var(--gold-bright); text-shadow: 0 0 7px rgba(243,210,122,.8); }
.lj-shelf-title { font-family: var(--font-ui); font-size: 9.5px; font-weight: 800; letter-spacing: .18em; color: var(--ivory-dim); text-align: center; margin-top: 5px; }
.lj-shelf-row { font-size: 12.5px; color: var(--gold-bright); text-align: center; }
.lj-shelf-row span { color: var(--ivory-dim); font-style: italic; font-size: 11.5px; }
/* The Journey's ceremonies and summary: full clean screens over
   the board, in the sequenced screens' dress — navy radial, gold
   on ivory, one job each. */
#lamp-overlay, #jcomplete-overlay, #jsummary-overlay {
  position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(rgba(7,15,42,.88), rgba(7,15,42,.94));
  animation: fadeIn .35s both; text-align: center; padding: 4vh 5vw;
}
#lamp-overlay.hidden, #jcomplete-overlay.hidden, #jsummary-overlay.hidden, #lookback-overlay.hidden { display: none !important; }
/* Look Back (2026-11-29): the review screen — the settled page
   whole, in the sequenced screens' dress, sized to hold a long
   teaching at the couch sizes without clipping: the teaching
   rides the ivory card the phones use, and the whole column is
   the screen's one job. */
#lookback-overlay { z-index: 31; flex-direction: column; }
#lb-kicker { font-family: var(--font-ui); font-weight: 800; letter-spacing: .18em; font-size: clamp(13px, 1.3vw, 19px); color: var(--gold-bright); text-transform: uppercase; }
#lb-place { font-size: clamp(14px, 1.5vw, 21px); font-style: italic; color: var(--ivory-dim); margin-top: 1vh; }
#lb-prompt { font-size: clamp(20px, 2.3vw, 34px); font-weight: 600; line-height: 1.28; color: var(--ivory); max-width: 1020px; margin-top: 1.8vh; }
#lb-answer { font-family: Cinzel, serif; font-weight: 900; font-size: clamp(28px, 3.6vw, 54px); line-height: 1.12; color: var(--gold-bright); margin-top: 1.6vh; max-width: 1020px; }
#lb-verse { font-size: clamp(18px, 2vw, 30px); font-style: italic; line-height: 1.35; color: var(--ivory); max-width: 1020px; margin-top: 2vh; background: rgba(217,180,90,.07); border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; padding: 1.4vh 1.8vw; }
#lb-cite { font-family: Cinzel, serif; letter-spacing: .3em; font-size: clamp(12px, 1.2vw, 17px); color: var(--gold-bright); text-transform: uppercase; margin-top: 1vh; }
#lb-teaching { background: var(--ivory); color: #1c2138; border-radius: 12px; padding: 12px 20px; font-size: clamp(16px, 1.7vw, 24px); font-style: italic; line-height: 1.38; max-width: 1020px; margin-top: 2.2vh; text-align: left; }
/* The teaching label (2026-12-02): Look Back's teaching card opens
   with "The Teaching — in our own words", gold-deep on the ivory,
   so game-written words are never mistaken for the verse above. */
#lb-teaching .teach-label { display: block; font-family: Cinzel, serif; font-style: normal; font-weight: 700; letter-spacing: .22em; font-size: 13px; color: var(--gold-deep); text-transform: uppercase; margin-bottom: 6px; }
@media (max-height: 480px) {
  #lb-prompt { font-size: 19px; margin-top: 8px; }
  #lb-answer { font-size: 25px; margin-top: 6px; }
  #lb-verse { font-size: 16.5px; margin-top: 8px; }
  #lb-teaching { font-size: 14.5px; margin-top: 10px; padding: 8px 14px; }
  #lb-place { margin-top: 4px; }
}
/* Sequenced screens leave as gently as they arrive (movement round
   P3, 2026-11-25): the .exiting state fades a screen out over half a
   second and lets taps pass straight through, then the script adds
   .hidden. These screens carry a FILLED fadeIn entrance whose fill
   holds computed opacity at 1, so the fade only animates because
   hideSeq in tv.js retires the entrance animation in a committed
   step BEFORE adding this class (measured by the fix probe's rAF
   trace: a same-recalc change collapses the fade into a cut). The
   animation:none here is belt and braces for the same end. */
#result-overlay.exiting, #answer-verse-overlay.exiting, #gather-glory-overlay.exiting,
#lamp-overlay.exiting, #jcomplete-overlay.exiting, #jsummary-overlay.exiting, #lookback-overlay.exiting {
  opacity: 0; transition: opacity .5s ease; pointer-events: none; animation: none;
}
.lamp-kicker { font-family: var(--font-ui); font-weight: 800; letter-spacing: .18em; font-size: clamp(14px, 1.4vw, 20px); color: var(--gold-bright); text-transform: uppercase; }
#lamp-sockets, #jcomplete-sockets { display: flex; gap: 2.2vw; margin-top: 3.4vh; }
.lamp-socket { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 92px; color: rgba(255,248,230,.28); }
.lamp-socket svg { width: 62px; height: 62px; }
.lamp-socket span { font-family: var(--font-ui); font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ivory-dim); line-height: 1.25; }
.lamp-socket.lit { color: var(--gold-bright); }
.lamp-socket.lit svg { filter: drop-shadow(0 0 14px rgba(242,217,140,.75)); }
.lamp-socket.lit span { color: var(--gold-bright); }
.lamp-socket.just-lit svg { animation: lampKindle 2.6s ease both; }
@keyframes lampKindle { 0% { filter: brightness(2.6) drop-shadow(0 0 30px rgba(242,217,140,1)); transform: scale(1.12); } 55% { filter: brightness(1.5) drop-shadow(0 0 18px rgba(242,217,140,.85)); } 100% { filter: brightness(1) drop-shadow(0 0 14px rgba(242,217,140,.75)); transform: scale(1); } }
#lamp-title, #jcomplete-title, #jsummary-title { font-family: Cinzel, serif; font-weight: 900; font-size: clamp(34px, 4.6vw, 68px); line-height: 1.1; margin-top: 3vh; }
#lamp-sub, #jcomplete-sub { font-size: clamp(18px, 2vw, 28px); font-style: italic; color: var(--ivory); margin-top: 1.6vh; max-width: 900px; }
#lamp-sub b, #jcomplete-sub b { color: var(--gold-bright); font-style: normal; }
.lamp-verse { margin-top: 3.4vh; font-style: italic; font-size: clamp(15px, 1.6vw, 22px); color: var(--ivory-dim); max-width: 760px; }
.lamp-verse span { display: block; margin-top: 6px; font-family: Cinzel, serif; font-style: normal; letter-spacing: .26em; font-size: clamp(11px, 1.1vw, 14px); color: var(--gold-bright); }
#jsummary-lines { margin-top: 2.6vh; display: flex; flex-direction: column; gap: 1vh; }
#jsummary-lines p { font-size: clamp(19px, 2.1vw, 29px); color: var(--ivory); }
#jsummary-lines p b { color: var(--gold-bright); }
#jsummary-shelf { margin-top: 2.2vh; }
#jsummary-shelf .lj-shelf-row { font-size: clamp(15px, 1.7vw, 22px); }
#jsummary-shelf .lj-shelf-title { font-size: 12px; }
.jsummary-note { margin-top: 3vh; font-style: italic; color: var(--ivory-dim); font-size: clamp(14px, 1.5vw, 19px); max-width: 820px; }
/* The calm closing line (Guide & Resume, 2026-11-27): the book and
   where the walk picks up, in the serif voice, above the note. */
.jsummary-closing { margin-top: 2.4vh; font-family: var(--font-body); font-size: clamp(17px, 2vw, 26px); color: var(--ivory); max-width: 860px; }
/* The Study Journey's stage (2026-11-27): the Journey is boardless
   (Michael's ruling) — no 49 spaces, no numbered coins, no token
   track. In journey mode render() hides #board-stage and stands
   this in its place: the ERA PAINTING of the book under study
   (the /assets/eraN.jpg slots, under the title shade), and the
   study's head on the house panel — the book being walked, the
   place in it, the book's six lamps in miniature, the shelf's
   count — so no information floats raw over the painting. The
   sequenced screens (address, verse, glory, lamp, completion,
   summary) play over the stage exactly as they played over the
   board; the head itself stands only while a question is up,
   crowning the card, and steps aside for those screens. The two
   painting layers crossfade when the walk crosses into a book of
   another era (setJourneyBg in tv.js trades the .on layer once
   the incoming painting has loaded). */
#journey-stage { position: absolute; inset: 0; overflow: hidden; }
#journey-stage.hidden { display: none; }
#journey-stage .journey-bg { opacity: 0; transition: opacity 1.4s ease; }
#journey-stage .journey-bg.on { opacity: 1; }
#journey-head { position: absolute; top: 3vh; left: 50%; transform: translateX(-50%); z-index: 5;
  /* AAA P5: the head wears the shared .panel recipe verbatim (the
     .92/.94 stops, var(--line), the ivory inset highlight) — it was
     the last play surface still on the old .84/.87 override. */
  background: linear-gradient(165deg, rgba(14, 26, 66, .92), rgba(7, 15, 42, .94));
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6), inset 0 1px 0 rgba(255, 248, 230, .08);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 34px 10px; max-width: 94vw; text-align: center;
  /* Defect B (2026-11-29): the head takes the question's own
     entrance — it fades in WITH the card instead of snapping on
     at full strength in the same render while the card is still
     translucent, where it read as a title plate layered under
     the arriving question. It still stands WITH the question
     once both have arrived; only the lone full-strength beat
     ahead of the card is gone. */
  animation: fadeIn .35s both; }
#journey-head.hidden { display: none; }
.journey-kicker { font-family: var(--font-ui); font-weight: 800; letter-spacing: .18em; padding-left: .18em; font-size: clamp(11px, 1.1vw, 16px); color: var(--gold-bright); text-transform: uppercase; margin: 0; }
#journey-book { font-family: Cinzel, serif; font-weight: 900; font-size: clamp(24px, 2.6vw, 40px); line-height: 1.05; margin: 0; }
#journey-place { font-size: clamp(14px, 1.4vw, 20px); font-style: italic; color: var(--ivory); margin: 0; }
#journey-lamps { display: flex; gap: 1.1vw; margin-top: 6px; }
#journey-lamps .lamp-socket { width: 46px; gap: 3px; }
#journey-lamps .lamp-socket svg { width: 26px; height: 26px; }
#journey-lamps .lamp-socket span { font-size: 7.5px; }
#journey-shelf { font-family: var(--font-ui); font-weight: 800; letter-spacing: .18em; font-size: clamp(10px, 1vw, 14px); color: var(--gold-bright); text-transform: uppercase; margin: 2px 0 0; }
#journey-shelf.hidden { display: none; }
/* Short screens: the head steps down with the family — the lamps
   keep their flames and drop their names (the lamp ceremonies
   spell the names out in full when one lights). */
@media (max-height: 640px) {
  #journey-head { top: 2vh; padding: 8px 22px 7px; }
  #journey-lamps { margin-top: 3px; }
  #journey-lamps .lamp-socket { width: 36px; }
  #journey-lamps .lamp-socket svg { width: 19px; height: 19px; }
  #journey-lamps .lamp-socket span { display: none; }
}
@media (max-height: 480px) {
  .g-list { gap: 2px; margin-top: 10px; }
  .g-row { font-size: 13.5px; padding: 2px 8px; }
  .g-title { font-size: 17px; }
  #gather-glory-bonus, #gather-glory-seals { font-size: 12.5px; margin-top: 6px; }
  #av-verse { margin-top: 10px; }
  #av-answer { font-size: 27px; margin-top: 6px; }
  #av-cite { margin-top: 8px; }
  #av-note { margin-top: 8px; }
  #announce-line { font-size: 24px; }
  #announce-stats { font-size: 12px; margin-top: 8px; }
  #result-title { font-size: 32px; }
  #result-points { font-size: 20px; }
  #result-lines p { font-size: 15px; }
}

/* ---------- Era ---------- */
#scene-era, #scene-final { transition: opacity 1.2s ease; } /* peaceful cross-fades for the ceremony scenes */
.kenburns { animation: kb 6.5s ease-out both; }
@keyframes kb { from { transform: scale(1.0); } to { transform: scale(1.07); } }
.era-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,15,42,.86), rgba(7,15,42,0) 46%); transition: opacity 1.6s ease; }
.era-inner { position: absolute; inset: 6vh 0 auto 0; text-align: center; }
/* The era ceremony's words (Michael's ruling, 2026-11-28): the
   painting fades in; the words — the titling above and the verse
   band below — fade in over their shades, hold while the room
   reads, fade out. What follows is the mode's own ending: in a
   Journey the painting STAYS, standing as the study's ground when
   the scene lifts; in the race the painting fades out with its
   shade (cp-out) and the beat rests black until the server's era
   phase ends. The stages are classes armed from the era clock
   (tv.js: the race from the game:era event's durationMs, the
   Journey from its own reading-scaled timeline — the phones keep
   the same vocabulary). With no classes the words simply stand,
   as they did before the ruling (a reloaded TV's static card). */
#scene-era .era-inner, #scene-era .era-band { transition: opacity 1.1s ease; }
#scene-era.cw-armed .era-inner, #scene-era.cw-armed .era-band { opacity: 0; }
#scene-era.cw-in .era-inner, #scene-era.cw-in .era-band { opacity: 1; transition-duration: .9s; }
#scene-era.cw-out .era-inner, #scene-era.cw-out .era-band { opacity: 0; }
#era-img { transition: opacity 1.6s ease; }
#scene-era.cp-out #era-img, #scene-era.cp-out .era-shade { opacity: 0; }
#scene-era.snap .era-inner, #scene-era.snap .era-band, #scene-era.snap #era-img, #scene-era.snap .era-shade { transition: none; }
#era-kicker { font-family: var(--font-ui); font-weight: 800; letter-spacing: .4em; font-size: clamp(15px, 1.4vw, 20px); color: var(--ivory); text-shadow: 0 2px 12px #000; }
#era-name { font-size: clamp(52px, 6.4vw, 104px); font-weight: 900; letter-spacing: .06em; line-height: 1.05; filter: drop-shadow(0 10px 30px rgba(0,0,0,.8)); }
#era-caption { font-size: clamp(20px, 2vw, 29px); font-style: italic; color: var(--ivory); text-shadow: 0 2px 12px #000; margin-top: 8px; }
#era-caption b { color: var(--gold-bright); font-style: normal; }
/* The scripture band: the Stage-3 band treatment rebuilt as live text
   (navy panel, hairline gold rule, ivory verse, gold reference) so the
   words always come from the room's selected version. */
.era-band { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 150px 32px; text-align: center;
  background: linear-gradient(180deg, rgba(7,15,42,.88), rgba(7,15,42,.94) 32%);
  border-top: 1px solid rgba(217,180,90,.6); }
#era-verse { font-family: "Crimson Pro", Georgia, serif; font-size: 39px; line-height: 1.3; color: var(--ivory); }
#era-verse::before { content: "\201C"; }
#era-verse::after { content: "\201D"; }
#era-ref { font-family: Cinzel, serif; font-size: 17px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold-bright); width: 380px; margin: 16px auto 0; padding-top: 13px;
  border-top: 1px solid rgba(217,180,90,.45); }

/* ---------- Final ---------- */
.final-light { position: absolute; inset: 0; background: radial-gradient(circle at 50% 30%, rgba(255, 214, 110, .34), transparent 55%); animation: glowPulse 3s ease-in-out infinite; }
.final-inner { position: absolute; inset: auto 0 0 0; text-align: center; padding: 64px 20px 9vh; background: linear-gradient(180deg, transparent, rgba(5,10,30,.52) 34%, rgba(5,10,30,.8)); }
.final-kicker { font-family: var(--font-ui); font-weight: 800; letter-spacing: .5em; color: var(--ivory); font-size: 18px; text-shadow: 0 2px 12px #000; }
.final-title { font-size: clamp(48px, 5.6vw, 92px); font-weight: 900; letter-spacing: .1em; filter: drop-shadow(0 10px 30px rgba(0,0,0,.85)); }
.final-title-img { display: block; margin: 8px auto 4px; width: min(540px, 54vw); height: auto; filter: drop-shadow(0 10px 30px rgba(0,0,0,.85)); }
#final-name { font-size: clamp(22px, 2.2vw, 32px); font-style: italic; text-shadow: 0 2px 12px #000; }
#final-name b { color: var(--gold-bright); font-style: normal; }

/* ---------- Victory ---------- */
.victory-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 34%, rgba(7,15,42,.05) 0%, rgba(7,15,42,.5) 80%); }
.victory-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: min(10px, 1.2vh); }
#victory-piece .piece-mini { width: min(190px, 23vh); height: min(190px, 23vh); animation: floaty 5s ease-in-out infinite; filter: drop-shadow(0 24px 40px rgba(0,0,0,.6)); }
.victory-kicker { font-family: var(--font-ui); font-weight: 800; letter-spacing: .42em; font-size: 17px; color: var(--ivory); text-shadow: 0 2px 12px #000; margin-top: 6px; }
#victory-name { font-size: clamp(56px, 6.4vw, 104px); font-weight: 900; line-height: 1; padding: 0 34px; filter: drop-shadow(0 10px 30px rgba(0,0,0,.85)); text-shadow: 0 3px 22px rgba(30,16,0,.55); background: radial-gradient(ellipse at center, rgba(24,14,2,.38) 0%, transparent 70%); border-radius: 50%; }
/* The standings live at the BOTTOM of the victory screen, two
   rows high (Michael, 2026-11-19 evening): renderVictory shows
   exactly two rows at a time and rotates through the travelers,
   so the panel's height is two rows whatever the room size, and
   the painting's center stays clear. */
#victory-standings { position: absolute; left: 50%; transform: translateX(-50%); bottom: max(14px, 2.4vh); padding: min(12px, 1.6vh) 34px; min-width: min(430px, 80vw); max-width: 92vw; transition: opacity .45s ease; }
#victory-standings.vs-fading { opacity: 0; }
#victory-standings .vs-row { display: flex; justify-content: space-between; gap: 40px; font-size: min(23px, 3.1vh); padding: min(5px, .7vh) 0; border-bottom: 1px solid rgba(217,180,90,.16); }
#victory-standings .vs-row.vs-off { display: none; }
#victory-standings .vs-row b { color: var(--gold-bright); font-family: Cinzel, serif; font-size: 20px; }
/* Small corner controls, top right — the game's corner-control
   pattern, not a centerpiece (same ruling). */
.victory-controls { position: absolute; top: max(16px, 2.4vh); right: max(16px, 2.4vh); display: flex; gap: 10px; z-index: 6; }
.victory-controls button, .victory-controls a { font-family: var(--font-ui); font-size: 13.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ivory); background: rgba(7,15,42,.72); border: 1px solid rgba(217,180,90,.55); border-radius: 999px; padding: 8px 16px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.victory-controls #btn-again { color: var(--gold-bright); border-color: rgba(217,180,90,.9); }
.victory-controls button:hover, .victory-controls a:hover { background: rgba(12,24,61,.9); }
#btn-again { margin-top: min(20px, 2.4vh); padding: 14px 42px; font-size: 18px; }

/* ---------- Dim veil (final staging) ---------- */
#dim-veil { position: absolute; inset: 0; background-color: #02040c; background-image: url('/assets/final-challenge/Final_Challenge_Vignette.png'); background-size: cover; background-position: center; opacity: 0; pointer-events: none; transition: opacity 1.15s ease; z-index: 15; }
#dim-veil.on { opacity: .94; }

/* ---------- Crossroads burst (real light-burst art; origin low-center) ---------- */
#burst-layer { position: absolute; inset: 0; pointer-events: none; z-index: 7; }
.cross-burst { position: absolute; width: 48%; aspect-ratio: 16/9; transform: translate(-50%, -93%); pointer-events: none; animation: burstFade 1.9s ease-out both; }
.cross-burst img { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; filter: brightness(1.12) saturate(1.15); animation: burstGrow 1.9s ease-out both; }
@keyframes burstGrow { 0% { transform: scale(.5); opacity: 0; } 16% { opacity: 1; } 100% { transform: scale(1.05); opacity: 1; } }
@keyframes burstFade { 0% { opacity: 0; } 10% { opacity: 1; } 74% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Crossroads banner plate & standing stone ---------- */
#cross-banner {
  position: absolute; top: 5.5%; left: 50%; transform: translateX(-50%);
  width: min(66%, 880px); aspect-ratio: 1920 / 400; z-index: 9; pointer-events: none;
  background: url('/assets/crossroads/Crossroads_Category_Banner.png') center / 100% 100% no-repeat;
  animation: crossBannerIn .8s cubic-bezier(.2,.9,.3,1.2) both;
}
#cross-banner.hidden { display: none !important; }
@keyframes crossBannerIn { from { opacity: 0; transform: translateX(-50%) translateY(-16px) scale(.96); } to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); } }
.cross-banner-inner { position: absolute; left: 0; right: 0; top: 25%; bottom: 5%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
#cross-banner-title { font-family: Cinzel, serif; font-weight: 900; letter-spacing: .2em; font-size: clamp(19px, 2vw, 32px); color: var(--gold-bright); text-shadow: 0 2px 10px rgba(0,0,0,.8); }
#cross-banner-name { font-size: clamp(16px, 1.55vw, 24px); font-style: italic; color: var(--ivory); text-shadow: 0 2px 8px rgba(0,0,0,.8); margin-top: 1px; }
#cross-stone {
  position: absolute; right: 1.2%; bottom: max(2.5%, 4vh); height: 31%; z-index: 9; pointer-events: none;
  filter: drop-shadow(0 16px 28px rgba(0,0,0,.75));
  animation: stoneRise 1.15s cubic-bezier(.2,.85,.3,1) both;
}
#cross-stone.hidden { display: none !important; }
@keyframes stoneRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Era scripture & skip hint ---------- */
#era-skip { margin-top: 20px; font-family: var(--font-ui); font-weight: 800; letter-spacing: .18em; font-size: 14px; color: rgba(255,248,230,.75); text-transform: uppercase; text-shadow: 0 2px 10px #000; animation: skipBlink 2.4s ease-in-out infinite; }
@keyframes skipBlink { 0%,100% { opacity: .45; } 50% { opacity: 1; } }

/* ---------- Medallion overlay (seal ceremony / final staging) ---------- */
#medallion-overlay {
  position: absolute; inset: 0; z-index: 50; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 44%, rgba(12,24,61,.9) 0%, rgba(7,15,42,.97) 78%);
  animation: fadeIn .35s ease;
  transition: opacity 1.2s ease;
}
#medallion-overlay.fading { opacity: 0; }
#medallion-overlay.hidden { display: none !important; }

/* ---------- The Heaven's Gates cinematic (2026-11-20) ----------
   The finish moment is the designer's film, full bleed on the
   host screen: the video (or, if it cannot play, its open-gates
   poster) covers the screen edge to edge — no letterbox, no
   border, no frame. Only the words ride over it: the header from
   the start, and the Father's welcome fading in at the film's
   reaching-out beat (~10s) and holding to the end. The film's
   ending is radiant gold, so the words sit on a deepened bottom
   scrim; the words themselves are unchanged. (The code-built
   gates, rays and SVG doves of 2026-11-19 are retired.) */
#gates-overlay { position: absolute; inset: 0; z-index: 56; overflow: hidden; background: #04060f; animation: gatesIn .8s ease both; }
#gates-overlay.hidden { display: none !important; }
@keyframes gatesIn { from { opacity: 0; } to { opacity: 1; } }
/* The opening scene is midnight throughout (2026-11-22): the verse
   screen, the breath before the film, and the dark rest after it
   are one and the same darkness — no still of Eden ever shows. The
   film itself fades in from that darkness once it is playing, and
   fades back out when it ends. */
#scene-opening { background: radial-gradient(ellipse at 50% 42%, #0a1128 0%, #04060f 78%); }
#opening-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: transparent; opacity: 0; transition: opacity 1.4s ease; }
#opening-video.on { opacity: 1; }
/* The opening's dark Scripture screen (2026-11-21 evening): Genesis
   2:8 alone on the midnight, in the era band's own verse dress —
   Crimson Pro ivory, read slowly — with its citation in spaced Cinzel
   gold beneath. It stands for the verse hold, then LIFTS: a slow
   fade that dissolves the darkness into the Eden film beneath. */
#opening-verse { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 11vw; background: radial-gradient(ellipse at 50% 42%, #0a1128 0%, #04060f 78%); transition: opacity 1.6s ease; }
#opening-verse.lifted { opacity: 0; pointer-events: none; }
#opening-text { font-family: "Crimson Pro", Georgia, serif; font-size: clamp(30px, 3.4vw, 58px); line-height: 1.35; color: var(--ivory); max-width: 1150px; text-shadow: 0 2px 22px rgba(0,0,0,.9); }
#opening-text::before { content: "\201C"; }
#opening-text::after { content: "\201D"; }
#opening-ref { font-family: Cinzel, serif; letter-spacing: .42em; font-size: clamp(14px, 1.5vw, 21px); margin-top: 32px; }
#gates-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #04060f; }
#gates-video.gone { display: none; }
.gates-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gates-fallback.hidden { display: none !important; }
.gates-inner { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; padding: 12vh 4vw 5.5vh; background: linear-gradient(to top, rgba(3,5,14,.85) 0%, rgba(3,5,14,.58) 46%, rgba(3,5,14,.20) 74%, transparent 100%); }
.gates-kicker { font-family: var(--font-ui); font-weight: 800; letter-spacing: .42em; font-size: clamp(14px, 1.5vw, 21px); color: var(--ivory); text-shadow: 0 2px 14px #000, 0 0 34px rgba(0,0,0,.8); }
#gates-title { font-size: clamp(40px, 5.2vw, 78px); font-weight: 900; letter-spacing: .04em; line-height: 1.08; margin-top: 6px; filter: drop-shadow(0 10px 30px rgba(0,0,0,.9)); opacity: 0; transition: opacity 1.6s ease; }
#gates-title.welcome-in { opacity: 1; }
.med-rays {
  position: absolute; left: 50%; top: 44%; width: 120vmin; height: 120vmin;
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(242,217,140,.10) 10deg, transparent 22deg, rgba(242,217,140,.10) 48deg, transparent 60deg, rgba(242,217,140,.10) 96deg, transparent 108deg, rgba(242,217,140,.10) 150deg, transparent 162deg, rgba(242,217,140,.10) 205deg, transparent 217deg, rgba(242,217,140,.10) 262deg, transparent 274deg, rgba(242,217,140,.10) 318deg, transparent 330deg);
  animation: medRaysSpin 46s linear infinite;
}
@keyframes medRaysSpin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
.med-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
#med-kicker { font-family: var(--font-ui); font-weight: 800; letter-spacing: .42em; font-size: clamp(15px, 1.5vw, 21px); color: var(--ivory); text-shadow: 0 2px 12px #000; }
#med-ring { position: relative; width: 52vmin; height: 52vmin; margin: 3.5vmin 0 2.5vmin; }
.med-center {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  font-size: 6vmin; color: var(--gold-bright);
  text-shadow: 0 0 34px rgba(242,217,140,.9);
  animation: glowPulse 2.6s ease-in-out infinite;
}
.med-gem { position: absolute; left: 50%; top: 42%; width: 12.5vmin; margin-left: -6.25vmin; margin-top: -6.25vmin; transform: rotate(var(--ang)) translateY(-19.5vmin) rotate(calc(-1 * var(--ang))); text-align: center; }
.med-gem-face {
  width: 10.5vmin; height: 10.5vmin; margin: 0 auto; border-radius: 50%;
  border: 3px solid; display: flex; align-items: center; justify-content: center;
  font-family: Cinzel, serif; font-weight: 900; font-size: 2.6vmin; letter-spacing: .03em;
  background: rgba(2,5,14,.72); box-shadow: inset 0 0 18px rgba(0,0,0,.65);
  transition: all .6s ease;
}
.med-gem-name { margin-top: 8px; font-family: Cinzel, serif; font-size: 1.55vmin; letter-spacing: .14em; color: var(--ivory-dim); text-transform: uppercase; text-shadow: 0 2px 8px #000; }
.med-gem.sealed .med-gem-face { background: radial-gradient(circle at 36% 30%, #ffeeb0, #d4af37 58%, #9a7b1e); color: #241a02 !important; border-color: #fbe9a8 !important; box-shadow: 0 0 30px rgba(242,217,140,.65), inset 0 2px 6px rgba(255,255,255,.6); }
.med-gem.sealed .med-gem-name { color: var(--gold-bright); }
.med-gem.just-earned .med-gem-face { animation: gemEarn 3.6s ease-in-out both; }
.med-gem.just-earned .med-gem-name { color: #fff3cf; }
@keyframes gemEarn {
  0% { transform: scale(.6); box-shadow: 0 0 0 rgba(242,217,140,0); }
  22% { transform: scale(1.3); box-shadow: 0 0 90px 30px rgba(255,236,160,.95); }
  45% { transform: scale(1.08); box-shadow: 0 0 55px rgba(242,217,140,.85); }
  70% { transform: scale(1.16); box-shadow: 0 0 70px rgba(242,217,140,.8); }
  100% { transform: scale(1); box-shadow: 0 0 30px rgba(242,217,140,.65); }
}
#med-title { font-size: clamp(38px, 4.6vw, 72px); font-weight: 900; letter-spacing: .05em; line-height: 1.12; max-width: 1100px; filter: drop-shadow(0 10px 30px rgba(0,0,0,.85)); }
#med-sub { font-size: clamp(20px, 2vw, 29px); font-style: italic; color: var(--ivory); text-shadow: 0 2px 12px #000; margin-top: 8px; }

/* ---------- Medallion art stack (real art; DOM ring above is the fallback) ---------- */
#med-stack { position: relative; width: 56vmin; height: 56vmin; margin: 2.5vmin 0 2vmin; filter: drop-shadow(0 18px 44px rgba(0,0,0,.85)); }
#med-stack.hidden { display: none !important; }
#med-stack img { position: absolute; inset: 0; width: 100%; height: 100%; }
#med-stack img#med-burst { inset: auto; left: -26%; top: -26%; width: 152%; height: 152%; mix-blend-mode: screen; opacity: .7; animation: burstGlow 3.4s ease-in-out infinite; pointer-events: none; }
@keyframes burstGlow { 0%,100% { opacity: .38; transform: scale(1); } 50% { opacity: .95; transform: scale(1.05); } }
#med-base.all-lit { animation: glowPulse 2.8s ease-in-out infinite; }
.med-lit-img.just-lit { animation: litIn 3.4s ease both; }
@keyframes litIn { 0% { opacity: 0; filter: brightness(2.4); } 30% { opacity: 1; filter: brightness(2); } 55% { filter: brightness(1.25); } 100% { opacity: 1; filter: brightness(1); } }

/* ---------- 2026-11-18: waiting bar; ceremony containment ---------- */
/* Waiting bar: appears below the scene only while the game waits on
   an away traveler (or, in The Gathering, as the host's backup for
   the coordinator's moments); the button is the host's deliberate
   manual pass. */
#wait-bar { display: none; }
#stage.in-game #wait-bar { display: flex; flex: none; align-items: center; justify-content: center; gap: 18px; padding: 8px 14px; background: linear-gradient(180deg, #0c183d, #070f2a); border-top: 1px solid rgba(217,180,90,.35); }
#wait-bar.hidden { display: none !important; }
#wait-text { font-family: var(--font-ui); font-weight: 700; letter-spacing: .06em; font-size: 16px; color: var(--ivory); white-space: nowrap; }
#btn-host-act { font-family: var(--font-ui); letter-spacing: .08em; font-size: 14px; font-weight: 800; padding: 7px 18px; border-radius: 999px; border: 1px solid var(--gold); background: rgba(217,180,90,.15); color: var(--gold-bright); cursor: pointer; white-space: nowrap; }
#btn-host-act:hover { background: rgba(217,180,90,.32); }

/* Ceremony containment: the medallion stack shrinks on short screens
   so the whole ceremony — caption included — lives inside the scene
   holder, whose overlay clips as the hard guarantee. */
@media (max-height: 560px) {
  #med-stack { width: 44vmin; height: 44vmin; }
  #med-ring { width: 42vmin; height: 42vmin; }
  #med-title { font-size: 30px; }
}
@media (max-height: 430px) {
  #med-stack { width: 36vmin; height: 36vmin; margin: 1.5vmin 0 1vmin; }
  #med-ring { width: 34vmin; height: 34vmin; margin: 2vmin 0 1.5vmin; }
  #med-title { font-size: 24px; }
  #med-sub { font-size: 16px; margin-top: 4px; }
  #med-kicker { font-size: 12px; }
}

/* Framed titles are one line by design — they shrink to their frame
   (fitFramedTitles in tv.js), never wrap and never spill. */
#cross-banner-title, #cross-banner-name, #era-kicker, #era-name, #era-caption,
#med-kicker, #med-title, #med-sub, #final-name, #victory-name, .victory-kicker { white-space: nowrap; }

/* Short screens (<=480px tall, e.g. a 640x360 rendering): the era
   card compacts — the band's base geometry (39px verse, 150px side
   padding) would otherwise make the band taller than the whole scene
   and bury the kicker and title behind its gradient. */
@media (max-height: 480px) {
  .era-band { padding: 12px 26px 14px; }
  #era-verse { font-size: 19px; line-height: 1.28; }
  #era-ref { font-size: 11px; width: 300px; margin-top: 8px; padding-top: 7px; }
  /* Lift the title block so the caption clears the band's top edge. */
  .era-inner { inset: 3vh 0 auto 0; }
  #era-caption { font-size: 15px; margin-top: 2px; }
}

/* ================================================================
   PHONE-CLASS HOST TREATMENT (2026-11-23, the double audit's fit
   list) — every layout rule in this section is gated to a viewport
   no TV can be: max-width 560px AND portrait. The lobby-fit
   battery's smallest size is 640×360 landscape, so at every tested
   TV size these rules resolve to nothing and the page is exactly
   as it was. Under the gate, the host page composes for the phone
   in the host's hand: films fit WHOLE (contain — never cropped),
   the lobby fits its width, the era card composes as a column,
   and long answer words wrap inside their pills. ================================================================ */

@media (max-width: 560px) and (orientation: portrait) {
  /* Films fit whole — the full frame, letterboxed over the navy. */
  #opening-video, #gates-video, .gates-fallback { object-fit: contain; background: #04060f; }

  /* --- the lobby wizard composes for ~390px: the current step in
         one scrolling column, nothing clipped --- */
  .lobby-inner { overflow-y: auto; }
  .lobby-step { position: static; min-height: 100%; justify-content: flex-start; padding: 76px 14px 26px; gap: 14px; }
  .lobby-logo { width: min(190px, 52vw); }
  #lobby-step-1 .lobby-logo { display: block; }
  .lobby-step-title { font-size: 21px; }
  #room-code { font-size: clamp(46px, 15vw, 64px); }
  .lobby-join-sub { font-size: 16px; max-width: 92vw; }
  .qr-card img { width: 128px; height: 128px; }
  .lobby-players { flex: none; width: 100%; height: auto; max-height: 62vh; }
  .lobby-settings { flex: none; width: 100%; overflow-y: visible; }
  /* The portrait column scrolls as one page — the Step 3 Journey
     flex sizing above is a TV-landscape arrangement and yields
     here, so the phone picker keeps its large-row measure. */
  #lobby-step-3.mode-journey .lobby-settings { flex: none; }
  #lobby-step-3.mode-journey #row-books { flex: none; min-height: auto; }
  #lobby-step-3.mode-journey #book-grid { flex: none; height: auto; max-height: 300px; }
  .strip-text { white-space: normal; text-align: left; }
  /* The phone book picker (Michael, 2026-11-23): the TV's compact
     grid squeezed onto a phone fails his eyes — on the phone the
     picker becomes LARGE ROWS: one book per row, the name genuinely
     big, the row a tall tap target, the count beside the name at a
     readable size, the rows scrolling vertically. On the phone,
     legibility wins over density. */
  #book-grid { grid-template-columns: 1fr; max-height: 300px; gap: 6px; }
  .book-btn { font-size: 26px; padding: 12px 14px; border-radius: 9px; align-items: center; }
  .book-btn .bk-count { font-size: 19px; }
  .lp-head h3 { font-size: 21px; }
  .lp-name { font-size: 18.5px; }
  .lobby-empty { font-size: 16.5px; }

  /* --- the era card composes as a column: the whole painting in a
         16:9 band (cover inside a true 16:9 box crops nothing),
         its title beneath, and the verse band at the screen's own
         width — never the 90px-wide column the audit measured. --- */
  #scene-era { display: flex; flex-direction: column; }
  #era-img { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 16 / 9; flex: none; }
  .era-shade { display: none; }
  .era-inner { position: relative; inset: auto; padding: 12px 16px 0; }
  #era-name { font-size: 34px; }
  .era-band { position: relative; inset: auto; margin-top: auto; padding: 16px 20px 20px; }
  #era-verse { font-size: 23px; line-height: 1.35; }
  #era-ref { width: auto; font-size: 13px; }

  /* --- the turn announcement stacks: the traveler's piece above,
         the Father's-voice line at full width beneath --- */
  #announce-overlay { flex-direction: column; justify-content: center; gap: 14px; padding: 20px 16px; }
  #announce-overlay .announce-text { max-width: 94%; text-align: center; }
  #announce-piece .piece-mini { width: 34vmin; height: 34vmin; }

  /* --- question options: one column, and long words wrap inside
         their pills instead of crowding them --- */
  .q-card { width: 94%; height: auto; max-height: 92%; }
  #q-options { grid-template-columns: 1fr; }
  .q-opt > span:last-child { min-width: 0; overflow-wrap: break-word; }

  /* --- the pass gate's code row stacks (2026-11-26): the field
         takes the card's full width so the whole code reads back
         exactly as printed on the key — a Guide hosting from his
         phone could not see the start of his own code in the
         side-by-side row — with UNLOCK full width below it --- */
  #gate-overlay .gate-row { flex-wrap: wrap; }
  #gate-code { flex: 1 1 100%; }
  #gate-unlock { flex: 1 1 100%; }
}

/* Pass gate (2026-11-23): a full-screen doorway over the host screen,
   shown only when the server asks. Navy + the emblem's gold. */
#gate-overlay { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; background: rgba(4, 8, 22, .92); }
#gate-overlay.hidden { display: none; }
/* Solo display (2026-11-26): the ask / asking / waiting faces of
   #scene-solo-display, in the lobby's own dress — the painting, the
   shade, a centered column, the wizard's heading treatment — sized
   to read across a room. The scene itself is a .fade-scene like the
   lobby; only its column is new. */
.sd-inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 40px 4vw; text-align: center; }
.sd-logo { width: 148px; height: 148px; object-fit: contain; }
.sd-sub { font-family: 'Crimson Pro', serif; font-size: 24px; line-height: 1.45; color: #e8e2cf; margin: 0; text-shadow: 0 2px 10px rgba(0,0,0,.9), 0 0 18px rgba(0,0,0,.6); }
.sd-row { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; justify-content: center; align-items: stretch; }
.sd-row input { width: 216px; padding: 13px 16px; border-radius: 10px; border: 1px solid rgba(237,178,73,.55); background: #0a1128; color: #f5efdd; font-family: Cinzel, serif; font-size: 26px; font-weight: 700; letter-spacing: .3em; text-align: center; text-transform: uppercase; }
.sd-row input::placeholder { color: rgba(207,214,234,.4); letter-spacing: .3em; }
.sd-row .btn-gold { font-size: 19px; padding: 13px 26px; }
.sd-msg { color: #fad77d; font-family: 'Crimson Pro', serif; font-size: 21px; min-height: 1.3em; margin: 4px 0 0; max-width: 920px; line-height: 1.4; text-shadow: 0 2px 10px rgba(0,0,0,.9), 0 0 18px rgba(0,0,0,.6); }
.sd-stop { margin-top: 10px; font-size: 16px; padding: 10px 24px; }
/* The text group carded (Michael, 2026-11-26 — the wizard-card
   ruling carried to this screen): each state's kicker + title +
   sub sits on the lobby card's own treatment — the .84/.87 navy
   gradient, the shared 1px gold border (.45), 16px radius, the
   panel shadow, and NO backdrop blur (live blur over full-screen
   art piles up frames on TV browsers; the lobby cards switch it
   off for the same reason) — so the words read over the title
   painting's brightest ground (the sunburst and the golden path
   sit right behind this column). The emblem stays a floating
   brand mark above the card, as on every other screen. Carded
   headings drop their art halos, exactly as the lobby's do — the
   lift is scoped under this scene's id because the heading
   classes are shared with the wizard. */
.sd-panel { background: linear-gradient(165deg, rgba(16, 28, 66, .84), rgba(8, 16, 38, .87)); border: 1px solid rgba(212, 175, 55, .45); border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.6), inset 0 1px 0 rgba(246, 239, 221, .08); display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 16px 34px; max-width: 94vw; }
#scene-solo-display .lobby-step-title, #scene-solo-display .lobby-step-kicker { text-shadow: none; }
#scene-solo-display .sd-panel .sd-sub { text-shadow: none; }
/* Short-screen rungs for this screen alone (Michael's TV photo,
   2026-11-26): his TV's browser viewport stands only ~380px tall,
   where the un-runged column — 148px emblem, 24px sub, 40px
   padding — outgrew the frame: the emblem crowded the kicker and
   the code row sat flush on the bezel (measured locally at
   683x384: 5px margins; at 640x360 the column clips both ends).
   The four family sizes (1080p down to 960x540) keep today's
   dress apart from the card; below 500px the emblem, the card
   padding and the type step down together, and below 400px they
   step down again, so the whole column — emblem, card, code row,
   message — holds clear margins at 683x384 and 640x360 too. */
@media (max-height: 500px) {
  .sd-inner { padding: 20px 4vw; gap: 10px; }
  .sd-logo { width: 104px; height: 104px; }
  .sd-panel { padding: 12px 24px; }
  .sd-sub { font-size: 20px; }
  .sd-row input { font-size: 23px; padding: 11px 14px; }
  .sd-row .btn-gold { font-size: 17px; padding: 11px 22px; }
  .sd-msg { font-size: 18px; }
}
@media (max-height: 400px) {
  .sd-inner { padding: 12px 4vw; gap: 7px; }
  .sd-logo { width: 72px; height: 72px; }
  .sd-panel { padding: 9px 20px; }
  .sd-sub { font-size: 17.5px; line-height: 1.38; }
  .sd-row { margin-top: 5px; }
  .sd-row input { width: 190px; font-size: 20px; padding: 9px 12px; }
  .sd-row .btn-gold { font-size: 15.5px; padding: 10px 18px; }
  .sd-msg { font-size: 16.5px; margin-top: 2px; }
  .sd-stop { margin-top: 6px; font-size: 14.5px; padding: 8px 20px; }
  #scene-solo-display .lobby-step-title { font-size: 16px; }
}
/* Mirror a game (2026-11-30): the mirror scene wears the solo
   display's dress outright (the .sd-* classes above, rungs
   included); only its carded headings need the same halo lift,
   scoped under its own id. */
#scene-mirror .lobby-step-title, #scene-mirror .lobby-step-kicker { text-shadow: none; }
#scene-mirror .sd-panel .sd-sub { text-shadow: none; }
#scene-mirror .sd-row a.btn-gold { text-decoration: none; display: inline-flex; align-items: center; }
/* A mirror holds NO game controls (2026-11-30): in mirror mode
   every control the host screen carries — the lobby wizard's step
   buttons and pickers, BEGIN, the waiting bar's act button, the
   victory actions, the era skip hint — is hidden outright. The
   server accepts nothing from a mirror socket either; this is the
   visible half of the same rule. What remains is the picture, the
   corner furniture (back, sound), and STOP SHOWING. */
body.mirror-mode #btn-step1-next,
body.mirror-mode #btn-step2-next,
body.mirror-mode #btn-start,
body.mirror-mode #seg-mode,
body.mirror-mode #seg-shared-level,
body.mirror-mode #seg-sitting,
body.mirror-mode #book-grid,
body.mirror-mode #btn-host-act,
body.mirror-mode .victory-controls,
body.mirror-mode #era-skip,
body.mirror-mode #gate-overlay { display: none !important; }
/* STOP SHOWING: the mirror's one control — it ends the showing,
   never the game. It rides the corner cluster's recipe at the
   bottom right, clear of the game's own furniture, and keeps the
   readable floor size at every rung. */
.mirror-exit {
  position: fixed; right: max(16px, 4vw); bottom: max(16px, 4vh); z-index: 70;
  padding: 10px 22px; border-radius: 999px; cursor: pointer;
  font-family: var(--font-ui); font-weight: 800; letter-spacing: .1em; font-size: 15px;
  color: var(--gold-bright);
  background: linear-gradient(165deg, rgba(16,28,66,.88), rgba(8,16,38,.9));
  border: 1px solid rgba(212,175,55,.6);
  box-shadow: 0 10px 26px rgba(0,0,0,.55);
  transition: all .2s ease;
}
.mirror-exit:hover { border-color: var(--gold-bright); color: #fff; }
.mirror-exit.hidden { display: none; }
.gate-card { max-width: 620px; width: min(620px, 92vw); padding: 28px 34px; text-align: center; max-height: 94vh; overflow-y: auto; }
.gate-emblem { width: 110px; height: 110px; object-fit: contain; }
.gate-card h2 { font-family: Cinzel, serif; letter-spacing: .1em; margin: 8px 0 4px; }
.gate-sub { color: #cfd6ea; margin: 12px 0 6px; }
.gate-sub a, #victory-invite a { color: #fad77d; }
.gate-sub a:visited, #victory-invite a:visited { color: #fad77d; }
.gate-sub a:hover, .gate-sub a:active, #victory-invite a:hover, #victory-invite a:active { color: #fff; }
.gate-error { color: #ff9d8a; min-height: 1.2em; margin: 4px 0; }
.gate-msg { color: #fad77d; min-height: 1.2em; margin: 4px 0; }
.gate-rule { border-top: 1px solid rgba(217,180,90,.35); margin: 16px 0 4px; }
.gate-row { display: flex; gap: 10px; margin: 8px 0; }
.gate-row input { flex: 1; min-width: 0; padding: 12px; border-radius: 8px; border: 1px solid rgba(217,180,90,.5); background: var(--card); color: #f5efdd; font-size: 18px; }
.gate-row button { flex: 0 0 auto; padding: 12px 18px; border: none; border-radius: 8px; cursor: pointer; font-family: var(--font-ui); font-weight: 800; letter-spacing: .06em; color: #23180a; background: linear-gradient(180deg, #fad77d 0%, #edb249 48%, #cd7f1d 100%); }
#gate-recovery { margin-top: 6px; }
/* Room recovery (2026-12-02): one block per room standing in the
   pass's way — its name in plain words, then the host's two
   roads. REOPEN wears the gate's gold; SAVE & CLOSE wears the
   navy path-button dress, so the eye reads them as two different
   kinds of step. Type holds the gate's own sizes — the card
   scrolls (max-height + overflow above) rather than shrinking. */
.recovery-room { text-align: left; background: linear-gradient(165deg, rgba(14,26,66,.88), rgba(7,15,42,.9)); border: 1px solid rgba(217,180,90,.6); border-radius: 10px; padding: 10px 14px; margin: 8px 0 0; }
.recovery-room .gate-row { justify-content: center; flex-wrap: wrap; }
.recovery-name { font-family: var(--font-body); font-size: 16.5px; color: #f5efdd; margin: 0 0 2px; }
.recovery-name b { color: var(--gold-bright); }
.gate-row button.gate-ghost-btn { background: linear-gradient(165deg, rgba(14,26,66,.88), rgba(7,15,42,.9)); color: var(--gold-bright); border: 1px solid rgba(217,180,90,.6); }
.gate-row button.gate-ghost-btn:hover, .gate-row button.gate-ghost-btn:active { border-color: var(--gold-bright); color: #fff; }
#gate-resume-recovery .gate-row { justify-content: center; flex-wrap: wrap; }
/* The free first game as a labeled path (external audit 06,
   2026-11-27 — supersedes the 2026-11-26 B1/F9 quiet-line fold's
   dress, not its mechanics): the toggle is a full-width path
   button in the corner controls' navy-gold recipe, its promise
   riding as a sub-line, opening the claim in place; the host-key
   row still appears only once a key has been sent. The two other
   paths wear matching labels — USE A HOST PASS over the code
   field, SEE THE PASSES on the footer link — and every field in
   the fold carries a visible label of its own. */
.gate-toggle { display: block; width: 100%; background: linear-gradient(165deg, rgba(14,26,66,.88), rgba(7,15,42,.9)); border: 1px solid rgba(217,180,90,.6); border-radius: 10px; padding: 10px 14px; margin: 10px 0 4px; font-family: var(--font-ui); font-weight: 800; letter-spacing: .1em; font-size: 16.5px; color: var(--gold-bright); text-align: center; cursor: pointer; }
.gate-toggle:hover, .gate-toggle:active { border-color: var(--gold-bright); color: #fff; }
.gate-toggle-sub { display: block; font-family: "Crimson Pro", Georgia, serif; font-weight: 500; letter-spacing: .02em; font-size: 15.5px; color: #cfd6ea; margin-top: 3px; }
.gate-path-label { font-family: var(--font-ui); font-weight: 800; letter-spacing: .18em; font-size: 14.5px; color: var(--gold-bright); margin: 10px 0 2px; }
.gate-label { display: block; text-align: left; font-family: var(--font-ui); font-weight: 800; font-size: 15.5px; color: #cfd6ea; margin: 8px 0 3px; }
/* Resume mode (Guide & Resume, 2026-11-27): while the gate offers
   the credential's saved Journeys, the new-game paths step aside —
   the card shows the resume list and the one road back. */
.gate-card.resume-mode #gate-fj-toggle, .gate-card.resume-mode #gate-fj, .gate-card.resume-mode #gate-pass-label, .gate-card.resume-mode #gate-code-row, .gate-card.resume-mode #gate-code-msg { display: none; }
.gate-card.resume-mode > .gate-rule { display: none; }
.gate-resume-item { display: block; width: 100%; text-align: left; background: linear-gradient(165deg, rgba(14,26,66,.88), rgba(7,15,42,.9)); border: 1px solid rgba(217,180,90,.6); border-radius: 10px; padding: 9px 14px; margin: 8px 0 0; cursor: pointer; }
.gate-resume-item:hover, .gate-resume-item:active { border-color: var(--gold-bright); }
.gate-resume-book { display: block; font-family: Cinzel, serif; font-weight: 700; letter-spacing: .06em; font-size: 16px; color: var(--gold-bright); }
.gate-resume-line { display: block; font-family: var(--font-body); font-size: 14.5px; color: #cfd6ea; margin-top: 2px; }
#gate-resume-new { width: 100%; margin-top: 10px; }
#gate-key-row { flex-wrap: wrap; }
#gate-key-row .gate-key-label { flex: 0 0 100%; margin: 0 0 3px; }
#gate-passes-link { font-family: var(--font-ui); font-weight: 800; letter-spacing: .12em; font-size: 14.5px; }
#gate-fj .gate-sub { margin-top: 2px; }
/* Gate height rungs (2026-11-26, B1): the lobby and solo-display
   screens step down at ≤500px and ≤400px viewport heights, and
   the gate — the first screen a new host ever meets — now does
   the same. On Michael's TV class (~380px tall) the un-runged
   card pushed the whole free-game path below its bottom edge
   where the host page cannot scroll to it. The fold (above) made
   the card one row shorter; these rungs make what remains fit:
   emblem, heading, rows and messages step down together, first
   arrival and key-sent states alike, so every gate control is on
   screen at 683x384 and 640x360. */
@media (max-height: 500px) {
  #gate-overlay .gate-card { padding: 16px 26px; }
  #gate-overlay .gate-emblem { width: 72px; height: 72px; }
  #gate-overlay .gate-card h2 { font-size: 21px; margin: 5px 0 2px; }
  #gate-overlay .gate-sub { margin: 7px 0 4px; font-size: 15.5px; }
  #gate-overlay .gate-error, #gate-overlay .gate-msg { min-height: 1.1em; margin: 2px 0; font-size: 15.5px; }
  #gate-overlay .gate-row { margin: 5px 0; }
  #gate-overlay .gate-row input { padding: 9px 12px; font-size: 17px; }
  #gate-overlay .gate-row button { padding: 9px 16px; }
  #gate-overlay .gate-rule { margin: 9px 0 2px; }
  #gate-overlay .gate-toggle { padding: 8px 12px; font-size: 15.5px; margin: 8px 0 3px; }
  #gate-overlay .gate-toggle-sub { font-size: 14.5px; }
  #gate-overlay .gate-path-label { font-size: 13.5px; margin: 8px 0 1px; }
  #gate-overlay .gate-label { font-size: 14.5px; margin: 6px 0 2px; }
  #gate-overlay #gate-passes-link { font-size: 13.5px; }
}
@media (max-height: 400px) {
  #gate-overlay .gate-card { padding: 8px 22px; }
  #gate-overlay .gate-emblem { width: 40px; height: 40px; }
  /* While the free claim stands open (card.fj-open, set by the
     toggle in tv.js), the emblem — decoration, alt="" — gives its
     height to the form: the labeled paths, both labeled fields
     and the footer link then stand on screen together at 640x360
     in the key-sent state, which no honest trim of type alone
     could fit. It returns the moment the fold closes. */
  #gate-overlay .gate-card.fj-open .gate-emblem { display: none; }
  /* …and the open fold's own spacing tightens a step further, so
     the key-sent card's last line (the passes path) clears the
     card's 94vh cap without an internal scroll (measured: the
     uncapped content stands 352px against the cap's 336). */
  #gate-overlay .gate-card.fj-open .gate-toggle { margin-top: 2px; padding-top: 5px; padding-bottom: 5px; }
  #gate-overlay .gate-card.fj-open h2 { margin-bottom: 0; }
  #gate-overlay .gate-card.fj-open .gate-label { margin: 2px 0 1px; }
  #gate-overlay .gate-card.fj-open #gate-fj .gate-sub { margin-top: 1px; }
  #gate-overlay .gate-card.fj-open .gate-row { margin: 2px 0; }
  #gate-overlay .gate-card h2 { font-size: 18px; margin: 3px 0 1px; }
  #gate-overlay .gate-sub { margin: 5px 0 3px; font-size: 14.5px; }
  #gate-overlay .gate-error, #gate-overlay .gate-msg { min-height: 1em; margin: 1px 0; font-size: 14.5px; }
  /* An empty message line reserves nothing at this height — the
     key-sent card needs every pixel for its controls; a message
     still grows its line the moment it lands. */
  #gate-overlay .gate-error:empty, #gate-overlay #gate-code-msg:empty { min-height: 0; margin: 0; }
  #gate-overlay .gate-row { margin: 3px 0; }
  #gate-overlay .gate-row input { padding: 7px 10px; font-size: 16px; }
  #gate-overlay .gate-row button { padding: 7px 14px; font-size: 15px; }
  #gate-overlay .gate-rule { margin: 6px 0 1px; }
  #gate-overlay .gate-toggle { padding: 6px 10px; font-size: 14.5px; margin: 6px 0 2px; }
  #gate-overlay .gate-toggle-sub { font-size: 13.5px; margin-top: 1px; }
  #gate-overlay .gate-path-label { font-size: 12.5px; margin: 6px 0 1px; }
  #gate-overlay .gate-label { font-size: 13.5px; margin: 4px 0 2px; }
  #gate-overlay #gate-passes-link { font-size: 12.5px; }
}
#victory-invite { position: absolute; left: 50%; transform: translateX(-50%); bottom: 128px; text-align: center; color: #f5efdd; background: rgba(7, 15, 42, .82); border: 1px solid rgba(217,180,90,.45); border-radius: 12px; padding: 10px 22px; }
#victory-invite.hidden { display: none; }
#victory-invite p { margin: 0 0 4px; }

/* AAA P9 (2026-11-28): reduced motion — every TV animation and
   transition cuts to its end state. The end states are the
   information: a lit lamp stands lit (its .lit dress), the
   collective address stands fully visible for its whole server
   phase (its fade lived inside the phase, never shortened it),
   the armed/skip affordances stand at full opacity, and the timer
   bars — driven inline by the game clock, not by this file — keep
   draining in real time because the bar IS the reading. JS-paired
   durations (yield, sequenced exits, medallion fade, standings
   swap) keep their values above; under reduced motion they too
   resolve instantly to the same end states. */
@media (prefers-reduced-motion: reduce) {
  .sound-toggle, .strip-qr-card img, .qr-card img, .board-piece, .coin img,
  #question-overlay.yielding, #q-inner, .q-opt,
  #result-overlay.exiting, #answer-verse-overlay.exiting, #gather-glory-overlay.exiting,
  #lamp-overlay.exiting, #jcomplete-overlay.exiting, #jsummary-overlay.exiting,
  #address-overlay.exiting,
  #victory-standings, #dim-veil, #journey-stage .journey-bg,
  #scene-era, #scene-era .era-inner, #scene-era .era-band, #era-img, .era-shade,
  #scene-final, #opening-video, #opening-verse, #gates-title,
  .med-gem-face, #medallion-overlay { transition: none; }
  .lobby-player, #question-overlay, .q-card,
  #announce-overlay, #answer-verse-overlay, #result-overlay, #gather-glory-overlay,
  #address-overlay, #journey-head, #lamp-overlay, #jcomplete-overlay, #jsummary-overlay,
  #medallion-overlay, #gates-overlay,
  .board-piece.hop .piece-mini, .board-piece.active-turn .piece-mini,
  .arrival-ring.go, #announce-piece .piece-mini, #result-piece .piece-mini,
  .lamp-socket.just-lit svg, .kenburns, .final-light, #victory-piece .piece-mini,
  .cross-burst, .cross-burst img, #cross-banner, #cross-stone, #era-skip,
  .med-rays, .med-center, .med-gem.just-earned .med-gem-face,
  #med-stack img#med-burst, #med-base.all-lit, .med-lit-img.just-lit { animation: none; }
}

/* ================================================================
   IVORY READING SURFACES (Michael, ruled 2026-11-29 — built as
   shown in the approved mock, work/ivory-mock/report.md). The
   question card takes an ivory body with ink text; the framed
   category header plate and the dark answer options keep their
   current dress. Values are the site's own: --ivory #fff8e6,
   ink #1c2138, --gold-deep #8a6d1f, --line.
   ================================================================ */
.q-card {
  background: var(--ivory); color: #1c2138;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.65);
  backdrop-filter: none;
}
.q-card .q-meta { color: var(--gold-deep); }
#q-answers-in, #q-answer-note { color: rgba(28,33,56,.66); }
#q-timer { background: rgba(28,33,56,.16); }
/* The reveal verse panel takes ivory too (scope widened by
   Michael, 2026-11-29 — "everything to look the same as far as
   CSS"): after tonight's reorder the Journey discussion stands
   on this page, and the verse now rests on the same paper as the
   teaching block beside it — ivory ground, ink words, the gold
   rule at its left kept. Look Back's verse rides the same panel
   family and takes the same dress. */
#av-verse, #lb-verse { background: var(--ivory); color: #1c2138; }
