/* PATH 714 — phone controller */
body { overflow: hidden; background: radial-gradient(ellipse at 50% -10%, #12235a 0%, var(--navy) 60%); }
#phone-stage { position: fixed; inset: 0; max-width: 560px; margin: 0 auto; }
.pview { position: absolute; inset: 0; overflow-y: auto; padding: 78px 18px 30px; display: none; flex-direction: column; }
.pview.active { display: flex; }
/* THE SLIVER FIX (2026-11-26, Michael's photo of Shanda's phone):
   a .pview is a fixed-height flex column, and flex items shrink by
   default — when a view's content runs taller than the screen, the
   column crushed its last items instead of simply scrolling, and
   BEGIN THE WALK arrived as a thin gold sliver, its text barely
   readable. Children of a scrolling view must never shrink: the
   view scrolls, the furniture keeps its shape. */
.pview > * { flex-shrink: 0; }
.hidden { display: none !important; }
.piece-mini { position: relative; flex: none; width: 46px; height: 46px; }
.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 3px 6px rgba(0,0,0,.5)); }
.piece-mini.big { width: 92px; height: 92px; }

/* join */
#view-join { align-items: center; justify-content: flex-start; padding-top: 50px; }
/* Entry redesign (Michael, 2026-11-26): the emblem rides smaller
   so the traveler card and BOTH doors stand above the fold. */
.join-logo { width: min(100px, 30vw); filter: drop-shadow(0 12px 30px rgba(0,0,0,.6)); }
.traveler-card { margin-top: 10px; padding: 12px 16px; gap: 6px; }
.door-card { margin-top: 8px; padding: 11px 16px; gap: 6px; }
.door-card .solo-record:empty { display: none; }
.door-card .btn-gold { min-height: 52px; padding: 14px 16px; font-size: 17px; width: 100%; }
.door-card .error:empty { min-height: 0; }
.join-card.door-card label { margin-top: 2px; }
.join-card.traveler-card label { margin-top: 0; }
.join-tag { font-style: italic; font-size: 20px; margin: 4px 0 22px; color: var(--ivory); }
.join-card { width: 100%; max-width: 400px; padding: 24px 22px; display: flex; flex-direction: column; gap: 8px; }
.join-card label { font-family: Cinzel, serif; font-size: 12.5px; letter-spacing: .12em; color: var(--gold-bright); margin-top: 10px; }
.join-card input {
  background: rgba(7, 15, 42, .65); border: 1px solid var(--line); border-radius: 10px;
  color: var(--ivory); font-family: "Crimson Pro", serif; font-size: 23px; font-weight: 600;
  padding: 11px 16px; outline: none; width: 100%;
}
.join-card input:focus { border-color: var(--gold-bright); box-shadow: 0 0 0 1px var(--gold); }
#in-code { text-transform: uppercase; letter-spacing: .42em; font-family: Cinzel, serif; font-size: 26px; text-align: center; padding-top: 8px; padding-bottom: 8px; }
#btn-join { padding: 16px; font-size: 17px; margin-top: 10px; }
.error { color: #e07a6a; font-size: 17px; min-height: 20px; text-align: center; font-style: italic; }

/* pick */
.pick-title { text-align: center; font-size: 27px; font-weight: 900; letter-spacing: .05em; }
.pick-sub { text-align: center; font-style: italic; font-size: 19px; color: var(--ivory-dim); margin: 12px 0 10px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.grid button { background: rgba(18,35,90,.5); border: 1px solid rgba(217,180,90,.3); border-radius: 12px; padding: 8px 4px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; transition: all .2s ease; }
.grid button img { width: 76%; aspect-ratio: 1; object-fit: contain; }
.grid button span { font-size: 12.5px; color: var(--ivory); font-family: Cinzel, serif; letter-spacing: .02em; text-align: center; line-height: 1.15; }
.grid button.sel { border-color: var(--gold-bright); background: rgba(217,180,90,.22); box-shadow: 0 0 0 1px var(--gold), 0 6px 18px rgba(0,0,0,.45); }
.grid button.taken { opacity: .28; pointer-events: none; filter: grayscale(.7); }
.grid-ped button img { width: 82%; }
#pick-preview { margin-top: 18px; padding: 14px; display: flex; align-items: center; gap: 16px; }
#pick-status { font-size: 20px; font-style: italic; line-height: 1.35; }

/* knowledge level picker (pick stage + edit my traveler) */
#level-grid { display: flex; flex-direction: column; gap: 9px; }
/* Son / Daughter (2026-11-19): two centered choices in the level
   buttons' dress. Optional — neither lit means no choice, and tapping
   the lit one clears it. */
/* The join form's Son/Daughter pair (2026-11-21): compact radio
   pills riding with the name field, plus the small greeting line. */
.child-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 8px; }
.join-child-btn { padding: 6px 10px; font-size: 15px; border-radius: 10px; }
.join-child-note { font-size: 12.5px; font-style: italic; color: var(--ivory-dim); text-align: center; line-height: 1.45; margin-top: 7px; }
#child-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.child-btn { padding: 12px 10px; border-radius: 12px; background: rgba(18,32,77,.5); border: 1px solid rgba(212,175,55,.3); color: var(--ivory); text-align: center; transition: all .2s ease; font-family: Cinzel, serif; font-size: 18px; font-weight: 700; letter-spacing: .05em; }
.child-btn.sel { border-color: var(--gold-bright); background: rgba(212,175,55,.22); box-shadow: 0 0 0 1px var(--gold), 0 6px 18px rgba(0,0,0,.45); color: var(--gold-bright); }
.level-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 15px; border-radius: 12px; background: rgba(18,35,90,.5); border: 1px solid rgba(217,180,90,.3); color: var(--ivory); text-align: left; transition: all .2s ease; }
.level-btn .lv-name { font-family: Cinzel, serif; font-size: 18px; font-weight: 700; letter-spacing: .05em; color: var(--ivory); }
.level-btn .lv-tag { font-size: 15.5px; font-style: italic; color: var(--ivory-dim); line-height: 1.3; }
.level-btn.sel { border-color: var(--gold-bright); background: rgba(217,180,90,.22); box-shadow: 0 0 0 1px var(--gold), 0 6px 18px rgba(0,0,0,.45); }
.level-btn.sel .lv-name { color: var(--gold-bright); }
.pick-note { text-align: center; font-size: 15.5px; font-style: italic; color: var(--ivory-dim); line-height: 1.4; margin-top: 12px; }

/* play */
/* The one top action (2026-11-21): a small, neat gold pill at the very
   top of the play view, above everything — the Guide's Pause in The
   Gathering (two lines: the word, then what it is for), the mover's
   END TURN in individual play. Same home, same dress, both modes. */
/* Fixed height, button or not: the slot never grows or shrinks,
   so the traveler card below it never jumps when END TURN /
   Pause appears (the version-purity scroll check caught the
   shift, 2026-11-21). 56px fits the two-line Pause button. */
/* The row WRAPS (2026-11-28, Michael's live capture: "Sloppy"):
   in a group study's discussion-pause state the row once carried
   THREE tenants — the "You're the Guide" label, the gold Continue
   pill and TRANSFER GUIDE — wider in one line than the phone.
   The wrap discipline stays, though the Guide-header cleanup
   (2026-11-30) has since emptied the row almost entirely: the
   label is retired (the name card wears the Guide mark), Pause
   rides the corner cluster, and the row's only possible tenants
   are END TURN (Individual) and the slimmed TRANSFER GUIDE
   (the study's Guide, in the .guide-slim seat). The slot is a
   MINIMUM 56px rather than a fixed 56px — so the empty and
   single-button states keep exactly the seat they always had
   and the card below never jumps. No type shrinks; nothing
   crosses an edge. */
#top-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 10px; min-height: 56px; margin-bottom: 6px; flex: none; }
/* The collapsed slot (Michael's space ruling, 2026-11-27;
   widened by the Guide-header cleanup, 2026-11-30): a traveler
   who can never be offered anything in this row folds it away
   entirely and the game starts at the top of the screen. That
   was the Study Journey's Solo and non-Guide travelers; with
   the Pause circle gone to the corner cluster, The Gathering
   folds for everyone too — its row has no tenant left at all.
   The Journey Guide keeps the slot (TRANSFER GUIDE lives
   there), in a slimmer seat (.guide-slim below): the transfer
   is his in every phase, so the seat's size never changes
   under him mid-study and his card never jumps. Individual
   play keeps the full seat exactly as it was (END TURN comes
   and goes there). */
