/* HUMANS INSIDE v3 — an investigator's desk at night: every section is a document lying on it.
   Paper, rubber-stamp ink, black redaction bars, polaroids, a corkboard with red string. One deliberate look. */
:root {
  --desk: #1b1a18; --desk2: #242220; --paper: #ece6d8; --paper2: #f6f2e8; --manila: #d4ae6a; --manila2: #b88f4c;
  --ink: #17161a; --muted: #5b564c; --light: #e9e4d8; --faint: #a9a296;
  --red: #b3202a; --green: #1d6b45; --redact: #121214; --mark: #f1df4f; --tape: rgba(236, 228, 190, .78); --cork: #a87a4c;
  --head: "Anton", "Impact", "Arial Narrow", sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --type: "Special Elite", "Courier New", Courier, monospace;
  --grain: url("/img/grain.png");
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; color: var(--light); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background: radial-gradient(ellipse at 30% 0%, #2c2925 0%, transparent 60%), radial-gradient(ellipse at 90% 40%, #262320 0%, transparent 55%), var(--desk); }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; background-image: var(--grain); opacity: .5; z-index: 0; }
main, .top, .foot { position: relative; z-index: 1; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 400; }
p { margin: 0; }
.mono { font-family: var(--type); }
.num { font-family: var(--type); font-variant-numeric: tabular-nums; }
.in { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.band { padding-block: 84px; }
h2 { font: 400 clamp(34px, 5vw, 58px)/1.02 var(--head); text-transform: uppercase; letter-spacing: .01em; color: var(--paper2); }
.kicker { font: 400 13px/1 var(--type); letter-spacing: .14em; text-transform: uppercase; color: var(--manila); margin-bottom: 12px; }
.sub { color: var(--faint); font-size: 17px; max-width: 64ch; margin-top: 12px; }
.fine { color: var(--muted); font-size: 13.5px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
mark { background: linear-gradient(transparent 12%, var(--mark) 12%, var(--mark) 88%, transparent 88%); color: var(--ink); padding: 0 .08em; }

/* header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--desk); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(27, 26, 24, .92); backdrop-filter: blur(6px); border-bottom: 1px solid #3a3631; }
.top-in { max-width: 1160px; margin: 0 auto; padding-block: 12px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 20px/1 var(--head); letter-spacing: .06em; color: var(--paper2); }
.brand-seal { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--green); color: #4fbf86; font: 400 13px/1 var(--head); transform: rotate(-10deg); box-shadow: inset 0 0 0 3px var(--desk), inset 0 0 0 4px #4fbf86; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { text-decoration: none; font: 400 13.5px/1 var(--type); letter-spacing: .04em; padding: 9px 10px; border-radius: 4px; color: var(--faint); }
.nav a:hover { color: var(--paper2); background: #2d2a26; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 400 18px/1 var(--head); letter-spacing: .08em; text-transform: uppercase; padding: 16px 22px; border-radius: 3px; border: 0; background: var(--paper2); color: var(--ink); text-decoration: none; cursor: pointer; box-shadow: 0 2px 0 #8f8878, 0 12px 26px -10px rgba(0, 0, 0, .7); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 0 #8f8878, 0 18px 30px -12px rgba(0, 0, 0, .8); }
.btn.ghost { background: transparent; color: var(--paper2); box-shadow: inset 0 0 0 2px #5a554b; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--mark); outline-offset: 3px; }

/* paper + folder */
.sheet { position: relative; background: var(--paper); background-image: var(--grain); color: var(--ink); border-radius: 2px; box-shadow: 0 1px 0 #fff8 inset, 0 24px 40px -18px rgba(0, 0, 0, .8), 0 2px 6px rgba(0, 0, 0, .35); }
.sheet-head { display: flex; justify-content: space-between; gap: 10px; padding: 12px 18px; border-bottom: 1px solid #c9c1ae; font: 400 12px/1 var(--type); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.folder { position: absolute; inset: 14px -10px -12px 12px; background: var(--manila); background-image: var(--grain); border-radius: 3px; transform: rotate(2.5deg); box-shadow: 0 20px 34px -16px rgba(0, 0, 0, .8); }
.folder .tab { position: absolute; top: -22px; left: 26px; padding: 6px 16px 10px; background: var(--manila); border-radius: 6px 6px 0 0; font: 400 12px/1 var(--type); letter-spacing: .14em; color: #5d4720; }
.tape { position: absolute; top: -12px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%) rotate(-4deg); background: var(--tape); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }

/* rubber stamps */
.stamp { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 16px 9px; border: 4px solid currentColor; border-radius: 6px; font: 400 30px/1 var(--head); letter-spacing: .1em; text-transform: uppercase; filter: url(#ink); mix-blend-mode: multiply; pointer-events: none; }
.stamp small { font: 400 10.5px/1 var(--type); letter-spacing: .14em; }
.stamp.fake { color: var(--red); } .stamp.real { color: var(--green); }
.stamp.big { font-size: 52px; border-width: 6px; padding: 10px 22px 12px; }

/* hero */
.hero { padding-block: 64px 90px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.hero h1 { font: 400 clamp(52px, 8.4vw, 112px)/.92 var(--head); text-transform: uppercase; color: var(--paper2); letter-spacing: .005em; }
.lead { margin-top: 22px; font-size: 19px; color: #cfc8b9; max-width: 50ch; }
.tally { display: flex; flex-wrap: wrap; gap: 0; margin: 30px 0; border-top: 1px solid #3c3833; border-bottom: 1px solid #3c3833; }
.tally div { flex: 1 1 140px; padding: 14px 18px 14px 0; }
.tally div + div { padding-left: 18px; border-left: 1px solid #3c3833; }
.tally dt { font: 400 11.5px/1.2 var(--type); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.tally dd { margin: 6px 0 0; font: 400 46px/1 var(--head); color: var(--paper2); }
.tally .t-fake dd { color: #e2535b; } .tally .t-real dd { color: #4fbf86; }
.updated { margin-top: 16px; font: 400 13px/1.4 var(--type); color: var(--faint); }
.hero-file { position: relative; max-width: 470px; width: 100%; margin-left: auto; padding: 28px 0 20px; }
.hero-sheet { transform: rotate(-2deg); animation: slideIn .8s cubic-bezier(.2, .8, .2, 1) both; }
.hf-body { display: grid; grid-template-columns: 46% 1fr; gap: 18px; padding: 22px 18px 10px; align-items: center; }
.polaroid { position: relative; margin: 0; background: #fbfaf6; padding: 10px 10px 34px; box-shadow: 0 10px 18px -8px rgba(0, 0, 0, .55); transform: rotate(-4deg); }
.polaroid .ph { aspect-ratio: 1; background: #2b2926; overflow: hidden; display: grid; place-items: center; color: #8a8478; font: 400 30px/1 var(--head); }
.polaroid .ph img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.85) contrast(1.05); }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font: 400 17px/1 var(--type); color: var(--ink); }
.hf-facts p { font-size: 12.5px; letter-spacing: .06em; color: var(--muted); display: flex; flex-direction: column; margin-bottom: 10px; }
.hf-facts b { font-weight: 400; font-size: 18px; color: var(--ink); letter-spacing: 0; }
.hf-note { padding: 4px 18px 26px; font-size: 14.5px; }
.hero-stamp { position: absolute; left: 30px; top: 120px; transform: rotate(-12deg); animation: press 1s .7s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes press { 0% { opacity: 0; transform: rotate(-12deg) scale(1.9) } 55% { opacity: 1; transform: rotate(-12deg) scale(.94) } 100% { opacity: 1; transform: rotate(-12deg) scale(1) } }
@keyframes slideIn { from { opacity: 0; transform: translateY(26px) rotate(-6deg) } to { opacity: 1; transform: rotate(-2deg) } }

/* game */
.score { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; letter-spacing: .1em; color: var(--faint); }
.score b { color: var(--paper2); font-weight: 400; font-size: 20px; margin-left: 6px; }
.pair { margin-top: 34px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; }
.suspect { position: relative; display: flex; flex-direction: column; min-width: 0; }
.suspect:nth-child(1) .sheet { transform: rotate(-.8deg); } .suspect:nth-child(2) .sheet { transform: rotate(.9deg); }
.sus-body { display: grid; grid-template-columns: 38% 1fr; gap: 18px; padding: 22px 18px 18px; }
.sus-body .polaroid { padding: 8px 8px 28px; }
.sus-body .polaroid figcaption { font-size: 15px; bottom: 6px; }
.rows { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 1px dotted #b5ad9a; padding-bottom: 6px; font-size: 12.5px; letter-spacing: .06em; color: var(--muted); }
.row b { font: 400 16px/1.2 var(--type); color: var(--ink); letter-spacing: 0; white-space: nowrap; }
.sus-name { padding: 0 18px; font: 400 30px/1.05 var(--head); text-transform: uppercase; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sus-sub { padding: 2px 18px 0; color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.redact { position: relative; }
.redact::after { content: ""; position: absolute; inset: -2px -4px; background: var(--redact); transform-origin: right center; transition: transform .55s cubic-bezier(.7, 0, .2, 1); }
.revealed .redact::after { transform: scaleX(0); }
.revealed .redact:nth-of-type(2)::after { transition-delay: .12s; }
.pick { margin: 18px; justify-content: center; }
.pick:disabled { opacity: .4; cursor: default; transform: none; }
.suspect .stamp { position: absolute; right: 22px; top: 70px; z-index: 2; opacity: 0; transform: rotate(-14deg) scale(2); }
.revealed .stamp { animation: press .6s .35s cubic-bezier(.2, 1.4, .4, 1) forwards; }
.suspect.is-fake.revealed .sheet { box-shadow: 0 0 0 3px rgba(179, 32, 42, .55), 0 24px 40px -18px rgba(0, 0, 0, .8); }
.suspect.is-human.revealed .sheet { box-shadow: 0 0 0 3px rgba(29, 107, 69, .6), 0 24px 40px -18px rgba(0, 0, 0, .8); }
.verdict { margin-top: 28px; min-height: 30px; font-size: 18px; color: var(--paper2); max-width: 80ch; }
.verdict.ok { color: #6fd8a0; } .verdict.no { color: #f07b82; }
.cursor::after { content: "▌"; animation: blink 1s steps(1) infinite; color: var(--manila); }
@keyframes blink { 50% { opacity: 0 } }
.game-actions { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }
.empty { padding: 30px; border: 1px dashed #5a554b; color: var(--faint); font: 400 17px/1.5 var(--type); }
.empty b { display: block; font: 400 34px/1.05 var(--head); color: var(--paper2); text-transform: uppercase; margin-bottom: 8px; }

/* case files */
.tabs { display: inline-flex; gap: 6px; }
.tabs button { font: 400 13px/1 var(--type); letter-spacing: .08em; text-transform: uppercase; padding: 10px 12px; border: 1px solid #4a463f; background: transparent; color: var(--faint); border-radius: 3px; cursor: pointer; }
.tabs button.on { background: var(--paper2); color: var(--ink); border-color: var(--paper2); }
.files { margin-top: 34px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.file { position: relative; text-decoration: none; display: block; padding-top: 16px; transform: rotate(var(--r, 0deg)); transition: transform .25s; min-width: 0; }
.file:hover { transform: rotate(0) translateY(-4px); }
.file .ftab { position: absolute; top: 0; left: 18px; padding: 5px 12px 8px; background: var(--manila); border-radius: 5px 5px 0 0; font: 400 11px/1 var(--type); letter-spacing: .12em; color: #5d4720; }
.file .sheet { padding: 16px; display: flex; flex-direction: column; gap: 12px; border-top: 6px solid var(--manila); }
.file .f-top { display: flex; gap: 12px; align-items: center; min-width: 0; padding-right: 112px; min-height: 80px; align-items: flex-start; }
.file .thumb { width: 54px; height: 54px; flex: 0 0 auto; background: #fbfaf6; padding: 4px 4px 10px; box-shadow: 0 4px 8px -3px rgba(0, 0, 0, .45); transform: rotate(-4deg); }
.file .thumb span { display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; background: #2b2926; color: #8a8478; font: 400 15px/1 var(--head); }
.file .thumb img { width: 100%; height: 100%; object-fit: cover; }
.file .f-name { min-width: 0; }
.file .f-name b { display: block; font: 400 24px/1.05 var(--head); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file .f-name span { display: block; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file .stamp { position: absolute; right: 12px; top: 26px; font-size: 19px; padding: 5px 9px 6px; border-width: 3px; transform: rotate(-9deg); max-width: 120px; text-align: center; }
.file .stamp.real span { font-size: 15px; line-height: 1.05; }
.more { margin-top: 30px; }
.file .stamp small { font-size: 8.5px; }
.file .link { font: 400 12px/1 var(--type); letter-spacing: .08em; color: var(--muted); }

/* corkboard */
.cork { position: relative; margin-top: 34px; padding: 40px 30px 50px; border-radius: 6px; border: 14px solid #5a3e24; background: var(--cork); background-image: var(--grain), radial-gradient(circle at 20% 30%, #b98a58 0, transparent 40%), radial-gradient(circle at 80% 70%, #9c6f41 0, transparent 45%);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .45), 0 26px 40px -20px rgba(0, 0, 0, .9); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 28px; min-height: 360px; }
.strings { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; overflow: visible; }
.strings path { fill: none; stroke: #c0242b; stroke-width: 2.5; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .35)); }
.pinned { position: relative; z-index: 1; background: #fbfaf6; padding: 10px 10px 12px; box-shadow: 0 12px 20px -10px rgba(0, 0, 0, .7); transform: rotate(var(--r, -2deg)); min-width: 0; }
.pinned .pin { position: absolute; top: -8px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff6a6a, #a3141b 70%); box-shadow: 0 3px 4px rgba(0, 0, 0, .5); z-index: 3; }
.pinned .ph { aspect-ratio: 1; background: #2b2926; overflow: hidden; display: grid; place-items: center; color: #8a8478; font: 400 26px/1 var(--head); }
.pinned .ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05); }
.pinned p { margin-top: 8px; font: 400 15px/1.25 var(--type); color: var(--ink); }
.pinned p small { display: block; font-size: 12.5px; color: var(--muted); }
.pinned .stamp { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%) rotate(-16deg); font-size: 34px; padding: 4px 14px; border-width: 5px; mix-blend-mode: normal; color: #e0303a; background: rgba(236, 230, 216, .16); }

/* wanted */
.bulletins { margin-top: 34px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.bulletin { position: relative; padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 12px; transform: rotate(var(--r, -1deg)); min-width: 0; }
.bulletin h3 { font: 400 52px/.9 var(--head); text-align: center; letter-spacing: .08em; color: var(--ink); }
.bulletin .by { text-align: center; font: 400 11.5px/1 var(--type); letter-spacing: .16em; color: var(--red); }
.bulletin .addr { background: var(--redact); color: var(--paper); font: 400 13px/1.4 var(--type); padding: 10px; word-break: break-all; text-align: center; }
.bulletin ul { margin: 0; padding-left: 18px; font-size: 14.5px; }
.bulletin .src { font: 400 11.5px/1.3 var(--type); color: var(--muted); text-align: center; }

/* memo */
.memo { max-width: 860px; margin: 0 auto; padding-bottom: 30px; transform: rotate(-.6deg); }
.memo h2 { color: var(--ink); padding: 26px 30px 0; font-size: clamp(30px, 4vw, 46px); }
.steps { margin: 20px 30px 0; padding-left: 22px; display: flex; flex-direction: column; gap: 14px; font-size: 17px; color: #2d2a25; }
.steps b { font-weight: 700; }
.memo .fine { margin: 22px 30px 0; color: var(--muted); }
.memo-stamp { position: absolute; right: 30px; top: 16px; transform: rotate(9deg); font-size: 26px; }

.foot { border-top: 1px solid #3a3631; padding-block: 28px; }
.foot-in { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; }
.foot .fine { color: var(--faint); }

@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-file { margin: 0 auto; }
  .files, .bulletins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cork { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .band { padding-block: 60px; }
  .nav { display: none; }
  .pair, .files, .bulletins { grid-template-columns: 1fr; }
  .cork { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 30px 16px 40px; border-width: 10px; gap: 28px 18px; }
  .sus-body, .hf-body { grid-template-columns: 1fr 1.2fr; }
  .stamp.big { font-size: 38px; }
  .memo-stamp { position: static; margin: 0 30px 10px; align-self: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-sheet, .hero-stamp, .revealed .stamp { animation: none; opacity: 1; }
  .suspect .stamp { transform: rotate(-14deg); }
  .redact::after { transition: none; }
  .cursor::after { animation: none; }
}

/* ===== v5: torch, desk props, post-its, chalkboard ===== */
:root { --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive; --slate: #26332c; --chalk: #f1f0e6; }
.torch { position: fixed; inset: 0; pointer-events: none; z-index: 15;
  background: radial-gradient(circle 360px at var(--mx, 62%) var(--my, 28%), rgba(255, 234, 186, .09), transparent 70%),
              radial-gradient(ellipse at 50% 40%, transparent 50%, rgba(0, 0, 0, .38) 100%); }
@media (pointer: coarse) { .torch { background: radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(0, 0, 0, .3) 100%); } }

/* desk props */
.coffee { position: absolute; z-index: 0; top: -54px; left: -70px; width: 150px; height: 150px; border-radius: 50%;
  border: 10px solid rgba(118, 74, 32, .33); box-shadow: inset 0 0 6px rgba(118, 74, 32, .35), 0 0 4px rgba(118, 74, 32, .25); transform: rotate(18deg) scaleY(.94); }
.coffee::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; border: 3px solid rgba(118, 74, 32, .16); }
.folder .clip { position: absolute; top: -26px; right: 64px; width: 22px; height: 74px; border: 3px solid #b9bdc4; border-radius: 12px; transform: rotate(8deg); box-shadow: 1px 2px 2px rgba(0, 0, 0, .4); z-index: 4; }
.folder .clip::after { content: ""; position: absolute; left: 3px; right: 3px; top: 8px; bottom: 16px; border: 3px solid #b9bdc4; border-top: 0; border-radius: 0 0 9px 9px; }

/* post-it notes */
.note { position: absolute; z-index: 5; display: block; width: 158px; padding: 16px 14px 18px; font: 600 23px/1.05 var(--hand); color: #262320;
  background: var(--nc, #ffe873); transform: rotate(var(--r, -3deg)); box-shadow: 0 14px 16px -10px rgba(0, 0, 0, .6), 0 1px 2px rgba(0, 0, 0, .25);
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, .06), transparent 22%), linear-gradient(135deg, transparent 82%, rgba(0, 0, 0, .1) 100%); }
.note::after { content: ""; position: absolute; right: 0; bottom: 0; width: 30px; height: 30px; background: linear-gradient(135deg, transparent 50%, rgba(0, 0, 0, .16) 50%, rgba(255, 255, 255, .28) 100%); }
.note b { color: #b3202a; font-weight: 700; }
.n-yellow { --nc: #ffe873; } .n-pink { --nc: #ff9fc6; } .n-blue { --nc: #9fd6ff; } .n-green { --nc: #b9ee9a; } .n-orange { --nc: #ffc06e; }

/* chalkboard */
.chalk-band { padding-block: 40px 70px; }
.board-frame { position: relative; padding: 18px; background: linear-gradient(180deg, #7a5532, #5b3d22); border-radius: 8px; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .95), inset 0 2px 0 rgba(255, 255, 255, .15); }
.chalkboard { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; padding: 34px 40px 44px; border-radius: 3px; color: var(--chalk);
  background: radial-gradient(ellipse at 30% 30%, rgba(255, 255, 255, .06), transparent 55%), radial-gradient(ellipse at 75% 70%, rgba(255, 255, 255, .045), transparent 50%), var(--grain), var(--slate);
  box-shadow: inset 0 0 50px rgba(0, 0, 0, .55); }
.chalk-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.chalk { font: 500 30px/1.25 var(--hand); filter: url(#chalk); letter-spacing: .01em; }
.chalk b { font-weight: 700; }
.chalk.h { font-size: 40px; font-weight: 700; color: #ffe680; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; margin-bottom: 6px; }
.chalk.red { color: #ff9b9b; } .chalk.green { color: #a4f0bd; }
.chalk.small { font-size: 25px; opacity: .92; }
.chalk.formula b { color: #ffe680; }
.ring { display: inline-block; padding: 0 10px; border: 2.5px solid #ff9b9b; border-radius: 50% 46% 52% 48%; transform: rotate(-4deg); color: #ff9b9b; }
.tally-marks { display: inline-flex; gap: 10px; vertical-align: middle; margin: 0 6px; }
.tally-marks svg { height: 30px; width: auto; }
.tally-marks path { stroke: var(--chalk); stroke-width: 3; stroke-linecap: round; fill: none; }
.smudge { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .05); filter: blur(14px); pointer-events: none; }
.smudge.s1 { width: 260px; height: 90px; right: 8%; top: 10%; transform: rotate(-12deg); } .smudge.s2 { width: 200px; height: 70px; left: 30%; bottom: 6%; }
.ledge { position: relative; height: 16px; margin: 10px -6px -6px; background: linear-gradient(180deg, #6a4729, #4c321c); border-radius: 3px; }
.ledge .piece { position: absolute; top: -9px; left: 12%; width: 54px; height: 11px; background: #f4f2e8; border-radius: 3px; transform: rotate(-3deg); box-shadow: 0 2px 2px rgba(0, 0, 0, .4); }
.ledge .piece.p2 { left: 18%; width: 34px; background: #ffd0d0; transform: rotate(6deg); }
.ledge .eraser { position: absolute; top: -20px; right: 14%; width: 96px; height: 24px; background: linear-gradient(180deg, #3b3b3b 0 40%, #c9b48a 40%); border-radius: 4px; transform: rotate(-2deg); box-shadow: 0 3px 4px rgba(0, 0, 0, .45); }

/* the corkboard becomes a real mess: polaroids + post-its, each with its own offset and angle */
.cork { align-items: start; }
.cork > .pinned, .cork > .note { transform: translate(var(--tx, 0), var(--ty, 0)) rotate(var(--r, -2deg)); }
.cork > .note { position: relative; width: auto; min-height: 140px; z-index: 3; font-size: 24px; }
.cork > .note small { display: block; margin-top: 8px; font-size: 18px; color: #4a453d; }

@media (max-width: 680px) {
  .chalkboard { grid-template-columns: 1fr; padding: 24px 20px 34px; }
  .chalk { font-size: 25px; } .chalk.h { font-size: 33px; } .chalk.small { font-size: 21px; }
  .note { width: 132px; font-size: 20px; }
  .coffee { display: none; }
}
@media (prefers-reduced-motion: reduce) { .torch { background: radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(0, 0, 0, .3) 100%); } }

/* ===== v6: magnifying glass ===== */
.loupe { position: fixed; z-index: 40; width: 190px; height: 190px; border-radius: 50%; overflow: hidden; pointer-events: none; opacity: 0; transform: scale(.6);
  transition: opacity .15s, transform .15s; background: var(--paper);
  box-shadow: 0 0 0 7px #2b2b2e, 0 0 0 9px #8d8f95, 0 0 0 11px #2b2b2e, 0 18px 30px -6px rgba(0, 0, 0, .75), inset 0 0 24px rgba(0, 0, 0, .35); }
.loupe.on { opacity: 1; transform: scale(1); }
.loupe::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .38), transparent 38%), radial-gradient(circle at 70% 78%, rgba(255, 255, 255, .08), transparent 40%); }
.loupe .lz { position: absolute; left: 0; top: 0; transform-origin: 0 0; margin: 0 !important; }
.loupe .lz, .loupe .lz * { animation: none !important; transition: none !important; }
.loupe-handle { position: fixed; z-index: 39; width: 22px; height: 96px; border-radius: 10px; pointer-events: none; opacity: 0; transition: opacity .15s;
  background: linear-gradient(90deg, #3a2a1c, #6d4b2c 45%, #3a2a1c); box-shadow: 0 10px 18px -6px rgba(0, 0, 0, .7); transform-origin: 50% 0; transform: rotate(-38deg); }
.loupe-handle.on { opacity: 1; }

/* ===== v7: chalkboard beside the game, wanted posters on the cork, rank, case closed, method window ===== */
.howbtn { margin-left: 6px; font: 400 13px/1 var(--type); letter-spacing: .06em; color: var(--paper2); background: transparent; border: 1.5px solid #5a554b; border-radius: 4px; padding: 8px 11px; cursor: pointer; white-space: nowrap; }
.howbtn:hover { border-color: var(--paper2); }
.howbtn.snd { color: var(--faint); }
.howbtn.snd[aria-pressed="true"] { color: var(--mark); border-color: var(--mark); }
.nav + .howbtn { margin-left: 10px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--manila); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* the chalkboard hangs next to the game title */
.play-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 22px 44px; align-items: center; }
.play-head .sec-head { flex-direction: column; align-items: flex-start; gap: 18px; }
.board-frame.side { padding: 12px; transform: rotate(1.4deg); }
.side .chalkboard { gap: 10px 26px; padding: 20px 22px 24px; }
.side .chalk { font-size: 20px; line-height: 1.2; } .side .chalk.h { font-size: 26px; margin-bottom: 2px; text-underline-offset: 4px; } .side .chalk.small { font-size: 18px; }
.side .tally-marks svg { height: 18px; } .side .tally-marks { gap: 5px; margin: 0 3px; }
.side .smudge.s1 { width: 180px; } .side .ledge .eraser { width: 70px; height: 20px; top: -17px; }

/* detective rank */
.score .rank { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 10px; border: 1.5px dashed #5a554b; border-radius: 4px; }
.rank i { font-style: normal; color: var(--mark); letter-spacing: 0; }
.score .rank b { margin-left: 0; font-size: 17px; }
.rank small { font-size: 11px; color: var(--faint); letter-spacing: .04em; }
.rank.up { animation: rankup .9s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes rankup { 0% { transform: scale(1); } 30% { transform: scale(1.18) rotate(-3deg); border-color: var(--mark); } 100% { transform: scale(1); } }
.game-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* wanted posters pinned on the cork */
.poster { background: #f1e7cf; background-image: var(--grain); padding: 16px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.poster h3 { font: 400 40px/.9 var(--head); text-align: center; letter-spacing: .1em; color: var(--ink); }
.poster .by { margin: 0; text-align: center; font: 400 11px/1 var(--type); letter-spacing: .16em; color: var(--red); text-transform: uppercase; }
.poster .addr { display: block; background: var(--redact); color: var(--paper); font: 400 14px/1.3 var(--type); padding: 8px; text-align: center; text-decoration: none; }
.poster .addr:hover { color: var(--mark); }
.poster ul { margin: 0; padding-left: 16px; font: 400 13.5px/1.35 var(--body); color: var(--ink); }
.poster .src { margin: 0; font: 400 11px/1.2 var(--type); color: var(--muted); text-align: center; }
.poster.open { opacity: .92; }

/* case closed ledger */
.ledger { margin-top: 34px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 22px; }
.case { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 16px; text-decoration: none; transform: rotate(var(--r, 0deg)); transition: transform .2s; min-width: 0; }
.case:hover { transform: rotate(0deg) translateY(-3px); }
.case-ph { width: 64px; height: 64px; background: #2b2926; overflow: hidden; display: grid; place-items: center; color: #8a8478; font: 400 20px/1 var(--head); border: 4px solid #fbfaf6; box-shadow: 0 3px 6px rgba(0, 0, 0, .3); }
.case-ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4); }
.case-id b { display: block; font: 400 26px/1.05 var(--head); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case-id span { font: 400 12px/1.4 var(--type); color: var(--muted); }
.case-id i { font-style: normal; } .v-fake { color: var(--red); } .v-real { color: var(--green); }
.case-num { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; letter-spacing: .08em; color: var(--muted); border-top: 1px dashed #c9c1ae; padding-top: 8px; }
.case-num b { display: block; font-size: 16px; color: var(--ink); letter-spacing: 0; font-weight: 400; }
.case-ch { font: 400 38px/1 var(--head); }
.case-ch.down { color: var(--red); } .case-ch.up { color: var(--green); }
.case-stamp { position: absolute; right: 10px; top: 18px; padding: 5px 9px 4px; border: 3px double currentColor; border-radius: 4px; font: 400 17px/1 var(--head); letter-spacing: .08em; transform: rotate(-8deg); opacity: .9; mix-blend-mode: multiply; }
.case-stamp.ok { color: var(--green); } .case-stamp.no { color: var(--red); } .case-stamp.mid { color: #8a6a1c; }
#closed-sum b { color: var(--paper2); font-weight: 600; }
#closed .more { margin-top: 30px; }

/* the method memo in a window */
.howdlg { width: min(900px, calc(100vw - 32px)); max-height: calc(100vh - 40px); padding: 30px 10px 24px; border: 0; background: transparent; color: var(--light); overflow: auto; }
.howdlg::backdrop { background: rgba(10, 9, 8, .78); backdrop-filter: blur(3px); }
.howdlg[open] .memo { animation: drop .45s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes drop { from { transform: translateY(-30px) rotate(-3deg); opacity: 0; } to { transform: rotate(-.6deg); opacity: 1; } }
.howdlg form { display: flex; justify-content: center; margin-top: 22px; }

@media (max-width: 1080px) {
  .play-grid { grid-template-columns: 1fr; gap: 30px; }
  .board-frame.side { max-width: 600px; transform: rotate(.6deg); }
  .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) { .nav + .howbtn { margin-left: auto; } }
@media (max-width: 680px) {
  .ledger { grid-template-columns: 1fr; }
  .howbtn.snd { display: none; }
  .poster h3 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { .rank.up, .howdlg[open] .memo { animation: none; } }

/* ===== v9: speed. Textures are PNG masks (no live SVG filters), the torch moves on the GPU, the header has no blur ===== */
.top { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(27, 26, 24, .97); }
.stamp { filter: none; mix-blend-mode: normal; -webkit-mask: url("/img/ink.png") 0 0 / 150px 150px repeat; mask: url("/img/ink.png") 0 0 / 150px 150px repeat; }
.hero-stamp { filter: url(#ink); -webkit-mask: none; mask: none; mix-blend-mode: multiply; }
.case-stamp { mix-blend-mode: normal; -webkit-mask: url("/img/ink.png") 0 0 / 110px 110px repeat; mask: url("/img/ink.png") 0 0 / 110px 110px repeat; }
.chalk { filter: none; -webkit-mask: url("/img/chalk.png") 0 0 / 120px 120px repeat; mask: url("/img/chalk.png") 0 0 / 120px 120px repeat; }
.smudge { filter: none; background: radial-gradient(closest-side, rgba(255, 255, 255, .06), transparent); }
.strings path { filter: none; stroke-width: 2.5; }
.howdlg::backdrop { backdrop-filter: none; background: rgba(10, 9, 8, .86); }
.torch { background: radial-gradient(ellipse at 50% 40%, transparent 50%, rgba(0, 0, 0, .38) 100%); overflow: hidden; }
.torch-spot { position: absolute; left: 0; top: 0; width: 720px; height: 720px; border-radius: 50%; will-change: transform;
  background: radial-gradient(closest-side, rgba(255, 234, 186, .09), transparent); transform: translate3d(-9999px, 0, 0); }

/* ===== v10: the case file opens like a real folder; lighter magnifying glass ===== */
.hero-file, .pinned[data-mint] { cursor: pointer; }
.hero-file:hover .hero-sheet { transform: rotate(-1deg) translateY(-4px); transition: transform .25s; }
.pinned[data-mint]:hover { z-index: 6; }
.btn.small { font-size: 15px; padding: 12px 16px; }
.btn:disabled { opacity: .35; cursor: default; transform: none; }

.cfdlg { width: min(1060px, calc(100vw - 24px)); max-width: none; max-height: calc(100vh - 24px); padding: 26px 8px 18px; border: 0; background: transparent; color: var(--light); overflow: auto; overscroll-behavior: contain; }
.cfdlg::backdrop { background: rgba(10, 9, 8, .86); }
.cf-book { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); perspective: 2200px; }
.cf-left { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 26px 28px; background: var(--manila); background-image: var(--grain), linear-gradient(90deg, transparent 92%, rgba(0, 0, 0, .14)); border-radius: 4px 0 0 4px; box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .9); color: #3d2f15; }
.cf-no { align-self: flex-start; font-size: 12px; letter-spacing: .14em; color: #5d4720; }
.cf-pol { position: relative; width: min(250px, 80%); margin: 14px 0 4px; transform: rotate(-3deg); }
.cf-pol .ph { aspect-ratio: 1; }
.paperclip { position: absolute; top: -22px; right: 26px; width: 20px; height: 66px; border: 3px solid #b9bdc4; border-radius: 11px; transform: rotate(10deg); z-index: 3; box-shadow: 1px 2px 2px rgba(0, 0, 0, .35); }
.paperclip::after { content: ""; position: absolute; left: 3px; right: 3px; top: 8px; bottom: 14px; border: 3px solid #b9bdc4; border-top: 0; border-radius: 0 0 8px 8px; }
.cf-sym { font: 400 40px/1 var(--head); text-transform: uppercase; color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-name { font-size: 15px; color: #5d4720; margin-top: -4px; }
.cf-stamp { margin: 8px 0 4px; transform: rotate(-8deg); }
.cf-stamp .stamp { font-size: 36px; }
.cf-mint { margin-top: auto; background: rgba(255, 255, 255, .35); border: 1px dashed #8a6a35; border-radius: 3px; padding: 7px 10px; font-size: 13px; color: var(--ink); cursor: pointer; }
.cf-mint span { color: var(--red); margin-left: 6px; text-transform: uppercase; font-size: 11px; letter-spacing: .1em; }
.cf-right { border-radius: 0 3px 3px 0; padding-bottom: 20px; display: flex; flex-direction: column; }
.cf-h { padding: 18px 22px 0; font: 400 30px/1 var(--head); text-transform: uppercase; color: var(--ink); }
.cf-find { margin: 10px 22px 6px; min-height: 7.6em; font-size: 15.5px; line-height: 1.55; color: var(--ink); }
.cf-right .rows { padding: 6px 22px 0; }
.cf-right .row b.hl { background: linear-gradient(transparent 15%, var(--mark) 15%, var(--mark) 85%, transparent 85%); padding: 0 4px; }
.cf-launch { margin: 14px 22px 0; padding: 10px 12px; border-left: 4px solid var(--red); background: rgba(179, 32, 42, .07); font-size: 14.5px; color: var(--ink); }
.cf-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 22px 0; }
.cf-links .btn.ghost { color: var(--ink); box-shadow: inset 0 0 0 2px #8f8878; }
.cf-fine { margin: 14px 22px 0; font-size: 12.5px; color: var(--muted); }
.cf-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* the cover: lies over the report, then swings open on its spine */
.cf-cover { position: absolute; top: 0; bottom: 0; left: calc(5 / 12 * 100%); right: 0; transform-origin: 0 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--manila); background-image: var(--grain), linear-gradient(90deg, rgba(0, 0, 0, .18), transparent 6%); border-radius: 0 4px 4px 0; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .8);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: #5d4720; transform: rotateY(-179.9deg); pointer-events: none; }
.cf-cover b { font: 400 64px/1 var(--head); color: rgba(61, 47, 21, .85); text-transform: uppercase; }
.cf-ctab { position: absolute; top: -20px; right: 40px; padding: 6px 16px 10px; background: var(--manila); border-radius: 6px 6px 0 0; font: 400 12px/1 var(--type); letter-spacing: .14em; }
.cf-conf { padding: 6px 14px; border: 3px solid var(--red); color: var(--red); font: 400 26px/1 var(--head); letter-spacing: .14em; transform: rotate(-6deg); -webkit-mask: url("/img/ink.png") 0 0 / 150px 150px repeat; mask: url("/img/ink.png") 0 0 / 150px 150px repeat; }
.cf-book.opening .cf-cover { animation: cfopen 1s .15s cubic-bezier(.6, .05, .25, 1) both; }
.cf-book.opening .cf-left, .cf-book.opening .cf-right { animation: cfin .35s ease-out both; }
@keyframes cfopen { 0% { transform: rotateY(0); } 100% { transform: rotateY(-179.9deg); } }
@keyframes cfin { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.cf-book.opening .cf-stamp .stamp { animation: press .55s 1.05s cubic-bezier(.2, 1.4, .4, 1) both; }

/* lighter magnifying glass: positioned by transform only */
.loupe { left: 0; top: 0; transform: none; transition: opacity .15s; will-change: transform; contain: strict; }
.loupe.on { transform: none; }
.loupe-handle { left: 0; top: 0; will-change: transform; transform-origin: 0 0; }
.lz-pan { position: absolute; left: 0; top: 0; will-change: transform; }
.loupe .lz { position: absolute; left: 0; top: 0; transform-origin: 0 0; margin: 0 !important; }

@media (max-width: 760px) {
  .cf-book { grid-template-columns: 1fr; }
  .cf-left { border-radius: 4px 4px 0 0; padding: 26px 18px 20px; }
  .cf-pol { width: 170px; }
  .cf-right { border-radius: 0 0 3px 3px; }
  .cf-cover { display: none; }
  .cf-sym { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) { .cf-book.opening .cf-cover, .cf-book.opening .cf-left, .cf-book.opening .cf-right, .cf-book.opening .cf-stamp .stamp { animation: none; } }
@media (max-width: 760px) {
  .cf-nav { position: sticky; bottom: -18px; margin: 14px -8px -18px; padding: 12px 8px 16px; background: linear-gradient(transparent, rgba(10, 9, 8, .95) 30%); flex-wrap: nowrap; gap: 8px; }
  .cf-nav .btn.small { font-size: 14px; padding: 11px 12px; }
}

/* ===== v11: nothing may push the page sideways on phones (pre-reveal stamps are scaled up); lens warm-up ===== */
main { overflow-x: clip; }
.loupe.warm, .loupe-handle.warm { opacity: .01 !important; transition: none; }

/* ===== v12: launch details: token bar, late files, new files notice ===== */
.tokenbar { position: relative; z-index: 21; display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 16px; background: var(--mark); color: var(--ink); font: 400 14px/1.2 var(--type); }
.tb-sym { font: 400 18px/1 var(--head); letter-spacing: .06em; }
.tb-ca { max-width: min(46ch, 60vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-copy, .tb-buy { font: 400 13px/1 var(--type); letter-spacing: .06em; color: var(--ink); background: transparent; border: 1.5px solid var(--ink); border-radius: 3px; padding: 6px 9px; cursor: pointer; text-decoration: none; }
.tb-copy:hover, .tb-buy:hover { background: var(--ink); color: var(--mark); }
.updated.late { color: #ff9b9b; }
.newfiles { margin-top: 12px; font: 400 15px/1 var(--type); color: var(--ink); background: var(--mark); border: 0; border-radius: 3px; padding: 10px 14px; cursor: pointer; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(-3px); } }
.x-link { margin-left: 10px; }
@media (prefers-reduced-motion: reduce) { .newfiles { animation: none; } }

/* ===== v13: the interrogation room ===== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ask { display: flex; gap: 12px; margin-top: 28px; max-width: 760px; }
.ask input { flex: 1; min-width: 0; padding: 15px 16px; font-size: 16px; color: var(--ink); background: var(--paper); background-image: var(--grain); border: 0; border-radius: 3px; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .25); }
.ask input::placeholder { color: #8a8478; }
.ask .btn:disabled { opacity: .5; }
.ask-msg { min-height: 24px; margin-top: 10px; color: #ff9b9b; font-size: 14px; }
.room { position: relative; margin-top: 18px; padding: 150px 20px 56px; border-radius: 6px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 28%, #3a352d 0%, #1f1d1a 55%, #121110 100%); box-shadow: inset 0 0 80px rgba(0, 0, 0, .8); }
.room::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46px; background: linear-gradient(180deg, #4a3523, #2e2014); box-shadow: 0 -4px 12px rgba(0, 0, 0, .5); }
.lamp { position: absolute; left: 50%; top: 0; width: 0; height: 0; transform-origin: 0 0; animation: swing 4.5s ease-in-out infinite alternate; z-index: 2; }
.lamp .cord { position: absolute; left: -1px; top: 0; width: 2px; height: 70px; background: #0c0c0c; }
.lamp .shade { position: absolute; left: -44px; top: 66px; width: 88px; height: 40px; background: linear-gradient(180deg, #3b4a3f, #24302a); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.lamp .beam { position: absolute; left: -240px; top: 104px; width: 480px; height: 520px; background: radial-gradient(ellipse at 50% 0%, rgba(255, 236, 180, .32), rgba(255, 236, 180, .1) 45%, transparent 70%); clip-path: polygon(41% 0, 59% 0, 100% 100%, 0 100%); pointer-events: none; }
@keyframes swing { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.statement { position: relative; z-index: 3; max-width: 640px; margin: 0 auto; padding-bottom: 20px; transform: rotate(-.8deg); }
.st-sus { padding: 14px 20px 4px; font-size: 13px; letter-spacing: .12em; color: var(--muted); }
.st-sus b { font-size: 16px; color: var(--ink); letter-spacing: .02em; font-weight: 400; }
.st-log { margin: 8px 20px 0; padding-left: 22px; font-size: 15px; line-height: 1.5; color: var(--ink); min-height: 120px; }
.st-log li { animation: typein .35s steps(12) both; }
@keyframes typein { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.st-stamp { position: absolute; right: 26px; top: 46px; pointer-events: none; }
.st-stamp .stamp { opacity: 0; transform: rotate(-12deg) scale(1.9); }
.st-stamp.down .stamp { animation: press .6s .1s cubic-bezier(.2, 1.4, .4, 1) forwards; }
.stamp.unsure { color: #8a6a1c; }
.st-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 20px 0; }
.st-actions .btn.ghost { color: var(--ink); box-shadow: inset 0 0 0 2px #8f8878; }
@media (max-width: 680px) {
  .ask { flex-direction: column; }
  .room { padding: 120px 10px 50px; }
  .st-stamp { position: static; margin: 12px 20px 0; }
  .st-stamp .stamp { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .lamp, .st-log li { animation: none; } }

/* ===== v14: hero stamp clear of the facts; coins without a logo ===== */
.hero-stamp { left: 22px; top: 140px; font-size: 40px; padding: 6px 12px 7px; mix-blend-mode: normal; color: #ef3a44; background: rgba(236, 230, 216, .2); filter: none;
  -webkit-mask: url("/img/ink.png") 0 0 / 150px 150px repeat; mask: url("/img/ink.png") 0 0 / 150px 150px repeat; }
.nophoto { display: block; align-self: start; margin-top: 16px; text-align: center; font: 400 12px/1.5 var(--type); letter-spacing: .16em; color: #6f6a60; }
@media (max-width: 680px) { .hero-stamp { left: 12px; top: 118px; font-size: 26px; border-width: 3px; } .hero-stamp small { font-size: 7px; } }

/* ===== v19: the funny layer ===== */
.nophoto { display: block; align-self: center; margin: 0; padding: 0 8px; text-align: center; font: 400 11px/1.6 var(--type); letter-spacing: .14em; color: #77716a; }
.hero-sheet .nophoto { align-self: start; margin-top: 16px; }
.pinned .ph .nophoto { align-self: start; margin-top: 14%; }
.np-q { font: 400 22px/1 var(--head); color: #8a8478; }
/* big SOLVED / FOOLED stamp over the pair */
.pair { position: relative; }
.slam { position: absolute; left: 50%; top: 46%; z-index: 6; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) rotate(-9deg) scale(2.4);
  animation: slam .55s 1s cubic-bezier(.2, 1.5, .4, 1) forwards, slamout .45s 2.7s ease-in forwards; }
@keyframes slamout { to { opacity: 0; transform: translate(-50%, -60%) rotate(-9deg) scale(.86); } }
.slam span { display: block; padding: 10px 30px 12px; border: 9px solid currentColor; border-radius: 12px; font: 400 clamp(54px, 9vw, 110px)/1 var(--head); letter-spacing: .12em;
  background: rgba(246, 242, 232, .72); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .6);
  -webkit-mask: url("/img/ink.png") 0 0 / 190px 190px repeat; mask: url("/img/ink.png") 0 0 / 190px 190px repeat; }
.slam.ok { color: var(--green); } .slam.no { color: var(--red); }
@keyframes slam { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-9deg) scale(2.4); } 60% { opacity: 1; transform: translate(-50%, -50%) rotate(-9deg) scale(.94); } 100% { opacity: 1; transform: translate(-50%, -50%) rotate(-9deg) scale(1); } }
.pair.thud { animation: thud .32s ease-out; }
@keyframes thud { 0% { transform: translateY(0); } 30% { transform: translateY(5px); } 60% { transform: translateY(-2px); } 100% { transform: none; } }
.confetti { position: absolute; inset: 0; pointer-events: none; z-index: 7; overflow: visible; }
.confetti i { position: absolute; top: 40%; height: 14px; border-radius: 1px; box-shadow: 0 1px 1px rgba(0, 0, 0, .25); opacity: 0;
  animation: fall 1.4s cubic-bezier(.2, .6, .4, 1) forwards; }
@keyframes fall { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 25% { opacity: 1; transform: translate(calc(var(--x) * .5), -90px) rotate(calc(var(--rot) * .3)); }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--rot)); } }
.note.mock { position: absolute; right: -12px; top: 92px; z-index: 5; width: 150px; transform: rotate(8deg); animation: stick .35s cubic-bezier(.2, 1.4, .4, 1) both; font-size: 24px; }
@keyframes stick { from { opacity: 0; transform: rotate(18deg) scale(1.4); } to { opacity: 1; transform: rotate(8deg) scale(1); } }
/* polaroids swing on their pin */
.cork > .pinned { transform-origin: 50% 0; }
.cork > .pinned:hover { animation: swingpin 1.1s ease-in-out; }
@keyframes swingpin { 0%, 100% { transform: translate(var(--tx, 0), var(--ty, 0)) rotate(var(--r, -2deg)); }
  25% { transform: translate(var(--tx, 0), var(--ty, 0)) rotate(calc(var(--r, -2deg) + 4deg)); }
  60% { transform: translate(var(--tx, 0), var(--ty, 0)) rotate(calc(var(--r, -2deg) - 2.5deg)); } }
/* detective's note in the folder */
.cf-quip { position: relative; margin: 10px 0 6px; max-width: 250px; padding: 12px 14px 14px; background: #ffe873; transform: rotate(-2.5deg); font: 700 22px/1.08 var(--hand); color: #262320;
  box-shadow: 0 10px 14px -8px rgba(0, 0, 0, .55); }
.cf-quip small { display: block; margin-bottom: 4px; font: 400 10.5px/1 var(--type); letter-spacing: .14em; text-transform: uppercase; color: #8a6a1c; }
@media (prefers-reduced-motion: reduce) { .slam { animation: none; opacity: 1; transform: translate(-50%, -50%) rotate(-9deg); } .pair.thud, .cork > .pinned:hover, .note.mock { animation: none; } }
@media (max-width: 680px) { .note.mock { right: 6px; top: 70px; width: 120px; font-size: 20px; } }
.suspect { position: relative; }

/* ===== v22: motion. Files lean toward the cursor, sections are dealt onto the desk, the folder flies in and opens ===== */
.file, .case { transform: perspective(1000px) translateY(var(--lift, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(var(--r, 0deg));
  transition: transform .5s cubic-bezier(.2, .8, .2, 1); will-change: transform; }
.file:hover, .case:hover { --lift: -10px; transform: perspective(1000px) translateY(var(--lift)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(calc(var(--r, 0deg) * .3)); }
.file.tilt, .case.tilt { transition-duration: .2s; }
.file .sheet, .case { transition: box-shadow .4s, transform .5s cubic-bezier(.2, .8, .2, 1); }
.file:hover .sheet { box-shadow: 0 1px 0 #fff8 inset, 0 46px 50px -24px rgba(0, 0, 0, .95), 0 6px 14px rgba(0, 0, 0, .35); }
.file .ftab { transition: transform .35s cubic-bezier(.2, 1.4, .4, 1); }
.file:hover .ftab { transform: translateY(-5px); }
.file .stamp { transition: transform .35s cubic-bezier(.2, 1.4, .4, 1); }
.file:hover .stamp { transform: rotate(-12deg) scale(1.07); }
.file .link { transition: letter-spacing .3s, color .3s; }
.file:hover .link { letter-spacing: .18em; color: var(--red); }
#hero-file { transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
#hero-file.tilt { transition-duration: .25s; }

/* dealt as you scroll */
.rv #files:not(.seen) > *, .rv #ledger:not(.seen) > *, .rv #cork:not(.seen) > :not(svg) { opacity: 0; }
.rv #cork:not(.seen) .strings { opacity: 0; }
.rv .board-frame.side:not(.seen) .chalk { clip-path: inset(0 100% 0 0); }
.files > .deal, .ledger > .deal { animation: dealcard .75s var(--d, 0ms) cubic-bezier(.2, .8, .2, 1) both; }
@keyframes dealcard { from { opacity: 0; transform: perspective(1000px) translate(-60px, 110px) rotate(calc(var(--r, 0deg) - 12deg)) scale(.9); }
  to { opacity: 1; transform: perspective(1000px) rotate(var(--r, 0deg)); } }
.cork > .deal { animation: pindrop .65s var(--d, 0ms) cubic-bezier(.3, 1.35, .5, 1) both; }
@keyframes pindrop { from { opacity: 0; transform: translate(var(--tx, 0px), calc(var(--ty, 0px) - 70px)) rotate(calc(var(--r, -2deg) + 14deg)) scale(1.1); }
  to { opacity: 1; transform: translate(var(--tx, 0px), var(--ty, 0px)) rotate(var(--r, -2deg)); } }
.chalk.write { animation: write 1s var(--d, 0ms) cubic-bezier(.4, 0, .2, 1) both; }
@keyframes write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* the folder: backdrop, flight, two equal halves, a real cover with a front and a back */
.cfdlg[open]::backdrop { animation: bdin .4s ease both; }
.cfdlg.closing::backdrop { animation: bdout .38s ease both; }
@keyframes bdin { from { opacity: 0; } to { opacity: 1; } }
@keyframes bdout { from { opacity: 1; } to { opacity: 0; } }
.cfdlg.flying, .cfdlg.closing { overflow: visible; }
.cf-nav { transition: opacity .35s .15s; }
.cfdlg.flying .cf-nav, .cfdlg.closing .cf-nav { opacity: 0; transition-delay: 0s; }
.cf-book { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); will-change: transform; }
.cf-book.closed .cf-left { opacity: 0; }
.cf-cover { left: 50%; right: 0; display: none; transform: none; backface-visibility: visible; -webkit-backface-visibility: visible; transform-style: preserve-3d;
  background: none; box-shadow: none; z-index: 6; animation: none !important; }
.cv-front, .cv-back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background-color: var(--manila); }
.cv-front { border-radius: 0 6px 6px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; color: #5d4720;
  background-image: var(--grain), radial-gradient(ellipse at 30% 18%, rgba(255, 255, 255, .2), transparent 60%), linear-gradient(90deg, rgba(0, 0, 0, .24), transparent 7%);
  box-shadow: 0 40px 70px -26px rgba(0, 0, 0, .95), inset -2px 0 0 rgba(0, 0, 0, .08); }
.cv-back { transform: rotateY(180deg); border-radius: 6px 0 0 6px; background-image: var(--grain), linear-gradient(270deg, rgba(0, 0, 0, .22), transparent 8%); }
.cv-tab { position: absolute; top: -26px; right: 46px; padding: 8px 20px 12px; background-color: var(--manila); background-image: var(--grain); border-radius: 7px 7px 0 0;
  font: 400 12px/1 var(--type); letter-spacing: .16em; }
.cv-label { width: 72%; padding: 16px 20px 18px; background: #fbfaf6; background-image: var(--grain); text-align: center; color: var(--ink); transform: rotate(-1.5deg);
  border-left: 6px solid var(--red); box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .55); }
.cv-label small { display: block; font: 400 11px/1.5 var(--type); letter-spacing: .16em; color: var(--muted); }
.cv-label b { display: block; margin: 6px 0; font: 400 56px/1 var(--head); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-conf { padding: 6px 18px; border: 4px solid var(--red); border-radius: 4px; color: var(--red); font: 400 32px/1 var(--head); letter-spacing: .18em; transform: rotate(-7deg);
  -webkit-mask: url("/img/ink.png") 0 0 / 150px 150px repeat; mask: url("/img/ink.png") 0 0 / 150px 150px repeat; }
.cv-ring { position: absolute; left: 10%; bottom: 8%; width: 130px; height: 130px; border-radius: 50%; border: 9px solid rgba(118, 74, 32, .2); transform: scaleY(.92) rotate(20deg);
  box-shadow: inset 0 0 6px rgba(118, 74, 32, .25); }
.cv-tie { position: absolute; right: 18px; top: 50%; width: 40px; height: 130px; margin-top: -65px; overflow: visible; }
.cv-tie circle { fill: #c9a25d; stroke: #8a6a35; stroke-width: 2; }
.cv-tie path { fill: none; stroke: #a8222b; stroke-width: 2.5; stroke-linecap: round; }

/* the report: a stack of paper, a staple, punched holes, a signature */
.cf-right { box-shadow: 0 1px 0 #fff8 inset, 5px 6px 0 -1px #ddd5c3, 10px 12px 0 -2px #cbc2ae, 0 34px 60px -24px rgba(0, 0, 0, .95);
}
.cf-right .sheet-head { padding-left: 54px; }
.cf-right::before { content: ""; position: absolute; left: 16px; top: 9px; width: 30px; height: 5px; border-radius: 2px; z-index: 2;
  background: linear-gradient(180deg, #f2f4f7, #8b9097); transform: rotate(-32deg); box-shadow: 0 1px 1px rgba(0, 0, 0, .45); }
.cf-sign { position: relative; display: flex; align-items: baseline; gap: 12px; margin: 18px 22px 4px; font: 400 11.5px/1 var(--type); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cf-sign b { font: 700 32px/1 var(--hand); text-transform: none; letter-spacing: 0; color: #22357a; transform: rotate(-3deg); }
.cf-sign svg { position: absolute; left: 118px; bottom: -12px; width: 170px; height: 18px; overflow: visible; }
.cf-sign path { fill: none; stroke: #22357a; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 200; }

/* the contents arrive once the cover is open */
.cf-book.ready .cf-pol { animation: poldrop .6s cubic-bezier(.3, 1.3, .5, 1) both; }
@keyframes poldrop { from { opacity: 0; transform: translateY(-34px) rotate(-14deg) scale(1.08); } to { opacity: 1; transform: rotate(-3deg); } }
.cf-book.ready .cf-sym, .cf-book.ready .cf-name { animation: fadeup .45s .15s both; }
@keyframes fadeup { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cf-book.ready .cf-stamp .stamp { animation: press .55s .32s cubic-bezier(.2, 1.4, .4, 1) both; }
.cf-book.ready .cf-quip { animation: stickq .45s .65s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes stickq { from { opacity: 0; transform: rotate(-14deg) scale(1.3); } to { opacity: 1; transform: rotate(-2.5deg); } }
.cf-book.ready .cf-mint { animation: fadeup .4s .8s both; }
.cf-book.ready .cf-sign path { animation: sign 1.1s 1.2s ease-out both; }
@keyframes sign { from { stroke-dashoffset: 200; } to { stroke-dashoffset: 0; } }

@media (max-width: 760px) { .cf-book { grid-template-columns: 1fr; } .cf-right .sheet-head { padding-left: 50px; } }
@media (prefers-reduced-motion: reduce) {
  .file, .case, #hero-file { transition: none; }
  .cf-book.ready *, .files > .deal, .ledger > .deal, .cork > .deal, .chalk.write { animation: none !important; }
  .cf-sign path { stroke-dasharray: none; }
}

/* ===== v24: LIVE. The wire (ticker), live activity on every file, numbers that blink when they move ===== */
@keyframes onair { 50% { opacity: .2; } }
.live-row { display: flex; align-items: center; gap: 9px; min-height: 22px; font-size: 12.5px; color: var(--muted); border-top: 1px dashed #c9c1ae; padding-top: 8px; }
.live-row .pulse { position: relative; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: #c42630; }
.live-row.real .pulse { background: var(--green); }
.live-row .pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ring 1.8s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(3.2); opacity: 0; } }
.live-row.hot [data-live="act"] { color: var(--red); }
.live-row.hot [data-live="act"]::after { content: "..."; display: inline-block; width: 0; overflow: hidden; vertical-align: bottom; animation: typing 1.2s steps(4) infinite; }
@keyframes typing { to { width: 2.2ch; } }
.live-row .chg { margin-left: auto; white-space: nowrap; font-size: 12px; }
.chg.up { color: var(--green); } .chg.down { color: var(--red); }
.blip-up { animation: blipup 1.6s ease-out; border-radius: 2px; }
.blip-down { animation: blipdown 1.6s ease-out; border-radius: 2px; }
@keyframes blipup { 0%, 15% { background-color: rgba(95, 211, 154, .6); } 100% { background-color: transparent; } }
@keyframes blipdown { 0%, 15% { background-color: rgba(255, 110, 120, .55); } 100% { background-color: transparent; } }
.case-stamp.restamp { animation: press .55s cubic-bezier(.2, 1.4, .4, 1) both; }
@media (prefers-reduced-motion: reduce) { .live-row .pulse::after, .live-row.hot [data-live="act"]::after { animation: none; } }

/* ===== v29: the game gets its own room. A detective's office door on the page; the line-up room is full screen ===== */
html.in-room { overflow: hidden; }
.play-grid { align-items: start; }
.play-head h2 { margin-top: 2px; }
.gate { display: flex; align-items: flex-end; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.door { position: relative; display: block; width: 220px; height: 320px; flex: 0 0 auto; border-radius: 5px 5px 0 0; text-decoration: none; cursor: pointer;
  background: linear-gradient(90deg, #3f2716, #6a4325 18%, #5b391f 50%, #6a4325 82%, #3f2716); transform-origin: 0 50%;
  box-shadow: inset 0 0 0 9px #2d1b0e, inset 0 0 0 11px #7b5534, 0 34px 50px -22px rgba(0, 0, 0, .95);
  transform: perspective(900px) rotateY(0deg); transition: transform .55s cubic-bezier(.3, .8, .2, 1); }
.door::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .7; border-radius: inherit; pointer-events: none; }
.door .glass { position: absolute; left: 24px; right: 24px; top: 24px; height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  border: 4px solid #2d1b0e; background: linear-gradient(165deg, rgba(255, 244, 214, .9), rgba(214, 198, 160, .78)); box-shadow: inset 0 0 26px rgba(255, 214, 130, .35); transition: box-shadow .4s, background .4s; }
.door .glass small { font: 400 8.5px/1.3 var(--type); letter-spacing: .16em; color: #7a5a1c; }
.door .glass b { font: 400 30px/1 var(--head); letter-spacing: .08em; color: #8a6118; text-shadow: 0 1px 0 rgba(255, 240, 200, .7), 0 -1px 0 rgba(60, 40, 10, .35); }
.door .glass em { font: 400 11px/1 var(--type); font-style: normal; letter-spacing: .12em; color: #6b4a14; text-transform: uppercase; }
.door .panel { position: absolute; left: 30px; right: 30px; height: 46px; border: 3px solid #3a2413; box-shadow: inset 0 0 0 2px #7b5534; border-radius: 2px; }
.door .panel.p1 { top: 196px; } .door .panel.p2 { top: 254px; }
.door .knob { position: absolute; right: 18px; top: 178px; width: 18px; height: 18px; border-radius: 50%; z-index: 1;
  background: radial-gradient(circle at 35% 35%, #fff1c2, #c99a3d 55%, #6b4a14); box-shadow: 0 3px 4px rgba(0, 0, 0, .6); }
.door .spill { position: absolute; top: 0; bottom: 0; right: -4px; width: 4px; background: #ffe7a8; opacity: 0; box-shadow: 0 0 22px 8px rgba(255, 220, 140, .55); transition: opacity .4s; }
.door:hover, .door:focus-visible { transform: perspective(900px) rotateY(-9deg); }
.door:hover .glass, .door:focus-visible .glass { background: linear-gradient(165deg, rgba(255, 248, 225, .98), rgba(240, 222, 175, .9)); box-shadow: inset 0 0 40px rgba(255, 200, 90, .65), 0 0 30px rgba(255, 210, 120, .25); }
.door:hover .spill, .door:focus-visible .spill { opacity: .9; }
.door.opening { transform: perspective(900px) rotateY(-78deg); transition-duration: .45s; }
.door.opening .spill { opacity: 1; width: 30px; }
.gate-side { display: flex; flex-direction: column; gap: 12px; max-width: 320px; padding-bottom: 6px; }
.gate-status { font-size: 15px; color: var(--paper2); line-height: 1.45; }
.gate-rank { font-size: 13px; color: var(--mark); letter-spacing: .04em; }
.gate-side .btn { align-self: flex-start; }

.gameroom { position: fixed; inset: 0; z-index: 35; overflow-y: auto; overscroll-behavior: contain; color: var(--light);
  background: radial-gradient(ellipse at 50% -10%, #45403a 0%, #24211d 38%, #121110 78%); }
.gameroom::before { content: ""; position: fixed; inset: 0; background-image: var(--grain); opacity: .5; pointer-events: none; }
.gameroom::after { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 35%, transparent 45%, rgba(0, 0, 0, .55) 100%); }
.gameroom.entering { animation: roomin .7s cubic-bezier(.2, .8, .2, 1) both; }
.gameroom.leaving { animation: roomout .33s ease-in both; }
@keyframes roomin { from { opacity: 0; transform: scale(1.06); filter: brightness(.2); } 55% { filter: brightness(.6); } to { opacity: 1; transform: none; filter: none; } }
@keyframes roomout { to { opacity: 0; transform: scale(.98); } }
.gr-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 12px max(16px, calc((100% - 1128px) / 2)); background: rgba(14, 13, 12, .92); border-bottom: 1px solid #3a3631; }
.gr-top .score { margin-left: auto; }
.gr-exit { font: 400 13px/1 var(--type); letter-spacing: .06em; color: var(--paper2); background: transparent; border: 1.5px solid #5a554b; border-radius: 4px; padding: 9px 12px; cursor: pointer; }
.gr-exit:hover { border-color: var(--paper2); }
.gr-intro { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: 150px 16px 90px; text-align: center; }
.gr-intro .lamp { top: 0; }
.gameroom.entering .gr-intro .beam { animation: flicker 1.1s .15s steps(1) both; }
@keyframes flicker { 0% { opacity: 0; } 18% { opacity: .9; } 26% { opacity: .1; } 38% { opacity: 1; } 46% { opacity: .3; } 60%, 100% { opacity: 1; } }
.gr-title { min-height: 2.1em; margin: 6px 0 30px; font: 400 clamp(38px, 6vw, 70px)/1.02 var(--head); text-transform: uppercase; color: var(--paper2); }
.gr-brief { position: relative; text-align: left; transform: rotate(-1deg); margin: 0 auto 36px; max-width: 600px; }
.gameroom.entering .gr-brief { animation: briefin .7s .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes briefin { from { opacity: 0; transform: translateY(60px) rotate(-6deg); } to { opacity: 1; transform: rotate(-1deg); } }
.gr-rules { margin: 0; padding: 18px 26px 26px 46px; font-size: 16.5px; line-height: 1.55; color: var(--ink); display: grid; gap: 10px; }
.gr-rules b { font-weight: 600; }
.gr-tip { position: absolute; right: -40px; bottom: -34px; width: 190px; transform: rotate(7deg); font-size: 22px; }
.btn.big { font-size: 22px; padding: 20px 34px; }
.gameroom.entering #gr-start { animation: fadeup .5s .9s both; }
.gr-game { position: relative; z-index: 2; max-width: 1160px; margin: 0 auto; padding: 26px 16px 90px; }
.gr-game .pair { margin-top: 10px; }
@media (max-width: 760px) {
  .gr-top { gap: 10px; }
  .gr-top .brand span:last-child { display: none; }
  .gr-top .score { gap: 12px; font-size: 11px; }
  .gr-top .score .rank { display: none; }
  .gr-intro { padding-top: 120px; }
  .gr-tip { right: -6px; bottom: -40px; width: 150px; font-size: 19px; }
  .door { width: 190px; height: 290px; }
  .door .panel.p1 { top: 186px; } .door .panel.p2 { top: 238px; } .door .knob { top: 166px; } .door .glass { height: 140px; }
}
@media (prefers-reduced-motion: reduce) { .door, .gameroom.entering, .gameroom.leaving, .gameroom.entering .gr-brief, .gameroom.entering #gr-start, .gameroom.entering .gr-intro .beam { animation: none; transition: none; } }

/* v30: room polish */
.gate { flex-wrap: nowrap; align-items: center; }
.gate-side { flex: 1; min-width: 0; }
.gr-brief { margin-bottom: 70px; }
.gr-tip { right: -64px; bottom: -58px; }
@media (max-width: 760px) {
  .gate { flex-wrap: wrap; }
  .gr-exit { padding: 8px 10px; font-size: 0; } .gr-exit::after { content: "✕"; font-size: 16px; }
  .gr-top { flex-wrap: nowrap; } .gr-top .score { margin-left: auto; }
  .gr-tip { right: -6px; bottom: -64px; }
}
@media (max-width: 480px) {
  .sus-body { grid-template-columns: 1fr; }
  .sus-body .polaroid { width: 62%; margin: 0 auto; transform: rotate(-3deg); }
}

/* ===== v31: user experience. Phone menu, fees in dollars, keyboard play, gentler loupe, back to top ===== */
.menubtn { display: none; margin-left: auto; font: 400 14px/1 var(--type); letter-spacing: .06em; color: var(--paper2); background: transparent; border: 1.5px solid #5a554b; border-radius: 4px; padding: 10px 14px; cursor: pointer; }
.menubtn[aria-expanded="true"] { background: var(--paper2); color: var(--ink); border-color: var(--paper2); }
.menu { position: absolute; left: 0; right: 0; top: 100%; z-index: 25; display: grid; gap: 2px; padding: 10px 16px 18px; background: #151413; border-bottom: 1px solid #3a3631; box-shadow: 0 30px 40px -20px rgba(0, 0, 0, .9); }
.menu a { display: block; padding: 13px 12px; border-radius: 4px; text-decoration: none; color: var(--paper2); }
.menu a:hover, .menu a:active { background: #24211d; }
.menu a b { display: block; font: 400 22px/1.1 var(--head); text-transform: uppercase; letter-spacing: .03em; }
.menu a small { display: block; margin-top: 3px; font: 400 12.5px/1.3 var(--type); color: var(--faint); }
.menu-row { display: flex; gap: 10px; padding: 12px 12px 0; }
.menu-row .howbtn { margin: 0; padding: 11px 14px; font-size: 14px; }
@media (max-width: 680px) {
  .menubtn { display: inline-flex; gap: 6px; align-items: center; }
  .top-in > .howbtn { display: none; }
}
@media (min-width: 681px) { .menu { display: none !important; } }

kbd { display: inline-block; min-width: 1.6em; padding: 2px 6px 1px; margin-right: 6px; border: 1.5px solid currentColor; border-radius: 4px; font: 400 .78em/1.3 var(--type); text-align: center; opacity: .75; }
.keyhint { grid-column: 1 / -1; margin-top: -6px; font-size: 12.5px; color: var(--faint); text-align: center; }
.keyhint kbd { margin: 0 2px; font-size: 11px; }
@media (pointer: coarse) { .pick kbd { display: none; } }
.empty .nextin { display: block; margin-top: 12px; font-size: 14px; color: var(--mark); }

.cf-nav { position: sticky; bottom: -18px; z-index: 7; margin: 14px -8px -18px; padding: 14px 8px 18px; background: linear-gradient(transparent, rgba(10, 9, 8, .96) 32%); }

.totop { position: fixed; right: 18px; bottom: 18px; z-index: 18; display: inline-flex; flex-direction: column; align-items: center; width: 50px; height: 50px; justify-content: center;
  border: 1.5px solid #5a554b; border-radius: 50%; background: rgba(20, 19, 18, .92); color: var(--paper2); font: 400 18px/1 var(--type); cursor: pointer; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .8); }
.totop span { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; margin-top: 2px; }
.totop:hover { border-color: var(--paper2); }
html.in-room .totop { display: none; }

.ask-hint { margin-top: 10px; font-size: 13px; color: var(--faint); }
.ask-hint .linkbtn { color: var(--mark); }

/* ===== v33: the verdict never hides the numbers; say which suspect was yours; legend for newcomers ===== */
.suspect .stamp { top: auto; bottom: 22px; right: 24px; }
.suspect .sheet { padding-bottom: 6px; }
.revealed .pick:not(.mine) { visibility: hidden; }
.btn.pick.mine, .btn.pick.mine:disabled { opacity: 1; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px #8f8878; transform: none; }
.note.mock { top: 12px; right: -10px; }
.gameroom:focus, .gr-game:focus { outline: none; }
.gr-legend { margin: 0; padding: 14px 26px 20px; border-top: 1px dashed #c9c1ae; display: grid; gap: 7px; font-size: 13.5px; color: var(--muted); }
.gr-legend div { display: flex; gap: 10px; align-items: baseline; }
.gr-legend dt { flex: 0 0 92px; font: 400 11.5px/1.3 var(--type); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.gr-legend dd { margin: 0; line-height: 1.35; }
.gr-rules { padding-bottom: 16px; }
.gr-tip { bottom: -70px; }
@media (max-width: 480px) { .suspect .stamp { right: 12px; bottom: 18px; font-size: 20px; padding: 5px 9px 6px; border-width: 3px; } .suspect .stamp small { font-size: 7px; } }
@media (max-width: 760px) { .note.mock { top: 8px; right: 4px; } .gr-tip { bottom: -82px; } }

/* ===== v34: nothing important below the fold: Start always in view; on phones the verdict and Next sit in a bar at the bottom ===== */
#gr-start { position: sticky; bottom: 18px; z-index: 4; box-shadow: 0 2px 0 #8f8878, 0 16px 34px -8px rgba(0, 0, 0, .95); }
@media (max-width: 760px) {
  #gr-start { width: 100%; justify-content: center; }
  .gr-intro { padding-top: 104px; padding-bottom: 28px; }
  .gr-tip { display: none; }
  .gr-brief { margin-bottom: 22px; }
  .gr-game { padding-bottom: 24px; }
  .gr-verdict { display: none; }
  .gr-verdict.on { display: block; position: sticky; bottom: 0; z-index: 8; margin: 14px -16px -24px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); background: rgba(14, 13, 12, .97); border-top: 1px solid #3a3631; box-shadow: 0 -14px 26px -12px rgba(0, 0, 0, .9); animation: fadeup .3s both; }
  .gr-verdict .verdict { margin-top: 0; min-height: 0; font-size: 14px; line-height: 1.4; }
  .gr-verdict .game-actions { margin-top: 10px; }
  .gr-verdict .game-actions .btn { flex: 1 1 auto; justify-content: center; padding: 14px 16px; font-size: 16px; }
}
@media (max-width: 480px) { .gr-top .score span:nth-child(3) { display: none; } }

/* ===== v36: the folder fits the screen; performance review; streak and promotion on the stamp; a chalkboard that talks back ===== */
.cfdlg { overflow-x: hidden; }
.cf-pol { width: min(205px, 70%); margin: 8px 0 2px; }
.cf-left { padding: 26px 22px 20px; gap: 7px; }
.cf-sym { font-size: 34px; } .cf-stamp .stamp { font-size: 30px; }
.cf-h { padding-top: 12px; font-size: 26px; }
.cf-find { margin: 6px 22px 4px; font-size: 14.5px; line-height: 1.45; min-height: 0; }
.cf-right .row { padding-bottom: 4px; }
.cf-right .rows { gap: 5px; }
.cf-launch { margin-top: 10px; padding: 7px 11px; font-size: 13.5px; }
.cf-links { margin-top: 10px; }
.cf-fine { margin-top: 8px; font-size: 12px; }
.cf-sign { margin-top: 8px; }
.cf-sign b { font-size: 26px; }
@media (max-width: 760px) { .cf-pol { width: 170px; } }
.note[data-mint] { cursor: pointer; }
.slam span small { display: block; margin-top: 4px; font: 400 clamp(13px, 1.8vw, 20px)/1.2 var(--type); letter-spacing: .06em; text-align: center; }
.review { grid-column: 1 / -1; width: 100%; max-width: 760px; margin: 18px auto 0; transform: rotate(-.7deg); animation: briefin .6s cubic-bezier(.2, .8, .2, 1) both; }
.rv-body { display: flex; align-items: center; gap: 30px; padding: 26px 30px 30px; }
.rv-score { flex: 0 0 auto; text-align: center; color: var(--ink); }
.rv-score b { display: block; font: 400 110px/.95 var(--head); }
.rv-score small { font: 400 15px/1 var(--type); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rv-text { min-width: 0; color: var(--ink); }
.rv-text h3 { font: 400 32px/1.05 var(--head); text-transform: uppercase; }
.rv-text p { margin-top: 8px; font-size: 15.5px; line-height: 1.45; }
.rv-grid { display: flex; gap: 7px; margin-top: 14px; }
.rv-grid i { width: 26px; height: 26px; border-radius: 2px; } .rv-grid .g { background: var(--green); } .rv-grid .r { background: var(--red); }
.review .nextin { margin-top: 12px; font: 400 13.5px/1.3 var(--type); color: var(--muted); }
.rv-stamp { position: absolute; right: 22px; top: 44px; font-size: 26px; transform: rotate(9deg); animation: press .6s .35s cubic-bezier(.2, 1.4, .4, 1) both; }
.ledge .eraser { cursor: pointer; }
.chalk-say { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 20px; text-align: center; font: 700 clamp(28px, 3.4vw, 42px)/1.1 var(--hand); color: var(--chalk); opacity: 0; pointer-events: none; transition: opacity .3s .15s; }
.chalkboard .chalk { transition: opacity .3s; }
.wiped .chalk { opacity: 0; }
.wiped .chalk-say { opacity: 1; }
@media (max-width: 680px) {
  .rv-body { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; }
  .rv-score b { font-size: 76px; display: inline; } .rv-score { display: flex; align-items: baseline; gap: 8px; }
  .rv-stamp { font-size: 19px; right: 12px; top: 44px; }
  .rv-text h3 { font-size: 26px; }
}

.rv-stamp { top: auto; bottom: 20px; right: 24px; }
@media (max-width: 680px) { .rv-stamp { top: auto; bottom: 16px; right: 12px; } }

/* ===== v38: token banners as surveillance footage ===== */
.f-banner { position: relative; height: 84px; margin: -16px -16px 0; overflow: hidden; background: #1d1b19; }
.f-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.12) brightness(.82); transition: filter .4s; }
.file:hover .f-banner img { filter: none; }
.f-banner::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .2) 0 1px, transparent 1px 3px), radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(0, 0, 0, .55) 100%); transition: opacity .4s; }
.file:hover .f-banner::after { opacity: .35; }
.f-banner .cam { position: absolute; left: 9px; top: 8px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; font: 400 10px/1 var(--type); letter-spacing: .14em; color: #f3efe4; text-shadow: 0 1px 2px #000; }
.f-banner .cam i { width: 7px; height: 7px; border-radius: 50%; background: #e0303a; animation: onair 1.4s ease-in-out infinite; }
.nofoot { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 12px; text-align: center; font: 400 11px/1.3 var(--type); letter-spacing: .16em; color: #7d776d; }
.file .stamp { top: 110px; }
.cf-cam { position: relative; align-self: stretch; height: 118px; margin-top: 6px; background: #1d1b19; box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .6); transform: rotate(.8deg); border: 5px solid #fbfaf6; }
.cf-cam img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cf-cam .tape { top: -13px; }
.cf-cam em { position: absolute; left: 6px; bottom: 5px; font: 400 9.5px/1 var(--type); font-style: normal; letter-spacing: .14em; color: #f3efe4; background: rgba(0, 0, 0, .55); padding: 3px 5px; }
.cf-pol.over { margin-top: -44px; width: min(178px, 62%); z-index: 2; }
@media (prefers-reduced-motion: reduce) { .f-banner .cam i { animation: none; } }

.cf-pol.over { margin-top: -22px; width: min(170px, 58%); }

/* ===== v40: a clear order. Two rooms side by side, verdicts with their summary, a shorter board ===== */
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 64px; align-items: start; }
.rm h2 { font-size: clamp(34px, 4vw, 50px); }
.rm .sub { font-size: 16px; }
.rooms .gate { margin-top: 24px; }
.form27 { margin-top: 24px; padding-bottom: 20px; transform: rotate(-.7deg); }
.form27 .ask { flex-direction: column; align-items: stretch; gap: 10px; max-width: none; margin: 18px 22px 0; }
.f27-l { font: 400 12px/1 var(--type); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.form27 .ask input { background: #fbf8ef; box-shadow: inset 0 0 0 1.5px #b5ad9a; }
.form27 .ask .btn { align-self: flex-start; background: var(--ink); color: var(--paper2); box-shadow: 0 2px 0 #000, 0 12px 20px -12px rgba(0, 0, 0, .7); }
.form27 .ask-hint { margin: 12px 22px 0; color: var(--muted); }
.form27 .ask-hint .linkbtn { color: var(--red); }
.form27 .ask-msg { min-height: 0; margin: 8px 22px 0; color: var(--red); }
#play .room { margin-top: 40px; }
.today { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); grid-template-areas: "head board" "files files" "more more"; gap: 32px 44px; align-items: center; }
.today-head { grid-area: head; }
.today .board-frame { grid-area: board; }
.today .files { grid-area: files; margin-top: 4px; }
.today .more { grid-area: more; justify-self: start; margin-top: 0; }
.today .tabs { margin-top: 18px; }
@media (max-width: 1080px) {
  .rooms { grid-template-columns: 1fr; }
  .today { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "board" "files" "more"; }
  .today .board-frame { max-width: 600px; }
}

/* ===== v42: no ticker. The $HUMANS chalkboard stays top right; the page keeps a column free for it ===== */
.tboard { position: fixed; top: 68px; right: 14px; width: 248px; z-index: 19; }
html.has-token .tboard { top: 108px; }
.tb-chip { display: none; }
.tb-frame { padding: 8px 8px 0; background: linear-gradient(180deg, #7a5532, #5b3d22); border-radius: 6px; box-shadow: 0 14px 22px -12px rgba(0, 0, 0, .9); }
.tb-slate { padding: 8px 12px 8px; background: var(--slate); border-radius: 2px; color: var(--chalk); font-family: var(--hand); }
.tb-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tb-head b { font: 700 25px/1 var(--hand); color: #ffe680; }
.tb-head span { font: 600 17px/1 var(--hand); opacity: .85; white-space: nowrap; }
.tboard.live .tb-head span { color: #a4f0bd; opacity: 1; } .tboard.live.down .tb-head span { color: #ff9b9b; }
.tb-chart { position: relative; display: block; height: 90px; margin-top: 5px; text-decoration: none; color: inherit; }
.tb-axes { position: absolute; inset: 0; width: 100%; height: 100%; }
.tb-axes path { fill: none; stroke: var(--chalk); stroke-width: 2; stroke-linecap: round; opacity: .75; vector-effect: non-scaling-stroke; }
.tb-axes .tb-dash { stroke-dasharray: 2 9; opacity: .5; }
#tb-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tb-notlive { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) rotate(-5deg); padding: 3px 13px 2px; border: 2.5px solid #ff9b9b; border-radius: 50% 46% 52% 48%; font: 700 22px/1.1 var(--hand); color: #ff9b9b; white-space: nowrap; }
.tboard.live .tb-notlive { display: none; }
.tboard.drawn .tb-dash { display: none; }
.tb-line { margin-top: 4px; font: 600 17px/1.12 var(--hand); opacity: .92; }
.tb-ledge { position: relative; height: 8px; margin: 0 -8px; background: linear-gradient(180deg, #6a4729, #4c321c); border-radius: 0 0 6px 6px; }
.tb-ledge i { position: absolute; top: -4px; left: 16%; width: 30px; height: 7px; background: #f4f2e8; border-radius: 2px; transform: rotate(-3deg); }
.tb-ledge i.p2 { left: 32%; width: 20px; background: #ffd0d0; transform: rotate(5deg); }
html.in-room .tboard { visibility: hidden; }
@media (min-width: 1280px) and (max-width: 1739px) { html.with-tboard .top, html.with-tboard main, html.with-tboard .foot { padding-right: 262px; } }
@media (max-width: 1279px) {
  .tboard { top: 64px; right: 10px; width: auto; }
  html.has-token .tboard { top: 104px; }
  .tb-chip { display: inline-flex; align-items: baseline; gap: 7px; float: right; padding: 7px 11px 6px; background: var(--slate); color: var(--chalk); border: 3px solid #6a4729; border-radius: 5px; font: 600 17px/1 var(--hand); cursor: pointer; box-shadow: 0 8px 14px -6px rgba(0, 0, 0, .85); }
  .tb-chip b { color: #ffe680; font-weight: 700; }
  .tboard.live .tb-chip span { color: #a4f0bd; } .tboard.live.down .tb-chip span { color: #ff9b9b; }
  .tb-frame { display: none; clear: both; width: 248px; }
  .tboard.open .tb-frame { display: block; margin-top: 44px; }
}

/* ===== v43: speed, measured with a 4x slower CPU. No endless animations on the page; sections off screen are not drawn ===== */
.live-row .pulse::after, .f-banner .cam i { animation: none; }
.live-row .pulse::after { display: none; }
.live-row.hot [data-live="act"]::after { animation: none; width: auto; overflow: visible; }
.file, .case { will-change: auto; }
#today, #board, #closed { content-visibility: auto; }
#today { contain-intrinsic-size: auto 1400px; } #board { contain-intrinsic-size: auto 1080px; } #closed { contain-intrinsic-size: auto 1020px; }
@media (max-width: 680px) { #today { contain-intrinsic-size: auto 2100px; } #board { contain-intrinsic-size: auto 1480px; } #closed { contain-intrinsic-size: auto 1360px; } }

/* the board hangs from the sticky header: always right under it, whatever sits above */
.tboard, html.has-token .tboard { position: absolute; top: calc(100% + 10px); right: 14px; }
@media (max-width: 1279px) { .tboard, html.has-token .tboard { top: calc(100% + 8px); right: 10px; } }

/* keep the header on one line and the headline in scale while a column is reserved for the board */
.brand { white-space: nowrap; }
@media (min-width: 1280px) and (max-width: 1739px) {
  html.with-tboard .hero h1 { font-size: clamp(52px, calc((100vw - 262px) * .084), 112px); }
}
@media (min-width: 1280px) and (max-width: 1439px) {
  html.with-tboard .top-in { gap: 10px; }
  html.with-tboard .nav { gap: 0; } html.with-tboard .nav a { padding: 9px 7px; font-size: 13px; }
  html.with-tboard .howbtn { padding: 8px 9px; font-size: 12.5px; }
}

/* v46: the $HUMANS chart chalkboard stays in the code but is off. To show it: "tboard": true in data/config.json. Its place is set in the .tboard rules above */
html:not(.with-tboard) .tboard { display: none; }

/* ===== v47: the opening sequence. Lights on, words stamped one by one, highlighter, the case file thrown on the desk,
   the photo develops, FAKE comes down, the post-its are slapped on. About 2.6 s, played once per page load, any input skips it ===== */
.hero h1 .w { display: inline-block; }
.lights { display: none; }
html.intro .lights { display: block; position: fixed; inset: 0; z-index: 60; pointer-events: none; background: #050505; animation: lights .62s steps(1, end) both; }
@keyframes lights { 0% { opacity: 1; } 22% { opacity: .55; } 30% { opacity: .96; } 44% { opacity: .3; } 52% { opacity: .82; } 64% { opacity: .12; } 100% { opacity: 0; } }
html.intro .top { animation: fadein .45s .35s both; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
html.intro .hero .kicker { animation: typeon .55s .4s steps(28, end) both; }
@keyframes typeon { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
html.intro .hero h1 .w { animation: slamw .36s var(--d) cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes slamw { 0% { opacity: 0; transform: scale(2.3) rotate(-7deg); } 60% { opacity: 1; transform: scale(.93) rotate(1deg); } 100% { opacity: 1; transform: none; } }
mark.w { background-repeat: no-repeat; background-size: 100% 100%; }
html.intro .hero h1 mark.w { animation: slamw .36s var(--d) cubic-bezier(.2, 1.5, .4, 1) both, highlight .45s 1.45s cubic-bezier(.6, 0, .3, 1) both; }
@keyframes highlight { from { background-size: 0% 100%; color: var(--paper2); } to { background-size: 100% 100%; color: var(--ink); } }
html.intro .hero .coffee { animation: cupdown .5s .75s ease-out both; }
@keyframes cupdown { from { opacity: 0; transform: rotate(18deg) scale(1.25); } to { opacity: 1; transform: rotate(18deg) scaleY(.94); } }
html.intro .hero-file .folder { animation: throwf .6s .9s cubic-bezier(.2, .9, .25, 1.05) both; }
@keyframes throwf { from { opacity: 0; transform: translate(220px, -80px) rotate(24deg); } to { opacity: 1; transform: rotate(2.5deg); } }
html.intro .hero-sheet { animation: throws .6s 1.1s cubic-bezier(.2, .9, .25, 1.05) both; }
@keyframes throws { from { opacity: 0; transform: translate(-60px, -120px) rotate(-16deg); } to { opacity: 1; transform: rotate(-2deg); } }
html.intro .hero-sheet .ph { animation: develop 1.2s 1.4s ease-out both; }
@keyframes develop { from { filter: brightness(2.8) saturate(0) contrast(.55); } to { filter: none; } }
html.intro .hero-stamp { animation: press .5s 1.75s cubic-bezier(.2, 1.4, .4, 1) both; }
html.intro .hero-file .note { animation: splat .42s cubic-bezier(.2, 1.3, .4, 1) both; }
html.intro .hero-file .note.n-yellow { animation-delay: 2.05s; }
html.intro .hero-file .note.n-pink { animation-delay: 2.28s; }
@keyframes splat { 0% { opacity: 0; transform: translateY(-50px) rotate(calc(var(--r, -3deg) + 16deg)) scale(1.9); }
  55% { opacity: 1; transform: rotate(var(--r, -3deg)) scale(1.08, .9); } 78% { transform: rotate(var(--r, -3deg)) scale(.97, 1.03); } 100% { opacity: 1; transform: rotate(var(--r, -3deg)); } }
html.intro .hero .lead { animation: fadeup .5s 1.6s both; }
html.intro .hero .tally { animation: fadeup .5s 1.85s both; }
html.intro .hero .hero-cta { animation: fadeup .5s 2.1s both; }
html.intro .hero .updated { animation: fadeup .5s 2.3s both; }
/* the evidence board: post-its are slapped on too */
.cork > .note.deal { animation-name: splatc; animation-duration: .5s; }
@keyframes splatc { 0% { opacity: 0; transform: translate(var(--tx, 0px), calc(var(--ty, 0px) - 50px)) rotate(calc(var(--r, -2deg) + 16deg)) scale(1.7); }
  55% { opacity: 1; transform: translate(var(--tx, 0px), var(--ty, 0px)) rotate(var(--r, -2deg)) scale(1.07, .9); }
  100% { opacity: 1; transform: translate(var(--tx, 0px), var(--ty, 0px)) rotate(var(--r, -2deg)); } }

/* ===== v48: every section enters the scene (one-shot animations only, played the first time it comes on screen) ===== */
h2 .w { display: inline-block; }
.rv .act:not(.on) > .kicker, .rv .act:not(.on) > h2 .w, .rv .act:not(.on) > .sub, .rv .act:not(.on) > .gate,
.rv .act:not(.on) > .form27, .rv .act:not(.on) > .tabs { opacity: 0; }
.act.on > .kicker { animation: typeon .5s steps(26, end) both; }
.act.on > h2 .w { animation: slamw .36s calc(.12s + var(--i) * .11s) cubic-bezier(.2, 1.5, .4, 1) both; }
.act.on > .sub { animation: fadeup .5s calc(.2s + var(--n) * .11s) both; }
.act.on > .tabs { animation: fadeup .45s calc(.3s + var(--n) * .11s) both; }
/* the door arrives and the light behind the glass flickers on */
.act.on > .gate { animation: fadeup .5s calc(.25s + var(--n) * .11s) both; }
.act.on .door .glass { animation: glasson .9s calc(.55s + var(--n) * .11s) steps(1, end) both; }
@keyframes glasson { 0% { filter: brightness(.25); } 20% { filter: brightness(.9); } 30% { filter: brightness(.35); } 45% { filter: brightness(1.15); } 55% { filter: brightness(.6); } 100% { filter: none; } }
/* Form 27-B is pushed across the desk */
.act.on > .form27 { animation: paperin .6s calc(.25s + var(--n) * .11s) cubic-bezier(.2, .9, .25, 1.05) both; }
@keyframes paperin { from { opacity: 0; transform: translate(90px, 20px) rotate(6deg); } to { opacity: 1; transform: rotate(-.7deg); } }
/* stamps come down on the cards once they land */
.files > .deal .stamp { animation: stampf .4s calc(var(--d, 0ms) + .3s) cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes stampf { 0% { opacity: 0; transform: rotate(-9deg) scale(1.9); } 60% { opacity: 1; transform: rotate(-9deg) scale(.94); } 100% { opacity: 1; transform: rotate(-9deg); } }
.ledger > .deal .case-stamp { animation: stampc .4s calc(var(--d, 0ms) + .3s) cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes stampc { 0% { opacity: 0; transform: rotate(-8deg) scale(1.9); } 60% { opacity: .9; transform: rotate(-8deg) scale(.94); } 100% { opacity: .9; transform: rotate(-8deg); } }
/* the corkboard is hung, WANTED is printed on the posters */
#cork.seen { animation: corkin .55s cubic-bezier(.2, .9, .25, 1.05) both; }
@keyframes corkin { from { opacity: 0; transform: translateY(40px) scale(.97); } to { opacity: 1; transform: none; } }
.cork > .deal.poster h3 { animation: slamw .36s calc(var(--d, 0ms) + .26s) cubic-bezier(.2, 1.5, .4, 1) both; }
@media (prefers-reduced-motion: reduce) { .act.on *, #cork.seen { animation: none !important; } }

/* ===== v49: Exhibit 0, our own coin in the line-up ===== */
.selfgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 30px 60px; align-items: center; }
.self-file { position: relative; padding-bottom: 96px; transform: rotate(-1.2deg); }
.self-seal { position: absolute; right: 24px; top: 52px; width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; border: 4px solid var(--green); color: var(--green); font: 400 26px/1 var(--head); transform: rotate(-10deg); box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 7px var(--green); }
.self-sym { padding: 16px 20px 8px; font: 400 46px/1 var(--head); color: var(--ink); }
.self-file .rows { padding: 0 20px; }
.self-line { margin: 14px 20px 0; font-size: 14px; line-height: 1.45; color: var(--ink); }
.self-stamp { position: absolute; left: 22px; bottom: 18px; }
.self-stamp .stamp { transform: rotate(-8deg); font-size: 30px; }
.self-stamp.down .stamp { animation: press .55s cubic-bezier(.2, 1.4, .4, 1) both; }
@media (max-width: 900px) { .selfgrid { grid-template-columns: 1fr; } }
.self-seal { width: 54px; height: 54px; top: 40px; font-size: 20px; border-width: 3px; box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 5px var(--green); }
.self-file .rows { margin-top: 6px; }

/* ===== v51: WIRETAP. The mark (a tapped wire through a waveform) replaces the HI seal ===== */
.brand-seal { border: 0 !important; box-shadow: none !important; transform: none !important; color: #ece6d8; width: 36px; height: 36px; }
.brand-seal .mk { width: 100%; height: 100%; display: block; }
.self-seal { border: 0 !important; box-shadow: none !important; color: var(--ink); }
.self-seal .mk { width: 100%; height: 100%; display: block; }

/* v52: the detective pill is the mark */
.brand-seal { width: 40px; height: 40px; } .brand-seal img.mk, .self-seal img.mk { width: 100%; height: 100%; display: block; }
.self-seal { width: 70px !important; height: 70px !important; top: 34px !important; }
/* v55: the transparent pill needs a bit more room than the old round seal */
.brand-seal { width: 50px !important; height: 50px !important; margin: -8px -6px -8px -8px; }
.foot .brand-seal { width: 44px !important; height: 44px !important; }

/* ===== v56: the ranked line-up ===== */
.rk { position: relative; z-index: 2; }
.rk-in { max-width: 820px; margin: 0 auto; padding: 130px 16px 70px; text-align: center; }
.rk-in .lamp { top: 0; }
.rk-form, .rk-rules, .rk-badge { text-align: left; }
.rk-form { max-width: 560px; margin: 0 auto; padding-bottom: 22px; transform: rotate(-.6deg); }
.rk-form > .f27-l { display: block; margin: 18px 22px 8px; }
.rk-form > input { width: calc(100% - 44px); margin: 0 22px; padding: 14px 15px; font-size: 17px; color: var(--ink); background: #fbf8ef; border: 0; border-radius: 3px; box-shadow: inset 0 0 0 1.5px #b5ad9a; }
.rk-wallet { margin: 20px 22px 0; padding-top: 16px; border-top: 1px dashed #c9c1ae; display: grid; gap: 10px; justify-items: start; }
.rk-w-t { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); } .rk-w-t.warn { color: var(--red); }
.rk-w-d { font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.rk-addr { font-size: 14px; color: var(--ink); background: #fbf8ef; padding: 9px 11px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px #b5ad9a; word-break: break-all; }
.rk-secret { width: 100%; font-size: 13px; padding: 11px; background: var(--redact); color: var(--redact); border-radius: 3px; word-break: break-all; cursor: pointer; user-select: all; transition: color .3s; }
.rk-secret.shown { color: #f1df4f; }
.rk-row { display: flex; gap: 10px; flex-wrap: wrap; }
.rk-row .btn.ghost { color: var(--ink); box-shadow: inset 0 0 0 2px #8f8878; }
.rk-check { display: flex; gap: 9px; align-items: center; font-size: 14.5px; color: var(--ink); cursor: pointer; }
.rk-check input { width: 18px; height: 18px; accent-color: var(--green); }
.rk-msg { min-height: 20px; margin: 12px 22px 0; font-size: 13.5px; color: var(--red); }
.rk-in > .rk-msg { color: #ff9b9b; margin: 12px 0 0; }
.rk-desk { display: grid; grid-template-columns: 240px 1fr; gap: 26px; margin: 0 auto 30px; max-width: 760px; }
.rk-badge { padding-bottom: 18px; text-align: center; transform: rotate(-1.5deg); }
.rk-mark { width: 92px; height: 92px; margin: 14px auto 2px; display: block; }
.rk-name { font: 400 30px/1 var(--head); color: var(--ink); text-transform: uppercase; }
.rk-wal, .rk-stat { margin-top: 8px; font-size: 13px; color: var(--muted); }
.rk-rules .gr-rules { padding-bottom: 18px; }
.rk-mini { margin-top: 34px; text-align: left; }
.rk-mini .board-list { margin-top: 10px; }
.rk-play { max-width: 1160px; margin: 0 auto; padding: 22px 16px 60px; }
.rk-hud { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 13px; letter-spacing: .1em; color: var(--faint); }
.rk-hud b { color: var(--paper2); font-size: 20px; margin-left: 6px; font-weight: 400; }
.rk-strikes { display: inline-flex; gap: 7px; }
.rk-strikes i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #5a554b; display: grid; place-items: center; font-style: normal; font: 400 14px/1 var(--head); }
.rk-strikes i.x { border-color: #e2535b; background: #e2535b; color: #1b1a18; animation: press .4s cubic-bezier(.2, 1.4, .4, 1) both; }
.rk-sec { margin-left: auto; font: 400 40px/1 var(--head); color: var(--paper2); min-width: 2ch; text-align: right; }
.rk-sec.hot { color: #ff6b6b; }
.rk-timer { height: 8px; margin-top: 12px; border-radius: 4px; background: #2d2a26; overflow: hidden; }
.rk-timer i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #e2535b, #f1df4f 40%, #5fd39a); transform-origin: left center; }
.rk-timer i.run { animation: drain linear forwards; }
@keyframes drain { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.rk-play .pair { margin-top: 22px; }
.rk-say { min-height: 26px; margin-top: 22px; font-size: 17px; color: var(--paper2); }
.rk-sus .stamp { opacity: 0; }
.rk-sus.revealed .stamp { animation: press .6s .35s cubic-bezier(.2, 1.4, .4, 1) forwards; }
/* the leaderboard */
.ranks-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.round-clock { min-width: 260px; padding: 16px 20px 18px; text-align: center; transform: rotate(1.2deg); color: var(--ink); display: grid; gap: 4px; }
.round-clock span { font-size: 11.5px; letter-spacing: .14em; color: var(--muted); }
.round-clock b { font: 400 54px/1 var(--head); }
.round-clock small { font-size: 13px; color: var(--muted); }
.ranks-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 26px; margin: 30px 0 28px; align-items: start; }
.board-list { list-style: none; margin: 0; padding: 8px 0; }
.board-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 50px; gap: 12px; align-items: center; padding: 10px 18px; border-bottom: 1px dashed #c9c1ae; color: var(--ink); }
.board-list li:last-child { border-bottom: 0; }
.board-list .pos { font: 400 22px/1 var(--head); color: var(--muted); }
.board-list li:nth-child(1) .pos { color: #c99a1d; } .board-list li:nth-child(2) .pos { color: #8e959c; } .board-list li:nth-child(3) .pos { color: #a8693a; }
.board-list b { font: 400 20px/1.1 var(--head); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-list .w { font-size: 12px; color: var(--muted); }
.board-list .sc { font: 400 26px/1 var(--head); text-align: right; }
.board-list li.me { background: rgba(241, 223, 79, .35); }
.board-list .empty-row { display: block; color: var(--muted); font-size: 14px; }
.winners ul { list-style: none; margin: 0; padding: 6px 0 10px; }
.winners li { display: grid; grid-template-columns: 78px minmax(0, 1fr) 36px 70px; gap: 10px; align-items: center; padding: 9px 18px; border-bottom: 1px dashed #c9c1ae; color: var(--ink); font-size: 14px; }
.winners li b { font: 400 17px/1 var(--head); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.winners .sc { font: 400 20px/1 var(--head); text-align: right; } .winners .st { font-size: 11px; color: var(--muted); text-align: right; }
.winners .empty-row { display: block; color: var(--muted); }
@media (max-width: 760px) {
  .rk-in { padding-top: 104px; }
  .rk-desk { grid-template-columns: 1fr; }
  .ranks-grid { grid-template-columns: 1fr; }
  .rk-hud { gap: 12px; } .rk-sec { font-size: 32px; }
  .board-list li { grid-template-columns: 28px minmax(0, 1fr) 40px; } .board-list .w { display: none; }
}
@media (prefers-reduced-motion: reduce) { .rk-timer i.run { animation-duration: 0s !important; } }

/* v57: sign back in with the backup (new browser / cleared storage) */
.rk-back { margin-top: 18px; padding-bottom: 6px; transform: rotate(.5deg); }
.rk-back > * { margin-left: 22px !important; margin-right: 22px !important; }
.rk-back summary { cursor: pointer; padding: 16px 0 12px; font-size: 13px; letter-spacing: .04em; list-style: none; }
.rk-back summary::-webkit-details-marker { display: none; }
.rk-back summary::before { content: "▸  "; }
.rk-back[open] summary::before { content: "▾  "; }
.rk-back > input[type=file] { display: block; width: auto; max-width: calc(100% - 44px); margin-top: 10px; margin-bottom: 8px; padding: 6px 0; font: inherit; font-size: 13px; background: none; box-shadow: none; }
.rk-back textarea { display: block; width: calc(100% - 44px); box-sizing: border-box; font-size: 12px; padding: 8px; border: 1px dashed rgba(0,0,0,.35); background: rgba(255,255,255,.45); resize: vertical; margin-bottom: 10px; }
.rk-back .btn { margin-bottom: 6px; }

/* v58: sound toggle in the room, 3-2-1, streak, results grid */
.gr-snd { margin-left: auto; font: 400 16px/1 system-ui, sans-serif; color: var(--paper2); background: transparent; border: 1.5px solid #5a554b; border-radius: 4px; padding: 7px 10px; cursor: pointer; }
.gr-snd:hover { border-color: var(--paper2); }
.gr-top .score:not([hidden]) ~ .gr-snd { margin-left: 0; }
.rk-count { min-height: 62vh; display: grid; place-content: center; text-align: center; gap: 6px; }
.rk-count b { font: 400 clamp(110px, 22vw, 200px)/1 var(--head); color: var(--paper2); letter-spacing: .02em; text-shadow: 0 6px 0 rgba(0,0,0,.35); }
.rk-count b.pulse { animation: cd-pulse .62s cubic-bezier(.2,.8,.2,1) both; }
@keyframes cd-pulse { 0% { transform: scale(1.7) rotate(-6deg); opacity: 0; } 55% { transform: scale(.94) rotate(1deg); opacity: 1; } 100% { transform: none; opacity: 1; } }
.rk-count-tip { color: var(--faint); font-size: 12px; letter-spacing: .08em; }
.rk-streak { opacity: .35; transition: opacity .2s; }
.rk-streak.on { opacity: 1; color: var(--mark); animation: st-pop .45s cubic-bezier(.2,.8,.2,1); }
.rk-streak.on b { color: var(--mark); }
@keyframes st-pop { 0% { transform: scale(1.5); } 100% { transform: none; } }
.rv-best { display: inline-block; margin: 2px 0 8px; padding: 4px 9px; background: var(--mark); color: #1a1712; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; transform: rotate(-2deg); }
.rv-grid { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 10px; }
.rv-grid i { width: 14px; height: 14px; border-radius: 2px; background: var(--red); }
.rv-grid i.g1 { background: var(--green); } .rv-grid i.g2 { background: #2b2925; }
@media (prefers-reduced-motion: reduce) { .rk-count b.pulse, .rk-streak.on { animation: none; } }
.rk-review .rv-body { padding-bottom: 78px; }   /* the stamp sits in its own strip, never on the text */
@media (max-width: 760px) { .rk-review .rv-body { padding-bottom: 64px; } }

/* v59: a more physical line-up: suspects lean toward the cursor, the wrong pick shakes, the real one bounces, the room glows red in the last 3 s */
.suspect { transform: perspective(900px) translateY(var(--lift, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.suspect.tilt { --lift: -6px; transition-duration: .18s; }
.suspect .btn.pick { transition: transform .15s, box-shadow .15s; }
.suspect .btn.pick:not([disabled]):hover { transform: translateY(-2px) scale(1.03); }
.suspect .btn.pick:not([disabled]):active { transform: translateY(1px) scale(.97); }
.rk-sus.shake { animation: sus-shake .5s cubic-bezier(.36, .07, .19, .97) both; }
.rk-sus.bounce { animation: sus-bounce .6s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes sus-shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(5px); } 30%, 50%, 70% { transform: translateX(-9px) rotate(-1deg); } 40%, 60% { transform: translateX(9px) rotate(1deg); } }
@keyframes sus-bounce { 0% { transform: none; } 35% { transform: translateY(-14px) scale(1.02); } 65% { transform: translateY(2px); } 100% { transform: none; } }
#rk.hot::before { content: ""; position: fixed; inset: 0; z-index: 4; pointer-events: none; box-shadow: inset 0 0 140px rgba(226, 83, 91, .5); animation: hotpulse .5s ease-in-out infinite alternate; }
@keyframes hotpulse { from { opacity: .35; } to { opacity: 1; } }
#rk.hot .rk-timer { animation: barshake .25s linear infinite; }
@keyframes barshake { 0%, 100% { transform: none; } 50% { transform: translateY(1px); } }
@media (prefers-reduced-motion: reduce) { .suspect { transform: none !important; } .rk-sus.shake, .rk-sus.bounce, #rk.hot .rk-timer { animation: none; } #rk.hot::before { animation: none; opacity: .6; } }

/* v60: the nightly run did not publish yet */
.late-note { margin: 10px 0 0; padding: 8px 12px; display: inline-block; background: rgba(241, 223, 79, .12); border-left: 3px solid var(--mark); color: var(--paper2); font-size: 13px; }

/* v61: a picture we withheld says so, with the reason */
.nophoto.withheld { letter-spacing: .12em; }
.nophoto.withheld small { display: block; margin-top: 8px; font-size: .78em; letter-spacing: .06em; opacity: .8; text-transform: none; }
.nophoto.withheld { color: #cfc7b6; }
.nophoto.withheld small { color: #a9a296; opacity: 1; }

/* v62: the home page as a story. Game block = the door + the precinct board; the interrogation room has its own band. */
.gamehead { max-width: 780px; }
.gameblock { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px 64px; margin-top: 34px; align-items: start; }
.gameblock:has(> .gb-board[hidden]) { grid-template-columns: minmax(0, 1fr); }
.gb-door .gate { margin-top: 0; align-items: center; }
.gb-door .door { zoom: 1.15; }
.gb-board { display: grid; gap: 16px; align-content: start; }
.gb-board-head h3 { font: 400 30px/1.05 var(--head); text-transform: uppercase; color: var(--paper2); margin: 2px 0 0; }
.gb-board-head .kicker { margin: 0; }
.gb-board .round-clock { justify-self: start; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; text-align: left; transform: rotate(-.8deg); padding: 12px 18px; min-width: 0; }
.gb-board .round-clock b { font-size: 40px; }
.gb-board .round-clock small:empty { display: none; }
.gb-board .board-list li.ghost b, .gb-board .board-list li.ghost .sc, .board-list li.ghost b, .board-list li.ghost .sc { color: #b3ab9a; }
.board-list li.ghost .pos { color: #b3ab9a !important; }
.board-list li.ghost { border-bottom-style: dashed; }
.checkband { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 30px 64px; align-items: center; }
.checkband .form27 { margin: 0; }
.ck-head h2 { font-size: clamp(34px, 4vw, 50px); }
.chalk-link { margin-top: 10px; padding: 0; border: 0; background: none; cursor: pointer; font: 400 21px/1.2 var(--hand); color: var(--mark); text-decoration: underline; text-underline-offset: 4px; text-align: left; }
.chalk.small b { color: var(--chalk); font-weight: 700; }
@media (max-width: 900px) { .gameblock, .checkband { grid-template-columns: minmax(0, 1fr); } .gb-door .door { zoom: 1; } }

/* v63: the evidence wall - a real investigation board right under the hero */
.today { grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: "head" "files" "more" !important; }
.wallhead { max-width: 820px; }
.wall-frame { margin-top: 30px; border: 16px solid #5a3e24; border-radius: 6px; box-shadow: inset 0 0 0 2px #3c2814, 0 30px 50px -24px rgba(0, 0, 0, .95);
  background: var(--cork); background-image: var(--grain), radial-gradient(circle at 18% 30%, #b98a58 0, transparent 42%), radial-gradient(circle at 82% 72%, #9c6f41 0, transparent 46%); overflow: hidden; }
.wall-frame.pan { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
.cork.wall { display: block; position: relative; width: 1200px; height: 820px; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: inset 0 0 60px rgba(0, 0, 0, .4); background: transparent; min-height: 0; }
.cork.wall > * { position: absolute; }
.cork.wall > .strings { inset: 0; z-index: 4; }
.strings path.t-fake { stroke: #c0242b; } .strings path.t-real { stroke: #2e8b57; }
.strings path { stroke-width: 2.2; }
.cork.wall > .pinned, .cork.wall > .note { transform: rotate(var(--r, -2deg)); }
.wall .wp { width: 132px; padding: 8px 8px 9px; z-index: 3; cursor: pointer; }
.wall .wp p { margin-top: 6px; font-size: 13.5px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wall .wp p small { font-size: 11px; }
.wall .wp .stamp { font-size: 15px; padding: 2px 7px; border-width: 3px; top: 44%; }
.wall .wp.h .stamp { font-size: 12px; }
.wall .wp .ph .nophoto { font-size: 9px; letter-spacing: .1em; }
.wall .idx { width: 318px; padding: 14px 16px 12px; background: #f7f3e6; z-index: 3; color: var(--ink); background-image: repeating-linear-gradient(transparent 0 23px, rgba(47, 124, 201, .16) 23px 24px); }
.wall .idx .idx-h { font: 400 12px/1 var(--type); letter-spacing: .16em; text-transform: uppercase; color: #b3202a; margin: 0 0 8px; }
.wall .idx .idx-n { font: 400 17px/1.35 var(--type); margin: 0; } .wall .idx .idx-n b { font-family: var(--head); font-weight: 400; font-size: 20px; }
.wall .idx b.r { color: #b3202a; } .wall .idx b.g { color: #1d6b45; }
.wall .idx .idx-s { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.wall .slate { width: 286px; padding: 14px 18px 16px; background: #26332c; border: 7px solid #6b4a2c; border-radius: 3px; z-index: 3; box-shadow: inset 0 0 30px rgba(0, 0, 0, .5), 0 14px 24px -12px rgba(0, 0, 0, .8); color: var(--chalk); }
.wall .slate .chalk { font-size: 19px; line-height: 1.25; margin: 0; } .wall .slate .chalk.h { font-size: 25px; margin-bottom: 4px; } .wall .slate .chalk.small { font-size: 17px; }
.wall .slate .chalk b { color: #ffe680; font-weight: 700; }
.wall .wn { width: 150px; min-height: 0; padding: 18px 12px 12px; font-size: 18px; line-height: 1.18; z-index: 5; }
.wall .wn small { display: block; margin-top: 4px; font-size: 15px; }
.wall .wn .pin { position: absolute; top: -7px; left: 50%; width: 15px; height: 15px; margin-left: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff6a6a, #a3141b 70%); box-shadow: 0 2px 3px rgba(0, 0, 0, .5); }
.wall .wn.n-green .pin { background: radial-gradient(circle at 35% 35%, #7be0a3, #1d6b45 70%); }
.wall .wn[data-mint] { cursor: pointer; }
.wall .wpost { width: 180px; zoom: .86; z-index: 3; }
.wall-hint { display: none; margin-top: 10px; text-align: center; font-size: 12px; letter-spacing: .12em; color: var(--faint); }
.wall-frame.pan + .wall-hint { display: block; }
.wall .empty { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
@media (prefers-reduced-motion: reduce) { .cork.wall > .pinned:hover { animation: none; } }
.wall .slate .chalk { color: #f1f0e6; -webkit-mask: none; mask: none; text-shadow: 0 0 1px rgba(241, 240, 230, .35); }
.wall .slate .chalk.h { color: #ffe680; }

/* v64: the wall as a real board - paper under the threads, pins on top, photos swing around their pin */
.cork.wall > .strings { z-index: 6; }
.cork.wall > .pinned, .cork.wall > .note { z-index: 2; }
.cork.wall > .pinned:hover, .cork.wall > .note:hover { z-index: 3; }
.wall .pin, .wall .wn .pin { display: none; }
.strings .t-shadow { fill: none; stroke: rgba(0, 0, 0, .28); stroke-width: 3.4; transform: translate(1.5px, 3px); filter: blur(1.2px); }
.strings .t-fake, .strings .t-real { fill: none; stroke-width: 2.3; stroke-linecap: round; filter: none; }
.strings .t-fake { stroke: #b81f27; } .strings .t-real { stroke: #23804c; }
.strings .t-shine { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: .8; transform: translate(-.4px, -.6px); }
.strings .pin-sh { fill: rgba(0, 0, 0, .35); filter: blur(1.5px); }
.cork.wall > .pinned, .cork.wall > .note { transform-origin: 50% 4px; }
.cork.wall > .pinned:hover, .cork.wall > .note:hover { animation: swingpin 1.2s ease-in-out; box-shadow: 0 22px 30px -12px rgba(0, 0, 0, .75); }
.lz-wall { position: static !important; width: auto !important; height: auto !important; box-shadow: none !important; background: none !important; }
.lz-wall > * { position: absolute; }

/* v65 fun: notes light their threads, lights-off torch, call it before you open, case card */
.cork.wall > .pinned, .cork.wall > .note { transition: filter .25s, opacity .25s, box-shadow .25s; }
.cork.wall.focusing > .pinned:not(.lit), .cork.wall.focusing > .note:not(.lit) { filter: brightness(.5) saturate(.55); }
.cork.wall > .wp.lit { box-shadow: 0 0 0 3px #ffe680, 0 24px 30px -12px rgba(0, 0, 0, .8); }
.cork.wall > .wn.lit { box-shadow: 0 0 0 3px #fff6c0, 0 20px 26px -12px rgba(0, 0, 0, .75); }
.wall .wn { cursor: pointer; }
#strings .th { transition: opacity .25s; }
.cork.wall.focusing #strings .th:not(.on) { opacity: .1; }
.cork.wall.focusing #strings .th.on .t-fake { stroke: #ff3a42; stroke-width: 3.2; filter: drop-shadow(0 0 3px rgba(255, 70, 70, .9)); }
.cork.wall.focusing #strings .th.on .t-real { stroke: #3ddc84; stroke-width: 3.2; filter: drop-shadow(0 0 3px rgba(60, 220, 130, .9)); }
.wallhead { position: relative; }
.lights-btn { margin-top: 16px; font: 400 14px/1 var(--type); letter-spacing: .06em; color: var(--paper2); background: #2a2622; border: 1.5px solid #5a554b; border-radius: 4px; padding: 10px 14px; cursor: pointer; }
.lights-btn:hover { border-color: var(--mark); color: var(--mark); }
.lights-btn[aria-pressed="true"] { background: #f1df4f; color: #1a1712; border-color: #f1df4f; }
.cork.wall > .torch { inset: 0; z-index: 9; pointer-events: none; opacity: 0; transition: opacity .6s;
  background: radial-gradient(circle 170px at var(--lx, 600px) var(--ly, 330px), rgba(255, 240, 200, .06) 0, rgba(0, 0, 0, .15) 45%, rgba(3, 2, 1, .95) 100%); }
.wall-frame.dark .torch { opacity: 1; }
.wall-frame.dark { box-shadow: inset 0 0 0 2px #3c2814, 0 30px 50px -24px rgba(0, 0, 0, .95), 0 0 0 1px #000; }
.calls { margin-top: 12px; font-size: 14px; color: var(--faint); letter-spacing: .02em; }
.calls b { color: var(--mark); font-weight: 400; }
.file.sealed .stamp { opacity: 0; transform: scale(1.6) rotate(-14deg); }
.file.reveal .stamp { animation: press .55s cubic-bezier(.2, 1.4, .4, 1) both; }
.file .guess { display: flex; align-items: center; gap: 8px; margin: 10px 0 2px; }
.file .guess span { font-size: 12px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.file .guess button { font: 400 15px/1 var(--head); letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; border-radius: 3px; cursor: pointer; border: 2px solid currentColor; background: transparent; }
.file .guess button[data-call="fake"] { color: #b3202a; } .file .guess button[data-call="human"] { color: #1d6b45; }
.file .guess button:hover { background: currentColor; } .file .guess button:hover { color: #fff; }
.file .guess button[data-call="fake"]:hover { background: #b3202a; } .file .guess button[data-call="human"]:hover { background: #1d6b45; }
.file .guess.done { font-size: 13px; letter-spacing: .06em; }
.file.cok .guess.done { color: #1d6b45; } .file.cno .guess.done { color: #b3202a; }
@media (prefers-reduced-motion: reduce) { .file.reveal .stamp { animation: none; } .cork.wall > .torch { transition: none; } }
.cork.wall > .note:hover { animation: none; }   /* sticky notes are stuck flat: they do not swing away from the pointer */
