/* NORJAK — shared styles */
:root {
  --bg: #0c131d;
  --bg2: #111b28;
  --surface: #16212f;
  --surface2: #1d2a3b;
  --line: #2b3b50;
  --ink: #e9eef4;
  --muted: #9fb0c3;
  --manila: #e8dab2;
  --manila-ink: #2a2214;
  --red: #e0353b;
  --red-deep: #a8171d;
  --amber: #f4b942;
  --green: #5fbf8a;
  --blue: #6aa8ff;
  --heat: 244, 185, 66;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 14px;
  --font-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-type: "Special Elite", "Courier New", monospace;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #efe6cc;
  --bg2: #e7dbbb;
  --surface: #fbf6e6;
  --surface2: #f3ead2;
  --line: #cdbf98;
  --ink: #1b2430;
  --muted: #5b6574;
  --manila: #fff8e2;
  --red: #b3141b;
  --red-deep: #8e0f15;
  --amber: #a86b00;
  --green: #1f7a4c;
  --blue: #2457b8;
  --heat: 200, 40, 30;
  --shadow: 0 8px 24px rgba(60,40,10,.15);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(224,53,59,.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(106,168,255,.08), transparent 60%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg, canvas { max-width: 100%; }
a { color: var(--amber); }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: .02em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 7vw, 3.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.4rem, 4.5vw, 2.1rem); text-transform: uppercase; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: #000; padding: .5em 1em; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: .75rem; padding-top: .55rem; padding-bottom: .55rem; }
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-size: 1.25rem; letter-spacing: .12em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand b { color: var(--red); font-weight: 700; }
.nav { display: flex; gap: .15rem; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--muted); text-decoration: none; font-size: .9rem; padding: .35rem .55rem; border-radius: 8px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface2); }
.icon-btn { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; width: 38px; height: 38px; display: inline-grid; place-items: center; cursor: pointer; flex: none; font-size: 1rem; }
.icon-btn:hover { border-color: var(--amber); }
.menu-btn { display: none; }
@media (max-width: 760px) {
  .menu-btn { display: inline-grid; margin-left: auto; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; padding: .5rem 1rem 1rem; }
  .nav.open { display: flex; }
  .nav a { font-size: 1.05rem; padding: .6rem .5rem; }
}

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
main { padding-bottom: 3rem; }
section { margin: 2.2rem 0; }

