/* ════════════════════════════════════════════════════════════════
   2040 — interactive comic
   Two materials: the SCREEN (night, amber, cyan) for the comic,
   and PAPER (ruled, inked, taped) for the author's notebook.
   ════════════════════════════════════════════════════════════════ */

:root {
  --night: #0a0c11;
  --night-2: #11141c;
  --night-3: #1a1f2a;
  --line: #2a3040;
  --fog: #8d95a6;
  --amber: #ffab2e;
  --amber-2: #ff8a1f;
  --amber-ink: #6e4406;
  --cyan: #5fe9e1;
  --cyan-dim: #1d5d5c;
  --sodium: #ff9a3c;

  --paper: #ebe1c9;
  --paper-2: #e0d3b4;
  --paper-3: #f6efdc;
  --ink: #1a1612;
  --ink-2: #4d4437;
  --ink-3: #857a68;
  --blue-ink: #1b2b63;
  --red: #b93a26;

  --f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-body: "Newsreader", Georgia, "Times New Roman", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --f-hand: "Kalam", "Segoe Print", "Comic Sans MS", cursive;
  --f-comic: "Comic Neue", "Comic Sans MS", sans-serif;
  --f-sfx: "Bangers", Impact, sans-serif;
  --f-chorus: "Quicksand", "Avenir Next", "Trebuchet MS", sans-serif;

  --bar: 46px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: #e9e4d8;
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
::selection { background: var(--amber); color: #000; }

/* ───────────────────────── STATUS BAR ───────────────────────── */
.bar {
  position: sticky; top: 0; z-index: 50;
  height: var(--bar);
  display: flex; align-items: center; gap: 22px;
  padding: 0 18px;
  background: #06070a;
  border-bottom: 1px solid #1c212c;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.bar-mark {
  font-family: var(--f-display); font-weight: 900; font-size: 26px; letter-spacing: .01em;
  text-decoration: none; line-height: 1; color: #bdf6f1;
}
.bar-mark span + span, .hero-title span + span { color: var(--amber); }
.bar-nav { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.bar-nav::-webkit-scrollbar { display: none; }
.bar-nav a {
  text-decoration: none; color: var(--fog);
  padding: 6px 10px; border-radius: 3px; white-space: nowrap;
  transition: color .15s, background .15s;
}
.bar-nav a:hover { color: #fff; background: #151923; }
.bar-nav a.on { color: var(--amber); box-shadow: inset 0 -2px 0 var(--amber); border-radius: 0; }

.batt { display: flex; align-items: center; gap: 8px; color: var(--fog); white-space: nowrap; --c: var(--amber); }
.batt-name { color: #cfd4de; }
.batt-cell {
  position: relative; width: 34px; height: 14px;
  border: 1.5px solid var(--c); border-radius: 3px; padding: 1.5px;
}
.batt-cell::after { content: ""; position: absolute; right: -5px; top: 3px; width: 2.5px; height: 5px; background: var(--c); border-radius: 0 2px 2px 0; }
.batt-fill { display: block; height: 100%; width: 9%; background: var(--c); border-radius: 1px; transition: width .8s cubic-bezier(.2,.7,.2,1), background .4s; }
.batt-pct { color: var(--c); min-width: 3.2em; text-align: right; font-weight: 600; }
.batt-state { color: var(--c); opacity: .8; }
.batt.p-lattice { --c: var(--cyan); }
.batt.p-stray { --c: var(--amber); }
.batt.p-lost { --c: var(--amber-2); }
.batt.p-lost .batt-state { animation: blink 1.1s steps(2) infinite; }
.batt.p-void { --c: #5a6170; }
.batt.p-none { --c: #ff6a3d; }
.batt.p-none .batt-cell { animation: blink 1.6s steps(2) infinite; }
.batt.p-asleep { --c: #5a6170; }
@keyframes blink { 50% { opacity: .25; } }

/* ───────────────────────── HOME ───────────────────────── */
.home { position: relative; overflow: hidden; }
.home::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60vw 50vw at 8% 0%, rgba(95,233,225,.13), transparent 62%),
    radial-gradient(60vw 55vw at 100% 60%, rgba(255,150,40,.16), transparent 60%);
}
.home::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .22; mix-blend-mode: overlay; pointer-events: none; z-index: 0; }
.home > * { position: relative; z-index: 1; }

.hero {
  min-height: calc(100vh - var(--bar));
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center; gap: clamp(24px, 5vw, 80px);
  padding: clamp(28px, 5vw, 72px) clamp(20px, 6vw, 96px);
  max-width: 1560px; margin: 0 auto;
}
.kicker {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--fog);
  display: flex; align-items: center; gap: 12px; margin: 0 0 6px;
}
.kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 14px var(--amber); animation: ember 3.2s ease-in-out infinite; }
@keyframes ember { 50% { opacity: .35; box-shadow: 0 0 4px var(--amber); } }

.hero-title {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(120px, 21vw, 330px); line-height: .78; letter-spacing: -.015em;
  margin: 0 0 0 -.04em; color: #c4f7f3;
  filter: drop-shadow(0 14px 40px rgba(0,0,0,.6));
}
.hero-tag {
  font-family: var(--f-hand); color: #f3e9c9; font-size: clamp(22px, 2.5vw, 34px); line-height: 1.2;
  margin: 22px 0 18px; transform: rotate(-1.2deg); transform-origin: left;
}
.hero-log { max-width: 34em; color: #c4c8d2; font-size: clamp(16px, 1.25vw, 19px); margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; padding: 15px 22px; border-radius: 3px;
  border: 1.5px solid var(--line); color: #e9e4d8; background: rgba(255,255,255,.02);
  transition: transform .15s, background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: #fff; transform: translateY(-1px); }
.btn.primary { background: var(--amber); border-color: var(--amber); color: #150d00; box-shadow: 0 0 0 0 rgba(255,171,46,.5); }
.btn.primary:hover { background: #ffc15e; border-color: #ffc15e; box-shadow: 0 10px 40px -8px rgba(255,171,46,.7); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }
.hero-stats { display: flex; gap: 26px; margin-top: 34px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--fog); flex-wrap: wrap; }
.hero-stats b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 34px; letter-spacing: 0; color: #f3efe4; line-height: 1; }

.cover {
  position: relative; display: block; justify-self: center;
  width: min(100%, 520px); aspect-ratio: 2 / 3;
  transform: rotate(2.2deg); transform-origin: 50% 60%;
  box-shadow: 0 2px 0 #000, 0 50px 120px -20px rgba(0,0,0,.9), 0 0 120px -30px rgba(255,150,40,.35);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s;
  text-decoration: none; background: #111; overflow: hidden;
}
.cover:hover { transform: rotate(0deg) scale(1.015); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-title {
  position: absolute; left: 6%; right: 6%; top: 3.5%;
  display: flex; align-items: flex-start; justify-content: space-between;
  container-type: inline-size;
}
.cover-title b {
  font-family: var(--f-display); font-weight: 900; font-size: 44cqw; line-height: .8; letter-spacing: -.02em;
  color: #f6efdc; text-shadow: 0 .06em 0 rgba(0,0,0,.55);
}
.cover-box {
  font-family: var(--f-mono); font-size: 2.6cqw; letter-spacing: .12em; text-transform: uppercase; line-height: 1.35;
  color: #111; background: #f6efdc; padding: 1.6cqw 2.2cqw; text-align: center; margin-top: 2cqw;
}
.cover-box i { display: block; font-style: normal; font-family: var(--f-display); font-weight: 900; font-size: 9cqw; line-height: .9; letter-spacing: 0; }
.cover-foot {
  position: absolute; left: 6%; bottom: 4%; right: 6%;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(22px, 3vw, 40px); letter-spacing: .06em; text-transform: uppercase; color: #f6efdc;
  text-shadow: 0 2px 0 rgba(0,0,0,.6); line-height: 1;
}
.cover-foot small { display: block; font-family: var(--f-mono); font-weight: 500; font-size: 11px; letter-spacing: .2em; margin-bottom: 6px; color: var(--amber); }

/* two or more issues: the covers fan out */
.covers { position: relative; justify-self: center; width: min(100%, 620px); aspect-ratio: 1 / 1.06; }
.covers .cover { position: absolute; width: 64%; container-type: inline-size; }
.covers .cover-foot { font-size: 8.5cqw; }
.covers .cover-foot small { font-size: 2.6cqw; margin-bottom: 1.4cqw; }
.covers .c1 { left: 0; top: 0; transform: rotate(-4.5deg); z-index: 1; }
.covers .c2 { right: 0; bottom: 0; transform: rotate(3deg); z-index: 2; }
.covers .c3 { left: 18%; top: 14%; transform: rotate(-1deg); z-index: 3; }
.covers .cover:hover { z-index: 5; transform: rotate(0deg) scale(1.03); }
.covers.n3 { aspect-ratio: 1 / .96; width: min(100%, 680px); }
.covers.n3 .cover { width: 51%; }
.covers.n3 .c1 { left: 0; top: 0; transform: rotate(-6deg); }
.covers.n3 .c2 { left: 24.5%; top: 9%; right: auto; bottom: auto; transform: rotate(-1deg); }
.covers.n3 .c3 { left: auto; right: 0; top: auto; bottom: 0; transform: rotate(4deg); }
.covers.n4 { aspect-ratio: 1 / .86; width: min(100%, 720px); }
.covers.n4 .cover { width: 43%; }
.covers.n4 .c1 { left: 0; top: 0; transform: rotate(-7deg); }
.covers.n4 .c2 { left: 19%; top: 7%; right: auto; bottom: auto; transform: rotate(-3deg); }
.covers.n4 .c3 { left: 38%; top: 14%; right: auto; bottom: auto; transform: rotate(1deg); }
.covers.n4 .c4 { left: auto; right: 0; top: auto; bottom: 0; transform: rotate(5deg); z-index: 4; }
.covers.n5 { aspect-ratio: 1 / .74; width: min(100%, 760px); }
.covers.n5 .cover { width: 37%; }
.covers.n5 .c1 { left: 0; top: 0; right: auto; bottom: auto; transform: rotate(-8deg); z-index: 1; }
.covers.n5 .c2 { left: 15.75%; top: 6%; right: auto; bottom: auto; transform: rotate(-4deg); z-index: 2; }
.covers.n5 .c3 { left: 31.5%; top: 12%; right: auto; bottom: auto; transform: rotate(0deg); z-index: 3; }
.covers.n5 .c4 { left: 47.25%; top: 18%; right: auto; bottom: auto; transform: rotate(3deg); z-index: 4; }
.covers.n5 .c5 { left: auto; right: 0; top: auto; bottom: 0; transform: rotate(6deg); z-index: 5; }
.covers .cover:hover { z-index: 9; }
.covers.n1 { aspect-ratio: 2 / 3; width: min(100%, 520px); }
.covers.n1 .cover { position: relative; width: 100%; transform: rotate(2.2deg); }

.band { max-width: 1560px; margin: 0 auto; padding: clamp(40px, 6vw, 90px) clamp(20px, 6vw, 96px); }
.band-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 28px; flex-wrap: wrap; }
.band-head h2 { font-family: var(--f-display); font-weight: 900; font-size: clamp(40px, 5vw, 76px); line-height: .9; text-transform: uppercase; margin: 0; letter-spacing: .005em; }
.band-head p { margin: 0; color: var(--fog); font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }

.pillars { list-style: none; margin: 0; padding: 0; counter-reset: p; border-top: 1px solid var(--line); }
.pillars li {
  counter-increment: p;
  display: grid; grid-template-columns: 90px minmax(0, 300px) minmax(0, 1fr); gap: 24px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.pillars li::before { content: "0" counter(p); font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; color: var(--amber); }
.pillars h3 { font-family: var(--f-display); font-weight: 800; font-size: clamp(24px, 2.4vw, 34px); text-transform: uppercase; line-height: 1; margin: 0; }
.pillars p { margin: 0; color: #b9bdc8; max-width: 44em; }

.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.door {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 340px; padding: 24px; text-decoration: none; overflow: hidden;
  border: 1px solid var(--line); background: #000;
}
.door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .4s; }
.door::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(5,6,9,.94) 82%); }
.door:hover img { transform: scale(1.06); opacity: .8; }
.door > span, .door > h3, .door > p { position: relative; z-index: 1; }
.door span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); }
.door h3 { font-family: var(--f-display); font-weight: 900; font-size: 44px; text-transform: uppercase; line-height: .95; margin: 6px 0 8px; }
.door p { margin: 0; color: #c4c8d2; font-size: 16px; line-height: 1.4; }

.strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x proximity; }
.strip a {
  position: relative; flex: 0 0 150px; aspect-ratio: 2 / 3; overflow: hidden; scroll-snap-align: start;
  border: 1px solid var(--line); text-decoration: none; background: #000;
}
.strip img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .2s, transform .5s; }
.strip a:hover img { opacity: 1; transform: scale(1.05); }
.strip b { position: absolute; left: 8px; top: 6px; font-family: var(--f-display); font-weight: 900; font-size: 30px; line-height: 1; color: #fff; text-shadow: 0 2px 8px #000; }
.strip i { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 7px; font-style: normal; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: #f1ead9; background: linear-gradient(transparent, rgba(0,0,0,.9)); }
.footnote { color: #6c7383; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; padding: 26px clamp(20px, 6vw, 96px) 60px; max-width: 1560px; margin: 0 auto; }

/* ───────────────────────── READER ───────────────────────── */
.reader {
  height: calc(100vh - var(--bar)); height: calc(100dvh - var(--bar));
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr) auto;
  background: #07080b;
}
.stage-wrap { grid-column: 1; grid-row: 1; position: relative; min-width: 0; min-height: 0; }
.stage {
  position: absolute; inset: 0; overflow: auto; overscroll-behavior: contain;
  background:
    radial-gradient(90% 60% at 50% 0%, #161a24 0%, transparent 70%),
    #07080b;
  scrollbar-color: #2a3040 transparent;
}
.page-wrap {
  width: min(980px, calc(100% - 84px)); margin: 26px auto 70px;
  container: pagewrap / inline-size;
}
.reader.fit .stage, .reader.guided .stage { overflow: hidden; }
.reader.fit .page-wrap, .reader.guided .page-wrap {
  width: min(calc(100% - 84px), calc((var(--sh, 800px) - 36px) * 2 / 3));
  margin: 18px auto 0;
}

.page {
  position: relative; aspect-ratio: 2 / 3;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(12, minmax(0, 1fr));
  gap: 1.05cqw; padding: 1.5cqw;
  background: var(--gutter, #06070a);
  box-shadow: 0 0 0 1px rgba(255,255,255,.05), 0 40px 110px -10px rgba(0,0,0,.85);
  transform-origin: 0 0;
  transition: transform .7s cubic-bezier(.22,.72,.16,1);
}
.page.enter { animation: pageIn .45s cubic-bezier(.2,.7,.2,1) both; }
.page.enter.back { animation-name: pageInBack; }
@keyframes pageIn { from { opacity: 0; translate: 26px 0; } }
@keyframes pageInBack { from { opacity: 0; translate: -26px 0; } }
.page[data-era="2040"] { --gutter: #06070a; --rule: #000; }
.page[data-era="void"] { --gutter: #000; --rule: #000; }
.page[data-era="1995"] { --gutter: #ebe1c9; --rule: #1a1612; background-image: var(--grain); background-blend-mode: multiply; }
.page.splash { padding: 0; gap: 0; }

.panel {
  position: relative; overflow: hidden; background: #0d0f14;
  box-shadow: 0 0 0 .2cqw var(--rule, #000);
  transition: opacity .5s;
  cursor: zoom-in;
}
.art { position: absolute; inset: 0; }
.art img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.art img.in { opacity: 1; }
.art.fit-top { background: #0b0906; }
.art.fit-top img { object-fit: contain; object-position: top center; }
.letters { position: absolute; inset: 0; pointer-events: none; }

/* ── lettering ── */
.letter { position: absolute; transform: rotate(var(--rot, 0deg)); }

.l-cap {
  font-family: var(--f-hand); font-weight: 400; font-size: 1.7cqw; line-height: 1.38;
  color: var(--blue-ink);
  padding: .5em .85em .38em;
  background:
    repeating-linear-gradient(180deg, transparent 0 calc(1.38em - 1px), rgba(40,70,140,.2) calc(1.38em - 1px) 1.38em) 0 .5em / 100% 1.38em,
    #f5ecd0;
  box-shadow: 0 .25cqw .9cqw rgba(0,0,0,.45), inset .32em 0 0 -0.2em rgba(190,60,50,.45);
  border-radius: 1px;
}
.l-slug {
  font-family: var(--f-mono); font-weight: 600; font-size: 1.05cqw; letter-spacing: .22em; text-transform: uppercase;
  color: #f6efdc; background: #0a0a0a; padding: .5em .9em; white-space: nowrap;
  border-left: .35em solid var(--amber);
}
.l-say, .l-off, .l-radio {
  --bw: max(1.5px, .18cqw);
  font-family: var(--f-comic); font-weight: 700; font-size: 1.45cqw; line-height: 1.13; letter-spacing: .012em;
  text-transform: uppercase; text-align: center; color: #0c0c0c;
  background: #fffdf5; border: var(--bw) solid #0c0c0c; border-radius: 1.5em;
  padding: .6em .95em .55em;
  box-shadow: 0 .2cqw .6cqw rgba(0,0,0,.3);
}
.l-say.shout, .l-off.shout { font-size: 1.75cqw; font-style: italic; border-width: calc(var(--bw) * 1.5); }
.l-radio { border-style: dashed; border-radius: .5em; font-style: italic; text-align: left; background: #fff8e6; }
.who {
  position: absolute; left: 1.1em; top: -1.05em;
  font-family: var(--f-mono); font-style: normal; font-weight: 600; font-size: .6em; letter-spacing: .18em; line-height: 1;
  color: #0c0c0c; background: var(--amber); padding: .3em .55em; border-radius: 2px; white-space: nowrap;
}
.l-ember {
  --bw: max(1.5px, .16cqw);
  font-family: var(--f-mono); font-weight: 500; font-size: 1.27cqw; line-height: 1.32;
  color: #ffd590; background: rgba(20,13,4,.94);
  border: var(--bw) solid var(--amber); border-radius: .55em;
  padding: .65em .9em .6em 1.9em;
  box-shadow: 0 0 1.6cqw rgba(255,160,40,.35), 0 .2cqw .6cqw rgba(0,0,0,.5);
}
.l-ember::before {
  content: ""; position: absolute; left: .7em; top: 1.02em; width: .5em; height: .5em; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 .7em var(--amber); animation: ember 3.2s ease-in-out infinite;
}
.l-chorus {
  font-family: var(--f-chorus); font-weight: 500; font-size: 1.45cqw; line-height: 1.3; letter-spacing: .05em;
  text-transform: lowercase; text-align: center; color: #d6fffb;
  background: rgba(6,26,30,.78); border: 1px solid rgba(95,233,225,.75); border-radius: 1.6em;
  padding: .7em 1.3em;
  box-shadow: 0 0 2.2cqw rgba(95,233,225,.4), inset 0 0 1.2cqw rgba(95,233,225,.14);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.l-sfx {
  font-family: var(--f-sfx); font-size: calc(var(--size, 5) * 1cqw); line-height: .9; letter-spacing: .03em;
  color: var(--amber); -webkit-text-stroke: .045em #0a0a0a; paint-order: stroke fill;
  text-shadow: .05em .06em 0 #0a0a0a; white-space: nowrap;
}
.l-sfx.sfx-quiet { font-family: var(--f-mono); font-weight: 600; color: #cfd4de; -webkit-text-stroke: 0; text-shadow: none; letter-spacing: .1em; }
.l-sfx.sfx-light { color: #fff7e0; -webkit-text-stroke: .03em #8a4b00; text-shadow: 0 0 .25em rgba(255,190,90,.9), .04em .05em 0 #5a2f00; }
.l-echo {
  font-family: var(--f-comic); font-style: italic; font-weight: 700; font-size: 2.3cqw; line-height: 1.5; letter-spacing: .34em;
  text-transform: uppercase; color: #fff; text-align: right;
  text-shadow: 0 0 .25em #021a20, 0 0 .5em #021a20, 0 0 1em rgba(2,26,32,.9), .07em .08em 0 rgba(0,0,0,.75);
  -webkit-mask-image: linear-gradient(90deg, #000 55%, rgba(0,0,0,.45)); mask-image: linear-gradient(90deg, #000 55%, rgba(0,0,0,.45));
}
.l-title { color: #f6efdc; text-align: right; line-height: 1; }
.l-title b { display: block; font-family: var(--f-display); font-weight: 900; font-size: 19cqw; line-height: .8; letter-spacing: -.02em; text-shadow: .03em .04em 0 rgba(3,20,30,.55); }
.l-title span { display: inline-block; margin-top: 1.2cqw; font-family: var(--f-mono); font-weight: 600; font-size: 1.15cqw; letter-spacing: .3em; text-transform: uppercase; color: #06121a; background: #f6efdc; padding: .5em .9em; }
.l-endmark {
  font-family: var(--f-mono); font-weight: 600; font-size: 1.2cqw; letter-spacing: .24em; text-transform: uppercase;
  color: #150d00; background: var(--amber); padding: .6em 1em; pointer-events: auto; cursor: pointer; white-space: nowrap;
}
.l-endmark::after { content: " →"; }

/* balloon tails: an open-topped triangle whose fill hides the balloon's border */
.letter[class*="tail-"]::after {
  content: ""; position: absolute; width: 1.5em; height: 1.35em; pointer-events: none;
  background: var(--tail) center / 100% 100% no-repeat;
}
.l-say, .l-off { --tail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22' preserveAspectRatio='none'%3E%3Cpath d='M5 0 L1.5 20.5 L19 0' fill='%23fffdf5' stroke='%230c0c0c' stroke-width='2.4' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E"); }
.l-ember { --tail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22' preserveAspectRatio='none'%3E%3Cpath d='M5 0 L1.5 20.5 L19 0' fill='%23140d04' stroke='%23ffab2e' stroke-width='2.2' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E"); }
.tail-bl::after { left: 16%; top: calc(100% - var(--bw)); }
.tail-br::after { right: 16%; top: calc(100% - var(--bw)); transform: scaleX(-1); }
.tail-tl::after { left: 16%; bottom: calc(100% - var(--bw)); transform: scaleY(-1); }
.tail-tr::after { right: 16%; bottom: calc(100% - var(--bw)); transform: scale(-1, -1); }

/* ── annotations ── */
.note {
  position: absolute; z-index: 4; display: none; place-items: center;
  width: max(22px, 2.3cqw); height: max(22px, 2.3cqw); margin: calc(max(22px, 2.3cqw) / -2);
  border-radius: 50%; background: var(--amber); color: #150d00;
  font-family: var(--f-mono); font-weight: 600; font-size: max(13px, 1.3cqw); line-height: 1;
  box-shadow: 0 0 0 0 rgba(255,171,46,.7); animation: ping 2.2s ease-out infinite;
}
@keyframes ping { to { box-shadow: 0 0 0 1.4cqw rgba(255,171,46,0); } }
.reader.notes .note { display: grid; }
.note-pop {
  position: absolute; z-index: 6; width: min(300px, 78%);
  background: #f5ecd0; color: var(--ink); padding: 14px 16px 13px; border-radius: 2px;
  box-shadow: 0 16px 50px rgba(0,0,0,.65); font-family: var(--f-body); font-size: 14.5px; line-height: 1.42;
  cursor: default;
}
.note-pop h4 { margin: 0 0 5px; font-family: var(--f-display); font-weight: 900; font-size: 21px; text-transform: uppercase; line-height: 1; }
.note-pop p { margin: 0 0 8px; }
.note-pop a { font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--red); text-decoration: none; }
.note-pop a:hover { text-decoration: underline; }

/* ── guided view ── */
.reader.guided .panel { cursor: pointer; }
.reader.guided .panel:not(.focus) { opacity: 0; }
.reader.guided .page { box-shadow: none; }
.guide-hint {
  position: absolute; left: 50%; bottom: 14px; translate: -50% 0; z-index: 8;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: #9aa2b3;
  background: rgba(6,7,10,.8); border: 1px solid var(--line); padding: 7px 12px; border-radius: 99px; pointer-events: none;
  opacity: 0; transition: opacity .3s;
}
.reader.guided .guide-hint { opacity: 1; }

/* ── page-turn arrows ── */
.turn {
  position: absolute; top: calc(50% - 36px); left: 3px; z-index: 7;
  width: 34px; height: 72px; display: grid; place-items: center;
  color: #6f7788; font-family: var(--f-mono); font-size: 30px; line-height: 1; border-radius: 4px;
  transition: color .15s, background .15s;
}
.turn.next { left: auto; right: 12px; }
.turn:hover { color: var(--amber); background: rgba(255,255,255,.05); }
.turn[disabled] { opacity: .2; pointer-events: none; }
.reader.stacked .turn { display: none; }
.reader.stacked .page-wrap { width: min(560px, calc(100% - 20px)); margin: 12px auto 60px; }

/* ── inserts (panels drawn in CSS, not painted) ── */
.insert { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; }

.is-record .insert {
  background: linear-gradient(180deg, #eafcfa, #d6f3f0); color: #0a2a2c;
  padding: 3.2cqw 3cqw; font-family: var(--f-chorus); justify-content: flex-start; gap: 1.1cqw; cursor: default;
}
.rec-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid rgba(10,60,62,.25); padding-bottom: 1cqw; }
.rec-head b { font-weight: 600; font-size: 2cqw; letter-spacing: .02em; }
.rec-head span { font-size: 1.05cqw; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.rec-line { font-size: 1.55cqw; line-height: 1.35; margin: 0; }
.rec-slot { display: inline-block; font-weight: 600; border-bottom: 1px dotted rgba(10,90,92,.6); transition: color .3s; }
.rec-slot.swap { animation: swap .9s ease; }
@keyframes swap { 0% { filter: blur(0); opacity: 1; } 40% { filter: blur(5px); opacity: .25; color: #0bb; } 100% { filter: blur(0); opacity: 1; } }
.rec-foot { margin-top: auto; display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 1cqw; letter-spacing: .14em; text-transform: uppercase; color: #0c6a6b; }
.rec-foot i { font-style: normal; }
.rec-hint { position: absolute; right: 3cqw; bottom: 6.2cqw; transform: rotate(-2deg); font-family: var(--f-hand); font-size: 1.6cqw; color: var(--blue-ink); background: #f5ecd0; padding: .3em .7em; box-shadow: 0 .25cqw .9cqw rgba(0,0,0,.3); }

.is-readout .insert {
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.025) 0 2px, transparent 2px 4px), #0b0f0c;
  padding: 0 3cqw; font-family: var(--f-mono); color: #9bf5b0; cursor: pointer;
  justify-content: center; gap: .6cqw;
}
.ro-label { font-size: 1.05cqw; letter-spacing: .26em; text-transform: uppercase; opacity: .7; }
.ro-value { font-size: 5.4cqw; font-weight: 600; line-height: 1; letter-spacing: .02em; text-shadow: 0 0 1.2cqw currentColor; white-space: nowrap; }
.ro-sub { font-size: 1cqw; letter-spacing: .2em; text-transform: uppercase; opacity: .55; }
.is-readout.alarm .insert { color: #ff7a3d; animation: alarm .5s steps(2) 4; }
@keyframes alarm { 50% { background-color: #2a0c05; } }

.is-black .insert { background: #000; }
.is-black .insert::after { content: ""; position: absolute; left: 50%; top: 50%; width: .9cqw; height: .9cqw; margin: -.45cqw; border-radius: 50%; background: var(--amber); box-shadow: 0 0 2cqw var(--amber); animation: ember 2.4s ease-in-out infinite; }

.is-screen .insert {
  background: radial-gradient(60% 50% at 50% 30%, rgba(255,160,40,.1), transparent 70%), #050402;
  padding: 3cqw 3.2cqw; font-family: var(--f-mono); color: #ffc66e; justify-content: flex-start; gap: .55cqw; cursor: default;
  box-shadow: inset 0 0 0 .9cqw #17120d, inset 0 0 0 1.05cqw #3a2c18;
}
.sc-ring { width: 7cqw; height: 7cqw; border-radius: 50%; border: .38cqw solid var(--amber); margin: 1.6cqw auto 2.2cqw; box-shadow: 0 0 2.4cqw rgba(255,160,40,.7), inset 0 0 1.4cqw rgba(255,160,40,.4); animation: ember 3.2s ease-in-out infinite; flex: none; }
.sc-line { display: flex; justify-content: space-between; gap: 1cqw; font-size: 1.22cqw; letter-spacing: .06em; opacity: 0; transform: translateY(.4cqw); transition: opacity .35s, transform .35s; white-space: nowrap; }
.sc-line.on { opacity: 1; transform: none; }
.sc-line span { overflow: hidden; }
.sc-line i { flex: 1; border-bottom: 1px dotted rgba(255,190,100,.35); margin: 0 .2cqw .35em; }
.sc-line b { font-weight: 600; color: #ff7a3d; }
.sc-batt { margin-top: auto; opacity: 0; transition: opacity .6s; }
.sc-batt.on { opacity: 1; }
.sc-batt-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1cqw; letter-spacing: .2em; text-transform: uppercase; }
.sc-batt-row b { font-family: var(--f-display); font-weight: 900; font-size: 7cqw; letter-spacing: 0; line-height: .9; color: #ff7a3d; }
.sc-bar { height: 1cqw; background: #2a1d0b; margin-top: .8cqw; }
.sc-bar span { display: block; height: 100%; width: 9%; background: #ff7a3d; box-shadow: 0 0 1cqw #ff7a3d; animation: blink 1.6s steps(2) infinite; }
.sc-eta { font-size: 1.05cqw; letter-spacing: .16em; text-transform: uppercase; opacity: .7; margin-top: .7cqw; }

/* ── stacked layout: narrow panes and phones read panel by panel ── */
.reader.stacked {
  .page { display: flex; flex-direction: column; aspect-ratio: auto; gap: 14px; padding: 10px; }
  .page.splash { padding: 10px; gap: 14px; }
  .panel { overflow: visible; background: none; box-shadow: none; cursor: default; }
  .art, .insert { position: relative; inset: auto; aspect-ratio: var(--ar); box-shadow: 0 0 0 2px var(--rule, #000); overflow: hidden; }
  .art.fit-top { aspect-ratio: 4 / 3; }
  .letters { position: static; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 12px 2px 4px; }
  .letter { position: relative; left: auto !important; top: auto !important; width: auto !important; max-width: 100%; transform: none; }
  .l-cap { font-size: 16.5px; }
  .l-say, .l-off, .l-radio { font-size: 14px; align-self: flex-start; }
  .l-say.shout, .l-off.shout { font-size: 17px; }
  .l-off, .l-radio { margin-top: 8px; }
  .l-ember { font-size: 13px; }
  .l-chorus { font-size: 14.5px; align-self: center; }
  .l-slug { font-size: 10.5px; white-space: normal; line-height: 1.5; }
  .l-sfx { font-size: 34px; }
  .l-echo { font-size: 16px; text-align: left; color: #cfeeee; -webkit-mask-image: none; mask-image: none; }
  .l-title { text-align: left; }
  .l-title b { font-size: 96px; }
  .l-title span { font-size: 10.5px; margin-top: 8px; }
  .l-endmark { font-size: 11.5px; }
  .letter[class*="tail-"]::after { display: none; }
  .page[data-era="1995"] .l-chorus, .page[data-era="1995"] .l-echo { color: #0a2a2c; }
  .rec-head b { font-size: 17px; } .rec-head span, .rec-foot { font-size: 9.5px; }
  .rec-line { font-size: 14px; } .rec-hint { font-size: 14px; bottom: 44px; right: 14px; }
  .is-record .insert { padding: 18px 16px; gap: 9px; aspect-ratio: auto; min-height: 250px; }
  .ro-label, .ro-sub { font-size: 9.5px; } .ro-value { font-size: 34px; }
  .is-readout .insert { aspect-ratio: auto; padding: 22px 16px; }
  .is-black .insert { aspect-ratio: 5 / 1; }
  .is-screen .insert { aspect-ratio: auto; padding: 22px 20px; gap: 6px; box-shadow: inset 0 0 0 6px #17120d; }
  .sc-ring { width: 54px; height: 54px; border-width: 3px; margin: 8px auto 16px; }
  .sc-line { font-size: 11.5px; } .sc-batt-row { font-size: 10px; } .sc-batt-row b { font-size: 54px; } .sc-eta { font-size: 10px; }
  .sc-batt { margin-top: 18px; } .sc-bar { height: 8px; }
  .note { position: absolute; }
}

/* ── Issue #2 inserts ── */

/* Ember, unsure: a dashed outline means "this is what the record says. I can't vouch for it." */
.l-ember.unsure { border-style: dashed; color: #ffe6b8; background: rgba(20,13,4,.86); box-shadow: 0 .2cqw .6cqw rgba(0,0,0,.5); }
.l-ember.unsure::before { background: none; box-shadow: none; border: .11em solid var(--amber); animation: none; }

/* a paper placemat on a diner table, in Jonah's hand */
.is-placemat .insert { background: radial-gradient(120% 100% at 30% 20%, #523a26, #24170e); padding: 2cqw; cursor: pointer; justify-content: center; }
.mat {
  position: relative; height: 100%; display: flex; flex-direction: column; gap: 1cqw;
  background: #f6efdc; padding: 2.6cqw 2.5cqw 2.2cqw; border-radius: .9cqw;
  box-shadow: 0 .7cqw 1.8cqw rgba(0,0,0,.55); transform: rotate(-.8deg);
  font-family: var(--f-hand); color: var(--blue-ink); overflow: hidden;
}
.mat::before { content: ""; position: absolute; inset: 1cqw; border: 1px solid #c8523f; outline: 1px solid #c8523f; outline-offset: .3cqw; border-radius: .5cqw; pointer-events: none; opacity: .8; }
.mat-title { font-family: var(--f-mono); font-size: .9cqw; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #a8442f; }
.mat-notes { list-style: none; margin: 0; padding: 0; font-size: 1.72cqw; line-height: 1.28; }
.mat-notes li { margin-bottom: .55cqw; opacity: 0; }
.mat-notes li.strong { font-weight: 700; text-decoration: underline; text-decoration-thickness: .1em; text-underline-offset: .15em; }
.mat.go .mat-notes li { animation: write .9s steps(26) both; animation-delay: calc(var(--i) * .7s); }
@keyframes write { from { opacity: 1; clip-path: inset(-10% 100% -10% 0); } to { opacity: 1; clip-path: inset(-10% -2% -10% 0); } }
.mat-coil { display: block; width: 52%; margin: .2cqw auto 0; overflow: visible; }
.mat-coil ellipse, .mat-coil path { fill: none; stroke: var(--blue-ink); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.mat.go .mat-coil ellipse, .mat.go .mat-coil path { animation: draw .5s ease forwards; animation-delay: calc(2.4s + var(--i, 6) * .22s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.mat-coil text { font-family: var(--f-hand); font-size: 9px; fill: var(--blue-ink); text-anchor: middle; opacity: 0; }
.mat.go .mat-coil text { animation: appear .5s 4.2s forwards; }
.mat-key { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7cqw 1.4cqw; margin-top: auto; font-size: 2.05cqw; line-height: 1.2; }
.mat-g { position: relative; white-space: nowrap; opacity: 0; }
.mat-g i { font-style: normal; font-family: var(--f-mono); font-size: .4em; color: #a8442f; margin-right: .6em; vertical-align: .55em; }
.mat-g.ink2 { color: #1d1a16; }
.mat.go .mat-g { animation: write .6s steps(11) both; animation-delay: calc(var(--d, 0s) + var(--i) * .5s); }
.mat-g.gap { color: var(--red); justify-self: start; }
.mat-g.gap b { margin-left: .5em; font-size: 1.25em; }
.mat-g.gap::after { content: ""; position: absolute; inset: -.3em -.6em -.25em -.4em; border: .11em solid var(--red); border-radius: 50%; transform: rotate(-3deg); }
.mat.keyonly .mat-key { margin: auto 0; font-size: 3.5cqw; gap: 1.6cqw 2cqw; }
.mat.keyonly.narrow .mat-key { font-size: 2.55cqw; gap: 2cqw 1.4cqw; }
.mat.notesonly { justify-content: center; gap: 2cqw; }
.mat.notesonly .mat-notes { font-size: 2.1cqw; }
.mat.notesonly .mat-notes li { margin-bottom: 1cqw; }
.mat.notesonly .mat-coil { width: 66%; }
.mat.full .mat-notes { font-size: 1.95cqw; }
.mat.full .mat-key { font-size: 2.55cqw; gap: 1.15cqw 1.4cqw; margin-top: 2.6cqw; }
.mat.compact .mat-key { grid-template-columns: 1fr; font-size: 2.35cqw; gap: .9cqw; }

/* the screen at five percent, reading the key */
.is-hexscreen .insert {
  background: #040302; padding: 3cqw 3.4cqw; font-family: var(--f-mono); color: #a9701c;
  justify-content: space-between; cursor: default;
  box-shadow: inset 0 0 0 .9cqw #17120d, inset 0 0 0 1.05cqw #3a2c18;
}
.hx-label { font-size: 1.05cqw; letter-spacing: .24em; text-transform: uppercase; opacity: .85; }
.hx-label b { color: #d99530; }
.hx-value { font-size: 6.2cqw; font-weight: 600; letter-spacing: .04em; color: #d99530; text-shadow: 0 0 1.4cqw rgba(255,160,40,.35); white-space: nowrap; min-height: 1.2em; }
.hx-value::after { content: "▌"; opacity: .55; margin-left: .08em; animation: blink 1s steps(2) infinite; }
.hx-foot { display: flex; justify-content: space-between; font-size: .95cqw; letter-spacing: .18em; text-transform: uppercase; opacity: .7; }
.hx-foot i { font-style: normal; }
.hx-foot i:last-child { color: #ff7a3d; }

/* the wall clock */
.is-clock .insert { background: radial-gradient(120% 90% at 50% 15%, #7d5c3d, #33241a 72%); align-items: center; justify-content: center; gap: 1.6cqw; cursor: default; }
.clock {
  position: relative; width: 64%; aspect-ratio: 1; border-radius: 50%; background: #f1e6c8;
  border: .85cqw solid #1a1612;
  box-shadow: 0 0 0 .45cqw #b9a57f, 0 1.2cqw 2.4cqw rgba(0,0,0,.55), inset 0 0 3cqw rgba(120,80,30,.35);
}
.clock i { position: absolute; left: 50%; top: 50%; width: .45cqw; height: 8%; background: #1a1612; transform-origin: 0 0; transform: rotate(var(--a)) translate(-50%, -575%); }
.clock .hand { position: absolute; left: 50%; bottom: 50%; background: #1a1612; border-radius: 99px; transform-origin: 50% 100%; transform: translateX(-50%) rotate(var(--a)); }
.clock .hand.hour { width: 1.05cqw; height: 25%; }
.clock .hand.min { width: .75cqw; height: 38%; }
.clock .hand.sec { width: .28cqw; height: 40%; background: var(--red); animation: tick 60s steps(60) infinite; }
@keyframes tick { from { transform: translateX(-50%) rotate(120deg); } to { transform: translateX(-50%) rotate(480deg); } }
.pin { position: absolute; left: 50%; top: 50%; width: 1.5cqw; height: 1.5cqw; margin: -.75cqw; border-radius: 50%; background: #1a1612; }
.clock-cap { font-family: var(--f-mono); font-weight: 600; font-size: 1.05cqw; letter-spacing: .22em; text-transform: uppercase; color: #f6efdc; background: #0a0a0a; padding: .5em .9em; border-left: .35em solid var(--amber); }

/* waking: the radio shouts for a grid that isn't there */
.is-wake .insert {
  background: #040302; padding: 2cqw 2.6cqw; font-family: var(--f-mono); color: #ffc66e;
  justify-content: center; gap: .55cqw; cursor: pointer; overflow: hidden;
  box-shadow: inset 0 0 0 .7cqw #17120d, inset 0 0 0 .85cqw #3a2c18;
}
.wk-sweep { position: absolute; right: -6%; top: 50%; width: 58%; aspect-ratio: 1; translate: 0 -50%; border-radius: 50%; border: 1px solid rgba(255,160,40,.4); background: conic-gradient(from 0deg, rgba(255,160,40,.55), transparent 30%); animation: sweep 1.1s linear infinite; }
.is-wake.done .wk-sweep { animation: none; opacity: .1; }
@keyframes sweep { to { rotate: 360deg; } }
.wk-line { position: relative; font-size: 1.05cqw; letter-spacing: .2em; text-transform: uppercase; }
.wk-last { color: #ff7a3d; opacity: 0; transition: opacity .3s; }
.wk-last.on { opacity: 1; }
.wk-pct { position: relative; font-family: var(--f-display); font-weight: 900; font-size: 9.5cqw; line-height: .9; color: #ff7a3d; text-shadow: 0 0 2cqw rgba(255,120,60,.5); }

/* the ring goes out */
.is-dying .insert { background: #000; align-items: center; justify-content: center; cursor: pointer; }
.dy-ring { width: 8.5cqw; height: 8.5cqw; margin-left: 34%; border-radius: 50%; border: .42cqw solid var(--amber); box-shadow: 0 0 3cqw rgba(255,160,40,.7), inset 0 0 1.6cqw rgba(255,160,40,.4); }
.is-dying.going .dy-ring { animation: die 3.2s cubic-bezier(.6,0,.9,.4) forwards; }
.is-dying.dead .dy-ring { opacity: 0; }
@keyframes die { 0% { transform: scale(1, 1); opacity: 1; } 45% { transform: scale(1.3, .035); opacity: 1; } 86% { transform: scale(.03, .035); opacity: 1; } 100% { transform: scale(0, 0); opacity: 0; } }
.is-dying .l-ember { transition: opacity 1.6s .3s, box-shadow 1.6s; }
.is-dying.dead .l-ember { opacity: .36; box-shadow: none; }
.is-dying.dead .l-ember::before { animation: none; opacity: .3; box-shadow: none; }

.reader.stacked {
  .is-placemat .insert { aspect-ratio: auto; padding: 12px; }
  .mat { height: auto; padding: 20px 18px 16px; gap: 8px; border-radius: 8px; }
  .mat::before { inset: 7px; outline-offset: 3px; }
  .mat-title { font-size: 9.5px; }
  .mat-notes { font-size: 16.5px; }
  .mat-notes li { margin-bottom: 5px; }
  .mat-key, .mat.keyonly .mat-key, .mat.compact .mat-key { grid-template-columns: repeat(2, 1fr); font-size: 18px; gap: 6px 12px; margin: 6px 0 0; }
  .is-hexscreen .insert { aspect-ratio: auto; padding: 24px 20px; gap: 14px; box-shadow: inset 0 0 0 6px #17120d; }
  .hx-label, .hx-foot { font-size: 9.5px; }
  .hx-value { font-size: 34px; }
  .is-clock .insert { aspect-ratio: auto; padding: 22px; gap: 12px; }
  .clock { width: 150px; border-width: 7px; }
  .clock i { width: 4px; }
  .clock .hand.hour { width: 8px; } .clock .hand.min { width: 6px; } .clock .hand.sec { width: 2px; }
  .pin { width: 12px; height: 12px; margin: -6px; }
  .clock-cap { font-size: 10.5px; }
  .is-wake .insert { aspect-ratio: auto; padding: 24px 20px; gap: 5px; box-shadow: inset 0 0 0 6px #17120d; }
  .wk-line { font-size: 10px; }
  .wk-pct { font-size: 64px; }
  .is-dying .insert { aspect-ratio: 3 / 1; }
  .dy-ring { width: 54px; height: 54px; border-width: 3px; margin-left: 0; }
}

/* ── Issue #3 inserts ── */

/* cash in Jonah's pocket, beside the battery gauge */
.cash { color: #b9d8a2; font-weight: 600; padding-left: 10px; border-left: 1px solid #2a3040; }
.cash i, .cash em { font-style: normal; }
.cash b { font-weight: inherit; }
@media (max-width: 760px) {
  .cash i, .cash em, .batt:has(.cash:not([hidden])) .batt-cell { display: none; }
  /* a two-part figure ("$40.00 · $1,600 riding") stacks, so the section links keep their room */
  .cash { padding-left: 8px; display: inline-grid; justify-items: end; line-height: 1.25; }
  .cash b + em + b { font-size: .82em; opacity: .8; }
}

/* a page of the notebook, used as lettering */
.l-page {
  font-family: var(--f-hand); font-size: 2.5cqw; line-height: 3.5cqw; color: var(--blue-ink);
  padding: 3.5cqw 2.4cqw 1.75cqw 5cqw;
  background:
    linear-gradient(90deg, transparent 3.6cqw, rgba(200,70,60,.55) 3.6cqw, rgba(200,70,60,.55) calc(3.6cqw + 1px), transparent calc(3.6cqw + 1px)),
    repeating-linear-gradient(180deg, transparent 0 calc(3.5cqw - 1px), rgba(40,90,170,.3) calc(3.5cqw - 1px) 3.5cqw),
    #fbf8ee;
  box-shadow: 0 .6cqw 2cqw rgba(0,0,0,.6), -1.1cqw 0 0 #15130f;
  border-radius: 0 .4cqw .4cqw 0;
}

/* Dee's wall */
.is-wall .insert { background: linear-gradient(180deg, #7b6a52, #5d4f3c); padding: 1.6cqw 1.5cqw; justify-content: center; cursor: default; }
.pol-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5cqw 1.1cqw; }
.pol {
  position: relative; display: block; background: #f6f0e0; padding: .55cqw .55cqw 0; transform: rotate(var(--r, 0deg));
  box-shadow: 0 .3cqw .8cqw rgba(0,0,0,.4); transition: transform .2s, box-shadow .2s;
}
.pol::before { content: ""; position: absolute; left: 50%; top: -.4cqw; width: .8cqw; height: .8cqw; margin-left: -.4cqw; border-radius: 50%; background: #b93a26; box-shadow: 0 .15cqw .2cqw rgba(0,0,0,.5); z-index: 1; }
.pol i {
  display: block; aspect-ratio: 1 / .92;
  background:
    radial-gradient(circle at var(--x, 50%) 40%, hsl(var(--h, 24) 45% 62%) 0 13%, transparent 14%),
    radial-gradient(ellipse 34% 40% at var(--x, 50%) 100%, hsl(calc(var(--h, 24) * 6) 28% 38%) 0 99%, transparent 100%),
    linear-gradient(180deg, hsl(calc(var(--h, 24) + 180) 30% 72%) 0 56%, hsl(var(--h, 24) 25% 44%) 56%);
  filter: sepia(.35) saturate(.8);
}
.pol i.ph { background-repeat: no-repeat; filter: sepia(.18) saturate(.92); }
.pol b { display: flex; align-items: center; justify-content: center; min-height: 2.9cqw; padding: .25cqw 0 .35cqw; font-family: var(--f-hand); font-weight: 400; font-size: 1.02cqw; line-height: 1.05; color: var(--blue-ink); text-align: center; }
.pol:hover { transform: rotate(0deg) scale(1.5); z-index: 3; box-shadow: 0 .8cqw 2cqw rgba(0,0,0,.6); }
.pol.gap { background: none; box-shadow: none; outline: 1px dashed rgba(246,240,224,.45); outline-offset: -.2cqw; }
.pol.gap i { background: none; filter: none; }
.pol.gap:hover { transform: rotate(var(--r)); }

/* the notebook: a composition book, ruled */
.is-ledger .insert { background: radial-gradient(120% 100% at 30% 10%, #4a3a2a, #1f1711); padding: 2cqw 2cqw 2cqw 3cqw; cursor: pointer; justify-content: center; }
.nb {
  --ln: 3.08cqw;
  position: relative; height: 100%; padding: calc(var(--ln) * 1.5) 2.2cqw 2cqw 5.4cqw;
  font-family: var(--f-hand); font-size: 2.1cqw; line-height: var(--ln); color: var(--blue-ink);
  background:
    linear-gradient(90deg, transparent 4cqw, rgba(200,70,60,.5) 4cqw, rgba(200,70,60,.5) calc(4cqw + 1px), transparent calc(4cqw + 1px)),
    repeating-linear-gradient(180deg, transparent 0 calc(var(--ln) - 1px), rgba(40,90,170,.28) calc(var(--ln) - 1px) var(--ln)),
    #fbf8ee;
  box-shadow: 0 .7cqw 1.8cqw rgba(0,0,0,.55), -1.2cqw 0 0 #15130f;
  border-radius: 0 .5cqw .5cqw 0; transform: rotate(.5deg); overflow: hidden;
}
.nb-title { display: block; font-weight: 700; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .18em; margin-bottom: var(--ln); }
.nb-rows { list-style: none; margin: 0; padding: 0; }
.nb-rows li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1cqw; margin-bottom: var(--ln); opacity: 0; }
.nb-rows li b { font-weight: 700; color: #1d1a16; white-space: nowrap; }
.nb-rows li em { flex: 0 0 100%; font-style: normal; font-size: .86em; color: var(--red); padding-left: 1.4em; }
.nb-total { display: flex; justify-content: space-between; align-items: baseline; border-top: .22cqw solid #1d1a16; margin-top: calc(var(--ln) * -.5); padding-top: calc(var(--ln) * .5 - .22cqw); opacity: 0; }
.nb-total b { font-size: 1.5em; color: #1d1a16; }
.nb-foot { margin-top: var(--ln); }
.nb-foot p { margin: 0; color: var(--red); opacity: 0; }
.nb.go .nb-rows li, .nb.go .nb-total, .nb.go .nb-foot p { animation: write .8s steps(24) both; animation-delay: calc(var(--i) * .55s); }

/* the shop calendar */
.is-calendar .insert { background: linear-gradient(180deg, #7b6a52, #5d4f3c); padding: 2.4cqw; justify-content: center; cursor: pointer; }
.cal { background: #fbf8ee; box-shadow: 0 .7cqw 1.8cqw rgba(0,0,0,.5); transform: rotate(-.7deg); color: #1d1a16; }
.cal-head { display: flex; align-items: baseline; justify-content: space-between; padding: 1.4cqw 1.6cqw 1cqw; background: #b93a26; color: #fbf8ee; }
.cal-head b { font-family: var(--f-display); font-weight: 900; font-size: 4.4cqw; line-height: .9; text-transform: uppercase; letter-spacing: .02em; }
.cal-head span { font-family: var(--f-mono); font-weight: 600; font-size: 1.3cqw; letter-spacing: .2em; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-dow i { font-style: normal; font-family: var(--f-mono); font-size: .95cqw; font-weight: 600; text-align: center; padding: .6cqw 0; color: #857a68; border-bottom: 1px solid #c9bfa7; }
.cd { position: relative; aspect-ratio: 1 / 1.12; border-right: 1px solid #ddd3bc; border-bottom: 1px solid #ddd3bc; padding: .3cqw .45cqw; }
.cd:nth-child(7n) { border-right: 0; }
.cd.off { background: #f1ecdd; }
.cd b { font-family: var(--f-mono); font-weight: 500; font-size: 1.2cqw; }
.cd em { position: absolute; left: .3cqw; right: .2cqw; bottom: .25cqw; font-style: normal; font-family: var(--f-hand); font-size: .98cqw; line-height: 1; color: var(--blue-ink); }
.cd.x::before, .cd.x::after { content: ""; position: absolute; left: 12%; right: 12%; top: 50%; height: .28cqw; background: #b93a26; border-radius: 99px; opacity: 0; transform: rotate(40deg) scaleX(0); }
.cd.x::after { transform: rotate(-42deg) scaleX(0); }
.cal.go .cd.x::before { animation: slash .22s ease-out forwards; animation-delay: calc(var(--i) * .16s); --rot: 40deg; }
.cal.go .cd.x::after { animation: slash .22s ease-out forwards; animation-delay: calc(var(--i) * .16s + .1s); --rot: -42deg; }
@keyframes slash { from { opacity: .9; transform: rotate(var(--rot)) scaleX(0); } to { opacity: .9; transform: rotate(var(--rot)) scaleX(1); } }
.cd.today { background: #fff3c4; }
.cd.today::after { content: ""; position: absolute; inset: 6%; border: .26cqw solid var(--blue-ink); border-radius: 50%; transform: rotate(-6deg); }

/* a camera viewfinder over the art */
.vf { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 9cqw 2cqw rgba(0,0,0,.6); }
.vf i { position: absolute; width: 6cqw; height: 6cqw; border: .3cqw solid rgba(255,255,255,.85); }
.vf i:nth-child(1) { left: 5%; top: 6%; border-right: 0; border-bottom: 0; }
.vf i:nth-child(2) { right: 5%; top: 6%; border-left: 0; border-bottom: 0; }
.vf i:nth-child(3) { left: 5%; bottom: 6%; border-right: 0; border-top: 0; }
.vf i:nth-child(4) { right: 5%; bottom: 6%; border-left: 0; border-top: 0; }
.vf b { position: absolute; left: 50%; top: 50%; width: 5cqw; height: 5cqw; margin: -2.5cqw; border: .2cqw solid rgba(255,255,255,.7); border-radius: 50%; }

.reader.stacked {
  .l-page { font-size: 19px; line-height: 28px; padding: 28px 16px 14px 40px; align-self: stretch; box-shadow: 0 6px 16px rgba(0,0,0,.5), -8px 0 0 #15130f; margin-left: 8px;
    background:
      linear-gradient(90deg, transparent 30px, rgba(200,70,60,.55) 30px, rgba(200,70,60,.55) 31px, transparent 31px),
      repeating-linear-gradient(180deg, transparent 0 27px, rgba(40,90,170,.3) 27px 28px),
      #fbf8ee; }
  .is-wall .insert { aspect-ratio: auto; padding: 16px 12px; }
  .pol-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; }
  .pol { padding: 5px 5px 0; }
  .pol::before { width: 8px; height: 8px; top: -4px; margin-left: -4px; }
  .pol b { font-size: 11.5px; min-height: 30px; }
  .pol:hover { transform: rotate(var(--r)); }
  .is-ledger .insert { aspect-ratio: auto; padding: 14px 12px 14px 20px; }
  .nb { --ln: 26px; height: auto; font-size: 16.5px; padding: 39px 14px 20px 40px; box-shadow: 0 6px 16px rgba(0,0,0,.5), -8px 0 0 #15130f;
    background:
      linear-gradient(90deg, transparent 30px, rgba(200,70,60,.5) 30px, rgba(200,70,60,.5) 31px, transparent 31px),
      repeating-linear-gradient(180deg, transparent 0 25px, rgba(40,90,170,.28) 25px 26px),
      #fbf8ee; }
  .nb-total { border-top-width: 2px; padding-top: 11px; }
  .is-calendar .insert { aspect-ratio: auto; padding: 16px; }
  .cal-head { padding: 12px 14px 8px; }
  .cal-head b { font-size: 34px; } .cal-head span { font-size: 11px; }
  .cal-dow i { font-size: 9.5px; padding: 5px 0; }
  .cd { padding: 3px 4px; } .cd b { font-size: 11px; } .cd em { font-size: 9px; }
  .cd.x::before, .cd.x::after { height: 2.5px; }
  .cd.today::after { border-width: 2px; }
  .vf i { width: 34px; height: 34px; border-width: 2px; }
  .vf b { width: 30px; height: 30px; margin: -15px; border-width: 2px; }
}

/* ── Issue #4 inserts ── */

/* art reused from an earlier issue, shown as a memory */
.art.memory img { filter: sepia(.55) saturate(.7) contrast(1.05) brightness(.92); }
.art.memory::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 7cqw 2cqw rgba(20,10,0,.75); pointer-events: none; }

/* art mirrored left to right, so the speakers stand under their own balloons */
.art.flip img { transform: scaleX(-1); }

/* a notebook page can hold several lines */
.l-page { white-space: pre-line; }

/* the list, as a checklist */
.nb.list .nb-rows li { margin-bottom: calc(var(--ln) * .5); }
.nb-rows li.ok span { text-decoration: line-through; text-decoration-thickness: .08em; opacity: .7; }
.nb-rows li.ok b { color: #1f6b3a; font-size: 1.25em; line-height: .8; }
.nb-rows li.open b { color: var(--red); }

/* one Polaroid from Dee's wall, on its own */
.is-wall .insert.single { justify-content: flex-start; padding-top: 3.4cqw; }
.is-wall .insert.single .pol-grid { grid-template-columns: 1fr; width: 74%; margin: 0 auto; }
.is-wall .insert.single .pol { padding: 1cqw 1cqw 0; }
.is-wall .insert.single .pol b { font-size: 2cqw; min-height: 4.6cqw; }
.is-wall .insert.single .pol:hover { transform: rotate(var(--r)); }

/* Gus's sign */
.is-sign .insert { background: linear-gradient(180deg, #5a4a38, #3a2e22); padding: 2.2cqw 1.8cqw; justify-content: center; cursor: default; }
.card {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5cqw;
  height: 100%; padding: 3cqw 1.4cqw; text-align: center; transform: rotate(-1.4deg);
  font-family: "Permanent Marker", var(--f-hand); color: #17120d; line-height: 1.02;
  background:
    repeating-linear-gradient(90deg, rgba(60,35,10,.09) 0 1px, transparent 1px .7cqw),
    linear-gradient(170deg, #c79a66, #a97b49);
  box-shadow: 0 .8cqw 2cqw rgba(0,0,0,.55), inset 0 0 3cqw rgba(70,40,10,.35);
}
.card::before { content: ""; position: absolute; left: 50%; top: -1.2cqw; width: 9cqw; height: 2.6cqw; translate: -50% 0; rotate: 2deg; background: rgba(238,226,186,.82); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.card span { font-size: calc(var(--s, 1) * 4.6cqw); }
.card span.gap { margin-top: 2.2cqw; }
.card span.under { text-decoration: underline; text-decoration-thickness: .09em; text-underline-offset: .16em; }

/* Gus's station log */
.is-log .insert { background: radial-gradient(120% 100% at 30% 10%, #4a3a2a, #1f1711); padding: 2cqw; cursor: pointer; justify-content: center; }
.lg { height: 100%; background: #eef0e2; color: #2a3140; box-shadow: 0 .7cqw 1.8cqw rgba(0,0,0,.55); transform: rotate(.6deg); padding: 1.6cqw 1.2cqw 1.6cqw; display: flex; flex-direction: column; }
.lg-head { font-family: var(--f-mono); font-weight: 600; font-size: .92cqw; letter-spacing: .14em; text-transform: uppercase; color: #5b7a5e; padding-bottom: .8cqw; border-bottom: .2cqw solid #5b7a5e; }
.lg-cols, .lg-row { display: grid; grid-template-columns: 5.6cqw 4cqw 5cqw 5.2cqw minmax(0, 1fr); column-gap: .6cqw; align-items: start; }
.lg-cols { font-family: var(--f-mono); font-size: .78cqw; letter-spacing: .14em; text-transform: uppercase; color: #5b7a5e; padding: .55cqw 0; border-bottom: 1px solid #9db39f; }
.lg-row { flex: 1; font-family: var(--f-hand); font-size: 1.5cqw; line-height: 1.22; padding: .7cqw 0 .5cqw; border-bottom: 1px solid #b9c9ba; position: relative; }
.lg-row span { position: relative; z-index: 1; opacity: 0; }
.lg-row span:nth-child(-n+4) { font-family: var(--f-mono); font-size: 1.04cqw; padding-top: .3cqw; white-space: nowrap; }
@keyframes appear { to { opacity: 1; } }
.lg.go .lg-row span { animation: appear .35s both; animation-delay: calc(var(--i) * .28s); }
.lg-row.hot::before { content: ""; position: absolute; inset: .25cqw -.5cqw .2cqw -.5cqw; background: rgba(255,226,60,.72); transform: scaleX(0); transform-origin: 0 50%; border-radius: .3cqw; }
.lg.go .lg-row.hot::before { animation: swipe .5s cubic-bezier(.4,0,.2,1) forwards; animation-delay: calc(3.2s + (var(--i) - 3) * .45s); }
@keyframes swipe { to { transform: scaleX(1); } }
.lg-row.hot span:last-child { font-weight: 700; color: #1b2b63; }

/* the cassette */
.is-tape .insert { background: radial-gradient(120% 100% at 30% 20%, #4c3b2b, #1d150f); padding: 2.2cqw 2.6cqw; justify-content: center; gap: 1.5cqw; cursor: pointer; }
.cas {
  position: relative; width: min(100%, 44cqw); aspect-ratio: 1.58 / 1; margin: 0 auto; border-radius: 1cqw;
  background: linear-gradient(180deg, #2b2b2e, #18181a); box-shadow: 0 .8cqw 2cqw rgba(0,0,0,.6), inset 0 0 0 .2cqw #3b3b40;
  transform: rotate(-1.2deg);
}
.cas::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 15%; background: #232326; clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); border-radius: .4cqw .4cqw 0 0; }
.cas-label { position: absolute; left: 6%; right: 6%; top: 8%; height: 34%; background: #f4ecd2; border-radius: .4cqw; padding: .5cqw 1.2cqw; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 1.2cqw; overflow: hidden;
  font-family: "Permanent Marker", var(--f-hand); color: #1b2b63; line-height: 1.1; }
.cas-label s { flex: 0 0 100%; font-family: var(--f-mono); font-size: .9cqw; letter-spacing: .08em; color: #8a7d68; text-decoration-thickness: .12em; text-decoration-color: #1b2b63; }
.cas-label b { font-size: 2.5cqw; font-weight: 400; }
.cas-label span { font-size: 1.5cqw; }
.cas-label span:last-child { color: #b93a26; }
.cas-win { position: absolute; left: 18%; right: 18%; top: 48%; height: 30%; background: #0d0d0f; border-radius: .8cqw; box-shadow: inset 0 0 0 .2cqw #47474d; display: flex; align-items: center; justify-content: space-between; padding: 0 9%; }
.reel { width: 24%; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(#d9d2c0 0 12%, #2a2a2d 12% 33%, #d9d2c0 33% 45%, #2a2a2d 45% 66%, #d9d2c0 66% 78%, #2a2a2d 78%); box-shadow: 0 0 0 .5cqw #5b4a3a, 0 0 0 .7cqw #1c1c1e; }
.is-tape.playing .reel { animation: sweep .9s linear infinite; }
.wave { position: relative; height: 8.5cqw; display: flex; align-items: center; gap: .14cqw; padding: 0 .4cqw; background: #0b0f0c; border-radius: .4cqw; box-shadow: inset 0 0 0 1px #2c3a30; overflow: hidden; }
.wave i { flex: 1; min-width: 1px; background: #5d7a63; border-radius: 1px; }
.wave .head { position: absolute; top: 0; bottom: 0; left: 0; width: .25cqw; background: var(--amber); box-shadow: 0 0 1cqw var(--amber); opacity: 0; }
.is-tape.playing .wave .head { opacity: 1; animation: scrub var(--dur) linear forwards; }
.is-tape.playing .wave i { animation: lit .25s linear forwards; animation-delay: calc(var(--i) / 96 * var(--dur)); }
@keyframes scrub { to { left: 100%; } }
@keyframes lit { to { background: var(--amber); } }
.tape-ctl { display: flex; align-items: center; justify-content: space-between; gap: 1cqw; font-family: var(--f-mono); font-size: .95cqw; letter-spacing: .16em; text-transform: uppercase; color: #a89a84; }
.tape-play { font-family: var(--f-mono); font-weight: 600; font-size: 1.1cqw; letter-spacing: .14em; text-transform: uppercase; color: #150d00; background: var(--amber); padding: .8cqw 1.4cqw; border-radius: .3cqw; }
.is-tape.playing .tape-play { background: #6e4406; color: #ffd590; }

/* Gus's map */
.is-map .insert { background: #3a2e22; padding: 1.6cqw; cursor: pointer; }
.mp { width: 100%; height: 100%; display: block; box-shadow: 0 .7cqw 1.8cqw rgba(0,0,0,.55); transform: rotate(-.5deg); }
.mp .land { fill: #efe6cf; }
.mp .bay { fill: #b9d3d6; stroke: #7fa3a8; stroke-width: 1; }
.mp .hill { fill: #d5dbb6; }
.mp .road { fill: none; stroke: #c98b6b; stroke-width: 3; }
.mp .road.thin { stroke-width: 1.8; }
.mp .lbl { font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .14em; fill: #8a6a52; }
.mp .lbl.sea { fill: #55878d; font-style: italic; }
.mp .ring { fill: none; stroke: #33384a; stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .85; }
.mp .stn { fill: #1b2b63; opacity: 0; }
.mp .who, .mp .fix text, .mp .ttl { font-family: var(--f-hand); fill: #1b2b63; }
.mp .who { font-size: 13px; opacity: 0; }
.mp .ttl { font-size: 15px; font-weight: 700; }
.mp .key { font-family: var(--f-hand); font-size: 10.5px; fill: #5b6477; }
.mp .fix { opacity: 0; }
.mp .fix circle { stroke: #b93a26; stroke-width: 1.5; }
.mp .fix path { stroke: #b93a26; stroke-width: 3; stroke-linecap: round; fill: none; }
.mp .fix rect { fill: #17120d; }
.mp .fix text { font-size: 13px; fill: #b93a26; font-weight: 700; }
.mp #mpHatch line { stroke: #b93a26; stroke-width: 1.2; }
.mp.go .ring { animation: draw 1s ease-in-out forwards; animation-delay: calc(var(--i) * .8s); }
.mp.go .stn, .mp.go .who { animation: appear .4s forwards; animation-delay: calc(var(--i) * .8s); }
.mp.go .fix { animation: appear .6s forwards; animation-delay: calc(var(--i) * .8s + .4s); }

.reader.stacked {
  .is-wall .insert.single { padding: 18px 0 6px; }
  .is-wall .insert.single .pol-grid { width: 62%; }
  .is-wall .insert.single .pol b { font-size: 17px; min-height: 40px; }
  .is-sign .insert { aspect-ratio: auto; padding: 22px 26px; }
  .card { height: auto; padding: 30px 14px 24px; gap: 4px; }
  .card::before { width: 80px; height: 22px; top: -10px; }
  .card span { font-size: calc(var(--s, 1) * 30px); }
  .card span.gap { margin-top: 14px; }
  .is-log .insert { aspect-ratio: auto; padding: 12px; }
  .lg { height: auto; padding: 14px 10px; }
  .lg-head { font-size: 9px; padding-bottom: 6px; border-bottom-width: 2px; }
  .lg-cols, .lg-row { grid-template-columns: 46px 34px 42px 44px minmax(0, 1fr); column-gap: 5px; }
  .lg-cols { font-size: 8px; padding: 5px 0; }
  .lg-row { font-size: 14px; padding: 6px 0 5px; }
  .lg-row span:nth-child(-n+4) { font-size: 9.5px; padding-top: 3px; }
  .lg-row.hot::before { inset: 2px -4px; }
  .is-tape .insert { aspect-ratio: auto; padding: 20px 16px; gap: 14px; }
  .cas { width: min(100%, 300px); border-radius: 8px; }
  .cas-label { padding: 4px 9px; gap: 0 8px; }
  .cas-label s { font-size: 8px; } .cas-label b { font-size: 19px; } .cas-label span { font-size: 12px; }
  .reel { box-shadow: 0 0 0 4px #5b4a3a, 0 0 0 5px #1c1c1e; }
  .wave { height: 60px; gap: 1px; }
  .wave .head { width: 2px; }
  .tape-ctl { font-size: 9.5px; flex-wrap: wrap; }
  .tape-play { font-size: 11.5px; padding: 11px 14px; border-radius: 3px; }
  .is-map .insert { aspect-ratio: 400 / 620; padding: 10px; }
}

/* ── Issue #5 inserts ── */

/* a memory of 2040: kept cold. The only cyan after the crossing is in Jonah's head. */
.art.memory.cold img { filter: saturate(1.08) contrast(1.06) brightness(.9); }
.art.memory.cold::after { box-shadow: inset 0 0 8cqw 2.5cqw rgba(2,14,22,.85); }

/* ledger flags */
.nb-rows li.hot b { position: relative; }
.nb-rows li.hot b::after { content: ""; position: absolute; inset: -.28em -.5em -.22em -.5em; border: .1em solid var(--red); border-radius: 50%; transform: rotate(-4deg); }
.nb-rows li.ask b { color: var(--red); font-size: 1.6em; line-height: .7; }
.nb-rows li.late { color: #7a2c12; }
.nb-rows li.late b { color: #7a2c12; }

/* Dee's arithmetic, on the back of the landlord's envelope */
.nb.sk-envelope {
  --ln: 3.9cqw; font-size: 2.55cqw;
  background:
    linear-gradient(to bottom right, transparent calc(50% - 1px), rgba(110,80,30,.38) 50%, transparent calc(50% + 1px)) top left / 50% 30% no-repeat,
    linear-gradient(to bottom left, transparent calc(50% - 1px), rgba(110,80,30,.38) 50%, transparent calc(50% + 1px)) top right / 50% 30% no-repeat,
    linear-gradient(175deg, #ecd9a8, #dcc48c);
  box-shadow: 0 .7cqw 1.8cqw rgba(0,0,0,.55);
  border-radius: .3cqw; transform: rotate(-1.4deg);
  padding: calc(var(--ln) * 3.2) 3cqw 2cqw 3cqw; font-weight: 700; color: #1b2b63;
}
.nb.sk-envelope .nb-title { font-family: var(--f-mono); font-weight: 600; font-size: .95cqw; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; color: #8a6a34; margin-bottom: calc(var(--ln) * .6); }
.nb.sk-envelope .nb-rows li { margin-bottom: calc(var(--ln) * .35); }
.nb.sk-envelope .nb-rows li b, .nb.sk-envelope .nb-total b { color: #1b2b63; }
.nb.sk-envelope .nb-total { border-top-color: #1b2b63; margin-top: calc(var(--ln) * .2); }
.nb.sk-envelope .nb-foot p { font-size: 1.12em; line-height: 1.35; }
.nb.sk-envelope .nb-foot p:nth-child(2) { font-size: 1.5em; text-decoration: underline; text-decoration-thickness: .09em; text-underline-offset: .14em; }

/* Chuy's book: a steno pad, in pencil */
.nb.sk-steno {
  --ln: 4.3cqw;
  font-size: 1.95cqw; color: #33363b; padding: calc(var(--ln) * 1.7) 1.4cqw 1.6cqw 1.4cqw;
  background:
    radial-gradient(circle at 50% 50%, #1a1612 0 32%, transparent 34%) 0 .7cqw / 2.4cqw 2.4cqw repeat-x,
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(200,70,60,.45) calc(50% - 1px), rgba(200,70,60,.45) 50%, transparent 50%),
    repeating-linear-gradient(180deg, transparent 0 calc(var(--ln) - 1px), rgba(60,130,90,.3) calc(var(--ln) - 1px) var(--ln)),
    #eef3e2;
  box-shadow: 0 .7cqw 1.8cqw rgba(0,0,0,.55); border-radius: .5cqw; transform: rotate(1.6deg);
}
.nb.sk-steno .nb-title { font-size: 1.1em; margin-bottom: 0; color: #33363b; }
.nb.sk-steno .nb-rows li { display: block; margin-bottom: 0; line-height: var(--ln); height: calc(var(--ln) * 2); }
.nb.sk-steno .nb-rows li span { display: block; }
.nb.sk-steno .nb-rows li b { display: inline-block; color: #33363b; padding-left: .8em; }
.nb.sk-steno .nb-rows li.late, .nb.sk-steno .nb-rows li.late b { color: #17306e; }

/* a short list on a tall page: bigger hand, two blank lines left under each entry */
.nb.sk-roomy { --ln: 3.5cqw; font-size: 2.45cqw; }
.nb.sk-roomy .nb-rows li { margin-bottom: calc(var(--ln) * 2); }
.nb.sk-roomy .nb-foot { margin-top: 0; }
.nb.sk-roomy .nb-foot p { font-size: 1.08em; }

/* the television over the counter */
.is-linescore .insert, .is-tubeoff .insert { background: linear-gradient(160deg, #6b5d4a, #3d3429); padding: 1.5cqw; cursor: pointer; }
.tv {
  position: relative; height: 100%; border-radius: 2.6cqw / 3cqw; overflow: hidden;
  background: radial-gradient(120% 110% at 50% 40%, #16323a, #07151b 72%);
  box-shadow: inset 0 0 0 .35cqw #1a1612, inset 0 0 3cqw rgba(0,0,0,.8), 0 0 0 .5cqw #2a231b;
  display: flex; flex-direction: column; justify-content: center; gap: 2cqw; padding: 2.2cqw 3.4cqw;
  font-family: var(--f-mono); color: #e9eecf; text-shadow: 0 0 .6cqw rgba(190,240,220,.45);
}
.tv::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(0,0,0,.24) 0 1px, transparent 1px 3px), radial-gradient(60% 40% at 30% 14%, rgba(255,255,255,.1), transparent 70%); }
.ls-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1cqw; }
.ls-top b { font-family: var(--f-display); font-weight: 900; font-size: 4.6cqw; line-height: 1; text-transform: uppercase; letter-spacing: .03em; color: #ffd27a; }
.ls-top span { font-size: 1.3cqw; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.ls-big { display: none; }
.ls-grid { display: grid; gap: .5cqw; }
.ls-head, .ls-row { display: grid; grid-template-columns: 7.5cqw repeat(var(--n), minmax(0, 1fr)) 8cqw; align-items: center; }
.ls-head { font-size: 1.5cqw; opacity: .65; padding-bottom: .5cqw; border-bottom: 1px solid rgba(233,238,207,.3); }
.ls-head i, .ls-head em { font-style: normal; text-align: center; }
.ls-row { font-size: 4.4cqw; line-height: 1.3; }
.ls-row > b { font-family: var(--f-display); font-weight: 900; letter-spacing: .04em; }
.ls-row span { text-align: center; opacity: .78; }
.ls-row span.hit { opacity: 1; color: #ffd27a; }
.ls-row em { font-style: normal; font-family: var(--f-display); font-weight: 900; font-size: 1.5em; text-align: center; line-height: .9; }
.ls-row em.bump { animation: bump .45s ease-out; }
@keyframes bump { 0% { transform: scale(1.5); color: #fff; } 100% { transform: scale(1); } }
.ls-final { font-size: 1.4cqw; letter-spacing: .24em; text-transform: uppercase; color: #ffd27a; opacity: 0; transition: opacity .5s; }
.tv.done .ls-final { opacity: 1; }
.tv.done.a-wins .ls-row[data-side="h"], .tv.done.h-wins .ls-row[data-side="a"] { opacity: .62; }
/* small sets */
.tv.mini { gap: 1.2cqw; padding: 1.8cqw 2.4cqw; }
.tv.mini .ls-top b { font-size: 3cqw; }
.tv.mini .ls-top span, .tv.mini .ls-final { font-size: .95cqw; }
.tv.mini .ls-head, .tv.mini .ls-row { grid-template-columns: 5.4cqw repeat(var(--n), minmax(0, 1fr)) 6cqw; }
.tv.mini .ls-head { font-size: .95cqw; padding-bottom: .4cqw; }
.tv.mini .ls-row { font-size: 2.5cqw; line-height: 1.35; }
.tv.mini .ls-row em { font-size: 1.7em; }
.tv.mini .ls-grid { gap: .4cqw; }
/* tall sets: the score big, the innings underneath */
.tv.tall { gap: 1.8cqw; padding: 2.4cqw 2.4cqw; }
.tv.tall .ls-top { flex-direction: column; align-items: flex-start; gap: .4cqw; }
.tv.tall .ls-top span, .tv.tall .ls-final { font-size: .95cqw; }
.tv.tall .ls-big { display: grid; grid-template-columns: 1fr 1fr; gap: 1cqw; }
.tv.tall .ls-big span { font-family: var(--f-display); font-weight: 900; font-size: 3cqw; letter-spacing: .05em; display: flex; flex-direction: column; }
.tv.tall .ls-big b { font-size: 4.2em; line-height: .86; color: #ffd27a; }
.tv.tall .ls-head, .tv.tall .ls-row { grid-template-columns: 4.4cqw repeat(var(--n), minmax(0, 1fr)) 3.6cqw; }
.tv.tall .ls-head { font-size: .85cqw; }
.tv.tall .ls-row { font-size: 1.8cqw; }
.tv.tall .ls-row em { font-size: 1.2em; }
.tv.done.a-wins .ls-big [data-side="h"], .tv.done.h-wins .ls-big [data-side="a"] { opacity: .5; }

/* switching it off */
.tv.off { padding: 0; background: #05080a; }
.tube-pic { position: absolute; inset: 0;
  background:
    radial-gradient(40% 50% at 62% 46%, rgba(255,235,190,.55), transparent 70%),
    radial-gradient(30% 34% at 30% 60%, rgba(120,190,150,.45), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 2px, transparent 2px 5px),
    linear-gradient(180deg, #2c5a48, #1b3b34 55%, #5a4a2a); }
.is-tubeoff.going .tube-pic { animation: tubeoff 1.5s cubic-bezier(.6,0,.8,.3) forwards; }
.is-tubeoff.dead .tube-pic { opacity: 0; }
@keyframes tubeoff {
  0% { transform: scale(1, 1); filter: brightness(1); }
  35% { transform: scale(1, .012); filter: brightness(6) saturate(0); }
  75% { transform: scale(.012, .012); filter: brightness(8) saturate(0); }
  100% { transform: scale(0, 0); filter: brightness(8) saturate(0); opacity: 0; }
}

.reader.stacked {
  .nb.sk-roomy { --ln: 26px; font-size: 17.5px; }
  .nb.sk-roomy .nb-rows li { margin-bottom: 26px; }
  .nb.sk-roomy .nb-foot { margin-top: 26px; }
  .nb.sk-envelope { --ln: 27px; padding: 78px 20px 18px 20px; }
  .nb.sk-envelope .nb-title { font-size: 9.5px; }
  .nb.sk-steno { --ln: 28px; font-size: 17px; padding: 48px 14px 14px 14px;
    background:
      radial-gradient(circle at 50% 50%, #1a1612 0 32%, transparent 34%) 0 6px / 20px 20px repeat-x,
      linear-gradient(90deg, transparent calc(50% - 1px), rgba(200,70,60,.45) calc(50% - 1px), rgba(200,70,60,.45) 50%, transparent 50%),
      repeating-linear-gradient(180deg, transparent 0 27px, rgba(60,130,90,.3) 27px 28px),
      #eef3e2; }
  .is-linescore .insert, .is-tubeoff .insert { aspect-ratio: auto; padding: 12px; }
  .is-tubeoff .insert { aspect-ratio: 4 / 3; }
  .tv, .tv.mini, .tv.tall { height: auto; border-radius: 18px; padding: 18px 16px; gap: 10px; }
  .tv.off { height: 100%; padding: 0; }
  .ls-top, .tv.tall .ls-top { flex-direction: row; align-items: baseline; }
  .ls-top b, .tv.mini .ls-top b { font-size: 22px; }
  .ls-top span, .tv.mini .ls-top span, .tv.tall .ls-top span, .ls-final, .tv.mini .ls-final, .tv.tall .ls-final { font-size: 9px; }
  .ls-head, .ls-row, .tv.mini .ls-head, .tv.mini .ls-row, .tv.tall .ls-head, .tv.tall .ls-row { grid-template-columns: 34px repeat(var(--n), minmax(0, 1fr)) 34px; }
  .ls-head, .tv.mini .ls-head, .tv.tall .ls-head { font-size: 9px; }
  .ls-row, .tv.mini .ls-row, .tv.tall .ls-row { font-size: 16px; }
  .ls-row em, .tv.tall .ls-row em { font-size: 1.3em; }
  .tv.tall .ls-big span { font-size: 18px; }
  .ls-grid, .tv.mini .ls-grid { gap: 3px; }
}

/* ─────────────────────────── ISSUE #6 · LOCKOUT ─────────────────────────── */

/* the tally in the top bar: how often she has called, then how often she has said no */
.cash.tally { color: #e9d9a8; }
.cash.tally.bad { color: #ff8a66; }

/* Gus's paper strip */
.is-strip .insert { background: radial-gradient(120% 100% at 30% 10%, #4a3a2a, #1f1711); padding: 1.8cqw 2.2cqw; cursor: pointer; }
.stp { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 1.5cqw; }
.stp-scroll { box-shadow: 0 .6cqw 1.6cqw rgba(0,0,0,.5); transform: rotate(-.4deg); background: #f4f1e4; }
.stp-svg { display: block; width: 100%; }
.stp-svg line.g1 { stroke: rgba(60,130,100,.34); stroke-width: .5; }
.stp-svg line.g2 { stroke: rgba(60,130,100,.15); stroke-width: .4; }
.stp-svg .trace { fill: none; stroke: #1b2b63; stroke-width: 1.7; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.stp.go .trace { animation: draw 1.5s linear forwards; }
.stp-svg text { font-family: var(--f-hand); text-anchor: middle; opacity: 0; }
.stp-svg .bit { font-size: 11px; font-weight: 700; fill: #3a3a3a; }
.stp-svg .bit.edge { fill: #a59c88; font-weight: 400; }
.stp-svg .lbl { font-family: var(--f-mono); font-size: 4.2px; letter-spacing: .08em; text-transform: uppercase; fill: #8a7d68; }
.stp.go .bit, .stp.go .lbl { animation: appear .2s forwards; animation-delay: calc(1.6s + var(--i) * .1s); }
.stp-svg .grp path { fill: none; stroke: #b93a26; stroke-width: 1; opacity: 0; }
.stp-svg .grp text { font-size: 9.5px; fill: #b93a26; }
.stp-svg .grp tspan { font-size: 13px; font-weight: 700; }
.stp.go .grp path, .stp.go .grp text { animation: appear .3s forwards; animation-delay: calc(1.8s + var(--i) * .1s); }
.stp-frame { display: flex; justify-content: center; gap: 1.1cqw; font-family: var(--f-hand); font-size: 2.7cqw; line-height: 1.2; color: #efe6cf; }
.stp-frame span { position: relative; opacity: .5; }
.stp-frame span.hit { opacity: 1; color: #ffd27a; font-weight: 700; }
.stp-frame span.hit::after { content: ""; position: absolute; inset: -.2em -.34em -.16em; border: .09em solid #ff8a66; border-radius: 50%; transform: rotate(-5deg); opacity: 0; }
.stp.go .stp-frame span.hit::after { animation: appear .3s forwards 4.2s; }
.stp-read { display: flex; justify-content: center; gap: 3cqw; font-family: var(--f-hand); font-size: 2.3cqw; color: #efe6cf; opacity: 0; }
.stp-read b { color: #ff8a66; font-size: 1.35em; }
.stp.go .stp-read { animation: appear .5s forwards 3.2s; }
.stp.mini .stp-frame { font-size: 2.05cqw; gap: .7cqw; }
.stp.mini .stp-read { gap: 2cqw; font-size: 2.1cqw; }
.stp.mini.go .stp-frame span.hit::after { animation-delay: 2.6s; }

/* a year on a ruler */
.is-lockout .insert { background: radial-gradient(110% 90% at 70% 0%, #2a1710, #0f0b08 70%); padding: 3cqw 3.6cqw; cursor: default; }
.lk { display: flex; flex-direction: column; gap: 3.4cqw; color: #efe6cf; font-family: var(--f-mono); }
.lk-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 3cqw; }
.lk-count { display: flex; align-items: baseline; gap: 1.4cqw; }
.lk-count span, .lk-count i { font-size: 1.25cqw; font-style: normal; letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
.lk-count b { font-family: var(--f-display); font-weight: 900; font-size: 14cqw; line-height: .78; color: #ff6a3d; font-variant-numeric: tabular-nums; min-width: 1.1em; text-align: center; }
.lk.over .lk-count b { color: #ff3d2e; }
.lk-now { display: grid; gap: .7cqw; text-align: right; }
.lk-wait { font-family: var(--f-display); font-weight: 800; font-size: 4.4cqw; line-height: 1; text-transform: uppercase; color: #ffd27a; }
.lk-open { font-size: 1.3cqw; letter-spacing: .12em; text-transform: uppercase; }
.lk-rule { position: relative; height: 13cqw; border-bottom: .3cqw solid #efe6cf; margin: 1cqw 0 2.6cqw; }
.lk-locked { position: absolute; top: 3cqw; bottom: 0; right: 0; left: 100%; background: repeating-linear-gradient(135deg, rgba(255,106,61,.55) 0 .6cqw, rgba(255,106,61,.16) .6cqw 1.2cqw); transition: left .14s linear; }
.lk-locked::after { content: "locked"; position: absolute; left: 50%; top: 50%; translate: -50% -50%; font-size: 1.2cqw; letter-spacing: .3em; text-transform: uppercase; color: #ffe4d6; }
.lk-ticks i { position: absolute; bottom: 0; width: 0; height: 4.2cqw; border-left: .2cqw solid #efe6cf; opacity: 0; transition: left .14s linear, height .14s; }
.lk-ticks i.on { opacity: .7; }
.lk-ticks i.last { opacity: 1; border-color: #ff6a3d; height: 7.4cqw; }
.lk-ticks em { position: absolute; bottom: 100%; left: 0; translate: -50% 0; font-style: normal; font-size: 1.5cqw; font-weight: 600; color: #ff6a3d; opacity: 0; }
.lk-ticks i.last em { opacity: 1; }
.lk-months span { position: absolute; top: 100%; margin-top: 1cqw; translate: -50% 0; font-size: 1cqw; letter-spacing: .14em; text-transform: uppercase; opacity: .7; white-space: nowrap; }
.lk-months span::before { content: ""; position: absolute; left: 50%; bottom: 100%; height: .8cqw; border-left: 1px solid rgba(239,230,207,.7); margin-bottom: .1cqw; }
.lk-waits { display: flex; flex-wrap: wrap; gap: .6cqw .5cqw; }
.lk-waits span { font-size: 1.22cqw; padding: .35cqw .6cqw; border: 1px solid rgba(239,230,207,.22); border-radius: .3cqw; opacity: .28; white-space: nowrap; }
.lk-waits span.on { opacity: .85; }
.lk-waits span.last { opacity: 1; background: #ff6a3d; border-color: #ff6a3d; color: #1a0d05; font-weight: 600; }
.lk-ctl { display: flex; align-items: center; flex-wrap: wrap; gap: 1.4cqw; }
.lk-more, .lk-back, .rb-btn { font-family: var(--f-mono); font-weight: 600; font-size: 1.15cqw; letter-spacing: .14em; text-transform: uppercase; padding: .9cqw 1.5cqw; border-radius: .3cqw; white-space: nowrap; }
.lk-more, .rb-btn { color: #150d00; background: var(--amber); }
.lk-more:disabled { background: #3a2a1a; color: #a08060; cursor: default; }
.lk-back { color: #efe6cf; box-shadow: inset 0 0 0 1px rgba(239,230,207,.4); }
.lk-say { flex: 1 1 30cqw; font-family: var(--f-hand); font-size: 2.2cqw; line-height: 1.25; }

/* three frames, byte under byte */
.is-frames .insert { background: radial-gradient(120% 100% at 30% 10%, #4a3a2a, #1f1711); padding: 2cqw 2.4cqw; cursor: pointer; }
.fr { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: .7cqw; padding: 1.4cqw 2.4cqw 1.6cqw; color: #2a3140; transform: rotate(-.4deg);
  background: linear-gradient(rgba(60,130,100,.12) 1px, transparent 1px) 0 0 / 100% 2.2cqw, linear-gradient(90deg, rgba(60,130,100,.12) 1px, transparent 1px) 0 0 / 2.2cqw 100%, #eef0e2;
  box-shadow: 0 .7cqw 1.8cqw rgba(0,0,0,.55); }
.fr-label { font-family: var(--f-mono); font-weight: 600; font-size: 1cqw; letter-spacing: .14em; text-transform: uppercase; color: #5b7a5e; margin-top: .55cqw; opacity: 0; }
.fr-row, .fr-notes { display: grid; grid-template-columns: repeat(8, 1fr) 1.9fr repeat(4, 1fr); column-gap: .6cqw; align-items: center; }
.fr-b { position: relative; isolation: isolate; font-family: var(--f-hand); font-weight: 700; font-size: 3.9cqw; line-height: 1.2; text-align: center; opacity: 0; }
.fr-gap { font-family: var(--f-hand); font-size: 1.6cqw; text-align: center; white-space: nowrap; color: #5b6b8a; opacity: 0; }
.fr-row.key .fr-b.chk { color: #b93a26; }
.fr.go .fr-label, .fr.go .fr-b { animation: appear .25s both; animation-delay: calc(var(--i) * .06s); }
.fr.go .fr-gap { animation: appear .4s both 2.4s; }
.fr-b.same::before, .fr-b.same2::before, .fr-b.node::before { content: ""; position: absolute; inset: 10% -9%; z-index: -1; background: rgba(255,226,60,.72); transform: scaleX(0); transform-origin: 0 50%; }
.fr-b.node::before { background: rgba(120,200,160,.5); }
.fr.go .fr-b.same::before, .fr.go .fr-b.same2::before { animation: swipe .45s forwards 3.2s; }
.fr.go .fr-b.node::before { animation: swipe .45s forwards 3.5s; }
.fr-b.diff::after { content: ""; position: absolute; inset: 2% -2%; border: .2cqw solid #b93a26; border-radius: 50%; transform: rotate(-6deg); opacity: 0; }
.fr.go .fr-b.diff::after { animation: appear .3s forwards 4.4s; }
.fr-b.chk::after { content: ""; position: absolute; inset: -2% -6%; border-top: .22cqw solid #b93a26; border-bottom: .22cqw solid #b93a26; opacity: 0; }
.fr.go .fr-b.chk::after { animation: appear .3s forwards 5.4s; }
.fr-notes { margin-top: .5cqw; font-family: var(--f-hand); font-size: 1.75cqw; line-height: 1.1; align-items: start; }
.fr-notes span { opacity: 0; }
.fr-notes .n1 { grid-column: 1 / span 4; color: #7a6a10; }
.fr-notes .n2 { grid-column: 5 / span 4; color: #b93a26; }
.fr-notes .n3 { grid-column: 10 / span 4; color: #b93a26; text-align: right; }
.fr.go .fr-notes .n1 { animation: appear .4s forwards 3.5s; }
.fr.go .fr-notes .n2 { animation: appear .4s forwards 4.6s; }
.fr.go .fr-notes .n3 { animation: appear .4s forwards 5.6s; }
.fr-say { margin: 1.2cqw 0 0; font-family: var(--f-hand); font-size: 2.35cqw; line-height: 1.25; color: #1b2b63; opacity: 0; }
.fr.go .fr-say { animation: appear .6s forwards 6.6s; }

/* the beige computer */
.is-crc .insert { background: linear-gradient(160deg, #ddd3bb, #a99d83); padding: 2cqw 2cqw 3.6cqw; cursor: pointer; }
.is-crc .insert::after { content: ""; position: absolute; right: 3cqw; bottom: 1.3cqw; width: .9cqw; height: .9cqw; border-radius: 50%; background: #6fd08a; box-shadow: 0 0 .8cqw #6fd08a; }
.crt { position: relative; height: 100%; display: flex; align-items: center; overflow: hidden; padding: 2.2cqw 2cqw; border-radius: 2cqw / 2.4cqw;
  background: radial-gradient(120% 110% at 50% 40%, #0b1a12, #030805 75%); box-shadow: inset 0 0 0 .4cqw #2a251c, inset 0 0 3cqw rgba(0,0,0,.9); }
.crt::after, .term::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(180deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px), radial-gradient(60% 40% at 30% 12%, rgba(255,255,255,.08), transparent 70%); }
.crt pre { margin: 0; font-family: var(--f-mono); font-size: 1.36cqw; line-height: 1.9; white-space: pre; color: #b8e6c0; text-shadow: 0 0 .5cqw rgba(120,255,160,.4); }
.crt .dim { opacity: .55; }
.crt .cmd { color: #e9eecf; }
.crt .key { color: #ffd27a; font-weight: 600; }
.crt .bad { color: #ff8a66; }

/* the cassette, played into a modem */
.tape-side { display: contents; }
.is-tape .insert.with-term { flex-direction: row; align-items: stretch; gap: 2.6cqw; }
.with-term .tape-side { display: flex; flex-direction: column; justify-content: center; gap: 1.3cqw; flex: 0 0 41%; min-width: 0; }
.with-term .cas { width: 100%; }
.with-term .cas-label b { font-size: 2.1cqw; }
.with-term .cas-label span { font-size: 1.3cqw; }
.with-term .tape-ctl span { display: none; }
.term { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .8cqw; overflow: hidden; padding: 1.5cqw 2cqw; border-radius: 1.4cqw;
  background: radial-gradient(120% 110% at 50% 40%, #0b1a12, #030805 75%); box-shadow: inset 0 0 0 .35cqw #2a251c, 0 0 0 .7cqw #cfc5ab; }
.term-bar { font-family: var(--f-mono); font-size: .85cqw; letter-spacing: .18em; text-transform: uppercase; color: #6f8f78; padding-bottom: .6cqw; border-bottom: 1px solid #1e2c24; }
.term pre { margin: 0; font-family: var(--f-mono); font-size: 3.2cqw; line-height: 1.42; white-space: pre; color: #b8e6c0; text-shadow: 0 0 .6cqw rgba(120,255,160,.45); }
.term .dim { font-size: .4em; letter-spacing: .14em; opacity: .6; }
.term .lt { color: #ffd27a; font-weight: 600; }
.term .jk { opacity: .7; }

/* the placemats, read as letters */
.is-decode .insert { background: radial-gradient(120% 100% at 30% 20%, #523a26, #24170e); padding: 2cqw; cursor: pointer; }
.dc { position: relative; height: 100%; display: flex; flex-direction: column; gap: 1.2cqw; padding: 2.6cqw 3cqw 2.2cqw; border-radius: .6cqw; transform: rotate(.3deg);
  background: #f6f1e3; color: var(--blue-ink); font-family: var(--f-hand); box-shadow: 0 .7cqw 1.8cqw rgba(0,0,0,.55); }
.dc::before { content: ""; position: absolute; inset: 1cqw; border: 1px solid #c8523f; outline: 1px solid #c8523f; outline-offset: .3cqw; border-radius: .5cqw; pointer-events: none; opacity: .8; }
.dc-head { display: flex; justify-content: space-between; gap: 2cqw; font-family: var(--f-mono); font-weight: 600; font-size: .86cqw; letter-spacing: .16em; text-transform: uppercase; color: #a8442f; }
.dc-head span:last-child { font-weight: 400; letter-spacing: .1em; }
.dc-grid { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: .9cqw 2.2cqw; align-content: space-evenly; }
.dc-g { position: relative; display: grid; gap: 0; padding-left: 1.5cqw; }
.dc-g em { position: absolute; left: 0; top: .8cqw; font-family: var(--f-mono); font-style: normal; font-size: .82cqw; color: #a8442f; }
.dc-hex, .dc-ch { display: grid; grid-template-columns: repeat(4, 1fr); justify-items: center; opacity: 0; }
.dc-hex { font-size: 2.1cqw; line-height: 1.2; }
.dc-hex i { font-style: normal; position: relative; }
.dc-g.ink2 .dc-hex { color: #1d1a16; }
.dc-ch { font-size: 3.5cqw; line-height: 1.05; color: #b93a26; }
.dc-ch b { font-weight: 700; position: relative; }
.dc-ch b.np { opacity: .32; }
.dc.go .dc-hex { animation: appear .2s forwards; animation-delay: calc(var(--i) * .08s); }
.dc.go .dc-ch { animation: appear .35s forwards; animation-delay: calc(1.6s + var(--i) * .4s); }
.dc-hex i.slip::after, .dc-ch b.slip::after, .dc-line u::after { content: ""; position: absolute; inset: -.12em -.3em -.08em; border: .09em solid #b93a26; border-radius: 50%; transform: rotate(-6deg); opacity: 0; }
.dc.go .dc-hex i.slip::after, .dc.go .dc-ch b.slip::after, .dc.go .dc-line u::after { animation: appear .4s forwards 11.4s; }
.dc-line { padding-top: 1cqw; border-top: .2cqw solid #c8523f; }
.dc-line small { font-family: var(--f-mono); font-size: .86cqw; letter-spacing: .14em; text-transform: uppercase; color: #a8442f; }
.dc-line p { margin: .3cqw 0 0; font-size: 3.5cqw; font-weight: 700; line-height: 1.15; color: #1d1a16; white-space: nowrap; opacity: 0; }
.dc-line u { position: relative; text-decoration: none; color: #b93a26; }
.dc.go .dc-line p { animation: write 2.6s steps(52) both 8.2s; }

/* Lo's pencil */
.is-rubbing .insert { background: radial-gradient(120% 100% at 30% 20%, #523a26, #24170e); padding: 1.6cqw; cursor: default; }
.rb { height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: .6cqw; background: #f6f1e3; box-shadow: 0 .7cqw 1.8cqw rgba(0,0,0,.55); transform: rotate(-.3deg); }
.rb-svg { flex: 1; min-height: 0; width: 100%; display: block; touch-action: pan-y; cursor: crosshair; }
.rb-svg .paper { fill: #f6f1e3; }
.rb-svg .rule { fill: none; stroke: #c8523f; stroke-width: 1; opacity: .45; }
.rb-svg .graphite line { stroke: #4f4d49; stroke-width: 2.4; stroke-linecap: round; opacity: .2; }
.rb-svg .groove path { fill: none; stroke: #fbf8ee; stroke-width: 6.5; stroke-linecap: round; }
.rb-svg .ink path { fill: none; stroke: #1d1a16; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.rb-svg .ink .skip { stroke-dasharray: 24 6 10 5 30; }
.rb-svg .found { opacity: 0; transition: opacity .6s; }
.rb-svg .found ellipse { fill: none; stroke: #b93a26; stroke-width: 2.5; }
.rb-svg .found text { font-family: var(--f-hand); font-size: 34px; font-weight: 700; fill: #b93a26; }
.rb.done .found { opacity: 1; }
.rb-foot { display: flex; align-items: center; gap: 2cqw; min-height: 6.6cqw; padding: 1cqw 1.8cqw; border-top: .2cqw solid #c8523f; font-family: var(--f-hand); color: #1d1a16; }
.rb-was, .rb-is { display: flex; align-items: baseline; gap: .8cqw; font-size: 2.5cqw; white-space: nowrap; }
.rb-foot i { font-style: normal; font-weight: 700; }
.rb-foot b { font-size: 1.3em; color: #b93a26; }
.rb-foot small { margin-left: 1.2cqw; font-size: .82em; color: #4a4338; }
.rb-foot u { text-decoration: none; font-weight: 700; color: #b93a26; }
.rb-is { display: none; }
.rb.done .rb-was, .rb.done .rb-btn { display: none; }
.rb.done .rb-is { display: flex; }
.rb-btn { margin-left: auto; }

.reader.stacked {
  .is-strip .insert, .is-lockout .insert, .is-frames .insert, .is-crc .insert, .is-decode .insert, .is-rubbing .insert { aspect-ratio: auto; padding: 12px; }
  .stp { height: auto; gap: 12px; }
  .stp-scroll { overflow-x: auto; transform: none; }
  .stp-svg { min-width: 520px; }
  .stp.mini .stp-svg { min-width: 0; }
  .stp-frame, .stp.mini .stp-frame { font-size: 17px; gap: 3px 7px; flex-wrap: wrap; }
  .stp-read, .stp.mini .stp-read { font-size: 17px; gap: 16px; }
  .is-lockout .insert { padding: 18px 16px; }
  .lk { gap: 14px; }
  .lk-top { flex-direction: column; align-items: flex-start; gap: 10px; }
  .lk-count { gap: 8px; }
  .lk-count span, .lk-count i { font-size: 9px; }
  .lk-count b { font-size: 78px; }
  .lk-now { text-align: left; gap: 4px; }
  .lk-wait { font-size: 25px; }
  .lk-open { font-size: 9px; }
  .lk-rule { height: 58px; border-bottom-width: 2px; margin: 4px 0 18px; }
  .lk-locked { top: 18px; }
  .lk-locked::after { font-size: 9px; }
  .lk-ticks i { height: 26px; border-left-width: 1.5px; }
  .lk-ticks i.last { height: 44px; }
  .lk-ticks em { font-size: 11px; }
  .lk-months span { font-size: 8px; margin-top: 6px; }
  .lk-months span::before { height: 5px; }
  .lk-waits { gap: 4px; }
  .lk-waits span { font-size: 9px; padding: 3px 5px; }
  .lk-ctl { gap: 10px; }
  .lk-more, .lk-back, .rb-btn { font-size: 10px; padding: 9px 11px; border-radius: 3px; }
  .lk-say { flex-basis: 100%; font-size: 16px; }
  .fr { height: auto; padding: 12px 10px 14px; gap: 3px; transform: none; background-size: 100% 16px, 16px 100%, auto; }
  .fr-label { font-size: 7.5px; margin-top: 6px; }
  .fr-row, .fr-notes { grid-template-columns: repeat(8, 1fr) 4px repeat(4, 1fr); column-gap: 2px; }
  .fr-b { font-size: 15.5px; }
  .fr-gap { font-size: 0; }
  .fr-notes { font-size: 11.5px; margin-top: 6px; }
  .fr-say { font-size: 16px; margin-top: 8px; }
  .is-crc .insert { padding: 12px 12px 24px; }
  .is-crc .insert::after { right: 18px; bottom: 9px; width: 6px; height: 6px; }
  .crt { height: auto; padding: 18px 12px; border-radius: 14px; }
  .crt pre { font-size: 9.4px; }
  .is-tape .insert.with-term { flex-direction: column; gap: 14px; }
  .with-term .tape-side { flex: none; gap: 14px; }
  .with-term .cas-label b { font-size: 19px; }
  .with-term .cas-label span { font-size: 12px; }
  .term { padding: 12px 16px 14px; border-radius: 10px; gap: 6px; box-shadow: inset 0 0 0 3px #2a251c, 0 0 0 5px #cfc5ab; margin: 5px; }
  .term-bar { font-size: 8px; padding-bottom: 5px; }
  .term pre { font-size: 26px; min-height: 5.6em; }
  .dc { height: auto; padding: 20px 16px 16px; gap: 12px; transform: none; }
  .dc::before { inset: 7px; outline-offset: 2px; }
  .dc-head { flex-direction: column; gap: 3px; font-size: 7.5px; }
  .dc-grid { grid-template-columns: repeat(3, 1fr); gap: 10px 12px; }
  .dc-g { padding-left: 11px; }
  .dc-g em { font-size: 7px; top: 5px; }
  .dc-hex { font-size: 13.5px; }
  .dc-ch { font-size: 22px; }
  .dc-line { padding-top: 8px; border-top-width: 2px; }
  .dc-line small { font-size: 7.5px; }
  .dc-line p { font-size: 21px; white-space: normal; margin-top: 3px; }
  .rb { height: auto; transform: none; }
  .rb-svg { flex: none; aspect-ratio: 400 / 260; }
  .rb-foot { flex-wrap: wrap; gap: 8px 12px; min-height: 0; padding: 10px 12px; border-top-width: 2px; }
  .rb-was, .rb-is { font-size: 18px; flex-wrap: wrap; }
  .rb-foot small { margin-left: 6px; }
}

.covers.n6 { aspect-ratio: 1 / .7; width: min(100%, 800px); }
.covers.n6 .cover { width: 34%; }
.covers.n6 .c1 { left: 0; top: 0; right: auto; bottom: auto; transform: rotate(-9deg); z-index: 1; }
.covers.n6 .c2 { left: 13.2%; top: 5%; right: auto; bottom: auto; transform: rotate(-5.5deg); z-index: 2; }
.covers.n6 .c3 { left: 26.4%; top: 10%; right: auto; bottom: auto; transform: rotate(-2deg); z-index: 3; }
.covers.n6 .c4 { left: 39.6%; top: 15%; right: auto; bottom: auto; transform: rotate(1.5deg); z-index: 4; }
.covers.n6 .c5 { left: 52.8%; top: 20%; right: auto; bottom: auto; transform: rotate(4.5deg); z-index: 5; }
.covers.n6 .c6 { left: auto; right: 0; top: auto; bottom: 0; transform: rotate(7deg); z-index: 6; }
.covers.n6 .cover:hover { z-index: 7; }

/* ─────────────────────────── ISSUE #7 · FIRST LIGHT ─────────────────────────── */

/* Ember's screen: an amber ring on black */
.is-ring .insert { background: radial-gradient(60% 75% at 50% 50%, #1c1005, #000 78%); align-items: center; }
.is-ring .insert.at-left { align-items: flex-start; padding-left: 10%; background: radial-gradient(50% 90% at 16% 50%, #1c1005, #000 78%); }
.is-ring .insert.at-right { align-items: flex-end; padding-right: 10%; background: radial-gradient(50% 90% at 84% 50%, #1c1005, #000 78%); }
.is-ring .insert[title] { cursor: pointer; }
.em-ring { width: 9cqw; aspect-ratio: 1; border-radius: 50%; border: .44cqw solid var(--amber);
  box-shadow: 0 0 3.4cqw rgba(255,160,40,.75), inset 0 0 1.8cqw rgba(255,160,40,.45); animation: breathe 3.6s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 5.2cqw rgba(255,175,55,.98), inset 0 0 2.6cqw rgba(255,165,45,.62); } }
.is-ring.is-line .em-ring { transform: scale(1.3, .03); animation: none; }
.is-ring.to-ring .em-ring { animation: openring 1.9s cubic-bezier(.2,.7,.2,1) both, breathe 3.6s ease-in-out 1.9s infinite; }
@keyframes openring { from { transform: scale(1.3, .03); } 55% { transform: scale(1.06, .92); } to { transform: scale(1, 1); } }
.is-ring.to-line .em-ring { animation: closering 2.6s cubic-bezier(.6,0,.9,.4) forwards; }
@keyframes closering { to { transform: scale(1.3, .03); box-shadow: 0 0 2.2cqw rgba(255,160,40,.55); } }

/* ninety-four seconds, as they happened */
.is-ninetyfour .insert { background: radial-gradient(90% 80% at 10% 0%, #231407, #070503 70%); padding: 2.4cqw 3cqw; justify-content: flex-start; cursor: default; }
.nf { height: 100%; min-height: 0; display: flex; flex-direction: column; gap: 1.3cqw; color: #efe6cf; }
.nf-top { display: flex; align-items: center; gap: 2.6cqw; }
.nf-ring { flex: none; width: 5cqw; aspect-ratio: 1; border-radius: 50%; border: .3cqw solid var(--amber);
  box-shadow: 0 0 2cqw rgba(255,160,40,.6), inset 0 0 1cqw rgba(255,160,40,.35); transition: transform .5s cubic-bezier(.3,.7,.3,1), box-shadow .25s; }
.nf.done .nf-ring { transform: scale(1.3, .05); }
.nf.speaking .nf-ring { transform: scale(1.1); box-shadow: 0 0 3.6cqw rgba(255,185,70,1), inset 0 0 1.8cqw rgba(255,170,50,.75); }
.nf-clock { display: flex; align-items: baseline; gap: 1cqw; }
.nf-clock b { font-family: var(--f-display); font-weight: 900; font-size: 6.4cqw; line-height: .85; color: #ffd27a; font-variant-numeric: tabular-nums; min-width: 2.3em; }
.nf-clock span, .nf-batt span { font-family: var(--f-mono); font-size: 1.05cqw; letter-spacing: .18em; text-transform: uppercase; opacity: .7; }
.nf-batt { display: grid; gap: .2cqw; }
.nf-batt b { font-family: var(--f-mono); font-size: 2.2cqw; color: var(--amber); font-variant-numeric: tabular-nums; }
.nf-play { margin-left: auto; font-family: var(--f-mono); font-weight: 600; font-size: 1.15cqw; letter-spacing: .12em; text-transform: uppercase; padding: .95cqw 1.5cqw; border-radius: .3cqw; white-space: nowrap; color: #150d00; background: var(--amber); }
.nf.playing .nf-play { background: #6e4406; color: #ffd590; }
.nf-bar { flex: none; height: .45cqw; border-radius: 1cqw; overflow: hidden; background: rgba(239,230,207,.14); }
.nf-bar i { display: block; height: 100%; width: 100%; background: var(--amber); }
.nf-lines { flex: 1; min-height: 0; overflow: hidden auto; list-style: none; margin: 0; padding: .4cqw 0 0; display: grid; align-content: start; gap: .46cqw; scrollbar-width: thin; scrollbar-color: #5a3d12 transparent; }
.nf-lines li { display: grid; grid-template-columns: 3.4cqw 5.4cqw minmax(0, 1fr); column-gap: 1cqw; align-items: baseline; font-family: var(--f-mono); font-size: 1.24cqw; line-height: 1.42; }
.nf-lines time { font-size: .86em; opacity: .5; }
.nf-lines b { font-size: .84em; font-weight: 600; letter-spacing: .14em; }
.nf-lines .who-ember { color: #ffc566; }
.nf-lines .who-ember b { color: var(--amber); }
.nf.playing .nf-lines li { opacity: 0; transform: translateY(.5cqw); transition: opacity .4s, transform .4s; }
.nf.playing .nf-lines li.on { opacity: .62; transform: none; }
.nf.playing .nf-lines li.now { opacity: 1; }

.reader.stacked {
  .is-ring .insert, .is-ring .insert.at-left, .is-ring .insert.at-right { aspect-ratio: 2.6 / 1; padding: 0; align-items: center; background: radial-gradient(50% 90% at 50% 50%, #1c1005, #000 78%); }
  .em-ring { width: 62px; border-width: 3px; }
  .is-ninetyfour .insert { aspect-ratio: auto; padding: 18px 14px; }
  .nf { height: auto; gap: 12px; }
  .nf-top { flex-wrap: wrap; gap: 12px 16px; }
  .nf-ring { width: 38px; border-width: 2px; }
  .nf-clock b { font-size: 46px; }
  .nf-clock span, .nf-batt span { font-size: 8.5px; }
  .nf-batt b { font-size: 17px; }
  .nf-play { margin-left: 0; flex: 1 1 100%; font-size: 10.5px; padding: 11px 12px; border-radius: 3px; white-space: normal; }
  .nf-bar { height: 4px; }
  .nf-lines { overflow: visible; gap: 9px; }
  .nf-lines li { grid-template-columns: 30px minmax(0, 1fr); column-gap: 8px; font-size: 12.5px; line-height: 1.45; }
  .nf-lines b { grid-column: 2; font-size: 9.5px; }
  .nf-lines span { grid-column: 2; }
  .nf-lines time { grid-row: 1 / span 2; font-size: 10px; padding-top: 1px; }
}

.covers.n7 { aspect-ratio: 1 / .64; width: min(100%, 860px); }
.covers.n7 .cover { width: 30.5%; }
.covers.n7 .c1 { left: 0; top: 0; right: auto; bottom: auto; transform: rotate(-9deg); z-index: 1; }
.covers.n7 .c2 { left: 11.6%; top: 4.5%; right: auto; bottom: auto; transform: rotate(-6deg); z-index: 2; }
.covers.n7 .c3 { left: 23.2%; top: 9%; right: auto; bottom: auto; transform: rotate(-3deg); z-index: 3; }
.covers.n7 .c4 { left: 34.8%; top: 13.5%; right: auto; bottom: auto; transform: rotate(0deg); z-index: 4; }
.covers.n7 .c5 { left: 46.4%; top: 18%; right: auto; bottom: auto; transform: rotate(2.5deg); z-index: 5; }
.covers.n7 .c6 { left: 58%; top: 22.5%; right: auto; bottom: auto; transform: rotate(5deg); z-index: 6; }
.covers.n7 .c7 { left: auto; right: 0; top: auto; bottom: 0; transform: rotate(7.5deg); z-index: 7; }
.covers.n7 .cover:hover { z-index: 8; }

/* ─────────────────────────── ISSUE #8 · WET CONCRETE ─────────────────────────── */

/* a title longer than four digits */
.l-title.long b { font-size: 9.6cqw; line-height: .86; white-space: nowrap; }
.reader.stacked { .l-title.long b { font-size: 56px; white-space: normal; } }

/* a W-4, three years in a drawer, in blue marker */
.is-w4 .insert { background: radial-gradient(120% 110% at 18% 0%, #4a3a2a, #1a130d 80%); padding: 0 0 0 3.2cqw; align-items: flex-start; cursor: pointer; }
.w4 {
  position: relative; width: 60%; color: #23201c; padding: 1.8cqw 1.9cqw 4.6cqw; transform: rotate(-1.3deg);
  background:
    linear-gradient(180deg, transparent 33%, rgba(0,0,0,.09) 33.3%, transparent 33.9%, transparent 66%, rgba(0,0,0,.09) 66.3%, transparent 66.9%),
    #f1ecdc;
  box-shadow: 0 .7cqw 1.8cqw rgba(0,0,0,.6);
}
.w4-head { display: flex; align-items: baseline; gap: 1.2cqw; border-bottom: .24cqw solid #23201c; padding-bottom: .5cqw; }
.w4-head b { font-family: var(--f-display); font-weight: 900; font-size: 4.4cqw; line-height: .85; }
.w4-head span { flex: 1; font-family: var(--f-body); font-weight: 600; font-size: 1.4cqw; line-height: 1.1; }
.w4-head i { font-family: var(--f-display); font-style: normal; font-weight: 900; font-size: 3.6cqw; line-height: .85; color: transparent; -webkit-text-stroke: .1cqw #23201c; }
.w4-row { display: flex; border-bottom: 1px solid #23201c; }
.w4-row.last { border-bottom: 0; }
.w4-box { flex: 1; min-height: 6.4cqw; padding: .45cqw .65cqw .2cqw; border-right: 1px solid #23201c; }
.w4-box:last-child { border-right: 0; }
.w4-box.wide { flex: 2.06; }
.w4-row.last .w4-box { min-height: 4cqw; }
.w4-box small { display: block; font-family: var(--f-body); font-size: .86cqw; line-height: 1.15; color: #4a443b; }
.w4-box em { display: block; font-family: var(--f-hand); font-style: normal; font-weight: 700; font-size: 3.7cqw; line-height: 1.12; color: #1c3f9e; opacity: 0; white-space: nowrap; }
.w4-box em.none { letter-spacing: .12em; opacity: 0; }
.w4-margin { position: absolute; right: 1.8cqw; bottom: .3cqw; margin: 0; font-family: var(--f-hand); font-weight: 700; font-size: 2.8cqw; line-height: 1; color: #1c3f9e; transform: rotate(-3deg); opacity: 0; white-space: nowrap; }
.w4-margin b { font-size: 1.5em; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .12em; }
.w4-hold { position: absolute; left: 4%; top: 56%; margin: 0; font-family: var(--f-hand); font-weight: 700; font-size: 4.3cqw; line-height: 1; color: #1c3f9e; transform: rotate(-5deg); opacity: 0; white-space: nowrap; text-shadow: 0 0 .5cqw #f1ecdc, 0 0 .5cqw #f1ecdc; }
.w4-hold span { font-size: .62em; }
.w4.go .w4-box em, .w4.go .w4-margin, .w4.go .w4-hold { animation: write .7s steps(14) both; animation-delay: calc(.2s + var(--i) * .55s); }
.w4.held .w4-box em, .w4.held .w4-margin { opacity: 1; animation: none; }

/* ninety-four seconds of reading */
.is-turner .insert { background: radial-gradient(90% 100% at 10% 0%, #2a1808, #070503 72%); padding: 2.3cqw 2.8cqw 2cqw; justify-content: flex-start; cursor: default; }
.tn { height: 100%; min-height: 0; display: grid; grid-template-columns: 20.5cqw minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 1.3cqw 2.6cqw; color: #efe6cf; }
.tn-side { display: flex; flex-direction: column; align-items: flex-start; gap: 1.2cqw; min-height: 0; }
.tn-top { display: flex; align-items: center; gap: 1.6cqw; }
.tn-ring { flex: none; width: 4.6cqw; aspect-ratio: 1; border-radius: 50%; border: .3cqw solid var(--amber); box-shadow: 0 0 2cqw rgba(255,160,40,.6), inset 0 0 1cqw rgba(255,160,40,.35); transition: transform .5s cubic-bezier(.3,.7,.3,1), box-shadow .25s; }
.tn.done .tn-ring { transform: scale(1.3, .05); }
.tn.lead .tn-ring { transform: scale(1.1); box-shadow: 0 0 3.4cqw rgba(255,185,70,1), inset 0 0 1.8cqw rgba(255,170,50,.75); }
.tn-clock { display: grid; gap: .2cqw; }
.tn-clock b { font-family: var(--f-display); font-weight: 900; font-size: 6.2cqw; line-height: .85; color: #ffd27a; font-variant-numeric: tabular-nums; }
.tn-clock span, .tn-stats dt { font-family: var(--f-mono); font-size: 1cqw; letter-spacing: .18em; text-transform: uppercase; opacity: .7; }
.tn-stats { display: flex; gap: 2.4cqw; margin: 0; }
.tn-stats dd { margin: 0; font-family: var(--f-mono); font-size: 2.1cqw; color: var(--amber); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tn-play, .tn-self { font-family: var(--f-mono); font-weight: 600; font-size: 1.06cqw; letter-spacing: .1em; text-transform: uppercase; padding: .9cqw 1.2cqw; border-radius: .3cqw; white-space: nowrap; }
.tn-play { margin-top: auto; color: #150d00; background: var(--amber); }
.tn-self { color: #ffd590; box-shadow: inset 0 0 0 .14cqw #8a5a12; }
.tn.playing .tn-play, .tn.self .tn-self { background: #6e4406; color: #ffd590; box-shadow: none; }
.tn-book { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 1.5cqw minmax(0, 1fr); min-height: 0; cursor: pointer; transform: rotate(-.7deg); filter: drop-shadow(0 .8cqw 1.4cqw rgba(0,0,0,.65)); perspective: 90cqw; }
.tn-page {
  position: relative; overflow: hidden; padding: 1.3cqw 1.7cqw 2cqw 2cqw;
  background:
    linear-gradient(90deg, transparent 0 1.3cqw, rgba(190,60,50,.4) 1.3cqw calc(1.3cqw + 1px), transparent calc(1.3cqw + 1px)),
    repeating-linear-gradient(180deg, transparent 0 calc(2.2cqw - 1px), rgba(40,70,140,.22) calc(2.2cqw - 1px) 2.2cqw) 0 1.1cqw,
    #f5ecd0;
}
.tn-page.l { border-radius: .4cqw 0 0 .4cqw; box-shadow: inset -1.4cqw 0 1.6cqw -1cqw rgba(0,0,0,.28), inset 0 0 4cqw rgba(255,150,30,.25); }
.tn-page.r { border-radius: 0 .4cqw .4cqw 0; box-shadow: inset 1.4cqw 0 1.6cqw -1cqw rgba(0,0,0,.28), inset 0 0 4cqw rgba(255,150,30,.25); transform-origin: 0 50%; }
.tn-page p { margin: 0 0 2.2cqw; font-family: var(--f-hand); font-size: 1.5cqw; line-height: 2.2cqw; color: var(--blue-ink); }
.tn-page i { position: absolute; bottom: .35cqw; font-style: normal; font-family: var(--f-hand); font-size: 1.05cqw; color: #857a68; }
.tn-page.l i { left: 2cqw; }
.tn-page.r i { right: 1.6cqw; }
.tn-wire { background: repeating-linear-gradient(180deg, #1c1814 0 .45cqw, #c9c2b2 .45cqw .8cqw, #1c1814 .8cqw 1.5cqw); border-radius: .5cqw; }
.tn-book.flip .tn-page.r { animation: tnflip .22s ease-out; }
@keyframes tnflip { from { transform: rotateY(-78deg); filter: brightness(.7); } to { transform: none; filter: none; } }
.tn-line { grid-column: 1 / -1; margin: 0; display: flex; gap: 1.2cqw; align-items: baseline; min-height: 1.9cqw; font-family: var(--f-mono); font-size: 1.28cqw; line-height: 1.4; color: #ffc566; }
.tn-line b { flex: none; font-size: .8em; font-weight: 600; letter-spacing: .14em; color: var(--amber); }
.tn.self .tn-line { color: #e7dcc0; }
.tn.self .tn-line b { display: none; }

/* eleven nights, eleven notebooks */
.is-nights .insert { background: radial-gradient(110% 90% at 85% 0%, #2d2218, #0c0906 76%); padding: 2.8cqw 3.2cqw 2.4cqw; justify-content: flex-start; cursor: default; }
.ng { height: 100%; min-height: 0; display: flex; flex-direction: column; gap: 1.5cqw; color: #efe6cf; }
.ng-head { display: flex; justify-content: space-between; align-items: baseline; gap: 2cqw; font-family: var(--f-mono); font-size: 1.02cqw; letter-spacing: .2em; text-transform: uppercase; color: #b7a98a; }
.ng-head b { font-weight: 600; letter-spacing: .12em; color: var(--amber); white-space: nowrap; }
.ng-shelf { display: grid; grid-template-columns: repeat(11, 1fr); gap: 1.2cqw; align-items: end; padding: 1.4cqw .6cqw 0; border-bottom: .5cqw solid #5a4630; }
.ng-book {
  position: relative; aspect-ratio: 3 / 4; border-radius: .25cqw .45cqw .45cqw .25cqw;
  background: linear-gradient(90deg, rgba(0,0,0,.4) 0 10%, rgba(255,255,255,.06) 10% 12%, transparent 12%), var(--c);
  box-shadow: 0 .4cqw .8cqw rgba(0,0,0,.5); opacity: .38; transform-origin: 50% 100%;
  transition: transform .25s cubic-bezier(.3,.7,.3,1), opacity .25s, box-shadow .25s;
}
.ng-book::before { content: ""; position: absolute; left: 2%; top: 5%; bottom: 5%; width: 8%; background: repeating-linear-gradient(180deg, #d6cfbf 0 .22cqw, transparent .22cqw .62cqw); }
.ng-book i { position: absolute; left: 24%; right: 12%; top: 12%; font-style: normal; font-family: var(--f-hand); font-weight: 700; font-size: 2.1cqw; line-height: 1.45; text-align: center; color: #23201c; background: #f1e9d2; border-radius: .2cqw; }
.ng-book:hover { opacity: .75; }
.ng-book.read { opacity: .82; }
.ng-book.on { opacity: 1; transform: translateY(-1.1cqw) rotate(-3deg); box-shadow: 0 0 2.6cqw rgba(255,160,40,.6), 0 .6cqw 1cqw rgba(0,0,0,.5); }
.ng-book.unsure.read::after, .ng-book.unsure.on::after { content: ""; position: absolute; inset: -.55cqw; border: .18cqw dashed var(--amber); border-radius: .6cqw; }
.ng-bar { flex: none; height: .5cqw; border-radius: 1cqw; overflow: hidden; background: rgba(239,230,207,.14); }
.ng-bar i { display: block; height: 100%; width: 0; background: var(--amber); transition: width .5s cubic-bezier(.3,.7,.3,1); }
.ng-card { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 1.2cqw; padding-top: .6cqw; }
.ng-card.in > * { animation: ngin .35s both; }
.ng-card.in > :nth-child(2) { animation-delay: .06s; }
.ng-card.in > :nth-child(3) { animation-delay: .14s; }
.ng-card.in > :nth-child(4) { animation-delay: .5s; }
@keyframes ngin { from { opacity: 0; transform: translateY(.8cqw); } }
.ng-when { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4cqw 1.8cqw; }
.ng-when b { font-family: var(--f-display); font-weight: 900; font-size: 7.4cqw; line-height: .86; text-transform: uppercase; color: #ffd27a; }
.ng-when span { font-family: var(--f-mono); font-size: 1.08cqw; letter-spacing: .16em; text-transform: uppercase; color: #b7a98a; }
.ng-read { margin: 0; font-family: var(--f-hand); font-size: 2.3cqw; line-height: 1.3; color: #e7dcc0; }
.ng-line { position: relative; margin: 1.2cqw 0 0; align-self: flex-start; max-width: 88%; font-family: var(--f-mono); font-weight: 500; font-size: 2.7cqw; line-height: 1.34; color: #ffd590; background: rgba(20,13,4,.94); border: .22cqw solid var(--amber); border-radius: 1.1cqw; padding: 1.5cqw 2cqw 1.4cqw; box-shadow: 0 0 2.2cqw rgba(255,160,40,.3); }
.ng-line.unsure { border-style: dashed; color: #ffe6b8; box-shadow: none; }
.ng-line b { position: absolute; left: 1.6cqw; top: -1.05cqw; font-size: 1cqw; font-weight: 600; letter-spacing: .18em; color: #0c0c0c; background: var(--amber); padding: .28em .6em; border-radius: 2px; }
.ng-line em { display: block; font-style: normal; font-size: .5em; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); }
.ng-line em:empty { display: none; }
.ng-aside { margin: 1cqw 0 0; align-self: flex-end; max-width: 60%; font-family: var(--f-hand); font-size: 2.1cqw; line-height: 1.38; color: var(--blue-ink); padding: .5em .85em .38em; transform: rotate(.8deg); box-shadow: 0 .25cqw .9cqw rgba(0,0,0,.45), inset .32em 0 0 -0.2em rgba(190,60,50,.45);
  background: repeating-linear-gradient(180deg, transparent 0 calc(1.38em - 1px), rgba(40,70,140,.2) calc(1.38em - 1px) 1.38em) 0 .5em / 100% 1.38em, #f5ecd0; }
.ng-aside:empty { display: none; }
.ng-nav { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: 1.02cqw; letter-spacing: .18em; text-transform: uppercase; color: #b7a98a; }
.ng-nav button { width: 4.2cqw; height: 4.2cqw; border-radius: 50%; font-family: var(--f-display); font-weight: 900; font-size: 2.8cqw; line-height: .8; padding-bottom: .4cqw; color: #150d00; background: var(--amber); }
.ng-nav button:disabled { opacity: .22; cursor: default; }

/* what she found */
.is-piles .insert { background: radial-gradient(90% 80% at 10% 0%, #231407, #070503 70%); padding: 2.2cqw 2.8cqw 2.2cqw; justify-content: flex-start; cursor: default; }
.pl { height: 100%; min-height: 0; display: flex; flex-direction: column; gap: 1.2cqw; color: #efe6cf; }
.pl-head { display: flex; justify-content: space-between; align-items: center; gap: 2cqw; font-family: var(--f-mono); font-size: 1.02cqw; letter-spacing: .18em; text-transform: uppercase; color: #b7a98a; }
.pl-sort { font-family: var(--f-mono); font-weight: 600; font-size: 1.06cqw; letter-spacing: .1em; text-transform: uppercase; padding: .8cqw 1.3cqw; border-radius: .3cqw; white-space: nowrap; color: #150d00; background: var(--amber); }
.pl-field { flex: none; display: grid; grid-template-columns: repeat(61, 1fr); gap: .28cqw; transition: opacity .25s; }
.pl-field i { aspect-ratio: 1; border-radius: .14cqw; background: #5d4d33; }
.pl-field i.d { background: var(--amber); box-shadow: 0 0 .5cqw rgba(255,160,40,.75); }
.pl-field i.b { background: #fff6dc; box-shadow: 0 0 .6cqw #fff; }
.pl.sorted .pl-field i.d { order: 1; }
.pl.sorted .pl-field i.b { order: 2; }
.pl.dip .pl-field { opacity: .08; }
.pl-key { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4cqw 2.8cqw; font-family: var(--f-mono); font-size: 1.06cqw; letter-spacing: .1em; text-transform: uppercase; color: #b7a98a; }
.pl-key b { font-family: var(--f-display); font-weight: 900; font-size: 3.2cqw; line-height: .9; letter-spacing: 0; margin-right: .6cqw; }
.pl-key .a b { color: #a08c66; }
.pl-key .d b { color: var(--amber); }
.pl-key .b b { color: #fff6dc; }
.pl-ex { flex: 1; min-height: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2cqw; }
.pl-ex li { position: relative; display: flex; flex-direction: column; gap: .45cqw; padding: 1cqw 1.1cqw .9cqw; background: #f5ecd0; color: #23201c; border-radius: .2cqw; box-shadow: 0 .4cqw 1cqw rgba(0,0,0,.5); opacity: 0; transform: translateY(1cqw) rotate(var(--r, 0deg)); transition: opacity .4s, transform .4s; transition-delay: calc(var(--i) * .16s + .35s); }
.pl-ex li:nth-child(odd) { --r: -.7deg; }
.pl-ex li:nth-child(even) { --r: .6deg; }
.pl.sorted .pl-ex li { opacity: 1; transform: rotate(var(--r, 0deg)); }
.pl-ex small { font-family: var(--f-mono); font-weight: 600; font-size: .86cqw; line-height: 1.25; letter-spacing: .1em; text-transform: uppercase; color: #6b5f4c; min-height: 2.5em; }
.pl-ex div { display: grid; grid-template-columns: 6.4cqw minmax(0, 1fr); align-items: baseline; gap: .6cqw; }
.pl-ex div span { font-family: var(--f-mono); font-size: .74cqw; letter-spacing: .1em; text-transform: uppercase; color: #857a68; }
.pl-ex s { font-family: var(--f-mono); font-size: 1.22cqw; color: #9a6a16; text-decoration-thickness: .1cqw; }
.pl-ex b { font-family: var(--f-hand); font-weight: 700; font-size: 1.62cqw; line-height: 1.15; color: var(--blue-ink); }
.pl-ex em { margin-top: auto; padding-top: .3cqw; font-style: normal; font-family: var(--f-mono); font-weight: 600; font-size: .86cqw; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.pl-ex li.b::after { content: "before he landed"; position: absolute; right: -.5cqw; top: -.8cqw; font-family: var(--f-mono); font-weight: 600; font-size: .72cqw; letter-spacing: .1em; text-transform: uppercase; color: #23201c; background: #fff6dc; box-shadow: 0 0 0 1px #23201c, 0 .2cqw .5cqw rgba(0,0,0,.4); padding: .2em .55em; transform: rotate(3deg); }

/* an unsure line in the ninety-four-second replay */
.nf-lines li.unsure span { border-bottom: 1px dashed var(--amber); }

/* storylines: issues that are outlined, not out */
.issue.soon { opacity: .78; }
.issue.soon .num { color: transparent; -webkit-text-stroke: 1.5px var(--ink-3); }
.issue.soon .st { background: none; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--ink-3); }
.dir-h { margin: 44px 0 10px; font-family: var(--f-mono); font-weight: 600; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }

.reader.stacked {
  .is-w4 .insert { aspect-ratio: auto; padding: 22px 16px 30px; align-items: stretch; }
  .w4 { width: 100%; padding: 12px 12px 30px; }
  .w4-head { gap: 10px; border-bottom-width: 2px; padding-bottom: 5px; }
  .w4-head b { font-size: 28px; }
  .w4-head span { font-size: 10.5px; }
  .w4-head i { font-size: 22px; -webkit-text-stroke-width: 1px; }
  .w4-box { min-height: 46px; padding: 4px 5px 2px; }
  .w4-row.last .w4-box { min-height: 28px; }
  .w4-box small { font-size: 7px; }
  .w4-box em { font-size: 22px; }
  .w4-margin { right: 12px; bottom: 2px; font-size: 19px; }
  .w4-hold { font-size: 26px; top: 57%; left: 3%; }

  .is-turner .insert { aspect-ratio: auto; padding: 18px 14px; }
  .tn { height: auto; display: flex; flex-direction: column; gap: 14px; }
  .tn-side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
  .tn-top { gap: 12px; }
  .tn-ring { width: 36px; border-width: 2px; }
  .tn-clock b { font-size: 44px; }
  .tn-clock span, .tn-stats dt { font-size: 8.5px; }
  .tn-stats { gap: 18px; }
  .tn-stats dd { font-size: 17px; }
  .tn-play, .tn-self { flex: 1 1 100%; margin: 0; font-size: 10.5px; padding: 11px 12px; border-radius: 3px; white-space: normal; }
  .tn-self { box-shadow: inset 0 0 0 1px #8a5a12; }
  .tn-book { grid-template-columns: minmax(0, 1fr) 10px minmax(0, 1fr); min-height: 230px; perspective: 600px; }
  .tn-page { padding: 10px 9px 18px 14px; background:
      linear-gradient(90deg, transparent 0 9px, rgba(190,60,50,.4) 9px 10px, transparent 10px),
      repeating-linear-gradient(180deg, transparent 0 17px, rgba(40,70,140,.22) 17px 18px) 0 8px,
      #f5ecd0; }
  .tn-page p { font-size: 11.5px; line-height: 18px; margin-bottom: 18px; }
  .tn-page i { font-size: 9px; bottom: 3px; }
  .tn-page.l i { left: 14px; }
  .tn-page.r i { right: 9px; }
  .tn-wire { background: repeating-linear-gradient(180deg, #1c1814 0 3px, #c9c2b2 3px 5px, #1c1814 5px 10px); border-radius: 3px; }
  .tn-line { font-size: 12.5px; min-height: 36px; gap: 8px; }

  .is-nights .insert { aspect-ratio: auto; padding: 20px 14px 18px; }
  .ng { height: auto; gap: 14px; }
  .ng-head { flex-direction: column; gap: 6px; font-size: 8.5px; }
  .ng-head b { font-size: 10.5px; }
  .ng-shelf { grid-template-columns: repeat(6, 1fr); gap: 12px 8px; padding: 6px 2px 0; border-bottom-width: 4px; }
  .ng-book::before { background: repeating-linear-gradient(180deg, #d6cfbf 0 2px, transparent 2px 5px); }
  .ng-book i { font-size: 17px; }
  .ng-book.on { transform: translateY(-6px) rotate(-3deg); }
  .ng-book.unsure.read::after, .ng-book.unsure.on::after { inset: -4px; border-width: 1.5px; border-radius: 5px; }
  .ng-bar { height: 4px; }
  .ng-card { gap: 10px; padding-top: 2px; }
  .ng-when b { font-size: 46px; }
  .ng-when span { font-size: 9px; }
  .ng-read { font-size: 16px; }
  .ng-line { max-width: none; margin-top: 12px; font-size: 15px; border-width: 2px; border-radius: 9px; padding: 14px 14px 12px; }
  .ng-line b { left: 12px; top: -9px; font-size: 8.5px; }
  .ng-aside { max-width: 88%; font-size: 15.5px; }
  .ng-nav { margin-top: 6px; font-size: 8.5px; }
  .ng-nav button { width: 40px; height: 40px; font-size: 26px; padding-bottom: 4px; }

  .is-piles .insert { aspect-ratio: auto; padding: 18px 14px; }
  .pl { height: auto; gap: 12px; }
  .pl-head { font-size: 8.5px; gap: 10px; }
  .pl-sort { font-size: 9.5px; padding: 9px 11px; border-radius: 3px; }
  .pl-field { grid-template-columns: repeat(38, 1fr); gap: 2px; }
  .pl-field i { border-radius: 1px; }
  .pl-key { font-size: 9px; gap: 6px 18px; }
  .pl-key span { flex: 1 1 100%; }
  .pl-key b { font-size: 28px; margin-right: 6px; }
  .pl-ex { grid-template-columns: 1fr 1fr; gap: 12px 10px; }
  .pl-ex li { padding: 10px 10px 9px; gap: 5px; }
  .pl-ex small { font-size: 8px; }
  .pl-ex div { grid-template-columns: 1fr; gap: 0; }
  .pl-ex div span { font-size: 7px; }
  .pl-ex s { font-size: 12px; }
  .pl-ex b { font-size: 15px; }
  .pl-ex em { font-size: 8px; }
  .pl-ex li.b::after { font-size: 7px; right: -4px; top: -7px; }
}

.covers.n8 { aspect-ratio: 1 / .6; width: min(100%, 900px); }
.covers.n8 .cover { width: 27.5%; }
.covers.n8 .c1 { left: 0; top: 0; right: auto; bottom: auto; transform: rotate(-9.5deg); z-index: 1; }
.covers.n8 .c2 { left: 10.36%; top: 4.4%; right: auto; bottom: auto; transform: rotate(-7deg); z-index: 2; }
.covers.n8 .c3 { left: 20.72%; top: 8.8%; right: auto; bottom: auto; transform: rotate(-4.5deg); z-index: 3; }
.covers.n8 .c4 { left: 31.08%; top: 13.2%; right: auto; bottom: auto; transform: rotate(-2deg); z-index: 4; }
.covers.n8 .c5 { left: 41.44%; top: 17.6%; right: auto; bottom: auto; transform: rotate(.5deg); z-index: 5; }
.covers.n8 .c6 { left: 51.8%; top: 22%; right: auto; bottom: auto; transform: rotate(3deg); z-index: 6; }
.covers.n8 .c7 { left: 62.16%; top: 26.4%; right: auto; bottom: auto; transform: rotate(5.5deg); z-index: 7; }
.covers.n8 .c8 { left: auto; right: 0; top: auto; bottom: 0; transform: rotate(8deg); z-index: 8; }
.covers.n8 .cover:hover { z-index: 9; }

.page-next {
  display: block; width: 100%; margin-top: 18px; padding: 17px 16px;
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: #9aa2b3; border: 1px solid var(--line); border-radius: 3px; text-align: center;
  transition: color .15s, border-color .15s, background .15s;
}
.page-next:hover { color: #150d00; background: var(--amber); border-color: var(--amber); }
.reader.fit .page-next, .reader.guided .page-next { display: none; }

/* ── script drawer ── */
.drawer {
  grid-column: 2; grid-row: 1; width: 0; overflow: hidden;
  background: var(--paper-3); color: var(--ink);
  transition: width .35s cubic-bezier(.2,.7,.2,1);
  border-left: 0 solid #000;
}
.reader.script .drawer { width: min(380px, 86vw); border-left-width: 1px; }
.drawer-in { width: min(380px, 86vw); height: 100%; overflow: auto; padding: 22px 24px 60px; }
.drawer h3 { font-family: var(--f-display); font-weight: 900; font-size: 34px; line-height: .95; text-transform: uppercase; margin: 2px 0 2px; }
.drawer .dk { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--red); }

.sp { font-family: var(--f-mono); font-size: 12.5px; line-height: 1.5; margin-top: 18px; padding-top: 14px; border-top: 1px dashed rgba(26,22,18,.3); }
.sp-h { font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.sp-d { margin: 6px 0 10px; color: var(--ink-2); }
.sp-l { margin: 7px 0 0 0; padding-left: 14px; border-left: 2px solid rgba(26,22,18,.18); }
.sp-l b { display: block; font-weight: 600; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.sp-l.is-ember { border-left-color: var(--amber-2); } .sp-l.is-ember b { color: #b06000; }
.sp-l.is-chorus { border-left-color: #18a5a0; } .sp-l.is-chorus b { color: #0f7f7b; }
.sp-l.is-cap { border-left-color: var(--blue-ink); font-family: var(--f-hand); font-size: 15px; color: var(--blue-ink); }
.sp-l.is-cap b { font-family: var(--f-mono); }

/* ── control bar ── */
.controls {
  grid-column: 1 / -1; grid-row: 2;
  display: flex; align-items: center; gap: 14px; padding: 0 14px; height: 54px;
  background: #06070a; border-top: 1px solid #1c212c;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fog);
}
.ctl-count { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; min-width: 0; }
.ctl-count b { font-family: var(--f-display); font-weight: 900; font-size: 26px; letter-spacing: 0; color: #f1ead9; line-height: 1; }
.ctl-count span { overflow: hidden; text-overflow: ellipsis; }
.ticks { flex: 1; display: flex; gap: 4px; align-items: center; min-width: 60px; }
.ticks button { flex: 1; height: 22px; position: relative; }
.ticks button::after { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 4px; background: #232937; border-radius: 2px; transition: background .2s, top .15s, height .15s; }
.ticks button:hover::after { background: #5a6170; top: 7px; height: 8px; }
.ticks button.read::after { background: var(--amber-ink); }
.ticks button.on::after { background: var(--amber); top: 7px; height: 8px; box-shadow: 0 0 10px rgba(255,171,46,.6); }
.ticks button.t95.read::after { background: #7a3a14; }
.ticks button.t95.on::after { background: var(--sodium); }
.toggles { display: flex; gap: 6px; }
.tg {
  padding: 8px 11px; border: 1px solid var(--line); border-radius: 3px; color: #b9bfcc; white-space: nowrap;
  transition: color .15s, border-color .15s, background .15s;
}
.tg kbd { font: inherit; color: #5f6777; margin-left: 6px; }
.tg:hover { color: #fff; border-color: #6f7788; }
.tg.on { color: #150d00; background: var(--amber); border-color: var(--amber); }
.tg.on kbd { color: rgba(0,0,0,.5); }
.tg.step { padding: 6px 12px; font-size: 17px; line-height: 1; letter-spacing: 0; }

/* ── end card ── */
.endcard {
  position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(60% 60% at 50% 60%, rgba(255,140,40,.2), transparent 70%), rgba(5,5,8,.94);
  animation: fade .5s both;
}
@keyframes fade { from { opacity: 0; } }
.endcard-in { max-width: 560px; text-align: center; }
.endcard .pct { font-family: var(--f-display); font-weight: 900; font-size: clamp(110px, 18vw, 210px); line-height: .8; color: #ff7a3d; text-shadow: 0 0 60px rgba(255,120,60,.5); }
.endcard h2 { font-family: var(--f-display); font-weight: 900; font-size: clamp(34px, 5vw, 56px); line-height: .95; text-transform: uppercase; margin: 22px 0 8px; }
.endcard p { color: #c4c8d2; margin: 0 0 26px; }
.endcard .hand { font-family: var(--f-hand); color: #f3e9c9; font-size: 23px; }
.endcard .cta-row { justify-content: center; }

/* ───────────────────────── PAPER (bible · storylines · research · script) ───────────────────────── */
body[data-view="bible"], body[data-view="storylines"], body[data-view="research"], body[data-view="script"] {
  background: var(--paper); color: var(--ink);
}
.paper { position: relative; min-height: calc(100vh - var(--bar)); padding-bottom: 120px; }
.paper::before { content: ""; position: fixed; inset: 0; background: var(--grain); opacity: .28; mix-blend-mode: multiply; pointer-events: none; z-index: 0; }
.paper > * { position: relative; z-index: 1; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }

.sheet-head { padding: clamp(40px, 7vw, 96px) 0 clamp(26px, 4vw, 48px); border-bottom: 3px solid var(--ink); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; }
.sheet-head .file { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--red); margin: 0 0 10px; }
.sheet-head h1 { font-family: var(--f-display); font-weight: 900; font-size: clamp(64px, 11vw, 168px); line-height: .8; text-transform: uppercase; margin: 0; letter-spacing: -.005em; }
.sheet-head .lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; max-width: 36em; margin: 22px 0 0; color: var(--ink-2); }
.stamp {
  font-family: var(--f-mono); font-weight: 600; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; text-align: center; line-height: 1.5;
  color: var(--red); border: 2px solid var(--red); padding: 10px 14px; transform: rotate(4deg); opacity: .85; white-space: nowrap;
}

.subnav { position: sticky; top: var(--bar); z-index: 10; background: var(--paper); border-bottom: 1px solid rgba(26,22,18,.25); }
.subnav .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.subnav a {
  font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  padding: 13px 14px; color: var(--ink-2); white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.subnav a:hover { color: var(--ink); border-bottom-color: var(--ink); }

.sec { padding: clamp(44px, 6vw, 84px) 0 0; scroll-margin-top: calc(var(--bar) + 50px); }
.sec-head { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: start; margin-bottom: 34px; }
.sec-head h2 { font-family: var(--f-display); font-weight: 900; font-size: clamp(40px, 5vw, 72px); line-height: .88; text-transform: uppercase; margin: 0; }
.sec-head .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--red); display: block; margin-bottom: 10px; }
.sec-head p { margin: 6px 0 0; font-size: 20px; line-height: 1.45; color: var(--ink-2); max-width: 34em; }

.note-hand {
  font-family: var(--f-hand); font-size: 20px; line-height: 1.5; color: var(--blue-ink);
  background: repeating-linear-gradient(180deg, transparent 0 29px, rgba(40,70,140,.2) 29px 30px) 0 14px, #f5ecd0;
  padding: 14px 22px 16px 34px; box-shadow: 0 6px 18px rgba(60,40,10,.18), inset 22px 0 0 -20px rgba(190,60,50,.5);
  transform: rotate(-.5deg); max-width: 44em;
}

/* pillars on paper */
.p-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.p-pillars div { padding: 18px 20px 22px 0; border-bottom: 1px solid rgba(26,22,18,.3); margin-right: 20px; }
.p-pillars i { font-style: normal; font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; color: var(--red); }
.p-pillars h3 { font-family: var(--f-display); font-weight: 800; font-size: 27px; line-height: 1; text-transform: uppercase; margin: 8px 0 8px; }
.p-pillars p { margin: 0; font-size: 16.5px; line-height: 1.45; color: var(--ink-2); }

/* world */
.world { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px 26px; }
.w-card { scroll-margin-top: calc(var(--bar) + 60px); }
.w-card figure { margin: 0 0 14px; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #111; box-shadow: 0 10px 26px rgba(60,40,10,.3); border: 6px solid #fbf6e8; outline: 1px solid rgba(26,22,18,.2); }
.w-card:nth-child(odd) figure { transform: rotate(-.7deg); }
.w-card:nth-child(even) figure { transform: rotate(.6deg); }
.w-card figure::before { content: ""; position: absolute; z-index: 2; left: 50%; top: -15px; width: 92px; height: 26px; translate: -50% 0; rotate: -2deg; background: rgba(240,224,160,.75); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.w-card img { width: 100%; height: 100%; object-fit: cover; }
.w-card .yrs { font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.w-card h3 { font-family: var(--f-display); font-weight: 900; font-size: 40px; line-height: .92; text-transform: uppercase; margin: 4px 0 8px; }
.w-card .short { margin: 0 0 8px; font-size: 18px; line-height: 1.4; }
.w-card details summary { cursor: pointer; font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); list-style: none; padding: 6px 0; }
.w-card details summary::-webkit-details-marker { display: none; }
.w-card details summary::before { content: "+ "; color: var(--red); }
.w-card details[open] summary::before { content: "– "; }
.w-card details p { margin: 8px 0 0; font-size: 16.5px; line-height: 1.5; color: var(--ink-2); }
.w-card.flash figure { animation: flash 1.4s ease 2; }
@keyframes flash { 50% { box-shadow: 0 0 0 5px var(--amber-2), 0 10px 26px rgba(60,40,10,.3); } }

/* timeline */
.tl { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--ink); margin-left: 6px; }
.tl li { position: relative; display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 18px; padding: 9px 0 9px 26px; align-items: baseline; }
.tl li::before { content: ""; position: absolute; left: -7px; top: 1.05em; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.tl b { font-family: var(--f-mono); font-weight: 600; font-size: 13px; letter-spacing: .12em; }
.tl span { font-size: 18px; }
.tl li.hot::before { background: var(--amber-2); border-color: var(--amber-2); box-shadow: 0 0 0 5px rgba(255,138,31,.25); }
.tl li.hot b { color: #b05400; } .tl li.hot span { font-weight: 600; }

/* cast */
.cast { display: grid; gap: 64px; }
.c-row { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; scroll-margin-top: calc(var(--bar) + 60px); }
.c-row:nth-child(even) .c-pic { order: 2; }
.c-pic { position: relative; margin: 0; border: 8px solid #fbf6e8; box-shadow: 0 14px 34px rgba(60,40,10,.32); outline: 1px solid rgba(26,22,18,.2); transform: rotate(-1deg); background: #222; position: sticky; top: calc(var(--bar) + 70px); }
.c-row:nth-child(even) .c-pic { transform: rotate(1.1deg); }
.c-pic::before, .c-pic::after { content: ""; position: absolute; z-index: 2; width: 84px; height: 24px; background: rgba(240,224,160,.78); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.c-pic::before { left: -26px; top: 8px; rotate: -38deg; } .c-pic::after { right: -26px; bottom: 8px; rotate: -38deg; }
.c-pic img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.c-role { font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--red); }
.c-row h3 { font-family: var(--f-display); font-weight: 900; font-size: clamp(44px, 5.4vw, 78px); line-height: .86; text-transform: uppercase; margin: 6px 0 8px; }
.c-age { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .06em; color: var(--ink-2); margin: 0 0 16px; }
.c-wn { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 2px solid var(--ink); border-bottom: 1px solid rgba(26,22,18,.3); margin-bottom: 16px; }
.c-wn div { padding: 12px 16px 14px 0; } .c-wn div + div { padding-left: 16px; border-left: 1px solid rgba(26,22,18,.3); }
.c-wn b { display: block; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 3px; }
.c-wn span { font-size: 17px; line-height: 1.35; font-style: italic; }
.c-row p { margin: 0 0 12px; font-size: 17.5px; }
.c-tells { list-style: none; margin: 16px 0 0; padding: 0; font-family: var(--f-hand); font-size: 18.5px; color: var(--blue-ink); }
.c-tells li { padding-left: 22px; position: relative; margin-bottom: 3px; } .c-tells li::before { content: "→"; position: absolute; left: 0; }

/* mission */
.big-quote { font-size: clamp(21px, 2.1vw, 28px); line-height: 1.4; max-width: 34em; margin: 0 0 40px; }
.seed { background: var(--ink); color: #f1ead9; padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 52px); position: relative; overflow: hidden; }
.seed::after { content: "2,048"; position: absolute; right: -10px; bottom: -42px; font-family: var(--f-display); font-weight: 900; font-size: 230px; line-height: 1; color: rgba(255,171,46,.08); pointer-events: none; }
.seed .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--amber); }
.seed h3 { font-family: var(--f-display); font-weight: 900; font-size: clamp(48px, 6vw, 88px); line-height: .85; text-transform: uppercase; margin: 8px 0 14px; }
.seed p { margin: 0 0 10px; color: #c9c2b1; font-size: 17px; }
.seed ol { list-style: none; margin: 0; padding: 0; counter-reset: s; position: relative; z-index: 1; }
.seed li { counter-increment: s; padding: 14px 0; border-bottom: 1px solid rgba(241,234,217,.2); display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 6px 10px; }
.seed li::before { content: counter(s); font-family: var(--f-mono); font-size: 12px; color: var(--amber); padding-top: 9px; }
.seed li b { font-family: var(--f-display); font-weight: 900; font-size: 34px; text-transform: uppercase; line-height: 1; color: var(--amber); }
.seed li span { grid-column: 2; color: #dcd5c4; font-size: 17px; line-height: 1.4; }

.layers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 3px solid var(--ink); margin-top: 18px; }
.layer { padding: 20px 22px 24px 0; } .layer + .layer { padding-left: 22px; border-left: 1px solid rgba(26,22,18,.3); }
.layer h4 { font-family: var(--f-display); font-weight: 900; font-size: 42px; text-transform: uppercase; line-height: .9; margin: 0 0 12px; }
.layer dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-top: 10px; }
.layer dd { margin: 2px 0 0; font-size: 17px; line-height: 1.4; }
.layer dd.became { font-style: italic; color: var(--red); }

.bag { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 22px; }
.tag { position: relative; background: #f7f0dc; padding: 16px 16px 16px 40px; box-shadow: 0 5px 14px rgba(60,40,10,.18); border: 1px solid rgba(26,22,18,.18); }
.tag::before { content: ""; position: absolute; left: 14px; top: 20px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 1px 3px rgba(0,0,0,.45); }
.tag:nth-child(3n) { transform: rotate(.6deg); } .tag:nth-child(3n+1) { transform: rotate(-.5deg); }
.tag h4 { margin: 0 0 4px; font-family: var(--f-display); font-weight: 800; font-size: 25px; text-transform: uppercase; line-height: 1; padding-right: 56px; }
.tag p { margin: 0; font-size: 15.5px; line-height: 1.4; color: var(--ink-2); }
.tag em { position: absolute; right: 12px; top: 14px; font-style: normal; font-family: var(--f-mono); font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--red); border: 1.5px solid var(--red); padding: 2px 6px; rotate: 3deg; }

/* the placemat, shown as an artifact in the bible */
.mat-stage { max-width: 600px; cursor: pointer; padding: 22px; background: radial-gradient(120% 100% at 30% 20%, #523a26, #24170e); box-shadow: 0 14px 34px rgba(60,40,10,.32); transform: rotate(.6deg); }
.mat-stage .mat { height: auto; padding: 30px 28px 26px; gap: 12px; border-radius: 10px; }
.mat-stage .mat::before { inset: 11px; outline-offset: 3px; }
.mat-stage .mat-title { font-size: 10.5px; }
.mat-stage .mat-notes { font-size: 19px; }
.mat-stage .mat-notes li { margin-bottom: 7px; }
.mat-stage .mat-key { font-size: 22px; gap: 8px 18px; margin-top: 10px; }

/* rules */
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }
.rule-g h3 { font-family: var(--f-display); font-weight: 900; font-size: 36px; text-transform: uppercase; line-height: 1; margin: 0 0 6px; padding-bottom: 10px; border-bottom: 3px solid var(--ink); }
.rule-g dl { margin: 0; }
.rule-g dt { font-family: var(--f-mono); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-top: 14px; }
.rule-g dd { margin: 3px 0 0; font-size: 17px; line-height: 1.45; color: var(--ink-2); padding-bottom: 12px; border-bottom: 1px solid rgba(26,22,18,.2); }

/* storylines */
.book { margin-bottom: 70px; }
.book-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 26px; align-items: end; border-bottom: 3px solid var(--ink); padding-bottom: 14px; margin-bottom: 8px; }
.book-head .n { font-family: var(--f-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--red); grid-column: 1 / -1; }
.book-head h2 { font-family: var(--f-display); font-weight: 900; font-size: clamp(52px, 8vw, 116px); line-height: .82; text-transform: uppercase; margin: 0; }
.book-head p { margin: 0 0 6px; font-size: 19px; color: var(--ink-2); max-width: 30em; }
.book-head p b { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; display: block; color: var(--ink); margin-bottom: 2px; }
.issue { display: grid; grid-template-columns: 96px minmax(0, 250px) minmax(0, 1fr); gap: 22px; padding: 22px 0; border-bottom: 1px solid rgba(26,22,18,.28); align-items: start; }
.issue .num { font-family: var(--f-display); font-weight: 900; font-size: 76px; line-height: .78; color: rgba(26,22,18,.2); }
.issue.now .num { color: var(--amber-2); }
.issue h3 { font-family: var(--f-display); font-weight: 900; font-size: 38px; text-transform: uppercase; line-height: .92; margin: 0 0 6px; }
.issue .when { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; color: var(--ink-2); display: block; }
.issue .st { display: inline-block; margin-top: 9px; font-family: var(--f-mono); font-weight: 600; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; padding: 3px 7px; border: 1.5px solid var(--ink-3); color: var(--ink-3); }
.issue.now .st { background: var(--ink); color: var(--amber); border-color: var(--ink); }
.issue p { margin: 0; font-size: 18px; line-height: 1.5; }
.issue a.go { display: inline-block; margin-top: 10px; font-family: var(--f-mono); font-weight: 600; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); text-decoration: none; }
.issue a.go:hover { text-decoration: underline; }
.direction { list-style: none; margin: 16px 0 0; padding: 0; max-width: 50em; }
.direction li { position: relative; padding: 11px 0 11px 30px; border-bottom: 1px solid rgba(26,22,18,.2); font-size: 18px; }
.direction li::before { content: "→"; position: absolute; left: 0; color: var(--red); font-family: var(--f-mono); }
.pencil { font-family: var(--f-hand); font-size: 18px; color: var(--ink-3); margin: 10px 0 0; }

.threads { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.thread { background: #fbf6e6; padding: 20px 20px 18px; box-shadow: 0 8px 20px rgba(60,40,10,.2); border-top: 5px solid var(--red); position: relative;
  background-image: repeating-linear-gradient(180deg, transparent 0 27px, rgba(40,70,140,.14) 27px 28px); background-position: 0 62px; }
.thread:nth-child(odd) { transform: rotate(-.7deg); } .thread:nth-child(even) { transform: rotate(.5deg); }
.thread h3 { font-family: var(--f-hand); font-weight: 700; font-size: 25px; line-height: 1.15; color: var(--blue-ink); margin: 0 0 12px; }
.thread .pl { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: var(--ink-2); margin: 0 0 8px; line-height: 1.5; }
.thread .pl b { letter-spacing: .18em; text-transform: uppercase; color: var(--red); font-size: 10px; display: block; }
.thread p.nt { margin: 0; font-size: 16.5px; line-height: 1.45; }
.themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; border-top: 3px solid var(--ink); }
.themes div { padding: 18px 22px 22px 0; }
.themes h3 { font-family: var(--f-display); font-weight: 900; font-size: 32px; text-transform: uppercase; line-height: 1; margin: 0 0 8px; }
.themes p { margin: 0; font-size: 17px; line-height: 1.45; color: var(--ink-2); }

/* research */
.facts { border-top: 2px solid var(--ink); }
.fact { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid rgba(26,22,18,.25); align-items: start; }
.fact .date { font-family: var(--f-mono); font-weight: 600; font-size: 13px; letter-spacing: .08em; padding-top: 5px; }
.fact h3 { font-family: var(--f-display); font-weight: 800; font-size: 29px; text-transform: uppercase; line-height: 1; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fact p { margin: 0; font-size: 17.5px; line-height: 1.5; max-width: 46em; }
.fact .caveat { font-family: var(--f-hand); color: var(--ink-3); font-size: 17px; margin-top: 6px; }
.fact.hot { background: linear-gradient(90deg, rgba(255,138,31,.16), transparent 70%); margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
.fact.hot .date { color: #b05400; }
.badge { font-family: var(--f-mono); font-weight: 600; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; padding: 3px 6px; border: 1.5px solid currentColor; line-height: 1; }
.badge.checked { color: #1f6b3a; } .badge.recalled { color: #9a6a00; border-style: dashed; }
.srcs { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.srcs a { font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid rgba(26,22,18,.35); }
.srcs a:hover { color: var(--red); border-color: var(--red); }
.inv-note { font-family: var(--f-hand); font-size: 19px; color: var(--blue-ink); margin: 20px 0 0; max-width: 44em; }
.inv-note::before { content: "Invented: "; font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--red); }
.inv-note.plain::before { content: none; }

.stat-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 3px solid var(--ink); }
.stat { padding: 22px 24px 26px 0; } .stat + .stat { padding-left: 24px; border-left: 1px solid rgba(26,22,18,.3); }
.stat h3 { font-family: var(--f-mono); font-weight: 600; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; margin: 0; color: var(--red); }
.stat .big { font-family: var(--f-display); font-weight: 900; font-size: clamp(72px, 9vw, 128px); line-height: .82; margin: 10px 0 6px; }
.stat .lbl { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; line-height: 1.45; color: var(--ink-2); margin: 0 0 14px; }
.stat p { margin: 0 0 10px; font-size: 16.5px; line-height: 1.5; }
.stat p.story { font-family: var(--f-hand); color: var(--blue-ink); font-size: 18px; }

.two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 36px; margin-top: 36px; align-items: start; }
.invented { background: var(--ink); color: #f1ead9; padding: 26px 28px; }
.invented h3 { font-family: var(--f-display); font-weight: 900; font-size: 34px; text-transform: uppercase; line-height: 1; margin: 0 0 12px; color: var(--amber); }
.invented li { margin-bottom: 10px; font-size: 17px; line-height: 1.45; color: #dcd5c4; }
.invented ul { margin: 0; padding-left: 20px; }
.budget { border: 2px solid var(--ink); padding: 20px 22px; background: #f7f0dc; }
.budget h3 { font-family: var(--f-display); font-weight: 900; font-size: 30px; text-transform: uppercase; line-height: 1; margin: 0 0 12px; }
.budget table { width: 100%; border-collapse: collapse; font-family: var(--f-mono); font-size: 13px; }
.budget td { padding: 8px 0; border-top: 1px dashed rgba(26,22,18,.35); } .budget td:last-child { text-align: right; font-weight: 600; }
.budget tr:nth-child(4) td:last-child { color: var(--red); font-size: 15px; }

.kv { border-top: 2px solid var(--ink); }
.kv div { display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr); gap: 24px; padding: 16px 0; border-bottom: 1px solid rgba(26,22,18,.25); }
.kv h3 { font-family: var(--f-display); font-weight: 800; font-size: 27px; text-transform: uppercase; line-height: 1.02; margin: 0; }
.kv p { margin: 0; font-size: 17.5px; line-height: 1.5; max-width: 44em; }
.source-list { columns: 2; column-gap: 40px; padding: 0; margin: 0; list-style: none; font-family: var(--f-mono); font-size: 12px; line-height: 1.5; }
.source-list li { break-inside: avoid; margin-bottom: 9px; padding-left: 16px; position: relative; }
.source-list li::before { content: "·"; position: absolute; left: 3px; color: var(--red); font-weight: 700; }
.source-list a { color: var(--ink); text-decoration-color: rgba(26,22,18,.35); }
.source-list a:hover { color: var(--red); }

/* full script */
.script-page { max-width: 760px; margin: 0 auto; }
.script-page .pg { margin-top: 46px; padding-top: 18px; border-top: 3px solid var(--ink); }
.script-page .pg > h2 { font-family: var(--f-display); font-weight: 900; font-size: 46px; text-transform: uppercase; line-height: 1; margin: 0; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
.script-page .pg > h2 a { font-family: var(--f-mono); font-weight: 600; font-size: 11px; letter-spacing: .16em; color: var(--red); text-decoration: none; }
.script-page .pg > h2 small { font-family: var(--f-mono); font-weight: 500; font-size: 12px; letter-spacing: .14em; color: var(--ink-2); }
.script-page .sp { font-size: 13.5px; }
.script-page .sec { padding-top: 56px; }
.issue-title { border-bottom: 6px solid var(--ink); padding-bottom: 10px; }
.issue-title span { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--red); }
.issue-title h2 { font-family: var(--f-display); font-weight: 900; font-size: clamp(56px, 9vw, 110px); line-height: .82; text-transform: uppercase; margin: 6px 0 0; }
.issue a.go + a.go { margin-left: 16px; }
.script-page .sp-l.is-cap { font-size: 17px; }

/* ───────────────────────── RESPONSIVE ───────────────────────── */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 34px; }
  .covers { width: min(94%, 500px); order: -1; }
  .pillars li { grid-template-columns: 44px minmax(0, 1fr); }
  .pillars p { grid-column: 2; }
  .doors, .layers, .stat-cards, .rules, .seed, .two { grid-template-columns: 1fr; }
  .layer + .layer, .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid rgba(26,22,18,.3); }
  .sec-head, .c-row, .sheet-head { grid-template-columns: 1fr; }
  .c-row:nth-child(even) .c-pic { order: 0; }
  .c-pic { position: relative; top: auto; }
  .issue { grid-template-columns: 60px minmax(0, 1fr); } .issue p, .issue .body { grid-column: 2; } .issue .num { font-size: 52px; }
  .fact, .kv div { grid-template-columns: 1fr; gap: 6px; }
  .source-list { columns: 1; }
  .stamp { justify-self: start; }
}
@media (max-width: 760px) {
  .bar { gap: 12px; padding: 0 12px; }
  .batt-name, .batt-state { display: none; }
  .controls { gap: 10px; padding: 0 10px; }
  .ctl-count span, .tg kbd, .tg.t-guided, .tg.t-fit { display: none; }
  .tg { padding: 8px 9px; }
  .reader.script .drawer { position: absolute; right: 0; top: 0; bottom: 54px; z-index: 30; box-shadow: -20px 0 60px rgba(0,0,0,.6); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}
@media print {
  .bar, .subnav { display: none; }
  body { background: #fff !important; }
  .paper::before { display: none; }
}
