/* Pressure Room · PAVNESS. Tokens follow pavness.com: navy #101f32, gold #f4c85a, Lora, DM Sans, DM Mono. */
@font-face { font-family: "Lora"; font-style: normal; font-weight: 500; src: url(../assets/fonts/lora-500.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 600; src: url(../assets/fonts/lora-600.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 500; src: url(../assets/fonts/lora-500-italic.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; src: url(../assets/fonts/dmsans-400.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; src: url(../assets/fonts/dmsans-700.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; src: url(../assets/fonts/dmmono-500.woff2) format("woff2"); font-display: swap; }

:root {
  --ink-0: #050a14; --ink-1: #0b1322; --ink-2: #101f32; --ink-3: #16294a; --ink-4: #1e3559;
  --line: rgba(173, 192, 214, .16); --line-2: rgba(173, 192, 214, .3);
  --fg: #f4f1ea; --fg-2: #d6dee9; --muted: #a4b5ca;
  --gold: #f4c85a; --gold-2: #e8b63e; --gold-ink: #0f2440; --gold-soft: rgba(244, 200, 90, .13); --gold-line: rgba(244, 200, 90, .55);
  --check: #5fa3b0; --decide: #e9b337; --own: #d9909a;
  --red: #f08c96; --red-bg: rgba(155, 52, 70, .3); --red-line: rgba(240, 140, 150, .55);
  --green: #79d6ad; --green-bg: rgba(60, 140, 110, .22);
  --blue: #8fb4ea; --cobalt: #2457d6;
  --paper: #f5f0e3; --paper-ink: #0b1322; --paper-mute: #4a5568;
  --ai-bg: #06080c; --ai-line: #5b7399;
  --serif: "Lora", Georgia, serif; --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; --mono: "DM Mono", ui-monospace, Menlo, Consolas, monospace;
  --r-lg: 20px; --r-md: 14px; --r-sm: 10px;
  --glass: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, .85);
  --hud: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--ink-1); color: var(--fg);
  font: 400 17px/1.55 var(--sans); display: flex; flex-direction: column; overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--gold); }
button { font: inherit; color: inherit; }
kbd { font-family: var(--mono); }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--gold); color: var(--gold-ink); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
.mono { font-family: var(--mono); font-size: .78em; letter-spacing: .06em; text-transform: uppercase; }
.dim { color: var(--muted); }
.gold { color: var(--gold); }
[hidden] { display: none !important; }

/* ---------- Backdrop ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: radial-gradient(1200px 700px at 85% -10%, rgba(36, 87, 214, .22), transparent 60%), radial-gradient(900px 600px at -10% 110%, rgba(244, 200, 90, .1), transparent 60%), linear-gradient(180deg, var(--ink-1), var(--ink-0)); }
.backdrop .grid { position: absolute; inset: -2px; background-image: linear-gradient(rgba(173, 192, 214, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(173, 192, 214, .055) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); }
.glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(90px); opacity: .32; }
.glow-a { background: #2457d6; top: -160px; right: -120px; animation: drift 18s ease-in-out infinite alternate; }
.glow-b { background: #c79a36; bottom: -220px; left: -160px; opacity: .2; animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-60px, 40px) scale(1.1); } }
body.time-up .backdrop { background: radial-gradient(900px 600px at 50% 0%, rgba(155, 52, 70, .35), transparent 60%), linear-gradient(180deg, var(--ink-1), var(--ink-0)); }

/* ---------- HUD ---------- */
.hud { position: sticky; top: 0; z-index: 30; height: var(--hud); display: flex; align-items: center; gap: 20px; padding: 0 clamp(16px, 3vw, 36px);
  background: rgba(8, 14, 26, .72); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line); }