#top-actions.gone { height: 0; min-height: 0; margin-bottom: 0; overflow: hidden; }
#top-actions.guide-slim { min-height: 34px; }
.top-act-btn {
  background: linear-gradient(180deg, #fad77d 0%, #edb249 48%, #cd7f1d 100%);
  color: #241a02; border: 1px solid #fad77d; border-radius: 999px;
  padding: 7px 22px 8px; cursor: pointer; text-align: center;
  font-family: var(--font-ui); font-size: 16px; font-weight: 800; letter-spacing: .12em;
  line-height: 1.1; box-shadow: 0 4px 14px rgba(0,0,0,.4);
  display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.top-act-btn:active { transform: translateY(1px); }
.top-act-btn:disabled { filter: grayscale(.5) brightness(.7); cursor: default; transform: none; }
/* Save Game (2026-11-21): the lobby's pick view carries the same pill
   in its own small row at the top — same dress, same size class. */
#pick-actions { display: flex; justify-content: center; margin-bottom: 10px; }
/* The lobby's save STATE (Addition 3, 2026-12-03): plain text —
   no pill, no border, no shadow, nothing to press. It only ever
   reports where the save stands; the element is a span now. */
.top-act-status {
  font-family: var(--font-ui); font-size: 15px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ivory-dim); padding: 8px 6px; pointer-events: none;
}
.top-act-status.saved { color: var(--gold); }
/* The Guide's lobby-wizard controls (2026-11-26): a quiet panel at
   the top of the pick view — where the room's step is named and the
   two moves live. Only the Guide ever sees it. */
#guide-steps { border: 1px solid rgba(217,180,90,.5); border-radius: 14px; background: linear-gradient(165deg, rgba(14,26,66,.92), rgba(7,15,42,.94)); padding: 12px 14px; margin-bottom: 14px; text-align: center; }
#guide-steps .gs-label { font-size: 16.5px; color: var(--ivory); margin: 0 0 10px; }
#guide-steps .gs-label span { color: var(--gold-bright); font-weight: 700; }
#guide-steps .gs-row { display: flex; gap: 10px; justify-content: center; }
#guide-steps .gs-row button { flex: 1 1 0; max-width: 190px; padding: 11px 10px; font-size: 16px; }
#guide-steps .gs-note { font-size: 14.5px; font-style: italic; color: var(--ivory-dim); margin: 10px 0 0; }
#guide-steps #btn-gs-begin { width: 100%; margin-top: 12px; padding: 13px 10px; font-size: 17px; }
#guide-steps #gs-begin-error { color: #e07a6a; }
/* The Guide's cleaned Journey lobby (Phase 8b, 2026-12-04):
   one screen, no wizard. The study's name is the headline;
   the Begin is the one gold button; the roads are quiet; the
   foot is quietest. Type never shrinks here either. */
#guide-lobby { text-align: center; margin-bottom: 14px; padding: 4px 2px 0; }
#guide-lobby .gl-name { font-family: Cinzel, serif; font-weight: 800; font-size: 27px; line-height: 1.25; color: var(--gold-bright); margin: 2px 0 4px; overflow-wrap: break-word; }
#guide-lobby .gl-standing { font-size: 19px; color: var(--ivory); margin: 0 0 2px; }
#guide-lobby .gl-settings { font-size: 16.5px; color: var(--ivory-dim); margin: 0 0 12px; }
#guide-lobby .gl-ready { font-size: 18px; font-style: italic; color: var(--ivory-dim); line-height: 1.45; margin: 0 0 10px; }
#guide-lobby #btn-gl-begin { width: 100%; padding: 15px 10px; font-size: 18px; }
#guide-lobby .gl-error { color: #e07a6a; font-size: 16.5px; margin: 8px 0 0; }
#guide-lobby .gl-join { margin-top: 16px; }
#guide-lobby .gl-join-line { font-size: 19px; color: var(--ivory); margin: 0 0 8px; }
#guide-lobby .gl-join .btn-ghost, #guide-lobby .gl-road { width: 100%; padding: 12px 10px; font-size: 16.5px; }
#guide-lobby .gl-road { margin-top: 14px; }
#guide-lobby .gl-tv-status { font-size: 15.5px; color: var(--ivory-dim); margin: 6px 0 0; }
/* The wizard card under the cleaned lobby keeps only its
   standing furniture — TRANSFER GUIDE, the travelers, the
   chapter map; the wizard's own children stand down. */
#guide-steps.journey-clean .gs-label, #guide-steps.journey-clean .gs-row,
#guide-steps.journey-clean #gs-begin-note, #guide-steps.journey-clean #btn-gs-begin,
#guide-steps.journey-clean #gs-begin-error, #guide-steps.journey-clean #gs-tv-road { display: none; }
#gl-foot { text-align: center; margin: 2px 0 14px; }
.gl-textlink { background: none; border: none; padding: 10px 8px; font: inherit; font-size: 16.5px; letter-spacing: .04em; color: var(--ivory-dim); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.gl-foot-sep { color: var(--ivory-dim); }
.seat-stats { font-size: 16px; color: var(--ivory); margin: 2px 0 0; text-align: left; }
.seat-stats.dim { font-size: 15px; font-style: italic; color: var(--ivory-dim); }
/* The room's QR sheet (Phase 8b): the code big and bright on
   its white card, as the TV shows it. */
#qr-sheet { position: fixed; inset: 0; z-index: 95; background: rgba(4,8,24,.88); display: flex; align-items: center; justify-content: center; padding: 18px; box-sizing: border-box; }
#qr-sheet.hidden { display: none; }
.qr-sheet-card { text-align: center; width: 100%; max-width: 400px; }
.qr-sheet-code { font-family: Cinzel, serif; font-weight: 800; font-size: 34px; letter-spacing: .18em; color: var(--gold-bright); margin: 0 0 14px; }
.qr-frame { background: #fff; border: 3px solid var(--gold-bright); border-radius: 16px; padding: 14px; display: inline-block; }
.qr-frame img { display: block; width: min(72vw, 320px); height: auto; }
.qr-sheet-note { font-size: 17px; color: var(--ivory); line-height: 1.45; margin: 14px 0; }
.qr-sheet-card .btn-gold { width: 100%; padding: 14px 10px; font-size: 17px; }
/* A saved room's pill sits quiet — still gold, still tappable. */
.top-act-btn.saved { filter: saturate(.45) brightness(.86); }
.top-act-btn .ta-word { font-size: 16px; }
.top-act-btn .ta-sub { font-family: "Crimson Pro", serif; font-size: 13.5px; font-weight: 600; font-style: italic; letter-spacing: .04em; text-transform: none; }
/* The Pause circle (Michael, 2026-11-30: first "Pause button is
   too big. Need circle icon pause and play" — the circle in the
   top-actions slot — then, the same evening's Guide-header
   ruling: "in line with the other circle buttons at the top of
   the screen... nowhere else"). The button now rides the corner
   cluster as a true peer: .corner-btn carries its whole dress
   (52px, the navy gradient, the gold border, the gold-bright
   glyph) and all that remains here is its own machinery — the
   pause⇄play face swap (the .is-paused class, set from state on
   every render) and the words, kept inside as the button's
   accessible name, visually folded away. END TURN and TRANSFER
   GUIDE keep .top-act-btn exactly as they were. */
#btn-pause { position: relative; }
#btn-pause svg { display: block; }
#btn-pause .ic-play { display: none; }
#btn-pause.is-paused .ic-play { display: block; }
#btn-pause.is-paused .ic-pause { display: none; }
#btn-pause .ta-word, #btn-pause .ta-sub {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
/* TRANSFER GUIDE, slimmed (Michael's Guide-header ruling,
   2026-11-30: "if you have to have that, make it smaller...
   slim that down a bit, clean up that button at the top"): with
   the Pause circle gone from this row, the Guide's transfer is
   the row's only tenant in the study, and it wears a slimmer
   pill — the chrome shrinks (padding, shadow), the words do
   not: the label keeps .top-act-btn's full 16px. Scoped to
   #btn-transfer alone: END TURN shares .top-act-btn and keeps
   its full dress. */
#btn-transfer { padding: 3px 16px 4px; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
#me-bar { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border: 1px solid rgba(217,180,90,.45); border-radius: 14px; background: linear-gradient(165deg, rgba(14,26,66,.92), rgba(7,15,42,.94)); }
#me-name { font-size: 23px; font-weight: 700; line-height: 1.05; }
/* The Guide's mark (Michael's Guide-header ruling, 2026-11-30:
   "something significant that says you're the guide, just guide
   though, not anything bigger than that"): ONE small mark beside
   the Guide's name on his own card — a little gold cross, the
   Guide's sign, and the word "Guide" — worn in every mode,
   replacing both the old "✦ Guide" pill and the separate
   "YOU'RE THE GUIDE" header line. No border, no pill ground:
   the cross and the word, quiet against the card. Non-Guides
   wear nothing. */
.coord-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 800; letter-spacing: .05em; color: var(--gold-bright); margin-left: 9px; vertical-align: 3px; white-space: nowrap; }
.coord-badge .coord-cross { display: block; flex: none; }
#me-sub { font-size: 15.5px; color: var(--ivory-dim); font-style: italic; white-space: nowrap; }
/* The traveler card's geometry must not depend on the score's digit
   count: the sub-line used to sit exactly at its wrap threshold, so
   points growing from "0" to "200" stole the pixel that kept it on
   one line and the card grew a second line mid-game. One line,
   always: the info column flexes, the line never wraps, and at phone
   widths the type steps down a touch for the longest strings
   ("Space 49 of 49 · Disciple · 6 of 6 seals"). */
.me-info { flex: 1; min-width: 0; }
#me-points { flex: none; }
@media (max-width: 430px) {
  #me-sub { font-size: 14px; }
  #me-points { font-size: 22px; }
}
#me-points { margin-left: auto; font-family: Cinzel, serif; font-weight: 900; font-size: 24px; color: var(--gold-bright); }
/* The plate's honest absences (Phase 2): "No answers yet" and
   "Not recorded" are words, not numbers — they stand smaller
   in the same gold slot, never shrunk below reading size. */
#me-points.words { font-size: 15px; letter-spacing: .02em; text-align: right; }
#me-seals { display: flex; gap: 6px; margin-top: 6px; }
#me-seals .gem { flex: 1; text-align: center; }
#me-seals .gem-dot { height: 26px; border-radius: 8px; border: 1px solid; display: flex; align-items: center; justify-content: center; font-family: Cinzel, serif; font-size: 11.5px; font-weight: 700; background: rgba(0,0,0,.35); }
#me-seals .gem.sealed .gem-dot { background: linear-gradient(180deg, #f2d98c, #b8912a); color: #241a02 !important; box-shadow: 0 0 12px rgba(242,217,140,.7); }
#me-seals .pips { display: flex; gap: 3px; justify-content: center; margin-top: 3px; }
#me-seals .pip { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,248,230,.18); }
#me-seals .pip.on { background: var(--gold-bright); }
/* The play view does NOT scroll as a whole: the traveler card
   (#me-bar) and the seals row are fixed furniture below the corner
   cluster's reserved band, and only #play-main scrolls — so the card
   can never slide up under the fixed corner buttons and have its
   token or points painted over (Michael's photo, 2026-11-18). Short
   content still centers: auto margins absorb the free space and
   collapse to zero when the content is tall enough to scroll. */
/* The play view's top band gives back 12px (2026-11-28): the
   corner circles sit at the screen's edges, and everything the
   play view paints in its first lines is centered — nothing the
   band protected is touched, and the reveal stack below gains
   the room the closing line needed. */
#view-play { overflow: hidden; padding-top: 66px; padding-bottom: 14px; }
#me-bar { flex: none; }
#me-seals { flex: none; }
/* The reveal's air, tightened (2026-11-28, Michael's live
   capture): with a long teaching card the Journey reveal's closing
   line ("Talk it over…") stood sliced at the bottom of his
   430×932 screen — the stack carried more air than the screen
   had room for. The gap and padding give back ~24px here, the
   verse's doubled margin and the cards' padding give back the
   rest (their own rules below); no letter shrinks anywhere. */
#play-main { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; gap: 8px; padding: 10px 2px; }
#play-main > :first-child { margin-top: auto; }
#play-main > :last-child { margin-bottom: auto; }
/* The lamp key (2026-11-26): a quiet legend spelling out the six
   lamp chips' initials. Its home moved (Michael's space ruling,
   2026-11-27): it no longer stands as fixed furniture at the
   foot of the play view, in the first screenful's way — phone.js
   carries it into the scrolling study itself, after ALL the
   play content, behind a measured spacer (.key-spacer) that
   guarantees it begins below the fold. A player scrolls the
   study to consult it; the question never shares its screen. */
#lamp-key { flex: none; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(217,180,90,.3); text-align: center; font-size: 14px; line-height: 1.55; color: var(--ivory-dim); }
#play-main > #lamp-key { width: 100%; margin-top: 0; }
#play-main > .key-spacer { flex: none; width: 100%; pointer-events: none; }
#lamp-key .lk-item { white-space: nowrap; }
#lamp-key .lk-code { font-family: Cinzel, serif; font-weight: 700; color: var(--gold-bright); margin-right: 4px; }
#lamp-key .lk-sep { color: rgba(217,180,90,.55); margin: 0 7px; }
.big-msg { font-size: 27px; font-weight: 600; line-height: 1.3; }
.big-msg b { color: var(--gold-bright); }
.sub-msg { font-size: 19px; font-style: italic; color: var(--ivory-dim); line-height: 1.4; }
/* The chapter map (Phase 8, 2026-12-04): a primary surface —
   every row is a door, big and tappable, its type never small:
   the chapter's name at reading size, its standing and its
   figures beneath it. The standing chapter wears the gold. */
.chmap { display: flex; flex-direction: column; gap: 10px; width: 100%; margin: 10px 0 4px; }
.chmap-row { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; min-height: 58px; padding: 13px 16px; border-radius: 12px; background: rgba(18,35,90,.55); border: 1px solid rgba(217,180,90,.45); color: var(--ivory); text-align: left; font: inherit; }
button.chmap-row { cursor: pointer; }
button.chmap-row:active { background: rgba(217,180,90,.22); border-color: var(--gold-bright); }
.chmap-row.standing { border-color: var(--gold-bright); background: rgba(217,180,90,.16); }
.chmap-name { font-family: Cinzel, serif; font-weight: 700; font-size: 20px; color: var(--ivory); }
.chmap-row.standing .chmap-name { color: var(--gold-bright); }
.chmap-state { font-size: 17px; color: var(--ivory-dim); }
.chmap-fig { font-size: 17px; color: var(--ivory); }
.chmap-note { font-size: 17px; font-style: italic; color: var(--ivory-dim); line-height: 1.4; }
.chmap-when { font-size: 15px; color: var(--ivory-dim); }
.chmap-head { margin-top: 14px; }
.chmap-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
.chmap-tabs .btn-ghost.on { border-color: var(--gold-bright); color: var(--gold-bright); }
.j-brief-head { font-family: Cinzel, serif; font-weight: 700; font-size: 19px; color: var(--gold-bright); margin: 16px 0 2px; }
.j-brief-weak { font-size: 19px; color: var(--ivory); margin: 8px 0 2px; }
.j-brief-note { font-size: 17px; font-style: italic; color: var(--ivory-dim); margin: 4px 0 10px; }
#lobby-chapter-map { margin-top: 14px; }
/* walk the path — the three challenge paths */
.verse { font-size: 20px; font-style: italic; line-height: 1.45; color: var(--ivory); max-width: 420px; }
.verse span { display: block; font-family: Cinzel, serif; font-style: normal; font-size: 13px; letter-spacing: .22em; color: var(--gold-bright); margin-top: 6px; text-transform: uppercase; }
.path-list { display: flex; flex-direction: column; gap: 11px; width: 100%; }
.path-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 16px 18px; border-radius: 12px; background: rgba(18,35,90,.55); border: 1px solid rgba(217,180,90,.5); color: var(--ivory); text-align: left; transition: all .2s ease; }
.path-btn:active { background: rgba(217,180,90,.22); border-color: var(--gold-bright); }
.path-btn:disabled { opacity: .55; }
.path-btn .path-name { font-family: Cinzel, serif; font-size: 20px; font-weight: 700; letter-spacing: .04em; color: var(--gold-bright); }
.path-btn .path-meta { font-size: 16.5px; color: var(--ivory-dim); }
.path-btn .path-meta b { color: var(--ivory); }
#btn-end-turn { width: 100%; max-width: 340px; padding: 17px 30px; font-size: 19px; margin-top: 6px; animation: glowPulse 2.6s ease-in-out infinite; }
.cat-list { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.cat-btn { display: flex; align-items: center; gap: 13px; padding: 15px 17px; border-radius: 12px; background: rgba(18,35,90,.55); border: 1px solid; color: var(--ivory); font-size: 21px; font-weight: 600; text-align: left; }
.cat-btn .cdot { width: 17px; height: 17px; border-radius: 50%; flex: none; box-shadow: 0 0 10px rgba(0,0,0,.4) inset; }
.cat-btn .cat-name { flex: 1; }
.cat-btn .cat-state { margin-left: auto; font-size: 15.5px; font-weight: 600; color: var(--ivory-dim); letter-spacing: .04em; white-space: nowrap; }
.cat-btn .cat-state.sealed { color: var(--gold-bright); }
#btn-skip-era { margin-top: 16px; padding: 12px 34px; font-size: 16px; letter-spacing: .18em; }
.q-prompt { font-size: 25px; font-weight: 600; line-height: 1.32; }
.q-cat { font-family: var(--font-ui); font-weight: 800; letter-spacing: .18em; font-size: 13.5px; text-transform: uppercase; color: var(--gold-bright); }
/* The KJV-wording tag (2026-12-02): a small pill in the question's
   meta line, worn only by Finish-the-Verse questions. */
.kjv-tag { display: inline-block; border: 1px solid var(--gold); border-radius: 999px; padding: 0 7px; margin-left: 4px; font-size: 12px; letter-spacing: .12em; color: var(--gold-bright); white-space: nowrap; vertical-align: 1px; }
.opt-list { display: flex; flex-direction: column; gap: 11px; width: 100%; }
.opt-btn { display: flex; align-items: center; gap: 13px; 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: 16px; font-size: 21px; font-weight: 600; line-height: 1.25; font-family: "Crimson Pro", serif; }
.opt-btn .letter { flex: none; width: 36px; height: 36px; 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: 18px; color: var(--gold-bright); }
.opt-btn.picked { box-shadow: 0 0 0 3px var(--gold-bright); }
.opt-btn.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); }
.opt-btn.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); }
.opt-btn.dim { opacity: .45; }
.timer-track { position: relative; width: 100%; height: 7px; border-radius: 4px; background: rgba(255,248,230,.14); overflow: hidden; }
/* the three bonus zones as quiet tints, mirroring the TV bar */
.timer-track .q-zone { position: absolute; top: 0; bottom: 0; width: 33.34%; }
.timer-track .q-zone.z-first { right: 0; background: rgba(242,217,140,.30); }
.timer-track .q-zone.z-second { left: 33.33%; background: rgba(224, 156, 52, .26); }
.timer-track .q-zone.z-third { left: 0; background: rgba(198, 84, 44, .30); }
.timer-fill { position: relative; z-index: 1; height: 100%; width: 100%; opacity: .94; background: linear-gradient(90deg, #b8912a, #f2d98c); }
/* The seal ceremony on the phone (2026-11-19 evening): the TV's
   accolade and medallion cinematic, scaled to the hand — rays, the
   master medallion with the earner's lit seals, the new seal
   lighting last (the TV's litIn motion), and the same words. It
   lives exactly as long as the server's ceremony phase. */
/* flex: none is load-bearing: #play-main is a flex column, and an
   overflow:hidden flex item's automatic minimum height is 0 — the
   ceremony was the one shrinkable item in the column and got
   crushed to a 36px sliver (content clipped) whenever the column
   overflowed. As a non-shrinking item it keeps its full height
   and the column scrolls, as designed. */
.seal-ceremony { flex: none; position: relative; overflow: hidden; width: 100%; max-width: 430px; padding: 20px 10px 16px; border-radius: 14px; background: radial-gradient(ellipse at 50% 42%, rgba(10,18,44,.92) 0%, rgba(4,7,18,.97) 80%); animation: sealFadeIn .35s ease; }
@keyframes sealFadeIn { from { opacity: 0; } to { opacity: 1; } }
.seal-rays { position: absolute; left: 50%; top: 42%; width: 120vw; height: 120vw; max-width: 520px; max-height: 520px; 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: sealRaysSpin 46s linear infinite; }
@keyframes sealRaysSpin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
.seal-kicker { position: relative; font-family: Cinzel, serif; letter-spacing: .34em; font-size: 13px; color: var(--ivory); text-shadow: 0 2px 12px #000; }
.seal-stack { position: relative; width: min(62vw, 270px); aspect-ratio: 1; margin: 12px auto 8px; filter: drop-shadow(0 14px 30px rgba(0,0,0,.85)); }
.seal-stack img { position: absolute; inset: 0; width: 100%; height: 100%; }
.seal-stack img.seal-burst { inset: auto; left: -26%; top: -26%; width: 152%; height: 152%; mix-blend-mode: screen; opacity: .7; animation: sealBurstGlow 3.4s ease-in-out infinite; pointer-events: none; }
@keyframes sealBurstGlow { 0%,100% { opacity: .38; transform: scale(1); } 50% { opacity: .95; transform: scale(1.05); } }
.seal-lit.just-lit { animation: sealLitIn 3.4s ease both; }
@keyframes sealLitIn { 0% { opacity: 0; filter: brightness(2.4); } 30% { opacity: 1; filter: brightness(2); } 55% { filter: brightness(1.25); } 100% { opacity: 1; filter: brightness(1); } }
.seal-title { position: relative; font-family: Cinzel, serif; font-weight: 900; font-size: 24px; line-height: 1.2; color: var(--gold-bright); filter: drop-shadow(0 6px 18px rgba(0,0,0,.85)); }
.seal-sub { position: relative; font-style: italic; font-size: 17px; color: var(--ivory); margin-top: 5px; text-shadow: 0 2px 10px #000; }
.result-banner { font-family: Cinzel, serif; font-weight: 900; font-size: 31px; letter-spacing: .05em; line-height: 1; }
.result-banner.good { color: var(--gold-bright); text-shadow: 0 0 24px rgba(242,217,140,.5); }
.result-banner.bad { color: #e07a6a; }
.explain { font-size: 20px; font-style: italic; line-height: 1.38; background: var(--ivory); color: #1c2138; border-radius: 12px; padding: 10px 16px; text-align: left; }
/* Look Back (2026-11-29): the Guide's door stands full-width under
   the settled page, and the review's own controls — Back, Forward,
   Done — stand in one row at the reading size every study control
   uses. Nothing here shrinks: the row wraps rather than squeezes. */
.look-back-open { width: 100%; min-height: 52px; margin-top: 14px; font-size: 17px; }
.look-back-kicker { font-family: Cinzel, serif; font-weight: 900; font-size: 24px; letter-spacing: .08em; color: var(--gold-bright); }
.look-back-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.look-back-controls button { flex: 1 1 100px; min-height: 52px; margin-top: 0; font-size: 17px; }
.look-back-controls button:disabled { opacity: .45; cursor: default; }
.explain .ref { display: block; font-family: Cinzel, serif; font-style: normal; letter-spacing: .22em; font-size: 14px; color: var(--gold-bright); text-transform: uppercase; margin-bottom: 6px; }
/* The teaching label (2026-12-02): the explanation card opens with
   "The Teaching — in our own words" so game-written words are never
   mistaken for the verse above them. It is deliberately NOT a .ref:
   the citation prints once per reveal, on the verse card alone
   (Michael, 2026-11-26). The card is ivory in every context, so
   the label takes gold-deep, the accent that reads on ivory. */
.explain .teach-label { display: block; font-family: Cinzel, serif; font-style: normal; font-weight: 700; letter-spacing: .22em; font-size: 14px; color: var(--gold-deep); text-transform: uppercase; margin-bottom: 6px; }
.verse { margin-top: 0; padding: 10px 14px; border-left: 3px solid var(--gold); background: rgba(217,180,90,.07); border-radius: 0 10px 10px 0; text-align: left; }
.verse .ref { display: block; font-family: Cinzel, serif; letter-spacing: .18em; font-size: 12.5px; color: var(--gold-bright); text-transform: uppercase; margin-bottom: 5px; }
/* The reveal verse's citation sits UNDER its verse (Michael,
   2026-11-19 evening) — the verse first, its name beneath it:
   never a label floating above the words it names. */
.verse .ref.cite { margin-bottom: 0; margin-top: 3px; }
.verse p { font-family: "Crimson Pro", Georgia, serif; font-size: 21px; line-height: 1.35; color: var(--ivory); }
.standings { width: 100%; }
.standings .vs-row { display: flex; justify-content: space-between; font-size: 20px; padding: 6px 2px; border-bottom: 1px solid rgba(217,180,90,.16); }
.standings .vs-row b { color: var(--gold-bright); font-family: Cinzel, serif; font-size: 17px; }

/* join — QR-confirmed code + plain-text link buttons */
#in-code.locked { border-color: var(--gold-bright); background: rgba(217,180,90,.13); color: var(--gold-bright); box-shadow: 0 0 0 1px var(--gold); }
.link-btn { background: none; border: none; color: var(--ivory-dim); font-family: "Crimson Pro", serif; font-size: 16.5px; font-style: italic; text-decoration: underline; text-underline-offset: 3px; padding: 6px 4px; align-self: center; }
.link-btn:hover { color: var(--gold-bright); }

/* rejoin the path */
.rejoin-card { width: 100%; max-width: 400px; padding: 20px 22px; margin-bottom: 18px; text-align: center; border-color: var(--gold); box-shadow: 0 0 0 1px rgba(217,180,90,.35), 0 24px 60px rgba(0,0,0,.6); }
.rejoin-title { font-family: Cinzel, serif; font-size: 16px; letter-spacing: .18em; color: var(--gold-bright); }
.rejoin-room { font-size: 21px; font-style: italic; color: var(--ivory); margin-top: 6px; }
.rejoin-room span { font-family: Cinzel, serif; font-style: normal; font-weight: 900; letter-spacing: .3em; color: var(--ivory); }
#btn-rejoin { width: 100%; padding: 15px; font-size: 16.5px; margin-top: 14px; }
.rejoin-note { font-size: 16.5px; font-style: italic; color: var(--ivory-dim); margin-top: 10px; }

/* corner actions — top-right cluster mirroring the back-home circle top-left */
#corner-actions { position: fixed; top: 16px; right: 16px; z-index: 70; display: flex; gap: 10px; }
.corner-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-bright); font-family: Cinzel, serif; font-size: 24px; font-weight: 700;
  background: linear-gradient(165deg, rgba(14,26,66,.88), rgba(7,15,42,.9));
  border: 1px solid rgba(217,180,90,.6);
  box-shadow: 0 10px 26px rgba(0,0,0,.5);
  transition: all .2s ease;
}
.corner-btn:hover { border-color: var(--gold-bright); color: #fff; }
/* The Save disc's saved state (2026-11-27): once the room is
   pinned, the disc itself turns gold — the pill's quiet "Saved"
   read, in the corner cluster's own language. */
#btn-save-corner.saved { background: linear-gradient(180deg, #fad77d, #cd7f1d); color: #241a02; border-color: #fad77d; }
/* The End circle while the sitting is closing (2026-11-27;
   restyled by the trap fix, 2026-11-27): an armed End is a tap
   that WORKED, so it reads lit — the Save disc's own saved-gold,
   at full strength, breathing a gold ring. The first styling
   dimmed it like a disabled button, and the player read his
   registered tap as a dead one; armed never looks dead again. */
#btn-end-sitting-corner.ending {
  background: linear-gradient(180deg, #fad77d, #cd7f1d);
  color: #241a02; border-color: #fad77d; opacity: 1;
  animation: endCirclePulse 1.6s ease-in-out infinite;
}
@keyframes endCirclePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(250,215,125,.55), 0 10px 26px rgba(0,0,0,.5); }
  50% { box-shadow: 0 0 0 7px rgba(250,215,125,0), 0 10px 26px rgba(0,0,0,.5); }
}
/* The one plain line that stands while a sitting is ending
   (trap fix, 2026-11-27): the flag, said out loud where the
   Guide can see it. */
.ending-note { color: var(--gold-bright); font-weight: 700; font-style: normal; }
#leave-confirm { position: fixed; top: 78px; right: 16px; z-index: 71; width: 248px; padding: 16px; text-align: center; }
.leave-q { font-size: 21px; font-weight: 600; margin-bottom: 12px; }
.leave-row { display: flex; gap: 10px; }
.leave-row button { flex: 1; padding: 11px 0; font-size: 15px; }

/* how to play sheet */
#help-sheet { position: fixed; inset: 0; z-index: 80; background: rgba(3,6,16,.74); display: flex; align-items: flex-start; justify-content: center; padding: 84px 16px 26px; overflow-y: auto; }
.help-card { position: relative; width: 100%; max-width: 480px; padding: 26px 24px 20px; }
.help-card h2 { font-size: 24px; font-weight: 900; letter-spacing: .06em; text-align: center; margin-bottom: 8px; }
.help-card h3 { font-family: Cinzel, serif; font-size: 13.5px; letter-spacing: .2em; color: var(--gold-bright); margin: 16px 0 4px; }
.help-card p { font-size: 18.5px; line-height: 1.45; }
.help-card p b { color: var(--gold-bright); }
.help-note { font-style: italic; color: var(--ivory-dim); margin-top: 16px; text-align: center; }
.help-logo { display: block; width: 84px; margin: 2px auto 10px; filter: drop-shadow(0 8px 20px rgba(0,0,0,.55)); }
.help-quick { border: 1px solid rgba(212,175,55,.4); border-radius: 10px; background: rgba(212,175,55,.07); padding: 12px 14px; line-height: 1.55; }
#btn-help-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; background: rgba(12,23,56,.72); color: var(--ivory); border: 1px solid rgba(212,175,55,.55); font-size: 16px; }
#btn-help-close:hover { border-color: var(--gold-bright); color: #fff; }

/* edit my traveler */
#edit-bar { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
#edit-bar label { font-family: Cinzel, serif; font-size: 12.5px; letter-spacing: .22em; color: var(--gold-bright); margin-top: 6px; }
#edit-bar input {
  background: rgba(7, 15, 42, .65); border: 1px solid var(--line); border-radius: 10px;
  color: var(--ivory); font-family: "Crimson Pro", serif; font-size: 23px; font-weight: 600;
  padding: 13px 16px; outline: none; width: 100%;
}
#edit-bar input:focus { border-color: var(--gold-bright); box-shadow: 0 0 0 1px var(--gold); }
#btn-save-traveler { width: 100%; padding: 15px; font-size: 16.5px; margin-top: 16px; }
#btn-cancel-edit { margin-top: 8px; }
#btn-edit { margin-top: 8px; padding: 12px 26px; font-size: 14.5px; letter-spacing: .14em; }

/* ================================================================
   PHONE-ONLY BUILD (2026-11-23): the double audit's fix list.
   Own-moments audio furniture and the cinematic moments carried
   onto the player's own phone — the opening, the walk follow-view,
   the era card, the Final Challenge staging, and the golden gates
   film. Films are NEVER cropped: they fit whole (contain) over
   the game's navy. (The landscape invitation that once rode these
   beats was removed entirely by Michael's ruling, 2026-11-26 —
   portrait is a complete experience, never a prompt to turn.)
   ================================================================ */

/* the sound toggle's off state reads at a glance */
#btn-sound-phone.off { color: var(--ivory-dim); border-color: rgba(217,180,90,.3); }

/* ---------- the opening cinematic, on every phone ---------- */
.p-opening { position: relative; flex: none; width: 100%; height: min(58vh, 520px); border-radius: 14px; overflow: hidden; background: radial-gradient(ellipse at 50% 42%, #0c183d 0%, #04060f 78%); border: 1px solid rgba(217,180,90,.25); }
#p-opening-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: transparent; opacity: 0; transition: opacity 1.4s ease; }
#p-opening-video.on { opacity: 1; }
#p-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 8vw; background: radial-gradient(ellipse at 50% 42%, #0c183d 0%, #04060f 78%); transition: opacity 1.6s ease; }
#p-opening-verse.lifted { opacity: 0; pointer-events: none; }
#p-opening-text { font-family: "Crimson Pro", Georgia, serif; font-size: clamp(23px, 6.4vw, 32px); line-height: 1.35; color: var(--ivory); text-shadow: 0 2px 22px rgba(0,0,0,.9); }
#p-opening-text::before { content: "\201C"; }
#p-opening-text::after { content: "\201D"; }
#p-opening-ref { font-family: Cinzel, serif; letter-spacing: .42em; font-size: 13px; margin-top: 24px; }
/* The opening in portrait (Michael's ruling, 2026-11-26): Eden
   starts the game on phones too — an upright phone's film window
   is the VERTICAL Eden painting standing full-bleed, exactly the
   Gates still's discipline: the panel bleeds to the phone's edges
   and stands the full play-area tall, the painting covers it
   whole, the verse stands on the dark before it and the screen
   rests dark after it. No film is wired on this path — nothing
   to tap full-screen, and nothing invites a turn. */
.p-opening.p-opening-v { height: 100%; min-height: 480px; width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); border-radius: 0; border-left: none; border-right: none; }
#p-opening-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
#p-opening-still.on { opacity: 1; }

/* ---------- the walk: a follow-view that travels with the piece ---------- */
.walk-view { position: relative; flex: none; width: 100%; max-width: 430px; height: 290px; overflow: hidden; border-radius: 14px; border: 1px solid rgba(217,180,90,.45); background: #04060f; box-shadow: 0 18px 44px rgba(0,0,0,.55); }
.walk-stage { position: absolute; left: 0; top: 0; will-change: transform; }
.walk-board { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.walk-stones, .walk-fx { position: absolute; inset: 0; }
.walk-stone { position: absolute; width: 3%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: rgba(255,248,230,.30); box-shadow: 0 0 4px rgba(0,0,0,.5); transition: background .3s ease, box-shadow .3s ease; }
.walk-stone.lit { background: #ffeeb0; box-shadow: 0 0 16px 4px rgba(242,217,140,.85); }
.walk-stone.sevenlit { background: #ffeeb0; box-shadow: 0 0 20px 6px rgba(255,226,130,.95); }
.walk-piece { position: absolute; width: 4.4%; aspect-ratio: 1; transform: translate(-50%, -88%); z-index: 5; pointer-events: none; }
.walk-piece .piece-mini { width: 100%; height: 100%; filter: drop-shadow(0 8px 12px rgba(0,0,0,.6)); }
.walk-ring { position: absolute; width: 9%; 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); }
.walk-ring.go { animation: walkRingExpand 1.35s ease-out both; }
@keyframes walkRingExpand { 0% { opacity: .95; transform: translate(-50%, -50%) scale(.35); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(2); } }

/* ---------- the era ceremony, on the crosser's phone ----------
   (Michael's ruling, 2026-11-28: EDGE TO EDGE ONLY — the painting
   fills the whole screen in both orientations; no card, no frame,
   no 16:9 letterbox inside a panel.) One treatment for both
   orientations, the portrait full-bleed of 2026-11-26 carried to
   landscape: the panel bleeds to the phone's edges and stands a
   full play-area tall (height: 100% of #play-main's own height, so
   it tracks the header cluster exactly); a portrait phone stands
   on the era's VERTICAL painting, a landscape phone on the
   landscape slot — each covers its screen whole. The era's
   titling rides over the painting's calm lower reaches on a dusk
   shade that rises only as high as the words need. #play-main
   scrolls, so the skip button and the discussion rest beneath
   the stage.
   THE WORDS' CHOREOGRAPHY (the same ruling): the painting fades
   in; the words fade in over the shade, hold while the room
   reads, fade out; then the painting fades out too, and the beat
   rests black until the server's era phase ends. The stages are
   classes armed from the server's own era clock (armEraCardP in
   phone.js, off the game:era event's durationMs — the seal
   ceremony's discipline): cw-armed (words held back), cw-in
   (words standing), cw-out (words gone), cp-out (painting gone).
   With no clock (a phone that landed mid-era from a snapshot) no
   class is ever added and the words simply stand, as they did
   before the ruling. */
.p-era { position: relative; flex: none; height: 100%; min-height: 480px; width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); border-radius: 0; overflow: hidden; background: #04060f; animation: sealFadeIn .35s ease; }
.p-era-img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity 1.6s ease; }
.p-era-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 76px 20px 20px; text-align: center; background: linear-gradient(to top, rgba(3,5,14,.92) 0%, rgba(3,5,14,.66) 54%, transparent 100%); transition: opacity 1.1s ease; }
.p-era-kicker { font-family: Cinzel, serif; letter-spacing: .4em; font-size: 12px; color: var(--ivory); }
.p-era-name { font-family: Cinzel, serif; font-weight: 900; font-size: 27px; letter-spacing: .05em; line-height: 1.12; margin-top: 5px; }
.p-era-caption { font-size: 18.5px; font-style: italic; color: var(--ivory); margin-top: 6px; }
.p-era-caption b { color: var(--gold-bright); font-style: normal; }
.p-era-verse { font-family: "Crimson Pro", Georgia, serif; font-size: 21.5px; line-height: 1.35; color: var(--ivory); margin-top: 13px; }
.p-era-verse::before { content: "\201C"; }
.p-era-verse::after { content: "\201D"; }
.p-era-ref { font-family: Cinzel, serif; font-size: 12.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-bright); margin-top: 10px; padding-top: 9px; border-top: 1px solid rgba(217,180,90,.45); }
.p-era .p-era-kicker, .p-era .p-era-name, .p-era .p-era-caption, .p-era .p-era-verse { text-shadow: 0 2px 16px rgba(0,0,0,.85); }
.p-era.cw-armed .p-era-body { opacity: 0; }
.p-era.cw-in .p-era-body { opacity: 1; transition-duration: .9s; }
.p-era.cw-out .p-era-body { opacity: 0; }
.p-era.cp-out .p-era-img { opacity: 0; }
.p-era.snap .p-era-body, .p-era.snap .p-era-img { transition: none; }

/* ---------- Final Challenge staging, on the challenger's phone ---------- */
.final-stage { flex: none; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.final-stage .seal-ceremony { width: 100%; }
.final-stage .seal-ceremony.dimmed .seal-stack, .final-stage .seal-ceremony.dimmed .seal-rays { filter: brightness(.5) saturate(.7); }
/* The Final Challenge staging (the cine beat): edge to edge like
   every ceremony surface since Michael's 2026-11-28 ruling — the
   stage fills the screen, no card, no frame. The cinematic
   painting itself stands WHOLE inside the stage (contain — the
   never-cropped discipline this composed frame has always kept);
   what the ruling removes is the panel it used to sit in. The
   caption fades in over the dusk shade at the foot. */
.p-cine { position: relative; flex: none; height: 100%; min-height: 480px; width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); border-radius: 0; overflow: hidden; background: #04060f; animation: sealFadeIn .35s ease; }
.p-cine-img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; background: #04060f; }
.p-cine-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 76px 20px 20px; text-align: center; background: linear-gradient(to top, rgba(3,5,14,.92) 0%, rgba(3,5,14,.66) 54%, transparent 100%); animation: cerWordsInP .9s ease .3s both; }
.p-cine-cap .big-msg, .p-cine-cap .sub-msg { text-shadow: 0 2px 16px rgba(0,0,0,.85); }
@keyframes cerWordsInP { from { opacity: 0; } to { opacity: 1; } }

/* ---------- the Study Journey's lamps, on the phone (2026-11-23) ----------
   The seal ceremony's furniture, six lamp pips in a row — the one
   just lit burns brightest. The End the Journey pill (lobby) wears
   the top-action shape in a warning red. */
.lamp-row { display: flex; justify-content: center; gap: 10px; margin: 14px 0 6px; }
.lamp-pip { font-size: 26px; line-height: 1; color: rgba(255,248,230,.25); }
.lamp-pip.lit { color: var(--gold-bright); text-shadow: 0 0 12px rgba(242,217,140,.8); }
.lamp-pip.just-lit { animation: lampKindleP 2.4s ease both; }
@keyframes lampKindleP { 0% { transform: scale(1.5); text-shadow: 0 0 26px rgba(242,217,140,1); } 100% { transform: scale(1); } }
.top-act-btn.danger { border-color: rgba(224,122,106,.55); color: #e07a6a; }

/* ---------- the golden gates, on the finisher's phone ---------- */
/* The gates ceremony's landscape form (2026-11-28, the edge-to-
   edge ruling): the same full-bleed stage the portrait form has
   always worn — the film fills the screen's own frame, whole
   (contain, never cropped), with no card around it. The portrait
   rules below (.p-gates-v) override the poster to cover for the
   vertical still's frame, as before. */
.p-gates { position: relative; flex: none; height: 100%; min-height: 480px; width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); border-radius: 0; overflow: hidden; background: #04060f; animation: sealFadeIn .35s ease; }
#p-gates-video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; background: #04060f; }
#p-gates-video.gone { display: none; }
.p-gates .p-gates-poster { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; background: #04060f; }
.p-gates-inner { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; padding: 34px 14px 13px; background: linear-gradient(to top, rgba(3,5,14,.88) 0%, rgba(3,5,14,.55) 52%, transparent 100%); pointer-events: none; }
.p-gates-kicker { font-family: Cinzel, serif; letter-spacing: .34em; font-size: 12.5px; color: var(--ivory); text-shadow: 0 2px 14px #000; }
#p-gates-title { font-size: clamp(24px, 6.8vw, 34px); font-weight: 900; letter-spacing: .03em; line-height: 1.12; margin-top: 5px; filter: drop-shadow(0 8px 22px rgba(0,0,0,.9)); opacity: 0; transition: opacity 1.6s ease; }
#p-gates-title.welcome-in { opacity: 1; }
/* The gates ceremony in portrait: the VERTICAL Gates painting
   full-bleed (2026-11-26) — the era verticals' treatment carried
   to the win moment. The panel bleeds to the phone's edges and
   stands the full play-area tall (height: 100% of #play-main, so
   it tracks the header cluster exactly); the painting covers it
   whole, and the kicker and the Father's welcome ride over the
   painting's bright lower path on the deepened navy scrim — the
   era card's body treatment — so the words keep their backing.
   The sub-line rests beneath the stage in the scroll, as the era
   skip and discussion rest beneath theirs. If the still cannot
   load, the open-gates poster takes the same frame whole (cover)
   — never a broken box. */
.p-gates.p-gates-v { position: relative; flex: none; height: 100%; min-height: 480px; width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); border-radius: 0; border-left: none; border-right: none; }
.p-gates-still { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.p-gates-still.gone { display: none; }
.p-gates.p-gates-v .p-gates-poster { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.p-gates.p-gates-v .p-gates-inner { padding: 76px 20px 20px; background: linear-gradient(to top, rgba(3,5,14,.92) 0%, rgba(3,5,14,.66) 54%, transparent 100%); }
.p-gates.p-gates-v .p-gates-kicker { text-shadow: 0 2px 16px rgba(0,0,0,.85); }
.gates-thumb { flex: none; width: 100%; max-width: 430px; border-radius: 14px; border: 1px solid rgba(217,180,90,.5); box-shadow: 0 14px 34px rgba(0,0,0,.55); display: block; }

/* ---------- the Study Journey's ground, on the phone ----------
   (Michael's ruling, 2026-11-26: Journey backgrounds are the era
   paintings, on phone and big screen alike.) The TV's discipline
   carried over: two painting layers crossfade when the walk
   crosses into a book of another era, and the change can only
   land at a question boundary because the state's current book
   only changes when a new book's round begins. A portrait phone
   stands on the era's VERTICAL painting; a landscape phone on
   the landscape slot the TV era moments use. The navy scrim over
   the painting keeps the study's words their backing — the
   furniture that already wears a panel keeps it, and the bare
   text lines take the era cards' own medicine (a soft dark halo)
   plus a deeper backing for the verse and the teaching, only
   while the ground stands (body.jbg-on), so the race modes'
   screens are byte-for-byte the screens they were. */
#journey-stage-p { position: absolute; inset: 0; overflow: hidden; }
#journey-stage-p.hidden { display: none; }
#journey-stage-p .journey-bg-p { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
#journey-stage-p .journey-bg-p.on { opacity: 1; }
#journey-stage-p .journey-scrim-p { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,10,24,.58) 0%, rgba(6,10,24,.66) 55%, rgba(4,7,18,.78) 100%); }
body.jbg-on #play-main .big-msg, body.jbg-on #play-main .sub-msg, body.jbg-on #play-main .q-prompt,
body.jbg-on #play-main .q-cat, body.jbg-on #play-main .result-banner { text-shadow: 0 2px 16px rgba(0,0,0,.85), 0 1px 4px rgba(0,0,0,.9); }
body.jbg-on #play-main .verse { background: linear-gradient(165deg, rgba(14,26,66,.88), rgba(7,15,42,.9)); border: 1px solid rgba(217,180,90,.45); border-left: 3px solid var(--gold); border-radius: 10px; padding: 10px 14px; }
body.jbg-on #play-main .explain { background: var(--ivory); border: 1px solid var(--ivory); border-radius: 12px; padding: 10px 16px; }
body.jbg-on #lamp-key { background: linear-gradient(165deg, rgba(14,26,66,.85), rgba(7,15,42,.88)); border: 1px solid rgba(217,180,90,.4); border-radius: 10px; padding: 8px 12px; }
/* The study's compact head (Michael's space ruling, 2026-11-27):
   while the era painting stands, the traveler card and the lamp
   row sit a touch tighter, so the question and its answers hold
   the screen from top to bottom. Journey only — body.jbg-on
   stands only under a study. */
body.jbg-on #me-bar { padding: 9px 12px; }
body.jbg-on #me-seals { margin-top: 7px; }

/* ---------- the era moment, on the phone ----------
   (Michael's ruling, 2026-11-27: "When the era images come on, I
   want it full bleed with the audio sound behind it… if they're
   playing just on their phone, they have to be immersed in that
   audio visual.") At a sitting's opening, and when the walk
   crosses into a new era's book, the era painting stands ALONE:
   the scrim lifts, the study's furniture fades away, and the
   era's own music (era-full-N, the TV era ceremony's piece)
   sounds behind it — then, on its own clock or any tap, the
   moment expires and the painting settles into the dimmed
   background it remains as during play. The corner cluster
   stays: the sound switch must never leave the traveler's
   reach while music plays. */
#journey-stage-p .journey-scrim-p { transition: opacity 1.1s ease; }
body.era-moment #journey-stage-p .journey-scrim-p { opacity: 0; }
#view-play > #top-actions, #view-play > #me-bar, #view-play > #me-seals, #view-play > #ptv-box, #view-play > #play-main { transition: opacity .9s ease; }
body.era-moment #view-play > #top-actions, body.era-moment #view-play > #me-bar,
body.era-moment #view-play > #me-seals, body.era-moment #view-play > #ptv-box,
body.era-moment #view-play > #play-main { opacity: 0; pointer-events: none; }

/* The era ceremony's words, on the phone's Journey stage
   (Michael's ruling, 2026-11-28): while the moment stands, the
   era's titling rides over the painting on a dusk shade that
   rises from the foot only as high as the words need — the
   approved Egypt treatment. The layer rests invisible; the
   moment's clock (startEraMomentP in phone.js) fades it in,
   holds it while the room reads (the hold scales with the
   verse's own length), fades it out, and leaves the painting
   standing clean for a breath before the study's furniture
   returns and the question stands over the painting. */
#journey-era-words { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; padding: 76px 20px 22px; background: linear-gradient(to top, rgba(3,5,14,.92) 0%, rgba(3,5,14,.66) 54%, transparent 100%); opacity: 0; transition: opacity .9s ease; pointer-events: none; }
#journey-era-words.on { opacity: 1; }
#journey-era-words .p-era-kicker, #journey-era-words .p-era-name, #journey-era-words .p-era-verse { text-shadow: 0 2px 16px rgba(0,0,0,.85); }
/* The standing line (Phase 6, 2026-12-04): where the group
   stands in the book, spoken under the era's words at a
   sitting's opening — book and passage, question N of M. It
   stands only on an opening beat; a crossing beat leaves it
   empty and the era's words stand alone. */
.p-era-standing { font-family: Cinzel, serif; font-size: 15px; letter-spacing: .12em; color: var(--ivory); margin-top: 12px; text-shadow: 0 2px 16px rgba(0,0,0,.85); }
.p-era-standing:empty { display: none; }

/* ---------- the collective address, on the phone ----------
   (Michael, 2026-11-30: the phone gets the host screen's
   devotional too.) The Gathering's beat stands the board
   painting edge to edge — the painting the host screen shows at
   this beat — under a scrim that deepens to the foot, where the
   Father's line stands in gold over the era words' own dusk
   shade, fading on the TV beat's clock (in by 9%, held, out at
   the end of the 8-second beat; the phase change clears the
   layer itself). The Journey's beat uses the same line dress
   (.addr-line-p) in flow, over its standing era painting. */
#address-stage-p { position: absolute; inset: 0; overflow: hidden; }
#address-stage-p.hidden { display: none; }
#address-stage-p .addr-bg-p { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#address-stage-p .addr-shade-p { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,10,24,.42) 0%, rgba(6,10,24,.30) 45%, rgba(4,7,18,.88) 100%); }
.addr-words-p { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; padding: 76px 20px 26px; background: linear-gradient(to top, rgba(3,5,14,.92) 0%, rgba(3,5,14,.66) 54%, transparent 100%); }
.addr-line-p { font-size: 30px; font-weight: 600; line-height: 1.3; color: var(--gold-bright); text-wrap: balance; text-shadow: 0 0 34px rgba(242,217,140,.35), 0 2px 16px rgba(0,0,0,.85); margin: 0; animation: addrBeatP 8s ease both; }
@keyframes addrBeatP { 0% { opacity: 0; } 9% { opacity: 1; } 91% { opacity: 1; } 100% { opacity: 0; } }
#journey-address-words { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; padding: 76px 20px 22px; background: linear-gradient(to top, rgba(3,5,14,.92) 0%, rgba(3,5,14,.66) 54%, transparent 100%); opacity: 0; transition: opacity .7s ease; pointer-events: none; }
#journey-address-words.on { opacity: 1; }

/* ---------- the seal ceremony in landscape: scale to fit, no scroll ----------
   Portrait is the ceremony's natural home; turned sideways, the
   whole ceremony composes as one full-view layer — medallion at
   the left, its words at the right — entirely inside the window
   (the audit measured 754px of content in a 99px-tall window). */
@media (orientation: landscape) and (max-height: 500px) {
  #play-main .seal-ceremony {
    position: absolute; inset: 0; z-index: 6; max-width: none;
    display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr auto;
    grid-template-areas: "kick kick" "stack title" "stack sub";
    align-items: center; align-content: center; column-gap: 5vw;
    padding: 12px 6vw; border-radius: 0;
    /* The ceremony's portrait translucency is composed over the
       plain dark play ground; as a full-view landscape layer it
       must stand nearly opaque, or the screen beneath ghosts
       through it (verified in the fix probe's first captures). */
    background: radial-gradient(ellipse at 50% 45%, rgb(26,42,92) 0%, rgb(7,12,28) 78%);
  }
  /* The ceremony stages (.p-era, .p-gates, .p-cine) are not here:
     in landscape they stand as full-view layers — the block after
     this one carries them (the seal ceremony's own precedent,
     above). */
  #view-play .me-card { padding-top: 8px; padding-bottom: 8px; }
  #play-main .seal-ceremony .seal-kicker { grid-area: kick; text-align: center; }
  #play-main .seal-ceremony .seal-stack { grid-area: stack; width: min(52vh, 250px); margin: 0; }
  #play-main .seal-ceremony .seal-title { grid-area: title; text-align: left; align-self: end; }
  #play-main .seal-ceremony .seal-sub { grid-area: sub; text-align: left; align-self: start; }
  /* The cinematic cards ride the same short window gracefully. */
  .p-opening { height: min(72vh, 520px); }
  .walk-view { height: min(64vh, 290px); }
}

/* The ceremony stages in landscape (Michael's ruling, 2026-11-28:
   edge to edge ONLY, in both orientations). In portrait the stage
   fills the play area in flow, the treatment of 2026-11-26. A
   landscape phone's play area cannot carry that: the app column
   is capped and centered, the traveler card and seals eat its
   height, and #play-main's scroll clips an in-flow bleed to a
   strip (measured on the first capture run: a 103px band with
   the verse clipped mid-line). So in landscape the stages take
   the seal ceremony's own road (its short-landscape precedent
   above): a full-view layer over the whole play view — the
   painting edge to edge of the screen the app stands on, the
   words over their dusk shade at its foot, the corner circles
   (z 70) riding above it as they ride over the Journey's stage.
   The stages stand opaque (#04060f ground, the painting over
   it), so nothing beneath ghosts through. The era skip leaves
   the scroll and stands in the layer's own corner, as the TV's
   skip stands in its scene. What rests beneath the layer in
   flow — the Gathering discussion, the gates sub-line — waits
   under the ceremony and returns untouched when the phase ends,
   as it does on the big screen. */
@media (orientation: landscape) {
  .p-era, .p-cine, .p-gates { position: absolute; inset: 0; z-index: 6; width: auto; max-width: none; height: auto; min-height: 0; margin: 0; border-radius: 0; }
  #btn-skip-era { position: absolute; z-index: 7; right: 16px; bottom: 16px; margin: 0; }
}

/* ---------- solo (2026-11-23) ----------
   The Walk Alone card rides the join view under the join card, in
   the same panel dress; the record line is this phone's own —
   finished walks and best score, kept on the device alone. */
.solo-card { width: 100%; max-width: 400px; padding: 20px 22px; margin-top: 18px; display: flex; flex-direction: column; gap: 8px; text-align: center; }
.solo-title { font-family: Cinzel, serif; font-size: 16px; font-weight: 700; letter-spacing: .18em; color: var(--gold-bright); }
.solo-sub { font-size: 14.5px; line-height: 1.45; color: var(--ivory-dim, #cfc7ae); }
.solo-record { font-family: Cinzel, serif; font-size: 13px; letter-spacing: .08em; color: var(--gold-bright); min-height: 1em; }
#solo-shelf:empty { display: none; }
#btn-solo-begin { margin-top: 14px; }
/* The Begin pill standard (2026-11-26): every Begin in the solo
   flows — BEGIN THE WALK and BEGIN THE STUDY — wears the gold
   Begin family of the TV's BEGIN THE JOURNEY: full pill height,
   letterspaced readable text, and flex:none, so the pick column
   can never compress it, whatever the content height or scroll
   position (the sliver fix above is the root; this is the belt
   to its suspenders). */
#btn-solo-begin, #btn-solo-study-begin { flex: 0 0 auto; min-height: 56px; padding: 16px 20px; font-size: 17px; width: 100%; }
#btn-solo-study-begin { margin-top: 12px; }

/* ---------- solo journey setup (2026-11-26) ----------
   The study's choices on the pick view, in the pick furniture's
   own dress: level buttons like the level grid, book rows like
   quiet ledger lines (name left, the count at this level right),
   sitting pills in a row. The book list scrolls inside its own
   window so the Begin pill below it never moves. */
#solo-study-setup { margin-top: 18px; padding: 16px; display: flex; flex-direction: column; }
#study-level-grid { display: flex; flex-direction: column; gap: 9px; }
#study-book-list { max-height: 44vh; overflow-y: auto; display: block; padding: 2px; }
/* The headings are STICKY within the picker (Michael, 2026-11-27:
   "the book scroll bar is not user friendly") — each testament's
   heading pins to the top of the list while its own section
   scrolls beneath it, then yields to the next, so where you are
   in the 66 books is obvious at a glance without touching the
   scrollbar. Each section is wrapped (.bk-group) so a heading
   sticks only within its own section. */
.bk-head { position: sticky; top: -2px; z-index: 2; font-family: var(--font-ui); font-size: 13px; font-weight: 800; letter-spacing: .18em; color: var(--gold-bright); margin: 14px 0 6px; padding: 5px 2px 4px; background: rgba(7,15,42,.96); border-bottom: 1px solid rgba(217,180,90,.35); }
.bk-group:first-child .bk-head { margin-top: 2px; }
.bk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bk-row { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 10px; border-radius: 10px; background: rgba(18,35,90,.5); border: 1px solid rgba(217,180,90,.3); color: var(--ivory); text-align: left; transition: all .2s ease; }
.bk-row .bk-name { font-family: Cinzel, serif; font-size: 15.5px; font-weight: 700; letter-spacing: .03em; line-height: 1.15; }
.bk-row .bk-count { font-size: 13px; font-style: italic; color: var(--ivory-dim); }
.bk-row.sel { border-color: var(--gold-bright); background: rgba(217,180,90,.22); box-shadow: 0 0 0 1px var(--gold); }
.bk-row.sel .bk-name { color: var(--gold-bright); }
#study-sitting-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.sit-btn { padding: 11px 6px; border-radius: 10px; background: rgba(18,35,90,.5); border: 1px solid rgba(217,180,90,.3); color: var(--ivory); font-family: var(--font-ui); font-size: 16px; font-weight: 800; letter-spacing: .05em; transition: all .2s ease; }
.sit-btn.sel { border-color: var(--gold-bright); background: rgba(217,180,90,.22); box-shadow: 0 0 0 1px var(--gold); color: var(--gold-bright); }
/* The lone reader's Continue, inside the reveal itself. */
#btn-study-continue { width: 100%; min-height: 52px; padding: 14px 16px; font-size: 17px; margin-top: 12px; flex: 0 0 auto; }

/* Pass gate (2026-11-23): the solo card's quiet doorway — shown only
   when the server asks. Gold-on-navy like everything else.
   Condensed (2026-11-25, Michael: the wall of fields was "a bit
   overwhelming"): the code entry carries the screen; the First
   Journey folds behind one quiet line. Condensed means less on
   screen, never smaller type — fields and buttons stay >=17px. */
.gate { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(217,180,90,.35); text-align: left; }
.gate-title { font-family: Cinzel, serif; font-size: 19px; letter-spacing: .12em; color: var(--gold-bright); margin: 0 0 6px; }
.gate-sub { color: var(--muted); margin: 10px 0 6px; }
.gate-sub a { color: var(--gold-bright); }
.gate-sub a:visited { color: var(--gold-bright); }
.gate-sub a:hover, .gate-sub a:active { color: #fff; }
.gate-row { display: flex; flex-direction: column; gap: 8px; margin: 6px 0; }
.gate-row input { width: 100%; min-width: 0; padding: 12px; border-radius: 8px; border: 1px solid rgba(217,180,90,.5); background: var(--card); color: var(--ivory); font-size: 17px; }
.gate-row .btn-gold { width: 100%; padding: 12px 16px; font-size: 17px; }
.gate-label { display: block; font-family: var(--font-ui); font-weight: 800; }
.gate-hint { color: #9aa7c7; font-size: 14.5px; margin: 2px 0 4px; }
.gate-msg { color: var(--gold-bright); min-height: 1.2em; margin: 4px 0; }
.gate-rule { border-top: 1px solid rgba(217,180,90,.35); margin: 16px 0 4px; }
.gate-toggle { display: block; background: none; border: none; padding: 12px 0 6px; margin: 0; font: inherit; font-size: 17px; color: var(--gold-bright); text-decoration: underline; text-align: left; cursor: pointer; }
.gate-toggle:hover, .gate-toggle:active { color: #fff; }
#gate-fj .gate-sub { margin-top: 2px; }
.gate-stale { border: 1px solid rgba(217,180,90,.28); background: rgba(217,180,90,.05); border-radius: 10px; padding: 4px 12px 10px; margin: 10px 0; }
.gate-stale .gate-sub { margin-top: 6px; }

/* Gate rows stack at EVERY width (audit #05, 2026-11-27): label,
   full-width field, full-width action, one above the other. The
   2026-11-26 phone-width stack fixed portrait, but in landscape
   (~681px wide) the side-by-side row still crushed the pass field
   to ~26px beside the UNLOCK button — unreadable. Stacked, the
   whole code and the whole email read at any size. */

/* Solo on TV (2026-11-26): the study's display block, both instances
   (study setup + play view). The open button is a slim ghost; the
   panel carries the code the traveler reads to the TV; the ask card
   is the consent moment — ALLOW / NOT NOW, nothing shown without
   the tap. */
.solo-tv { margin-top: 14px; }
.solo-tv-open { width: 100%; }
.solo-tv-panel { margin-top: 10px; border: 1px solid rgba(217,180,90,.28); background: rgba(217,180,90,.05); border-radius: 10px; padding: 10px 14px 12px; }
.solo-tv-line { margin: 6px 0; font-size: 16px; line-height: 1.45; }
.solo-tv-code { font-family: Cinzel, serif; font-size: 34px; font-weight: 700; letter-spacing: .34em; text-align: center; margin: 8px 0 2px; padding-left: .34em; }
.solo-tv-status { margin: 6px 0; font-size: 16px; color: var(--gold-bright); min-height: 1.2em; }
/* SHOWING state (2026-11-26): the panel is a compact bar — one
   status line and Remove the TV on a single row. The connect
   block (instruction line, big code) steps aside entirely so
   the question below breathes during play. */
.solo-tv-panel.is-showing { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; }
.solo-tv-panel.is-showing .solo-tv-line, .solo-tv-panel.is-showing .solo-tv-code { display: none; }
.solo-tv-panel.is-showing .solo-tv-status { margin: 0; min-height: 0; }
.solo-tv-panel.is-showing .link-btn { flex: none; }
.solo-tv-ask { margin-top: 10px; border: 1px solid rgba(217,180,90,.55); background: rgba(7,15,42,.85); border-radius: 10px; padding: 10px 14px 14px; }
.solo-tv-row { display: flex; gap: 10px; margin-top: 8px; }
.solo-tv-row .btn-gold, .solo-tv-row .btn-ghost { flex: 1; }

/* ---------- Guide & Resume (2026-11-27) ----------
   The Guide's word wears one treatment on every screen: the
   phone's .coord-badge is the TV's .guide-tag at phone scale.
   The transfer picker, the honest save line, and the gate's
   resume list all dress from the same tokens. (The badge's own
   form changed with Michael's Guide-header ruling, 2026-11-30:
   the gold pill became a quiet mark — a little gold cross and
   the word "Guide" beside the name, no ground, no border — so
   this layer keeps only its type family; the separate
   "You're the Guide" header line and its .ta-guide rule are
   retired with it, their job moved to the mark.) */
.coord-badge { font-family: Manrope, sans-serif; font-weight: 800; }
.gs-transfer { width: 100%; margin-top: 10px; }
.transfer-box { margin-top: 10px; }
#transfer-panel { margin: 0 0 10px; }
.transfer-head { font-family: Manrope, sans-serif; font-weight: 700; font-size: 14px; letter-spacing: .06em; color: var(--ivory); margin: 0 0 8px; text-align: center; }
.transfer-pick { display: block; width: 100%; margin: 0 0 8px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--gold); background: linear-gradient(165deg, rgba(14,26,66,.88), rgba(7,15,42,.9)); color: var(--gold-bright); font-family: Cinzel, serif; font-weight: 700; font-size: 16px; letter-spacing: .04em; cursor: pointer; }
.transfer-cancel { display: block; margin: 2px auto 0; background: none; border: none; color: var(--ivory-dim); font-family: Manrope, sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .1em; cursor: pointer; padding: 6px 10px; }
.transfer-none { text-align: center; color: var(--ivory-dim); font-size: 15px; margin: 0 0 8px; }
.transfer-error { text-align: center; }
.save-state { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-family: Manrope, sans-serif; font-weight: 700; font-size: 14.5px; letter-spacing: .03em; color: var(--ivory); text-align: center; }
.save-state.in-summary { margin: 10px 0 2px; }
#save-state-play { margin: 0 0 8px; }
.save-retry { border: 1px solid var(--gold); background: none; color: var(--gold-bright); border-radius: 999px; padding: 5px 14px; font-family: Manrope, sans-serif; font-weight: 800; font-size: 12.5px; letter-spacing: .1em; cursor: pointer; }
/* The gate's resume mode (phone): the new-study paths step aside
   while the credential's saved Journeys are offered. */
.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.resume-mode #gate-code-label, .gate.resume-mode #gate-code-row, .gate.resume-mode #gate-code-hint, .gate.resume-mode #gate-code-msg, .gate.resume-mode #gate-fj-toggle, .gate.resume-mode #gate-fj { display: none; }
.gate.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: 10px 14px; margin: 8px 0 0; cursor: pointer; }
.gate-resume-book { display: block; font-family: Cinzel, serif; font-weight: 700; letter-spacing: .05em; font-size: 16.5px; color: var(--gold-bright); }
.gate-resume-line { display: block; font-family: var(--font-body); font-size: 15px; color: var(--muted); margin-top: 2px; }
.gate-resume-alt { width: 100%; margin-top: 12px; }

/* ================= THE STUDY LIBRARY (2026-11-28) =================
   My Studies: the Guide's library of named group studies. The group
   name is the strongest thing on every card (Cinzel, gold, largest);
   supporting facts step down in size and weight beneath it. House
   tokens and the panel recipe throughout; nothing here shrinks a
   size the site already uses. */
.studies-kicker { font-family: Manrope, sans-serif; font-weight: 800; font-size: 13px; letter-spacing: .18em; color: var(--gold-bright); text-align: center; margin: 10px 0 2px; }
.studies-title { font-size: 32px; text-align: center; margin: 2px 0 6px; }
.studies-name-big { font-size: 27px; line-height: 1.25; text-align: center; margin: 2px 0 12px; overflow-wrap: break-word; }
.studies-sub { text-align: center; font-size: 17px; line-height: 1.45; color: var(--ivory); opacity: .92; margin: 0 0 14px; }
.studies-note-text { font-size: 16px; line-height: 1.5; color: var(--ivory); opacity: .88; }
.studies-h { font-family: Manrope, sans-serif; font-weight: 800; font-size: 14px; letter-spacing: .16em; color: var(--gold-bright); margin: 26px 0 10px; }
/* Solo in the library (2026-11-28): the two categorized sections
   of one library — GROUP STUDIES, then SOLO STUDIES — each headed
   in the shelf-heading dress, each carrying ONE plain keeping line
   under its heading, in the library's note voice. No size anywhere
   steps down: the headings are the .studies-h shelf size, the
   keeping lines the note size. */
.create-kind { display: flex; flex-direction: column; gap: 10px; margin: 0 0 18px; }
/* The create view's own identity block (defect 6, 2026-11-28):
   the join form's traveler unit, standing on the create screen —
   its input and label ride the #view-study-create rules above. */
#create-identity { margin: 0 0 16px; }
.studies-create-door { width: 100%; margin: 2px 0 6px; }
.studies-h-first { margin-top: 6px; }
.studies-keep { font-size: 16px; line-height: 1.5; color: var(--ivory); opacity: .88; margin: -4px 0 12px; }
.solo-lib-card .study-actions .btn-gold { flex: 1 1 auto; width: auto; margin-top: 0; }
#btn-solo-lib-showtv { display: block; text-align: center; text-decoration: none; box-sizing: border-box; }
#studies-solo-error:empty { display: none; }
.studies-banner { padding: 16px 18px; margin: 0 0 14px; }
.studies-banner h3 { font-family: Cinzel, serif; font-size: 20px; color: var(--gold-bright); margin: 0 0 6px; }
.studies-banner p { font-size: 16.5px; line-height: 1.5; margin: 0 0 10px; }
.studies-banner .btn-gold, .studies-banner .btn-ghost { width: 100%; margin-top: 8px; }
#view-studies input, #view-study-create input {
  width: 100%; box-sizing: border-box; padding: 13px 12px; border-radius: 8px;
  border: 1px solid rgba(217,180,90,.5); background: var(--card); color: var(--ivory);
  font-size: 17px; margin: 6px 0 10px;
}
#view-studies label, #view-study-create label {
  display: block; font-family: Manrope, sans-serif; font-weight: 800; font-size: 13px;
  letter-spacing: .14em; color: var(--gold-bright); margin-top: 6px;
}
#view-studies .btn-gold, #view-studies .btn-ghost,
#view-study-create .btn-gold, #view-study-create .btn-ghost,
#view-study-welcome .btn-gold, #view-study-welcome .btn-ghost,
#view-study-details .btn-ghost { width: 100%; margin-top: 10px; }
.studies-cred-note { font-size: 15px; line-height: 1.5; opacity: .85; margin-top: 12px; }
.studies-actions-note { text-align: center; font-size: 15.5px; opacity: .85; margin: 8px 0 2px; }
.study-card { padding: 16px 18px; margin: 0 0 14px; text-align: left; }
.study-name { font-family: Cinzel, serif; font-weight: 700; font-size: 24px; line-height: 1.25; color: var(--gold-bright); margin: 0 0 4px; overflow-wrap: break-word; }
.study-live-line { font-family: Manrope, sans-serif; font-weight: 800; font-size: 15px; letter-spacing: .04em; color: var(--gold-bright); margin: 0 0 6px; }
.study-line { font-size: 17px; line-height: 1.45; margin: 2px 0; }
.study-line.dim { opacity: .85; font-size: 16px; }
.study-actions { display: flex; gap: 10px; margin-top: 12px; }
/* ID-scoped to outrank the view-wide full-width button rule above:
   inside a card's action row the gold takes the row's free width and
   MENU keeps its natural width — neither may carry width:100% here. */
#view-studies .study-actions .btn-gold { flex: 1 1 auto; width: auto; margin-top: 0; }
#view-studies .study-actions .btn-ghost { flex: 0 0 auto; width: auto; margin-top: 0; padding-left: 18px; padding-right: 18px; }
.study-card .btn-ghost.full { width: 100%; margin-top: 10px; }
.studies-empty { padding: 20px 18px; text-align: center; }
.studies-empty .study-name { text-align: center; }
.studies-empty p { font-size: 17px; line-height: 1.55; }
.studies-empty .btn-gold { width: 100%; margin-top: 10px; }
/* The study sheet: a card's menu and the plain confirmations. */
#study-sheet { position: fixed; inset: 0; z-index: 90; background: rgba(4,8,24,.72); display: flex; align-items: flex-end; justify-content: center; padding: 16px; box-sizing: border-box; }
#study-sheet.hidden { display: none; }
.study-sheet-card { width: 100%; max-width: 430px; padding: 20px; max-height: 82vh; overflow-y: auto; }
.study-sheet-card h3 { font-family: Cinzel, serif; font-size: 21px; line-height: 1.3; color: var(--gold-bright); margin: 0 0 8px; overflow-wrap: break-word; }
.study-sheet-card p { font-size: 16.5px; line-height: 1.5; }
.study-sheet-card .btn-gold, .study-sheet-card .btn-ghost { width: 100%; margin-top: 10px; }
.study-sheet-card input { width: 100%; box-sizing: border-box; padding: 13px 12px; border-radius: 8px; border: 1px solid rgba(217,180,90,.5); background: var(--card); color: var(--ivory); font-size: 17px; margin: 6px 0 4px; }
/* Create: book chips + level / sitting rows. */
.create-h { font-family: Manrope, sans-serif; font-weight: 800; font-size: 13.5px; letter-spacing: .14em; color: var(--gold-bright); margin: 20px 0 8px; }
#create-books { display: flex; flex-wrap: wrap; gap: 8px; }
.book-chip { padding: 10px 13px; border-radius: 999px; background: rgba(18,32,77,.5); border: 1px solid rgba(212,175,55,.3); color: var(--ivory); font-family: "Crimson Pro", Georgia, serif; font-size: 16.5px; font-weight: 600; transition: all .2s ease; }
.book-chip.sel { border-color: var(--gold-bright); background: rgba(212,175,55,.22); color: var(--gold-bright); box-shadow: 0 0 0 1px var(--gold); }
.pick-row-btn { display: block; width: 100%; text-align: left; padding: 13px 14px; margin: 0 0 8px; border-radius: 12px; background: rgba(18,32,77,.5); border: 1px solid rgba(212,175,55,.3); color: var(--ivory); font-size: 17px; transition: all .2s ease; }
.pick-row-btn.sel { border-color: var(--gold-bright); background: rgba(212,175,55,.22); color: var(--gold-bright); box-shadow: 0 0 0 1px var(--gold); }
.pick-row-btn small { display: block; font-size: 14.5px; opacity: .85; margin-top: 2px; }
#create-summary p { font-size: 17px; line-height: 1.5; margin: 4px 0; }
#create-summary .study-name { margin-bottom: 8px; }
.opened-code { font-family: Cinzel, serif; font-size: 34px; letter-spacing: .22em; color: var(--gold-bright); text-align: center; margin: 8px 0; }
/* The shared .panel recipe carries dress, not padding — the library's
   bare panels take theirs here, so no words ever sit on the border. */
#welcome-card, #create-summary, #create-opened, #welcome-opened { padding: 18px 20px; }
#welcome-card p, #create-opened p, #welcome-opened p { font-size: 17px; line-height: 1.55; margin: 4px 0; }
#welcome-card .welcome-big { font-size: 19px; }
/* Details: per-book progress rows. */
.detail-book { padding: 12px 14px; margin: 0 0 10px; }
.detail-book p { margin: 2px 0; font-size: 16.5px; line-height: 1.45; }
.detail-book .db-name { font-family: Cinzel, serif; font-weight: 700; font-size: 18px; color: var(--gold-bright); }
.detail-facts { padding: 14px 16px; margin: 0 0 12px; }
.detail-facts p { margin: 3px 0; font-size: 16.5px; line-height: 1.5; }
/* Retire a seat + the lobby's Edit door (2026-12-03): the study's
   seats read the same on both doors — My Studies details and the
   Guide's lobby list — one row per traveler, the name large, the
   standing (Guide / Here / Away) quiet at the right, and the
   retire action at the full readable stature the library's
   buttons already keep. The Edit door in the pick view matches
   the ghost buttons' full-width run in the view below it. */
#btn-edit-lobby { width: 100%; margin-top: 10px; }
#btn-lobby-leave { width: 100%; margin-top: 10px; }
.detail-seats { padding: 14px 16px; margin: 0 0 12px; }
.detail-seats .seat-note { font-size: 15.5px; line-height: 1.5; color: var(--ivory-dim); margin: 6px 0 2px; }
.seat-row { padding: 10px 0 4px; border-top: 1px solid rgba(217,180,90,.22); }
.seat-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.seat-name { font-size: 17px; font-weight: 700; }
.seat-state { font-size: 14.5px; font-style: italic; color: var(--ivory-dim); white-space: nowrap; }
.seat-state.here { font-style: normal; font-weight: 700; color: var(--gold-bright); }
.seat-retire { width: 100%; margin-top: 8px; }
#lobby-seats { margin-top: 12px; text-align: left; }
#lobby-seats .gs-seats-title { font-family: Cinzel, serif; font-weight: 700; font-size: 15px; letter-spacing: .06em; color: var(--gold-bright); text-align: center; margin: 0 0 2px; }
#lobby-seats .seat-retire { min-height: 52px; padding: 14px 16px; font-size: 17px; }
/* The traveler's study confirmation, standing at the lobby's head. */
#study-confirm { padding: 14px 16px; margin: 0 0 12px; text-align: center; }
#study-confirm .sc-name { font-family: Cinzel, serif; font-weight: 700; font-size: 21px; color: var(--gold-bright); margin: 0 0 4px; overflow-wrap: break-word; }
#study-confirm p { font-size: 16.5px; line-height: 1.5; margin: 3px 0; }
#study-confirm .btn-gold, #study-confirm .btn-ghost { width: 100%; margin-top: 10px; }
/* The Guide's saved confirmation on the sitting summary. */
.summary-study { margin: 0 0 14px; padding: 16px 18px; text-align: center; }
.summary-study .ss-name { font-family: Cinzel, serif; font-weight: 700; font-size: 22px; color: var(--gold-bright); margin: 0 0 6px; overflow-wrap: break-word; }
.summary-study p { font-size: 17px; line-height: 1.55; margin: 4px 0; }

/* ================= MY STUDIES ON THE BIG SCREEN (2026-11-28) =================
   Michael, from his own TV: "Let's condense and make this more UX
   friendly." At the site's standing big-screen measure (landscape,
   600px and up — the landing's own rule), the library sheds its
   kicker and its subtitle, the floating "…or resume a study from
   its card below" narration line is deleted outright, and the
   section rhythm tightens so the first study row stands COMPLETE
   on one screen with the next row already showing. phone.js
   renders the compact two-line card at this measure. Every change
   here is a margin, a padding, or a removal — no font size moves:
   the condensing cuts words and empty panel height, never type.
   A phone in the hand is untouched (this block cannot match it). */
@media (orientation: landscape) and (min-width: 600px) {
  #view-studies { padding-top: 26px; }
  #view-studies > .studies-kicker, #view-studies > .studies-sub { display: none; }
  #view-studies .studies-title { margin: 0 0 8px; }
  #view-studies .studies-create-door { margin: 0 0 2px; }
  #view-studies #studies-actions { display: none; }
  #view-studies .studies-h { margin: 14px 0 6px; }
  #view-studies .studies-h-first { margin-top: 4px; }
  #view-studies .studies-keep { margin: -2px 0 8px; }
  #view-studies .study-card { padding: 10px 16px; margin: 0 0 10px; }
  #view-studies .study-actions { margin-top: 8px; }
  /* The solo side keeps its furniture and its words; only its
     rhythm tightens to match (item 6 of the condense). */
  #view-studies .btn-gold, #view-studies .btn-ghost { margin-top: 8px; }
  /* Solo comes off the big-screen create screen (Michael's
     ruling, 2026-11-28 19:35): at this measure the create view
     offers GROUP STUDY only — the kind radio does not render,
     and phone.js opens the view on the group flow. */
  #view-study-create #create-kind { display: none; }
}
.summary-study .btn-gold, .summary-study .btn-ghost { width: 100%; margin-top: 10px; }

/* Card buttons at main-button stature (Michael, 2026-12-02 —
   rider R5: the skinny gold pills, "cute, but not legible").
   The library's cards set their buttons' width and flex but
   never their height or type, so NAME THIS STUDY, RESUME STUDY
   and their row-mates rendered at the shared base's bare
   minimum — 17px tall in 13px type beside main buttons of
   52–57px. Every gold (and its ghost row-mate, which shares
   the same action rows) on the phone's study/library surfaces
   now stands at the main-button measure the door cards already
   keep: min-height 52px, padding 14px, 17px type. Nothing else
   moves — no type anywhere steps down to make room. */
#view-studies .btn-gold, #view-studies .btn-ghost,
#view-study-create .btn-gold, #view-study-create .btn-ghost,
#view-study-welcome .btn-gold, #view-study-welcome .btn-ghost,
#view-study-details .btn-gold, #view-study-details .btn-ghost,
.solo-lib-card .btn-gold, .solo-lib-card .btn-ghost,
.study-sheet-card .btn-gold, .study-sheet-card .btn-ghost,
#study-confirm .btn-gold, #study-confirm .btn-ghost,
.summary-study .btn-gold, .summary-study .btn-ghost,
.studies-empty .btn-gold, .studies-banner .btn-gold, .studies-banner .btn-ghost {
  min-height: 52px; padding: 14px 16px; font-size: 17px;
}

/* AAA P9 (2026-11-28): reduced motion — every phone animation and
   transition cuts to its end state. The trap-fix feedback survives
   intact: an armed End keeps its lit-gold dress (the pulse stops,
   the gold — and the standing "Ends after this question." line —
   still say the tap worked), a lit lamp stands lit, and the era
   moment's furniture cuts away and back instead of fading, on the
   moment's own unchanged clock. The timer fills are driven inline
   by the game clock, not by this file, and keep draining in real
   time because the bar IS the reading. */
@media (prefers-reduced-motion: reduce) {
  .grid button, .child-btn, .level-btn, .path-btn, .corner-btn, .bk-row, .sit-btn,
  .book-chip, .pick-row-btn,
  #p-opening-video, #p-opening-verse, #p-opening-still, .walk-stone, #p-gates-title,
  #journey-stage-p .journey-bg-p, #journey-stage-p .journey-scrim-p,
  #journey-era-words, .p-era-body, .p-era-img,
  #view-play > #top-actions, #view-play > #me-bar, #view-play > #me-seals,
  #view-play > #ptv-box, #view-play > #play-main { transition: none; }
  #btn-end-turn, .seal-ceremony, .seal-rays, .seal-stack img.seal-burst,
  .seal-lit.just-lit, #btn-end-sitting-corner.ending, .walk-ring.go,
  .p-era, .p-cine, .p-cine-cap, .lamp-pip.just-lit, .p-gates { animation: none; }
}

/* ================================================================
   IVORY READING SURFACES (Michael, ruled 2026-11-29 — built as
   shown in the approved mock, work/ivory-mock/report.md). Ivory =
   the site's reading material. Values are the site's own:
   --ivory #fff8e6 (the teaching card's ground), ink #1c2138 (the
   teaching card's ink), --gold #d9b45a, --gold-deep #8a6d1f,
   --navy-2 #0c183d, --line gold border.
   ================================================================ */
/* The question area becomes an ivory card: ink question text,
   gold rule border, the category kicker stays gold above it. */
#play-main .q-prompt {
  background: var(--ivory); color: #1c2138;
  border: 1px solid var(--line); border-top: 3px solid var(--gold);
  border-radius: 12px; padding: 16px 18px;
  box-shadow: 0 18px 44px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.65);
}
body.jbg-on #play-main .q-prompt { text-shadow: none; }
/* Library study cards become ivory index cards: navy ink,
   gold top rule, the group name in deep navy — still largest. */
.study-card {
  background: var(--ivory); color: #1c2138;
  border: 1px solid var(--line); border-top: 3px solid var(--gold);
  box-shadow: 0 18px 44px rgba(0,0,0,.5);
  backdrop-filter: none;
}
.study-card .study-name { color: var(--navy-2); }
.study-card .study-live-line { color: var(--gold-deep); }
.study-card .study-line.dim { color: rgba(28,33,56,.66); opacity: 1; }
/* The reveal verse panel takes the same ivory (scope widened by
   Michael, 2026-11-29 — "everything to look the same as far as
   CSS"): ivory ground, ink words, the citation in gold-deep, the
   accent that reads on ivory. The gold rule at its left stays.
   Over a Journey painting (jbg-on) the panel stays ivory, exactly
   as the teaching card beside it already does — so the phone's
   verse values match the TV's #av-verse / #lb-verse panel. */
.verse { background: var(--ivory); color: #1c2138; }
.verse p { color: #1c2138; }
.verse .ref, .verse span { color: var(--gold-deep); }
body.jbg-on #play-main .verse {
  background: var(--ivory);
  border: 1px solid var(--line); border-left: 3px solid var(--gold);
}
/* The Library's welcome-back card joins the index cards: same
   ivory paper, ink words, gold top rule. */
#welcome-card {
  background: var(--ivory); color: #1c2138;
  border: 1px solid var(--line); border-top: 3px solid var(--gold);
  box-shadow: 0 18px 44px rgba(0,0,0,.5);
  backdrop-filter: none;
}

/* Room recovery (2026-12-02): the rooms-full and already-open
   panels carry the host's two roads side by side, and a live
   study card's three actions may wrap rather than squeeze —
   type never shrinks to fit. */
.studies-banner .capacity-actions { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.studies-banner .capacity-actions .btn-gold { flex: 1 1 auto; width: auto; margin-top: 0; }
.studies-banner .capacity-actions .btn-ghost { flex: 1 1 auto; width: auto; margin-top: 0; }
.studies-banner .capacity-note { color: var(--gold-bright); min-height: 1.2em; }
.studies-banner .capacity-room { margin-top: 12px; }
#view-studies .study-actions { flex-wrap: wrap; }
