/* FALSE LINE daily: shared tokens, the game screen, then the site pages. */
:root {
  /* One dark theme: a desk under a lamp. Documents are paper, containers are dark folders, emphasis is stamp-red. */
  --bg: #14110d;
  --card: #211c15;
  --ink: #eee3c6;
  --muted: #a3977f;
  --line: #3d3428;
  --soft: #2a241b;
  --accent: #d4b574;
  --accent-ink: #22190b;
  --bad: #e0503f;
  --bad-bg: #3a1813;
  --good: #8fbf6e;
  --good-bg: #1f2a17;
  --paper: #efe4c8;
  --paper-ink: #2a2116;
  --paper-line: #d3c4a0;
  --f-display: "Special Elite", "Courier New", monospace;
  --f-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --f-mono: "Courier Prime", "Courier New", ui-monospace, monospace;
  --f-hand: "Kalam", "Segoe Print", "Comic Sans MS", cursive;
  color-scheme: dark;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.5;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; }
.mono { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.status { font-size: 14px; color: var(--muted); }
.btn { border: 0; border-radius: 999px; padding: 11px 20px; font-weight: 700; font-size: 16px; background: var(--ink); color: var(--bg); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn.accent { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn.small { padding: 6px 13px; font-size: 14px; }
.btn.object { background: var(--bad); color: #fff; }

.strikes { letter-spacing: 3px; font-size: 16px; }
.strikes .x { color: var(--bad); }

.game { display: grid; grid-template-columns: 230px minmax(0, 1fr) 300px; gap: 22px; padding-block: 18px 40px; align-items: start; }
.left, .right { position: sticky; top: 12px; display: grid; gap: 14px; max-height: calc(100vh - 24px); overflow-y: auto; padding: 2px; }
.case-card { background: var(--card); border: 2px solid var(--ink); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; box-shadow: 4px 4px 0 var(--ink); }
.case-card h1 { font-family: var(--f-display); font-weight: 400; font-size: 20px; line-height: 1.05; }
.chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.chapter { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: center; font-size: 14px; }
.chapter .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-size: 13px; background: var(--soft); color: var(--muted); border: 2px solid var(--line); }
.chapter.now .n { background: var(--accent); color: var(--accent-ink); border-color: var(--ink); }
.chapter.done .n { background: var(--good); color: #fff; border-color: var(--good); }
.chapter.lost .n { background: var(--bad); color: #fff; border-color: var(--bad); }
.chapter.locked { color: var(--muted); }
.know { background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; }
.know p { font-size: 14px; border-left: 3px solid var(--accent); padding-left: 8px; }

/* Story feed */
.center { display: grid; gap: 14px; min-width: 0; }
.feed { display: grid; gap: 10px; padding-bottom: 8px; }
.beat { animation: in .35s ease-out backwards; scroll-margin-top: 16px; }
@keyframes in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.scene { font-family: var(--f-display); font-size: 24px; padding-top: 10px; border-top: 2px dashed var(--line); margin-top: 6px; }
.scene:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.narr { font-size: 17px; color: var(--muted); font-style: italic; max-width: 64ch; }
.say { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; align-items: start; }
.say .bubble { background: var(--card); border: 2px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 8px 12px; max-width: 62ch; }
.say .bubble b { font-size: 14px; display: block; color: var(--muted); }
.say.you .bubble { border-color: var(--ink); background: var(--soft); }
.face { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-size: 15px; color: #fff; }
.newev { display: flex; gap: 10px; align-items: center; background: var(--accent); color: var(--accent-ink); border-radius: 12px; padding: 8px 12px; font-weight: 700; justify-self: start; }
.newev button { background: rgba(0,0,0,.12); border: 0; border-radius: 999px; padding: 3px 10px; font-weight: 700; font-size: 13px; color: inherit; }
.testimony { background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: 14px 16px; display: grid; gap: 10px; box-shadow: 5px 5px 0 var(--ink); }
.testimony .th { display: flex; gap: 10px; align-items: center; }
.testimony .th h3 { font-family: var(--f-display); font-weight: 400; font-size: 19px; }
.tline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--soft); border: 2px solid transparent; }
.tline p { font-size: 16.5px; }
.tline.pressed { border-color: var(--line); }
.tline.broken { border-color: var(--bad); }
.tline.broken p { text-decoration: line-through; text-decoration-color: var(--bad); text-decoration-thickness: 2px; }
.objection { font-family: var(--f-display); font-size: clamp(30px, 5vw, 46px); color: var(--bad); transform: rotate(-3deg); justify-self: start; padding: 4px 14px; border: 4px solid var(--bad); border-radius: 10px; background: var(--card); animation: pop .35s ease-out; }
@keyframes pop { 0% { transform: rotate(-3deg) scale(.6); } 70% { transform: rotate(-3deg) scale(1.08); } 100% { transform: rotate(-3deg) scale(1); } }
.keybeat { background: var(--good-bg); border: 2px solid var(--good); border-radius: 12px; padding: 10px 14px; font-weight: 700; justify-self: start; }
.miss { background: var(--bad-bg); border: 2px solid var(--bad); border-radius: 12px; padding: 8px 12px; font-size: 15px; justify-self: start; }

/* Finished chapters collapse to one line */
.donech { background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.donech > summary { cursor: pointer; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; list-style: none; }
.donech > summary::-webkit-details-marker { display: none; }
.donech > summary .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: #fff; background: var(--good); }
.donech.lost > summary .n { background: var(--bad); }
.donech > summary .t { font-size: 14.5px; }
.donech > summary .t b { display: block; }
.donech > summary .more { font-size: 13px; color: var(--muted); white-space: nowrap; }
.donech[open] > summary .more::after { content: " ▴"; }
.donech:not([open]) > summary .more::after { content: " ▾"; }
.donech > .feed { padding-top: 12px; }

.actionbar { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 2px solid var(--line); display: grid; gap: 10px; z-index: 2; }
.actionbar .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.prompt { font-weight: 700; }
.tip { background: var(--card); border: 2px dashed var(--accent); border-radius: 12px; padding: 8px 12px; font-size: 14.5px; }

/* Case file */
.file-h { display: flex; justify-content: space-between; align-items: baseline; }
.file-h h2 { font-family: var(--f-display); font-weight: 400; font-size: 20px; }
.ev { background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 8px; }
.ev.fresh { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent); }
.ev .evh { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.ev .evh b { font-size: 14.5px; }
.ev .body { font-size: 14px; }
.view { background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 13px; color: var(--muted); }
/* Each chapter's scene: one picture with clickable details. It doubles as that episode's first frame in the reels. */
.scenepic { display: grid; gap: 6px; }
.scenepic .frame { border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; line-height: 0; background: #0f1420; box-shadow: 4px 4px 0 var(--ink); }
.scenepic svg { width: 100%; height: auto; display: block; }
.scenepic .cap { font-size: 14px; color: var(--muted); }
.spot { cursor: pointer; }
.spot .hit { fill: rgba(0,0,0,0); stroke: transparent; stroke-width: 3; }
.spot:hover .hit, .spot:focus .hit { stroke: #ffc928; }
.spot.found .hit { stroke: rgba(255,201,40,.55); stroke-dasharray: 6 4; }
.spot:focus { outline: none; }
.printout { background: var(--paper); color: var(--paper-ink); font-family: var(--f-mono); font-size: 12.5px; border-radius: 4px; padding: 10px 12px; overflow-x: auto; }
.printout h4 { margin: 0 0 6px; font-size: 11.5px; letter-spacing: .08em; }
.printout table { border-collapse: collapse; width: 100%; }
.printout td, .printout th { padding: 2px 8px 2px 0; white-space: nowrap; border-bottom: 1px dashed #cfc6b1; text-align: left; font-weight: 500; }
.handnote { background: var(--paper); color: var(--paper-ink); border-radius: 4px; padding: 10px 12px; transform: rotate(-1deg); font-family: var(--f-hand); font-size: 18px; line-height: 1.3; }
.handnote small { display: block; font-family: var(--f-mono); font-size: 11px; color: #8a3b1f; margin-top: 4px; }
.qcard { border-left: 3px solid var(--line); padding-left: 8px; font-size: 14px; }

.scrim { position: fixed; inset: 0; z-index: 20; background: rgba(10,14,22,.55); display: grid; place-items: center; padding: 20px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px)); }
.modal { width: 100%; max-width: 760px; background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: 22px; display: grid; gap: 14px; max-height: 88vh; overflow-y: auto; }
.modal h2 { font-family: var(--f-display); font-weight: 400; font-size: 24px; }
.modal .printout { font-size: 15px; }
.modal .handnote { font-size: 24px; }
.modal .qcard { font-size: 16px; }
.picks { display: grid; gap: 8px; }
.pick { display: grid; gap: 2px; text-align: left; background: var(--soft); border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.pick:hover { border-color: var(--ink); }
.pick span { font-size: 14px; color: var(--muted); }

.start { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; padding-block: 56px; align-items: center; }
.big { font-family: var(--f-display); font-size: clamp(44px, 7vw, 84px); line-height: .95; }
.lede { font-size: 20px; margin-top: 16px; max-width: 40ch; }
.how { background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: 22px; display: grid; gap: 12px; box-shadow: 6px 6px 0 var(--ink); }
.how ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.share { font-family: var(--f-mono); font-size: 16px; white-space: pre-wrap; background: var(--card); border: 2px dashed var(--line); border-radius: 10px; padding: 14px 16px; }
.endcard { background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: 18px; display: grid; gap: 12px; box-shadow: 5px 5px 0 var(--ink); }

@media (max-width: 1080px) {
  .game { grid-template-columns: minmax(0, 1fr) 280px; }
  .left { display: none; }
}
@media (max-width: 760px) {
  .game, .start { grid-template-columns: 1fr; }
  .right { position: static; max-height: none; }
}
@media (prefers-reduced-motion: reduce) { .beat, .objection { animation: none; } }
/* ---------- site chrome ---------- */
a { color: inherit; }
.top { display: flex; align-items: center; gap: 12px 18px; padding-block: 12px; border-bottom: 2px solid var(--ink); flex-wrap: wrap; }
.brand { font-family: var(--f-display); font-size: 22px; text-decoration: none; white-space: nowrap; }
.brand b { background: var(--accent); color: var(--accent-ink); padding: 0 .14em; font-weight: 400; }
.nav { display: flex; gap: 4px; }
.nav a { text-decoration: none; font-weight: 700; font-size: 15px; padding: 6px 12px; border-radius: 999px; color: var(--muted); }
.nav a:hover { color: var(--ink); background: var(--soft); }
.nav a.on { color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 2px var(--ink); }
.tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.icon { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); display: grid; place-items: center; font-weight: 700; padding: 0; }
.icon:hover { border-color: var(--ink); }
.icon svg { width: 18px; height: 18px; }
#account { display: flex; gap: 6px; align-items: center; }
.chip { display: flex; gap: 8px; align-items: center; border: 2px solid var(--line); background: var(--card); border-radius: 999px; padding: 3px 12px 3px 3px; font-weight: 700; font-size: 14px; }
.av { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--f-display); font-size: 13px; }
.meters { display: flex; gap: 16px; align-items: center; font-family: var(--f-mono); font-size: 14px; color: var(--muted); }
.linkbtn { background: none; border: 0; padding: 0; font-weight: 700; text-decoration: underline; color: var(--ink); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
a.btn { text-decoration: none; display: inline-block; }

/* forms and modals */
.authform { display: grid; gap: 12px; }
.authform label { display: grid; gap: 4px; font-weight: 700; font-size: 14px; }
.authform input { font: inherit; font-weight: 400; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; background: var(--soft); color: var(--ink); }
.authform input:focus { outline: none; border-color: var(--ink); }
.formerr { color: var(--bad); font-weight: 700; font-size: 14px; min-height: 1em; }
.modal.narrow { max-width: 440px; }
.statrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.statrow b { display: block; font-family: var(--f-display); font-size: 30px; font-weight: 400; }
.statrow span { font-size: 13px; color: var(--muted); }
.dist { display: grid; gap: 6px; }
.drow { display: grid; grid-template-columns: 120px 1fr; gap: 8px; align-items: center; font-size: 14px; }
.bar { height: 22px; }
.bar i { display: block; height: 100%; width: max(26px, var(--w)); background: var(--ink); color: var(--bg); font-style: normal; font-weight: 700; font-size: 13px; text-align: right; padding-right: 7px; border-radius: 4px; line-height: 22px; }
.helplist { margin: 0; padding-left: 22px; display: grid; gap: 6px; }

/* leaderboards */
.board { width: 100%; border-collapse: collapse; font-size: 15px; }
.board th { text-align: left; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 4px 8px; border-bottom: 2px solid var(--line); }
.board td { padding: 7px 8px; border-bottom: 1px solid var(--line); }
.board .rk { font-family: var(--f-display); width: 2.5em; }
.board .nm { font-weight: 700; max-width: 12em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .sq { letter-spacing: 1px; white-space: nowrap; }
.board .num { font-family: var(--f-mono); font-size: 14px; white-space: nowrap; }
.board tr.me td { background: color-mix(in srgb, var(--accent) 28%, transparent); }
.board tr.gap td { text-align: center; color: var(--muted); border: 0; padding: 0; }

/* home */
.home { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; padding-block: 28px 56px; align-items: start; }
.today { background: var(--card); border: 2px solid var(--ink); border-radius: 18px; box-shadow: 6px 6px 0 var(--ink); overflow: hidden; }
.today .cover { background: #0f1420; line-height: 0; border-bottom: 2px solid var(--ink); }
.today .cover svg { width: 100%; height: clamp(180px, 30vw, 280px); display: block; pointer-events: none; }
.today .body { padding: 20px 22px 22px; display: grid; gap: 12px; }
.today h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 5vw, 54px); line-height: .98; }
.today .blurb { font-size: 19px; max-width: 46ch; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); }
.tag.Easy { background: var(--good-bg); border-color: var(--good); }
.tag.Hard { background: var(--bad-bg); border-color: var(--bad); }
.done-line { font-size: 26px; letter-spacing: 2px; }
.side { display: grid; gap: 16px; }
.panel { background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; gap: 10px; }
.panel h2 { font-family: var(--f-display); font-weight: 400; font-size: 19px; }
.countdown { font-family: var(--f-mono); font-size: 28px; letter-spacing: .04em; }
.streakline { display: flex; gap: 10px; align-items: baseline; }
.streakline b { font-family: var(--f-display); font-size: 34px; font-weight: 400; }
.cases { display: grid; gap: 10px; }
.casecard { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; text-decoration: none; }
.casecard:hover { border-color: var(--ink); }
.casecard .no { font-family: var(--f-display); font-size: 22px; text-align: center; }
.casecard h3 { font-size: 17px; }
.casecard .res { font-size: 18px; letter-spacing: 1px; white-space: nowrap; }
.casecard.upcoming { opacity: .8; border-style: dashed; }
.casecard.upcoming:hover { border-color: var(--line); }
.casecard .hook { display: block; margin-top: 2px; font-style: italic; }
.pagehead { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; padding-top: 28px; }
.pagehead h1 { font-family: var(--f-display); font-weight: 400; font-size: 34px; }
.page { display: grid; gap: 16px; padding-bottom: 56px; max-width: 820px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { text-decoration: none; font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); }
.tabs a.on { border-color: var(--ink); background: var(--accent); color: var(--accent-ink); }

/* end screen */
.endgrid { align-items: start; }
.endside { display: grid; gap: 14px; }
.worked { display: grid; gap: 6px; margin-top: 22px; }

@media (max-width: 860px) {
  .home { grid-template-columns: 1fr; }
  .nav { order: 3; width: 100%; }
}
@media (max-width: 520px) {
  .statrow b { font-size: 24px; }
  .board { font-size: 14px; }
  .board td, .board th { padding: 6px 5px; }
  .board .opt { display: none; }
  .board .nm { max-width: 8.5em; }
  .casecard { grid-template-columns: 40px minmax(0, 1fr); }
  .casecard .res { grid-column: 2; }
  .brand { font-size: 19px; }
}

/* ================= Case-file skin =================
   Containers are dark folders, documents (testimony, evidence, printouts, results) are paper,
   verdicts are rubber stamps, scene pictures are evidence photos clipped into the file. */
body { background: radial-gradient(ellipse 90% 60% at 50% -10%, #2e2519 0%, rgba(46,37,25,0) 70%) fixed, var(--bg); }
.mono { font-family: var(--f-mono); font-weight: 700; letter-spacing: .1em; }
.status { color: var(--muted); }
h1, h2, h3, .big, .case-card h1, .today h1, .pagehead h1, .scene, .file-h h2, .modal h2, .panel h2, .testimony .th h3 { font-family: var(--f-display); font-weight: 400; letter-spacing: .01em; }

/* buttons: typed labels on square-cornered tabs */
.btn { border-radius: 3px; font-family: var(--f-mono); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; font-size: 14.5px; padding: 11px 18px; background: var(--ink); color: var(--bg); }
.btn.small { font-size: 12.5px; padding: 6px 11px; }
.btn.accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 2px 0 #8d7442; }
.btn.accent:hover { background: #dfc387; }
.btn.ghost { border: 1.5px solid #5a4d3b; color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.object { background: var(--bad); color: #fff; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* header: the brand is a stamp */
.top { border-bottom: 1px solid var(--line); }
.brand { font-family: var(--f-display); font-size: 24px; letter-spacing: .02em; }
.brand b { background: none; color: var(--bad); border: 2.5px solid var(--bad); padding: 0 .2em; margin-left: .15em; display: inline-block; transform: rotate(-4deg); font-weight: 400; border-radius: 3px; }
.nav a { border-radius: 0; font-family: var(--f-mono); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; padding: 6px 10px; border-bottom: 2px solid transparent; }
.nav a:hover { background: none; color: var(--ink); }
.nav a.on { background: none; box-shadow: none; color: var(--ink); border-bottom-color: var(--accent); }
.icon { border-radius: 4px; border: 1.5px solid var(--line); background: var(--card); font-family: var(--f-mono); }
.chip { border-radius: 4px; border: 1.5px solid var(--line); background: var(--card); font-family: var(--f-mono); }
.av { border-radius: 3px; background: var(--accent); font-family: var(--f-display); }
.linkbtn { color: var(--accent); font-family: inherit; }

/* folders */
.case-card, .how, .endcard, .today, .panel, .modal, .know, .donech, .casecard {
  background: var(--card); border: 1px solid #463b2c; border-radius: 4px; box-shadow: 0 14px 30px rgba(0,0,0,.4); }
.case-card { border-top: 3px solid var(--accent); }
.how, .endcard { padding: 22px; }
.casecard:hover { border-color: var(--accent); }
.today { position: relative; overflow: visible; border-top: 0; }
.today::before { content: "CASE FILE"; position: absolute; top: -26px; left: 18px; background: var(--card); border: 1px solid #463b2c; border-bottom: 0; border-radius: 6px 6px 0 0; padding: 4px 16px; font-family: var(--f-mono); font-weight: 700; font-size: 12px; letter-spacing: .14em; color: var(--accent); }
.home { padding-top: 48px; }
.know p { border-left-color: var(--accent); }

/* chapter list: numbered tabs */
.chapter .n { border-radius: 3px; font-family: var(--f-mono); font-weight: 700; background: var(--soft); border: 1.5px solid var(--line); }
.chapter.now .n { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chapter.done .n { background: none; color: var(--good); border-color: var(--good); }
.chapter.lost .n { background: none; color: var(--bad); border-color: var(--bad); }
.donech > summary .n { border-radius: 3px; background: none; border: 1.5px solid var(--good); color: var(--good); }
.donech.lost > summary .n { border-color: var(--bad); color: var(--bad); background: none; }

/* story: transcript style */
.scene { font-size: 26px; border-top: 1px dashed var(--line); }
.scene::before { content: "LOCATION — "; font-family: var(--f-mono); font-weight: 700; font-size: 13px; letter-spacing: .12em; color: var(--muted); vertical-align: middle; }
.say .bubble { background: var(--card); border: 1px solid var(--line); border-radius: 2px 10px 10px 10px; }
.say .bubble b { font-family: var(--f-mono); font-weight: 700; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; }
.say.you .bubble { background: #2c2519; border-color: #5a4d3b; }
.face { border-radius: 4px; font-family: var(--f-display); font-size: 17px; box-shadow: 0 0 0 2px var(--paper); }
.newev { border-radius: 3px; font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .06em; font-size: 14px; box-shadow: 0 2px 0 #8d7442; }
.newev button { border-radius: 3px; font-family: var(--f-mono); }

/* testimony: a typed statement on paper, with a red margin rule */
.testimony { background: var(--paper) linear-gradient(90deg, transparent 38px, #d9a59a 38px, #d9a59a 40px, transparent 40px); color: var(--paper-ink); border: 0; border-radius: 2px; box-shadow: 0 16px 34px rgba(0,0,0,.5); padding: 16px 18px 16px 54px; }
.testimony .th h3 { font-size: 22px; }
.tline { background: transparent; border: 0; border-bottom: 1px dashed var(--paper-line); border-radius: 0; padding: 9px 2px; }
.tline p { font-family: var(--f-mono); font-size: 17px; }
.tline.pressed { border-color: var(--paper-line); }
.tline.broken p { text-decoration-color: var(--bad); text-decoration-thickness: 3px; }
.testimony .btn.ghost { color: var(--paper-ink); border-color: #9c8d6c; }
.testimony .btn.ghost:hover { border-color: var(--paper-ink); }
.testimony .face { box-shadow: none; }

/* verdicts are stamps */
.objection { font-family: var(--f-mono); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: transparent; border: 5px double var(--bad); border-radius: 4px; padding: 2px 18px; }
.keybeat { background: transparent; border: 2px solid var(--good); color: var(--good); border-radius: 3px; font-family: var(--f-mono); }
.miss { background: transparent; border: 2px solid var(--bad); color: #f2b1a8; border-radius: 3px; }
.tip { border: 1px dashed var(--accent); border-radius: 3px; background: transparent; }
.actionbar { background: rgba(20,17,13,.96); border-top: 1px solid var(--line); }

/* the case file column: evidence as index cards */
.ev { background: var(--paper); color: var(--paper-ink); border: 0; border-top: 4px solid #b6533f; border-radius: 2px; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.ev .evh b { font-family: var(--f-mono); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 13.5px; }
.ev .body { color: #5d5140; }
.ev.fresh { border-color: var(--bad); box-shadow: 0 0 0 3px var(--accent), 0 6px 16px rgba(0,0,0,.35); }
.view { border-radius: 3px; border: 1px solid #9c8d6c; color: var(--paper-ink); font-family: var(--f-mono); }
.pick { background: var(--paper); color: var(--paper-ink); border: 2px solid transparent; border-radius: 2px; }
.pick b { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .04em; }
.pick span { color: #5d5140; }
.pick:hover { border-color: var(--bad); }
.qcard { font-family: var(--f-mono); border-left-color: var(--bad); }
.printout, .handnote { box-shadow: 0 8px 20px rgba(0,0,0,.35); }

/* scene pictures: the drawings carry their own lighting, grain and vignette (noir kit in site.js); the frame stays quiet */
.scenepic .frame, .today .cover { background: #000; border: 1px solid #3d3326; border-radius: 3px; padding: 0; box-shadow: 0 18px 40px rgba(0,0,0,.6); line-height: 0; overflow: hidden; }
.today .cover { border: 0; border-bottom: 1px solid #3d3326; border-radius: 4px 4px 0 0; box-shadow: none; }
.scenepic .cap { font-family: var(--f-mono); font-size: 13px; letter-spacing: .03em; }
.spot .hit { stroke-width: 3.5; }
.spot:hover .hit, .spot:focus .hit { stroke: #e0503f; stroke-dasharray: none; }
.spot.found .hit { stroke: rgba(224,80,63,.75); stroke-dasharray: 7 5; }

/* start and end screens */
.big { line-height: 1; }
.lede { font-size: 19px; }
.share { background: var(--paper); color: var(--paper-ink); border: 0; border-radius: 2px; font-family: var(--f-mono); }

/* home and site pages */
.tag { border-radius: 2px; background: transparent; border: 1.5px solid #5a4d3b; font-family: var(--f-mono); font-weight: 700; }
.tag.Easy { background: transparent; border-color: var(--good); color: var(--good); }
.tag.Hard { background: transparent; border-color: var(--bad); color: var(--bad); transform: rotate(-2deg); }
.casecard .no, .streakline b, .statrow b, .board .rk { font-family: var(--f-display); }
.countdown { font-family: var(--f-mono); font-weight: 700; color: var(--accent); }
.tabs a { border-radius: 3px; border: 1.5px solid var(--line); background: var(--card); font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .06em; font-size: 12.5px; }
.tabs a.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.board th { font-family: var(--f-mono); font-weight: 700; border-bottom: 1px solid #5a4d3b; }
.board td { border-bottom: 1px dashed var(--line); }
.board .num { font-family: var(--f-mono); }
.board tr.me td { background: rgba(212,181,116,.16); }
.bar i { background: var(--accent); color: var(--accent-ink); border-radius: 2px; font-family: var(--f-mono); }
.authform input { border-radius: 3px; border: 1.5px solid var(--line); background: var(--soft); font-family: var(--f-mono); }
.authform input:focus { border-color: var(--accent); }
.scrim { background: rgba(5,4,2,.7); }
@media (max-width: 520px) {
  .testimony { background: var(--paper) linear-gradient(90deg, transparent 18px, #d9a59a 18px, #d9a59a 20px, transparent 20px); padding: 14px 12px 14px 30px; }
  .tline p { font-size: 15.5px; }
  .scene::before { display: block; }
}

/* ---------- the statement card holds everything for a confrontation ---------- */
.tline .replies { grid-column: 1 / -1; display: grid; gap: 4px; padding: 2px 0 2px 10px; border-left: 2px solid var(--paper-line); }
.tline .reply, .lastresp .reply { font-family: var(--f-body); font-size: 15px; font-style: normal; color: #4a3f2e; }
.reply b { font-style: normal; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-right: 4px; color: var(--paper-ink); }
.lastresp { border-top: 1.5px dashed #b6533f; padding-top: 8px; display: grid; gap: 4px; }
.lastresp .strike { font-family: var(--f-mono); font-weight: 700; font-size: 13px; color: #a3271e; text-transform: uppercase; letter-spacing: .06em; }
.hintline { font-size: 15px; background: rgba(212,181,116,.25); padding: 6px 8px; border-radius: 2px; }
.testimony .tip { color: var(--paper-ink); border-color: #9c8d6c; font-size: 14.5px; }
.testimony .tip .linkbtn { color: #a3271e; }
.testimony .linkbtn { color: #a3271e; }
.confrontbar .prompt { flex: 1 1 auto; min-width: 0; }
.phone-only { display: none !important; }

@media (max-width: 760px) {
  .phone-only { display: inline-block !important; }
  .desk-only { display: none; }
  .right { display: none; }
  .playing .nav { display: none; }
  .actionbar { padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  .actionbar .row { gap: 8px; }
  .confrontbar .prompt { font-size: 14.5px; flex-basis: 100%; }
  .actionbar .status { font-size: 13px; }
}
@media (max-width: 520px) {
  #account .btn.ghost { display: none; } /* on phones the header keeps Sign up; Log in is one tap away inside it */
}
/* scrolled-to parts of the statement clear the sticky bottom bar */
.testimony, .testimony .replies, .testimony .lastresp { scroll-margin-bottom: 120px; scroll-margin-top: 16px; }

/* ---------- cold open: the case's hook frame ---------- */
.coldopen { max-width: 760px; margin: 0 auto; padding: 22px 0 48px; display: grid; gap: 22px; }
.hookframe { position: relative; border: 1px solid #3d3326; border-radius: 4px; overflow: hidden; line-height: 0; box-shadow: 0 20px 44px rgba(0,0,0,.6); }
.hookframe svg { width: 100%; height: clamp(240px, 52vw, 400px); display: block; }
.hooktext { position: absolute; inset: auto 0 0 0; padding: 60px 20px 18px; line-height: 1.1; background: linear-gradient(transparent, rgba(8,6,4,.92) 55%); }
.hooktext h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(28px, 5.4vw, 46px); line-height: 1.05; color: #fff6e0; text-wrap: balance; margin-top: 8px; }
.hooktext .mono { color: var(--accent); }
.lineup { display: grid; gap: 10px; }
.lineup > .mono { color: var(--bad); }
.faces { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.suspect { background: var(--paper); color: var(--paper-ink); padding: 10px 10px 12px; display: grid; gap: 2px; justify-items: center; text-align: center; border-radius: 2px; box-shadow: 0 8px 18px rgba(0,0,0,.4); }
.suspect:nth-child(odd) { transform: rotate(-1.2deg); } .suspect:nth-child(even) { transform: rotate(1deg); }
.suspect .face { width: 54px; height: 54px; font-size: 24px; box-shadow: none; margin-bottom: 4px; }
.suspect b { font-family: var(--f-display); font-weight: 400; font-size: 19px; }
.suspect .role { font-size: 13px; color: #5d5140; }
.job { display: grid; gap: 12px; justify-items: start; }
.jobline { font-size: 19px; max-width: 46ch; }
.big-btn { font-size: 17px; padding: 15px 28px; }
.howto summary { cursor: pointer; font-family: var(--f-mono); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: var(--muted); }
.howto ol { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
@media (max-width: 520px) {
  .coldopen { padding-top: 12px; gap: 18px; }
  .faces { grid-template-columns: repeat(2, 1fr); }
  .jobline { font-size: 17px; }
  .big-btn { width: 100%; text-align: center; }
}
@media (max-width: 520px) {
  .faces { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .suspect { padding: 8px 4px 9px; }
  .suspect .face { width: 40px; height: 40px; font-size: 18px; }
  .suspect b { font-size: 15px; }
  .suspect .role { display: none; }
  .hookframe svg { height: 230px; }
}
@media (max-width: 760px) { .actionbar .prompt { font-size: 14.5px; line-height: 1.35; } }

/* ---------- names always travel with their job ---------- */
.jobtag { font-weight: 400; color: var(--muted); letter-spacing: .06em; }
.reply .jobtag { color: #7a6d55; }
.testimony .th .who { display: block; font-family: var(--f-mono); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #6d604a; }
.testimony .th .who .jobtag { color: #6d604a; }
.whoswho { background: var(--card); border: 1px solid #463b2c; border-radius: 4px; padding: 10px 12px; display: grid; gap: 8px; }
.wrow { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; align-items: center; font-size: 14px; line-height: 1.25; }
.wrow .face { width: 30px; height: 30px; font-size: 13px; box-shadow: none; }
.wrow b { display: block; }
.wrow .status { font-size: 12.5px; }
.modal .whoswho { background: var(--soft); }
@media (max-width: 520px) { .suspect .role { display: block; font-size: 11.5px; } }

/* ---------- evidence you can read where it is ---------- */
.evbody { display: grid; gap: 8px; }
.evbody .body { font-size: 15px; }
.found { justify-self: stretch; max-width: 560px; background: var(--card); border: 1px solid #463b2c; border-left: 4px solid var(--accent); border-radius: 3px; padding: 10px 12px; display: grid; gap: 8px; }
.foundh { font-family: var(--f-mono); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 14px; }
.foundh span { color: var(--accent); font-size: 11.5px; letter-spacing: .1em; display: block; }
.found .evbody > .body { color: var(--ink); }
.found .handnote { font-size: 19px; }
details.ev > summary { list-style: none; cursor: pointer; display: grid; gap: 4px; }
details.ev > summary::-webkit-details-marker { display: none; }
details.ev .more::after { content: "Read ▾"; font-family: var(--f-mono); font-size: 12px; color: #7a6d55; white-space: nowrap; }
details.ev[open] .more::after { content: "Fold ▴"; }
details.ev[open] > .evbody { margin-top: 8px; }
details.ev .evbody .body { color: var(--paper-ink); }
details.ev .printout, details.ev .handnote { box-shadow: none; border: 1px dashed var(--paper-line); }
.pick { display: grid; gap: 8px; }
.pickh { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pick .evbody .body { color: var(--paper-ink); }
.pick .printout, .pick .handnote { box-shadow: none; border: 1px dashed var(--paper-line); }
.modal .pick .printout { font-size: 13px; }
.modal .pick .handnote { font-size: 19px; }
.pickh .btn { white-space: nowrap; flex: none; }

/* ---------- end screen: verdict first ---------- */
.endscreen { max-width: 760px; margin: 0 auto; padding: 22px 0 56px; display: grid; gap: 18px; }
.closedhead { display: grid; gap: 6px; justify-items: start; }
.closedstamp { font-family: var(--f-mono); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: clamp(28px, 7vw, 44px); color: var(--bad); border: 5px double var(--bad); padding: 2px 16px; transform: rotate(-3deg); animation: pop .4s ease-out; }
.verdict .suspect { position: relative; }
.verdict .suspect.cleared { opacity: .45; filter: grayscale(.6); }
.verdict .suspect.guilty { box-shadow: 0 0 0 3px var(--bad), 0 10px 22px rgba(0,0,0,.5); }
.guiltystamp { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%) rotate(-12deg); font-style: normal; font-family: var(--f-mono); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 15px; color: var(--bad); border: 3px solid var(--bad); padding: 1px 8px; background: rgba(239,228,200,.85); animation: stampin .5s ease-out .3s backwards; }
.result .bigsquares { font-size: clamp(30px, 8vw, 42px); letter-spacing: 4px; line-height: 1.1; }
.result .share { font-size: 13.5px; }
.teasehook { font-family: var(--f-display); font-weight: 400; font-size: 22px; line-height: 1.15; }
.ending { display: grid; gap: 10px; }
.ending .lede { font-size: 17px; max-width: none; margin: 0; }
@media (prefers-reduced-motion: reduce) { .closedstamp, .guiltystamp { animation: none; } }
.starter { display: grid; gap: 4px; text-decoration: none; background: var(--card); border: 1.5px dashed var(--good); border-radius: 4px; padding: 12px 14px; }
.starter .mono { color: var(--good); }
.starter b { font-family: var(--f-display); font-weight: 400; font-size: 20px; }
.starter:hover { border-style: solid; }
.starter + .today { margin-top: 22px; }
@keyframes stampin { 0% { transform: translate(-50%, -50%) rotate(-12deg) scale(1.8); opacity: 0; } 100% { transform: translate(-50%, -50%) rotate(-12deg) scale(1); opacity: 1; } }
.casecard .tag.res { font-size: 12px; letter-spacing: .06em; justify-self: start; }

/* ---------- weekly mode ---------- */
.weekly { max-width: 760px; margin: 0 auto; padding: 18px 0 120px; display: grid; gap: 16px; }
.weekbar { display: grid; gap: 10px; }
.weekhook { font-family: var(--f-display); font-size: 18px; line-height: 1.2; }
.daypills { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.daypill { text-decoration: none; display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border: 1.5px solid var(--line); border-radius: 3px; background: var(--card); font-family: var(--f-mono); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.daypill i { font-style: normal; font-size: 16px; }
.daypill.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.daypill.locked { opacity: .45; pointer-events: none; }
.dayhead h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 6vw, 44px); line-height: 1.05; }
.sofar { background: var(--card); border: 1px solid #463b2c; border-radius: 4px; padding: 8px 12px; }
.sofar summary { cursor: pointer; font-family: var(--f-mono); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; color: var(--accent); }
.sofar p { margin-top: 6px; }
.cluestrip { display: grid; gap: 6px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1.5px solid #5a4d3b; background: var(--paper); color: var(--paper-ink); border-radius: 2px; padding: 5px 10px; font-family: var(--f-mono); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.chip.present { border-color: var(--bad); box-shadow: 0 0 0 2px rgba(224,80,63,.35); animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(-2px); } }
.tline .tbtns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tline.selected { background: rgba(224,80,63,.12); outline: 2px solid var(--bad); outline-offset: 2px; }
.scenepic.presenting .frame { box-shadow: 0 0 0 3px var(--bad), 0 18px 40px rgba(0,0,0,.6); }
.scenepic.presenting .spot .hit { stroke: rgba(224,80,63,.55); stroke-dasharray: 4 4; }
.presentbar { position: sticky; bottom: 0; z-index: 3; display: flex; gap: 10px; align-items: center; justify-content: space-between; background: #2a1a14; border: 1.5px solid var(--bad); border-radius: 3px; padding: 10px 12px; font-size: 14.5px; box-shadow: 0 -10px 24px rgba(0,0,0,.5); }
.suspect.pickable { font: inherit; border: 0; cursor: pointer; }
.suspect.pickable:hover { box-shadow: 0 0 0 3px var(--accent), 0 8px 18px rgba(0,0,0,.4); }
.suspect.pickable.on { box-shadow: 0 0 0 3px var(--accent), 0 8px 18px rgba(0,0,0,.4); transform: translateY(-2px); }
.accusebox .big-btn { margin-top: 12px; }
.accusebox .chip.on { background: var(--accent); color: #1b1916; border-color: var(--accent); }
.accusebox .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.accusebox .faces { margin: 6px 0; }
@media (max-width: 520px) {
  .tline { grid-template-columns: 1fr; }
  .tline .tbtns { justify-content: flex-start; }
  .daypill { font-size: 11px; }
}

/* ---------- case board (Murdle-style) ---------- */
.caseboard { max-width: 820px; margin: 0 auto; padding: 18px 0 120px; display: grid; gap: 18px; }
.question { background: var(--paper); color: var(--paper-ink); border-left: 5px solid var(--bad); padding: 10px 14px; border-radius: 2px; }
.question p { font-family: var(--f-display); font-size: 19px; line-height: 1.25; margin-top: 4px; }
.boardsec { display: grid; gap: 10px; }
.sech { font-family: var(--f-display); font-weight: 400; font-size: 22px; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.speaker { background: var(--card); border: 1px solid #463b2c; border-radius: 4px; padding: 10px 12px; display: grid; gap: 8px; }
.speaker .th { display: flex; gap: 10px; align-items: center; }
.speaker .face { width: 30px; height: 30px; font-size: 13px; }
.stmt { background: var(--paper); color: var(--paper-ink); border-radius: 2px; padding: 9px 11px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; }
.stmt p { font-family: var(--f-mono); font-size: 15.5px; }
.stmt .reply { grid-column: 1 / -1; font-family: var(--f-body); font-size: 14.5px; color: #6d2a1f; }
.stmt.pending { outline: 2px solid var(--bad); outline-offset: 2px; }
.stmt.settled { grid-template-columns: minmax(0, 1fr) auto; opacity: .92; }
.stmt.settled .status { grid-column: 1 / -1; color: #6d604a; font-size: 13px; }
.stmt .verdict { font-family: var(--f-mono); font-weight: 700; letter-spacing: .08em; padding: 1px 8px; border: 2.5px solid; transform: rotate(-4deg); }
.stmt.true .verdict { color: #2f7a3a; border-color: #2f7a3a; }
.stmt.lie .verdict { color: #a3271e; border-color: #a3271e; }
.stmt.lie p { text-decoration: line-through; text-decoration-color: #a3271e; }
.grid { border-collapse: collapse; width: 100%; table-layout: fixed; background: var(--card); }
.grid th, .grid td { border: 1px solid var(--line); padding: 0; text-align: center; }
.grid thead th { font-family: var(--f-mono); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 6px 3px; color: var(--muted); vertical-align: bottom; line-height: 1.2; }
.grid thead th:first-child { text-align: left; color: var(--accent); width: 30%; }
.grid tbody th { text-align: left; padding: 4px 8px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.grid tbody th .face { width: 22px; height: 22px; font-size: 11px; display: inline-grid; vertical-align: middle; margin-right: 4px; box-shadow: none; }
.cell { width: 100%; height: 40px; border: 0; background: transparent; font-size: 20px; font-weight: 700; color: var(--ink); }
.cell:hover { background: var(--soft); }
.cell.x { color: #b8564a; }
.cell.v { color: #8fd18a; background: rgba(143,191,110,.12); }
.cell.fact-v, .cell.fact-x { box-shadow: inset 0 0 0 2px rgba(212,181,116,.55); cursor: default; }
.cell.implied-x { opacity: .55; }
.accrow { display: flex; gap: 6px; flex-wrap: wrap; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
@media (max-width: 520px) {
  .stmt { grid-template-columns: 1fr; }
  .grid thead th { font-size: 10px; }
  .grid tbody th { font-size: 13px; padding: 4px; }
  .grid tbody th .face { display: none; }
  .cell { height: 36px; }
}
.stmt .btn.ghost { color: var(--paper-ink); border-color: #9c8d6c; }
/* case board, one flow */
.progress { display: grid; gap: 4px; }
.progress .bar { height: 6px; background: var(--soft); border-radius: 3px; overflow: hidden; }
.progress .bar i { display: block; height: 100%; background: var(--accent); transition: width .4s; }
.stepcard { background: var(--paper); color: var(--paper-ink); border-radius: 2px; padding: 14px 16px; display: grid; gap: 8px; box-shadow: 0 14px 30px rgba(0,0,0,.45); scroll-margin-top: 12px; }
.stepcard .mono { color: #7a6d55; }
.stepcard .th { display: flex; gap: 10px; align-items: center; }
.stepcard .face { width: 34px; height: 34px; box-shadow: none; }
.stepcard .jobtag { color: #7a6d55; }
.stmttext { font-family: var(--f-mono); font-size: 18px; line-height: 1.4; }
.stepcard .reply { color: #6d2a1f; font-size: 15px; }
.stepcard .reply b { color: var(--paper-ink); }
.stepcard .strike { font-family: var(--f-mono); font-weight: 700; font-size: 12.5px; color: #a3271e; text-transform: uppercase; letter-spacing: .06em; }
.stepcard .status { color: #5d5140; }
.stepcard .btn.ghost { color: var(--paper-ink); border-color: #9c8d6c; justify-self: start; }
.stepcard .teasehook { color: var(--paper-ink); }
.stampline { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.stampline .verdict { font-family: var(--f-mono); font-weight: 700; letter-spacing: .08em; padding: 1px 10px; border: 3px solid; transform: rotate(-4deg); font-size: 18px; animation: pop .4s ease-out; }
.settledcard.true .verdict { color: #2f7a3a; border-color: #2f7a3a; }
.settledcard.lie .verdict { color: #a3271e; border-color: #a3271e; }
.settledcard.lie .stmttext { text-decoration: line-through; text-decoration-color: #a3271e; }
.settledcard .btn.accent { justify-self: start; }
.chips { align-items: center; }
.chip.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.verdictbtns { margin-top: 4px; }
.found .verdictbtns .btn.ghost { color: var(--ink); }
#evcard { scroll-margin-bottom: 20px; }
.nospot { pointer-events: none; }
.nospot .hit { display: none; }
.evbody .printout svg { max-height: 130px; width: auto !important; }

/* Character portraits (cases that draw them): the picture fills the frame. Bigger in conversation so faces stick. */
.face.av { overflow: hidden; padding: 0; background: #0d0b09 !important; }
.face.av svg { width: 100%; height: 100%; display: block; }
.say .face.av { width: 46px; height: 46px; flex: none; }
.testimony .th .face.av { width: 52px; height: 52px; }
.suspect .face.av { width: 72px; height: 72px; }
@media (max-width: 520px) { .suspect .face.av { width: 56px; height: 56px; } }

/* The account perk and the first-visit explainer */
.perk { margin-top: 16px; padding: 14px 16px; border: 2px dashed var(--accent); border-radius: 14px; display: grid; gap: 10px; justify-items: start; }
.perk p { color: var(--ink); font-size: 15px; }
.perkline { margin-top: 10px; }
.howto { margin: 12px 0 16px; padding: 12px 14px; background: var(--soft); border-radius: 12px; }
.howto .pitch { font-size: 15.5px; }
.howto .pitch b { color: var(--bad); }
.howto ol { margin: 8px 0 0; padding-left: 20px; font-size: 14.5px; color: var(--muted); }

/* Sound: the first-visit question, the header toggle, and ▶ on lines that have a voice */
.soundask { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 10px auto 0; max-width: 1240px; padding: 10px 14px; background: var(--card); border: 2px solid var(--accent); border-radius: 14px; font-size: 15px; }
.soundask .row { display: flex; gap: 8px; }
.sayit { border: 0; background: var(--accent); color: var(--accent-ink); width: 24px; height: 24px; border-radius: 50%; font-size: 10px; line-height: 24px; padding: 0 0 0 2px; margin-right: 7px; vertical-align: 2px; flex: none; }
.tline .sayit { background: var(--paper-ink); color: var(--paper); }
.listen { margin-top: 8px; }

/* The owner's stats page (#/stats) */
.stats .stack { display: grid; gap: 16px; }
.stats .panel p { margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.kpis > div { background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; }
.kpis b { font-family: var(--f-display); font-size: 32px; font-weight: 400; color: var(--accent); }
.funnel { display: grid; gap: 8px; }
.funnel > div { display: grid; grid-template-columns: 9.5em 1fr 3em 3em; align-items: center; gap: 10px; font-size: 15px; }
.funnel i { display: block; height: 14px; background: var(--accent); border-radius: 3px; min-width: 2px; }
.funnel b { font-family: var(--f-mono); text-align: right; }
.days { display: flex; align-items: flex-end; gap: 3px; height: 120px; }
.days > div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.days i { display: block; width: 100%; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 1px; }
.days span { font-family: var(--f-mono); font-size: 10px; color: var(--muted); }
@media (max-width: 620px) { .kpis { grid-template-columns: repeat(2, 1fr); } .funnel > div { grid-template-columns: 7.5em 1fr 2.4em 2.6em; font-size: 13px; } }