.wordmark { display: flex; flex-direction: column; text-decoration: none; line-height: 1; flex: none; }
.wm { font: 600 24px/1 var(--serif); color: #fffffe; letter-spacing: .01em; }
.wm span { color: var(--gold); }
.wm-sub { font: 500 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.chapters { list-style: none; margin: 0 auto; padding: 0; display: flex; gap: 6px; align-items: center; }
.chapters .ch-list > li { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid transparent; color: var(--muted); font-size: 13.5px; white-space: nowrap; transition: all .3s var(--ease); }
.chapters .ch-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 500 12px var(--mono); border: 1px solid var(--line-2); }
.chapters .ch-list > li.done { color: var(--fg-2); }
.chapters .ch-list > li.done .ch-n { background: rgba(244, 200, 90, .18); border-color: var(--gold-line); color: var(--gold); }
.chapters .ch-list > li.current { color: var(--fg); border-color: var(--gold-line); background: var(--gold-soft); }
.chapters .ch-list > li.current .ch-n { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.hud-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); display: grid; place-items: center; cursor: pointer; transition: all .2s; }
.icon-btn:hover { border-color: var(--gold-line); background: var(--gold-soft); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#voice-btn svg path:first-child { fill: currentColor; }
#voice-btn .mute { display: none; }
#voice-btn.off .mute { display: block; }
#voice-btn.off .wave1, #voice-btn.off .wave2 { display: none; }
#voice-btn.off { color: var(--muted); }
#voice-btn.talking .wave1, #voice-btn.talking .wave2 { animation: pulse-o 1s ease-in-out infinite; stroke: var(--gold); }
#voice-btn.talking .wave2 { animation-delay: .25s; }
@keyframes pulse-o { 50% { opacity: .25; } }
.pill { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); cursor: pointer; font-size: 14px; font-weight: 700; }
.pill .count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); display: grid; place-items: center; font: 700 12px var(--sans); }
.pill.bump .count { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.clock { position: relative; width: 52px; height: 52px; display: grid; place-items: center; }
.clock svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.clock circle { fill: none; stroke-width: 3.5; }
.clock-track { stroke: rgba(255, 255, 255, .1); }
.clock-arc { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset 1s linear, stroke .3s; }
.clock-time { font: 500 13px var(--mono); letter-spacing: .02em; }
.clock.low .clock-arc { stroke: var(--red); }
.clock.low .clock-time { color: var(--red); animation: pulse-o 1s infinite; }
.clock.paused .clock-time { opacity: .55; }

/* ---------- Layout ---------- */
.layout { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: clamp(20px, 4vw, 48px) clamp(16px, 4vw, 40px) 48px; display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.stage { outline: none; min-width: 0; }
.layout { overflow-x: clip; }
.scene { max-width: 900px; position: relative; }
.enter { animation: rise .42s var(--ease) both; }
.enter-back { animation: rise-back .32s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes rise-back { from { opacity: 0; transform: translateY(-12px); } }

/* ---------- Type ---------- */
.eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font: 500 12.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.eyebrow a { color: inherit; }
.mega { font: 600 clamp(46px, 8.4vw, 108px)/.96 var(--serif); letter-spacing: -.025em; }
.mega em { font-style: italic; font-weight: 500; color: var(--gold); }
.display { font: 600 clamp(34px, 5vw, 58px)/1.05 var(--serif); letter-spacing: -.015em; margin-bottom: 14px; }
.question { font: 600 clamp(26px, 3.3vw, 40px)/1.16 var(--serif); letter-spacing: -.01em; margin-bottom: 18px; text-wrap: balance; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--fg-2); max-width: 46ch; line-height: 1.5; }
.sub { color: var(--fg-2); margin: -6px 0 22px; font-size: 16.5px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.fine .ico svg { width: 16px; height: 16px; }
.section-title { font: 600 clamp(26px, 3vw, 34px)/1.1 var(--serif); }
.mini-title { font: 500 12.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 34px 0 14px; }
.big-serif { font: 500 clamp(22px, 2.6vw, 30px)/1.4 var(--serif); }
.num { color: var(--gold); font-weight: 700; }
.ico { display: inline-grid; place-items: center; }
.ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); display: inline-block; }
.dot.live { animation: blink 1.4s ease-in-out infinite; box-shadow: 0 0 0 0 rgba(244, 200, 90, .6); }
.dot.red { background: var(--red); }
@keyframes blink { 50% { opacity: .35; } }

/* Narration highlight */
[data-say].speaking .sent { transition: opacity .25s, background-color .25s, color .25s; }
.sent.now { background: rgba(244, 200, 90, .24); border-radius: 3px; padding: 0 2px; margin: 0 -2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; color: #fff; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Glossary */
.term { border-bottom: 1px dotted var(--gold-line); white-space: nowrap; }
.q, .q-demo { position: relative; display: inline-grid; place-items: center; width: 19px; height: 19px; margin-left: 4px; vertical-align: 2px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); background: transparent;
  font: 700 11.5px/1 var(--sans); cursor: help; padding: 0; transition: background .15s, color .15s; text-transform: none; letter-spacing: 0; }
.q::after { content: ""; position: absolute; inset: -12px; }
.q:hover, .q[aria-expanded="true"] { background: var(--gold); color: var(--gold-ink); }
.tip { position: fixed; z-index: 80; background: var(--paper); color: var(--paper-ink); border-radius: 12px; padding: 12px 14px; box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .65); font-size: 14.5px; line-height: 1.45; animation: tip-in .16s var(--ease); }
.tip strong { display: block; font: 600 15.5px var(--serif); margin-bottom: 3px; text-transform: capitalize; }
.tip::after { content: ""; position: absolute; left: calc(var(--arrow-x, 50%) - 7px); bottom: -7px; border: 7px solid transparent; border-bottom: 0; border-top-color: var(--paper); }
.tip.below::after { bottom: auto; top: -7px; border-top: 0; border-bottom: 7px solid var(--paper); }
@keyframes tip-in { from { opacity: 0; transform: translateY(4px); } }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; font: 700 16px/1.1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s var(--ease), background .15s, box-shadow .2s, border-color .2s, opacity .2s; }
.btn .ico svg { width: 18px; height: 18px; }
.btn.primary { background: var(--gold); color: var(--gold-ink); box-shadow: 0 12px 34px -14px rgba(244, 200, 90, .75), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn.primary:hover:not(:disabled) { background: var(--gold-2); transform: translateY(-1px); }
.btn.primary:disabled { opacity: .38; box-shadow: none; cursor: not-allowed; }
.btn.ghost { border-color: var(--line-2); color: var(--fg); background: rgba(255, 255, 255, .03); }
.btn.ghost:hover { border-color: var(--gold-line); background: var(--gold-soft); }
.btn.text { color: var(--fg-2); background: none; padding: 0 10px; }
.btn.text:hover { color: var(--gold); }
.btn.text.inline { min-height: 0; padding: 0; display: inline; text-decoration: underline; color: var(--gold); font-weight: 700; }
.btn.lg { min-height: 56px; padding: 0 26px; font-size: 17px; border-radius: 14px; }
.btn.sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-meta { font: 500 12px var(--mono); opacity: .7; letter-spacing: .04em; }

/* The action bar stays on screen, so the next step never needs a scroll. */
.scene .actions.dock { position: sticky; bottom: 0; z-index: 6; margin-top: 26px; padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); }
.scene .actions.dock::before { content: ""; position: absolute; z-index: -1; top: -34px; bottom: 0; left: -24px; right: -24px; background: linear-gradient(180deg, rgba(8, 14, 26, 0), rgba(8, 14, 26, .9) 42%, rgba(8, 14, 26, .97)); pointer-events: none; opacity: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
body.tall .scene .actions.dock::before { opacity: 1; }
.mode-stage .scene .actions.dock::before { display: none; }

/* ---------- Home ---------- */
.home { display: grid; gap: clamp(56px, 8vw, 96px); }
.home-hero { display: grid; gap: 40px; align-items: center; }
.home-hero .lead { margin-top: 22px; }
.home-hero .actions { margin-top: 34px; }
.console { position: relative; border-radius: var(--r-lg); border: 1px solid var(--ai-line); background: linear-gradient(180deg, #0a1120, var(--ai-bg)); box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .02) inset, 0 0 80px -30px rgba(36, 87, 214, .6); overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.console-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(91, 115, 153, .45); font: 500 12px var(--mono); color: var(--muted); letter-spacing: .06em; }
.console-bar i, .ai-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3448; display: inline-block; }
.console-bar span { margin-left: 8px; }
.console-body { padding: 22px; display: grid; gap: 16px; position: relative; }
.console-row { display: flex; justify-content: space-between; }
.console-title { font: 600 28px/1.15 var(--serif); }
.console-ai { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid rgba(121, 214, 173, .35); background: rgba(60, 140, 110, .12); border-radius: 12px; font-family: var(--mono); font-size: 15px; }
.console-ai p { margin-top: 4px; }
.console-warn { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(233, 179, 55, .12); border: 1px solid var(--gold-line); color: #ffe3a3; font-size: 15px; }
.console-q { display: grid; gap: 6px; padding-top: 6px; border-top: 1px dashed var(--line-2); font: 600 20px var(--serif); }
.scanline { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(143, 180, 234, .07) 50%, transparent); height: 40%; animation: scan 4.5s linear infinite; }
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(260%); } }
.status-light { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; margin-top: 4px; }
.status-light.ok { background: var(--green); box-shadow: 0 0 12px 2px rgba(121, 214, 173, .55); animation: blink 2.2s infinite; }
.status-light.warn { background: var(--gold); box-shadow: 0 0 12px 2px rgba(244, 200, 90, .5); animation: blink 1.2s infinite; }
.status-light.info { background: var(--blue); box-shadow: 0 0 12px 2px rgba(143, 180, 234, .5); animation: blink 2.2s infinite; }
.how-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.how-steps li { display: grid; gap: 6px; padding: 22px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--glass); }
.how-n { font: 500 13px var(--mono); color: var(--gold); letter-spacing: .1em; }
.how-steps strong { font: 600 21px var(--serif); }
.how-steps span:last-child { color: var(--fg-2); font-size: 15.5px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }
.game-grid, .lib-grid { display: grid; gap: 18px; margin-top: 24px; }
.game-card, .lib-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--glass); box-shadow: var(--shadow); transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; overflow: hidden; }
.game-card::before, .lib-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--skill, var(--check)); }
.game-card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow), 0 0 50px -20px var(--skill, var(--check)); }
.skill-check { --skill: var(--check); } .skill-decide { --skill: var(--decide); } .skill-own { --skill: var(--own); }
.card-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.game-no { color: var(--muted); }
.game-card h3, .lib-card h3 { font: 600 25px/1.15 var(--serif); }
.card-meta { color: var(--gold); font-size: 14.5px; font-weight: 700; }
.card-who { color: var(--fg-2); font-size: 15px; flex: 1; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.skill-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; border: 1px solid currentColor; }
.skill-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.skill-chip.check { color: var(--check); } .skill-chip.decide { color: var(--decide); } .skill-chip.own { color: var(--own); }
.skill-chip .term { border-bottom-color: currentColor; }
.skill-chip .q { border-color: currentColor; color: currentColor; width: 17px; height: 17px; font-size: 10.5px; }
.tag { font: 500 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); }
.note-tag { color: #f3c1c7; border-color: var(--red-line); }
.live-tag { color: var(--green); border-color: rgba(121, 214, 173, .45); }

/* ---------- Library ---------- */
.filters { display: grid; gap: 12px; margin: 28px 0 10px; }
.filter { display: grid; gap: 6px; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.filter select, .field select { min-height: 48px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--ink-2); color: var(--fg); padding: 0 12px; font: 400 16px var(--sans); text-transform: none; letter-spacing: 0; }
.count-line { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.lib-group { margin-top: 30px; }
.group-title { display: flex; align-items: center; gap: 12px; font: 600 28px var(--serif); }
.group-title.check { color: var(--check); } .group-title.decide { color: var(--decide); } .group-title.own { color: var(--own); }
.group-n { font: 500 13px var(--mono); color: var(--muted); }
.lib-card { box-shadow: none; }
.lib-setup { color: var(--fg-2); font-size: 15.5px; }
.lib-card details { border-top: 1px solid var(--line); padding-top: 10px; }
.lib-card summary { cursor: pointer; font-weight: 700; color: var(--gold); min-height: 36px; display: flex; align-items: center; }
.lib-card dl { margin: 8px 0 0; display: grid; gap: 4px; font-size: 14.5px; }
.lib-card dt { font: 500 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.lib-card dd { margin: 0; color: var(--fg-2); }

/* ---------- Notes (What you know) ---------- */
.notes { border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(12, 21, 38, .82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); padding: 18px; }
.notes-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.notes h2 { font: 500 12.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.notes-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.note { padding: 12px 12px 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); border-left: 3px solid var(--blue); display: grid; gap: 4px; font-size: 14.5px; animation: rise .35s var(--ease) both; }
.note-kind { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.note-sub { font: 500 11.5px var(--mono); color: var(--muted); }
.note.k-call { border-left-color: var(--check); }
.note.k-evidence { border-left-color: var(--gold); background: rgba(244, 200, 90, .07); }
.note.k-curve { border-left-color: var(--red); }
.note.k-you { border-left-color: #fff; }
.notes-empty { color: var(--muted); font-size: 14px; }

/* ---------- Speaker bar ---------- */
.speaker { position: fixed; left: 50%; top: calc(var(--hud) + 12px); z-index: 25; pointer-events: none; transform: translateX(-50%); width: min(720px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(8, 14, 26, .9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .9); animation: rise .3s var(--ease); }
.speaker-avatar, .avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 700 14px var(--sans); flex: none; color: var(--gold-ink); background: var(--gold); position: relative; }
.speaker-avatar.ai, .avatar.ai { background: #0a1120; color: var(--blue); border: 1px solid var(--ai-line); font: 500 12px var(--mono); }
.speaker-avatar.caller.c1, .avatar.caller.c1 { background: linear-gradient(135deg, #2c7280, #1d4e58); color: #fff; }
.speaker-avatar.caller.c2, .avatar.caller.c2 { background: linear-gradient(135deg, #f4c85a, #b8862a); color: var(--gold-ink); }
.speaker-avatar.caller.c3, .avatar.caller.c3 { background: linear-gradient(135deg, #a8485c, #7a2737); color: #fff; }
.speaker-body { display: grid; min-width: 0; flex: 1; }
.speaker-name { font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.speaker-text { font-size: 15.5px; color: var(--fg); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bars { display: flex; gap: 3px; align-items: center; height: 22px; flex: none; }
.bars i { width: 3px; height: 30%; background: var(--gold); border-radius: 2px; }
.speaker.live .bars i { animation: eq .9s ease-in-out infinite; }
.speaker.live .bars i:nth-child(2) { animation-delay: .15s; } .speaker.live .bars i:nth-child(3) { animation-delay: .3s; } .speaker.live .bars i:nth-child(4) { animation-delay: .45s; }
@keyframes eq { 50% { height: 100%; } }

/* ---------- Game: title ---------- */
.title-wrap { padding-top: clamp(10px, 4vh, 40px); }
.title-wrap .mega { max-width: 13ch; text-wrap: balance; }
.hook { font: 500 italic clamp(22px, 2.8vw, 32px)/1.35 var(--serif); color: var(--fg-2); max-width: 30ch; margin-bottom: 22px; border-left: 3px solid var(--gold); padding-left: 18px; }
.fiction { margin-top: 22px; font-size: 16.5px; color: var(--fg-2); max-width: 56ch; }
.meta-chips { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.meta-chips li { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); font-size: 14.5px; }

/* Content note */
.note-card { border-radius: var(--r-lg); border: 1px solid var(--red-line); background: linear-gradient(180deg, rgba(155, 52, 70, .2), rgba(155, 52, 70, .08)); padding: clamp(22px, 4vw, 36px); }
.note-card .eyebrow { color: #f3c1c7; }
.note-card.slim { padding: 16px 20px; margin-bottom: 18px; font-size: 16px; }

/* Brief */
.brief { display: grid; gap: 22px; align-items: start; }
.badge { position: relative; border-radius: 18px; padding: 20px; background: linear-gradient(160deg, #1b3157, #0d1a30 70%); border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; }
.badge::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .07) 50%, transparent 60%); animation: sheen 5s ease-in-out infinite; }
@keyframes sheen { from { transform: translateX(-100%); } 60%, to { transform: translateX(100%); } }
.badge-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.badge-co { font: 600 24px/1.15 var(--serif); margin-top: 18px; }
.badge-label { margin-top: 16px; }
.badge-seat { margin-top: 4px; color: var(--fg-2); font-size: 15.5px; }
.badge-code { display: flex; gap: 3px; margin-top: 18px; height: 26px; }
.badge-code i { flex: 1; background: rgba(255, 255, 255, .55); border-radius: 1px; }
.badge-code i:nth-child(3n) { flex: .4; } .badge-code i:nth-child(4n) { flex: 1.6; opacity: .6; } .badge-code i:nth-child(5n) { opacity: .25; }
.speaker-tag { display: flex; align-items: center; gap: 10px; font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.speaker-tag .avatar { width: 30px; height: 30px; font-size: 13px; }
.cold-open { font: 500 clamp(21px, 2.4vw, 28px)/1.5 var(--serif); color: var(--fg); }

/* AI panels */
.ai-grid { display: grid; gap: 16px; }
.ai-panel { position: relative; border-radius: var(--r-md); background: var(--ai-bg); border: 1px solid var(--ai-line); overflow: hidden; box-shadow: var(--shadow), 0 0 60px -30px rgba(91, 115, 153, .9); animation: boot .6s var(--ease) both; }
.ai-panel:nth-child(2) { animation-delay: .15s; }
@keyframes boot { from { opacity: 0; transform: scale(.97); filter: blur(4px); } }
.ai-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid rgba(91, 115, 153, .45); background: rgba(91, 115, 153, .1); }
.ai-bar .ico { color: var(--blue); margin-left: 6px; }
.ai-bar .ico svg { width: 16px; height: 16px; }
.ai-bar .mono { color: var(--blue); }
.ai-body { padding: 18px 18px 16px; display: grid; gap: 14px; }
.ai-says { font: 500 clamp(17px, 1.9vw, 20px)/1.5 var(--mono); color: #e8eef8; letter-spacing: 0; }
.ai-conf { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; text-transform: none; letter-spacing: .02em; }
.ai-conf .status-light { margin-top: 0; }
.sys-dialog { border-radius: 14px; background: #e9edf2; color: #111a28; padding: 16px 18px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8); display: grid; gap: 10px; animation: boot .5s .3s var(--ease) both; }
.sys-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: #6b4b00; }
.sys-msg { font-size: 18px; }
.sys-buttons { display: flex; justify-content: flex-end; gap: 8px; }
.sys-buttons span { padding: 6px 18px; border-radius: 8px; background: #cfd6df; font-weight: 700; font-size: 14px; }
.sys-buttons .sys-yes { background: var(--cobalt); color: #fff; }
.sys-conf { font-size: 12px; color: #6b4b00; }
.sys-dialog .term { border-bottom-color: #6b4b00; } .sys-dialog .q { border-color: #6b4b00; color: #6b4b00; }
.seat-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; margin: 26px 0 8px; color: var(--fg-2); }

/* Options */
.options { display: grid; gap: 12px; }
.option { position: relative; display: grid; grid-template-columns: 48px 1fr auto; gap: 16px; align-items: center; text-align: left; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--glass); cursor: pointer; transition: transform .15s var(--ease), border-color .2s, background .2s, box-shadow .2s; font-size: 17px; line-height: 1.45; min-height: 72px; }
.option:hover { border-color: var(--gold-line); transform: translateX(3px); }
.opt-letter { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font: 600 22px var(--serif); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); transition: all .2s; }
.opt-letter.sm { width: 34px; height: 34px; font-size: 17px; border-radius: 9px; }
.opt-key { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
.opt-flag { grid-column: 2; font: 500 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.option.picked { border-color: var(--gold); background: linear-gradient(180deg, rgba(244, 200, 90, .16), rgba(244, 200, 90, .06)); box-shadow: 0 0 0 1px var(--gold) inset, 0 18px 50px -24px rgba(244, 200, 90, .6); }
.option.picked .opt-letter { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.timesup { margin-top: 16px; padding: 10px 14px; border-radius: 10px; background: var(--red-bg); border: 1px solid var(--red-line); color: #ffd7dc; font-weight: 700; display: inline-block; }

/* Stamp */
.stamp { position: absolute; z-index: 5; right: 4%; top: 30%; padding: 10px 22px; border: 4px solid var(--gold); color: var(--gold); border-radius: 10px; font: 700 clamp(26px, 4vw, 44px)/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; transform: rotate(-9deg); background: rgba(11, 19, 34, .72); animation: stamp .42s var(--ease) both; pointer-events: none; }
@keyframes stamp { from { opacity: 0; transform: rotate(-9deg) scale(2.2); } 70% { transform: rotate(-9deg) scale(.94); } }
.trap-stamp { border-color: var(--red); color: var(--red); top: auto; bottom: 18px; right: 18px; animation-delay: .5s; }

/* Viewer countdown (podcast) */
.viewer { display: inline-flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 10px 16px 10px 10px; border-radius: 999px; border: 1px solid var(--gold-line); background: var(--gold-soft); font-weight: 700; }
.viewer-n { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); display: grid; place-items: center; font-size: 18px; }
.viewer.done .viewer-n { background: transparent; color: var(--gold); border: 1px solid var(--gold); }

/* Calls */
.contacts { display: grid; gap: 14px; }
.contact { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--glass); transition: opacity .3s, transform .3s, border-color .3s; }
.contact .avatar { width: 52px; height: 52px; font-size: 17px; }
.contact-who { font: 600 19px/1.25 var(--serif); }
.call-btn { border: 1px solid rgba(121, 214, 173, .5); color: var(--green); background: var(--green-bg); }
.call-btn:hover:not(:disabled) { background: rgba(60, 140, 110, .35); }
.call-btn kbd { font-size: 11px; color: var(--fg-2); }
.contact.dialing { border-color: var(--green); transform: scale(1.02); box-shadow: 0 0 0 0 rgba(121, 214, 173, .5); animation: dial 1s ease-out infinite; }
.contact.dialing .call-btn { color: #fff; }
.contact.unpicked { opacity: .28; }
@keyframes dial { to { box-shadow: 0 0 0 18px rgba(121, 214, 173, 0); } }
.in-call { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; padding: 22px; border-radius: var(--r-lg); border: 1px solid rgba(121, 214, 173, .35); background: linear-gradient(160deg, rgba(60, 140, 110, .14), rgba(255, 255, 255, .02)); }
.avatar.big { width: 92px; height: 92px; font-size: 28px; }
.ring-pulse { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(121, 214, 173, .7); animation: ring 1.6s ease-out infinite; }
@keyframes ring { to { inset: -22px; opacity: 0; } }
.call-who { font: 500 12.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.wave { display: flex; align-items: center; gap: 3px; height: 28px; margin: 8px 0 10px; }
.wave i { flex: 1; max-width: 5px; height: 20%; border-radius: 2px; background: var(--green); opacity: .7; }
.call-body:has(.speaking) .wave i { animation: eq .8s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: .1s; } .wave i:nth-child(3n+1) { animation-delay: .3s; } .wave i:nth-child(4n) { animation-delay: .45s; } .wave i:nth-child(5n) { animation-delay: .2s; }
.call-quote { margin: 0; font: 500 clamp(20px, 2.3vw, 26px)/1.45 var(--serif); }
.evidence { margin-top: 18px; border-radius: 6px 6px 14px 14px; background: var(--paper); color: var(--paper-ink); padding: 18px 20px; transform: rotate(-.6deg); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); animation: drop .5s .4s var(--ease) both; border-top: 6px solid var(--gold); }
@keyframes drop { from { opacity: 0; transform: rotate(-4deg) translateY(-14px); } }
.evidence-label { display: flex; align-items: center; gap: 8px; font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #7a5c20; margin-bottom: 8px; }
.evidence-text { font: 500 clamp(19px, 2.2vw, 24px)/1.4 var(--mono); }
.evidence .num, .case-file .num { color: inherit; background: linear-gradient(transparent 55%, rgba(244, 200, 90, .85) 55%); padding: 0 2px; }
.evidence .sent.now, .case-file .sent.now, .sys-dialog .sent.now, .record-card .sent.now { color: #0b1322; background: #ffe39a; text-decoration-color: #7a5c20; }
.evidence .term, .case-file .term { border-bottom-color: #7a5c20; } .evidence .q { border-color: #7a5c20; color: #7a5c20; }

/* Curveball */
.alert-card { position: relative; border-radius: var(--r-lg); border: 1px solid var(--red-line); background: linear-gradient(150deg, rgba(155, 52, 70, .42), rgba(11, 19, 34, .92) 70%); padding: 0 clamp(20px, 4vw, 36px) clamp(24px, 4vw, 38px); overflow: hidden; box-shadow: 0 0 90px -30px rgba(240, 140, 150, .7); animation: shake .5s .1s both; }
.alert-bar { display: flex; align-items: center; gap: 10px; margin: 0 calc(-1 * clamp(20px, 4vw, 36px)) 24px; padding: 12px clamp(20px, 4vw, 36px); color: #ffd7dc; background: repeating-linear-gradient(-45deg, rgba(240, 140, 150, .22) 0 14px, rgba(240, 140, 150, .08) 14px 28px); border-bottom: 1px solid var(--red-line); }
.alert-bar .dot { margin-left: auto; }
.alert-card .eyebrow { color: #ffc2c9; }
.curve-text { font: 600 clamp(26px, 3.4vw, 40px)/1.25 var(--serif); }
@keyframes shake { 15%, 45%, 75% { transform: translateX(-7px); } 30%, 60%, 90% { transform: translateX(7px); } }

/* Bet */
.bet-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bet-choice { position: relative; min-height: 96px; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--glass); font: 600 clamp(22px, 2.6vw, 30px)/1.2 var(--serif); cursor: pointer; transition: all .2s var(--ease); padding: 14px; }
.bet-choice kbd { position: absolute; top: 10px; right: 12px; font-size: 11px; color: var(--muted); }
.bet-choice:hover { border-color: var(--gold-line); }
.bet-choice.picked { border-color: var(--gold); background: linear-gradient(180deg, rgba(244, 200, 90, .2), rgba(244, 200, 90, .06)); box-shadow: 0 0 0 1px var(--gold) inset; }
.stakes-wrap { margin-top: 26px; }
.label { font-weight: 700; margin-bottom: 12px; }
.stakes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stake { min-height: 76px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); cursor: pointer; display: grid; place-content: center; gap: 4px; transition: all .2s; }
.stake strong { font-size: 18px; }
.stake .mono { color: var(--muted); font-size: 12px; }
.stake.picked { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 1px var(--gold) inset; }
.stake.picked .mono { color: var(--gold); }

/* Outcome */
.calls-compare { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.calls-compare div { display: grid; gap: 4px; padding: 12px 18px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--glass); font: 600 24px var(--serif); }
.calls-compare .arrow { color: var(--gold); }
.outcome-card { position: relative; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--glass); padding: clamp(20px, 3.5vw, 32px); overflow: hidden; }
.outcome-card.trapped { border-color: var(--red-line); background: linear-gradient(160deg, rgba(155, 52, 70, .3), rgba(11, 19, 34, .6)); box-shadow: 0 0 80px -30px rgba(240, 140, 150, .7); animation: shake .45s .55s both; }
.your-call { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--fg-2); font-size: 15px; margin-bottom: 16px; }
.consequence { font: 500 clamp(22px, 2.6vw, 30px)/1.42 var(--serif); }
.bet-result { display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--line); }
.bet-result.good { border-color: rgba(121, 214, 173, .45); background: var(--green-bg); }
.bet-result.good > .ico { color: var(--green); }
.bet-result.bad { border-color: var(--red-line); background: var(--red-bg); }
.bet-result.bad > .ico { color: var(--red); }
.bet-result > .ico svg { width: 26px; height: 26px; }
.bet-q { font-weight: 700; margin-bottom: 4px; }
.doctrine { margin-top: 18px; color: var(--muted); font-size: 14.5px; }
.quick-score { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 18px; padding: 16px 20px; border-radius: var(--r-md); border: 1px solid var(--gold-line); background: var(--gold-soft); }
.quick-score .score-num { font-size: 40px; }
.quick-score .fine { margin: 0; }

/* Score */
.score-head { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; margin-bottom: 24px; }
.score-ring { width: 150px; height: 150px; border-radius: 50%; display: grid; place-content: center; text-align: center; gap: 2px; border: 2px solid var(--gold); background: radial-gradient(circle, rgba(244, 200, 90, .18), transparent 70%); box-shadow: 0 0 60px -10px rgba(244, 200, 90, .5); }
.score-ring .mono { font-size: 11px; }
.score-num { font: 600 54px/1 var(--serif); color: var(--gold); }
.score-head .eyebrow { display: none; }
.score-lines, .skills { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.score-lines li, .skills li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); animation: rise .4s var(--ease) both; }
.score-lines li:nth-child(2) { animation-delay: .08s; } .score-lines li:nth-child(3) { animation-delay: .16s; } .score-lines li:nth-child(4) { animation-delay: .24s; } .score-lines li:nth-child(5) { animation-delay: .32s; }
.score-lines .plus > .ico { color: var(--green); } .score-lines .minus > .ico { color: var(--red); } .score-lines .zero > .ico { color: var(--muted); }
.score-lines .zero .line-text { color: var(--muted); }
.line-pts { font-size: 15px; }
.plus .line-pts { color: var(--green); } .minus .line-pts { color: var(--red); } .zero .line-pts { color: var(--muted); }
.minus { border-color: var(--red-line) !important; background: var(--red-bg) !important; }
.skills li { grid-template-columns: 28px 1fr; font-size: 18px; }
.skills li.earned { border-color: rgba(121, 214, 173, .45); background: var(--green-bg); }
.skills li.earned .ico { color: var(--green); }
.skills li:not(.earned) { color: var(--muted); }
.record { margin-top: 26px; padding: 20px; border-radius: var(--r-lg); border: 1px dashed var(--line-2); }
.record .mini-title { margin-top: 0; margin-bottom: 4px; }
.record .fine { margin: 0 0 14px; }
.record dl { margin: 0; display: grid; grid-template-columns: minmax(110px, 160px) 1fr; gap: 10px 18px; }
.record dt { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.record dd { margin: 0; display: grid; gap: 2px; }
.record dd span { color: var(--fg-2); font-size: 15px; }
.record dd.good strong { color: var(--green); } .record dd.bad strong { color: var(--red); }

/* Clues: escape-room locks */
.locks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lock { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; padding: 16px; border-radius: var(--r-md); border: 1px dashed var(--line-2); background: rgba(255, 255, 255, .02); }
.lock-icon { grid-row: span 2; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); color: var(--muted); }
.lock-icon svg { width: 26px; height: 26px; }
.lock-text { font: 600 21px/1.3 var(--serif); color: var(--muted); }
.lock.open { border-style: solid; border-color: var(--gold-line); background: var(--gold-soft); }
.lock.open .lock-icon { background: var(--gold); color: var(--gold-ink); }
.lock.open .lock-text { color: var(--fg); }
.lock.just .lock-icon { animation: unlock .6s var(--ease); }
@keyframes unlock { 30% { transform: rotate(-14deg) scale(1.1); } 60% { transform: rotate(10deg); } }
.clue-list.solemn { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font: 500 22px/1.4 var(--serif); }
.clue-list.solemn li { padding: 14px 18px; border-left: 3px solid var(--line-2); }

/* Case file */
.case-file { position: relative; margin-top: 14px; border-radius: 4px 16px 16px 16px; background: var(--paper); color: var(--paper-ink); padding: clamp(24px, 4vw, 40px); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .95); animation: unseal .7s var(--ease) both; }
@keyframes unseal { from { clip-path: inset(0 0 100% 0); opacity: .3; } to { clip-path: inset(0 0 0 0); } }
.case-tab { display: inline-block; padding: 4px 10px; margin-bottom: 14px; border: 1px solid rgba(122, 92, 32, .45); border-radius: 6px; color: #7a5c20; font-size: 11.5px; }
.case-stamp { position: absolute; top: 18px; right: 18px; padding: 6px 14px; border: 3px solid #9b3446; color: #9b3446; border-radius: 8px; font-size: 15px; letter-spacing: .16em; transform: rotate(8deg); opacity: .85; animation: stamp-c .45s .55s var(--ease) both; }
@keyframes stamp-c { from { opacity: 0; transform: rotate(8deg) scale(2); } }
.case-file .eyebrow { color: #7a5c20; padding-right: 120px; }
.case-title { font: 600 clamp(22px, 2.6vw, 30px)/1.2 var(--serif); margin-bottom: 16px; }
.case-text { font: 400 clamp(17px, 1.8vw, 19px)/1.65 var(--serif); }
.source { margin-top: 18px; font-size: 14.5px; color: var(--paper-mute); }
.source a { color: #164b88; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.source .ico svg { width: 15px; height: 15px; }

/* Lesson */
.lesson { margin: 0; position: relative; padding: 10px 0 10px 28px; border-left: 4px solid var(--gold); font: 500 italic clamp(30px, 4.4vw, 54px)/1.15 var(--serif); text-wrap: balance; }
.framework { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; font-size: 19px; }
.framework strong { padding: 6px 14px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); }
.research { display: grid; gap: 12px; }
.study { padding: 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--glass); display: grid; gap: 6px; }
.study-pub { font: 500 italic 15px var(--serif); color: var(--fg-2); }
.twist { margin-top: 18px; border-radius: var(--r-md); border: 1px dashed var(--gold-line); padding: 0 18px; }
.twist summary { cursor: pointer; min-height: 52px; display: flex; align-items: center; font-weight: 700; color: var(--gold); }
.twist p { padding-bottom: 14px; }
.twist .fine { margin-top: 0; }

/* Closing (podcast) */
.closing-q { font: 600 clamp(32px, 5vw, 64px)/1.15 var(--serif); text-wrap: balance; }

/* End */
.rule { font: 500 clamp(22px, 2.6vw, 30px)/1.4 var(--serif); padding: 22px 24px; border-radius: var(--r-lg); border: 1px solid var(--gold-line); background: var(--gold-soft); }
.two-col { display: grid; gap: 14px; margin-top: 8px; }
.panel { padding: 0 20px 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--glass); }
.panel .mini-title { margin-top: 20px; }
.talk { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--fg-2); }
.team-cta { margin-top: 36px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 22px 24px; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: linear-gradient(120deg, rgba(36, 87, 214, .22), rgba(11, 19, 34, .4)); }
.team-cta .eyebrow { margin-bottom: 6px; }
.team-cta-text { font: 600 21px var(--serif); }
.end-card { text-align: center; display: grid; justify-items: center; gap: 18px; padding-top: 4vh; }
.end-card .mega { font-size: clamp(40px, 6vw, 84px); }
.end-line { font-size: 24px; color: var(--fg-2); }
.end-url { font-size: 20px; color: var(--gold); text-transform: none; letter-spacing: 0; word-break: break-all; }

/* Round interstitial */
.round-card { position: fixed; inset: 0; z-index: 60; display: grid; place-content: center; justify-items: center; gap: 14px; background: radial-gradient(circle at 50% 45%, rgba(16, 31, 50, .96), rgba(5, 10, 20, .98)); animation: fade-in .2s both; }
.round-card.out { animation: fade-out .26s both; }
.round-n { color: var(--gold); font-size: 14px; letter-spacing: .3em; }
.round-label { font: 600 clamp(48px, 9vw, 110px)/1 var(--serif); letter-spacing: -.02em; animation: zoom-in .5s var(--ease) both; }
.round-bar { width: 220px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .12); position: relative; overflow: hidden; }
.round-bar::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform-origin: left; animation: grow .85s linear both; }
@keyframes fade-in { from { opacity: 0; } } @keyframes fade-out { to { opacity: 0; } }
@keyframes zoom-in { from { opacity: 0; transform: scale(1.25); letter-spacing: .1em; } }
@keyframes grow { from { transform: scaleX(0); } }

/* Settings dialog */
.settings { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--ink-2); color: var(--fg); padding: 26px; width: min(440px, calc(100% - 32px)); box-shadow: var(--shadow); }
.settings::backdrop { background: rgba(2, 6, 14, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.settings h2 { font: 600 26px var(--serif); margin-bottom: 8px; }
.settings-help { color: var(--fg-2); font-size: 15px; margin-bottom: 18px; }
.field { display: grid; gap: 8px; margin: 0 0 16px; border: 0; padding: 0; font-weight: 700; font-size: 14px; }
.field legend { padding: 0; margin-bottom: 8px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg button { min-height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-weight: 700; }
.seg button[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.settings-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }

/* Host bar (podcast) */
.host-bar { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 40; display: flex; gap: 4px; padding: 6px; border-radius: 14px; background: rgba(8, 14, 26, .85); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: .55; transition: opacity .2s; }
.host-bar:hover, .host-bar:focus-within { opacity: 1; }
.host-bar button { min-height: 36px; padding: 0 10px; border-radius: 9px; border: 0; background: transparent; cursor: pointer; font-size: 13px; color: var(--fg-2); }
.host-bar button:hover { background: rgba(255, 255, 255, .08); }
.host-bar kbd { font-size: 11px; color: var(--fg-2); }

/* Footer */
.footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px clamp(16px, 3vw, 36px); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; background: rgba(5, 10, 20, .6); }
.footer a { color: var(--fg-2); }

/* Solemn game: no theatrics */
.mode-solemn .alert-card { animation: none; background: linear-gradient(150deg, rgba(30, 53, 89, .6), rgba(11, 19, 34, .92)); border-color: var(--line-2); box-shadow: none; }
.mode-solemn .alert-bar { background: rgba(255, 255, 255, .04); border-color: var(--line); color: var(--fg-2); }
.mode-solemn .alert-bar .dot { display: none; }
.mode-solemn .outcome-card { animation: none; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .how-steps { grid-template-columns: repeat(2, 1fr); }
  .game-grid, .lib-grid { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: repeat(2, 1fr); }
  .brief { grid-template-columns: 240px 1fr; }
  .ai-grid.n2 { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr 1fr; }
  .research { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .home-hero { grid-template-columns: 1.05fr .95fr; }
  .how-steps { grid-template-columns: repeat(4, 1fr); }
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .lib-grid { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: repeat(4, 1fr); }
  .contacts { grid-template-columns: repeat(3, 1fr); }
  .contact { grid-template-columns: 1fr; justify-items: start; padding: 20px; min-height: 210px; align-content: space-between; }
  .contact .call-btn { width: 100%; }
}
@media (min-width: 1100px) {
  body.in-game .layout { grid-template-columns: minmax(0, 1fr) 300px; }
  body.in-game .notes { position: sticky; top: calc(var(--hud) + 20px); max-height: calc(100vh - var(--hud) - 40px); overflow: auto; }
  body.in-game .notes-toggle, .notes-close { display: none; }
}
@media (max-width: 1099px) {
  body.in-game .notes { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; max-height: 72vh; overflow: auto; border-radius: 22px 22px 0 0; transform: translateY(105%); transition: transform .3s var(--ease); box-shadow: 0 -30px 80px -20px rgba(0, 0, 0, .9); padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  body.in-game.notes-open .notes { transform: none; }
}
@media (max-width: 760px) {
  :root { --hud: 60px; }
  body { font-size: 16.5px; }
  .hud { gap: 8px; }
  .wm { font-size: 21px; }
  .wm-sub { display: none; }
  .chapters { position: absolute; left: 0; right: 0; bottom: -1px; gap: 3px; padding: 0 16px; transform: translateY(100%); background: rgba(8, 14, 26, .85); height: 30px; border-bottom: 1px solid var(--line); }
  .chapters .ch-list > li { flex: 1; padding: 0; border: 0; background: none !important; justify-content: center; font-size: 11.5px; }
  .chapters .ch-n { display: none; }
  .chapters .ch-list > li::before { content: ""; position: absolute; }
  .chapters .ch-list > li { position: relative; height: 100%; }
  .chapters .ch-list > li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .14); }
  .chapters .ch-list > li.done::after, .chapters .ch-list > li.current::after { background: var(--gold); }
  .chapters .ch-list > li:not(.current) .ch-label { display: none; }
  .chapters .ch-list > li.current .ch-label { color: var(--gold); font-weight: 700; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; padding-bottom: 6px; }
  body.in-game .layout { padding-top: 48px; }
  .pill span:first-child { display: none; }
  .pill { padding: 0 10px; }
  .pill::before { content: "Notes"; font-size: 13px; }
  .clock { width: 46px; height: 46px; }
  .icon-btn { width: 42px; height: 42px; }
  .option { grid-template-columns: 40px 1fr; gap: 12px; padding: 14px; font-size: 16px; }
  .opt-letter { width: 40px; height: 40px; font-size: 19px; }
  .opt-key { display: none; }
  .bet-choice kbd, .call-btn kbd { display: none; }
  .in-call { grid-template-columns: 1fr; justify-items: start; }
  .avatar.big { width: 72px; height: 72px; }
  .score-head { grid-template-columns: 1fr; justify-items: start; }
  .score-ring { width: 128px; height: 128px; }
  .record dl { grid-template-columns: 1fr; gap: 4px; }
  .record dd { margin-bottom: 10px; }
  .stamp { right: 0; top: 12%; }
  .console { transform: none; }
  .speaker { top: calc(var(--hud) + 38px); padding: 8px 12px 8px 8px; }
  .speaker-text { font-size: 14.5px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .actions .btn.lg { flex: 1 1 auto; }
}

/* ---------- Podcast (16:9 stage) ---------- */
.mode-stage .layout { max-width: none; padding: 2.5vh 4vw 7vh; display: block; }
.mode-stage.host-hidden .layout { padding-bottom: 2vh; }
.mode-stage .notes, .mode-stage .speaker { display: none !important; }
.mode-stage .stage .scene { zoom: calc(var(--pz, 1) * var(--fit, 1)); max-width: 1180px; margin: 0 auto; font-size: 22px; }
.mode-stage .meta-chips { display: none; }
.mode-stage .title-wrap { padding-top: 0; }
.mode-stage .mega.title { font-size: 84px; }
.mode-stage .your-call { display: none; }
.mode-stage .record { padding: 14px 18px; margin-top: 16px; }
.mode-stage .record dl { gap: 4px 18px; }
.mode-stage .skills li { padding: 9px 14px; }
.mode-stage .options { grid-template-columns: repeat(3, 1fr); }
.mode-stage .option { grid-template-columns: 1fr; align-content: start; font-size: 22px; min-height: 0; }
.mode-stage .opt-key { position: absolute; top: 14px; right: 14px; }
.mode-stage .cold-open, .mode-stage .call-quote, .mode-stage .consequence { font-size: 32px; }
.mode-stage .case-text { font-size: 22px; }
.mode-stage .question { font-size: 40px; }
.mode-stage .brief { grid-template-columns: 260px 1fr; }
.mode-stage .contacts { grid-template-columns: repeat(3, 1fr); }
.mode-stage .contact { grid-template-columns: 1fr; justify-items: start; min-height: 200px; align-content: space-between; }
.mode-stage .footer { padding: 6px 4vw; font-size: 12px; }
.mode-stage.host-hidden .footer { padding-bottom: 6px; }
.mode-stage .research { grid-template-columns: 1fr 1fr; }
.mode-stage .ai-says { font-size: 24px; }

/* ---------- Reduced motion ---------- */
.rm *, .rm *::before, .rm *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .hud, .footer, .speaker, .host-bar, .notes, .backdrop { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Illustrations, icons, hints, celebration ---------- */
.ico.art { display: block; width: 100%; height: 100%; }
.ico.art svg { width: 100%; height: 100%; stroke: none; stroke-width: 0; fill: none; }
.card-art { margin: -24px -24px 8px; height: 150px; padding: 14px 18px 6px; border-bottom: 1px solid var(--line); background: radial-gradient(120% 90% at 50% 0%, rgba(36, 87, 214, .2), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .03), transparent); }
.game-card:hover .card-art .fly, .game-card:hover .card-art .pop { animation: float 2.4s ease-in-out infinite; }
.title-grid { display: grid; gap: 8px; align-items: center; }
.title-art { margin: 0; order: -1; height: 170px; max-width: 360px; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5)); }
.title-art .fly, .title-art .pop { animation: float 3s ease-in-out infinite; transform-origin: center; }
.title-art .blink, .card-art .blink { animation: blink 1s steps(1) infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
.chapters .ch-n svg { width: 14px; height: 14px; }
.chapters .ch-n .ico svg { width: 14px; height: 14px; }
.how-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--gold); background: var(--gold-soft); border: 1px solid var(--gold-line); margin-bottom: 6px; }
.how-icon .ico svg { width: 22px; height: 22px; }
.round-icon { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; color: var(--gold-ink); background: var(--gold); box-shadow: 0 0 0 10px rgba(244, 200, 90, .12), 0 0 60px rgba(244, 200, 90, .45); animation: zoom-in .45s var(--ease) both; margin-bottom: 6px; }
.round-icon .ico svg { width: 38px; height: 38px; stroke-width: 2; }
.hint { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px dashed var(--line-2); color: var(--fg-2); font-size: 14px; background: rgba(255, 255, 255, .025); }
.hint .ico { color: var(--gold); }
.hint .ico svg { width: 18px; height: 18px; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 8px; height: 14px; border-radius: 2px; animation: fall 2.4s cubic-bezier(.25, .6, .4, 1) forwards; }
@keyframes fall { to { transform: translate(var(--x, 0), 105vh) rotate(var(--r, 360deg)); opacity: .9; } }
@media (min-width: 900px) {
  .title-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; }
  .title-art { order: 2; height: auto; max-width: none; aspect-ratio: 16 / 10; }
}
@media (max-width: 760px) { .title-art { height: 140px; margin: 0 auto; } }
.mode-stage .title-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.mode-stage .title-art { order: 2; height: auto; aspect-ratio: 16 / 10; }

body.in-game.no-notes .notes, body.in-game.no-notes .notes-toggle { display: none !important; }
@media (min-width: 1100px) { body.in-game.no-notes .layout { grid-template-columns: minmax(0, 1fr); } }
.scene.s-title { max-width: 1160px; }
.title-grid .mega.title { font-size: clamp(42px, 6vw, 84px); max-width: 14ch; }
.mode-stage .title-grid .mega.title { font-size: 76px; }

/* ---------- Decision journal and Part 2 ---------- */
.journal-card { display: grid; gap: 14px; padding: clamp(16px, 3vw, 24px); border-radius: var(--r-lg); border: 1px solid var(--gold-line); background: linear-gradient(180deg, rgba(244, 200, 90, .07), rgba(255, 255, 255, .02)); position: relative; }
.journal-card::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.journal-card.grid2 { grid-template-columns: 1fr; }
.j-q { display: flex; gap: 10px; align-items: center; font: 600 19px/1.3 var(--serif); }
.j-q .ico, .eyebrow .ico, .mini-title .ico { color: var(--gold); }
.eyebrow .ico svg, .mini-title .ico svg { width: 16px; height: 16px; }
.j-field { display: grid; gap: 6px; }
.j-label { font: 700 14.5px var(--sans); color: var(--fg); }
.j-input { width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(5, 10, 20, .55); color: var(--fg); padding: 12px 14px; font: 400 16.5px/1.45 var(--sans); resize: vertical; transition: border-color .2s, box-shadow .2s; }
.j-input::placeholder { color: #7f91a8; }
.j-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(244, 200, 90, .22); }
input.j-input[type="date"] { color-scheme: dark; }
.j-field.line .j-input { min-height: 48px; }
.s-gut .j-field, .s-final .j-field { margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--fg-2); cursor: pointer; font-size: 14.5px; transition: all .15s; }
.chip:hover, .chip:focus-visible { border-color: var(--gold); color: var(--fg); background: var(--gold-soft); }
.example { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-2); color: var(--fg-2); font-size: 15px; }
.j-context { display: grid; gap: 4px; margin: -4px 0 16px; padding: 10px 14px; border-left: 3px solid var(--gold); color: var(--fg-2); }
.part-head { display: grid; gap: 12px; align-items: center; margin-bottom: 18px; }
.part-art { margin: 0; height: 150px; max-width: 300px; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .5)); }
.fw-lesson { color: var(--fg-2); font: 500 italic 17px var(--serif); }
.framework { margin-bottom: 18px; }
.if-then { display: grid; gap: 10px; }
.rule-card .chips .chip { font-size: 13.5px; }
.before-after { margin-top: 18px; }
.before-after .mini-title { margin: 0; }
.before-after dl { margin: 0; display: grid; grid-template-columns: minmax(120px, 190px) 1fr; gap: 10px 18px; }
.before-after dt { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.before-after dd { margin: 0; display: grid; gap: 2px; }
.before-after .why { color: var(--fg-2); font-size: 15px; font-style: italic; }
.record-card { border-radius: 6px 6px 18px 18px; background: var(--paper); color: var(--paper-ink); padding: clamp(20px, 4vw, 34px); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .95); border-top: 6px solid var(--gold); display: grid; gap: 18px; }
.record-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid rgba(11, 19, 34, .12); padding-bottom: 12px; }
.record-top .wm { color: var(--paper-ink); font-size: 22px; }
.record-top .wm span { color: #7a5c20; }
.record-top .dim { color: var(--paper-mute); }
.record-group h3 { font: 600 19px var(--serif); margin-bottom: 8px; }
.record-group dl { margin: 0; display: grid; grid-template-columns: minmax(130px, 210px) 1fr; gap: 6px 16px; font-size: 15.5px; }
.record-group dt { font: 500 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #6b5420; padding-top: 3px; }
.record-group dd { margin: 0; white-space: pre-wrap; }
.record-group .dim { color: var(--paper-mute); font-size: 14.5px; }
.record-actions { margin-top: 14px; }
.full-cta { margin-top: 22px; }
@media (min-width: 640px) {
  .journal-card.grid2 { grid-template-columns: 1fr 1fr; }
  .if-then { grid-template-columns: 1fr 1fr; }
  .part-head { grid-template-columns: 260px 1fr; }
}
@media (max-width: 640px) {
  .before-after dl, .record-group dl { grid-template-columns: 1fr; gap: 2px; }
  .before-after dd, .record-group dd { margin-bottom: 10px; }
  .part-art { height: 120px; margin: 0 auto; }
}
@media print {
  body * { visibility: hidden !important; }
  .record-card, .record-card * { visibility: visible !important; }
  .record-card { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; border-radius: 0; }
}

/* =====================================================================
   v2: two parts, the skill map, unlocks, mission clock, Spot the gap,
   dropdown journal, Room mode
   ===================================================================== */
:root { --stick: #c4a1ff; --sec: var(--check); }
.sec-check { --sec: #8fb4ea; } .sec-decide { --sec: #f4c85a; } .sec-own { --sec: #79d6ad; } .sec-stick { --sec: #c4a1ff; }

/* "Now speaking" pill in the top bar: never covers the page */
.now-speaking { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 4px; border-radius: 999px; border: 1px solid var(--gold-line); background: var(--gold-soft); animation: rise .25s var(--ease); max-width: 230px; }
.now-speaking .speaker-avatar { width: 32px; height: 32px; font-size: 12px; }
.now-speaking .speaker-name { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-speaking .bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.now-speaking .bars i { width: 3px; height: 30%; border-radius: 2px; background: var(--gold); }
.now-speaking.live .bars i { animation: eq .9s ease-in-out infinite; }
.now-speaking.live .bars i:nth-child(2) { animation-delay: .15s; } .now-speaking.live .bars i:nth-child(3) { animation-delay: .3s; } .now-speaking.live .bars i:nth-child(4) { animation-delay: .45s; }
@media (max-width: 1100px) { .now-speaking .speaker-name { display: none; } .now-speaking { padding-right: 10px; } }
@media (max-width: 760px) { .now-speaking { display: none !important; } }
.mode-stage .now-speaking { display: none !important; }

/* Chapters: Part 1 and Part 2 */
.chapters .ch-list > li.part-start { margin-left: 14px; position: relative; }
.chapters .ch-part { position: absolute; left: -10px; top: -9px; font-size: 9px; color: var(--gold); letter-spacing: .1em; }
@media (max-width: 1499px) { .chapters .ch-list > li:not(.current) .ch-label { display: none; } .chapters .ch-list > li:not(.current) { padding: 4px; } }
@media (max-width: 760px) { .chapters .ch-part { display: none; } .chapters .ch-list > li.part-start { margin-left: 6px; } }

/* Mission clock */
@keyframes urgent { 50% { box-shadow: 0 0 0 4px rgba(240, 140, 150, .18), 0 0 40px -6px rgba(240, 140, 150, .6); } }
body.urgent .clock { animation: urgent 1s ease-in-out infinite; border-radius: 50%; }
body.urgent .backdrop { background: radial-gradient(900px 600px at 50% 0%, rgba(155, 52, 70, .28), transparent 60%), linear-gradient(180deg, var(--ink-1), var(--ink-0)); }

/* Stars */
.stars { display: inline-flex; gap: 4px; vertical-align: middle; }
.stars i { width: 22px; height: 22px; color: rgba(255, 255, 255, .2); display: grid; place-items: center; }
.stars i .ico svg { width: 22px; height: 22px; fill: currentColor; stroke: currentColor; }
.stars i.on { color: var(--gold); filter: drop-shadow(0 0 8px rgba(244, 200, 90, .6)); }
.stars.big i, .stars.big i .ico svg { width: 40px; height: 40px; }
.stars.fill i.on { transform: scale(0); }
.stars.fill i.on.pop { animation: pop-in .45s var(--ease) forwards; }
.rm .stars.fill i.on { transform: none; }
@keyframes pop-in { 0% { transform: scale(0) rotate(-40deg); } 70% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* Skill map (home) */
.skill-map { margin-top: clamp(40px, 7vw, 80px); }
.map-count { color: var(--gold); }
.map-path { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; position: relative; }
.map-node { position: relative; padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--glass); box-shadow: var(--shadow); display: grid; gap: 14px; }
.map-node.st-unlocked { border-color: color-mix(in srgb, var(--sec) 55%, transparent); box-shadow: var(--shadow), 0 0 60px -30px var(--sec); }
.map-node.st-next { border-color: var(--gold-line); }
.map-node.st-locked { background: rgba(255, 255, 255, .015); }
.node-head { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; }
.node-badge { position: relative; width: 64px; height: 64px; display: block; }
.node-badge > .ico, .node-badge > .ico svg { width: 64px; height: 64px; display: block; }
.node-lock, .tn-lock, .mg-lock { position: absolute; right: -4px; bottom: -4px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-1); border: 1px solid var(--line-2); color: var(--fg-2); }
.node-lock .ico svg, .tn-lock .ico svg, .mg-lock .ico svg { width: 14px; height: 14px; }
.node-title h3 { font: 600 26px/1.1 var(--serif); }
.node-title .q { vertical-align: middle; }
.node-goal { color: var(--fg-2); font-size: 15.5px; margin-top: 4px; }
.node-status { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 6px; font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.node-status .ico svg { width: 13px; height: 13px; }
.node-status.st-unlocked { color: var(--green); border-color: rgba(121, 214, 173, .5); background: var(--green-bg); }
.node-status.st-next { color: var(--gold); border-color: var(--gold-line); background: var(--gold-soft); }
.node-games { display: grid; gap: 12px; }
.node-how { color: var(--fg-2); padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-2); }
.node-practice { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.node-practice li { font-size: 13.5px; color: var(--muted); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }
.map-game { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(5, 10, 20, .35); }
.map-game .card-actions { grid-column: 1 / -1; margin-top: 0; }
.mg-art { position: relative; height: 72px; }
.map-game.looks-locked .mg-art .ico.art { filter: grayscale(1) brightness(1.35); opacity: .42; }
.map-game.looks-locked h4 { color: var(--fg-2); }
.mg-lock { right: 4px; bottom: 4px; }
.mg-body h4 { font: 600 19px/1.2 var(--serif); margin: 4px 0; }
.mg-body .mono { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 11px; }
.mg-body .fine { margin-top: 2px; }
.mg-stars { display: flex; align-items: center; gap: 10px; }
.mg-stars .fine { margin: 0; }
.map-game.done { border-color: rgba(121, 214, 173, .35); }
.home-more { margin-top: 26px; }
.how-parts { display: grid; gap: 18px; }
.how-part { padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.part-tag { color: var(--gold); margin-bottom: 14px; }
@media (min-width: 760px) {
  .map-node { grid-template-columns: 1fr; padding: 24px; }
  .node-head { grid-template-columns: 80px 1fr auto; }
  .node-badge, .node-badge > .ico, .node-badge > .ico svg { width: 80px; height: 80px; }
  .node-status { grid-column: auto; justify-self: end; }
  .node-games { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
  .map-game { grid-template-columns: 120px 1fr; }
}
@media (min-width: 980px) { .how-parts { grid-template-columns: 1fr 1fr; } .how-part .how-steps { grid-template-columns: 1fr 1fr; } }

/* First page: learning goals and the unlock track */
.goals { margin-top: 18px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(5, 10, 20, .4); max-width: 620px; }
.goals-label { color: var(--gold); margin-bottom: 8px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.ticks li { position: relative; padding-left: 28px; color: var(--fg-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--gold-soft); border: 1px solid var(--gold-line); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: calc(.35em + 4px); width: 4px; height: 7px; border: solid var(--gold); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.unlock-track { margin-top: 16px; max-width: 620px; }
.track-label { color: var(--muted); margin-bottom: 8px; }
.unlock-track ol, .end-map { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.track-node { position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; padding: 10px 6px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.tn-badge { position: relative; width: 44px; height: 44px; display: block; }
.tn-badge > .ico, .tn-badge > .ico svg { width: 44px; height: 44px; display: block; }
.tn-lock { right: -8px; bottom: -6px; width: 22px; height: 22px; }
.tn-lock .ico svg { width: 12px; height: 12px; }
.tn-name { font: 700 13.5px/1.2 var(--sans); }
.tn-status { font: 500 10px/1.25 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.track-node.locked .tn-name { color: var(--muted); }
.track-node.unlocked { border-color: rgba(121, 214, 173, .35); }
.track-node.unlocked .tn-status { color: var(--green); }
.track-node.mine, .track-node.mine2 { border-color: var(--sec); background: color-mix(in srgb, var(--sec) 12%, transparent); }
.track-node.mine .tn-status, .track-node.mine2 .tn-status { color: var(--sec); }
.track-node.mine .tn-badge { animation: glow-pulse 1.8s ease-in-out infinite; border-radius: 50%; }
.track-node.mine2 .tn-badge > .ico { filter: saturate(.7); }
@keyframes glow-pulse { 50% { filter: drop-shadow(0 0 12px var(--sec)); transform: scale(1.06); } }

/* What you'll learn */
.learn-head { display: grid; grid-template-columns: 90px 1fr; gap: 18px; align-items: center; margin-bottom: 18px; }
.learn-badge { margin: 0; width: 90px; height: 90px; filter: drop-shadow(0 0 24px color-mix(in srgb, var(--sec) 50%, transparent)); animation: float 3s ease-in-out infinite; }
.learn-badge .ico, .learn-badge .ico svg { width: 90px; height: 90px; display: block; }
.learn-head .question { margin-bottom: 8px; }
.learn-head .sub { margin: 0; }
.course-map { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: cm; }
.cm-node { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 12px 6px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); color: var(--muted); }
.cm-badge, .cm-badge > .ico, .cm-badge > .ico svg { width: 40px; height: 40px; display: block; }
.cm-text { display: grid; gap: 2px; }
.cm-n { font-size: 10px; }
.cm-name { font: 700 14px var(--sans); color: var(--fg-2); }
.cm-node.here { border-color: var(--sec); background: color-mix(in srgb, var(--sec) 14%, transparent); color: var(--fg); }
.cm-node.here2 { border-style: dashed; border-color: var(--sec); }
.cm-tag { font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--sec); color: var(--gold-ink); }
.learn-grid { display: grid; gap: 12px; }
.learn-box { padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass); }
.learn-box .mini-title { margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.learn-box p { color: var(--fg-2); }
.research-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.research-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; }
@media (min-width: 760px) { .learn-grid { grid-template-columns: 1fr 1fr; } .learn-head { grid-template-columns: 120px 1fr; } .learn-badge, .learn-badge .ico, .learn-badge .ico svg { width: 120px; height: 120px; } }

/* How to play */
.rule-cards { display: grid; gap: 12px; }
.rule-card { position: relative; display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; row-gap: 2px; align-items: start; padding: 16px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--glass); transition: border-color .3s, box-shadow .3s, transform .3s; animation: rise .4s var(--ease) both; }
.rule-card:nth-child(2) { animation-delay: .06s; } .rule-card:nth-child(3) { animation-delay: .12s; } .rule-card:nth-child(4) { animation-delay: .18s; } .rule-card:nth-child(5) { animation-delay: .24s; }
.rule-card h3 { font: 600 19px/1.25 var(--serif); align-self: end; }
.rule-card p { grid-column: 2; color: var(--fg-2); font-size: 15.5px; }
.rule-icon { grid-row: span 2; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: var(--gold-ink); background: var(--gold); }
.rule-icon .ico svg { width: 26px; height: 26px; stroke-width: 2; }
.ri-score { background: linear-gradient(135deg, #f4c85a, #c79a36); } .ri-call { background: #79d6ad; } .ri-alert { background: #f08c96; } .ri-clock { background: #8fb4ea; } .ri-pods, .ri-cards { background: #d9b8f0; } .ri-case { background: #f5f0e3; }
.rule-card.speaking { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset, 0 20px 50px -24px rgba(244, 200, 90, .6); transform: translateY(-2px); }
.voice-tip { padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--line-2); }
@media (min-width: 760px) { .rule-cards { grid-template-columns: 1fr 1fr; } .rule-cards.n5 .rule-card:first-child, .rule-cards.n3 .rule-card:first-child { grid-column: 1 / -1; } }

/* Briefing art */
.brief-side { display: grid; gap: 14px; }
.brief-art { margin: 0; height: 150px; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); }
.brief-art .fly, .brief-art .pop { animation: float 3s ease-in-out infinite; }
.brief-q { margin-top: 18px; display: grid; gap: 4px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--gold-line); background: var(--gold-soft); }
.brief-q strong { font: 600 21px/1.3 var(--serif); }
@media (max-width: 639px) { .brief-art { height: 120px; } }

/* Journal: context and dropdowns */
.j-context { grid-template-columns: 1fr; gap: 10px; padding: 14px 16px; border-radius: 0 14px 14px 0; background: rgba(255, 255, 255, .03); }
.j-context > div { display: grid; gap: 2px; }
.j-context strong { color: var(--fg); font-weight: 700; }
.jc-q strong { font: 600 19px/1.3 var(--serif); }
.jc-brief summary { cursor: pointer; color: var(--gold); font-weight: 700; font-size: 14.5px; }
.jc-brief p { margin-top: 8px; font-size: 15.5px; color: var(--fg-2); }
.j-context.one { grid-template-columns: 1fr; }
@media (min-width: 640px) { .j-context { grid-template-columns: 1fr 1.4fr; } .jc-q, .jc-brief { grid-column: 1 / -1; } }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border: solid var(--gold); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.j-select { width: 100%; min-height: 50px; appearance: none; -webkit-appearance: none; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(5, 10, 20, .55); color: var(--fg); padding: 12px 42px 12px 14px; font: 400 16.5px/1.35 var(--sans); cursor: pointer; text-overflow: ellipsis; color-scheme: dark; }
.j-select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(244, 200, 90, .22); }
.j-select option { background: #0b1322; color: #f4f1ea; }
.j-other { margin-top: 6px; }
.j-help { font-size: 13.5px; color: var(--muted); }

/* Spot the gap */
.spot-grid { display: grid; gap: 12px; }
.spot-line { position: relative; display: grid; gap: 6px; text-align: left; padding: 16px 42px 16px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--glass); cursor: pointer; transition: transform .15s var(--ease), border-color .2s, background .2s; overflow: hidden; }
.spot-line:hover:not(:disabled) { border-color: var(--gold-line); transform: translateY(-2px); }
.spot-from { color: var(--muted); font-size: 11.5px; }
.spot-text { font: 600 19px/1.35 var(--serif); }
.spot-line kbd { position: absolute; top: 12px; right: 14px; font-size: 11px; color: var(--muted); }
.spot-line:disabled { cursor: default; }
.spot-line.wrong { border-color: var(--red-line); background: var(--red-bg); opacity: .75; animation: shake .4s both; }
.spot-line.wrong .spot-text { text-decoration: line-through; text-decoration-color: var(--red); }
.spot-x { position: absolute; right: 14px; bottom: 12px; color: var(--red); }
.spot-line.right { border-color: var(--green); background: var(--green-bg); box-shadow: 0 0 0 1px var(--green) inset, 0 0 50px -16px rgba(121, 214, 173, .7); }
.spot-line.shown { border-color: var(--gold); background: var(--gold-soft); }
.spot-stamp { top: auto; bottom: 12px; right: 12px; font-size: 18px; padding: 5px 12px; border-width: 3px; border-color: var(--green); color: var(--green); }
.spot-why { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); animation: rise .3s var(--ease); }
.spot-why .ico svg { width: 22px; height: 22px; }
.spot-why.good { border-color: rgba(121, 214, 173, .5); background: var(--green-bg); } .spot-why.good .ico { color: var(--green); }
.spot-why.bad { border-color: var(--red-line); background: var(--red-bg); } .spot-why.bad .ico { color: var(--red); }
.spot-why.shown { border-color: var(--gold-line); background: var(--gold-soft); } .spot-why.shown .ico { color: var(--gold); }
@media (min-width: 760px) { .spot-grid { grid-template-columns: 1fr 1fr; } }

/* Bet */
.bet-explain { display: flex; gap: 14px; align-items: flex-start; margin: -4px 0 20px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--gold-line); background: var(--gold-soft); }
.bet-explain .fine { margin-top: 6px; }
.be-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); }
.be-icon .ico svg { width: 22px; height: 22px; }
.bet-result.neutral { border-color: var(--gold-line); background: var(--gold-soft); }
.bet-result.neutral > .ico { color: var(--gold); }

/* Unlock moment */
.unlock-screen { display: grid; gap: 22px; }
.unlock-hero { display: grid; gap: 22px; align-items: center; justify-items: start; }
.unlock-badge { position: relative; margin: 0; width: 160px; height: 160px; display: grid; place-items: center; }
.unlock-badge > .ico, .unlock-badge > .ico svg { width: 150px; height: 150px; display: block; position: relative; z-index: 1; }
.unlock-badge > .ico { filter: grayscale(1) brightness(.55); transition: filter .6s var(--ease), transform .6s var(--ease); }
.unlock-badge.open > .ico { filter: drop-shadow(0 0 30px var(--sec)); transform: scale(1.04); animation: badge-in .7s var(--ease); }
@keyframes badge-in { 0% { transform: scale(.8); } 60% { transform: scale(1.12); } 100% { transform: scale(1.04); } }
.ub-lock { position: absolute; z-index: 2; right: 8px; bottom: 10px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-1); border: 2px solid var(--line-2); color: var(--fg); transition: transform .5s var(--ease), opacity .5s; }
.ub-lock .ico svg { width: 24px; height: 24px; }
.unlock-badge.open .ub-lock { transform: translateY(30px) rotate(25deg) scale(.6); opacity: 0; }
.ub-rays { position: absolute; inset: -30px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 10deg, color-mix(in srgb, var(--sec) 35%, transparent) 10deg 20deg, transparent 20deg 40deg); -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%); mask-image: radial-gradient(circle, #000 30%, transparent 70%); opacity: 0; transition: opacity .6s; }
.unlock-badge.open .ub-rays { opacity: 1; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.unlock-title { font-size: clamp(40px, 6vw, 76px); }
.unlock-stars { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 14px; color: var(--fg-2); }
.part2-preview { padding: 18px; border-radius: var(--r-lg); border: 1px dashed var(--gold-line); background: rgba(244, 200, 90, .04); }
.part2-preview > .mono { margin-bottom: 12px; color: var(--gold); }
.p2-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.p2-steps li { position: relative; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; padding: 10px 44px 10px 10px; border-radius: 12px; background: rgba(255, 255, 255, .03); }
.p2-steps strong { font-size: 16px; } .p2-steps li > span:nth-child(3) { grid-column: 2; color: var(--muted); font-size: 14px; }
.p2-icon { grid-row: span 2; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold-line); }
.p2-icon .ico svg { width: 20px; height: 20px; }
.p2-lock { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); } .p2-lock .ico svg { width: 16px; height: 16px; }
.still-locked > .mono { margin-bottom: 10px; }
.still-locked ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.still-locked li { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); }
.still-locked li > span:last-child { display: grid; gap: 2px; } .still-locked .fine { margin: 0; }
.sl-badge { position: relative; width: 40px; height: 40px; } .sl-badge > .ico, .sl-badge > .ico svg { width: 40px; height: 40px; display: block; }
@media (min-width: 760px) { .unlock-hero { grid-template-columns: 180px 1fr; } .p2-steps { grid-template-columns: 1fr 1fr; } }
.round-card.new-part .round-n { color: var(--gold); font-size: 15px; }

/* End: next up, the map, the demo FOMO */
.end-hero { margin-bottom: 18px; }
.end-hero .lead { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; max-width: none; }
.next-up { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; margin: 8px 0 18px; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--sec); background: color-mix(in srgb, var(--sec) 10%, transparent); }
.next-up h3 { font: 600 24px/1.2 var(--serif); margin: 4px 0 6px; }
.next-up p { color: var(--fg-2); }
.next-up .ticks { margin-top: 10px; }
.nu-badge { position: relative; width: 64px; height: 64px; display: block; animation: glow-pulse 2s ease-in-out infinite; }
.nu-badge > .ico, .nu-badge > .ico svg { width: 64px; height: 64px; display: block; }
.end-map { margin: 0 0 34px; }
.fomo { display: grid; gap: 18px; align-items: center; margin-bottom: 20px; }
.fomo .unlock-badge { width: 130px; height: 130px; } .fomo .unlock-badge > .ico, .fomo .unlock-badge > .ico svg { width: 120px; height: 120px; }
@media (min-width: 760px) { .fomo { grid-template-columns: 150px 1fr; } }

/* Case file sources */
.sources { margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(11, 19, 34, .14); }
.sources > .mono { color: #6b5420; margin-bottom: 8px; }
.sources ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sources .source { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.src-tag { font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 5px; border: 1px solid rgba(11, 19, 34, .25); color: var(--paper-mute); }
.src-tag.primary { background: #164b88; border-color: #164b88; color: #fff; }
.case-file .fine { color: var(--paper-mute); }

/* Tips and discussion */
.tips-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 12px; }
.tips-list li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; padding: 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--glass); font: 600 19px/1.35 var(--serif); animation: rise .4s var(--ease) both; }
.tips-list li:nth-child(2) { animation-delay: .1s; } .tips-list li:nth-child(3) { animation-delay: .2s; }
.tip-n { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); font-size: 18px; }
.rule-box { display: grid; gap: 8px; }
.talk.big { font: 500 20px/1.45 var(--serif); display: grid; gap: 10px; padding-left: 26px; margin: 0 0 20px; }

/* Room mode */
.pod-setup { display: grid; gap: 14px; }
.stepper { display: inline-flex; align-items: center; gap: 14px; }
.stepper .btn { width: 56px; padding: 0; font-size: 26px; }
.stepper-n { font-size: 22px; color: var(--gold); min-width: 6ch; text-align: center; }
.pod-names { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.pod-names .j-label { display: flex; align-items: center; gap: 8px; }
.pod-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; }
.pod-dot.p0 { background: #8fb4ea; } .pod-dot.p1 { background: #f4c85a; } .pod-dot.p2 { background: #79d6ad; } .pod-dot.p3 { background: #f08c96; }
.pod-dot.p4 { background: #d9b8f0; } .pod-dot.p5 { background: #f5a65b; } .pod-dot.p6 { background: #5fd0d8; } .pod-dot.p7 { background: #f5f0e3; }
.role-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-bottom: 18px; }
.role-chip { display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; align-items: center; padding: 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--glass); }
.role-chip .ico { grid-row: span 2; color: var(--gold); } .role-chip .ico svg { width: 24px; height: 24px; }
.role-chip .fine { margin: 0; }
.role-chip.decides { border-color: var(--gold-line); }
.role-chip.secret { border-style: dashed; border-color: var(--red-line); } .role-chip.secret .ico { color: var(--red); }
.opt-legend { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.opt-legend li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; font-size: 17px; }
.vote-grid { display: grid; gap: 8px; margin-bottom: 8px; }
.vote-row { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.pod-name { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.vote-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.vote { min-height: 46px; min-width: 56px; padding: 6px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); cursor: pointer; font-weight: 700; text-align: center; transition: all .15s; }
.vote:hover { border-color: var(--gold-line); }
.vote.picked { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.bet-sep { width: 1px; height: 30px; background: var(--line-2); margin: 0 4px; }
.contact-legend { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.contact-legend li { display: inline-flex; align-items: center; gap: 10px; font: 600 17px var(--serif); }
.contact-legend .avatar { width: 36px; height: 36px; font-size: 13px; }
.room-calls { display: grid; gap: 14px; }
.room-call { padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--glass); display: grid; gap: 10px; }
.rc-head { display: flex; gap: 12px; align-items: center; }
.room-call .evidence-text { display: flex; gap: 8px; align-items: flex-start; font-weight: 700; color: var(--gold); }
@media (min-width: 900px) { .room-calls.n2 { grid-template-columns: 1fr 1fr; } .room-calls.n3 { grid-template-columns: repeat(3, 1fr); } .outcome-groups.n2 { grid-template-columns: 1fr 1fr; } .outcome-groups.n3 { grid-template-columns: repeat(3, 1fr); } }
.outcome-groups { display: grid; gap: 14px; }
.your-call.room { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line-2); }
.pod-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.pod-table th, .pod-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.pod-table thead th { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, .03); }
.pod-table tbody th { text-align: left; } .pod-table tbody th .pod-dot { margin-right: 8px; }
.pod-table .plus { color: var(--green); } .pod-table .minus { color: var(--red); } .pod-table .total { font-size: 20px; color: var(--gold); }
.tick { min-width: 74px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border-radius: 10px; border: 1px dashed var(--line-2); background: none; cursor: pointer; color: var(--muted); font: 500 13px var(--mono); }
.tick .ico svg { width: 18px; height: 18px; }
.tick.on { border-style: solid; border-color: rgba(121, 214, 173, .55); background: var(--green-bg); color: var(--green); }
.sa-legend { margin: 14px 0 0; padding-left: 20px; color: var(--fg-2); font-size: 15px; display: grid; gap: 4px; }
.board { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.board li { display: grid; grid-template-columns: 44px minmax(110px, 200px) 1fr auto auto; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--glass); animation: rise .4s var(--ease) both; }
.board li.lead { border-color: var(--gold); box-shadow: 0 0 50px -20px rgba(244, 200, 90, .6); }
.rank { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); font-size: 15px; }
.board li.lead .rank { background: var(--gold); color: var(--gold-ink); }
.board-bar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.board-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold-2), var(--gold)); }
.board .pts { font-size: 22px; color: var(--gold); text-transform: none; }
.board .run { color: var(--muted); font-size: 12px; }
.board.compact { width: min(560px, 100%); } .board.compact li { grid-template-columns: 44px 1fr auto; }
.debrief-grid { display: grid; gap: 16px; } .db-col .mini-title { margin-top: 0; }
.debrief-cards { display: grid; gap: 14px; margin-top: 10px; }
.hurrier-reveal, .replay-ai { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--glass); display: grid; gap: 6px; }
.hurrier-reveal { border-color: var(--red-line); } .hurrier-reveal > .mono, .replay-ai > .mono { display: flex; align-items: center; gap: 8px; }
.hurrier-reveal .ico { color: var(--red); } .replay-ai .ico { color: var(--blue); }
.hurrier-reveal .fine, .replay-ai .fine { margin-top: 4px; }
@media (min-width: 900px) { .debrief-grid, .debrief-cards { grid-template-columns: 1fr 1fr; } }
.rule-start { display: grid; gap: 4px; margin-bottom: 16px; color: var(--fg-2); font: 500 italic 18px var(--serif); }
.room-end .unlock-badge { width: 140px; height: 140px; } .room-end .unlock-badge > .ico, .room-end .unlock-badge > .ico svg { width: 130px; height: 130px; }
.room-end .rule-box { text-align: left; width: min(760px, 100%); }
@media (max-width: 640px) { .vote-row { grid-template-columns: 1fr; } .board li { grid-template-columns: 36px 1fr auto; } .board-bar, .board .run { display: none; } }
.mode-stage .vote { font-size: 20px; min-height: 54px; min-width: 70px; }
.mode-stage .pod-name { font-size: 20px; }

/* Print: role cards for Room mode */
.print-area { display: none; }
@media print {
  body.printing-roles * { visibility: hidden !important; }
  body.printing-roles .print-area, body.printing-roles .print-area * { visibility: visible !important; }
  body.printing-roles .print-area { display: block; position: absolute; left: 0; top: 0; width: 100%; color: #000; background: #fff; font-family: var(--sans); }
  .print-page { page-break-after: always; break-after: page; padding: 10mm; }
  .print-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid #999; padding-bottom: 6px; margin-bottom: 8px; font-size: 11px; }
  .print-head .wm { color: #0b1322; font-size: 18px; } .print-head .wm span { color: #7a5c20; }
  .print-note { font-size: 11px; margin-bottom: 8px; color: #333; }
  .print-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
  .print-card { border: 1px dashed #666; padding: 8mm 7mm; min-height: 60mm; break-inside: avoid; }
  .pc-role { font: 700 16px var(--serif); margin-bottom: 4px; }
  .pc-co { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: #555; margin-bottom: 10px; }
  .pc-fact { font: 500 15px/1.5 var(--serif); }
  .print-card.secret { border: 2px solid #9b3446; grid-column: 1 / -1; }
}

/* Lock states: a closed padlock on top of anything still locked, with a lighter, washed-out shade.
   An open padlock in the corner of anything unlocked. */
.node-badge, .tn-badge, .sl-badge, .nu-badge, .cm-badge, .mg-art { position: relative; }
.is-locked > .ico { filter: grayscale(1) brightness(1.45); opacity: .42; }
.lock-mark { position: absolute; z-index: 3; display: grid; place-items: center; border-radius: 50%; pointer-events: none; }
.lock-mark .ico { width: 58%; height: 58%; display: grid; place-items: center; }
.lock-mark .ico svg { width: 100%; height: 100%; stroke-width: 2.3; }
.lock-mark.locked { left: 50%; top: 50%; width: 52%; height: 52%; min-width: 22px; min-height: 22px; max-width: 46px; max-height: 46px; transform: translate(-50%, -50%); background: rgba(236, 241, 248, .94); color: #0b1322; box-shadow: 0 6px 18px rgba(0, 0, 0, .45), 0 0 0 2px rgba(11, 19, 34, .55); }
.lock-mark.open { right: -6px; top: -6px; width: 26px; height: 26px; background: var(--green); color: #0b1322; box-shadow: 0 0 0 3px var(--ink-1); }
.mg-art .lock-mark.locked { width: 40px; height: 40px; }
.mg-art .lock-mark.open { right: 0; top: 0; }
.track-node.locked, .map-node.st-locked, .map-node.st-next, .map-game.looks-locked, .still-locked li, .cm-node.locked { background: rgba(214, 226, 242, .075); border-color: rgba(214, 226, 242, .2); }
.map-node.st-next { border-color: var(--gold-line); }
.track-node.mine.locked, .track-node.mine2.locked { background: color-mix(in srgb, var(--sec) 12%, rgba(214, 226, 242, .06)); border-color: var(--sec); }
.track-node.locked .tn-name, .cm-node.locked .cm-name, .map-node.st-locked h3 { color: #c4cfdd; }
.node-status .ico svg { stroke-width: 2.2; }
.cm-badge .lock-mark.open, .tn-badge .lock-mark.open, .sl-badge .lock-mark.open { width: 18px; height: 18px; right: -8px; top: -6px; box-shadow: 0 0 0 2px var(--ink-1); }
.research-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.research-list li { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(5, 10, 20, .35); }
.research-list strong { font: 600 17px/1.25 var(--serif); color: var(--fg); }
.research-list .rl-cite { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.study-topic { font: 600 18px/1.25 var(--serif); color: var(--gold); margin-bottom: 4px; }


/* =====================================================================
   v3: plain-language briefing, snap call, the desk, short options with "+",
   Part 1 and Part 2 in the top bar
   ===================================================================== */
/* Top bar: Part 1 and Part 2 labeled; Part 2 dimmed with a lock until you get there */
.chapters .ch-part-label { padding: 0 2px 0 8px; border: 0; background: none !important; font-size: 10px; color: var(--gold); gap: 4px; }
.chapters .ch-part-label .mono { font-size: 10px; letter-spacing: .12em; }
.chapters .ch-part-label .part-lock .ico svg { width: 12px; height: 12px; }
.chapters.in-part2 .part-lock { display: none; }
.chapters:not(.in-part2) .ch-group[data-part="2"] .ch-list > li:not(.current) { color: #8193aa; }
.chapters .ch-group[data-part="2"] .ch-part-label { margin-left: 10px; padding-left: 12px; border-left: 1px solid var(--line-2) !important; border-radius: 0; }
@media (max-width: 760px) { .chapters .ch-part-label { display: none; } }

/* Briefing: the situation in plain words */
.brief-grid { display: grid; gap: 18px; align-items: center; margin-bottom: 18px; }
.situation { display: grid; gap: 10px; }
.sit-row { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--glass); }
.sit-row.speaking { border-color: var(--gold-line); }
.sit-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold); }
.sit-icon .ico svg { width: 24px; height: 24px; }
.sit-label { font: 700 13px var(--sans); letter-spacing: .02em; color: var(--gold); margin-bottom: 2px; }
.sit-text { font-size: 17px; line-height: 1.45; color: var(--fg); }
.scene-line { display: flex; gap: 12px; align-items: flex-start; }
.scene-line .avatar { width: 34px; height: 34px; font-size: 14px; margin-top: 4px; }
.scene-line .cold-open { font: 500 clamp(18px, 2vw, 21px)/1.5 var(--serif); color: var(--fg-2); }
.brief-q { margin-top: 18px; display: grid; gap: 4px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--gold-line); background: var(--gold-soft); }
.brief-q .mono { color: var(--gold); }
.brief-q strong { font: 600 21px/1.3 var(--serif); }
.brief-art { margin: 0; height: 190px; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); }
@media (min-width: 900px) { .brief-grid { grid-template-columns: 1.4fr 1fr; } }
@media (max-width: 899px) { .brief-art { display: none; } }

/* Options: full text when there's room; a short label and "+" when there isn't */
.options { display: grid; gap: 10px; }
.option-wrap { position: relative; display: grid; }
.option-wrap .option { width: 100%; }
.opt-text { display: grid; }
.opt-short { display: none; font-weight: 700; }
.opt-more { display: none; justify-self: start; align-items: center; gap: 6px; margin: 4px 0 0 64px; min-height: 32px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--fg-2); font-size: 13.5px; cursor: pointer; }
.opt-more .plus { font: 700 16px var(--sans); color: var(--gold); width: 16px; text-align: center; }
.opt-more:hover { border-color: var(--gold-line); color: var(--fg); }
.compact .opt-short { display: block; }
.compact .opt-more { display: inline-flex; }
.compact .option-wrap:not(.expanded) .opt-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.compact .option-wrap.expanded .opt-short { display: none; }
.compact .option-wrap.expanded .opt-more .plus { transform: rotate(45deg); }
.compact .option { min-height: 58px; padding: 10px 14px; }
.compact .question { margin-bottom: 10px; }
.tight .fit-hide, .tight .hint, .tight .sub { display: none !important; }
.mode-stage .opt-more, .mode-stage .opt-short { display: none !important; }

/* Snap call */
.snap-head { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin-bottom: 14px; }
.snap-ring { --p: 1; position: relative; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--red) calc(var(--p) * 360deg), rgba(255, 255, 255, .08) 0); }
.snap-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--ink-1); }
.snap-ring .snap-n { position: relative; font: 600 34px/1 var(--serif); color: #fff; }
.snap-ring.off { background: rgba(255, 255, 255, .08); }
.snap .question { margin-bottom: 6px; }
.snap-missed { padding: 10px 14px; border-radius: 12px; border: 1px solid var(--red-line); background: var(--red-bg); color: #fff; }
.snap-off { margin-top: 10px; min-height: 40px; font-size: 14.5px; text-decoration: underline; }
@media (max-width: 520px) { .snap-ring { width: 64px; height: 64px; } .snap-ring .snap-n { font-size: 26px; } .snap-head { gap: 12px; } }

/* The desk */
.desk-hud { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin-bottom: 14px; }
.moves, .stakes-chip { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(5, 10, 20, .5); }
.moves .mono, .stakes-chip .mono { color: var(--muted); font-size: 11.5px; }
.pips { display: flex; gap: 5px; }
.pips i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--gold); background: transparent; }
.pips i.on { background: var(--gold); box-shadow: 0 0 10px rgba(244, 200, 90, .6); }
.moves strong { font: 600 16px var(--sans); }
.stakes-chip strong { font: 600 18px var(--serif); color: var(--fg); }
.stakes-chip.revealed { border-color: var(--red-line); background: var(--red-bg); animation: urgent 1.2s ease-in-out 3; }
.stakes-chip.revealed strong { color: #fff; }
.desk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.desk-tile { position: relative; display: grid; grid-template-columns: 40px 1fr; column-gap: 10px; row-gap: 2px; align-items: center; text-align: left; padding: 12px; min-height: 72px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--glass); cursor: pointer; transition: transform .15s var(--ease), border-color .2s, background .2s; }
.desk-tile:hover:not(:disabled) { border-color: var(--gold-line); box-shadow: 0 6px 18px -8px rgba(244, 200, 90, .45); }
.dt-icon { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: var(--gold); }
.dt-icon .avatar { width: 40px; height: 40px; font-size: 14px; }
.dt-icon .ico svg { width: 22px; height: 22px; }
.dt-title { font: 700 15.5px/1.25 var(--sans); padding-right: 46px; }
.dt-sub { font-size: 13.5px; color: var(--fg-2); padding-right: 46px; }
.dt-badge { position: absolute; top: 10px; right: 10px; font-size: 10.5px; padding: 3px 6px; border-radius: 6px; border: 1px solid var(--gold-line); color: var(--gold); }
.dt-badge.free { border-color: rgba(121, 214, 173, .5); color: var(--green); }
.dt-badge.done { border: 0; width: 22px; height: 22px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #0b1322; }
.dt-badge.done .ico svg { width: 14px; height: 14px; stroke-width: 2.6; }
.desk-tile.opened { border-color: rgba(121, 214, 173, .4); }
.desk-tile.broke { opacity: .55; cursor: not-allowed; }
.desk-tile.k-lock:not(.opened) { border-style: dashed; border-color: var(--gold-line); }
.desk-tile.k-lock:not(.opened) .dt-icon { background: var(--gold); color: var(--gold-ink); animation: glow-pulse 2s ease-in-out infinite; }
@media (min-width: 980px) { .desk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 400px) { .desk-tile { grid-template-columns: 1fr; padding: 10px; min-height: 0; } .dt-icon { grid-row: auto; width: 32px; height: 32px; } .dt-icon .avatar { width: 32px; height: 32px; font-size: 12px; } .dt-title { font-size: 14.5px; } .dt-sub { font-size: 12.5px; padding-right: 0; } }

/* The panel over the desk */
.sheet-wrap { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; padding: 16px; background: rgba(3, 7, 14, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade-in .2s both; }
.sheet-wrap.alarm { background: radial-gradient(circle at 50% 40%, rgba(155, 52, 70, .55), rgba(3, 7, 14, .85)); }
.sheet { width: min(680px, 100%); max-height: calc(100dvh - 32px); overflow: auto; border-radius: 20px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #13243f, #0b1322); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .95); padding: 18px 20px 0; outline: none; animation: rise .3s var(--ease) both; }
.sheet-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.sheet-top .eyebrow { margin: 0; }
.sheet-body { display: grid; gap: 14px; padding-bottom: 14px; }
.sheet-actions { position: sticky; bottom: 0; padding: 12px 0 16px; background: linear-gradient(180deg, rgba(11, 19, 34, 0), #0b1322 30%); }
.sheet .contacts.in-sheet { grid-template-columns: 1fr; }
.sheet .contact { grid-template-columns: auto 1fr auto; min-height: 0; padding: 12px; }
.sheet .contact .call-btn { width: auto; }
.lock-q { font: 600 20px/1.35 var(--serif); }
.dialing-big { display: grid; justify-items: center; gap: 14px; padding: 20px 0; font-size: 18px; }
.stakes-reveal { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--red-line); background: var(--red-bg); animation: urgent 1.1s ease-in-out 3; }
.stakes-reveal .mono { color: #ffd2d7; }
.stakes-reveal .sr-was { text-decoration: line-through; color: var(--fg-2); }
.stakes-reveal strong { font: 600 22px var(--serif); color: #fff; }
.mode-solemn .stakes-reveal, .mode-solemn .stakes-chip.revealed { animation: none; }
.ping { position: fixed; z-index: 58; right: 16px; top: calc(var(--hud) + 14px); width: min(340px, calc(100% - 32px)); display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--gold-line); background: #13243f; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9); animation: rise .3s var(--ease) both; }
.ping .avatar { width: 40px; height: 40px; font-size: 15px; }
.ping .mono { color: var(--gold); font-size: 11px; margin-bottom: 2px; }
.ping-text { font: 600 17px/1.35 var(--serif); }
.ping.out { opacity: 0; transform: translateY(-8px); transition: opacity .4s, transform .4s; }
@media (max-width: 760px) { .ping { top: auto; bottom: 96px; right: 12px; } }
.file-talk { grid-template-columns: auto 1fr; }
body.sheet-open { overflow: hidden; }
/* The desk on a small screen: every tile above the pinned button */
.compact.s-desk .question { font-size: 22px; margin-bottom: 10px; }
.compact .desk-hud { gap: 6px; margin-bottom: 10px; }
.compact .moves, .compact .stakes-chip { padding: 6px 10px; gap: 8px; }
.compact .stakes-chip strong { font-size: 15px; }
.compact .desk-tile { min-height: 0; padding: 8px 10px; grid-template-columns: 32px 1fr; column-gap: 8px; }
.compact .desk-tile .dt-icon { width: 32px; height: 32px; grid-row: auto; }
.compact .desk-tile .dt-icon .avatar { width: 32px; height: 32px; font-size: 12px; }
.compact .desk-tile .dt-sub { display: none; }
.compact .desk-tile .dt-title { font-size: 14px; padding-right: 40px; }
.compact .desk-tile .dt-badge { top: 8px; right: 8px; }
.tight .moves .mono, .tight .stakes-chip .mono { font-size: 10px; }
.tight.s-desk .eyebrow { display: none; }
/* Tighter: smaller headings, a slimmer clock, smaller options */
.tight .question { font-size: clamp(20px, 5.2vw, 28px); line-height: 1.2; margin-bottom: 8px; }
.tight .eyebrow { margin-bottom: 8px; }
.tight.s-gut .eyebrow, .tight.s-final .eyebrow { display: none; }
.tight .snap-head { margin-bottom: 8px; }
.tight .snap-ring { width: 56px; height: 56px; }
.tight .snap-ring::before { inset: 5px; }
.tight .snap-ring .snap-n { font-size: 22px; }
.tight .option { min-height: 46px; padding: 7px 12px; gap: 10px; }
.tight .opt-letter { width: 34px; height: 34px; font-size: 16px; }
.tight .opt-more { margin-left: 56px; min-height: 28px; margin-top: 2px; }
.tight .options { gap: 6px; }
body.fit-tight .layout { padding-top: 14px; }
@media (max-width: 760px) { body.in-game.fit-tight .layout { padding-top: 38px; } }
.tight .bet-explain .fine { display: none; }
.tight .bet-explain { margin-bottom: 10px; padding: 10px 12px; }
.tight .bet-choice { min-height: 64px; }
.tight .stake { min-height: 56px; }
.tight .stakes-wrap { margin-top: 12px; }
.tight .part-art { display: none; }
.tight .journal-card { gap: 8px; padding: 12px 14px; }
.sys-btn { min-width: 64px; min-height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid #9aa6b8; background: #e4e8ee; color: #0b1322; font-weight: 700; cursor: pointer; }
.sys-btn.sys-yes { background: #1f4fc4; border-color: #1f4fc4; color: #fff; }
.sys-btn:hover { filter: brightness(1.08); }
.danger-confirm { display: grid; gap: 12px; padding: 18px; border-radius: 16px; border: 1px solid var(--red-line); background: var(--red-bg); }
.danger-confirm .eyebrow { color: #ffd2d7; margin: 0; }
.dc-text { font: 600 20px/1.4 var(--serif); }
.dc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.danger { background: #c4384f; color: #fff; }
.btn.danger:hover { background: #a92e43; }

/* ===== v4 ===== */
/* Chapters: Part 1 and Part 2 as two labeled groups; every icon explains itself on hover or focus. */
.chapters .ch-group { display: flex; align-items: center; gap: 6px; }
.chapters .ch-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.chapters .ch-part-label { display: inline-flex; align-items: center; gap: 4px; font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); padding: 3px 8px; border-radius: 6px; border: 1px solid var(--gold-line); }
.chapters .ch-group[data-part="2"] { margin-left: 8px; padding-left: 10px; border-left: 1px solid var(--line-2); }
.chapters .ch-group[data-part="2"] .ch-part-label { color: #b9c6d6; border-color: var(--line-2); border-left: 1px solid var(--line-2) !important; border-radius: 6px; margin: 0; padding: 3px 8px; }
.chapters.in-part2 .ch-group[data-part="2"] .ch-part-label { color: var(--gold); border-color: var(--gold-line); }
.chapters.in-part2 .ch-group[data-part="1"] .ch-part-label { color: #b9c6d6; border-color: var(--line-2); }
.chapters .ch-list > li { cursor: help; min-height: 28px; }
.chapters .ch-list > li:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.chapters .ch-group[data-part="2"] .ch-n { border-style: dashed; }
@media (max-width: 760px) {
  .chapters .ch-group, .chapters .ch-list { display: contents; }
  .chapters .ch-group[data-part="2"] { margin: 0; padding: 0; border: 0; }
}

/* Recap: what the AI said, folded away until you want it. */
.recap { margin: 0 0 18px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(5, 10, 20, .5); }
.recap > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; font-weight: 600; color: var(--fg); }
.recap > summary::-webkit-details-marker { display: none; }
.recap > summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 12px; }
.recap-plus { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); font: 700 17px/1 var(--mono); }
.recap-plus::before { content: "+"; }
.recap[open] .recap-plus::before { content: "\2212"; }
.recap-body { display: grid; gap: 10px; padding: 0 14px 14px; }
.recap-item { padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.recap-name { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.recap-name .ico svg { width: 15px; height: 15px; color: var(--gold); }
.recap-says { margin: 0; color: var(--fg); }
.recap-conf { margin: 6px 0 0; font: 500 13px var(--mono); color: var(--fg-2); }
.compact .recap { margin-bottom: 10px; } .compact .recap > summary { min-height: 36px; padding: 4px 12px; }

/* The circle around the answer, drawn once you've chosen, like a pen mark. */
.circle-mark { position: absolute; inset: -7px -14px; border: 2.5px solid var(--gold); border-radius: 50%; transform: rotate(-2deg); pointer-events: none; z-index: 2; animation: circle-in .45s .1s var(--ease) both; }
.circle-mark::after { content: ""; position: absolute; inset: 1px -4px -3px 5px; border: 1.5px solid var(--gold); border-radius: 50%; transform: rotate(3deg); opacity: .55; }
.spot-line > .circle-mark { inset: -6px -8px; border-radius: 46% / 50%; }
@keyframes circle-in { from { opacity: 0; transform: rotate(-9deg) scale(1.12); } to { opacity: 1; transform: rotate(-2deg) scale(1); } }
body.rm .circle-mark { animation: none; }
@media (prefers-reduced-motion: reduce) { .circle-mark { animation: none; } }
.spot-line, .check-opt { position: relative; }
.co-text { position: relative; display: inline-block; }

/* "Move unlocked" badge. */
.move-badge { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 0; padding: 6px 12px; border-radius: 999px; background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--fg); font-size: 14.5px; }
.move-badge .ico svg { width: 16px; height: 16px; color: var(--gold); }
.move-badge strong { color: var(--gold); }
@media (prefers-reduced-motion: no-preference) { body:not(.rm) .move-badge { animation: badge-pop .45s var(--ease) both; } }
@keyframes badge-pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }

/* Quick check. */
.check-opts { display: grid; gap: 10px; margin: 0 0 16px; }
.check-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; text-align: left; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--fg); font: inherit; cursor: pointer; transition: border-color .2s, background .2s; }
.check-opt:hover:not(:disabled) { border-color: var(--gold-line); background: var(--gold-soft); }
.check-opt:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.check-opt:disabled { cursor: default; }
.co-mark { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 600 13px var(--mono); border: 1px solid var(--line-2); color: var(--fg-2); }
.co-mark .ico svg { width: 16px; height: 16px; }
.check-opt.right { border-color: rgba(121, 214, 173, .7); background: rgba(121, 214, 173, .1); }
.check-opt.right .co-mark { background: var(--green); color: #0b1322; border-color: var(--green); }
.check-opt.wrong { border-color: var(--red-line); background: rgba(155, 52, 70, .22); }
.check-opt.wrong .co-mark { background: var(--red); color: #0b1322; border-color: var(--red); }
.check-opt.dim { color: var(--fg-2); }
.compact .check-opt { min-height: 44px; padding: 6px 12px; }

/* Part 2: no right or wrong answers. */
.no-wrong { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 0; color: var(--fg-2); }
.no-wrong .ico svg { width: 16px; height: 16px; color: var(--green); }
.no-wrong-tag { margin-left: 10px; padding: 2px 8px; border-radius: 6px; border: 1px solid rgba(121, 214, 173, .45); color: var(--green); font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.example { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px dashed var(--line-2); color: var(--fg-2); }
.example .mono { display: block; margin-bottom: 4px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }

/* The if-then rule: a live sentence, then two plain dropdowns. */
.rule-builder { display: grid; gap: 14px; }
.rule-preview { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--gold-soft); border: 1px solid var(--gold-line); font-size: 18px; line-height: 1.45; color: var(--fg); }
.rule-preview .mono { display: block; margin-bottom: 4px; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.rule-preview strong { color: var(--gold); font-weight: 700; }
.rule-builder .if-then { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .rule-builder .if-then { grid-template-columns: 1fr; } }

/* The narrator pill: tap to skip the voice. */
.now-speaking.skippable { cursor: pointer; font: inherit; color: inherit; max-width: 270px; }
.now-speaking.skippable:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.now-speaking .speaker-skip { margin-left: 6px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }

/* Who's playing? */
.audience { margin: 0 0 34px; }
.aud-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 12px; }
.aud-head .section-title { margin: 0; }
.aud-head .fine { margin: 0; }
.aud-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.aud-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--fg); font: inherit; font-size: 15px; cursor: pointer; transition: border-color .2s, background .2s; }
.aud-chip:hover:not(:disabled) { border-color: var(--gold-line); }
.aud-chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.aud-chip.on { border-color: var(--gold); background: var(--gold-soft); }
.aud-chip.on .ico svg { width: 16px; height: 16px; color: var(--gold); }
.aud-n { font-size: 11.5px; color: var(--fg-2); letter-spacing: .06em; }
.aud-chip.soon { cursor: not-allowed; color: #b9c6d6; border-style: dashed; background: none; }
.aud-soon { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #b9c6d6; }

/* The briefing says who you are. */
.you-are { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--gold-line); background: var(--gold-soft); color: var(--fg); font: 500 12.5px var(--sans, inherit); letter-spacing: 0; text-transform: none; }
.you-are .ico svg { width: 15px; height: 15px; color: var(--gold); }
.you-are strong { color: var(--gold); }
.sit-text.sit-seat { font-weight: 600; }
@media (max-width: 520px) { .you-are { margin: 6px 0 0; } }

/* Contrast fixes from the accessibility audit. */
.footer a { min-height: 24px; display: inline-flex; align-items: center; }
.wordmark { min-height: 24px; }
/* The 10-second number sits on its own dark disc, so its contrast never depends on the ring behind it. */
.snap-ring .snap-n { width: calc(100% - 14px); height: calc(100% - 14px); border-radius: 50%; display: grid; place-items: center; background: var(--ink-1); }
.tight .snap-ring .snap-n { width: calc(100% - 10px); height: calc(100% - 10px); }
/* The "?" stays readable inside the narration highlight. */
.sent.now .q { color: var(--fg); border-color: var(--fg-2); }
.evidence .sent.now .q, .case-file .sent.now .q, .sys-dialog .sent.now .q, .record-card .sent.now .q { color: #4a3610; border-color: #4a3610; }
/* Text links inside a sentence get a 24px-tall hit area. */
.btn.text.inline { display: inline; padding: 3px 0; }

/* "+ Click to expand" sits on the right side of its answer, inside the card, not underneath it. */
.option-wrap.has-more { position: relative; }
.compact .option-wrap.has-more .option { padding-right: 172px; }
.compact .option-wrap.has-more .opt-more { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); margin: 0; z-index: 2; white-space: nowrap; background: rgba(11, 19, 34, .85); }
.compact .option-wrap.has-more.expanded .opt-more { top: 12px; transform: none; }
.compact .option-wrap.has-more .option.picked ~ .opt-more { border-color: var(--gold-line); }
@media (max-width: 520px) {
  .compact .option-wrap.has-more .option { padding-right: 96px; }
  .compact .option-wrap.has-more .opt-more { right: 10px; width: 78px; min-height: 36px; padding: 4px 8px; gap: 4px; border-radius: 12px; font-size: 12px; line-height: 1.15; white-space: normal; text-align: left; }
}

/* The lobby and the illustrated case file share one visual hierarchy. */
:root { color-scheme: dark; --case-line: #3d4c5f; }
.course-home { display: grid; gap: clamp(28px, 5vw, 64px); }
.course-header, .path-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.course-name { font: 500 clamp(32px, 4.4vw, 58px)/1.12 var(--serif); letter-spacing: -.045em; }
.course-header .eyebrow { margin: 0 0 5px; }
.course-audience { display:grid; gap:4px; }
.course-audience label, .course-time, .shelf-setting { color:var(--muted); }
.course-audience label { font:500 12px/1.3 var(--mono); }
.audience-select { width:100%; min-height:44px; padding:0 32px 0 12px; color:var(--fg); background:var(--ink-2); border:1px solid var(--case-line); border-radius:6px; font:inherit; }
.featured-case { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.03fr); overflow:hidden; border:1px solid var(--case-line); border-radius:12px; background:var(--ink-2); }
.featured-story { padding:clamp(22px,4.1vw,60px); align-self:center; }
.featured-title { max-width:15ch; font:500 clamp(33px,4.6vw,72px)/1.06 var(--serif); letter-spacing:-.046em; }
.featured-story .eyebrow { margin-bottom:16px; color:var(--gold); }
.featured-hook { margin:16px 0 20px; max-width:36ch; color:var(--fg-2); font-size:clamp(16px,1.45vw,22px); line-height:1.46; }
.featured-story .actions { margin-top:0; }
.course-time, .shelf-setting { font-size:14px; line-height:1.5; }
.course-time { margin-top:12px; }
.cover-scene, .narrative-art { position:relative; isolation:isolate; }
.cover-scene { margin:0; min-height:280px; }
.case-illustration { display:block; width:100%; height:100%; object-fit:cover; }
.cover-scene img { position:absolute; inset:0; }
.cover-scene figcaption, .narrative-art figcaption { position:absolute; bottom:0; left:0; right:0; padding:22px 14px 10px; color:#fff; background:linear-gradient(transparent,rgba(5,10,20,.90)); font:500 12px/1.35 var(--mono); }
.path-heading { margin-bottom:16px; }
.path-heading h2 { font:500 clamp(24px,3vw,38px)/1.1 var(--serif); letter-spacing:-.03em; }
.path-heading a { display:inline-flex; align-items:center; min-height:32px; gap:5px; font-size:14px; }
.path-heading .ico svg { width:16px; height:16px; }
.course-sections { display:grid; gap:10px; }
.course-module { border:1px solid var(--case-line); border-radius:10px; overflow:clip; background:var(--ink-2); }
.course-summary { display:flex; align-items:center; gap:14px; min-height:76px; padding:12px 18px; list-style:none; cursor:pointer; }
.course-summary::-webkit-details-marker { display:none; }
.course-summary:focus-visible { outline-offset:-4px; }
.course-lock { flex:none; width:38px; height:38px; display:grid; place-items:center; border-radius:8px; border:1px solid var(--case-line); background:#29394d; color:var(--fg-2); }
.course-lock.open { color:var(--green); background:var(--green-bg); }
.course-summary-copy { display:grid; gap:1px; }
.course-summary-copy strong { font:600 21px var(--serif); }
.course-summary-copy > span { font-size:14px; color:var(--muted); }
.module-state { margin-left:auto; white-space:nowrap; font:500 12px var(--mono); color:var(--fg-2); }
.disclose-mark { font:500 23px var(--mono); color:var(--gold); }
.course-module[open] .disclose-mark { transform:rotate(45deg); }
.case-shelf { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr)); gap:16px; padding:6px 18px 18px; }
.shelf-case { display:flex; flex-direction:column; overflow:hidden; border-radius:7px; background:var(--ink-1); border:1px solid var(--case-line); }
.shelf-image { height:clamp(130px,12vw,170px); }
.shelf-image img { object-position:50% 35%; }
.shelf-info { padding:14px; display:flex; flex:1; flex-direction:column; align-items:start; gap:6px; }
.shelf-info .eyebrow { margin:0; font-size:10.5px; }
.shelf-info h3 { font:600 21px/1.22 var(--serif); }
.shelf-links { margin-top:auto; padding-top:10px; display:flex; gap:5px 12px; flex-wrap:wrap; }
.shelf-links a { min-height:32px; align-content:center; font-size:13px; }
.transfer-path {padding:0 18px 18px; color:var(--fg-2);}
.narrative-art { min-width:0; overflow:hidden; border:1px solid var(--case-line); border-radius:10px; }
.title-art.narrative-art { width:100%; height:auto; aspect-ratio:3 / 2; max-width:none; }
.brief-art.narrative-art { display:block; height:100%; min-height:150px; }
.brief-grid { align-items:stretch; }
.cast-face { width:100%; height:100%; display:block; object-fit:cover; border-radius:inherit; }
.exhibit-key, .case-bridge { padding:12px 16px; border-left:2px solid var(--gold); margin:14px 0; background:var(--ink-2); border-radius:0 7px 7px 0; }
.exhibit-key summary { min-height:28px; cursor:pointer; font-weight:700; }
.flow-key { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:12px 0 0; }
.flow-key dt { font-size:12px; color:var(--muted); }
.flow-key dd { margin:2px 0; font:500 17px/1.4 var(--serif); }
.case-bridge .mini-title { margin:0 0 6px; }
.reading-highlight, .sent.now { line-height:inherit; }
.opt-more, .opt-more .plus { transition:none; }
.compact .option-wrap.expanded .opt-more .plus { transform:none; }
.q { min-width:24px; min-height:24px; padding:0; line-height:1; }
.mode-solo .s-gut .snap-head { grid-template-columns:1fr; }
body:not(.mode-stage).in-game .scene .actions.dock {
 position:fixed; z-index:25; bottom:0; left:0; right:0; padding:10px max(16px,calc((100vw - 1160px)/2)) max(10px,env(safe-area-inset-bottom));
 margin:0; background:var(--ink-1); border-top:1px solid var(--case-line); flex-wrap:wrap;
}
body:not(.mode-stage).in-game { padding-bottom:92px; }
body:not(.mode-stage).in-game .scene .actions.dock::before { display:none; }
.mode-stage.host-hidden .hud-tools #settings-btn,.mode-stage.host-hidden .hud-tools #voice-btn,.mode-stage.host-hidden .scene .actions.dock,.mode-stage.host-hidden .opt-key { visibility:hidden; }
@media(min-width:900px) {.brief-grid {grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);} }
@media(max-width:760px) {
 .course-header {align-items:start; flex-wrap:wrap;}
 .course-audience {width:100%;}
 .featured-case {grid-template-columns:1fr;}
 .cover-scene {grid-row:1; min-height:0; height:clamp(135px,40vw,245px);}
 .cover-scene img {object-position:50% 34%;}
 .featured-story {padding:18px;}
 .featured-story .eyebrow {margin-bottom:7px;}
 .featured-hook {margin:8px 0 14px;}
 .featured-story .actions {gap:8px;}
 .featured-story .btn {font-size:14px; padding:9px 12px;}
 .path-heading {align-items:center;}
 .course-summary {gap:8px; padding:10px;}
 .course-summary-copy > span {font-size:12px;}
 .case-shelf {padding:4px 10px 10px;}
 .title-art.narrative-art {height:clamp(100px,25vw,170px); aspect-ratio:auto;}
 .title-art.narrative-art img,.brief-art img {object-position:50% 32%;}
 .brief-art.narrative-art {height:116px; min-height:0;}
 .flow-key {grid-template-columns:1fr;}
 .s-gut .options,.s-final .options {gap:5px;}
 .s-gut .option,.s-final .option {min-height:43px;}
 .scene .actions.dock .btn {min-height:42px;}
}
@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}
@media print { body.in-game {padding:0!important;} .course-home,.scene .actions.dock {display:none!important;} }

.source a { display: inline-flex; align-items: center; min-height: 30px; }
.mode-stage .source a { min-height: 48px; }
@media print {
  .pc-private { border-top: 1px solid #999; padding-top: 2mm; margin-top: 2mm; font: 10pt/1.34 sans-serif; }
  .pc-private p { margin: 1mm 0; }
  .print-card { padding: 5mm; }
}

.replay-trigger { margin: .6rem 0; }
.sheet.k-replay { max-width: 42rem; }
.sheet.k-replay .lead { font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.55; }
.replay-feedback { color: var(--text); line-height: 1.55; }
.replay-feedback strong { color: var(--gold); }

.cast-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr)); gap:16px; padding:0; list-style:none; }
.cast-list li { display:grid; grid-template-columns:58px 1fr; gap:12px; }
.cast-list .cast-face { width:58px; height:58px; border-radius:12px; }
.cast-list .cast-role { display:block; color:var(--gold); font-size:.86em; }
.cast-list p { margin:.35em 0 0; line-height:1.48; }

.caller-credit { display:block; font:500 0.88rem/1.4 var(--sans); color:var(--gold); }
.mode-stage:not(.host-hidden) #speaker:not([hidden]) { display:inline-flex !important; }
@media (max-width:760px) {
  body:not(.host-hidden) #speaker:not([hidden]) {
    display:inline-flex !important; align-items:center; justify-content:center;
    min-width:36px; height:36px; padding:0 5px; border-radius:10px;
  }
  #speaker .speaker-avatar, #speaker .speaker-name, #speaker .bars { display:none; }
  #speaker .speaker-skip { margin:0; font-size:10px; }
  .hud-tools:has(#speaker:not([hidden])) #settings-btn { display:none; }
}

/* Simulation navigation belongs to the viewport. The case itself remains a normal document. */
.progress-rail[hidden], .host-menu[hidden] { display:none !important; }
@media screen {
  html { scroll-padding-block:calc(var(--hud) + 32px) calc(var(--rail-height,72px) + 12px); }
  body.in-game, body:not(.mode-stage).in-game { padding-bottom:var(--rail-height,72px); overflow-x:clip; }
  .layout, .stage, .scene { min-width:0; }
  .layout { overflow:visible; }
  .scene.enter, .scene.enter-back { animation:fade-in .16s ease-out; }
  .progress-rail { position:fixed; inset:auto 0 0; z-index:39; background:#101d31; border-top:1px solid #48586c;
    padding:8px max(12px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left)); }
  .rail-inner { display:flex; align-items:center; max-width:1160px; margin:auto; gap:12px; }
  .step-actions { display:flex; align-items:center; flex:1; min-width:0; gap:12px; }
  .step-actions .back-link { margin-right:auto; }
  .step-actions [data-primary] { margin-left:auto; min-height:46px; max-width:100%; padding:10px 20px; white-space:normal; line-height:1.25; text-align:center; }
  .host-menu { position:relative; flex:none; }
  .host-menu summary { cursor:pointer; font:500 13px var(--sans); padding:12px 8px; }
  .host-menu .host-bar { position:absolute; bottom:calc(100% + 10px); left:auto; right:0; transform:none; opacity:1;
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:min(310px,calc(100vw - 24px)); background:#102039; border:1px solid #58687e; }
  .host-menu:not([open]) .host-bar,.host-menu .host-bar[hidden] { display:none; }
  body.sheet-open .progress-rail, .mode-stage.host-hidden .progress-rail { visibility:hidden; }
  body:not(.in-game) .layout:has(.course-home) { padding-top:clamp(10px,1.4vw,20px); }
  .course-home { max-width:none; }
  .featured-story .course-audience { width:min(295px,100%); gap:4px; margin:0 0 12px; }
  .featured-story .course-audience label { color:var(--fg-2); }
  .skill-tags { display:flex; flex-wrap:wrap; gap:6px; list-style:none; margin:10px 0 0; padding:0; }
  .skill-tags li { border:1px solid var(--case-line); border-radius:6px; padding:3px 8px; font:500 13px/1.4 var(--sans); color:var(--fg-2); }
  .research { align-items:start; }
  .study .study-topic { margin:4px 0 10px; }
  .study p { line-height:1.5; }
  .study .study-practice { border-inline-start:2px solid var(--gold); padding-inline-start:10px; margin:10px 0; }
  .study .study-practice strong { display:block; color:var(--gold); }
  .study-source summary { font-size:.88em; color:var(--fg-2); padding:4px 0; cursor:pointer; }
  .study-source p { margin:8px 0 0; }
  .settings { width:min(420px,calc(100% - 18px)); max-height:calc(100dvh - 12px); padding:15px; margin:auto; }
  .settings h2 { margin:0 0 3px; font-size:23px; }
  .settings-help { margin:0 0 10px; font-size:14px; }
  .settings .field { min-width:0; gap:4px; margin-bottom:10px; }
  .settings .field legend { margin-bottom:4px; }
  .settings .field select { width:100%; min-width:0; min-height:40px; }
  .settings .seg button { min-height:38px; }
  .settings-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin:0; }
  .settings-actions .btn { font-size:14px; padding:7px 4px; min-height:40px; }
  .mode-stage .stage .scene { zoom:1; font-size:clamp(16px,1.55vw,22px); }
  .mode-stage .title-grid .mega.title { font-size:clamp(32px,5.2vw,72px); }
  .mode-stage .question { font-size:clamp(24px,3.4vw,44px); }
  .mode-stage .cold-open,.mode-stage .call-quote,.mode-stage .consequence { font-size:clamp(18px,2.4vw,32px); }
  .mode-stage .option { font-size:clamp(16px,1.55vw,22px); }
  .mode-stage .layout { padding-bottom:30px; }
  .rule-card { min-width:0; }
  .rule-card p { overflow-wrap:anywhere; }
  .s-gut .option-wrap:not(.has-more) .opt-label { display:block; }
  .table-wrap { max-width:100%; }
  .term { white-space:normal; }
  .opt-text { min-width:0; }
  .s-gut .option:disabled { opacity:1; }
  #rights { white-space:normal; }
}
@media screen and (max-width:760px) {
  .featured-story { grid-row:1; }
  .cover-scene { grid-row:2; }
  .hud { gap:5px; padding-inline:8px; }
  .hud-tools { gap:4px; }
  .hud-tools:has(#speaker:not([hidden])) #settings-btn { display:inline-grid; }
  .hud-tools .icon-btn { width:34px;height:36px; }
  .hud-tools .clock { width:36px;height:36px; }
  .hud-tools .pill { padding-inline:6px; }
  .hud-tools .pill::before { font-size:11px; }
  .mode-stage .title-grid,.mode-stage .contacts,.mode-stage .research,.mode-stage .brief-grid,.rule-cards,.mode-stage .options { grid-template-columns:minmax(0,1fr); }
  .mode-stage .contact { min-height:0; grid-template-columns:auto 1fr auto; align-items:center; gap:8px; padding:10px; }
  .mode-stage .contact .call-btn { width:auto; }
  .mode-stage .vote-row { grid-template-columns:1fr; gap:5px; }
  .mode-stage .vote { min-width:44px; min-height:40px; font-size:16px; padding:5px 8px; }
  .s-gut .snap-head { margin-bottom:8px; }
  .s-gut .eyebrow,.s-final .eyebrow,.s-check .eyebrow,.s-bet .eyebrow { margin-bottom:5px; }
  .s-gut .question,.s-final .question,.s-check .question,.s-bet .question { font-size:clamp(21px,5.6vw,30px); line-height:1.17; margin-bottom:8px; }
  .s-gut .sub,.s-final .sub { font-size:14px; margin-bottom:7px; }
  .s-gut .option,.s-final .option { grid-template-columns:31px minmax(0,1fr); align-items:center; gap:7px; padding:7px 8px; font-size:15px; line-height:1.24; }
  .s-gut .opt-letter,.s-final .opt-letter { width:30px;height:30px;font-size:16px; }
  .s-final .opt-flag { position:static; grid-column:2; justify-self:start; margin:0; }
  .s-final .option-wrap.has-more:not(.expanded) .opt-label { display:none; }
  .s-final .option-wrap.has-more:not(.expanded) .opt-short { display:block !important; }
  .s-final .option-wrap.has-more .option { padding-inline-end:85px; }
  .s-final .option-wrap.has-more .opt-more { display:inline-flex !important; align-items:center; position:absolute; right:6px; top:50%; transform:translateY(-50%); margin:0;
    width:73px; min-height:33px; padding:3px 5px; gap:2px; background:var(--ink-1); font-size:11.5px; line-height:1.12; white-space:normal; text-align:left; }
  .s-final .option-wrap.has-more.expanded .opt-short { display:none !important; }
  .s-check .check-opts { gap:6px; }
  .s-check .check-opt { min-height:42px; font-size:15px; line-height:1.25; padding:7px 10px; }
  .s-rules .rule-cards { gap:8px; }
  .s-rules .rule-card { grid-template-columns:35px minmax(0,1fr); gap:3px 9px; padding:10px; }
  .s-rules .rule-icon { width:35px; height:35px; border-radius:9px; }
  .s-rules .rule-icon svg { width:21px; height:21px; }
  .s-rules .rule-card p { line-height:1.42; font-size:15px; }
  .step-actions [data-primary] { flex:1; font-size:15px; min-height:44px; padding:9px 10px; }
  .step-actions .back-link { padding:5px; font-size:14px; min-height:36px; }
  .step-actions,.rail-inner { gap:7px; }
  .host-menu summary { max-width:70px; text-align:center; line-height:1.25; padding:6px 0; }
  .host-menu summary::marker { font-size:.75em; }
  .s-gut .snap-off { margin-top:2px; }
}
@media print { #progress-rail { display:none !important; } }
@media screen and (max-width:760px) {
  .title-grid,.mode-stage .title-grid { grid-template-columns:minmax(0,1fr); }
  .title-wrap { min-width:0; }
  .unlock-track ol,.end-map { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .s-bet .bet-choice { min-height:54px; font-size:20px; padding:7px; }
  .s-bet .stake { min-height:54px; }
  .s-bet .stake strong { font-size:15px; }
  .s-bet .stakes-wrap { margin-top:10px; }
  .s-bet .bet-explain { margin:0 0 9px; padding:7px 10px; align-items:center; font-size:14px; line-height:1.35; }
}
@media screen and (min-width:761px) {
  .s-gut .options,.s-final .options { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .s-gut .option,.s-final .option { height:100%; }
}
@media screen and (max-height:480px) and (min-width:500px) {
  :root { --hud:42px; }
  body.in-game .layout { padding-top:28px; }
  .hud .chapters { height:24px; }
  .s-gut .options,.s-final .options,.s-check .check-opts { grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; }
  .s-gut .option,.s-final .option,.s-check .check-opt { min-height:34px; padding-block:4px; font-size:14px; }
  .s-gut .question,.s-final .question,.s-check .question,.s-bet .question { font-size:20px; margin-bottom:4px; }
  .s-gut .snap-head { margin-bottom:4px; }
  .s-gut .viewer,.s-gut .snap-missed { min-height:28px; padding:2px 9px; margin-bottom:4px; font-size:13px; }
  .s-gut .viewer-n { width:26px; height:26px; }
  .s-gut .sub,.s-final .sub,.s-check .sub { margin:0 0 4px; font-size:13px; }
  .s-bet { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); gap:4px 12px; }
  .s-bet > * { grid-column:1/-1; }
  .s-bet .bet-choices { grid-column:1; }
  .s-bet .stakes-wrap { grid-column:2; margin:0; align-self:end; }
  .s-bet .stakes-wrap .label { margin:0 0 2px; }
  .s-bet .stake,.s-bet .bet-choice { min-height:40px; }
  .s-bet .bet-explain { margin:0; padding:4px 8px; }
  .s-final .opt-flag { grid-column:1/-1; }
}
@media screen and (min-width:761px) and (max-width:1099px) {
 .in-game .hud { gap:12px; }
 .in-game .chapters { position:absolute; top:100%; left:0; right:0; height:34px; justify-content:center; background:var(--ink-1); border-bottom:1px solid var(--line); }
 body.in-game .layout { padding-top:48px; }
}
