/* Self-hosted SIL Open Font License faces, written by tools/fetch_fonts.py from src/fonts/fonts.json.
   Each family's licence ships beside its files. Edit fonts.json and run the tool again; do not edit here. */
/* Bungee, normal 400, latin */
@font-face {
  font-family: "Bungee";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/bungee/bungee-normal-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Bungee Shade, normal 400, latin */
@font-face {
  font-family: "Bungee Shade";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/bungee-shade/bungee-shade-normal-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Rubik, normal 400-800, latin-ext */
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/rubik/rubik-normal-400-800-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Rubik, normal 400-800, latin */
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/rubik/rubik-normal-400-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* VT323, normal 400, latin */
@font-face {
  font-family: "VT323";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/vt323/vt323-normal-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- base.css ---- */
/* Dead Weight: tokens, type and shared components (DESIGN §7). */
:root {
  --night: #0f0d0c;
  --night-2: #1a1513;
  --night-3: #2a2220;
  --paper: #f1e8da;
  --paper-dim: #c9bfb1;
  --amber: #f0a24f;
  --pink: #ff5aa5;
  --green: #66e389;
  --red: #e65a45;
  --violet: #c9a2ff;
  --steel: #9fd3e6;
  --sand: #e8cf9a;
  --accent: var(--pink);
  --mast-h: 56px;
  --cap-h: 168px;
  --font-sign: "Bungee", "Impact", "Arial Black", sans-serif;
  --font-body: "Rubik", "Segoe UI", system-ui, sans-serif;
  --font-crt: "VT323", "Consolas", monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
html[data-mode="anime"] {
  --night: #000;
  --night-2: #0b0b0b;
  --night-3: #1c1c1c;
  --paper: #fff;
  --paper-dim: #d8d8d8;
  --pink: #fff;
  --green: #fff;
  --violet: #fff;
  --steel: #fff;
  --sand: #fff;
  --accent: var(--amber);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font: 400 18px/1.55 var(--font-body);
  overflow-x: clip;
  transition: background-color .25s linear;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: var(--amber); text-underline-offset: .18em; }
a:hover { color: var(--paper); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-sign); font-weight: 400; line-height: 1.05; letter-spacing: .01em; margin: 0; }
p { margin: 0 0 .8em; }
.sr, .skip:not(:focus) {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--paper); color: var(--night); padding: 12px 16px; font-weight: 800; }
[hidden] { display: none !important; }

/* ---------------- the neon wordmark ---------------- */
.wordmark {
  font-family: var(--font-sign);
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 2px var(--pink);
  /* the glow follows the tube (drop-shadow reads the stroke's alpha; text-shadow would fill the face) */
  filter: drop-shadow(0 0 3px rgba(255, 90, 165, .9)) drop-shadow(0 0 12px rgba(255, 90, 165, .55));
  white-space: nowrap;
}
html[data-mode="anime"] .wordmark { -webkit-text-stroke-color: #fff; filter: none; }
.wordmark--small { font-size: 20px; -webkit-text-stroke-width: 1.3px; letter-spacing: .02em; }
.wordmark--hero { font-size: clamp(56px, 9.5vw, 150px); line-height: .92; -webkit-text-stroke-width: 2.5px; }
.wordmark--hero .wordmark__w { display: block; }
.wordmark--end { font-family: "Bungee Shade", var(--font-sign); color: var(--pink); -webkit-text-stroke: 0; font-size: clamp(48px, 9vw, 132px); }
.js .wordmark--hero { animation: tube-on 1100ms steps(1, end) 250ms both; }
@keyframes tube-on {
  0% { -webkit-text-stroke-color: rgba(255, 90, 165, .22); filter: none; }
  35% { -webkit-text-stroke-color: rgba(255, 90, 165, .55); filter: drop-shadow(0 0 3px rgba(255, 90, 165, .35)); }
  100% { -webkit-text-stroke-color: var(--pink); filter: drop-shadow(0 0 3px rgba(255, 90, 165, .9)) drop-shadow(0 0 12px rgba(255, 90, 165, .55)); }
}

/* ---------------- buttons (sign lettering, wobbly frames) ---------------- */
.btn {
  --b: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 44px; padding: 10px 18px;
  font: 400 15px/1 var(--font-sign); letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  color: var(--paper); background: rgba(15, 13, 12, .62);
  border: 2px solid var(--b); border-radius: 6px;
  cursor: pointer; position: relative;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--paper); color: var(--night); }
.btn--primary { --b: var(--pink); color: var(--night); background: var(--pink); }
.btn--primary:hover { background: var(--paper); border-color: var(--paper); }
.btn[aria-pressed="true"] { --b: var(--amber); background: var(--amber); color: var(--night); }
.btn--sound .btn__on { display: none; }
.btn--sound[aria-pressed="true"] .btn__on { display: inline; }
.btn--sound[aria-pressed="true"] .btn__off { display: none; }
.boil { filter: url(#boil-1); }
.js .boil-anim { animation: boil 375ms steps(1, end) infinite; }
@keyframes boil { 0% { filter: url(#boil-1); } 33% { filter: url(#boil-2); } 66% { filter: url(#boil-3); } }

/* ---------------- masthead ---------------- */
.mast {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--mast-h);
  display: flex; align-items: center; gap: 16px; padding: 0 16px 0 18px;
  background: linear-gradient(to bottom, rgba(15, 13, 12, .92), rgba(15, 13, 12, .55) 70%, rgba(15, 13, 12, 0));
}
html[data-mode="anime"] .mast { background: linear-gradient(to bottom, #000, rgba(0, 0, 0, .6) 70%, transparent); }
.mast__mark { text-decoration: none; display: inline-flex; padding: 8px 0; }
.mast__share { margin: 0 0 0 auto; font: 400 22px/1 var(--font-crt); color: var(--green); white-space: nowrap; }
.mast__share-label { text-transform: uppercase; color: var(--paper-dim); font-size: 18px; }
.mast__tools { display: flex; gap: 8px; margin-left: auto; }
.mast__share:not([hidden]) + .mast__tools { margin-left: 12px; }
.mast__tools .btn { min-height: 40px; padding: 8px 14px; font-size: 13px; }
.mast__nav ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.mast__nav a { font: 400 13px/1 var(--font-sign); letter-spacing: .05em; text-transform: uppercase; color: var(--paper); text-decoration: none; padding: 12px 2px; display: inline-block; }
.mast__nav a:hover, .mast__nav a[aria-current="page"] { color: var(--amber); }
.js .mast__nav { display: none; }
.js .mast__nav.is-open {
  display: block; position: fixed; top: var(--mast-h); right: 12px; z-index: 41;
  background: var(--night-2); border: 2px solid var(--paper); border-radius: 8px; padding: 10px 18px; min-width: 240px;
}
.js .mast__nav.is-open ul { flex-direction: column; gap: 0; }
.js .mast__nav.is-open a { display: block; padding: 12px 0; font-size: 15px; }
.mast__nav .menu-extra { border-top: 1px solid var(--night-3); margin-top: 6px; padding-top: 6px; }
.mast__nav .menu-extra button { all: unset; cursor: pointer; display: block; padding: 12px 0; font: 400 15px/1 var(--font-sign); text-transform: uppercase; letter-spacing: .05em; color: var(--amber); }
.mast__nav .menu-extra button:focus-visible { outline: 3px solid var(--amber); }

/* ---------------- captions (shared look) ---------------- */
.line, .cap { --who: var(--paper); }
[data-who="RAT"] { --who: var(--green); }
[data-who="MONGOOSE"] { --who: var(--amber); }
[data-who="GIRL"] { --who: var(--pink); }
[data-who="VAMPIRE"] { --who: var(--violet); }
[data-who="ROBOT"] { --who: var(--steel); }
[data-who="MANAGER"], [data-who="MARSH"] { --who: var(--sand); }
.who { color: var(--who); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.how { font-weight: 500; text-transform: none; color: var(--paper-dim); }
.line--house, .cap--house { font-weight: 600; letter-spacing: .06em; color: var(--paper-dim); text-transform: uppercase; }
.bleep { background: var(--paper); color: transparent; border-radius: 3px; padding: 0 .08em; user-select: none; }

/* ---------------- footer ---------------- */
.foot { position: relative; z-index: 3; background: var(--night); border-top: 1px solid var(--night-3); padding: 40px 18px 56px; text-align: center; color: var(--paper-dim); font-size: 15px; }
.foot__links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; padding: 0; margin: 14px 0 20px; }
.foot__links a { color: var(--paper); text-decoration: none; display: inline-block; padding: 10px 0; }
.foot__links a:hover { color: var(--amber); }
.foot__mark { display: flex; justify-content: center; }

/* ---------------- share ---------------- */
.share { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 26px 0 8px; }
.share__fallback { margin: 0; color: var(--paper-dim); font-size: 15px; }
.js .share__fallback { display: none; }
.share__status { flex-basis: 100%; text-align: center; margin: 0; min-height: 1.4em; color: var(--green); font: 400 20px/1 var(--font-crt); }

@media (max-width: 599px) {
  :root { --mast-h: 48px; --cap-h: 132px; }
  body { font-size: 17px; }
  .mast { padding: 0 10px 0 12px; gap: 8px; }
  .wordmark--small { font-size: 16px; }
  .mast__tools .btn { min-height: 44px; padding: 8px 10px; font-size: 12px; }
  .mast__share { font-size: 18px; }
  .mast__share-label { display: none; }
}

/* ---- film.css ---- */
/* The home page's film: the document layer and the stage (DESIGN §4). Live styles apply only under
   .is-live (set by the engine) or .live-pending (set by the head script, cleared after 4 s if the
   engine never boots). Everything else is the still storyboard (stills.css). */

.ticker { display: none; }
.stage { display: none; }

.is-live .stage, .live-pending .stage {
  display: block; position: fixed; inset: 0; z-index: 0; background: var(--night);
  transition: background-color .25s linear;
}
.stage__pic {
  position: absolute; left: 0; right: 0; top: var(--mast-h); bottom: var(--cap-h);
  overflow: hidden; display: grid; place-items: center;
}
.stage__poster, .stage__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: transparent;
}
.stage__video { opacity: 0; }
.stage__poster:not([src]) { visibility: hidden; }
.stage.has-frame .stage__video { opacity: 1; }
.stage.has-frame .stage__poster { visibility: hidden; }
.stage__grain {
  position: absolute; inset: -32px; pointer-events: none; opacity: .075; mix-blend-mode: overlay;
  background: url("/assets/media/img/fx/grain.png") repeat;
  animation: grain .5s steps(6, end) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 17% { transform: translate(-12px, 7px); } 33% { transform: translate(9px, -10px); }
  50% { transform: translate(-6px, -14px); } 67% { transform: translate(14px, 4px); } 83% { transform: translate(-15px, 11px); }
}
.stage__bars::before, .stage__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 0; background: #000; transition: height .35s var(--ease); z-index: 3;
}
.stage__bars::before { top: 0; }
.stage__bars::after { bottom: 0; }
html[data-mode="anime"] .stage__bars::before, html[data-mode="anime"] .stage__bars::after { height: 9%; }

/* caption band */
.stage__caps {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--cap-h);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 14px 16px 0;
}
.capbox { width: min(1040px, 100%); text-align: center; min-height: 3.2em; }
.cap {
  margin: 0; font: 500 clamp(19px, 1.85vw, 27px)/1.32 var(--font-body); color: var(--paper);
  text-wrap: balance; min-height: 0;
}
.cap:empty { display: none; }
.cap--extra { color: var(--paper-dim); font-size: .82em; margin-bottom: 4px; }
.cap.cap--house { font-size: clamp(15px, 1.2vw, 18px); font-weight: 600; letter-spacing: .07em; color: var(--paper-dim); }
.cap--extra.cap--house { font-size: clamp(13px, 1vw, 15px); }
.cap .who { margin-right: .35em; }
html[data-mode="anime"] .cap { font-weight: 800; color: #fff; text-shadow: 0 0 2px #000, 0 2px 0 #000, 0 -2px 0 #000, 2px 0 0 #000, -2px 0 0 #000, 0 0 10px #000; }
html[data-mode="anime"] .cap .who { color: var(--amber); }
.tick { width: min(1040px, 100%); height: 2px; margin-top: 10px; background: rgba(241, 232, 218, .08); }
.tick i { display: block; height: 100%; width: 0; background: var(--who, var(--paper)); }
.stage__hint {
  position: absolute; left: 0; right: 0; bottom: 12px; margin: 0; text-align: center;
  font: 600 13px/1.2 var(--font-body); letter-spacing: .08em; color: var(--paper-dim); text-transform: uppercase;
  opacity: 0; transition: opacity .3s;
}
.stage.is-held .stage__hint { opacity: .9; }
.stage__play {
  position: absolute; left: 50%; top: calc(var(--mast-h) + 50%); transform: translate(-50%, -50%);
  display: none; font: 400 16px/1 var(--font-sign); text-transform: uppercase; letter-spacing: .05em;
  padding: 16px 22px; background: var(--pink); color: var(--night); border: 0; border-radius: 8px; cursor: pointer;
}
.stage.is-blocked .stage__play { display: block; }

/* ticker: the chapter rail as a stock chart */
.is-live .ticker, .live-pending .ticker {
  display: block; position: fixed; z-index: 41; top: 8px; left: 50%; transform: translateX(-50%);
  width: min(460px, 38vw); height: 40px;
}
.ticker__chart { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ticker__chart .base { stroke: rgba(241, 232, 218, .14); stroke-width: 1.5; fill: none; stroke-dasharray: 2 4; }
.ticker__chart .seg { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ticker__chart .up { stroke: var(--green); }
.ticker__chart .down { stroke: var(--red); }
html[data-mode="anime"] .ticker__chart .up, html[data-mode="anime"] .ticker__chart .down { stroke: #fff; }
.ticker__chart .pt { fill: var(--night); stroke: rgba(241, 232, 218, .35); stroke-width: 1.2; }
.ticker__chart .pt.is-past { stroke: var(--paper); }
.ticker__chart .pt.is-current { fill: var(--amber); stroke: var(--amber); }
.ticker__list { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.ticker__list li { position: absolute; top: 0; width: 0; height: 100%; }
.ticker__list a {
  position: absolute; left: -22px; top: -2px; width: 44px; height: 44px; display: block; color: transparent; overflow: hidden; text-decoration: none;
}
.ticker__list a > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ticker__list a:hover, .ticker__list a:focus-visible { overflow: visible; }
.ticker__list a:hover > .ticker__t, .ticker__list a:focus-visible > .ticker__t {
  display: block; position: absolute; top: 46px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  width: auto; height: auto; overflow: visible; clip-path: none;
  font: 400 12px/1 var(--font-sign); letter-spacing: .05em; color: var(--night); background: var(--amber); padding: 6px 8px; border-radius: 4px;
}
.ticker__price {
  position: absolute; right: -8px; top: 50%; transform: translate(100%, -50%); margin: 0;
  font: 400 21px/1 var(--font-crt); color: var(--paper-dim); white-space: nowrap;
}
.ticker__price b { font-weight: 400; color: var(--green); }
.ticker__price.is-down b { color: var(--red); }
html[data-mode="anime"] .ticker__price b { color: #fff; }

/* the document layer in live mode */
.is-live .film, .live-pending .film { position: relative; z-index: 1; }
.is-live .opening, .live-pending .opening {
  min-height: 100svh; position: relative; padding: calc(var(--mast-h) + 6svh) 0 0 clamp(18px, 5vw, 80px);
  display: flex; flex-direction: column; justify-content: flex-start;
}
.is-live .opening::before, .live-pending .opening::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(15, 13, 12, .86) 0, rgba(15, 13, 12, .6) 32%, rgba(15, 13, 12, 0) 62%);
}
.is-live .opening__hero, .live-pending .opening__hero { display: none; }
.opening__lockup { max-width: 640px; }
.opening__kicker { font: 600 14px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 18px; }
.opening__tagline { font-size: clamp(18px, 1.5vw, 22px); max-width: 30em; margin-top: 20px; }
.opening__creators { margin-top: 10px; font-size: 14px; }
.opening__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.opening__scroll { font-size: 13px; position: absolute; bottom: calc(var(--cap-h) + 24px); left: clamp(18px, 5vw, 80px); margin: 0; opacity: 0; }
.is-live .opening__scroll { animation: appear .4s linear 9s forwards; }
@keyframes appear { to { opacity: .9; } }

.is-live .chapter, .live-pending .chapter { position: relative; }
.is-live .slate, .live-pending .slate {
  block-size: 40svh; margin: 0; padding: 0 0 0 clamp(18px, 5vw, 80px);
  position: relative;
}
/* the number and the title stick as one unit at the foot of the stage while the slate passes
   (two sticky siblings part company: the title rides up over the number) */
.slate__in { display: block; }
.is-live .slate__in, .live-pending .slate__in { position: sticky; top: calc(100svh - var(--cap-h) - 150px); }
.slate__n { display: block; font: 400 26px/1 var(--font-crt); color: var(--amber); }
.slate__t { display: block; font-size: clamp(30px, 4.2vw, 64px); color: var(--paper); text-shadow: 0 2px 18px rgba(0, 0, 0, .7); }

.is-live .cue, .live-pending .cue { block-size: calc(var(--band) * 1svh); position: relative; }
.is-live .cue__fig, .live-pending .cue__fig { margin: 0; }
.is-live .cue__fig picture, .live-pending .cue__fig picture { display: none; }
.is-live .cue__caps, .live-pending .cue__caps {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.is-live .cue__actions, .live-pending .cue__actions {
  position: sticky; top: calc(100svh - var(--cap-h) - 96px); z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 0 16px;
  opacity: 0; pointer-events: none; transition: opacity .2s linear;
}
.is-live .cue.is-current .cue__actions { opacity: 1; pointer-events: auto; }
.cue__actions:empty { display: none; }
.cue__actions .ask { display: none; }
.cue__actions .choices { display: flex; gap: 12px; margin: 0; }
.cue__actions .answer { margin: 0; flex-basis: 100%; text-align: center; font-size: 15px; }
.is-live .cue__actions .answer { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.btn--choice { min-width: 96px; --b: var(--green); color: var(--green); font-size: 17px; }
.btn--choice:hover { background: var(--green); color: var(--night); }
.btn--buy {
  --b: var(--green); font: 400 34px/1 var(--font-crt); letter-spacing: .12em; padding: 8px 34px; color: var(--green);
  background: rgba(0, 20, 6, .8); box-shadow: 0 0 18px rgba(102, 227, 137, .35);
}
.btn--buy:hover { background: var(--green); color: #031; }
.btn--clap { --b: var(--pink); color: var(--pink); }
.btn--clap:hover { background: var(--pink); color: var(--night); }
.btn--clap[disabled] { opacity: .7; cursor: default; background: transparent; color: var(--paper-dim); --b: var(--paper-dim); }
.btn--ghost-catch { --b: var(--green); color: var(--green); font-size: 13px; }
.btn--send { --b: var(--paper-dim); color: var(--paper); font-size: 13px; background: rgba(15, 13, 12, .78); }
.btn--send::before { content: "↗ "; }
.btn--send:hover { background: var(--paper); color: var(--night); }
.btn--trailer { --b: var(--pink); color: var(--pink); background: rgba(20, 4, 12, .8); }
.btn--trailer:hover { background: var(--pink); color: var(--night); }

.is-live .chapter__reel, .live-pending .chapter__reel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.is-live .chapter__reel .btn--scene:focus { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: auto; height: auto; clip-path: none; z-index: 50; }
.is-live .chapter__reel:focus-within { position: fixed; inset: auto auto calc(var(--cap-h) + 20px) 50%; transform: translateX(-50%); width: auto; height: auto; clip-path: none; overflow: visible; z-index: 50; }
.is-live .chapter__reel:focus-within video, .is-live .chapter__reel:focus-within .chapter__reel-note { display: none; }

.is-live .endcard, .live-pending .endcard { position: relative; z-index: 3; background: var(--night); }
.endcard {
  min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 80px 18px; text-align: center;
}
.endcard__coming { font-size: 15px; max-width: 42em; text-wrap: balance; }
.endcard__actions { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0; margin: 10px 0 0; }
.endcard__ghost { margin: 30px 0 0; font-size: 14px; opacity: .55; transition: opacity 1.2s; }
.endcard__ghost:hover { opacity: 0; }
.endcard__top a { font: 400 16px/1 var(--font-sign); text-transform: uppercase; letter-spacing: .05em; display: inline-block; padding: 12px; }

/* scene dialog */
.scene { border: 0; padding: 0; background: transparent; max-width: min(1280px, 96vw); width: 100%; color: var(--paper); }
.scene::backdrop { background: rgba(0, 0, 0, .86); }
.scene__inner { display: grid; gap: 10px; }
.scene__title { font-size: 22px; }
.scene__video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.scene form { display: flex; justify-content: flex-end; }

/* phone stage */
@media (max-width: 599px), (max-aspect-ratio: 4/5) {
  .stage__pic { bottom: var(--cap-h); }
  .stage__poster, .stage__video { object-fit: cover; }
  .is-live .ticker, .live-pending .ticker { top: auto; bottom: var(--cap-h); left: 0; transform: none; width: 100%; height: 6px; }
  .ticker__price, .ticker__list { display: none; }
  .ticker__chart .pt { display: none; }
  .capbox { min-height: 2.8em; }
  .cap { font-size: 18px; line-height: 1.3; }
  .tick { margin-top: 6px; }
  .is-live .opening, .live-pending .opening { padding: calc(var(--mast-h) + 3svh) 16px 0; }
  .is-live .opening::before { background: linear-gradient(180deg, rgba(15, 13, 12, .92) 0, rgba(15, 13, 12, .72) 55%, rgba(15, 13, 12, .2) 80%); }
  .opening__actions .btn { flex: 1 1 100%; min-height: 52px; }
  .opening__scroll { left: 16px; }
  .is-live .slate, .live-pending .slate { padding-left: 16px; }
  .is-live .cue__actions { top: calc(100svh - var(--cap-h) - 84px); }
}

/* the action dock: the actions of the moment, above the caption band (live mode only) */
.dock { display: none; }
.is-live .dock {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px;
  position: fixed; left: 0; right: 0; bottom: calc(var(--cap-h) + 14px); z-index: 6; pointer-events: none; padding: 0 16px;
}
.is-live .dock > * { pointer-events: auto; }
.is-live .dock .cue__actions { position: static; opacity: 1; pointer-events: auto; }
.is-live .dock .cue__actions .ask {
  display: block; flex-basis: 100%; margin: 0 0 4px; text-align: center;
  font: 400 clamp(20px, 2vw, 30px)/1.2 var(--font-crt); color: var(--green); text-shadow: 0 2px 10px #000;
}
.is-live .dock .cue__actions .ask .who { color: var(--green); }
.is-live .dock.is-echo .cue__actions .ask { visibility: hidden; }
/* clicks pass through the transparent document bands to the stage (ghost, money, play) */
.is-live .film { pointer-events: none; }
.is-live .film a, .is-live .film button, .is-live .film video, .is-live .opening__lockup, .is-live .endcard { pointer-events: auto; }
.is-live .stage__ghost { cursor: pointer; }
@media (max-width: 1199px) { .ticker__price { display: none; } }
@media (min-width: 600px) and (max-width: 1100px) { .is-live .ticker, .live-pending .ticker { width: min(360px, 34vw); } }

/* ---- fx.css ---- */
/* Effects that ride on the stage (DESIGN §5). All of them are still under reduced motion (the
   engine never starts them there; these rules are a second guard). */

/* the ghost in the margins */
.stage__ghost {
  position: absolute; top: 12%; left: 0; width: clamp(110px, 16%, 220px); height: auto; z-index: 2;
  opacity: 0; pointer-events: none; filter: drop-shadow(0 0 14px rgba(102, 227, 137, .65)) saturate(.6);
  transform: translateX(-120%);
}
.stage.ghost-go .stage__ghost { animation: ghost-glide 3.2s cubic-bezier(.45, .05, .55, .95) forwards; }
.stage.ghost-go.ghost-left .stage__ghost { animation-name: ghost-glide-rev; }
@keyframes ghost-glide {
  0% { opacity: 0; transform: translate(-120%, 0) rotate(-4deg); }
  15% { opacity: .38; }
  50% { transform: translate(calc(50vw - 50%), -14px) rotate(2deg); }
  85% { opacity: .38; }
  100% { opacity: 0; transform: translate(calc(100vw + 20%), 6px) rotate(-3deg); }
}
@keyframes ghost-glide-rev {
  0% { opacity: 0; transform: translate(calc(100vw + 20%), 0) scaleX(-1); }
  15% { opacity: .38; }
  50% { transform: translate(calc(50vw - 50%), 10px) scaleX(-1); }
  85% { opacity: .38; }
  100% { opacity: 0; transform: translate(-120%, -8px) scaleX(-1); }
}
.stage.ghost-still .stage__ghost { opacity: .22; transform: translate(10px, 0) scale(.7); transform-origin: top left; animation: none; }

/* money rain */
.stage__money { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.stage.money-on .stage__money { pointer-events: auto; cursor: pointer; }

/* drunk mode: the stage lists a degree, then rights itself */
.stage__pic { transition: transform .6s var(--ease); }
.stage.drunk .stage__pic { transform: rotate(1deg) translateY(4px); }

/* the stinger's shake */
.stage.shake .stage__pic { animation: shake .42s steps(2, end) 2; }
@keyframes shake { 0% { transform: translate(0, 0); } 25% { transform: translate(-6px, 3px); } 50% { transform: translate(5px, -4px); } 75% { transform: translate(-3px, -2px); } }

/* the crash: the ticker's segment drops; the share appears */
.mast__share.is-new { animation: share-in .5s var(--ease) both; }
@keyframes share-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .stage__grain, .js .wordmark--hero, .js .boil-anim { animation: none !important; }
  .stage.ghost-go .stage__ghost { animation: none; opacity: .22; transform: translate(10px, 0) scale(.7); }
  .stage.drunk .stage__pic, .stage.shake .stage__pic { transform: none; animation: none; }
}

/* ---- pages.css ---- */
/* Inner pages: /watch/, /trailer/, /cast/, /season/, 404. */
.page { max-width: 1200px; margin: 0 auto; padding: calc(var(--mast-h) + 40px) 18px 60px; }
.page .mast { position: sticky; }
body:not(.page-home) .mast { position: sticky; background: var(--night); }
.page__head { margin: 10px 0 30px; max-width: 46em; }
.page__kicker { font: 600 14px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; }
.page__title { font-size: clamp(34px, 5.4vw, 72px); color: var(--paper); }
.page__lede { font-size: clamp(18px, 1.5vw, 21px); margin-top: 18px; color: var(--paper-dim); }
.page__more { margin-top: 30px; }
.pending { padding: 60px 20px; background: var(--night-2); border-radius: 8px; text-align: center; color: var(--paper-dim); }

.watch .player { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; }
.chapters { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.chap {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 10px; align-items: baseline; width: 100%; min-height: 44px;
  padding: 10px 12px; border: 1px solid var(--night-3); border-radius: 6px; font: 500 16px/1.25 var(--font-body);
}
.chap:hover, .chap:focus-visible { border-color: var(--amber); }
.chap:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.chap__n { font: 400 22px/1 var(--font-crt); color: var(--amber); }
.chap.is-current { border-color: var(--pink); }

.cards { display: grid; gap: 26px; }
.card { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: 26px; align-items: start; background: var(--night-2); border-radius: 10px; padding: 18px; }
.card__pic img { width: 100%; height: auto; border-radius: 8px; }
.card__role { font: 600 13px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin: 6px 0 10px; }
.card__name { font-size: clamp(26px, 3vw, 40px); }
.card__desc { margin-top: 12px; }
.card__facts { margin: 14px 0; display: grid; gap: 8px; }
.card__facts div { display: grid; grid-template-columns: 76px 1fr; gap: 10px; }
.card__facts dt { font: 400 13px/1.6 var(--font-sign); text-transform: uppercase; letter-spacing: .05em; color: var(--paper-dim); }
.card__facts dd { margin: 0; }
.card__line { margin: 14px 0; padding: 0 0 0 16px; border-left: 3px solid var(--pink); font-size: 20px; font-weight: 500; }
.card__line p { margin: 0; }
.card__fly { font: 400 22px/1.2 var(--font-crt); color: var(--green); margin: 10px 0; }
.card__q { color: var(--paper-dim); }
#vampire .card__line { border-color: var(--violet); }
#mongoose .card__line { border-color: var(--amber); }
#robot .card__line { border-color: var(--steel); }
#rat .card__line { border-color: var(--green); }
#manager .card__line, #marsh .card__line { border-color: var(--sand); }

.eps { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; counter-reset: ep; }
.ep { display: grid; grid-template-columns: minmax(200px, 400px) 1fr; gap: 24px; align-items: start; }
.ep__pic img { width: 100%; height: auto; border-radius: 8px; background: var(--night-2); }
.ep__n { font: 400 22px/1 var(--font-crt); color: var(--amber); margin-bottom: 8px; }
.ep__title { font-size: clamp(24px, 2.6vw, 36px); margin-bottom: 10px; }

@media (max-width: 760px) {
  .card, .ep { grid-template-columns: 1fr; }
  .card__pic { max-width: 360px; }
}

/* a line page (SEND THE LINE) */
.line__title { font-size: clamp(30px, 4.6vw, 60px); max-width: 22em; }
.line__card { margin: 0 0 22px; }
.line__card img { width: 100%; max-width: 1200px; height: auto; border-radius: 8px; background: var(--night-2); }
.line__said { margin: 0 0 22px; padding: 4px 0 4px 18px; border-left: 3px solid var(--pink); font-size: clamp(19px, 1.8vw, 24px); }
.line__said p { margin: 0 0 .4em; }
.line__said .who { font-weight: 800; color: var(--who, var(--paper)); }
.line__watch { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.share__msg { margin: 0 0 12px; padding: 12px 14px; background: var(--night-2); border-radius: 6px; color: var(--paper-dim); font-size: 16px; }
.line__more { margin-top: 44px; }
.line__more-title { font-size: clamp(20px, 2.2vw, 28px); margin-bottom: 12px; }
.line__more ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.line__more a { display: inline-block; padding: 8px 0; min-height: 24px; }

/* the watch page's playlist */
.playlist__screen { position: relative; }
.playlist__slate {
  position: absolute; left: 0; right: 0; bottom: 14%; margin: 0; text-align: center; pointer-events: none;
  font: 400 clamp(22px, 3.6vw, 52px)/1.1 var(--font-sign); color: var(--paper); text-shadow: 0 2px 22px #000, 0 0 2px #000;
  opacity: 0; transition: opacity .3s linear;
}
.playlist__slate.is-on { opacity: 1; }
.playlist__now { margin: 12px 0 0; font: 400 22px/1.2 var(--font-crt); color: var(--green); }
.chap__t { flex: 1; }
.chap__d { font: 400 18px/1 var(--font-crt); color: var(--paper-dim); }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.plain__t { font-size: clamp(20px, 2.4vw, 30px); margin-bottom: 10px; }
.plain video { width: 100%; height: auto; border-radius: 6px; background: #000; }
.watch__meta { margin: 10px 0 0; color: var(--paper-dim); font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .playlist__slate { transition: none; } }

/* ---- stills.css ---- */
/* The still storyboard: the home page without JavaScript, under reduced motion, in "Read as stills",
   or on short screens (DESIGN §4.6). The document layer styled as a printed storyboard. */
html:not(.is-live):not(.live-pending) .page-home .mast { position: sticky; }
html:not(.is-live):not(.live-pending) .film { max-width: 1320px; margin: 0 auto; padding: 0 16px; }
html:not(.is-live):not(.live-pending) .opening { padding: 40px 0 30px; display: grid; gap: 18px; }
html:not(.is-live):not(.live-pending) .opening__hero img { width: 100%; height: auto; border-radius: 6px; }
html:not(.is-live):not(.live-pending) .opening__lockup { max-width: none; }
html:not(.is-live):not(.live-pending) .opening__scroll { display: none; }
html:not(.is-live):not(.live-pending) .chapter { padding: 46px 0 20px; border-top: 1px solid var(--night-3); }
html:not(.is-live):not(.live-pending) .slate { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
html:not(.is-live):not(.live-pending) .slate__in { display: contents; }
html:not(.is-live):not(.live-pending) .slate__n { font-size: 30px; }
html:not(.is-live):not(.live-pending) .slate__t { font-size: clamp(28px, 4vw, 52px); }
html:not(.is-live):not(.live-pending) .cue { margin: 0 0 30px; }
html:not(.is-live):not(.live-pending) .cue__fig { margin: 0; display: grid; gap: 10px; }
html:not(.is-live):not(.live-pending) .cue__fig img { width: 100%; max-width: 1280px; height: auto; border-radius: 6px; background: var(--night-2); }
html:not(.is-live):not(.live-pending) .cue__caps {
  background: var(--night-2); border-radius: 6px; padding: 14px 18px 4px; font-size: 18px; max-width: 1280px;
}
html:not(.is-live):not(.live-pending) .cue__caps .line { margin: 0 0 .7em; }
html:not(.is-live):not(.live-pending) .cue__actions { display: grid; gap: 10px; justify-items: start; margin: 14px 0 0; }
html:not(.is-live):not(.live-pending) .cue__actions .ask { margin: 0; }
html:not(.is-live):not(.live-pending) .cue__actions:empty { display: none; }
html:not(.is-live):not(.live-pending) .chapter__reel { margin: 18px 0 0; }
html:not(.is-live):not(.live-pending) .chapter__reel video { width: 100%; max-width: 1280px; height: auto; border-radius: 6px; background: #000; }
html:not(.is-live):not(.live-pending) .chapter__reel-note { color: var(--paper-dim); font-size: 15px; margin-top: 8px; }
html:not(.is-live):not(.live-pending) .chapter__reel .btn--scene { display: none; }
html:not(.is-live):not(.live-pending) .endcard { min-height: 0; padding: 70px 0; }
html.no-js .cue__actions .choices { display: none; }
