/* AI OR DIE: the story site.
   A paper theatre on a table under a lamp; the screens set into it are cold (DIRECTION L-05).
   Two layouts: "wide" (the scene fills the window, words laid over its lower edge) and "narrow" (a phone, or any
   upright window: the whole 16:9 scene on top, never cropped, captions and cards below it). DIRECTION section 7.

   The type (docs/design/TYPE.md, the pass of 2026-11-12). Three voices for three kinds of truth:
     the story   Fraunces               what is imagined: titles, situations, the narrators, questions, choices, endings
     the record  Atkinson Hyperlegible  what is checked, and what the site itself says: facts, sources, labels, controls
     the screens IBM Plex Mono          what a screen or a machine shows: the date in the bar, words on screens
   A label is the record's voice (bold, sentence case, no tracking). Mono is never a label in the paper world.
   Every size comes from the scale below; a size outside it carries its reason in a comment.
   The chrome (the bar, the labels on the dark, the scrim) follows the scene's screen level by custom properties only:
   <html data-level="windows | walls | world"> (set by js/scene.js). Paper stays paper at every level. */

@font-face { font-family: 'Fraunces'; src: url('../fonts/fraunces.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('../fonts/atkinson-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('../fonts/atkinson-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('../fonts/atkinson-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/plex-mono-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/plex-mono-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* ---- the table, the paper, the lamp, the screens */
  --table: #14100c;
  --table-2: #201913;
  --paper: #efe4cc;
  --paper-2: #e4d5b6;
  --paper-hi: #f8f1df;
  --paper-edge: #cbb894;
  --ink: #231c16;
  --ink-soft: #54473a;
  --ink-red: #9a2f1d;
  --ink-brown: #6b3f12;
  --lamp: #f0b45c;
  --lamp-soft: #c98a3c;
  --cold: #a9dcff;
  --cold-deep: #0b1622;
  --glass: rgba(7, 9, 12, 0.8);
  --focus: #ffd47a;
  --text: #f4ece0;
  --text-soft: #d6cbbb;

  /* ---- the three voices */
  --story: 'Fraunces', Georgia, 'Times New Roman', serif;
  --record: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --screens: 'IBM Plex Mono', ui-monospace, Consolas, 'Courier New', monospace;
  --serif: var(--story); --sans: var(--record); --mono: var(--screens); /* the names the older sheets use */

  /* ---- the scale: fluid from a phone to a laptop; the root stays 18 px */
  --fs-display: clamp(2.4rem, 1.2rem + 3.6vw, 4.4rem);   /* the title, an ending's name */
  --fs-title: clamp(2rem, 1.3rem + 2.2vw, 3.1rem);       /* a stop's title, a question, a sheet's heading */
  --fs-lede: clamp(1.25rem, 1.05rem + 0.75vw, 1.6rem);   /* a narrator's line, a consequence, a dark note */
  --fs-card: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);      /* a choice's label, a card's heading */
  --fs-story: clamp(1.06rem, 1rem + 0.25vw, 1.17rem);    /* a stop's situation and other story prose */
  --fs-body: clamp(1rem, 0.97rem + 0.12vw, 1.06rem);     /* the record, plain words */
  --fs-small: 0.89rem;                                   /* costs on cards, sources, controls, labels */
  --fs-note: 0.78rem;                                    /* the honesty line, the credit, key hints */
  --fs-screen: 0.83rem;                                  /* the screens' voice */
  /* a witness's line: TYPE.md sets it at 21 to 23 px, between the story's prose and a narrator's line */
  --fs-witness: clamp(1.17rem, 1.05rem + 0.4vw, 1.28rem);
  /* the settings that go with each of the story's sizes (the weight is set beside them) */
  --fv-display: 'opsz' 144, 'SOFT' 80, 'WONK' 1;
  --fv-title: 'opsz' 96, 'SOFT' 100, 'WONK' 0;
  --fv-lede: 'opsz' 36, 'SOFT' 100, 'WONK' 0;
  --fv-card: 'opsz' 30, 'SOFT' 100, 'WONK' 0;
  --fv-story: 'opsz' 18, 'SOFT' 50, 'WONK' 0;

  /* ---- paper: one language (a ground with a faint fibre, a small radius, a contact shadow and an ambient one) */
  --fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='p' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .3' numOctaves='2' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .31 0 0 0 0 .18 .62 0 0 0 -.27'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23p)'/%3E%3C/svg%3E");
  --fibre-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='p' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .3' numOctaves='2' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .31 0 0 0 0 .18 .36 0 0 0 -.155'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23p)'/%3E%3C/svg%3E");
  --paper-ground: var(--fibre), radial-gradient(120% 90% at 16% 0%, rgba(255, 251, 238, 0.6), rgba(255, 251, 238, 0) 58%), linear-gradient(176deg, #f2e8d2, #e8dbbf);
  --paper-ground-soft: var(--fibre-soft), radial-gradient(120% 90% at 16% 0%, rgba(255, 251, 238, 0.6), rgba(255, 251, 238, 0) 58%), linear-gradient(176deg, #f2e8d2, #e8dbbf); /* under long text */
  --paper-shadow: 0 1px 0 var(--paper-edge), 0 2px 3px rgba(0, 0, 0, 0.36), 0 18px 40px rgba(0, 0, 0, 0.44);
  --paper-shadow-s: 0 1px 0 var(--paper-edge), 0 1px 2px rgba(0, 0, 0, 0.34), 0 8px 18px rgba(0, 0, 0, 0.38);
  --radius: 3px;

  /* ---- the chrome at "windows": the lamp's (the bar, the labels on the dark, the scrim) */
  --chrome-rgb: 14, 10, 7;
  --chrome-table: #14100c;
  --chrome-ink: #f4ece0;
  --chrome-soft: #cdc1af;
  --chrome-accent: #f0b45c;
  --chrome-edge: rgba(240, 180, 92, 0);
  --chrome-line: rgba(244, 236, 224, 0.12);
  --label-font: var(--record);
  --label-weight: 700;
  --label-size: var(--fs-small);
  --label-case: none;
  --label-track: 0;

  --bar-h: 56px;
  --scene-x: 0px; --scene-y: 0px; --scene-w: 100vw; --scene-h: 56.25vw;
  --gutter: 28px;
  /* the measures. A "ch" is the width of this face's 0, which is half as wide again as its average letter, so a line
     of about 70 to 76 characters is 48 to 50ch (TYPE.md's 58ch and 62ch are upper limits) */
  --measure-story: 49ch;
  --measure-record: 50ch;
}
/* walls: the accents and the scrim cool by half; the bar's edge takes a cold hairline */
html[data-level="walls"] {
  --chrome-rgb: 11, 12, 15;
  --chrome-table: #101114;
  --chrome-soft: #c9c5bb;
  --chrome-accent: #d2cdb0;
  --chrome-edge: rgba(169, 220, 255, 0.36);
  --chrome-line: rgba(169, 220, 255, 0.22);
}
/* the world: the chrome is glass (a blue-black scrim, cold accents), and its labels move into the screens' voice */
html[data-level="world"] {
  --chrome-rgb: 5, 11, 19;
  --chrome-table: #060b12;
  --chrome-ink: #eaf4fb;
  --chrome-soft: #b7cad9;
  --chrome-accent: #a9dcff;
  --chrome-edge: rgba(169, 220, 255, 0.7);
  --chrome-line: rgba(169, 220, 255, 0.34);
  --label-font: var(--screens);
  --label-weight: 600;
  --label-size: var(--fs-screen);
  --label-case: uppercase;
  --label-track: 0.08em;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--chrome-table); color: var(--text); font-family: var(--record); font-size: 18px; line-height: 1.5; font-optical-sizing: auto; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--chrome-table); }
html.wide body.stage-mode { overflow: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img, video { display: block; }
[hidden] { display: none !important; }
::selection { background: rgba(240, 180, 92, 0.88); color: #1d140a; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus, h1:focus, h2:focus, h3:focus, [tabindex="-1"]:focus { outline: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }

/* ---------- the bar: where you are (left); the three sheets as paper tabs, motion and sound as switches (right) ---------- */
.bar { position: fixed; z-index: 30; top: 0; left: 0; right: 0; height: var(--bar-h); display: flex; align-items: stretch; justify-content: space-between; gap: 20px; padding: 0 max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px)); pointer-events: none;
  background: linear-gradient(rgba(var(--chrome-rgb), 0.88) 0%, rgba(var(--chrome-rgb), 0.66) 52%, rgba(var(--chrome-rgb), 0) 100%); }
.bar > * { pointer-events: auto; }
/* over a sheet of paper (it scrolls under the bar) the bar's dark is nearly whole, so the switches' words keep their ground */
/* (2026-11-15, the site review: through the fade at its foot the map's tree showed during the tour; now whole, with a
   short shadow for its edge) */
html[data-route="map"] .bar, html[data-route="plain"] .bar, html[data-route="terms"] .bar, html[data-route="archive"] .bar { background: rgb(var(--chrome-rgb)); box-shadow: 0 6px 12px -6px rgba(0, 0, 0, 0.55); }
/* the table's edge, which the tabs hang from: dark at windows, a cold hairline as the screens grow */
.bar::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--chrome-edge); box-shadow: 0 0 14px var(--chrome-edge); pointer-events: none; }

/* where you are: the date as a small clock set into the table's edge (the screens' voice), then the seat (the story's) */
.where { display: flex; align-items: center; gap: 13px; min-width: 0; padding-bottom: 8px; }
.where .date, .where-inline .date { flex: none; font-family: var(--screens); font-weight: 600; font-size: var(--fs-screen); line-height: 1.2; letter-spacing: 0.09em; text-transform: uppercase; white-space: nowrap; color: #e3f4ff; padding: 6px 11px 5px; border-radius: 3px;
  background: radial-gradient(ellipse at 50% 38%, #14293b 0%, #08121c 82%);
  box-shadow: inset 0 0 0 1px rgba(160, 205, 245, 0.2), inset 0 2px 7px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.75), 0 1px 0 1px rgba(255, 240, 215, 0.07), 0 0 18px rgba(110, 190, 255, 0.16);
  text-shadow: 0 0 0.3em rgba(150, 215, 255, 0.8), 0 0 1em rgba(110, 190, 255, 0.4); }
.where .seat, .where-inline .seat { font-family: var(--story); font-weight: 500; font-size: var(--fs-body); font-variation-settings: var(--fv-story); line-height: 1.25; color: var(--chrome-ink); }
.where .seat { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85); }
.where .sep { flex: none; width: 1px; height: 18px; background: var(--chrome-ink); opacity: 0.32; }
/* the world: the seat line is a label of the chrome, and moves into the screens' voice */
html[data-level="world"] .where .seat, html[data-level="world"] .where-inline .seat { font-family: var(--label-font); font-weight: var(--label-weight); font-size: var(--label-size); font-variation-settings: normal; letter-spacing: var(--label-track); text-transform: var(--label-case); }

.tools { display: flex; align-items: stretch; gap: 6px; flex-shrink: 0; }
/* a sheet's tab: paper hanging from the top edge, each a hair off level (the paper is the tab's own ::before, so the
   control's box stays level and whole) */
