/* =====================================================================
   FAKE NEWS LAB — noir design system
   ===================================================================== */
:root {
  --ink: #0b0b0d;
  --smoke: #141519;
  --smoke-2: #1c1d22;
  --smoke-3: #26272e;
  --line: rgba(239, 230, 210, 0.12);
  --paper: #efe6d2;
  --paper-2: #e4d7bb;
  --paper-ink: #231c13;
  --manila: #d6b46f;
  --amber: #ffb347;
  --amber-2: #ff9a3c;
  --red: #c0392b;
  --fake: #ff2e63;
  --ok: #2ecc71;
  --blue: #4aa3ff;
  --violet: #9b59b6;
  --text: #ece6da;
  --muted: #a39d90;
  --type: 'Special Elite', 'Courier New', monospace;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --hand: 'Caveat', 'Segoe Print', cursive;
  --radius: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4);
  --hud-h: 58px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { overflow: hidden; }
a { color: var(--amber); }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--amber); color: #000; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ----------------------------------------------------------- stage */
#stage { position: fixed; inset: 0; z-index: 0; }
#stage canvas { display: block; width: 100%; height: 100%; }
.grain, .vignette { position: fixed; inset: 0; pointer-events: none; z-index: 40; }
.vignette { background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.55) 100%); }
.grain { opacity: 0.035; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-8px, 5px); } 66% { transform: translate(6px, -7px); } 100% { transform: translate(0, 0); } }