/* ---------- components ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font-family: var(--font-display); font-size: 1.02rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .7rem 1.15rem; border-radius: 10px; border: 2px solid transparent;
  background: var(--red); color: #fff; cursor: pointer; text-decoration: none; min-height: 44px;
  transition: transform .12s ease, background .2s ease, border-color .2s;
}
.btn:hover { background: var(--red-deep); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--amber); background: var(--surface2); }
.manila .btn.ghost, .qcard .btn.ghost { color: #1e1a12; border-color: rgba(30,26,18,.3); }
.manila .btn.ghost:hover, .qcard .btn.ghost:hover { background: rgba(30,26,18,.08); border-color: #a8171d; }
.btn.amber { background: var(--amber); color: #1a1205; }
.btn.amber:hover { filter: brightness(.95); }
.btn.small { font-size: .85rem; padding: .45rem .75rem; min-height: 36px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem; box-shadow: var(--shadow);
}
.manila {
  background: var(--manila); color: var(--manila-ink); border-radius: 6px 6px 10px 10px;
  box-shadow: var(--shadow); position: relative; padding: 1.2rem;
  background-image: repeating-linear-gradient(0deg, transparent 0 27px, rgba(80,60,20,.08) 27px 28px);
}
[data-theme="light"] .manila { color: #2a2214; border: 1px solid var(--line); }
.manila a { color: var(--red-deep); }
.stamp {
  display: inline-block; font-family: var(--font-type); color: var(--red); border: 3px solid currentColor;
  padding: .15rem .6rem; transform: rotate(-4deg); letter-spacing: .08em; text-transform: uppercase; border-radius: 4px; font-size: .95rem;
  opacity: .9;
}
.manila .stamp { color: #b3141b; }
.typed { font-family: var(--font-type); }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.kicker { font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--amber); margin-bottom: .35rem; display: block; }
.pill { display: inline-block; font-size: .78rem; font-family: var(--font-mono); padding: .15rem .5rem; border-radius: 99px; background: var(--surface2); border: 1px solid var(--line); color: var(--muted); }
.grid-2 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; flex-wrap: wrap; }
.seg button { background: var(--surface); color: var(--muted); border: 0; padding: .5rem .8rem; cursor: pointer; font: inherit; font-size: .9rem; min-height: 40px; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--amber); color: #1a1205; font-weight: 600; }

.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%) translateY(30px);
  background: var(--ink); color: var(--bg); padding: .65rem 1rem; border-radius: 10px; opacity: 0;
  transition: all .25s ease; z-index: 90; pointer-events: none; font-weight: 600; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.site-foot { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: .9rem; }
.site-foot a { color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }

/* ---------- hero (index) ---------- */
.hero { position: relative; padding: 2.5rem 0 1.5rem; overflow: hidden; }
.hero-grid { display: grid; gap: 1.5rem; grid-template-columns: 1.15fr .85fr; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 .red { color: var(--red); }
.hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.note-card {
  background: #f7f2e2; color: #1d1a14; padding: 1.3rem 1.4rem; transform: rotate(-2deg);
  box-shadow: 0 18px 40px rgba(0,0,0,.4); font-family: var(--font-type); font-size: 1.25rem; line-height: 1.5;
  border-radius: 3px; position: relative; max-width: 380px; margin: 0 auto;
}
.note-card::before { content: ""; position: absolute; top: -12px; left: 45%; width: 70px; height: 24px; background: rgba(240,220,150,.75); transform: rotate(3deg); }
.note-card small { display: block; font-family: var(--font-body); font-size: .78rem; color: #6b604b; margin-top: .8rem; }
.clock-strip { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.2rem 0; }
.clock { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .9rem; min-width: 140px; }
.clock b { display: block; font-family: var(--font-mono); font-size: 1.35rem; color: var(--amber); font-variant-numeric: tabular-nums; }
.clock span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.rain { position: absolute; inset: 0; pointer-events: none; opacity: .35; z-index: -1;
  background-image: repeating-linear-gradient(105deg, transparent 0 18px, rgba(160,190,230,.18) 18px 19px);
  animation: rain 0.7s linear infinite; }
@keyframes rain { to { background-position: -40px 120px; } }

.mode-card { display: flex; flex-direction: column; gap: .4rem; text-decoration: none; color: var(--ink); transition: transform .15s ease, border-color .2s; }
.mode-card:hover { transform: translateY(-3px); border-color: var(--amber); }
.mode-card .ico { font-size: 1.8rem; }
.mode-card h3 { font-size: 1.35rem; text-transform: uppercase; margin: 0; }
.mode-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.mode-card .go { margin-top: auto; color: var(--amber); font-family: var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
.mode-card.core { border: 2px solid var(--red); background: linear-gradient(160deg, color-mix(in srgb, var(--red) 14%, var(--surface)), var(--surface)); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: .75rem; }
.stat { border-left: 3px solid var(--red); padding: .3rem .8rem; }
.stat b { font-family: var(--font-display); font-size: 1.9rem; display: block; color: var(--ink); }
.stat span { color: var(--muted); font-size: .9rem; }

/* ---------- search game ---------- */
.game-shell { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1rem; align-items: start; }
@media (max-width: 900px) { .game-shell { grid-template-columns: 1fr; } }
.map-wrap { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem; box-shadow: var(--shadow); }
.map-wrap canvas { display: block; width: 100%; height: auto; border-radius: 8px; touch-action: manipulation; cursor: crosshair; }
.map-legend { display: flex; flex-wrap: wrap; gap: .4rem .8rem; font-size: .78rem; color: var(--muted); padding: .5rem .3rem .2rem; }
.map-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; }
.hud { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: .75rem; }
.hud div { background: var(--surface2); border: 1px solid var(--line); border-radius: 10px; padding: .45rem .6rem; text-align: center; }
.hud b { display: block; font-family: var(--font-mono); font-size: 1.3rem; color: var(--amber); font-variant-numeric: tabular-nums; }
.hud span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; margin-bottom: .75rem; }
.tool { background: var(--surface2); border: 2px solid var(--line); color: var(--ink); border-radius: 10px; padding: .5rem .3rem; cursor: pointer; font: inherit; font-size: .82rem; line-height: 1.25; min-height: 64px; }
.tool b { display: block; font-size: 1.25rem; }
.tool[aria-pressed="true"] { border-color: var(--amber); background: color-mix(in srgb, var(--amber) 18%, var(--surface2)); }
.tool[disabled] { opacity: .4; cursor: not-allowed; }
.cell-info { font-size: .88rem; background: var(--surface2); border-radius: 10px; padding: .6rem .7rem; margin-bottom: .75rem; min-height: 4.2em; border: 1px solid var(--line); }
.cell-info b { color: var(--amber); }
.log { max-height: 240px; overflow: auto; font-size: .86rem; font-family: var(--font-mono); background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: .5rem .6rem; }
.log p { margin: 0 0 .35rem; }
.log .hit { color: var(--green); font-weight: 700; }
.log .flav { color: var(--muted); }
.lead-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem; }
.lead { text-align: left; background: var(--manila); color: var(--manila-ink); border: 2px solid transparent; border-radius: 8px; padding: .9rem; cursor: pointer; font: inherit; position: relative; box-shadow: var(--shadow); transition: transform .12s ease; }
.lead:hover { transform: translateY(-2px); }
.lead h4 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.1rem; margin: 0 0 .3rem; }
.lead p { font-size: .88rem; margin: 0 0 .4rem; }
.lead .cost { font-family: var(--font-mono); font-size: .8rem; color: #8e0f15; font-weight: 700; }
.lead[aria-pressed="true"] { border-color: #b3141b; }
.lead[aria-pressed="true"] h4 { padding-right: 5.6rem; }
.lead[aria-pressed="true"]::after { content: "PURSUED"; position: absolute; top: 10px; right: 10px; font-family: var(--font-type); color: #b3141b; border: 2px solid #b3141b; padding: 0 .35rem; transform: rotate(6deg); font-size: .8rem; }
.lead[disabled] { opacity: .5; cursor: not-allowed; }
.lead-result { font-family: var(--font-type); font-size: .9rem; border-top: 1px dashed rgba(0,0,0,.25); padding-top: .4rem; margin-top: .4rem; }
.overlay { position: fixed; inset: 0; background: rgba(5,8,12,.72); z-index: 60; display: none; align-items: center; justify-content: center; padding: 1rem; }
.overlay.open { display: flex; }
.modal { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; max-width: 620px; width: 100%; max-height: 92vh; overflow: auto; padding: 1.3rem; box-shadow: var(--shadow); }
.result-card { background: var(--manila); color: var(--manila-ink); border-radius: 8px; padding: 1.1rem; margin: .8rem 0; position: relative; }
.result-card .big { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; text-transform: uppercase; }
.result-card .stamp { float: right; margin: 0 0 .5rem .6rem; }
.result-card dl { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; margin: .8rem 0 0; font-size: .92rem; }
.result-card dt { font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; color: #6b604b; padding-top: .15rem; }
.result-card dd { margin: 0; font-weight: 600; }
.phase-tag { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.diff-pick { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 1rem 0; }
.diff-pick button { text-align: left; background: var(--surface2); border: 2px solid var(--line); border-radius: 12px; padding: .8rem; color: var(--ink); cursor: pointer; font: inherit; }
.diff-pick button[aria-pressed="true"] { border-color: var(--amber); }
.diff-pick b { font-family: var(--font-display); font-size: 1.1rem; text-transform: uppercase; display: block; }
.diff-pick span { font-size: .85rem; color: var(--muted); }

/* ---------- witness ---------- */
.stage { position: relative; background: #1b232e; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3.2; max-width: 520px; margin: 0 auto; border: 1px solid var(--line); }
.stage .face-holder { position: absolute; inset: 0; display: grid; place-items: center; }
.stage .face-holder svg { height: 94%; width: auto; margin-top: 6%; }
.preview svg { width: 100%; height: auto; display: block; }
.poster svg { display: block; }
.stage .timer-bar { position: absolute; left: 0; bottom: 0; height: 6px; background: var(--red); width: 100%; transform-origin: left; }
.stage .cabin { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.0) 50%, rgba(0,0,0,.45)), repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 40px, transparent 40px 80px); }
.stage .seatlabel { position: absolute; left: 12px; top: 10px; font-family: var(--font-mono); color: #cfd8e3; font-size: .85rem; background: rgba(0,0,0,.4); padding: .2rem .5rem; border-radius: 6px; }
.flicker { animation: flicker 2.2s infinite steps(1); }
@keyframes flicker { 0%,100% { opacity: 1; } 47% { opacity: .82; } 48% { opacity: 1; } 71% { opacity: .9; } }
.builder { display: grid; grid-template-columns: 260px 1fr; gap: 1rem; align-items: start; }
@media (max-width: 760px) { .builder { grid-template-columns: 1fr; } .builder .preview { max-width: 220px; margin: 0 auto; } }
.preview { background: #f4efe1; border-radius: 12px; padding: .5rem; position: sticky; top: 70px; }
@media (max-width: 760px) { .preview { position: static; } }
.feature-row { margin-bottom: .9rem; }
.feature-row h4 { font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 .35rem; }
.opts { display: flex; flex-wrap: wrap; gap: .4rem; }
.opt { width: 62px; height: 62px; padding: 2px; border-radius: 10px; border: 2px solid var(--line); background: #f4efe1; cursor: pointer; }
.opt svg { width: 100%; height: 100%; display: block; }
.opt[aria-pressed="true"] { border-color: var(--red); box-shadow: 0 0 0 2px var(--red); }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--line); cursor: pointer; }
.swatch[aria-pressed="true"] { border-color: var(--red); box-shadow: 0 0 0 2px var(--red); }
.poster { background: #efe6cf; color: #1e1a12; border: 6px double #1e1a12; padding: 1rem; text-align: center; max-width: 380px; margin: 0 auto; font-family: var(--font-display); }
.poster h3 { font-size: 2.6rem; letter-spacing: .1em; margin: 0; }
.poster .sub { font-family: var(--font-type); font-size: .95rem; }
.poster > svg { width: 100%; height: auto; box-shadow: var(--shadow); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; text-align: center; }
.compare figure { margin: 0; }
.compare svg { width: 100%; max-width: 200px; background: #f4efe1; border-radius: 10px; }
.compare figcaption { font-size: .85rem; color: var(--muted); }
.scorebar { height: 12px; background: var(--surface2); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.scorebar i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--amber)); width: 0; transition: width .8s ease; }
.field { display: grid; gap: .25rem; margin-bottom: .7rem; }
.field label { font-size: .85rem; color: var(--muted); }
.field input, .field select { font: inherit; padding: .55rem .7rem; border-radius: 8px; border: 1px solid var(--line); background: var(--surface2); color: var(--ink); min-height: 42px; }

/* ---------- cork board ---------- */
.cork { background: #8a6a43; background-image: radial-gradient(rgba(0,0,0,.18) 1px, transparent 1.4px), radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.5px); background-size: 7px 7px, 11px 11px; border-radius: 12px; padding: 1rem; border: 10px solid #5a3e22; box-shadow: inset 0 0 40px rgba(0,0,0,.35), var(--shadow); }
.qcard { background: #fbf7ea; color: #1e1a12; border-radius: 4px; padding: 1rem 1rem .8rem; box-shadow: 0 6px 14px rgba(0,0,0,.35); position: relative; max-width: 640px; margin: 0 auto; }
.qcard::before { content: ""; position: absolute; top: -8px; left: 50%; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff6b6b, #a8171d); box-shadow: 0 2px 3px rgba(0,0,0,.4); }
.qcard h3 { font-family: var(--font-display); font-size: 1.35rem; text-transform: uppercase; }
.qcard .ev { font-size: .9rem; color: #4d4535; background: #f0e8d0; border-left: 3px solid #b3141b; padding: .45rem .6rem; margin-bottom: .7rem; }
.answers { display: grid; gap: .45rem; }
.answers button { text-align: left; font: inherit; background: #fff; border: 2px solid #d4c9ab; color: #1e1a12; padding: .6rem .75rem; border-radius: 8px; cursor: pointer; min-height: 44px; }
.answers button:hover, .answers button:focus-visible { border-color: #b3141b; }
.progress-dots { display: flex; gap: 5px; justify-content: center; margin: .8rem 0 0; flex-wrap: wrap; }
.progress-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.35); }
.progress-dots i.on { background: #ffd56b; }
.rank-list { display: grid; gap: .5rem; }
.rank-row { display: grid; grid-template-columns: 2.2rem 1fr auto; gap: .6rem; align-items: center; background: var(--surface2); border-radius: 10px; padding: .5rem .7rem; border: 1px solid var(--line); }
.rank-row .n { font-family: var(--font-display); font-size: 1.3rem; color: var(--muted); }
.rank-row .bar { height: 8px; background: var(--bg2); border-radius: 99px; overflow: hidden; margin-top: .25rem; }
.rank-row .bar i { display: block; height: 100%; background: var(--amber); }
.rank-row b { font-family: var(--font-mono); }
.dossier { background: var(--manila); color: var(--manila-ink); border-radius: 6px; padding: 1rem; box-shadow: var(--shadow); }
.dossier h3 { font-size: 1.2rem; text-transform: uppercase; margin-bottom: .2rem; }
.dossier .meta { font-family: var(--font-mono); font-size: .78rem; color: #6b604b; margin-bottom: .5rem; }
.dossier ul { margin: .2rem 0 .6rem; padding-left: 1.1rem; font-size: .9rem; }
.dossier .lbl { font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.dossier .lbl.for { color: #1f6a43; }
.dossier .lbl.against { color: #9b1218; }
.winner { text-align: center; }
.winner .name { font-family: var(--font-display); font-size: clamp(1.8rem, 6vw, 2.8rem); text-transform: uppercase; color: var(--red); line-height: 1.05; }

/* ---------- case file ---------- */
.tl-controls { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.tl-range { width: 100%; accent-color: var(--red); }
.tl-now { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; align-items: start; }
@media (max-width: 600px) { .tl-now { grid-template-columns: 1fr; } }
.tl-time { font-family: var(--font-mono); font-size: 1.6rem; color: var(--amber); }
.tl-list { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.tl-list li { position: relative; padding: .4rem 0 .9rem 1.1rem; cursor: pointer; }
.tl-list li::before { content: ""; position: absolute; left: -7px; top: .75rem; width: 12px; height: 12px; border-radius: 50%; background: var(--surface2); border: 2px solid var(--line); }
.tl-list li.on::before { background: var(--red); border-color: var(--red); }
.tl-list li .t { font-family: var(--font-mono); font-size: .8rem; color: var(--amber); }
.tl-list li h4 { margin: .1rem 0 .15rem; font-family: var(--font-body); font-weight: 700; font-size: 1rem; }
.tl-list li p { margin: 0; color: var(--muted); font-size: .92rem; }
.alt-chart { width: 100%; height: auto; display: block; }
.quiz-card { max-width: 680px; margin: 0 auto; }
.quiz-statement { font-family: var(--font-type); font-size: clamp(1.1rem, 3.8vw, 1.45rem); line-height: 1.4; min-height: 4em; }
.quiz-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.quiz-explain { margin-top: .8rem; padding: .7rem .8rem; border-radius: 8px; background: rgba(0,0,0,.06); font-size: .95rem; }
.verdict-ok { color: #1f6a43; font-weight: 700; }
.verdict-bad { color: #9b1218; font-weight: 700; }

/* ---------- about ---------- */
.prose { max-width: 760px; }
.prose li { margin-bottom: .35rem; }
.src-list { font-size: .92rem; word-break: break-word; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rain { display: none; }
}