.tool { position: relative; z-index: 0; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; margin: 0; padding: 0 15px 11px; border: 0; background: none; color: var(--ink); font-family: var(--story); font-weight: 600; font-size: var(--fs-small); font-variation-settings: 'opsz' 20, 'SOFT' 100, 'WONK' 0; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tool .t-more, .tool .t-colon { white-space: pre; }
.tool::before { content: ''; position: absolute; z-index: -1; left: 1px; right: 1px; top: -16px; bottom: var(--tuck, 11px); border-radius: 0 0 4px 4px; background: var(--paper-ground); background-color: var(--paper);
  box-shadow: inset 0 22px 9px -12px rgba(60, 40, 20, 0.34), 0 1px 0 var(--paper-edge), 0 2px 3px rgba(0, 0, 0, 0.42), 0 9px 18px rgba(0, 0, 0, 0.42);
  transform: rotate(var(--hang, 0deg)); transform-origin: 50% 0; }
#tool-map { --hang: -1deg; }
#tool-plain { --hang: 0.7deg; }
#tool-terms { --hang: -0.5deg; }
:where(#tool-plain) { --tuck: 9px; }
:where(#tool-terms) { --tuck: 12px; }
.tool:hover::before { background-color: #fff6e2; }
.tool[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.tool[aria-current="page"] { --tuck: 4px; }
.tool:focus-visible { outline: none; }
.tool:focus-visible::before { box-shadow: 0 0 0 3px var(--focus), 0 9px 18px rgba(0, 0, 0, 0.42); }
/* a switch: quiet, the record's voice, its state in words */
.tool.toggle { padding: 0 7px 9px; color: var(--chrome-ink); font-family: var(--record); font-weight: 700; font-variation-settings: normal; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85); }
.tool.toggle::before { position: static; z-index: auto; flex: none; width: 30px; height: 16px; margin-right: 9px; border-radius: 999px; transform: none;
  background: radial-gradient(circle at 8px 50%, var(--chrome-ink) 0, var(--chrome-ink) 4.4px, rgba(0, 0, 0, 0) 5.2px), rgba(var(--chrome-rgb), 0.55);
  box-shadow: inset 0 0 0 1.5px rgba(244, 236, 224, 0.62); }
.tool.toggle[aria-pressed="true"]::before { background: radial-gradient(circle at 22px 50%, #1d140a 0, #1d140a 4.4px, rgba(0, 0, 0, 0) 5.2px), var(--chrome-accent); box-shadow: inset 0 0 0 1.5px var(--chrome-accent), 0 0 12px rgba(var(--chrome-rgb), 0.5); }
.tool.toggle:hover::before { box-shadow: inset 0 0 0 1.5px var(--chrome-ink); }
.tool.toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: -6px; border-radius: 8px; }
.tool.toggle:focus-visible::before { box-shadow: inset 0 0 0 1.5px var(--chrome-ink); }
.tool.toggle .t-state, #tool-motion::after { font-weight: 400; color: var(--chrome-soft); }
/* the motion switch's state, in the sound switch's own words (the button's name stays "Reduce motion", its state in
   aria-pressed) */
#tool-motion::after { content: ': off'; white-space: pre; }
#tool-motion[aria-pressed="true"]::after { content: ': on'; }
@media (forced-colors: active) { .tool:focus-visible { outline: 3px solid Highlight; outline-offset: -4px; } }
/* a wide window too narrow for all of it (a small laptop, a tablet on its side): the switches take the phone's compact
   form (the name over its state), and the seat may take two lines; it never loses a word. Narrower still, a phone held
   sideways, the seat is left to the stop's own heading */
@media (max-width: 1180px) {
  html.wide .tool { padding-left: 12px; padding-right: 12px; }
  html.wide .tool.toggle .t-more, html.wide .tool.toggle .t-colon { display: none; }
  html.wide .tool.toggle .t-word { display: inline-block; grid-column: 1 / -1; grid-row: 1; }
  html.wide .tool.toggle .t-word::first-letter { text-transform: uppercase; }
  html.wide .tool.toggle { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-content: center; justify-items: start; column-gap: 5px; row-gap: 1px; padding: 0 6px 8px; font-size: var(--fs-note); line-height: 1.2; }
  html.wide .tool.toggle::before { grid-column: 1; grid-row: 2; align-self: center; width: 8px; height: 8px; margin: 0; border-radius: 50%; background: none; box-shadow: inset 0 0 0 1.5px var(--chrome-soft); }
  html.wide .tool.toggle[aria-pressed="true"]::before { background: var(--chrome-accent); box-shadow: 0 0 7px var(--chrome-accent); }
  html.wide .tool.toggle .t-state, html.wide #tool-motion::after { grid-column: 2; grid-row: 2; }
  html.wide #tool-motion::after { content: 'full'; }
  html.wide #tool-motion[aria-pressed="true"]::after { content: 'reduced'; }
  html.wide .where .seat { max-width: 15em; overflow: visible; white-space: normal; font-size: var(--fs-small); line-height: 1.15; text-wrap: balance; }
}
@media (max-width: 860px) { html.wide .where .seat, html.wide .where .sep { display: none; } }

/* ---------- the scene: a 16:9 box; inside it the stage in the plate's own pixels, scaled to fit ---------- */
.scene-wrap { position: fixed; inset: 0; z-index: 1; }
.backdrop { position: absolute; inset: -60px; background-color: #0b0806; background-size: cover; background-position: center; filter: blur(30px) brightness(0.32) saturate(0.85); transform: translateZ(0); }
.scene { position: absolute; left: var(--scene-x); top: var(--scene-y); width: var(--scene-w); height: var(--scene-h); overflow: hidden; background: #0c0a08; contain: layout paint; }
.stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.stage .plate { position: absolute; left: 0; top: 0; width: 100%; height: 100%; user-select: none; }
.screen { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; background: #0d1620; backface-visibility: hidden; }
.screen video, .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.screen .glass { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(158deg, rgba(255,255,255,0.13) 0%, rgba(255,255,255,0.04) 26%, rgba(255,255,255,0) 44%),
    radial-gradient(ellipse 75% 70% at 50% 50%, rgba(0,0,0,0) 58%, rgba(0,0,0,0.38) 100%);
  box-shadow: inset 0 0 0 1px rgba(160, 200, 240, 0.10); }
.screen.off { background: #1b2026; }
/* the screens' interference where the graphics pass is off (the site build of 2026-11-15, D-134; where the pass is on,
   js/gl/shaders.js draws the films' own): a soft band of light rolling down each screen every 2.2 s, in 26 steps as the
   films' does. Light, never a flash (it lifts at most 6 levels in 100); never under reduced motion, never in a film's
   export */
html[data-gl="off"]:not(.reduced):not(.film-export) .screen:not(.off)::after { content: ''; position: absolute; left: 0; right: 0; top: -20%; height: 20%; pointer-events: none; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0)); animation: screen-band 2.17s steps(26) infinite; }
@keyframes screen-band { from { transform: translateY(0); } to { transform: translateY(650%); } }
.screen.off .glass { background: linear-gradient(158deg, rgba(255,240,210,0.10) 0%, rgba(255,255,255,0) 40%), radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.45) 100%); }
/* the scene's own words (L-06): a paper poster in the story's voice, a screen's words in the screens' */
.words { position: absolute; left: 0; top: 0; transform-origin: 0 0; display: flex; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden; }
.words.paper-poster { color: #1f1712; font-family: var(--story); font-weight: 900; font-variation-settings: 'SOFT' 50, 'WONK' 0, 'opsz' 144; letter-spacing: -0.01em; mix-blend-mode: multiply; opacity: 0.92; }
.words.screen { background: radial-gradient(ellipse at 50% 45%, #13283a 0%, #08121c 75%); color: #e6f6ff; font-family: var(--screens); font-weight: 600; letter-spacing: 0.08em; text-shadow: 0 0 0.25em rgba(150, 215, 255, 0.85), 0 0 0.9em rgba(110, 190, 255, 0.45); }
.front { position: absolute; background-repeat: no-repeat; pointer-events: none; }
.full { position: absolute; inset: 0; background: #000; }
.full:empty { display: none; }
.full video, .full img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shade { position: absolute; inset: 0; background: #0b0806; opacity: 0; pointer-events: none; transition: opacity 0.5s ease; }
.scene.dim .shade { opacity: 0.58; }
.scene.dark .shade { opacity: 0.9; }
.scene.black .shade { opacity: 1; }
.scene.fade .stage, .scene.fade .full { opacity: 0; }
.stage, .full { transition: opacity 0.32s ease; }
/* the living table (2026-10-20, D-051): the pass's canvas over the stage (the DOM scene stays whole under it, the
   fallback); hidden until it has drawn the plate on show */
.scene canvas.gl { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.scene.glwait canvas.gl { visibility: hidden; }
/* the living table (2026-10-20, D-055): type over a clip. The site's own words, set over the clip's softened lettering,
   inside the screen's box (so the screen's corners and the camera carry them) or over the full frame; placed in the
   clip's frame by js/gl/typeover.js, in step with its frames */
.typeover { position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: flex-start; pointer-events: none; }
.typeover[hidden] { display: none; }
.typeover .tw { display: flex; flex-direction: column; line-height: 1.22; white-space: pre; font-family: var(--screens); }
.typeover.terminal .tw { align-items: flex-start; color: rgba(222, 232, 238, 0.9); font-weight: 400; letter-spacing: 0.01em; text-shadow: 0 0 0.3em rgba(160, 205, 235, 0.4); }
.typeover.hud { justify-content: center; }
.typeover.hud .tw { align-items: center; color: #effdff; font-weight: 600; letter-spacing: 0.05em; text-shadow: 0 0 0.2em rgba(120, 232, 255, 0.95), 0 0 0.7em rgba(70, 200, 255, 0.55); }
/* a plate with many pieces in front of its screens draws them as one cut-out layer per screen */
.front-cut { position: absolute; pointer-events: none; user-select: none; display: block; }
/* S-1: a screen the camera goes into, or comes out of, shows its clip whole, so the move meets the full frame exactly */
.screen.contain { background: #05080b; }
.screen.contain video, .screen.contain img { object-fit: contain; }
/* S-20: under reduced motion the speaking city's screen carries a thin warm outline (its width is set in CSS pixels by
   the scene, whatever the plate's scale) */
html.reduced .screen.marked .glass { box-shadow: inset 0 0 0 var(--mark, 4px) var(--lamp); }
/* S-1: the last frame of a hand-off, held a moment while the next picture fades in over it (scene.js) */
.screen canvas.still, .full canvas.still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.screen canvas.still.contain { object-fit: contain; }
.ghost { pointer-events: none; }

/* things laid over the scene in its own coordinates (fractions of its width and height) */
.overlay { position: absolute; left: var(--scene-x); top: var(--scene-y); width: var(--scene-w); height: var(--scene-h); pointer-events: none; z-index: 5; }
.overlay > * { pointer-events: auto; }

/* ---------- the panel: the stop's words, laid over the bottom of the scene (wide) or below it (narrow) ---------- */
/* M-1: a panel pinned to the bottom still scrolls to its top in a short window (a phone held sideways, a zoomed
   laptop): the first child takes the free space above it, so when nothing is free the words start at the top */
.panel { position: fixed; z-index: 10; left: calc(var(--scene-x) + var(--gutter)); right: calc(100vw - var(--scene-x) - var(--scene-w) + var(--gutter)); bottom: 0; max-height: calc(100vh - var(--bar-h) - 24px); overflow: auto; display: flex; flex-direction: column; justify-content: flex-start; padding: 50px 0 12px; }
.panel > :first-child { margin-top: auto; }
/* the scrim: part of the picture's light, the table's own dark rising from its edge; never a box. It grows with the
   words (--panel-shade, js/main.js: the panel's height and 46 px), so type over a bright part of a plate stays legible.
   Its fall-off is measured from its top, so the picture fades the same way above any stop's words: clear at the top,
   about three quarters dark where the words begin (110 px down), nearly whole under them */
.panel::before { content: ''; position: fixed; left: var(--scene-x); width: var(--scene-w); bottom: 0; height: calc(var(--panel-shade, 46vh) + 14px); pointer-events: none; z-index: -1;
  background: linear-gradient(to bottom, rgba(var(--chrome-rgb), 0) 0, rgba(var(--chrome-rgb), 0.14) 34px, rgba(var(--chrome-rgb), 0.44) 74px, rgba(var(--chrome-rgb), 0.74) 110px, rgba(var(--chrome-rgb), 0.88) 164px, rgba(var(--chrome-rgb), 0.94) 250px, rgba(var(--chrome-rgb), 0.97) 100%); }
/* centred panels (So far's cards, a dark note, the recap): centred while they fit, top-aligned and scrolling when they
   do not; never under the bar */
.panel.center { justify-content: flex-start; top: max(calc(var(--scene-y) + 12px), calc(var(--bar-h) + 4px)); bottom: 12px; max-height: none; padding: 12px 0; }
.panel.center::before { display: none; }
.panel.center > * { margin-top: auto; margin-bottom: auto; }
.panel.center > :last-child { margin-bottom: auto; }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 28px; align-items: end; }
.panel-main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.panel-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }

/* ---------- the foot: the honesty line and the credit, the record's voice, soft, at most two lines on a laptop ---------- */
.credits { margin-top: 14px; max-width: none; font-family: var(--record); font-size: var(--fs-note); line-height: 1.4; color: var(--chrome-soft); text-wrap: pretty; }
.credits p { display: inline; margin: 0; }
.credits p + p::before { content: ' '; }
.credits a { color: var(--chrome-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.credits strong { color: var(--chrome-ink); font-weight: 700; }
/* the line that says where the dials came from, when a stop is entered from the map */
.entry-line { display: inline-block; align-self: flex-start; margin: 0; padding: 5px 11px; border-radius: var(--radius); border: 1px solid var(--chrome-accent); background: rgba(var(--chrome-rgb), 0.82); color: var(--chrome-accent); font-size: var(--fs-small); line-height: 1.35; }

/* ---------- the story's voice ---------- */
/* display type over the picture sits on the scrim; its own shadow only softens the edge */
.stop-title, .question { margin: 0; font-family: var(--story); font-size: var(--fs-title); font-weight: 580; font-variation-settings: var(--fv-title); letter-spacing: -0.012em; line-height: 1.08; text-wrap: balance; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 0 28px rgba(var(--chrome-rgb), 0.7); }
.situation { margin: 0; max-width: var(--measure-story); font-family: var(--story); font-size: var(--fs-story); font-weight: 400; font-variation-settings: var(--fv-story); line-height: 1.5; text-wrap: pretty; }
.lede, .consequence, .gap-line { margin: 0; max-width: 28em; font-family: var(--story); font-size: var(--fs-lede); font-weight: 420; font-variation-settings: var(--fv-lede); line-height: 1.3; text-wrap: pretty; }
.lede { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }

/* a label: the record's voice, bold, sentence case, soft; on the dark it follows the chrome */
.kicker, .dials-title { margin: 0; font-family: var(--label-font); font-weight: var(--label-weight); font-size: var(--label-size); line-height: 1.3; letter-spacing: var(--label-track); text-transform: var(--label-case); color: var(--chrome-soft); }
/* a step's running head: the stop's name stays in the story's voice, smaller; where the step is follows as a label */
.kicker .stop-name { font-family: var(--story); font-weight: 600; font-size: var(--fs-body); font-variation-settings: var(--fv-story); letter-spacing: 0; text-transform: none; color: var(--chrome-ink); }
/* paper stays paper at every level: its labels are always the record's */
.paper .kicker, .paper .dials-title, .paper .kicker .stop-name { font-family: var(--record); font-weight: 700; font-size: var(--fs-small); font-variation-settings: normal; letter-spacing: 0; text-transform: none; color: var(--ink-soft); }

/* ---------- captions: the narrators (the story's voice), the witnesses (the record's), each with who speaks (D-008) ---------- */
.cap { margin: 0; max-width: 44em; }
.cap .who { display: block; margin-bottom: 5px; font-family: var(--record); font-weight: 700; font-size: var(--fs-small); line-height: 1.3; }
/* who speaks is in the words; the mark before them (a lamp's dot, a screen's square) and the colour only echo it */
.cap.person .who::before, .cap.machine .who::before { content: ''; display: inline-block; width: 0.5em; height: 0.5em; margin-right: 0.5em; vertical-align: 0.08em; background: currentColor; }
.cap.person .who::before { border-radius: 50%; }
.cap.machine .who::before { border-radius: 1px; }
.cap.person .who { color: var(--lamp); }
.cap.machine .who { color: var(--cold); }
.cap.both .who { color: var(--chrome-ink); }
.cap .text { display: block; font-family: var(--story); font-size: var(--fs-lede); font-weight: 420; font-variation-settings: var(--fv-lede); line-height: 1.3; text-wrap: pretty; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); }
.cap.machine .text { font-variation-settings: 'opsz' 36, 'SOFT' 0, 'WONK' 0; }
.cap .text, .cap .who { transition: opacity 0.25s ease; }
/* a caption that waits for its picture (a witness on a screen after a pull; the refrain before its city speaks) */
.cap.waiting .text, .cap.waiting .who { opacity: 0; }
.cap.refrain.waiting .text { opacity: 0; }
/* a witness: dark glass by its screen; who speaks as a label; the line in the record's voice */
.witness-cap { position: absolute; top: auto; max-width: 30%; padding: 10px 14px 12px; border-radius: 4px; background: var(--glass); box-shadow: inset 0 0 0 1px rgba(200, 225, 250, 0.1), 0 10px 28px rgba(0, 0, 0, 0.45); color: #fff; font-family: var(--record); pointer-events: none; transition: opacity 0.2s ease; }
.witness-cap .who, .witness-line .who { display: block; margin-bottom: 3px; font-family: var(--record); font-weight: 700; font-size: var(--fs-small); line-height: 1.3; color: var(--text-soft); }
.witness-cap .text { font-size: 1.17rem; line-height: 1.36; } /* 21 px: the low end of the witness's size, so the glass keeps clear of the faces */
.witness-cap.quiet { opacity: 0; }
/* M-2: a scene caption the bar or the panel's words would cover steps aside; the panel's copy shows instead */
.witness-cap.covered { visibility: hidden; }
.witness-line { margin: 0; max-width: 34em; padding: 10px 14px 12px; border-radius: 0 4px 4px 0; border-left: 3px solid var(--chrome-soft); background: var(--glass); color: #fff; }
.witness-line .text { display: block; font-size: var(--fs-witness); line-height: 1.36; text-indent: -0.4em; } /* its opening quotation mark hangs in the margin */
/* a witness's line in the panel (a film's witness beat, the hearing's testimony, the streets' refrain) */
.cap.witness .who { color: var(--chrome-soft); }
.cap.witness .text { font-family: var(--record); font-size: var(--fs-witness); font-weight: 400; font-variation-settings: normal; line-height: 1.38; }
.warnings { display: flex; flex-direction: column; gap: 10px; }
/* the Machine's warnings come one after another: who speaks is printed once (every line keeps its own label for a
   screen reader) */
.warnings .cap + .cap .who { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* wide: the witness's caption sits by its screen (a plate with a place for it: cap-in-scene); the panel keeps the line
   for screen readers only. Elsewhere the line shows with the stop's words (M2). */
html.wide.cap-in-scene .witness-line { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* a low, wide window (a small laptop with its browser's bars, about 1366 x 650): the display sizes step down a little
   (still the scale's own range), the cards and the gauges narrow so three cards keep one row, and the title's foot
   runs under its words, so the picture keeps its share of the window */
@media (max-height: 720px) {
  html.wide { --fs-display: clamp(2.4rem, 1.2rem + 2.9vw, 3.5rem); --fs-title: clamp(2rem, 1.2rem + 1.8vw, 2.6rem); --fs-lede: clamp(1.25rem, 1.05rem + 0.55vw, 1.45rem); }
  html.wide .choices { grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); }
  html.wide .panel-side .dial { width: 82px; }
  html.wide .panel-side .dials { gap: 6px; }
  html.wide .title-grid { grid-template-columns: minmax(0, 1fr); }
  html.wide .title-lines .lede { max-width: 26em; }
  html.wide .title-lines .lede:has(.tag) { max-width: 62ch; }
  html.wide .title-panel .credits p, html.wide .title-panel .byline .byline-note { display: inline; }
  html.wide .title-panel .credits p + p { margin-top: 0; }
  html.wide .title-panel .credits p + p::before { content: ' '; }
}
/* a short laptop window with the picture across its width (the site build of 2026-11-15, D-134; the site review's item
   1, "the words cover the picture"; js/main.js "fill"): the words and the cards keep to about two fifths of the
   window's height, so that at least half of the picture stays clear above them. The display sizes step down (within
   the scale's range), the story's measure takes its upper limit (fewer lines), and the cards and the gaps tighten */
/* (the story's sizes here follow the window's height, between the scale's low ends and its usual laptop sizes: at
   650 px high a title is about 32 px, a narrator's line 20, a situation 17; at 780 px they are nearly the usual) */
html.fill { --fs-title: clamp(1.7rem, 4.9vh, 2.2rem); --fs-lede: clamp(1.12rem, 3.15vh, 1.25rem); --fs-story: clamp(0.95rem, 2.65vh, 1.06rem); --fs-witness: clamp(1rem, 2.9vh, 1.17rem); --fs-card: clamp(1.06rem, 2.9vh, 1.2rem); }
html.fill .panel { padding-top: 40px; }
html.fill .panel-main { gap: 8px; }
html.fill .situation { max-width: 58ch; }
html.fill .btn { min-height: 42px; padding-top: 6px; padding-bottom: 6px; }
html.fill .entry-line { padding: 2px 9px; font-size: var(--fs-note); line-height: 1.3; justify-self: start; }
html.fill .witness-line { padding: 8px 12px 9px; }
html.fill .cap .who { margin-bottom: 3px; }
html.fill .choice { padding: 11px 14px 12px 16px; gap: 4px; }
html.fill .choice .cost { line-height: 1.32; }
html.fill .choice.closed .closed-line { margin-top: 2px; padding-top: 6px; line-height: 1.32; }
html.fill .terms-here .term { min-height: 38px; }
html.fill .moved li, html.fill .moved-wrap > p:not(.kicker) { line-height: 1.32; }
html.fill .credits { margin-top: 8px; }
/* (a film's year on the picture stands just under the bar, where the picture's top is cropped) */
html.fill .film-date { top: calc(var(--bar-h) + 8px - var(--scene-y)); }
/* ... and a step's buttons (Go on; Take it back and Go on) stand at the right of its last words, on their last line,
   instead of on a line of their own below them (the order of reading and of the keyboard is unchanged) */
html.fill .panel:not(.film-panel):not(.center) .panel-main:has(> .row:last-child) { display: grid; grid-template-columns: minmax(0, max-content) auto; justify-content: start; column-gap: 28px; row-gap: 8px; align-items: end; }
html.fill .panel:not(.film-panel):not(.center) .panel-main > * { grid-column: 1 / -1; }
html.fill .panel:not(.film-panel):not(.center) .panel-main > :has(+ .row:last-child) { grid-column: 1; }
html.fill .panel:not(.film-panel):not(.center) .panel-main > .row:last-child { grid-column: 2; }
/* (where the witness's line stands by its screen, the panel's copy before the buttons is kept for screen readers only:
   the words before it take the buttons beside them) */
html.fill.cap-in-scene .panel:not(.film-panel):not(.center) .panel-main > :has(+ .witness-line + .row:last-child) { grid-column: 1; }
html.fill .choice .cost, html.fill .choice.closed .closed-line { font-size: var(--fs-small); }
@media (max-height: 700px) { html.fill .choice .cost, html.fill .choice.closed .closed-line { font-size: 0.8rem; } } /* 14.4 px: the cards' small print in the shortest windows, as the foot's */
/* M-2: in a short, wide window (a phone held sideways) the scale steps down, so a stop's words read whole with their
   button (the sizes are the scale's own low ends) */
@media (max-height: 520px) { html.wide { --fs-display: 2.2rem; --fs-title: 1.6rem; --fs-lede: 1.25rem; --fs-card: 1.2rem; --fs-story: 1.06rem; --fs-witness: 1.11rem; } html.wide .panel { padding-top: 40px; } }

/* ---------- buttons: two kinds, one height, one radius ---------- */
/* the paper button, the next step (the story's voice): paper on the dark table, ink on a sheet of paper */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 22px; border-radius: 4px; border: 1.5px solid transparent; background: var(--paper-ground); background-color: var(--paper); color: var(--ink); font-family: var(--story); font-size: var(--fs-body); font-weight: 600; font-variation-settings: 'opsz' 24, 'SOFT' 100, 'WONK' 0; line-height: 1.2; text-decoration: none; cursor: pointer; box-shadow: var(--paper-shadow-s); -webkit-tap-highlight-color: transparent; }
.btn:hover { background-color: #fff6e2; }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--paper-edge), 0 3px 8px rgba(0, 0, 0, 0.36); }
.btn.primary { padding: 8px 30px; font-size: var(--fs-story); }
/* the quiet button (the record's voice): an outline. Its own ground is dark enough to carry its words over a bright
   clip with no scrim under it (a passage's Skip): 4.5:1 or more at the worst frame */
.btn.quiet { background: rgba(var(--chrome-rgb), 0.72); color: var(--chrome-ink); border-color: rgba(244, 236, 224, 0.5); box-shadow: none; font-family: var(--record); font-size: var(--fs-small); font-weight: 700; font-variation-settings: normal; }
.btn.quiet:hover { background: rgba(var(--chrome-rgb), 0.9); border-color: var(--chrome-ink); }
.btn.quiet:active { box-shadow: none; }
.paper .btn { background: var(--ink); color: var(--paper-hi); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.32), 0 7px 16px rgba(35, 28, 22, 0.26); }
.paper .btn:hover { background: #3a2f25; }
.paper .btn:active { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.32); }
.paper .btn.quiet { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; }
.paper .btn.quiet:hover { background: rgba(35, 28, 22, 0.08); }
/* S-8: a button that cannot be pressed looks it */
.btn:disabled, .btn[disabled], .btn[aria-disabled="true"] { opacity: 0.38; cursor: default; box-shadow: none; transform: none; }
.btn:disabled:hover { background-color: var(--paper); }
.btn.quiet:disabled:hover { background: rgba(var(--chrome-rgb), 0.72); border-color: rgba(244, 236, 224, 0.5); }
.paper .btn.quiet:disabled:hover { background: transparent; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
/* the long version: quiet, beside the stop, never in the way of the choice */
.long-btn { align-self: flex-end; }
.long-btn::before { content: ''; width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-right: 2px; opacity: 0.85; }

/* ---------- paper: cards, sheets, slips, tags ---------- */
.paper { padding: 24px 28px; border-radius: var(--radius); background: var(--paper-ground-soft); background-color: var(--paper); color: var(--ink); box-shadow: var(--paper-shadow); }
.paper a { color: var(--ink); }
/* focus on paper: a dark ring (the lamp-yellow ring is for the dark table) */
.paper :focus-visible, .sheet :focus-visible, .factcard :focus-visible { outline-color: #8f2d14; }
.archive :focus-visible { outline-color: var(--focus); }
/* a tag: a small paper label tied to the fact it opens (its hole, a hair off level). The control is 40 px high; its
   paper, the tag's own ::before, is the smaller label inside it, and the line of text it sits in keeps its height */
.tag { position: relative; z-index: 0; display: inline-flex; align-items: center; min-width: 44px; min-height: 40px; margin: -7px 0 -7px 8px; padding: 0 11px 0 22px; vertical-align: baseline; border: 0; background: none; color: var(--ink); font-family: var(--record); font-weight: 700; font-size: var(--fs-small); line-height: 1.2; text-shadow: none; cursor: pointer; transform: rotate(-2deg); -webkit-tap-highlight-color: transparent; }
.tag::before { content: ''; position: absolute; z-index: -1; left: 0; right: 0; top: 5px; bottom: 5px; border-radius: 2px 4px 4px 2px; background: var(--paper-ground); background-color: var(--paper); box-shadow: var(--paper-shadow-s); }
.tag::after { content: ''; position: absolute; left: 8px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #2a2019; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(35, 28, 22, 0.25); }
.tag:hover::before { background-color: #fff6e2; }
/* a stamp: ink red, a hair off level (a draft's stamp; "Our reading" on a So far card) */
.stamp, .reading .kicker { display: inline-block; padding: 2px 9px 1px; border: 1.5px solid var(--ink-red); border-radius: 3px; background: rgba(255, 240, 225, 0.5); box-shadow: inset 0 0 0 2px rgba(255, 240, 225, 0.5), inset 0 0 0 3px rgba(154, 47, 29, 0.32); color: var(--ink-red); font-family: var(--record); font-weight: 700; font-size: var(--fs-small); line-height: 1.3; letter-spacing: 0; text-transform: none; transform: rotate(-1.4deg); }
.stamp { margin: 2px 0; }

/* ---------- the choices: paper cards, each a button with its whole text ---------- */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; list-style: none; margin: 4px 0 0; padding: 0; }
.choice { width: 100%; height: 100%; text-align: left; display: flex; flex-direction: column; gap: 7px; padding: 17px 16px 19px 18px; border: 0; border-radius: var(--radius); background: var(--paper-ground); background-color: var(--paper); color: var(--ink); cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), var(--paper-shadow); transform: rotate(var(--tilt, 0deg)); transition: transform 0.18s ease, box-shadow 0.18s ease; -webkit-tap-highlight-color: transparent; }
.choice:hover { transform: rotate(0deg) translateY(-3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 1px 0 var(--paper-edge), 0 3px 4px rgba(0, 0, 0, 0.32), 0 24px 44px rgba(0, 0, 0, 0.5); }
.choice .label { font-family: var(--story); font-size: var(--fs-card); font-weight: 600; font-variation-settings: var(--fv-card); letter-spacing: -0.01em; line-height: 1.15; text-wrap: balance; }
.choice .cost { font-family: var(--record); font-size: var(--fs-small); line-height: 1.42; color: var(--ink-soft); text-wrap: pretty; }
.choice .key { font-family: var(--record); font-size: var(--fs-note); color: var(--ink-soft); }
/* a choice closed with its reason (the gate): visible, readable, and nothing to press */
.choice.closed { cursor: default; background: #d9cfbb; color: #4a3f34; box-shadow: 0 1px 0 var(--paper-edge), 0 4px 12px rgba(0, 0, 0, 0.35); }
.choice.closed:hover { transform: rotate(var(--tilt, 0deg)); box-shadow: 0 1px 0 var(--paper-edge), 0 4px 12px rgba(0, 0, 0, 0.35); }
.choice.closed .label { text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: rgba(74, 63, 52, 0.55); }
.choice.closed .closed-line { display: block; margin-top: 4px; padding-top: 8px; border-top: 1.5px dashed #a8987b; font-family: var(--record); font-size: var(--fs-small); line-height: 1.4; color: #3d332a; font-style: italic; }
/* the card laid on the table, the consequence, what moved */
.laid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.laid .card { justify-self: start; max-width: 34em; padding: 13px 20px 15px; border-radius: var(--radius); background: var(--paper-ground); background-color: var(--paper); color: var(--ink); transform: rotate(-1.2deg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), var(--paper-shadow-s); }
.laid .card .label { font-family: var(--story); font-size: var(--fs-card); font-weight: 600; font-variation-settings: var(--fv-card); line-height: 1.15; }
.moved-wrap { display: flex; flex-direction: column; gap: 3px; }
.moved-wrap p { margin: 0; }
.moved { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; }
.moved li, .moved-wrap > p:not(.kicker) { font-family: var(--record); font-size: var(--fs-body); line-height: 1.4; }
.moved .dname { font-weight: 700; color: var(--chrome-accent); }

/* ---------- the dials: four card gauges at the table's edge ---------- */
.dials { display: flex; gap: 8px; align-items: stretch; }
.dials-board { display: flex; flex-direction: column; gap: 7px; align-items: flex-end; }
.dial { width: 94px; display: flex; flex-direction: column; align-items: center; padding: 7px 4px 7px; border-radius: 4px 4px var(--radius) var(--radius); background: var(--paper-ground); background-color: var(--paper); color: var(--ink); box-shadow: var(--paper-shadow-s); }
.dial svg { width: 70px; height: 40px; overflow: visible; }
.dial .needle { transform-origin: 35px 36px; transition: transform 0.7s cubic-bezier(0.3, 1.4, 0.5, 1); }
/* a dial's name is a label; what it reads is the story's */
.dial .dn { margin-top: 3px; font-family: var(--record); font-weight: 700; font-size: var(--fs-small); line-height: 1.15; text-align: center; white-space: nowrap; color: var(--ink-soft); }
.dial .dw { display: flex; align-items: center; min-height: 2.3em; font-family: var(--story); font-weight: 600; font-size: var(--fs-small); font-variation-settings: var(--fv-story); line-height: 1.12; text-align: center; text-wrap: balance; }
.dial.changed { box-shadow: 0 0 0 2px var(--chrome-accent), var(--paper-shadow-s); }
/* a small window keeps the four gauges, a little narrower, so the stop's words have the room */
@media (max-width: 1180px), (max-height: 520px) { html.wide .panel-side .dial { width: 82px; } html.wide .panel-side .dials { gap: 6px; } }
.paper .dials-board { align-items: flex-start; }
.paper .dial { box-shadow: 0 0 0 1px var(--paper-edge), 0 4px 10px rgba(0, 0, 0, 0.16); background: var(--paper-hi); }

/* ---------- "So far": one paper card at a time ---------- */
.sofar-card { position: relative; max-width: 730px; width: 100%; margin: 0 auto; }
/* the card stands alone on the screen, so its heading is the screen's headline: the lede's size at a heading's weight */
.sofar-card h2 { margin: 6px 0 12px; font-family: var(--story); font-size: var(--fs-lede); font-weight: 600; font-variation-settings: var(--fv-lede); letter-spacing: -0.005em; line-height: 1.14; text-wrap: balance; }
.sofar-card > p { margin: 0 0 12px; }
.sofar-card > .kicker { margin: 0; }
.sofar-card .claim { margin: 0 0 12px; max-width: var(--measure-record); font-size: var(--fs-body); line-height: 1.5; text-wrap: pretty; }
.sofar-card .ask { margin: 16px 0 10px; font-weight: 700; font-size: var(--fs-body); }
/* a guess is a choice: three small slips of paper lying on the card */
.guesses { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.guesses .btn { background: var(--paper-hi); color: var(--ink); border-color: transparent; box-shadow: 0 0 0 1px var(--paper-edge), 0 2px 0 var(--paper-edge), 0 6px 12px rgba(35, 28, 22, 0.22); }
.guesses .btn:nth-child(1) { transform: rotate(-0.8deg); }
.guesses .btn:nth-child(2) { transform: rotate(0.6deg); }
.guesses .btn:nth-child(3) { transform: rotate(-0.4deg); }
.guesses .btn:hover { background: #fffdf6; }
.guesses .btn:active { box-shadow: 0 0 0 1px var(--paper-edge), 0 1px 0 var(--paper-edge); }
.record { display: flex; flex-direction: column; gap: 13px; }
.record p { margin: 0; }
.record .then { font-weight: 700; font-size: var(--fs-small); color: var(--ink-soft); }
.record h3 { margin-bottom: 3px; font-family: var(--record); font-weight: 700; font-size: var(--fs-small); line-height: 1.3; color: var(--ink-soft); }
.record section { padding-left: 14px; border-left: 2px solid var(--paper-edge); }
.record .said-text { max-width: var(--measure-record); font-size: var(--fs-body); line-height: 1.48; text-wrap: pretty; }
.src { font-family: var(--record); font-size: var(--fs-small); line-height: 1.4; color: var(--ink-soft); }
.src a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.now-row + .now-row { margin-top: 10px; padding-top: 10px; border-top: 1px dotted var(--paper-edge); }
.reading { padding-top: 13px; border-top: 1.5px dashed var(--paper-edge); }
.reading .kicker { margin-right: 8px; vertical-align: 0.2em; }
.reading .word { font-family: var(--story); font-size: var(--fs-card); font-weight: 650; font-variation-settings: var(--fv-card); }
.reading .why { margin-top: 4px; font-size: var(--fs-body); }
.reading .note { margin-top: 5px; font-size: var(--fs-small); color: var(--ink-soft); }
.your-call { margin: 0; font-size: var(--fs-small); color: var(--ink-soft); }
.your-call strong { font-family: var(--story); font-weight: 600; font-size: var(--fs-body); color: var(--ink); }
.card-stamp { position: absolute; top: 14px; right: 16px; }
/* the authors' own note before the first card: a small dated card, pinned slightly askew (a checked fact: the record) */
.note-card { max-width: 600px; width: 100%; margin: 0 auto; transform: rotate(-0.6deg); display: flex; flex-direction: column; gap: 12px; }
.note-card p { margin: 0; }
.note-card .note-text { margin: 0; font-family: var(--record); font-size: var(--fs-story); line-height: 1.45; text-wrap: pretty; }
.gap-card { max-width: 640px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }

/* ---------- the film ---------- */
/* a film's date, on the picture: the screens' voice, as large as the clock would be on that wall */
.film-date { position: absolute; left: 2.2%; top: 4%; padding: 2px 14px 3px; border-radius: 4px; background: rgba(6, 12, 19, 0.62); box-shadow: inset 0 0 0 1px rgba(160, 205, 245, 0.16); color: #eaf6ff; font-family: var(--screens); font-weight: 600; font-size: clamp(22px, 3.2vw, 46px); letter-spacing: 0.05em; text-shadow: 0 0 0.25em rgba(150, 215, 255, 0.55), 0 1px 2px rgba(0, 0, 0, 0.85); } /* its size follows the scene's width, not the scale */
.film-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.film-progress { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.film-progress .tick { flex: 0 1 18px; width: 18px; min-width: 5px; height: 4px; border-radius: 2px; background: rgba(244, 236, 224, 0.25); }
.film-progress .tick.done { background: rgba(244, 236, 224, 0.6); }
.film-progress .tick.now { background: var(--chrome-accent); }
.film-progress .count { flex: none; margin-left: 8px; white-space: nowrap; font-family: var(--label-font); font-weight: var(--label-weight); font-size: var(--label-size); letter-spacing: var(--label-track); text-transform: var(--label-case); color: var(--chrome-soft); }
/* ---------- a film left alone (the site build of 2026-11-15, D-134; the site review's item 7; js/film.js) ----------
   While a film plays and the visitor does nothing for two seconds, the bar, the buttons, the progress row and the small
   print fade; the caption, the year and one short label ("A scenario", where the small print began) stay. Any move, key
   or press brings everything back, quickly. Nothing here moves: what fades keeps its place, so the caption never
   shifts under the reader's eye. Under reduced motion a film never plays by itself, so nothing fades. */
.film-foot { position: relative; margin-top: 14px; }
.film-foot .credits, html.narrow .film-foot .credits { margin-top: 0; }
html.narrow .film-foot { margin-top: 20px; }
.film-label { position: absolute; left: 0; top: 0; margin: 0; font-family: var(--record); font-weight: 700; font-size: var(--fs-note); line-height: 1.4; color: var(--chrome-soft); opacity: 0; pointer-events: none; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); }
.bar, .film-controls, .film-progress, .film-foot .credits, .film-panel .entry-line, .film-label { transition: opacity 0.22s ease; }
html.film-idle .bar, html.film-idle .film-controls, html.film-idle .film-progress, html.film-idle .film-foot .credits, html.film-idle .film-panel .entry-line { opacity: 0; transition: opacity 0.9s ease; }
html.film-idle .film-label { opacity: 1; transition: opacity 0.9s ease 0.3s; }
/* a wide window with the room for it: the buttons and the progress row stand beside the caption, at its foot, so the
   caption sits low on the picture like a film's own, and nothing above it is empty when the rest has faded */
@media (min-width: 1200px) {
  html.wide .film-panel .panel-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "entry entry" "line controls" "line ticks" "foot foot"; column-gap: 32px; row-gap: 10px; align-items: end; }
  html.wide .film-panel .panel-main > .entry-line { grid-area: entry; justify-self: start; }
  html.wide .film-panel .panel-main > #beat-line { grid-area: line; }
  html.wide .film-panel .panel-main > .film-controls { grid-area: controls; justify-content: flex-end; }
  html.wide .film-panel .panel-main > .film-progress { grid-area: ticks; margin-left: 0; justify-content: flex-end; }
  html.wide .film-panel .panel-main > .film-foot { grid-area: foot; margin-top: 4px; }
}
.dark-note { max-width: 40em; margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.dark-note .stop-title, .ending-head .stop-title { font-size: var(--fs-display); font-weight: 640; font-variation-settings: var(--fv-display); letter-spacing: -0.02em; line-height: 1.02; }
.dark-note .stop-title { text-shadow: none; }
.dark-note .note-line { margin: 0; font-family: var(--story); font-size: var(--fs-lede); font-weight: 420; font-variation-settings: var(--fv-lede); line-height: 1.3; text-wrap: balance; }
.dark-note .credits { margin-top: 18px; text-align: center; max-width: 46em; }

/* ---------- an ending's recap: its name, your own vote, what you chose, the road not taken, the paper ---------- */
.recap { max-width: 860px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
/* a wash over the dimmed plate, so the recap's words on the dark read over any picture */
.panel.recap-panel::before { display: block; left: 0; top: 0; width: auto; right: 0; height: auto; background: rgba(var(--chrome-rgb), 0.5); }
.ending-head { display: flex; flex-direction: column; gap: 6px; }
.ending-head .sub { margin: 4px 0 0; font-family: var(--story); font-size: var(--fs-lede); font-weight: 420; font-variation-settings: var(--fv-lede); line-height: 1.25; color: var(--chrome-soft); text-wrap: balance; }
.recap .paper { padding: 20px 24px 22px; }
.recap h2 { font-family: var(--story); font-size: var(--fs-card); font-weight: 600; font-variation-settings: var(--fv-card); line-height: 1.15; }
/* "Here is what you chose": a programme, its numbers hanging in the margin */
.recap ol { margin: 10px 0 0; padding-left: 1.7em; }
.recap li { margin: 0 0 7px; padding-left: 0.2em; font-size: var(--fs-small); line-height: 1.38; text-wrap: pretty; }
.recap li::marker { font-family: var(--story); font-weight: 600; font-variation-settings: var(--fv-story); color: var(--ink-soft); }
.recap li strong { font-family: var(--story); font-weight: 600; font-size: var(--fs-body); font-variation-settings: var(--fv-story); }
.recap .moves { display: block; font-size: var(--fs-note); line-height: 1.38; color: var(--ink-soft); }
html.wide .recap .moves { display: inline; } /* a laptop's recap must fit its window: what moved follows on the line */
.recap-dials { margin-top: 14px; padding-top: 12px; border-top: 1.5px dashed var(--paper-edge); }
.not-taken-sec h2 { color: var(--chrome-ink); }
.not-taken { margin: 6px 0 0; max-width: 34em; font-family: var(--story); font-size: var(--fs-story); font-weight: 400; font-variation-settings: var(--fv-story); line-height: 1.45; text-wrap: pretty; }
.recap .paper-line { margin: 8px 0 0; font-size: var(--fs-body); line-height: 1.48; }
.recap .paper-line + p { margin: 10px 0 0; font-size: var(--fs-small); line-height: 1.42; color: var(--ink-soft); }
/* the way to the voices page from every ending (the site build of 2026-11-15, D-134; the site review's item 10) */
.recap .voices-line { margin: 5px 0 0; font-family: var(--story); font-size: var(--fs-body); font-weight: 600; font-variation-settings: var(--fv-story); line-height: 1.22; }
.recap .voices-line a { text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
/* your own vote, first in every ending (D-124, D-126): the ballot's paper and ink (css/vote.css), set on the recap */
.recap .vote-card { position: relative; padding: 20px 24px 22px; background: #f6f0e1; background-image: var(--fibre-soft); border-top: 4px solid var(--ink); transform: rotate(-0.4deg); }
.vote-card .vc-kicker { margin: 0; font-family: var(--record); font-style: italic; font-size: var(--fs-small); color: var(--ink-soft); }
/* the card's question holds one line beside the ending's name: between the title's size and the lede's */
.vote-card .vc-q { margin: 5px 0 0; font-family: var(--story); font-size: clamp(1.8rem, 1.2rem + 1.5vw, 2.5rem); font-weight: 600; font-variation-settings: var(--fv-title); letter-spacing: -0.012em; line-height: 1.06; text-wrap: balance; }
.vote-card .vc-line { margin: 9px 0 0; max-width: 52ch; font-size: var(--fs-body); line-height: 1.45; text-wrap: pretty; }
.vote-card .vc-go { margin-top: 15px; }
.vote-card .vc-go:focus-visible { outline-color: #8f2d14; }
/* wide: two columns, each running by itself, so the whole way out fits a laptop's window: the ending's name over what
   you chose; beside them your vote, the road not taken, the paper, the way on and the foot (the M1 check's S-5, S-14;
   TYPE.md's fault to fix) */
html.wide .recap { max-width: 1180px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto auto auto 1fr; grid-template-areas: "head vote" "chose vote" "chose nt" "chose paper" "chose row" "chose foot"; gap: 10px 28px; align-items: start; }
html.wide .recap > .ending-head { grid-area: head; padding: 4px 0 6px; container-type: inline-size; }
/* the ending's name on a laptop's recap: the display size, or the largest size at which the name holds one line (its
   length is --len, from js/stops/ending.js; a letter of this face at this weight is under half an em wide), so the
   whole way out fits the window whatever the ending is called */
@supports (font-size: 1cqi) { html.wide .recap .ending-head .stop-title { font-size: min(var(--fs-display), calc(100cqi / (var(--len, 12) * 0.5))); white-space: nowrap; } }
html.wide .recap .ending-head .sub { font-size: var(--fs-card); font-variation-settings: var(--fv-card); }
html.wide .recap > .vote-card { grid-area: vote; }
html.wide .recap > [aria-labelledby="chose-h"] { grid-area: chose; }
html.wide .recap > .not-taken-sec { grid-area: nt; }
html.wide .recap > [aria-labelledby="paper-h"] { grid-area: paper; }
html.wide .recap > .row { grid-area: row; }
html.wide .recap > .credits { grid-area: foot; margin-top: 0; }
html.wide .recap .paper { padding: 14px 22px 16px; } /* (the site build of 2026-11-15: a little closer, so the line to the voices fits, item 10) */

/* ---------- the map and plain words: sheets of paper on the table ---------- */
.sheet { position: relative; z-index: 12; min-height: 100vh; padding: calc(var(--bar-h) + 16px) max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px)); }
.sheet-inner { max-width: 980px; margin: 0 auto; }
/* plain words is a page for reading: its sheet is as wide as its measure asks, with a page's margins */
.sheet-inner:has(> .plain-sheet) { max-width: 800px; }
html.wide .sheet .paper.plain-sheet { padding: 30px 64px 40px; }
.sheet .paper { padding: 28px 34px 32px; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.sheet-head h1 { font-family: var(--story); font-size: var(--fs-title); font-weight: 580; font-variation-settings: var(--fv-title); letter-spacing: -0.012em; line-height: 1.08; }
.sheet-close { display: flex; justify-content: flex-end; margin-bottom: -40px; }
.map-scenario { margin: 0 0 14px; max-width: 70ch; font-size: var(--fs-small); color: var(--ink-soft); }
.map-legend { display: flex; flex-wrap: wrap; gap: 18px; margin: 0 0 14px; padding: 0; list-style: none; font-size: var(--fs-small); color: var(--ink-soft); }
.map-legend li { display: flex; align-items: center; gap: 8px; }
.map-legend .pin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); }
.map-legend .pin.built { background: var(--ink); }
.map-legend .pin.path { background: var(--lamp-soft); border-color: var(--ink-brown); }
.map-legend .line { width: 26px; height: 0; border-top: 3px solid var(--ink-brown); }
.map-entry-line { color: var(--ink-brown); font-size: var(--fs-small); margin: 0 0 10px; }
.map-foot { margin-top: 20px; }
/* the map: ink on paper. Its stops flow as text; the ink is drawn from where they land */
.map { position: relative; --map-indent: 30px; --map-x0: 12px; }
.map svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.map .edge { fill: none; stroke: #2b231b; stroke-width: 1.6; stroke-linecap: round; opacity: 0.75; }
.map .edge.unbuilt { stroke-dasharray: 1 5; opacity: 0.55; }
.map .edge.lit { stroke: var(--ink-brown); stroke-width: 3.2; opacity: 1; stroke-dasharray: none; }
.map path.fold { fill: none; stroke: #2b231b; stroke-width: 1.3; stroke-dasharray: 5 5; opacity: 0.6; }
.map .pinmark { fill: var(--paper); stroke: #2b231b; stroke-width: 2; }
.map .pinmark.built { fill: #2b231b; }
.map .pinmark.visited { fill: var(--lamp-soft); stroke: var(--ink-brown); }
.map .pinmark.here { fill: var(--lamp); stroke: var(--ink-brown); stroke-width: 3; }
.map .fold-pin { fill: var(--paper); stroke: #2b231b; stroke-width: 1.4; stroke-dasharray: 2 2; }
.map ol { list-style: none; margin: 0; padding: 0; }
.map-stops { position: relative; inset: auto; }
.map .stop { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 9px; row-gap: 1px; min-height: 40px; padding: 6px 0 6px calc(var(--map-x0) + var(--depth, 0) * var(--map-indent) + 16px); white-space: normal; }
.map .stop.fold { column-gap: 6px; opacity: 1; }
/* a stop: the story's voice; the road that leads to it, the record's italic; its date and seat, small and soft */
.map .name { font-family: var(--story); font-size: var(--fs-body); font-weight: 600; font-variation-settings: var(--fv-story); line-height: 1.25; }
.map a.name { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; padding: 4px 2px; }
.map a.name:hover { color: var(--ink-brown); }
.map span.name { color: #6d6154; font-weight: 450; }
.map .via { font-family: var(--record); font-style: italic; font-size: var(--fs-small); color: var(--ink-soft); }
.map .meta { font-family: var(--record); font-size: var(--fs-small); color: var(--ink-soft); }
.map .joins { font-family: var(--record); font-size: var(--fs-small); color: var(--ink-soft); }
.map .stop.fold.walked .joins { color: var(--ink-brown); font-weight: 700; }
.map .status { margin-left: 2px; padding: 0 7px; border: 1px solid #b9a888; border-radius: 2px; font-family: var(--record); font-weight: 700; font-size: var(--fs-note); color: #6d6154; }
.map .status.here { color: var(--ink-brown); border-color: var(--ink-brown); }

/* plain words: the reading version (the record's voice at a reading measure; the story's headings on the scale) */
.plain { color: var(--ink); }
.plain h1 { font-family: var(--story); font-size: var(--fs-title); font-weight: 580; font-variation-settings: var(--fv-title); letter-spacing: -0.012em; line-height: 1.08; }
.plain h2 { margin: 30px 0 8px; padding-top: 20px; border-top: 2px solid var(--paper-edge); font-family: var(--story); font-size: var(--fs-lede); font-weight: 600; font-variation-settings: var(--fv-lede); line-height: 1.15; }
.plain h3 { margin: 20px 0 6px; font-family: var(--story); font-size: var(--fs-story); font-weight: 650; font-variation-settings: var(--fv-story); line-height: 1.25; }
.plain h4 { margin: 14px 0 4px; font-family: var(--record); font-weight: 700; font-size: var(--fs-body); line-height: 1.3; }
.plain p, .plain li { max-width: var(--measure-record); font-size: var(--fs-body); line-height: 1.55; text-wrap: pretty; }
.plain .who { font-weight: 700; }
.plain .src { font-size: var(--fs-small); }
.plain .credit { font-size: var(--fs-small); color: var(--ink-soft); }
.plain-nav ul { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; padding: 0; margin: 10px 0 0; }
.plain-nav > ul { flex-direction: column; gap: 6px; }
.plain-stop { margin-bottom: 8px; }
/* plain words: the contents, and the scenario line at the head of every section (D-041) */
.plain-toc-h { margin: 16px 0 4px; padding: 0; border: 0; font-family: var(--story); font-size: var(--fs-story); font-weight: 650; }
.plain-toc { columns: 2 16em; column-gap: 28px; margin: 6px 0 4px; padding-left: 1.4em; }
.plain-toc li { font-size: var(--fs-body); line-height: 1.5; break-inside: avoid; }
.plain-scenario { margin: 2px 0 8px; font-family: var(--record); font-style: italic; font-size: var(--fs-small); color: var(--ink-soft); }
.plain-back { font-family: var(--record); font-weight: 700; font-size: var(--fs-small); }
body.static { background: var(--paper); }
body.static .plain { max-width: 820px; margin: 0 auto; padding: 24px 18px 60px; }

/* ---------- the fact card (the record) ---------- */
.factcard { max-width: min(580px, calc(100vw - 32px)); border: 0; padding: 0; background: transparent; color: var(--ink); overflow: visible; }
.factcard::backdrop { background: rgba(8, 6, 4, 0.72); }
.factcard .paper { padding: 24px 26px 22px; transform: rotate(-0.3deg); }
.factcard h2 { margin-bottom: 9px; font-family: var(--record); font-weight: 700; font-size: var(--fs-small); line-height: 1.3; color: var(--ink-soft); }
.factcard .fact-text { margin: 0 0 12px; font-family: var(--record); font-size: var(--fs-story); line-height: 1.45; text-wrap: pretty; }
.factcard .row { margin-top: 16px; }

.noscript { padding: 24px; font-size: var(--fs-body); }

/* ---------- the terms (DIRECTION L-11): every hard word explains itself ---------- */
/* the mark: a fine dotted underline in the text's own colour; the word is a button, but reads as the word */
.term { display: inline; margin: 0; padding: 0; border: 0; border-radius: 2px; background: none; color: inherit; font: inherit; font-variation-settings: inherit; font-feature-settings: inherit; line-height: inherit; letter-spacing: inherit; word-spacing: inherit; text-transform: inherit; text-align: inherit; text-indent: 0; text-shadow: inherit; white-space: inherit; vertical-align: baseline; cursor: pointer; -webkit-tap-highlight-color: transparent;
  text-decoration-line: underline; text-decoration-style: dotted; text-decoration-color: currentColor; text-decoration-thickness: max(1.5px, 0.07em); text-underline-offset: 0.2em; text-decoration-skip-ink: none; }
.term:hover, .term.open { text-decoration-style: solid; }
.term:focus-visible { outline-offset: 2px; }
/* the caption by a screen (wide windows): its marks answer a pointer; the caption itself never does */
.witness-cap .term { pointer-events: auto; }
.witness-cap.quiet .term, .witness-cap.covered .term { pointer-events: none; }
/* the panel's own copy of a witness's line, hidden while the caption by the screen shows, comes into view while one of
   its words has the focus or its slip is open (so a keyboard always sees where it is) */
html.wide.cap-in-scene .witness-line:focus-within, html.wide.cap-in-scene .witness-line.has-slip { position: relative !important; width: auto; height: auto; margin: 0; padding: 10px 14px 12px; overflow: visible; clip: auto; white-space: normal; border-left: 3px solid var(--chrome-soft); }

/* Words on this page: the terms only the choice cards hold, listed under them */
.terms-here { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; row-gap: 2px; margin-top: 2px; }
.terms-here ul { display: flex; flex-wrap: wrap; column-gap: 16px; row-gap: 0; list-style: none; margin: 0; padding: 0; }
.terms-here li { font-size: var(--fs-body); }
.terms-here .term { display: inline-flex; align-items: center; min-height: 44px; }

/* the slip: a small paper slip beside the word (a laptop); risen from the bottom edge (a phone, a short window) */
.slip { position: fixed; z-index: 60; left: 12px; top: 12px; width: min(390px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; overscroll-behavior: contain; margin: 0; padding: 16px 20px 12px; border-radius: var(--radius); transform: rotate(-0.4deg); box-shadow: 0 1px 0 var(--paper-edge), 0 2px 3px rgba(0, 0, 0, 0.3), 0 20px 46px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(35, 28, 22, 0.08); }
.slip:not([hidden]) { animation: slip-in 0.16s ease-out; }
@keyframes slip-in { from { opacity: 0; translate: 0 5px; } to { opacity: 1; translate: 0 0; } }
/* (the slip inside the fact card's dialog keeps its own heading: the card's heading style is for the card) */
.slip h2 { margin: 0 0 6px; font-family: var(--story); font-size: var(--fs-card); font-weight: 600; font-variation-settings: var(--fv-card); line-height: 1.18; letter-spacing: 0; text-transform: none; color: var(--ink); }
.slip p { margin: 0 0 8px; font-size: var(--fs-small); line-height: 1.42; }
.slip .slip-story strong { font-weight: 700; }
.slip .slip-kind { font-style: italic; color: var(--ink-soft); }
.slip-see { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 2px 0 4px; }
.slip-see .see-label { font-size: var(--fs-small); color: var(--ink-soft); }
.slip-see .see { display: inline-flex; align-items: center; min-height: 40px; padding: 3px 11px; border: 1px solid var(--paper-edge); border-radius: var(--radius); background: var(--paper-hi); color: var(--ink); font-family: var(--record); font-size: var(--fs-small); cursor: pointer; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.slip-see .see:hover { background: #fffdf6; border-color: var(--ink-soft); }
.slip-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 6px; padding-top: 10px; border-top: 1.5px dashed var(--paper-edge); }
.slip-foot .btn { padding: 8px 16px; }
.factcard .slip.paper { padding: 16px 20px 12px; transform: rotate(-0.4deg); }
.slip.bottom, .factcard .slip.bottom.paper { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: min(62vh, 560px); padding: 20px max(18px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px)); border-radius: 10px 10px 0 0; transform: none; box-shadow: 0 -2px 0 var(--paper-edge), 0 -14px 40px rgba(0, 0, 0, 0.55); }
.slip.bottom p { font-size: var(--fs-body); }
.slip.bottom:not([hidden]) { animation: slip-rise 0.22s ease-out; }
@keyframes slip-rise { from { translate: 0 100%; } to { translate: 0 0; } }
.slip.bottom .slip-see .see { min-height: 44px; }

/* the Terms sheet: a sheet of paper like the map's, every term from A to Z, a row of letters to jump by */
.term-letters ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0 0 10px; padding: 0; }
.term-letters a, .term-letters .none { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 44px; padding: 0 4px; border-radius: var(--radius); font-family: var(--story); font-size: var(--fs-story); font-weight: 600; font-variation-settings: var(--fv-story); }
.term-letters a { color: var(--ink); text-decoration: none; border: 1px solid var(--paper-edge); background: rgba(255, 250, 238, 0.6); }
.term-letters a:hover { background: #fffdf6; border-color: var(--ink-soft); }
.term-letters .none { color: var(--ink); opacity: 0.32; }
.term-letter-h { margin: 18px 0 0; padding-top: 10px; border-top: 2px solid var(--paper-edge); font-family: var(--story); font-size: var(--fs-lede); font-weight: 600; font-variation-settings: var(--fv-lede); scroll-margin-top: 72px; }
.term-entry { padding: 12px 0 8px; border-bottom: 1px dotted var(--paper-edge); }
.term-entry:last-child { border-bottom: 0; }
.term-entry h3 { margin: 0 0 4px; font-family: var(--story); font-size: var(--fs-story); font-weight: 650; font-variation-settings: var(--fv-story); line-height: 1.25; scroll-margin-top: 72px; }
.term-entry p { margin: 0 0 6px; max-width: var(--measure-record); font-size: var(--fs-body); line-height: 1.5; text-wrap: pretty; }
.term-entry .term-kind { font-size: var(--fs-small); font-style: italic; color: var(--ink-soft); }
.term-entry .src { font-size: var(--fs-small); }
.term-entry.here { background: rgba(240, 180, 92, 0.16); box-shadow: -10px 0 0 rgba(240, 180, 92, 0.16), 10px 0 0 rgba(240, 180, 92, 0.16); }
.terms-foot { margin-top: 16px; font-size: var(--fs-small); color: var(--ink-soft); }
.terms-foot p { margin: 0; }
.plain .term-entry h3 { margin-top: 0; }

/* ---------- narrow: a phone, or any upright window ---------- */
html.narrow { scroll-padding-top: 64px; } /* S-9: focus never hides under the phone's sticky bar */
html.narrow body { overflow: auto; }
/* the bar on a phone: one row, never a wrapped label. The three sheets are short paper tabs ("Map" for "The map"); motion
   and sound are two compact switches, the name over its state in words. Every control is 44 px or more; every
   accessible name stays whole (js/main.js, js/voice.js) */
html.narrow .bar { position: sticky; height: auto; min-height: 52px; padding: 0 max(8px, env(safe-area-inset-right, 0px)) 0 max(8px, env(safe-area-inset-left, 0px)); background: var(--chrome-table); border-bottom: 1px solid var(--chrome-line); }
html.narrow .bar .where { display: none; }
html.narrow .tools { width: 100%; min-height: 52px; gap: 4px; }
html.narrow .tool { min-height: 52px; padding: 0 9px 9px; }
html.narrow .tool { --tuck: 9px; }
html.narrow .tool[aria-current="page"] { --tuck: 4px; }
html.narrow .tool .t-more, html.narrow .tool .t-colon { display: none; }
html.narrow .tool .t-word { display: inline-block; }
html.narrow .tool .t-word::first-letter { text-transform: uppercase; }
html.narrow .tool.toggle { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-content: center; justify-items: start; column-gap: 5px; row-gap: 1px; padding: 0 5px; font-size: var(--fs-note); line-height: 1.2; text-shadow: none; }
html.narrow #tool-motion { margin-left: auto; }
html.narrow .tool.toggle .t-word { grid-column: 1 / -1; grid-row: 1; }
/* the switch is a small lamp before its state: lit when the control is on */
html.narrow .tool.toggle::before { grid-column: 1; grid-row: 2; align-self: center; width: 8px; height: 8px; margin: 0; border-radius: 50%; background: none; box-shadow: inset 0 0 0 1.5px var(--chrome-soft); }
html.narrow .tool.toggle[aria-pressed="true"]::before { background: var(--chrome-accent); box-shadow: 0 0 7px var(--chrome-accent); }
html.narrow .tool.toggle .t-state, html.narrow #tool-motion::after { grid-column: 2; grid-row: 2; }
html.narrow #tool-motion::after { content: 'full'; }
html.narrow #tool-motion[aria-pressed="true"]::after { content: 'reduced'; }
html.narrow .tool.toggle:focus-visible { outline-offset: -3px; }
@media (max-width: 374.98px) { html.narrow .tool { padding-left: 6px; padding-right: 6px; } html.narrow .tool.toggle { padding: 0 3px; } html.narrow .tools { gap: 3px; } }
@media (max-width: 339.98px) { html.narrow .tool { padding-left: 4px; padding-right: 4px; font-size: var(--fs-note); } html.narrow .tools { gap: 2px; } }

html.narrow .scene-wrap { position: relative; inset: auto; width: 100%; height: var(--scene-h); }
/* a film on a phone (the site build of 2026-11-15, D-134; the site review's item 5, "films play in a strip above a
   void"; js/film.js "film-tall", js/main.js): the picture whole across the width in the space above the film's words,
   its own light softened around it (js/soft.js: a small canvas, stretched, at half strength over the dark, fading into
   the table at its foot); the words follow below as before */
.film-soft { display: none; }
html.narrow.film-tall .scene-wrap { height: var(--wrap-h, var(--scene-h)); }
html.narrow.film-tall .scene, html.narrow.film-tall .overlay { top: var(--scene-y); }
html.narrow.film-tall .film-soft { display: block; position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0.5; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 80%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 80%, transparent 100%); }
.film-soft.soft-css { filter: blur(14px); }
html.narrow .backdrop { display: none; }
html.narrow .scene, html.narrow .overlay { left: 0; top: 0; }
html.narrow .panel { position: static; max-height: none; overflow: visible; padding: 16px 16px 30px; left: auto; right: auto; }
html.narrow .panel::before { display: none; }
html.narrow .panel.center { padding: 16px 16px 30px; }
html.narrow .panel-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
html.narrow .panel-side { align-items: stretch; }
/* phones: where you are is printed under the scene (the scene keeps its corners clear): the clock, then the seat */
html.narrow .where-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 11px; margin: 0 0 2px; }
html.wide .where-inline { display: none; }
html.narrow .film-date { display: none; }
html.narrow .witness-cap { display: none; }
html.narrow .choices { grid-template-columns: minmax(0, 1fr); gap: 12px; }
/* (the site build of 2026-11-15, item 5: a phone shows its question's cards whole in its first window; a little less
   paper around their words) */
html.narrow .choice { padding: 13px 14px 14px 16px; gap: 5px; }
html.narrow .long-btn { align-self: flex-start; }
html.narrow .dials { justify-content: space-between; gap: 6px; }
html.narrow .dials-board { align-items: stretch; }
html.narrow .dial { width: auto; flex: 1 1 0; min-width: 0; }
html.narrow .paper { padding: 20px 18px; }
html.narrow .film-progress { margin-left: 0; width: 100%; }
html.narrow .credits { margin-top: 20px; }
html.narrow .sheet { padding: 12px max(10px, env(safe-area-inset-right, 0px)) 40px max(10px, env(safe-area-inset-left, 0px)); }
html.narrow .sheet .paper { padding: 20px 16px 26px; }
html.narrow .title-grid { grid-template-columns: minmax(0, 1fr); }
html.narrow .map { --map-indent: 18px; --map-x0: 10px; }
html.narrow .map .stop { min-height: 44px; padding-top: 7px; padding-bottom: 7px; }
html.narrow .map .via { flex-basis: 100%; }
html.narrow .term-letters a, html.narrow .term-letters .none { min-width: 44px; min-height: 44px; }
/* below 360 px the four dials cannot stand in one row at their size: two rows of two, so nothing scrolls sideways */
@media (max-width: 359.98px) {
  html.narrow .dials { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
  html.narrow .dial { width: auto; min-width: 0; }
}

/* ---------- the first screen ---------- */
.title-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 400px); gap: 12px 40px; align-items: end; }
.title-left { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.title-lines { display: flex; flex-direction: column; gap: 14px; }
/* the first line is a checked fact (its tag opens the card): the record's voice. The line after it is the story's: the
   screen's display type */
.title-lines .lede { max-width: 21em; font-size: var(--fs-title); font-weight: 580; font-variation-settings: var(--fv-title); letter-spacing: -0.012em; line-height: 1.08; text-wrap: balance; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 0 28px rgba(var(--chrome-rgb), 0.7); }
.title-lines .lede:has(.tag) { max-width: 50ch; font-family: var(--record); font-size: var(--fs-story); font-weight: 400; font-variation-settings: normal; letter-spacing: 0; line-height: 1.45; text-wrap: pretty; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7); }
.title-panel .credits { margin-top: 0; padding-bottom: 4px; }
.title-panel .credits p { display: block; }
.title-panel .credits p + p { margin-top: 5px; }
.title-panel .credits p + p::before { content: none; }
.byline strong { font-family: var(--story); font-weight: 600; font-size: var(--fs-body); font-variation-settings: var(--fv-story); }
.byline .byline-note { display: block; }

/* ---------- reduced motion: every move is a cut, at once (L-10) ---------- */
html.reduced *, html.reduced *::before, html.reduced *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
html.reduced .choice:hover { transform: rotate(var(--tilt, 0deg)); }
html.reduced .slip { animation: none !important; }

/* where the browser's own bars come and go (a phone), the window's height is the part that shows */
@supports (height: 100dvh) {
  .panel { max-height: calc(100dvh - var(--bar-h) - 24px); }
  .panel.center { max-height: none; }
  .slip { max-height: calc(100dvh - 24px); }
}

/* ---------- a phone held sideways ("side": the held items of 2026-11-15, D-135, seat W3; js/main.js layout) ----------
   A window under 560 px high and much wider than high (844 x 390, 932 x 430, 667 x 375). The words had covered nearly
   the whole picture, and the cards hid in an inner panel that gave no sign that it scrolled.
   - A stop: the whole picture at the window's height, at its left; the stop's words in a column at the right, on the
     table's own dark rising from the column's foot and its left edge, so most of the picture stays clear. A witness's
     caption stands by the picture's top left, under the bar. The column scrolls when its words are longer than the
     window: a soft fade and a small mark at its foot say so ("more-below", js/main.js), and the step's "Go on" keeps to
     its foot. Its sizes are the scale's short-window sizes (as a short laptop window's, "fill"), never a caption under
     18 px.
   - A film and the title: the picture across the window's width; a film's caption over its foot, as a film's own, with
     its buttons beside it; the title's words where they always stand. A passage covers the window (css/passages.css). */
html.side { --side-w: clamp(280px, 40vw, 400px); --gutter: 20px; }
html.side .panel:not(.title-panel) { --fs-display: 2rem; --fs-title: 1.5rem; --fs-lede: 1.12rem; --fs-story: 1rem; --fs-witness: 1.02rem; --fs-card: 1.1rem; }
html.side .panel:not(.center):not(.film-panel):not(.passage-panel):not(.title-panel) { left: auto; right: 0; width: var(--side-w); max-height: calc(100vh - var(--bar-h) - 4px); padding: 12px max(14px, env(safe-area-inset-right, 0px)) 12px 16px; overscroll-behavior: contain; scroll-padding-bottom: 72px; }
html.side .panel:not(.center):not(.film-panel):not(.passage-panel):not(.title-panel)::before { left: auto; right: 0; width: calc(var(--side-w) + 44px); height: calc(var(--panel-shade, 46vh) + 52px); -webkit-mask-image: linear-gradient(to right, transparent 0, #000 44px); mask-image: linear-gradient(to right, transparent 0, #000 44px); }
html.side .panel-main { gap: 10px; }
html.side .panel-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
html.side .panel-side { align-items: stretch; gap: 10px; }
html.side .long-btn { align-self: flex-start; }
html.side .panel-side .dials-board { align-items: stretch; }
html.side .panel-side .dials { justify-content: space-between; gap: 5px; }
html.side .panel-side .dial { width: auto; flex: 1 1 0; min-width: 0; padding-left: 4px; padding-right: 4px; }
html.side .panel-side .dial .dw { font-size: 0.82rem; }
html.side .credits { margin-top: 10px; }
html.side .witness-line { padding: 8px 12px 9px; }
html.side .entry-line { padding: 3px 9px; font-size: var(--fs-note); line-height: 1.3; }
html.side .choices { grid-template-columns: minmax(0, 1fr); gap: 10px; }
html.side .choice { padding: 10px 13px 11px 15px; gap: 4px; }
html.side .choice .cost, html.side .choice.closed .closed-line { font-size: 0.8rem; line-height: 1.34; } /* 14.4 px: the cards' small print in the shortest windows, as a short laptop window's */
html.side .choice.closed .closed-line { margin-top: 2px; padding-top: 6px; }
html.side .moved li, html.side .moved-wrap > p:not(.kicker) { line-height: 1.32; }
html.side .terms-here .term { min-height: 40px; }
/* the step's way on keeps to the column's foot while its words are longer than the window (as on a phone, SC-03) */
html.side .panel:not(.center):not(.film-panel):not(.passage-panel):not(.title-panel) .row:has(> [data-act="next"]) { position: sticky; bottom: -12px; z-index: 3; margin: 0 -14px -12px -16px; padding: 12px 14px 12px 16px; background: linear-gradient(to bottom, rgba(var(--chrome-rgb), 0) 0, rgba(var(--chrome-rgb), 0.93) 12px, rgba(var(--chrome-rgb), 0.97) 100%); }
/* a witness's caption by its screen: smaller, at the picture's top left under the bar (js/stops/fork.js) */
html.side .witness-cap { max-width: max(30%, 256px) !important; padding: 7px 10px 8px; }
html.side .witness-cap .who { margin-bottom: 2px; font-size: var(--fs-note); }
html.side .witness-cap .text { font-size: 1rem; line-height: 1.32; } /* 18 px: the floor for a caption on a phone */
/* So far's cards, a dark note, the recap: the whole window's width */
html.side .panel.center { left: var(--gutter); right: var(--gutter); }
/* a film: across the window's width; its caption over the picture's foot with its buttons beside it (under it in a
   narrower window), the year under the bar. Each piece carries its own ground, so that while the film is left alone
   (item 7) only the caption's own soft band, the year and "A scenario" lie over the picture, not one tall shade */
html.side .film-panel { padding-top: 34px; }
html.side .film-panel::before { display: none; }
html.side .film-panel .panel-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "entry entry" "line controls" "line ticks" "foot foot"; column-gap: 20px; row-gap: 6px; align-items: end; }
html.side .film-panel .panel-main > .entry-line { grid-area: entry; justify-self: start; }
html.side .film-panel .panel-main > #beat-line { grid-area: line; position: relative; z-index: 0; }
html.side .film-panel .panel-main > #beat-line::before { content: ''; position: absolute; z-index: -1; left: -20px; right: -64px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 72px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 72px), transparent); top: -36px; bottom: -14px; pointer-events: none; background: linear-gradient(to bottom, rgba(var(--chrome-rgb), 0) 0, rgba(var(--chrome-rgb), 0.62) 34px, rgba(var(--chrome-rgb), 0.66) calc(100% - 14px), rgba(var(--chrome-rgb), 0) 100%); }
html.side .film-panel .panel-main > .film-controls { grid-area: controls; justify-content: flex-end; gap: 6px; flex-wrap: nowrap; }
html.side .film-panel .panel-main > .film-progress { grid-area: ticks; margin-left: 0; justify-content: flex-end; }
html.side .film-panel .panel-main > .film-foot { grid-area: foot; margin-top: 4px; }
html.side .film-panel .film-controls .btn { min-height: 40px; padding: 4px 12px; }
html.side .film-panel .film-progress .tick { flex-basis: 12px; width: 12px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35); }
html.side .film-panel .film-progress .count { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.6); }
html.side .film-foot .credits { padding: 5px 10px 6px; border-radius: 3px; background: rgba(var(--chrome-rgb), 0.8); }
html.side .film-label { left: 10px; top: 5px; padding: 0 5px; margin-left: -5px; border-radius: 3px; background: rgba(var(--chrome-rgb), 0.62); }
html.side .film-date { top: calc(var(--bar-h) + 6px - var(--scene-y)); font-size: 24px; }
/* (a narrower window: the caption across the width, the buttons in one row under it with the progress beside them) */
@media (max-width: 799.98px) {
  html.side .film-panel .panel-main { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "entry entry" "line line" "controls ticks" "foot foot"; }
  html.side .film-panel .panel-main > .film-controls { justify-content: flex-start; }
}
/* the title on a phone held sideways: its doors keep to the panel's foot while its words are longer than the window
   (667 x 375), so the first door is always in view; the byline and the small print follow under them */
html.side .title-panel .title-doors { position: sticky; bottom: -12px; z-index: 3; margin: 0 calc(-1 * var(--gutter)) -12px; padding: 10px var(--gutter) 12px; background: linear-gradient(to bottom, rgba(var(--chrome-rgb), 0) 0, rgba(var(--chrome-rgb), 0.9) 12px, rgba(var(--chrome-rgb), 0.95) 100%); }
/* the seat and the stop's count have no room in a sideways phone's bar (they took three lines over the picture at
   932 x 430): the bar keeps its date, and the column shows the place line on the step that opens with the stop's
   title, as a phone does (the date is the bar's) */
html.side .where .seat, html.side .where .sep, html.side .where .stop-count { display: none; }
html.side .panel-main:has(> .stop-title) > .where-inline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0; }
html.side .panel-main > .where-inline .date { display: none; }
/* the bar on a phone held sideways under 800 px wide: the tabs take the phone's short words ("Map") and the date a
   smaller clock, so the date never runs under the tabs; under 600 px the clock gives way, and the place line shows
   with the stop's words, as on a phone */
@media (max-width: 799.98px) {
  html.side .tool .t-more { display: none; }
  html.side .tool .t-word { display: inline-block; }
  html.side .tool .t-word::first-letter { text-transform: uppercase; }
  html.side .tool:not(.toggle) { padding-left: 10px; padding-right: 10px; }
  html.side .where .date { padding: 4px 8px 3px; font-size: 0.72rem; letter-spacing: 0.06em; }
}
@media (max-width: 599.98px) {
  html.side .bar .where { display: none; }
  html.side .panel-main > .where-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; }
  html.side .panel-main > .where-inline .date { display: inline-block; }
}
/* any panel longer than its box (a phone held sideways, a short window): a soft fade and a small mark at its foot while
   words are under it (js/main.js "more-below"); the step's own way on stands over it */
html.wide .panel.more-below::after { content: ''; position: sticky; bottom: -12px; z-index: 1; flex: none; display: block; height: 40px; margin-top: -40px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='12' viewBox='0 0 22 12'%3E%3Cpath d='M2 2l9 8 9-8' fill='none' stroke='%23f4ece0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat 50% calc(100% - 8px) / 22px 12px, linear-gradient(to bottom, rgba(var(--chrome-rgb), 0), rgba(var(--chrome-rgb), 0.9) 75%); }

@supports (height: 100dvh) {
  html.side .panel:not(.center):not(.film-panel):not(.passage-panel):not(.title-panel) { max-height: calc(100dvh - var(--bar-h) - 4px); }
}

/* ---------- an upright phone's question, every card in its first window (the held items of 2026-11-15, D-135, seat
   W3; the site build's item 5): the call's question with its gate closed (its closed card is the longest) ended its third
   card 40 px under the fold at 390 x 844. No word is smaller: the place line takes two rows instead of three (the stop's
   count beside the date, the seat under them), and the cards keep a little less air between and inside them ---------- */
html.narrow .where-inline .date { order: 0; }
html.narrow .where-inline .stop-count { order: 1; }
html.narrow .where-inline .seat { order: 2; flex-basis: 100%; }
html.narrow .choices { gap: 10px; }
html.narrow .choice { padding: 11px 14px 12px 16px; gap: 4px; }
html.narrow .choice .cost { line-height: 1.36; }
html.narrow .choice.closed .closed-line { margin-top: 2px; padding-top: 6px; line-height: 1.34; }
