/* Tokens for the storyboard frames. One declaration of every value.
   Block A: tokens named in design/DESIGN.md, value copied from the section cited.
   Block B: values DESIGN.md states in a table or sentence but never names as a token.
   Block C: values DESIGN.md does not hold at all (render needs). Each one is a token gap, listed in check-summary.txt.
   The check script reads the "/* A", "/* B" and "/* C" markers below. */
:root {
  /* A 3.1 colour */
  --color-night: #0B1030; --color-surface: #151C45; --color-surface-2: #1C2558; --color-primary: #4B45E6;
  --color-blue: #3F7BF2; --color-sky: #6DBBFA; --color-cyan: #5DF2E2; --color-mint: #52D6A6; --color-coral: #FF8F94;
  --color-gold: #FFD84A; --color-nod-pink: #F78FC4; --color-text: #F2F3FB; --color-text-muted: #B4BAE0;
  --color-text-faint: #8A92C4; --color-ink: #0B1030; --color-label-ink-2: #3A4170; --color-white: #FFFFFF;
  --color-deep: #06091F; --color-spam: #1B1740; --color-coral-deep: #5A1E2E; --color-mint-deep: #0F3F33;
  /* A 3.1 gradients */
  --grad-hero: linear-gradient(160deg, var(--color-primary) 0%, var(--color-blue) 55%, var(--color-cyan) 100%);
  --grad-night: linear-gradient(180deg, var(--color-night) 0%, var(--color-surface) 100%);
  --grad-coral: linear-gradient(180deg, var(--color-night) 0%, var(--color-coral-deep) 100%);
  --grad-mint: linear-gradient(180deg, var(--color-night) 0%, var(--color-mint-deep) 100%);
  --grad-spam: linear-gradient(180deg, var(--color-spam) 0%, var(--color-night) 100%);
  /* A 3.2 tier surfaces, epic */
  --tier-epic-frame-light: #A6F5D8; --tier-epic-frame-mid: #2FB386; --tier-epic-frame-dark: #17765A;
  --tier-epic-face: #0F2236; --tier-epic-rule: #0C4D3B; --tier-epic-glow: #52D6A6; --tier-epic-pip: #8EF2CD;
  /* A 4 type */
  --font-display: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --text-hero-min: 88px; --text-hero-max: 128px; --hero-vw: 28vw;
  --text-hero: clamp(var(--text-hero-min), var(--hero-vw), var(--text-hero-max));
  --text-hero-2: clamp(calc(var(--text-hero-min) * 0.64), calc(var(--hero-vw) * 0.64), calc(var(--text-hero-max) * 0.64));
  --text-h1: 40px; --text-h2: 28px; --text-lead: 20px; --text-body: 16px; --text-small: 13px; --text-micro: 12px;
  --leading-tight: 0.95; --leading-head: 1.1; --leading-body: 1.4;
  --tracking-hero: -0.02em; --tracking-body: 0;
  --weight-display: 600; --weight-head: 500; --weight-body: 400; --weight-label: 500;
  /* A 4.2 card units. --u is 1 percent of the card width (cqw inside the card box) */
  --u: 1cqw;
  --card-persona-size: calc(var(--u) * 8); --card-persona-weight: 700; --card-persona-tracking: -0.015em; --card-persona-leading: 1.02;
  --card-line-size: calc(var(--u) * 5.2); --card-line-weight: 500; --card-line-leading: 1.3;
  --card-meta-size: calc(var(--u) * 5.2); --card-meta-weight: 600;
  --label-text-size: 5.2; --label-text-weight: 700;
  /* A 5.1 shape and spacing */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --gutter: 16px; --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 24px; --radius-pill: 999px; --radius-blockie: 12px;
  --border-w: 1px; --tap-min: 44px; --focus-w: 2px; --focus-offset: 2px; --stroke-chart: 3px; --path-len: 1; --stroke-icon: 2px;
  --blockie: 64px; --blockie-cols: 8; --stamp-h: 28px; --chart-h: 96px; --bars-track-h: var(--space-2); --bars-label-w: 48px;
  --overlay-soft: rgba(255,255,255,0.06); --overlay-mid: rgba(255,255,255,0.14);
  --penguin-row: 72px; --penguin-hero: 160px;
  /* A 5.2 card geometry (card units) */
  --card-ratio: 5 / 7; --card-radius: calc(var(--u) * 5.2); --card-face-inset: calc(var(--u) * 4.4);
  --card-face-pad-x: calc(var(--u) * 3.2); --card-face-pad-y: calc(var(--u) * 2.4);
  --card-topbar-h: calc(var(--u) * 10); --card-gem: calc(var(--u) * 8.4);
  --card-window-w: calc(var(--u) * 84.8); --card-window-h: calc(var(--u) * 63.6); --card-window-radius: calc(var(--u) * 2.2);
  --card-foot-h: calc(var(--u) * 8.6);
  --slab-w-k: 1.09; --slab-radius-k: 0.07; --label-h-k: 0.13;
  /* A 5.1 round 2 additions: progress bar, controls, plates, frame, fit width */
  --bar-h: 3px; --bar-count: 10; --bar-top: var(--space-4); --bar-gap: var(--space-1);
  --ctrl-size: var(--tap-min); --ctrl-icon: var(--icon-grid);
  /* A round 3 contrast fixes, measured on pixels (check-summary section 9): bar fill, ghost border, focus ring on the hero gradient */
  --bar-fill: var(--color-sky); --border-ghost: 1px solid var(--color-text-faint); --focus-on-hero: var(--color-white);
  /* the sound button's plate: the overlay-mid wash laid on a night plate, so the glyph reads over the card's lit frame on S12 */
  --plate-mute: color-mix(in srgb, var(--color-white) 14%, var(--plate-night));
  --plate-night: var(--color-night); --screen-content-w: calc(var(--frame-w) - 2 * var(--gutter));
  --frame-w: 390px; --frame-h: 844px;
  /* A bold round (2026-11-15): narrator waist crop (DESIGN 9.1), live viewport (5.1), S9 and S10 card crop (10.6), follower landing card (10.8), stamp path (7.3) */
  --penguin-crop: 120px; --vw-full: 100vw; --vh-full: 100vh;
  --s9-crop-min: 332px; --s9-chrome-h: 300px; --s9-crop-h-k: 1.3672; --s9-crop-ar-k: 0.7314; --s9-crop-img-k: 1.6875; --s9-crop-x-k: -0.34375; --s9-crop-y-k: -0.05625;
  --s9-crop-w: clamp(var(--s9-crop-min), min(var(--vw-full), calc((var(--vh-full) - var(--s9-chrome-h)) * var(--s9-crop-ar-k))), var(--vw-full));
  --s0f-crop-max: 250px; --s0f-chrome-h: 420px; --s0f-crop-w: min(var(--s0f-crop-max), calc((var(--vh-full) - var(--s0f-chrome-h)) * var(--s9-crop-ar-k))); --stamp-penguin-x: 75%;
  /* A 10.2 motion, the press scale used on the state sheet */
  --scale-press: 0.97;
  /* A 3.5 and 10.2 primary pill glow: a static white edge for the 3 to 1 boundary, a cyan halo that breathes (opacity only) between low and high */
  --glow-edge-w: 2px; --glow-primary-edge: var(--color-white); --glow-primary-halo: 0 0 20px 3px var(--color-cyan);
  --glow-primary-low: 0.05; --glow-primary-mid: 0.5; --glow-primary-high: 0.9;
  --dur-pulse: 1800ms; --ease-pulse: ease-in-out;
  /* A 10.2 v5 timing tokens (design doc section 12, added 2026-11-15): reading hold, reels, drumrolls, chart draw, card flip, tap lock. Order: roll > roll-chain > roll-token, drum-pnl > drum */
  --hold-read-word: 250ms; --dur-roll: 1800ms; --dur-roll-chain: 1500ms; --dur-roll-token: 1200ms; --ease-roll: cubic-bezier(0.15, 0.85, 0.25, 1);
  --dur-drum: 900ms; --dur-drum-pnl: 1500ms; --dur-draw: 900ms; --dur-flip: 600ms; --lock-tap: 350ms;
  /* A 10.2 and 10.9 waiting spinner: one turn, its easing, and its lowest opacity under reduced motion */
  --dur-spin: 800ms; --ease-spin: linear; --spin-low: 0.4;
  /* A 10.9 state looks (2026-11-15): hover and press wash strengths (the wash is the control's own ink colour), and the one disabled look for every pill */
  --state-hover-wash: 0.12; --state-press-wash: 0.2;
  --state-disabled-fill: var(--color-surface-2); --state-disabled-ink: var(--color-text-faint); --state-disabled-border: 1px dashed var(--color-text-faint);
  --state-disabled-fill-on-hero: var(--plate-night); --state-disabled-border-on-hero: 1px dashed var(--color-white);
  /* A 16 v5 looks (2026-11-15): S0 title size, logo tiles and the letter on a fallback tile, the widest S9 bubble. No frame draws them yet */
  --text-title: 48px; --logo-tile: 64px; --logo-tile-sm: 28px; --logo-letter-k: 0.5; --bubble-max-w: 80%;
  /* A 5.1 storyboard page only: sheet width and its row label column */
  --content-w: 1200px; --label-w: 120px;
  /* A 10.4 elevation */
  --shadow-card: 0 0 0 1px rgba(255,255,255,0.06), 0 12px 32px rgba(3,6,24,0.55);
  --shadow-pill: 0 6px 20px rgba(75,69,230,0.35);
  --border-hair: 1px solid rgba(255,255,255,0.08);

  /* B values in DESIGN.md with no token name. 4.2 minimum font sizes, 2 and 5.2 sizes and stage geometry, 7.3 stamp inset, 8.3 pip size */
  --out-sq: 1080px; --out-wide-w: 1600px; --out-wide-h: 900px; --out-link-w: 1200px; --out-link-h: 600px;
  --min-font-wide: 41px; --min-font-link: 31px; --min-font-sq: 28px;
  --sq-cw: 540px; --sq-slab-top: 20px; --sq-ped-w: 720px; --sq-ped-h: 104px; --sq-ped-top: 880px; --sq-credit-bottom: 20px; --sq-credit-text: 28px;
  --wide-cw: 450px; --wide-slab-left: 150px; --wide-slab-top: 24px; --wide-ped-w: 600px; --wide-ped-h: 76px; --wide-ped-top: 756px; --wide-ped-left: 95px;
  --wide-words-left: 820px; --wide-words-w: 680px; --wide-words-top: 120px; --wide-credit-top: 848px; --wide-credit-h: 44px; --wide-credit-text: 41px;
  --link-cw: 290px; --link-slab-left: 100px; --link-slab-top: 16px; --link-ped-w: 430px; --link-ped-h: 60px; --link-ped-left: 43px; --link-ped-top: 486px;
  --link-words-left: 560px; --link-words-w: 580px; --link-words-top: 70px; --link-credit-top: 562px; --link-credit-h: 34px; --link-credit-text: 31px;
  --stamp-inset: calc(var(--u) * 1.4); --pip: calc(var(--u) * 3.4); --icon-grid: 24px; --rotate-diamond: 45deg;

  /* C values DESIGN.md does not hold. Token gaps. */
  --icon-hero: 48px; --em: 1em; --measure: 65ch;
  --label-radius-k: 0.02; --label-pad-k: 0.036; --slab-glow-k: 0.09; --label-h-sq-k: 1.3;
  --angle-frame: 150deg; --angle-holo: 62deg; --angle-slab: 160deg;
  --pill-h: 48px;
  --label-gap-k: 0.04; --slab-pad-k: 0.045;
  --shadow-glow-epic: 0 0 48px color-mix(in srgb, var(--tier-epic-glow) 35%, transparent);
  --glow-primary: color-mix(in srgb, var(--color-primary) 45%, transparent);
  /* C the glow that lands behind the slab after the flip, in the tier's own colour: the blur and the share of --shadow-glow-epic */
  --glow-tier-blur: 48px; --glow-tier-share: 35%;
  /* C looping background video (Gabe's v3 feedback, 2026-11-17). DESIGN 9.2 keeps every motion finite, and this one layer loops at his ask:
     dim, slow, a still poster under reduced motion, paused in a hidden tab. --bg-video-opacity is how much of the video shows over the night page.
     A --veil-* share is how much of a screen's own background (DESIGN 10.1) covers the video, so the screen keeps its meaning and its text keeps 4.5 to 1.
     Night and surface screens take --veil-night. The spam, coral and mint screens take --veil-tint, because coral and mint text need a darker ground.
     The card screens take --veil-card, the calmest, so the card and its tier glow stay the high point. S0 takes --veil-hero. */
  --bg-video-opacity: 1; --veil-night: 60%; --veil-tint: 78%; --veil-card: 82%; --veil-hero: 70%;
  --veil-night-c: color-mix(in srgb, var(--color-night) var(--veil-night), transparent);
  --veil-surface-c: color-mix(in srgb, var(--color-surface) var(--veil-night), transparent);
  --veil-deep-c: color-mix(in srgb, var(--color-deep) var(--veil-night), transparent);
  --veil-card-c: color-mix(in srgb, var(--color-night) var(--veil-card), transparent);
  --veil-night-tint-c: color-mix(in srgb, var(--color-night) var(--veil-tint), transparent);
  --veil-spam-c: color-mix(in srgb, var(--color-spam) var(--veil-tint), transparent);
  --veil-coral-c: color-mix(in srgb, var(--color-coral-deep) var(--veil-tint), transparent);
  --veil-mint-c: color-mix(in srgb, var(--color-mint-deep) var(--veil-tint), transparent);
  --veil-grad-hero: linear-gradient(160deg, color-mix(in srgb, var(--color-primary) var(--veil-hero), transparent) 0%, color-mix(in srgb, var(--color-blue) var(--veil-hero), transparent) 55%, color-mix(in srgb, var(--color-cyan) var(--veil-hero), transparent) 100%);
  --veil-grad-night: linear-gradient(180deg, var(--veil-night-c) 0%, var(--veil-surface-c) 100%);
  --veil-grad-coral: linear-gradient(180deg, var(--veil-night-tint-c) 0%, var(--veil-coral-c) 100%);
  --veil-grad-mint: linear-gradient(180deg, var(--veil-night-tint-c) 0%, var(--veil-mint-c) 100%);
  --veil-grad-spam: linear-gradient(180deg, var(--veil-spam-c) 0%, var(--veil-night-tint-c) 100%);
  --veil-tint-coral: linear-gradient(180deg, transparent 0%, var(--veil-coral-c) 100%);
  --veil-tint-mint: linear-gradient(180deg, transparent 0%, var(--veil-mint-c) 100%);
}