/* ----------------------------------------------------------- loader & gate */
#loader, #gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: radial-gradient(ellipse at center, #17181d 0%, #060607 70%); transition: opacity 0.8s ease; }
#loader.done, #gate.done { opacity: 0; pointer-events: none; }
.loader-inner { width: min(520px, 86vw); text-align: center; }
.loader-inner h1 { font-family: var(--type); font-weight: 400; letter-spacing: 0.25em; font-size: clamp(22px, 4vw, 34px); margin: 0 0 6px; color: var(--paper); }
.loader-inner p { font-family: var(--type); color: var(--muted); margin: 0 0 28px; min-height: 1.4em; }
.loader-bar { height: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; border-radius: 3px; }
.loader-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--amber-2), var(--amber)); box-shadow: 0 0 18px var(--amber); transition: width 0.3s ease; }
.loader-meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 10px; }
.loader-help { margin-top: 26px; font-family: var(--type); color: var(--paper); font-size: 14px; line-height: 1.5; }
.loader-help[hidden] { display: none; }
.loader-help p { margin: 0 0 14px; color: var(--paper); min-height: 0; }
.loader-help.err p { color: #ffb4a8; }
.loader-help .gate-actions { justify-content: center; }
#companion.lite .bubble { bottom: 24px; }
.gate-card { text-align: center; width: min(640px, 90vw); }
.gate-card .eyebrow { font-family: var(--type); letter-spacing: 0.3em; color: var(--amber); font-size: 13px; }
.gate-card h1 { font-family: var(--serif); font-size: clamp(42px, 9vw, 92px); line-height: 0.95; margin: 14px 0 6px; color: var(--paper); text-shadow: 0 0 40px rgba(255, 179, 71, 0.25); }
.gate-card h1 em { font-style: italic; color: var(--amber); }
.gate-card .sub { font-family: var(--type); color: var(--muted); margin: 0 auto 30px; max-width: 520px; line-height: 1.6; }
.gate-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.gate-foot { margin-top: 34px; font-size: 12px; color: var(--muted); font-family: var(--mono); letter-spacing: 0.08em; }
.gate-foot b { color: var(--paper); font-weight: 500; }
.eu-stars { display: inline-block; width: 46px; height: 46px; margin-bottom: 4px; }

/* ----------------------------------------------------------- buttons */
.btn { --c: var(--amber); display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border: 1.5px solid var(--c); background: rgba(255, 179, 71, 0.06); color: var(--paper); font-family: var(--type); font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; border-radius: 4px; cursor: pointer; transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease; text-decoration: none; }
.btn:hover { background: rgba(255, 179, 71, 0.16); box-shadow: 0 0 24px rgba(255, 179, 71, 0.25); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn.primary { background: var(--amber); color: #1a1205; border-color: var(--amber); font-weight: 700; }
.btn.primary:hover { background: #ffc46b; }
.btn.ghost { --c: rgba(239, 230, 210, 0.3); background: transparent; }
.btn.small { padding: 8px 14px; font-size: 12px; }
.btn.red { --c: var(--fake); background: rgba(255, 46, 99, 0.08); }
.btn.green { --c: var(--ok); background: rgba(46, 204, 113, 0.08); }
.btn[disabled] { opacity: 0.4; pointer-events: none; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: rgba(20, 21, 25, 0.7); cursor: pointer; font-size: 17px; transition: background 0.2s; }
.icon-btn:hover { background: rgba(255, 179, 71, 0.15); }
.icon-btn[aria-pressed='false'] { opacity: 0.55; }

/* ----------------------------------------------------------- HUD */
#hud { position: fixed; top: 0; left: 0; right: 0; height: var(--hud-h); z-index: 60; display: flex; align-items: center; gap: 14px; padding: 0 16px; background: linear-gradient(180deg, rgba(5, 5, 7, 0.85), rgba(5, 5, 7, 0)); transition: opacity 0.5s, transform 0.5s; }
#hud.hidden { opacity: 0; transform: translateY(-100%); pointer-events: none; }
body.app-open #hud { background: rgba(8, 8, 10, 0.95); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); font-family: var(--type); letter-spacing: 0.2em; font-size: 14px; white-space: nowrap; }
.brand-badge { width: 32px; height: 32px; border-radius: 50%; background: url('../assets/agent.png') center 30% / 140% no-repeat, #e9e4d8; border: 2px solid var(--amber); box-shadow: 0 0 12px rgba(255, 179, 71, 0.4); }
.brand small { display: block; font-size: 10px; letter-spacing: 0.3em; color: var(--amber); }
.nav { display: flex; gap: 2px; margin: 0 auto; flex-wrap: nowrap; overflow: visible; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 8px 12px; border-radius: 999px; font-size: 13px; color: var(--muted); text-decoration: none; white-space: nowrap; transition: color 0.2s, background 0.2s; }
.nav a:hover { color: var(--paper); background: rgba(255, 255, 255, 0.05); }
.nav a.active { color: #1a1205; background: var(--amber); }
.hud-tools { display: flex; gap: 6px; align-items: center; }
.agent-chip { font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.agent-chip b { color: var(--amber); font-weight: 500; }
.menu-btn { display: none; }

/* ----------------------------------------------------------- desk labels */
#labels { position: fixed; inset: 0; pointer-events: none; z-index: 30; }
.hs { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; cursor: pointer; transition: opacity 0.3s; background: transparent; border: 0; padding: 10px; margin: 0; color: inherit; font: inherit; -webkit-appearance: none; appearance: none; display: block; box-shadow: none; }
.hs:focus-visible .hs-dot { outline: 2px solid #fff; outline-offset: 3px; }
.hs:hover .hs-label, .hs:focus-visible .hs-label { opacity: 1; transform: translate(-50%, -110%); }
.hs:hover .hs-dot { background: #fff; }
.hs-dot { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(255, 179, 71, 0.6); animation: pulse 2s infinite; margin: 0 auto; }
.hs-label { position: absolute; left: 50%; top: -12px; transform: translate(-50%, -100%); white-space: nowrap; font-family: var(--type); font-size: 13px; letter-spacing: 0.08em; padding: 6px 10px; background: rgba(10, 10, 12, 0.85); border: 1px solid rgba(255, 179, 71, 0.5); color: var(--paper); border-radius: 3px; opacity: 0; transition: opacity 0.2s, transform 0.2s; }
.hs.on .hs-label, .hs.hint .hs-label { opacity: 1; transform: translate(-50%, -110%); }
.hs.on .hs-dot { background: #fff; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 179, 71, 0.6); } 70% { box-shadow: 0 0 0 16px rgba(255, 179, 71, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 179, 71, 0); } }
.desk-hint { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 35; font-family: var(--type); font-size: 14px; letter-spacing: 0.1em; color: var(--paper); background: rgba(8, 8, 10, 0.75); border: 1px solid var(--line); padding: 10px 18px; border-radius: 999px; transition: opacity 0.4s; text-align: center; }
.desk-hint.hidden { opacity: 0; pointer-events: none; }
.desk-cta { position: fixed; right: 22px; bottom: 26px; z-index: 35; display: flex; gap: 10px; transition: opacity 0.4s; }
.desk-cta.hidden { opacity: 0; pointer-events: none; }

/* ----------------------------------------------------------- speech bubble */
.bubble { position: fixed; z-index: 55; max-width: min(380px, 80vw); background: var(--paper); color: var(--paper-ink); font-family: var(--type); font-size: 15px; line-height: 1.5; padding: 14px 16px 12px; border-radius: 12px; box-shadow: var(--shadow); opacity: 0; transform: translateY(8px) scale(0.98); transition: opacity 0.25s, transform 0.25s; pointer-events: none; }
.bubble.show { opacity: 1; transform: none; pointer-events: auto; }
.bubble::after { content: ''; position: absolute; bottom: -10px; left: var(--tail, 30px); border: 10px solid transparent; border-top-color: var(--paper); border-bottom: 0; }
.bubble .who { display: block; font-size: 11px; letter-spacing: 0.2em; color: #8a6a2b; margin-bottom: 4px; }
.bubble .caret { display: inline-block; width: 7px; height: 14px; background: var(--paper-ink); margin-left: 2px; vertical-align: -2px; animation: blink 0.8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ----------------------------------------------------------- companion (pages) */
#companion { position: fixed; left: 6px; bottom: 4px; width: 118px; height: 150px; z-index: 58; pointer-events: none; transition: opacity 0.4s, transform 0.4s; }
#companion.hidden { opacity: 0; transform: translateY(40px); }
#companion canvas { width: 100%; height: 100%; pointer-events: auto; cursor: pointer; }
#companion .bubble { position: absolute; left: 10px; bottom: 146px; width: max-content; max-width: min(330px, calc(100vw - 30px)); font-size: 14px; padding: 12px 14px 10px; }
#companion .bubble::after { left: 40px; }
#companion canvas:hover { filter: drop-shadow(0 0 12px rgba(255,179,71,.6)); }

/* ----------------------------------------------------------- app overlay */
#app { position: fixed; inset: 0; z-index: 50; overflow-y: auto; will-change: scroll-position; contain: layout paint; overflow-x: hidden; padding: calc(var(--hud-h) + 10px) 0 120px; background: radial-gradient(ellipse at 50% 0%, rgba(30, 28, 24, 0.9), rgba(6, 6, 8, 0.96) 70%); opacity: 1; transition: opacity 0.5s ease; scroll-behavior: smooth; }
#app.hidden { opacity: 0; pointer-events: none; }
.page { width: min(1180px, 100%); margin: 0 auto; padding: 0 22px; animation: pageIn 0.6s cubic-bezier(.2, .8, .2, 1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.page-head { padding: 28px 0 22px; position: relative; }
.eyebrow { font-family: var(--type); letter-spacing: 0.28em; text-transform: uppercase; font-size: 12px; color: var(--amber); }
.page-head h1 { font-family: var(--serif); font-size: clamp(34px, 6vw, 64px); line-height: 1.02; margin: 10px 0 12px; color: var(--paper); }
.page-head h1 em { color: var(--amber); }
.page-head .lede { max-width: 760px; color: var(--muted); font-size: 17px; line-height: 1.65; margin: 0; }
.crumbs { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--amber); }
h2.sec { font-family: var(--serif); font-size: clamp(26px, 3.5vw, 36px); margin: 46px 0 6px; color: var(--paper); }
p.sec-lede { color: var(--muted); margin: 0 0 22px; max-width: 760px; line-height: 1.6; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.type { font-family: var(--type); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.pill.amber { color: var(--amber); border-color: rgba(255, 179, 71, 0.4); }
.pill.red { color: var(--fake); border-color: rgba(255, 46, 99, 0.45); }
.pill.green { color: var(--ok); border-color: rgba(46, 204, 113, 0.45); }

/* paper card */
.paper { background: var(--paper); color: var(--paper-ink); border-radius: 4px; box-shadow: var(--shadow); position: relative; background-image: linear-gradient(rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.03)), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.36 0 0 0 0 0.2 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E"); }
.paper h3, .paper h4 { font-family: var(--type); font-weight: 400; margin: 0 0 8px; }
.card { background: linear-gradient(180deg, rgba(36, 37, 44, 0.92), rgba(22, 23, 28, 0.92)); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); position: relative; }
.card h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 21px; color: var(--paper); }
.card p { margin: 0; line-height: 1.6; color: #cfc8ba; }
.tape { position: absolute; width: 90px; height: 26px; background: rgba(240, 225, 170, 0.55); top: -12px; left: 50%; transform: translateX(-50%) rotate(-3deg); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); }

/* stamp */
.stamp { display: inline-block; font-family: var(--type); text-transform: uppercase; letter-spacing: 0.12em; border: 3px solid currentColor; padding: 4px 12px; color: var(--red); transform: rotate(-8deg); border-radius: 4px; mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='s'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.7'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='s'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.7'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E"); }
.stamp.green { color: #1e8e4e; }
.stamp.big { font-size: 34px; border-width: 5px; padding: 6px 18px; }
.stamp-slam { position: fixed; left: 50%; top: 45%; z-index: 90; pointer-events: none; transform: translate(-50%, -50%) rotate(-12deg) scale(3); opacity: 0; font-size: clamp(40px, 9vw, 96px); }
.stamp-slam.go { animation: slam 1.5s cubic-bezier(.2, 1.6, .4, 1) forwards; }
@keyframes slam { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-12deg) scale(3); } 18% { opacity: 1; transform: translate(-50%, -50%) rotate(-12deg) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(-12deg) scale(1); } }
.shake { animation: shake 0.35s; }
@keyframes shake { 20% { transform: translate(-6px, 2px); } 40% { transform: translate(5px, -3px); } 60% { transform: translate(-4px, 3px); } 80% { transform: translate(3px, -1px); } }

/* ----------------------------------------------------------- registration */
.register { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 34px; align-items: center; padding-top: 30px; }
.register form { display: grid; gap: 16px; }
.field label { display: block; font-family: var(--type); letter-spacing: 0.15em; font-size: 12px; color: var(--amber); margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 14px 16px; background: rgba(10, 10, 12, 0.6); border: 1px solid var(--line); border-radius: 6px; color: var(--paper); font-family: var(--type); font-size: 18px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--amber); outline: none; box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.15); }
.idcard { aspect-ratio: 1.58; border-radius: 14px; padding: 20px; color: var(--paper-ink); background: linear-gradient(135deg, #efe6d2, #d9c9a4); box-shadow: var(--shadow); display: grid; grid-template-columns: 34% 1fr; gap: 16px; position: relative; overflow: hidden; transform: rotate(-2deg); }
.idcard::before { content: 'AGENCY OF TRUTH · AGENCY OF TRUTH · AGENCY OF TRUTH · AGENCY OF TRUTH'; position: absolute; inset: auto -20px 10px; font-family: var(--type); font-size: 10px; letter-spacing: 0.3em; color: rgba(35, 28, 19, 0.25); white-space: nowrap; }
.idcard .photo { background: url('../assets/agent.png') center / cover, #fff; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); border-radius: 4px; }
.idcard h4 { margin: 0; font-family: var(--type); font-size: 12px; letter-spacing: 0.25em; color: #8a6a2b; }
.idcard .name { font-family: var(--type); font-size: clamp(18px, 2.4vw, 26px); margin: 6px 0 2px; word-break: break-word; }
.idcard .meta { font-family: var(--mono); font-size: 11px; line-height: 1.7; }
.idcard .eu { position: absolute; right: 16px; top: 14px; width: 36px; height: 36px; }

/* ----------------------------------------------------------- case board */
.corkboard { position: relative; padding: 34px; border-radius: 6px; background: #a77b4f; background-image: radial-gradient(rgba(70, 40, 15, 0.35) 1px, transparent 1.5px), radial-gradient(rgba(220, 180, 130, 0.25) 1px, transparent 1.5px); background-size: 7px 7px, 11px 11px; box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.45), 0 0 0 14px #2d211a, 0 0 0 16px #1b130e, var(--shadow); margin: 24px 14px 10px; }
.corkboard svg.strings { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; filter: drop-shadow(0 3px 2px rgba(0,0,0,.35)); }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; position: relative; z-index: 1; }
.casefile { position: relative; text-decoration: none; color: var(--paper-ink); background: linear-gradient(160deg, #e2c47f, #c9a463); padding: 46px 20px 20px; border-radius: 3px 10px 4px 4px; box-shadow: 0 14px 26px rgba(0, 0, 0, 0.45); transform: rotate(var(--r, 0deg)); transition: transform 0.25s ease, box-shadow 0.25s ease; display: block; min-height: 250px; }
.casefile::before { content: ''; position: absolute; left: 0; top: -14px; width: 42%; height: 18px; background: #d8b673; border-radius: 6px 10px 0 0; }
.casefile:hover { transform: rotate(0deg) translateY(-6px) scale(1.02); box-shadow: 0 24px 40px rgba(0, 0, 0, 0.55); z-index: 3; }
.casefile .pin { position: absolute; top: 10px; left: 50%; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8a80, #b71c1c 60%); box-shadow: 0 3px 4px rgba(0, 0, 0, 0.4); transform: translateX(-50%); z-index: 4; }
.casefile .num { font-family: var(--type); font-size: 54px; line-height: 1; color: rgba(35, 28, 19, 0.85); }
.casefile h3 { font-family: var(--type); font-weight: 400; font-size: 20px; margin: 8px 0 6px; }
.casefile p { font-size: 13px; line-height: 1.5; margin: 0 0 12px; color: #4a3b28; }
.casefile .lead { font-family: var(--hand); font-size: 20px; color: #1b2a4a; }
.casefile .progress { display: flex; gap: 4px; margin-top: 10px; }
.casefile .progress i { flex: 1; height: 6px; border-radius: 3px; background: rgba(35, 28, 19, 0.15); }
.casefile .progress i.on { background: #2b6b3f; }
.casefile .solved { position: absolute; right: 12px; bottom: 14px; font-size: 18px; }
.board-extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-top: 30px; position: relative; z-index: 1; }
.notecard { background: #fbf8ef; color: #1b2a4a; padding: 14px 16px; text-decoration: none; transform: rotate(var(--r, 1deg)); box-shadow: 0 8px 14px rgba(0, 0, 0, 0.35); font-family: var(--hand); font-size: 22px; line-height: 1.1; background-image: repeating-linear-gradient(transparent 0 26px, rgba(80, 120, 200, 0.25) 26px 27px); transition: transform 0.2s; display: block; }
.notecard small { display: block; font-family: var(--sans); font-size: 12px; color: #4a5672; margin-top: 6px; }
.notecard:hover { transform: rotate(0) scale(1.04); }
.board-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* ----------------------------------------------------------- module page */
.module-hero { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: end; padding: 26px 0 8px; }
.module-hero .bignum { font-family: var(--type); font-size: clamp(80px, 14vw, 160px); line-height: 0.8; color: transparent; -webkit-text-stroke: 1.5px var(--mc, var(--amber)); opacity: 0.9; }
.module-hero h1 { font-family: var(--serif); font-size: clamp(32px, 5.4vw, 58px); line-height: 1.02; margin: 6px 0 8px; color: var(--paper); }
.module-hero .tagline { color: var(--muted); margin: 0; font-size: 16px; }
.stepper { position: sticky; top: calc(var(--hud-h) - 6px); z-index: 20; display: flex; gap: 6px; padding: 10px 0; margin: 18px -12px 8px; padding-left: 12px; padding-right: 12px; background: rgba(12, 12, 14, 0.97); border-radius: 0 0 12px 12px; overflow-x: auto; scrollbar-width: none; }
.stepper::-webkit-scrollbar { display: none; }
.step { flex: 1; min-width: 120px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); text-decoration: none; color: var(--muted); cursor: pointer; transition: all 0.2s; }
.step:hover { color: var(--paper); border-color: rgba(255, 179, 71, 0.4); }
.step .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; border: 1px solid currentColor; flex: none; }
.step .t { font-size: 13px; line-height: 1.15; }
.step .t small { display: block; font-family: var(--type); font-size: 10px; letter-spacing: 0.15em; opacity: 0.7; }
.step.active { color: #1a1205; background: var(--mc, var(--amber)); border-color: transparent; }
.step.done .n { background: var(--ok); color: #05210f; border-color: var(--ok); }
.step-body { min-height: 50vh; padding: 10px 0 30px; animation: pageIn 0.5s ease; }
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 34px; padding-top: 20px; border-top: 1px dashed var(--line); }

/* hook / briefing */
.hook { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 28px; }
.hook .paper { padding: 34px 34px 28px; }
.hook .paper p { font-family: var(--serif); font-size: 18px; line-height: 1.75; margin: 0 0 14px; }
.hook .paper p:first-of-type::first-letter { font-size: 3.4em; float: left; line-height: 0.85; padding: 6px 8px 0 0; font-weight: 700; }
.quote { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.45; color: var(--paper); border-left: 3px solid var(--amber); padding: 6px 0 6px 18px; margin: 0; }
.quote cite { display: block; font-family: var(--type); font-style: normal; font-size: 12px; letter-spacing: 0.15em; color: var(--muted); margin-top: 10px; }
.timeline { position: relative; margin: 26px 0 6px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 14px; overflow-x: auto; padding: 30px 4px 14px; scroll-snap-type: x mandatory; }
.timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 16px; height: 2px; background: repeating-linear-gradient(90deg, var(--amber) 0 10px, transparent 10px 16px); opacity: 0.6; }
.tl-item { scroll-snap-align: start; position: relative; }
.tl-item::before { content: ''; position: absolute; top: -20px; left: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.tl-item .y { font-family: var(--type); color: var(--amber); font-size: 18px; }
.tl-item h4 { margin: 4px 0; font-family: var(--serif); color: var(--paper); font-size: 17px; }
.tl-item p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.concepts { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.concept { border-top: 4px solid var(--cc); }
.concept .tag { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--cc); }
.concept h3 { font-size: 24px; margin: 4px 0 10px; }
.concept .ex { margin-top: 14px; padding: 12px 14px; background: rgba(255, 255, 255, 0.04); border-left: 2px solid var(--cc); font-size: 14px; color: #d6cfc0; line-height: 1.55; border-radius: 0 6px 6px 0; }
.concept .ex b { font-family: var(--type); font-weight: 400; color: var(--cc); letter-spacing: 0.1em; font-size: 11px; display: block; margin-bottom: 4px; }

/* sorter mini-game */
.sorter { margin-top: 18px; }
.sorter .tray { display: flex; flex-wrap: wrap; gap: 10px; min-height: 60px; padding: 14px; border: 1px dashed var(--line); border-radius: 10px; }
.chip { padding: 10px 14px; border-radius: 8px; background: var(--paper); color: var(--paper-ink); font-size: 14px; cursor: grab; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); user-select: none; touch-action: none; max-width: 360px; line-height: 1.4; }
.chip.dragging { opacity: 0.6; cursor: grabbing; }
.chip.ok { background: #d8f5e2; } .chip.bad { background: #ffd9df; }
.bins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.bin { border: 2px dashed var(--bc); border-radius: 12px; min-height: 140px; padding: 12px; display: flex; flex-direction: column; gap: 8px; transition: background 0.2s; }
.bin h4 { margin: 0; font-family: var(--type); color: var(--bc); font-weight: 400; letter-spacing: 0.1em; }
.bin.over { background: rgba(255, 255, 255, 0.06); }

/* toolkit */
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.tool { perspective: 1200px; min-height: 290px; cursor: pointer; }
.tool-inner { position: relative; width: 100%; height: 100%; min-height: 290px; transition: transform 0.7s cubic-bezier(.2, .8, .2, 1); transform-style: preserve-3d; }
.tool.flipped .tool-inner { transform: rotateY(180deg); }
.tool-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 12px; padding: 22px; display: flex; flex-direction: column; }
.tool-front { background: linear-gradient(160deg, #24252c, #17181c); border: 1px solid var(--line); }
.tool-back { background: var(--paper); color: var(--paper-ink); transform: rotateY(180deg); }
.tool .ico { font-size: 40px; }
.tool h3 { font-family: var(--serif); margin: 12px 0 8px; font-size: 21px; color: var(--paper); }
.tool-back h3 { color: var(--paper-ink); }
.tool p { margin: 0 0 10px; font-size: 14px; line-height: 1.55; }
.tool .flip-hint { margin-top: auto; font-family: var(--type); font-size: 11px; letter-spacing: 0.2em; color: var(--amber); }
.tool-back .warn { font-size: 13px; background: rgba(192, 57, 43, 0.12); padding: 8px 10px; border-left: 3px solid var(--red); }
.tool-back a { color: #8a4b00; font-weight: 600; margin-top: auto; }
.demo { margin-top: 22px; }
.clues { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.clue { padding: 16px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.clue .i { font-size: 26px; }
.clue h4 { margin: 6px 0 4px; font-family: var(--type); font-weight: 400; color: var(--paper); }
.clue p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* SIFT sprint */
.sift-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sift-card { padding: 18px 14px; border-radius: 10px; background: var(--paper); color: var(--paper-ink); text-align: center; cursor: pointer; transition: transform 0.2s, background 0.2s; user-select: none; }
.sift-card .L { font-family: var(--type); font-size: 46px; line-height: 1; }
.sift-card .w { font-size: 13px; margin-top: 6px; }
.sift-card.picked { background: #d8f5e2; transform: translateY(-4px); }
.sift-card.wrong { animation: shake 0.35s; background: #ffd9df; }

/* evidence */
.evidence-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.ev { background: #f4efe3; color: var(--paper-ink); border-radius: 4px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; }
.ev .media { position: relative; background: #111; aspect-ratio: 16/10; overflow: hidden; }
.ev .media img, .ev .media video { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.15) contrast(1.05); }
.ev .media .icon { position: absolute; inset: 0; display: grid; place-items: center; font-size: 80px; background: radial-gradient(circle, #2a2b31, #111); }
.ev .verdict { position: absolute; right: 12px; top: 12px; background: rgba(244, 239, 227, 0.92); font-size: 14px; }
.ev .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ev h3 { font-family: var(--serif); margin: 0; font-size: 22px; }
.ev .meta { font-family: var(--mono); font-size: 11px; color: #6b5a3c; letter-spacing: 0.05em; text-transform: uppercase; }
.ev p { margin: 0; font-size: 14px; line-height: 1.6; }
.ev .lbl { font-family: var(--type); font-size: 11px; letter-spacing: 0.18em; color: #8a6a2b; display: block; margin-bottom: 2px; }
.ev .eu { background: rgba(0, 51, 153, 0.08); border-left: 3px solid #003399; padding: 10px 12px; font-size: 13.5px; }
.ev .sources { font-size: 12px; border-top: 1px dashed rgba(0, 0, 0, 0.2); padding-top: 10px; margin-top: auto; }
.ev .sources a { color: #6b3b00; display: block; margin-top: 3px; word-break: break-word; }
.ev .credit { font-size: 11px; color: #7c6c52; }
.compare { position: relative; overflow: hidden; aspect-ratio: 1.22; user-select: none; touch-action: none; background: #111; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .top { clip-path: inset(0 calc(100% - var(--x, 50%)) 0 0); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 3px; background: var(--amber); transform: translateX(-50%); }
.compare .handle::after { content: '⟷'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%; background: var(--amber); color: #000; display: grid; place-items: center; font-size: 18px; }
.compare .tag { position: absolute; bottom: 10px; font-family: var(--type); font-size: 12px; background: rgba(0, 0, 0, 0.7); color: #fff; padding: 4px 8px; }

/* ----------------------------------------------------------- task: spot the fake */
.task-brief { display: flex; gap: 18px; align-items: flex-start; padding: 18px 20px; margin-bottom: 22px; border: 1px dashed rgba(255, 179, 71, 0.4); border-radius: 12px; background: rgba(255, 179, 71, 0.04); }
.task-brief .ico { font-size: 34px; }
.task-brief h3 { margin: 0 0 4px; font-family: var(--type); font-weight: 400; color: var(--amber); letter-spacing: 0.1em; }
.task-brief p { margin: 0; color: #d6cfc0; line-height: 1.6; }
.scen-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.scen-tab { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--muted); font-size: 13px; }
.scen-tab.active { background: var(--paper); color: var(--paper-ink); }
.scen-tab.done { border-color: var(--ok); color: var(--ok); }
.scen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.post { background: #fff; color: #0f1419; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); font-family: -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.post-head { display: flex; gap: 10px; align-items: center; padding: 14px 16px 8px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #ff8a65, #c2185b); display: grid; place-items: center; color: #fff; font-weight: 700; flex: none; }
.post-head b { display: block; font-size: 15px; }
.post-head span { color: #536471; font-size: 13px; }
.post-head .plat { margin-left: auto; font-size: 12px; color: #536471; border: 1px solid #e1e8ed; padding: 3px 8px; border-radius: 999px; }
.post-text { padding: 0 16px 12px; font-size: 16px; line-height: 1.45; }
.post-media { background: #000; position: relative; }
.post-media img, .post-media video { width: 100%; max-height: 360px; object-fit: cover; display: block; }
.post-stats { padding: 10px 16px 14px; color: #536471; font-size: 13px; border-top: 1px solid #eff3f4; }
.voice-note { display: flex; align-items: center; gap: 12px; padding: 18px 16px; background: #0e1621; }
.voice-note button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: #2aabee; color: #fff; font-size: 18px; cursor: pointer; flex: none; }
.wave { display: flex; align-items: center; gap: 3px; height: 40px; flex: 1; }
.wave i { flex: 1; background: #2aabee; border-radius: 2px; opacity: 0.6; transition: height 0.1s; }
.wave.playing i { animation: wv 0.6s ease-in-out infinite alternate; }
@keyframes wv { from { transform: scaleY(0.4); } to { transform: scaleY(1); } }
.dm-shot { background: #f0f2f5; padding: 16px; display: grid; gap: 8px; }
.dm-shot .msg { max-width: 75%; padding: 8px 12px; border-radius: 14px; font-size: 14px; background: #fff; }
.dm-shot .msg.me { justify-self: end; background: #0084ff; color: #fff; }
.dm-shot .blur { filter: blur(4px); }
.investigate { display: flex; flex-direction: column; gap: 14px; }
.tactics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.tactic { padding: 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); cursor: pointer; text-align: left; font-size: 13px; transition: all 0.2s; }
.tactic:hover { border-color: var(--amber); }
.tactic.used { border-color: var(--amber); background: rgba(255, 179, 71, 0.12); }
.findings { display: grid; gap: 8px; }
.finding { padding: 10px 12px; border-radius: 8px; background: var(--paper); color: var(--paper-ink); font-size: 14px; line-height: 1.5; animation: pageIn 0.4s; }
.finding b { font-family: var(--type); font-weight: 400; letter-spacing: 0.08em; color: #8a6a2b; }
.verdicts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.verdict-btn { padding: 12px; border-radius: 10px; border: 2px solid var(--vc); background: transparent; cursor: pointer; text-align: left; transition: all 0.2s; }
.verdict-btn b { display: block; color: var(--vc); font-family: var(--type); font-weight: 400; letter-spacing: 0.06em; }
.verdict-btn small { color: var(--muted); }
.verdict-btn:hover, .verdict-btn.sel { background: color-mix(in srgb, var(--vc) 18%, transparent); }
.result-box { padding: 14px 16px; border-radius: 10px; line-height: 1.55; animation: pageIn 0.4s; }
.result-box.good { background: rgba(46, 204, 113, 0.12); border: 1px solid rgba(46, 204, 113, 0.5); }
.result-box.bad { background: rgba(255, 46, 99, 0.1); border: 1px solid rgba(255, 46, 99, 0.45); }
.scorebar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); margin: 18px 0; flex-wrap: wrap; }
.scorebar .big { font-family: var(--type); font-size: 28px; color: var(--amber); }

/* ----------------------------------------------------------- task: paper trail (mock browser) */
.browser { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); background: #fff; color: #222; }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #dee1e6; }
.browser-bar .dots i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 5px; }
.browser-bar .url { flex: 1; background: #fff; border-radius: 999px; padding: 6px 14px; font-family: var(--mono); font-size: 12px; color: #444; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-bar .lock { color: #188038; }
.browser-tools { display: flex; gap: 6px; padding: 8px 12px; background: #f1f3f4; border-bottom: 1px solid #ddd; flex-wrap: wrap; }
.browser-tools button { border: 1px solid #ccc; background: #fff; border-radius: 6px; padding: 6px 10px; font-size: 12px; cursor: pointer; color: #222; }
.browser-tools button:hover { background: #fff7e6; border-color: #f0a500; }
.browser-tools button.used { background: #fff1d6; border-color: #f0a500; }
.webpage { padding: 26px 30px 30px; min-height: 320px; }
.webpage .brand { color: inherit; letter-spacing: 0; font-size: inherit; }
.wp-tabloid .wp-brand { font-family: Impact, 'Arial Black', sans-serif; font-size: 34px; color: #d50000; letter-spacing: 1px; }
.wp-tabloid h2 { font-family: Impact, 'Arial Black', sans-serif; font-size: 34px; line-height: 1.05; text-transform: uppercase; margin: 10px 0; }
.wp-blog .wp-brand { font-family: var(--hand); font-size: 36px; color: #d81b60; }
.wp-blog h2 { font-family: Georgia, serif; font-size: 28px; }
.wp-tweet { max-width: 560px; }
.wp-tweet .wp-brand { font-size: 30px; }
.wp-tweet h2 { font-size: 21px; font-weight: 400; line-height: 1.4; }
.wp-official { font-family: Georgia, serif; border-top: 6px solid #003366; }
.wp-official .wp-brand { font-family: Georgia, serif; font-size: 22px; color: #003366; letter-spacing: 0.06em; }
.wp-official h2 { font-size: 24px; color: #003366; }
.wp-badge { display: inline-block; font-size: 12px; padding: 3px 8px; border-radius: 4px; background: #f1f1f1; color: #555; }
.wp-sub { color: #555; font-size: 15px; margin: 0 0 6px; }
.wp-byline { font-size: 12px; color: #888; margin-bottom: 16px; }
.webpage p { font-size: 16px; line-height: 1.65; }
.webpage .lnk { color: #1a0dab; text-decoration: underline; cursor: pointer; background: #fff3c4; padding: 0 2px; }
.webpage .vote { font-weight: 700; color: #b00020; }
.trail { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 14px 0; font-family: var(--mono); font-size: 12px; }
.trail span { padding: 5px 9px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); }
.trail span.cur { border-color: var(--amber); color: var(--amber); }
.side-panel { padding: 14px 16px; border-radius: 10px; background: #111216; border: 1px solid var(--line); font-family: var(--mono); font-size: 13px; line-height: 1.7; animation: pageIn 0.3s; }
.side-panel h4 { margin: 0 0 6px; font-family: var(--type); font-weight: 400; color: var(--amber); letter-spacing: 0.1em; }
.side-panel .alert { color: var(--fake); }
.rating { display: flex; gap: 8px; flex-wrap: wrap; }
.rating button { flex: 1; min-width: 90px; padding: 12px 8px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); cursor: pointer; font-size: 13px; line-height: 1.3; }
.rating button b { display: block; font-family: var(--type); font-size: 24px; font-weight: 400; color: var(--amber); }
.rating button.sel { background: rgba(255, 179, 71, 0.16); border-color: var(--amber); }
.option-list { display: grid; gap: 8px; }
.option { text-align: left; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); cursor: pointer; transition: all 0.2s; line-height: 1.45; }
.option:hover { border-color: var(--amber); }
.option.sel { border-color: var(--amber); background: rgba(255, 179, 71, 0.12); }
.option.right { border-color: var(--ok); background: rgba(46, 204, 113, 0.14); }
.option.wrong { border-color: var(--fake); background: rgba(255, 46, 99, 0.12); }
.profile { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; background: #fff; color: #111; padding: 18px; border-radius: 14px; }
.profile .av { width: 74px; height: 74px; border-radius: 50%; background: conic-gradient(#f9ce34, #ee2a7b, #6228d7, #f9ce34); padding: 3px; }
.profile .av i { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #fff; font-size: 34px; font-style: normal; }
.profile h4 { margin: 0; font-size: 17px; }
.profile p { margin: 4px 0 0; font-size: 14px; color: #333; }

/* ----------------------------------------------------------- task: forensic lab */
.lab { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 22px; }
.lab-img { position: relative; border-radius: 10px; overflow: hidden; background: #000; box-shadow: var(--shadow); cursor: crosshair; touch-action: none; }
.lab-img img { width: 100%; display: block; }
.lab-img .caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)); color: #fff; font-size: 14px; line-height: 1.4; }
.loupe { position: absolute; width: 170px; height: 170px; border-radius: 50%; border: 3px solid var(--amber); box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.6); pointer-events: none; background-repeat: no-repeat; display: none; transform: translate(-50%, -50%); z-index: 3; }
.lab-img.loupe-on .loupe { display: block; }
.hotspot { position: absolute; width: 34px; height: 34px; margin: -17px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, 0.0); cursor: pointer; z-index: 2; }
.hotspot.found { border-color: var(--fake); background: rgba(255, 46, 99, 0.2); }
.hotspot.found::after { content: attr(data-label); position: absolute; left: 40px; top: 2px; white-space: nowrap; background: var(--fake); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 4px; }
.lab-tools { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.exif { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12.5px; }
.exif td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.exif td:first-child { color: var(--muted); width: 38%; }
.rs-result { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.03); margin-bottom: 6px; font-size: 13px; }
.rs-result .d { font-family: var(--mono); color: var(--amber); }
.rs-result.oldest { border: 1px solid var(--ok); }
.rs-result.oldest .d::after { content: ' ★ oldest'; color: var(--ok); }
.img-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.img-tab { width: 74px; height: 56px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; cursor: pointer; opacity: 0.6; padding: 0; background: #000; }
.img-tab img { width: 100%; height: 100%; object-fit: cover; }
.img-tab.active { border-color: var(--amber); opacity: 1; }
.img-tab.done { border-color: var(--ok); opacity: 1; }

/* ----------------------------------------------------------- task: feed audit */
.feed-wrap { display: grid; grid-template-columns: 390px 1fr; gap: 26px; align-items: start; }
.phone { width: 100%; max-width: 390px; height: 720px; border-radius: 44px; background: #000; padding: 14px; box-shadow: 0 0 0 2px #333, 0 30px 60px rgba(0, 0, 0, 0.6); position: relative; }
.phone::before { content: ''; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 110px; height: 28px; background: #000; border-radius: 20px; z-index: 3; }
.screen { height: 100%; border-radius: 32px; overflow-y: auto; background: #f0f2f5; scrollbar-width: none; position: relative; }
.screen::-webkit-scrollbar { display: none; }
.screen-top { position: sticky; top: 0; z-index: 2; background: #fff; padding: 46px 16px 10px; display: flex; justify-content: space-between; align-items: center; color: #111; font-weight: 800; font-size: 20px; border-bottom: 1px solid #ddd; }
.screen-top span { font-size: 12px; font-weight: 500; color: #888; }
.fpost { background: #fff; color: #111; margin: 8px 0; padding: 12px 14px; }
.fpost .fh { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.fpost .fh i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; color: #fff; font-weight: 700; font-size: 13px; }
.fpost .fh b { font-size: 14px; }
.fpost .fh small { display: block; color: #888; font-size: 11px; }
.fpost p { margin: 4px 0 8px; font-size: 14px; line-height: 1.4; }
.fpost .fimg { height: 170px; border-radius: 8px; margin-bottom: 8px; display: grid; place-items: center; font-size: 64px; }
.fpost .fact { display: flex; gap: 6px; flex-wrap: wrap; }
.fpost .fact button { border: 1px solid #ddd; background: #fafafa; border-radius: 999px; padding: 5px 10px; font-size: 12px; cursor: pointer; color: #333; }
.fpost .fact button.on { background: #111; color: #fff; border-color: #111; }
.fpost.flagged { box-shadow: inset 4px 0 0 var(--fake); }
.fpost .trig { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.fpost .trig button { border: 1px solid #ddd; background: #fff; border-radius: 6px; padding: 4px 7px; font-size: 11px; cursor: pointer; color: #333; }
.fpost .trig button.on { background: #ffe0e6; border-color: var(--fake); }
.meter { height: 14px; border-radius: 7px; background: rgba(255, 255, 255, 0.08); overflow: hidden; display: flex; }
.meter i { display: block; height: 100%; transition: width 0.6s ease; }
.timer { font-family: var(--type); font-size: 44px; color: var(--amber); letter-spacing: 0.05em; }
.timer.low { color: var(--fake); animation: blink 1s steps(1) infinite; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }

/* ----------------------------------------------------------- task: investigation */
.pipeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 16px 0; counter-reset: st; }
.stage { padding: 12px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); font-size: 13px; line-height: 1.35; position: relative; }
.stage::before { counter-increment: st; content: counter(st); font-family: var(--type); color: var(--amber); font-size: 22px; display: block; }
.stage.lit { border-color: var(--ok); background: rgba(46, 204, 113, 0.08); }
.evboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.clue-card { padding: 14px; border-radius: 4px; background: var(--paper); color: var(--paper-ink); cursor: pointer; transform: rotate(var(--r, 0)); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35); transition: transform 0.2s; min-height: 130px; position: relative; }
.clue-card:hover { transform: rotate(0) translateY(-3px); }
.clue-card .face { font-family: var(--type); font-size: 18px; display: flex; gap: 8px; align-items: center; }
.clue-card .txt { font-size: 13.5px; line-height: 1.5; margin-top: 8px; display: none; }
.clue-card.open .txt { display: block; }
.clue-card.open .face { color: #8a6a2b; }
.clue-card .use { margin-top: 10px; display: none; gap: 6px; flex-wrap: wrap; }
.clue-card.open .use { display: flex; }
.clue-card .use label { font-size: 12px; display: flex; gap: 4px; align-items: center; background: rgba(0, 0, 0, 0.06); padding: 4px 8px; border-radius: 6px; cursor: pointer; }
.report { display: grid; gap: 14px; }
.report-print { background: #fff; color: #111; padding: 34px; border-radius: 6px; font-family: Georgia, serif; line-height: 1.6; }
.report-print h2 { font-family: var(--type); font-weight: 400; margin: 0; }
.report-print .vd { display: inline-block; padding: 6px 14px; background: #b00020; color: #fff; font-family: var(--type); letter-spacing: 0.1em; margin: 10px 0; }
.tone-warn { color: var(--fake); font-size: 13px; }

/* ----------------------------------------------------------- pledge & scenarios */
.dilemma { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 22px; margin-bottom: 26px; }
.dilemma .paper { padding: 24px; }
.dilemma .paper p { font-family: var(--serif); font-size: 17px; line-height: 1.6; margin: 0; }
.pledge-list { display: grid; gap: 8px; }
.pledge-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); cursor: pointer; line-height: 1.45; }
.pledge-item input { margin-top: 3px; accent-color: var(--amber); width: 18px; height: 18px; }
.pledge-item.on { border-color: var(--amber); background: rgba(255, 179, 71, 0.1); }
.sigpad { width: 100%; height: 160px; background: var(--paper); border-radius: 8px; touch-action: none; cursor: crosshair; display: block; }
.pledge-doc { padding: 40px; }
.pledge-doc h3 { font-family: var(--serif); font-size: 32px; text-align: center; }
.pledge-doc ol { font-family: var(--serif); font-size: 17px; line-height: 1.7; }

/* ----------------------------------------------------------- quiz (kahoot-style) */
.quiz { max-width: 900px; margin: 0 auto; }
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.qtimer { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-family: var(--type); font-size: 24px; background: conic-gradient(var(--amber) calc(var(--p, 1) * 360deg), rgba(255, 255, 255, 0.08) 0); position: relative; }
.qtimer::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: var(--smoke); }
.qtimer span { position: relative; }
.qcard { background: var(--paper); color: var(--paper-ink); border-radius: 14px; padding: 30px; text-align: center; font-family: var(--serif); font-size: clamp(20px, 2.8vw, 30px); line-height: 1.3; box-shadow: var(--shadow); min-height: 140px; display: grid; place-items: center; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.ans { display: flex; align-items: center; gap: 14px; padding: 20px 18px; border-radius: 12px; border: 0; cursor: pointer; color: #fff; font-size: 17px; text-align: left; font-weight: 600; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35); transition: transform 0.1s, filter 0.2s, opacity 0.3s; line-height: 1.3; }
.ans:hover { filter: brightness(1.1); transform: translateY(-2px); }
.ans:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35); }
.ans .shape { font-size: 22px; flex: none; }
.ans:nth-child(1) { background: #e21b3c; } .ans:nth-child(2) { background: #1368ce; } .ans:nth-child(3) { background: #d89e00; } .ans:nth-child(4) { background: #26890c; }
.ans.dim { opacity: 0.3; }
.ans.correct { outline: 4px solid #fff; }
.qexplain { margin-top: 14px; padding: 14px 16px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); line-height: 1.5; animation: pageIn 0.3s; }
.streak { font-family: var(--type); color: var(--amber); }
.quiz-end { text-align: center; padding: 30px 0; }
.quiz-end .score { font-family: var(--type); font-size: 72px; color: var(--amber); line-height: 1; }
.leader { max-width: 480px; margin: 18px auto 0; text-align: left; }
.leader li { display: flex; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 14px; }

/* ----------------------------------------------------------- europe */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.stat { padding: 22px; border-radius: 12px; background: linear-gradient(160deg, #0d1a3d, #0a1028); border: 1px solid rgba(255, 204, 0, 0.25); }
.stat .v { font-family: var(--type); font-size: 52px; color: #ffcc00; line-height: 1; }
.stat p { margin: 8px 0 6px; color: #dfe6ff; line-height: 1.45; }
.stat small { font-family: var(--mono); font-size: 11px; color: #8fa0cc; }
.harm { display: flex; gap: 14px; }
.harm .i { font-size: 30px; }
.eu-tl { border-left: 2px solid #ffcc00; margin-left: 10px; padding-left: 22px; display: grid; gap: 18px; }
.eu-tl div { position: relative; }
.eu-tl div::before { content: ''; position: absolute; left: -30px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #ffcc00; box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.2); }
.eu-tl b { font-family: var(--type); color: #ffcc00; font-size: 20px; font-weight: 400; margin-right: 10px; }

/* ----------------------------------------------------------- agency (team) */
.dossiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px 24px; margin-top: 26px; }
.dossier { position: relative; background: linear-gradient(165deg, #e5c885, #cba664); color: var(--paper-ink); padding: 26px 22px 22px; border-radius: 4px 12px 4px 4px; box-shadow: 0 18px 34px rgba(0, 0, 0, 0.5); transform: rotate(var(--r, 0deg)); transition: transform 0.3s; }
.dossier:hover { transform: rotate(0) translateY(-6px); }
.dossier::before { content: ''; position: absolute; left: 0; top: -14px; width: 40%; height: 18px; background: #e0c27f; border-radius: 6px 10px 0 0; }
.dossier .clipped { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: start; }
.dossier .mug { position: relative; aspect-ratio: 3/4; background: #ece4d0; border: 6px solid #fff; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); transform: rotate(-3deg); overflow: hidden; display: grid; place-items: center; }
.dossier .mug .initials { font-family: var(--serif); font-size: 40px; color: #2a2219; font-weight: 700; }
.dossier .mug::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent 0 14px, rgba(0, 0, 0, 0.08) 14px 15px); }
.dossier .mug .height { position: absolute; left: 4px; top: 4px; font-family: var(--mono); font-size: 8px; color: rgba(0, 0, 0, 0.35); }
.dossier .clip { position: absolute; top: -10px; left: 40px; width: 18px; height: 52px; border: 3px solid #9aa0a6; border-radius: 10px; z-index: 2; }
.dossier h3 { font-family: var(--type); font-weight: 400; font-size: 22px; margin: 0; }
.dossier .cn { font-family: var(--type); font-size: 13px; letter-spacing: 0.15em; color: #8a2a1b; margin: 4px 0 10px; }
.dossier dl { margin: 0; font-family: var(--mono); font-size: 12px; line-height: 1.8; display: grid; grid-template-columns: auto 1fr; gap: 0 10px; }
.dossier dt { color: #6b5a3c; }
.dossier dd { margin: 0; }
.dossier a { color: #7a2a12; font-weight: 600; }
.redact { background: #111; color: transparent; border-radius: 2px; transition: background 0.6s, color 0.6s; cursor: help; }
.dossier:hover .redact, .redact.off { background: transparent; color: inherit; }
.dossier .motto { font-family: var(--hand); font-size: 22px; color: #1b2a4a; margin-top: 12px; }
.dossier .stamp { position: absolute; right: 14px; bottom: 16px; font-size: 13px; }
.team-hero { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.school-seal { width: 170px; height: 170px; border-radius: 50%; border: 3px double var(--amber); display: grid; place-items: center; text-align: center; font-family: var(--type); color: var(--amber); padding: 18px; line-height: 1.3; transform: rotate(-8deg); }
.school-seal small { display: block; font-size: 10.5px; letter-spacing: 0.04em; line-height: 1.25; text-transform: uppercase; margin: 2px 0; }

/* ----------------------------------------------------------- training */
.swipe { position: relative; height: 470px; max-width: 420px; margin: 0 auto; }
.swipe-card { position: absolute; inset: 0; border-radius: 18px; overflow: hidden; background: #111; box-shadow: var(--shadow); touch-action: none; user-select: none; cursor: grab; transition: transform 0.35s ease, opacity 0.35s; }
.swipe-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.swipe-card .lbl { position: absolute; top: 20px; font-size: 26px; opacity: 0; transition: opacity 0.2s; }
.swipe-card .lbl.l { left: 20px; } .swipe-card .lbl.r { right: 20px; }
.swipe-btns { display: flex; justify-content: center; gap: 16px; margin-top: 18px; }
.headline-card { padding: 28px; font-family: var(--serif); font-size: 26px; line-height: 1.3; text-align: center; min-height: 150px; display: grid; place-items: center; }

/* ----------------------------------------------------------- certificate */
.cert-wrap { display: grid; place-items: center; gap: 18px; }
.cert-wrap canvas { width: min(900px, 100%); height: auto; border-radius: 6px; box-shadow: var(--shadow); }

/* ----------------------------------------------------------- facilitator */
#facil { position: fixed; right: 14px; bottom: 14px; z-index: 70; width: 290px; background: rgba(14, 14, 18, 0.96); border: 1px solid rgba(255, 179, 71, 0.4); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); display: none; }
body.facilitator #facil { display: block; }
#facil h4 { margin: 0 0 10px; font-family: var(--type); font-weight: 400; letter-spacing: 0.15em; color: var(--amber); display: flex; justify-content: space-between; }
#facil .ft { font-family: var(--type); font-size: 40px; text-align: center; color: var(--paper); }
#facil .row { display: flex; gap: 6px; justify-content: center; margin: 6px 0 12px; flex-wrap: wrap; }
#facil .team { display: grid; grid-template-columns: 1fr auto auto auto; gap: 6px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
#facil .team input { background: transparent; border: 0; color: var(--paper); font: inherit; width: 100%; }
#facil .team b { font-family: var(--type); font-size: 20px; color: var(--amber); min-width: 30px; text-align: right; }
#facil .team button { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
body.facilitator { font-size: 112%; }
body.facilitator .page { width: min(1500px, 100%); }

/* ----------------------------------------------------------- footer & toast */
.site-foot { margin: 60px auto 0; padding: 30px 22px; border-top: 1px solid var(--line); width: min(1180px, 100%); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.site-foot b { color: var(--paper); font-weight: 500; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); z-index: 95; background: var(--paper); color: var(--paper-ink); font-family: var(--type); padding: 12px 18px; border-radius: 8px; box-shadow: var(--shadow); opacity: 0; transition: all 0.3s; pointer-events: none; max-width: 90vw; text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 92; }

/* ----------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hook, .scen, .lab, .dilemma, .register, .feed-wrap, .team-hero { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: repeat(3, 1fr); }
  .phone { margin: 0 auto; }
  .school-seal { margin: 0 auto; }
}
@media (max-width: 760px) {
  :root { --hud-h: 54px; }
  .nav { position: fixed; top: var(--hud-h); left: 0; right: 0; flex-direction: column; background: rgba(8, 8, 10, 0.97); padding: 10px; gap: 2px; display: none; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 15px; }
  .menu-btn { display: grid; margin-left: auto; }
  .agent-chip { display: none; }
  .brand > span { display: none; }
  .page { padding: 0 16px; }
  .case-grid { grid-template-columns: 1fr; }
  .corkboard { padding: 22px 16px; margin: 20px 6px; }
  .bins { grid-template-columns: 1fr; }
  .answers { grid-template-columns: 1fr; }
  .verdicts { grid-template-columns: 1fr; }
  .sift-row { grid-template-columns: repeat(2, 1fr); }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .module-hero { grid-template-columns: 1fr; gap: 4px; }
  .phone { height: 620px; }
  .dossier .clipped { grid-template-columns: 90px 1fr; }
  #companion { width: 92px; height: 118px; }
  #companion .bubble { left: 6px; bottom: 112px; font-size: 13px; }
  .webpage { padding: 18px; }
  .wp-tabloid h2 { font-size: 26px; }
  .desk-cta { left: 16px; right: 16px; justify-content: center; bottom: 76px; }
  .desk-hint { bottom: 20px; width: calc(100% - 32px); font-size: 12px; }
  #facil { left: 10px; right: 10px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
@media print {
  body { overflow: visible; background: #fff; }
  #stage, #hud, #companion, .grain, .vignette, #labels, .step-nav, .stepper, .no-print, #facil { display: none !important; }
  #app { position: static; padding: 0; background: #fff; backdrop-filter: none; }
}

/* ----------------------------------------------------------- pen / drawing tool */
.pen-canvas { position: fixed; inset: 0; z-index: 56; pointer-events: none; touch-action: auto; }
body.pen-on .pen-canvas { pointer-events: auto; touch-action: none; cursor: crosshair; }
body.pen-on .pen-canvas[data-tool='eraser'] { cursor: cell; }
.pen-bar { position: fixed; left: 50%; bottom: 18px; z-index: 92; display: none; align-items: center; gap: 4px; padding: 7px 9px; background: rgba(12, 12, 15, 0.96); border: 1px solid rgba(255, 179, 71, 0.45); border-radius: 999px; box-shadow: var(--shadow); transform: translateX(-50%); max-width: calc(100vw - 16px); overflow-x: auto; scrollbar-width: none; }
.pen-bar::-webkit-scrollbar { display: none; }
body.pen-on .pen-bar { display: flex; animation: pageIn 0.25s ease; }
.pen-bar button { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid transparent; background: transparent; cursor: pointer; font-size: 17px; display: grid; place-items: center; color: var(--paper); }
.pen-bar button:hover { background: rgba(255, 255, 255, 0.08); }
.pen-bar button.on { border-color: var(--amber); background: rgba(255, 179, 71, 0.16); }
.pen-bar .pen-color::after { content: ''; width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25); }
.pen-bar .pen-color.on::after { box-shadow: 0 0 0 2px var(--amber); }
.pen-bar .pen-size i { display: block; border-radius: 50%; background: var(--paper); }
.pen-sep { flex: none; width: 1px; height: 24px; background: var(--line); margin: 0 3px; }
#btnPen[aria-pressed='true'] { background: var(--amber); color: #111; opacity: 1; }
body.pen-on #companion { opacity: 0.35; }
@media (max-width: 760px) { .pen-bar { bottom: 10px; gap: 2px; } .pen-bar button { width: 32px; height: 32px; font-size: 15px; } }
@media print { .pen-bar { display: none !important; } }
body.pen-on #toast { bottom: 84px; }

/* ----------------------------------------------------------- top menu: always fully visible (no sideways scrolling) */
@media (max-width: 1440px) { .agent-chip { display: none; } }
@media (max-width: 1320px) { .nav a { padding: 7px 9px; font-size: 12.5px; } #hud { gap: 10px; } }
@media (max-width: 1180px) {
  .brand > span { display: none; }
  .nav a { padding: 7px 7px; font-size: 12px; }
  .hud-tools .icon-btn { width: 34px; height: 34px; font-size: 15px; }
  .hud-tools { gap: 4px; }
}
@media (max-width: 920px) {
  .nav { position: fixed; top: var(--hud-h); left: 0; right: 0; flex-direction: column; background: rgba(8, 8, 10, 0.97); padding: 10px; gap: 2px; display: none; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 15px; }
  .menu-btn { display: grid; margin-left: auto; }
}

/* ----------------------------------------------------------- deepfake theater */
.seg { display: inline-flex; gap: 4px; padding: 4px; margin-top: 18px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.03); }
.seg button { border: 0; background: transparent; padding: 9px 16px; border-radius: 999px; cursor: pointer; color: var(--muted); font-size: 14px; transition: background 0.25s, color 0.25s; }
.seg button.on { background: var(--amber); color: #1a1205; font-weight: 600; }
.theater { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 22px; align-items: start; }
.screen-frame { position: relative; border-radius: 14px; overflow: hidden; background: #000; box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.06); aspect-ratio: 16 / 9; }
.screen-frame video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.screen-frame .verdict { position: absolute; right: 12px; top: 12px; background: rgba(244, 239, 227, 0.92); font-size: 13px; pointer-events: none; }
.theater-info { padding: 22px 24px; margin-top: 16px; }
.theater-info h3 { font-family: var(--serif); font-size: 24px; margin: 6px 0 8px; }
.theater-info p { font-size: 15px; line-height: 1.6; margin: 0 0 10px; }
.theater-info .lbl { font-family: var(--type); font-size: 11px; letter-spacing: 0.18em; color: #8a6a2b; display: block; margin-bottom: 4px; }
.theater-info .eu { background: rgba(0, 51, 153, 0.08); border-left: 3px solid #003399; padding: 10px 12px; }
.theater-info .credit { font-size: 12px; color: #7c6c52; }
.theater-info .credit a { color: #6b3b00; }
.tells { display: grid; gap: 6px; margin: 6px 0 12px; }
.tells label { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; cursor: pointer; line-height: 1.45; }
.tells input { accent-color: #8a6a2b; margin-top: 3px; }
.playlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 78vh; overflow-y: auto; scrollbar-width: thin; }
.playlist button { width: 100%; display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: center; text-align: left; padding: 6px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); cursor: pointer; color: var(--text); transition: background 0.25s, border-color 0.25s, transform 0.25s; }
.playlist button:hover { background: rgba(255, 179, 71, 0.08); transform: translateX(3px); }
.playlist button.on { border-color: var(--amber); background: rgba(255, 179, 71, 0.12); }
.playlist img { width: 96px; height: 56px; object-fit: cover; border-radius: 6px; background: #000; }
.playlist b { display: block; font-size: 13.5px; line-height: 1.3; }
.playlist small { color: var(--muted); font-size: 11.5px; }
.theater-game { max-width: 860px; margin: 0 auto; }
.game-hud { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; padding: 10px 14px; font-family: var(--type); color: #fff; background: linear-gradient(rgba(0, 0, 0, 0.55), transparent); pointer-events: none; }
@media (max-width: 980px) { .theater { grid-template-columns: 1fr; } .playlist { max-height: none; } }

/* ----------------------------------------------------------- smooth motion */
#app.lenis { scroll-behavior: auto; }
.reveal { opacity: 0; transform: translate3d(0, 26px, 0) scale(0.985); transition: opacity 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0ms), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.reveal.in.casefile, .reveal.in.dossier { transform: rotate(var(--r, 0deg)); }
.btn, .icon-btn, .option, .verdict-btn, .tactic, .step, .card, .ev, .notecard, .playlist button, .scen-tab { transition-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }
.card, .ev { transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s, opacity 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) var(--d, 0ms); }
.card:hover, .ev:hover { transform: translate3d(0, -3px, 0); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.5); }
.ev.reveal:not(.in), .card.reveal:not(.in) { transform: translate3d(0, 26px, 0) scale(0.985); }
/* page-to-page cross-fade (View Transitions API); HUD and companion stay perfectly still */
#hud { view-transition-name: hud; }
#companion { view-transition-name: companion; }
::view-transition-group(hud), ::view-transition-group(companion) { animation: none; }
::view-transition-old(root) { animation: vtOut 0.32s cubic-bezier(0.4, 0, 0.2, 1) both; }
::view-transition-new(root) { animation: vtIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes vtOut { to { opacity: 0; transform: translate3d(0, -14px, 0) scale(0.992); filter: blur(3px); } }
@keyframes vtIn { from { opacity: 0; transform: translate3d(0, 18px, 0) scale(1.008); filter: blur(3px); } }
.vt-run .page { animation: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* ----------------------------------------------------------- leadership + credits */
.dossiers.leads { grid-template-columns: repeat(2, minmax(0, 520px)); justify-content: center; margin-bottom: 10px; }
@media (max-width: 760px) { .dossiers.leads { grid-template-columns: 1fr; } }
.dossier.lead { background: linear-gradient(165deg, #efd79a, #d4ae62); box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.55), 0 22px 40px rgba(0, 0, 0, 0.55); }
.dossier.lead::before { background: #ecd28f; }
.dossier .rank { font-family: var(--type); font-size: 12px; letter-spacing: 0.25em; color: #003399; margin-bottom: 2px; }
.built-by { display: inline-block; margin-top: 6px; color: var(--amber); font-family: var(--type); letter-spacing: 0.06em; }
.built-by b { color: var(--paper); font-weight: 400; }
