/* Daily Pixel TV · the site's one stylesheet: the home page (body.home) and the legal pages (their URLs stay:
   the platforms point at them).
   THE HOUSE LOOK: the show's own palette (core.js: the 32 colours and the material ramps), Silkscreen for
   headings at whole multiples of its 8 px grid (so every letter pixel is a whole pixel, and a text shadow
   is one letter pixel), Inter for reading. Boxes have notched pixel corners and hard shadows. Light is
   drawn as STEPS of a ramp (hard colour stops), never a dither. Art is only ever scaled by a whole number
   (the page's script picks the scale, image-rendering keeps it crisp).
   MOTION follows the night-viewing rules: slow, local and soft; no flash, no strobe, nothing that
   brightens the whole screen; and all of it off under prefers-reduced-motion. */

:root {
  --ink: #0d0b1e; --night: #151433; --night2: #1f1c4d; --night3: #2d2a6e; --indigo: #433c94; --violet: #6b4fc2; --lav: #a58af0;
  --pale: #fff1a8; --gold: #ffd23a; --gold2: #d1981f; --orange: #ff9124; --red: #f0433a; --crimson: #a3203a; --wine: #4f1224; --wine2: #7d1a2c;
  --pink: #ff5fa8; --blush: #ffb8dc; --cyan: #57e6ff; --blue: #2b8cff; --navy: #1c4fb3; --lime: #8cff66; --green: #36b85a;
  --teal: #227a78; --teal2: #6cc8b8;
  --cream: #f5dcb4; --paper: #fbf0d4; --paper2: #e8cfa0; --paper3: #c4a176; --coral: #f57a64; --brick: #b02736;
  --wood0: #1d1017; --wood1: #24141c; --wood2: #3d2226; --wood3: #5c3527;
  --flame: #de4242; --log: #7d4e2e; --glow1: #2a1e3a; --glow2: #4a2c44; --glow3: #74404a; --glow4: #a45a48;
  --text: #f4f0ff; --muted: #c9c3e8;
  --stars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256' shape-rendering='crispEdges'%3E%3Cg fill='%23a58af0' fill-opacity='.32'%3E%3Crect x='14' y='22' width='2' height='2'/%3E%3Crect x='92' y='60' width='2' height='2'/%3E%3Crect x='170' y='18' width='2' height='2'/%3E%3Crect x='228' y='96' width='2' height='2'/%3E%3Crect x='40' y='140' width='2' height='2'/%3E%3Crect x='130' y='178' width='2' height='2'/%3E%3Crect x='200' y='214' width='2' height='2'/%3E%3Crect x='70' y='236' width='2' height='2'/%3E%3C/g%3E%3Cg fill='%23fff1a8' fill-opacity='.4'%3E%3Crect x='118' y='104' width='2' height='2'/%3E%3Crect x='24' y='88' width='2' height='2'/%3E%3Crect x='244' y='170' width='2' height='2'/%3E%3Crect x='186' y='130' width='2' height='2'/%3E%3C/g%3E%3C/svg%3E");
  --px: "Silkscreen", "Inter", system-ui, sans-serif;  /* a page without the web fonts reads in the body face, not Courier */
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--ink) var(--stars); color: var(--text);
  font: 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { image-rendering: pixelated; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--pale); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
h1, h2, h3, .px { font-family: var(--px); font-weight: 400; letter-spacing: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 14px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- the pixel box: notched corners, a hard shadow */
.pixbox, .btn, .pcard, .castcard, .tier, .vote, .chat, .mail, .times, .tv, .bubble, .legal {
  --bw: 4px; --bc: var(--night3); --sh: rgba(0, 0, 0, .5); --lift: 0px;
  box-shadow:
    0 calc(-1 * var(--bw)) 0 0 var(--bc), 0 var(--bw) 0 0 var(--bc),
    calc(-1 * var(--bw)) 0 0 0 var(--bc), var(--bw) 0 0 0 var(--bc),
    0 calc(var(--bw) + 8px + var(--lift)) 0 calc(-1 * var(--bw)) var(--sh);
}

/* ---------------------------------------------------------------- buttons */
.btn {
  --bc: var(--ink); --sh: rgba(0, 0, 0, .55);
  display: inline-flex; align-items: center; gap: 10px; margin: 4px;
  font: 16px/1 var(--px); color: var(--ink); text-decoration: none;
  background: var(--gold); padding: 14px 18px 13px;
  box-shadow:
    0 calc(-1 * var(--bw)) 0 0 var(--bc), 0 var(--bw) 0 0 var(--bc),
    calc(-1 * var(--bw)) 0 0 0 var(--bc), var(--bw) 0 0 0 var(--bc),
    inset 0 -4px 0 0 rgba(0, 0, 0, .22), inset 0 4px 0 0 rgba(255, 255, 255, .28),
    0 calc(var(--bw) + 8px + var(--lift)) 0 calc(-1 * var(--bw)) var(--sh);
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.btn:hover { --lift: 4px; transform: translateY(-4px); color: var(--ink); }
.btn:active { --lift: 0px; transform: translateY(2px); }
.btn--gold { background: var(--gold); }
.btn--gold:hover { background: var(--pale); }
.btn--violet { background: var(--lav); }
.btn--violet:hover { background: #c7b5ff; }
.btn--red { background: var(--red); color: var(--ink); }
.btn--red:hover { background: var(--coral); }
.btn--lav { background: var(--lav); }
.btn--lav:hover { background: #c7b5ff; }
.btn--coral { background: var(--coral); }
.btn--coral:hover { background: #ffa08a; }
.btn--small { padding: 10px 14px 9px; }
.playicon { width: 12px; height: 14px; flex: none; background: var(--ink);
  clip-path: polygon(0 0, 4px 0, 4px 2px, 8px 2px, 8px 4px, 12px 4px, 12px 10px, 8px 10px, 8px 12px, 4px 12px, 4px 14px, 0 14px); }

/* ---------------------------------------------------------------- the bar across the top */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 10px 28px; background: var(--ink);
}
.nav::after {  /* its edge steps down into the page */
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; pointer-events: none;
  background: linear-gradient(90deg, var(--ink) 50%, transparent 0) 0 0 / 16px 8px repeat-x;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.tvicon { position: relative; width: 28px; height: 26px; flex: none; }
.tvicon::before {
  content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 2px;
  box-shadow:
    6px 0px var(--gold), 20px 0px var(--gold), 8px 2px #b3b2bd, 18px 2px #b3b2bd, 10px 4px #b3b2bd, 16px 4px #b3b2bd,
    2px 6px var(--ink), 4px 6px var(--ink), 6px 6px var(--ink), 8px 6px var(--ink), 10px 6px var(--ink),
    12px 6px var(--ink), 14px 6px var(--ink), 16px 6px var(--ink), 18px 6px var(--ink), 20px 6px var(--ink),
    22px 6px var(--ink), 24px 6px var(--ink), 0px 8px var(--ink), 2px 8px var(--orange), 4px 8px var(--orange),
    6px 8px var(--orange), 8px 8px var(--orange), 10px 8px var(--orange), 12px 8px var(--orange),
    14px 8px var(--orange), 16px 8px var(--orange), 18px 8px var(--orange), 20px 8px var(--orange),
    22px 8px var(--orange), 24px 8px var(--orange), 26px 8px var(--ink), 0px 10px var(--ink), 2px 10px var(--orange),
    4px 10px var(--blue), 6px 10px var(--blue), 8px 10px var(--blue), 10px 10px var(--blue), 12px 10px var(--blue),
    14px 10px var(--blue), 16px 10px var(--blue), 18px 10px var(--blue), 20px 10px var(--orange),
    22px 10px var(--orange), 24px 10px var(--orange), 26px 10px var(--ink), 0px 12px var(--ink),
    2px 12px var(--orange), 4px 12px var(--blue), 6px 12px #fff, 8px 12px var(--blue), 10px 12px var(--blue),
    12px 12px var(--blue), 14px 12px var(--blue), 16px 12px #fff, 18px 12px var(--blue), 20px 12px var(--orange),
    22px 12px var(--crimson), 24px 12px var(--orange), 26px 12px var(--ink), 0px 14px var(--ink),
    2px 14px var(--orange), 4px 14px var(--blue), 6px 14px var(--blue), 8px 14px var(--blue), 10px 14px var(--blue),
    12px 14px var(--blue), 14px 14px var(--blue), 16px 14px var(--blue), 18px 14px var(--blue),
    20px 14px var(--orange), 22px 14px var(--orange), 24px 14px var(--orange), 26px 14px var(--ink),
    0px 16px var(--ink), 2px 16px var(--orange), 4px 16px var(--blue), 6px 16px var(--blue), 8px 16px #fff,
    10px 16px #fff, 12px 16px #fff, 14px 16px #fff, 16px 16px var(--blue), 18px 16px var(--blue),
    20px 16px var(--orange), 22px 16px var(--crimson), 24px 16px var(--orange), 26px 16px var(--ink),
    0px 18px var(--ink), 2px 18px var(--orange), 4px 18px var(--blue), 6px 18px var(--blue), 8px 18px var(--blue),
    10px 18px var(--blue), 12px 18px var(--blue), 14px 18px var(--blue), 16px 18px var(--blue), 18px 18px var(--blue),
    20px 18px var(--orange), 22px 18px var(--orange), 24px 18px var(--orange), 26px 18px var(--ink),
    0px 20px var(--ink), 2px 20px var(--red), 4px 20px var(--red), 6px 20px var(--red), 8px 20px var(--red),
    10px 20px var(--red), 12px 20px var(--red), 14px 20px var(--red), 16px 20px var(--red), 18px 20px var(--red),
    20px 20px var(--red), 22px 20px var(--red), 24px 20px var(--red), 26px 20px var(--ink), 2px 22px var(--ink),
    4px 22px var(--ink), 6px 22px var(--ink), 8px 22px var(--ink), 10px 22px var(--ink), 12px 22px var(--ink),
    14px 22px var(--ink), 16px 22px var(--ink), 18px 22px var(--ink), 20px 22px var(--ink), 22px 22px var(--ink),
    24px 22px var(--ink), 2px 24px var(--ink), 4px 24px var(--ink), 22px 24px var(--ink), 24px 24px var(--ink);
}
.brand__name { font: 16px/1 var(--px); color: var(--gold); white-space: nowrap; }
.nav nav { display: flex; gap: 4px; }
.nav nav a {
  font: 16px/1 var(--px); color: var(--muted); text-decoration: none; padding: 10px 10px 8px; white-space: nowrap;
  background: linear-gradient(var(--gold) 0 0) 50% 100% / 0 4px no-repeat; transition: background-size .2s ease, color .2s ease;
}
.nav nav a:hover, .nav nav a[aria-current] { color: var(--gold); background-size: calc(100% - 20px) 4px; }
.nav__watch { display: none; }

/* ---------------------------------------------------------------- the hero */
.hero { position: relative; }
.hero__band { position: relative; overflow: hidden; height: clamp(200px, 33.3vw, 62vh); background: var(--night); }
.slot--hero { margin: 0; position: absolute; inset: 0; }
.slot--hero img { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; min-width: 100%; transform: translateX(-50%); display: block; will-change: transform; }
.js .slot--hero.ready img { transform: none; bottom: auto; min-width: 0; }  /* the script places it, in whole pixels */
.hero__band::after {  /* the stage edge: the band steps down into the title plate */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; z-index: 2; pointer-events: none;
  background:
    linear-gradient(var(--night) 0 0) 0 100% / 100% 8px no-repeat,
    linear-gradient(90deg, var(--night) 50%, transparent 0) 0 0 / 16px 8px repeat-x;
}
.hero__plate { position: relative; text-align: center; padding: 30px 24px 52px; background: var(--night); }
.kicker { margin: 0 0 12px; font: 16px/1 var(--px); color: var(--pink); }
.hero h1 {
  margin: 0; font: 700 64px/1.05 var(--px); color: var(--gold);
  text-shadow: 8px 8px 0 var(--crimson), 16px 16px 0 var(--ink);
}
.lede { max-width: 34em; margin: 26px auto 26px; font-size: 19px; color: var(--muted); }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------------------------------------------------------------- the marquee */
.marquee {
  position: relative; overflow: hidden; background: var(--wine);
  padding: 12px 0;
  box-shadow: inset 0 4px 0 0 var(--wine2), inset 0 -4px 0 0 var(--wine2);
}
.marquee::before, .marquee::after {  /* a row of lit bulbs top and bottom; they don't blink */
  content: ""; position: absolute; left: 0; right: 0; height: 4px; pointer-events: none;
  background: linear-gradient(90deg, var(--pale) 0 8px, transparent 8px) 4px 0 / 24px 4px repeat-x;
}
.marquee::before { top: 4px; }
.marquee::after { bottom: 4px; }
.marquee__track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 30px; padding: 14px 30px 12px 0; white-space: nowrap; font: 24px/1 var(--px); color: var(--gold); }
.marquee__group span { text-shadow: 3px 3px 0 var(--ink); }
.gem { position: relative; width: 12px; height: 12px; flex: none; }
.gem::before { content: ""; position: absolute; inset: 0; background: var(--pink);
  clip-path: polygon(4px 0, 8px 0, 8px 4px, 12px 4px, 12px 8px, 8px 8px, 8px 12px, 4px 12px, 4px 8px, 0 8px, 0 4px, 4px 4px); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- sections */
.sec { position: relative; padding: 104px 0 112px; background: var(--bg, transparent); }
.sec::before {  /* every section's top edge steps into the one above, in its own colour */
  content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; pointer-events: none;
  background:
    linear-gradient(var(--bg, transparent) 0 0) 0 100% / 100% 8px no-repeat,
    linear-gradient(90deg, var(--bg, transparent) 50%, transparent 0) 8px 0 / 16px 8px repeat-x;
}
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.row--flip > .copy { order: 2; }
.num, .copy .num { margin: 0 0 12px; font: 16px/1 var(--px); color: var(--accent, var(--pink)); }
h2 { margin: 0 0 20px; font-size: 40px; line-height: 1.1; color: var(--gold); text-shadow: 5px 5px 0 var(--ink); }
.copy p { color: var(--muted); max-width: 34em; }
.copy--wide p { max-width: 44em; }

/* the reveal: sections rise in once as they scroll into view */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease var(--d, 0s), transform .7s ease var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- art slots and their placeholders */
.slot { position: relative; margin: 0; }
.slot img { display: block; max-width: 100%; }
.slot.ready img { max-width: none; }  /* the script has sized it to fit, in whole pixels */
.slot.missing img { display: none; }
.slot.missing {
  display: grid; place-content: center; gap: 8px; text-align: center; padding: 16px;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 4px, transparent 4px 8px), var(--night2);
  outline: 3px dashed var(--gold); outline-offset: -3px; color: var(--pale);
}
.slot.missing::before { content: "art slot · " attr(data-file); font: 16px/1.2 var(--px); color: var(--gold); }
.slot.missing::after { content: attr(data-note); font: 13px/1.4 var(--body); color: var(--muted); max-width: 30em; }
.slot--hero.missing { position: absolute; inset: 0; padding-bottom: 32px; }

/* ---------------------------------------------------------------- the TV frames (one look per section) */
@property --ga { syntax: "<number>"; inherits: false; initial-value: .3; }
.tvwrap { --maxh: 460px; display: flex; justify-content: center; padding: 40px 8px 20px; }
.tv {
  --bw: 4px; --bc: var(--ink); --lift: 0px; --ga: .3;
  position: relative; margin: 0; display: inline-flex; gap: 14px; padding: 16px;
  background: var(--tv); max-width: 100%;
  box-shadow:
    0 calc(-1 * var(--bw)) 0 0 var(--bc), 0 var(--bw) 0 0 var(--bc),
    calc(-1 * var(--bw)) 0 0 0 var(--bc), var(--bw) 0 0 0 var(--bc),
    inset 0 4px 0 0 var(--tv-hi), inset 0 -10px 0 0 var(--tv-lo),
    0 calc(var(--bw) + 10px) 0 calc(-1 * var(--bw)) rgba(0, 0, 0, .5),
    0 0 56px 12px rgb(var(--glow) / var(--ga));
  animation: tvglow 8s ease-in-out infinite;
}
@keyframes tvglow { 0%, 100% { --ga: .2; } 50% { --ga: .42; } }
.tv__screen { background: var(--ink); padding: 8px; box-shadow: inset 0 0 0 4px #07061a; }
.tv__screen.missing { width: min(var(--pw, 440px), calc(100vw - 140px)); aspect-ratio: var(--ar, 4 / 3); outline-offset: -11px; }
/* antennas: two stepped wires with a bright tip */
.tv__ant { position: absolute; left: 50%; top: -32px; width: 4px; height: 4px; pointer-events: none; }
.tv__ant::before, .tv__ant::after { content: ""; position: absolute; top: 0; width: 4px; height: 4px; }
.tv__ant::before { left: -48px;
  box-shadow: 0 0 var(--tip), -4px 0 var(--tip), 0 -4px var(--tip), -4px -4px var(--tip), 4px 4px #8e93ad, 8px 8px #8e93ad, 12px 12px #8e93ad, 16px 16px #8e93ad, 20px 20px #8e93ad, 24px 24px #8e93ad; }
.tv__ant::after { left: 44px;
  box-shadow: 0 0 var(--tip), 4px 0 var(--tip), 0 -4px var(--tip), 4px -4px var(--tip), -4px 4px #8e93ad, -8px 8px #8e93ad, -12px 12px #8e93ad, -16px 16px #8e93ad, -20px 20px #8e93ad, -24px 24px #8e93ad; }
.tv__side { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 28px; padding-top: 6px; }
.tv__side i { width: 20px; height: 20px; background: var(--pale); box-shadow: 0 -4px var(--ink), 0 4px var(--ink), -4px 0 var(--ink), 4px 0 var(--ink), inset -4px -4px 0 var(--gold2); margin: 4px 0; }
.tv__side b { width: 24px; height: 4px; background: var(--tv-lo); }
.tv__side b:first-of-type { margin-top: 8px; }
/* the show's TV works: its knobs are buttons (the channel, the power), each turning a quarter when pressed */
.tv__side .knob { position: relative; width: 20px; height: 20px; margin: 4px 0; padding: 0; border: 0; cursor: pointer; background: var(--pale);
  box-shadow: 0 -4px var(--ink), 0 4px var(--ink), -4px 0 var(--ink), 4px 0 var(--ink), inset -4px -4px 0 var(--gold2); }
.tv__side .knob::before { content: ""; position: absolute; inset: -10px; }   /* a thumb-sized target round the 20 px knob */
.tv__side .knob::after { content: ""; position: absolute; left: 8px; top: 2px; width: 4px; height: 8px; background: var(--ink); transform-origin: 2px 8px; transform: rotate(calc(var(--turn, 0) * 90deg)); }
.tv__side .knob:hover { background: #ffffff; }
.tv__side .knob:active { box-shadow: 0 -4px var(--ink), 0 4px var(--ink), -4px 0 var(--ink), 4px 0 var(--ink), inset 4px 4px 0 var(--gold2); }
.tv__side .knob:focus-visible { outline: 2px dashed var(--pale); outline-offset: 6px; }
/* the channel number, top left of the glass, for a moment after a change */
.tv__osd { position: absolute; left: 20px; top: 16px; font: 16px/1 var(--px); color: #8cff66; text-shadow: 2px 2px 0 var(--ink); opacity: 0; transition: opacity .4s steps(2); pointer-events: none; }
.tv__osd.on { opacity: 1; transition: none; }
/* a channel change (and the power) closes the picture to a line across the glass and opens it again: a CLIP, so the
   art itself is never resampled, and it only ever darkens */
.tv__screen img { clip-path: inset(0 0 0 0); }
.tv__screen img.shut { animation: tvshut .16s steps(4) forwards; }
.tv__screen img.open { animation: tvopen .16s steps(4) forwards; }
@keyframes tvshut { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(49% 0 49% 0); } }
@keyframes tvopen { from { clip-path: inset(49% 0 49% 0); } to { clip-path: inset(0 0 0 0); } }
.tv.off .tv__screen img { clip-path: inset(50% 50% 50% 50%); }
.tv.off { animation: none; --ga: .06; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.tv-orange { --tv: var(--orange); --tv-hi: #ffc94d; --tv-lo: var(--red); --glow: 255 145 36; --tip: var(--gold); }
.tv-violet { --tv: var(--indigo); --tv-hi: var(--violet); --tv-lo: var(--night3); --glow: 165 138 240; --tip: var(--blush); }
.tv-violet .tv { flex-direction: column; padding-bottom: 12px; }
.tv__lights { display: block; height: 8px; margin: 0 4px 4px;
  background: linear-gradient(90deg, var(--pale) 0 8px, transparent 8px) 0 0 / 24px 8px repeat-x; opacity: .85; }
.tv-news { --tv: var(--wine2); --tv-hi: var(--red); --tv-lo: var(--wine); --glow: 240 67 58; }
.tv-news .tv { flex-direction: column; gap: 0; padding: 16px 16px 18px; }
.tv__tab { position: absolute; top: -32px; left: 12px; font: 16px/1 var(--px); color: var(--ink); background: var(--gold); padding: 7px 10px 5px;
  box-shadow: 0 -4px var(--ink), 4px 0 var(--ink), -4px 0 var(--ink); }
.tv__tab--r { left: auto; right: 12px; background: var(--paper); }
.tv__third { display: flex; align-items: stretch; margin-top: 12px; font: 16px/1 var(--px); width: 0; min-width: 100%; }
.tv__third b { font-weight: 400; background: var(--gold); color: var(--ink); padding: 8px 10px 6px; }
.tv__third b { flex: none; display: flex; align-items: center; }
.tv__third span { flex: 1; background: var(--ink); color: var(--paper); padding: 8px 12px 6px; line-height: 1.3; }
.tv-paper { --tv: var(--paper); --tv-hi: #ffffff; --tv-lo: var(--paper2); --glow: 255 210 122; }
.tv-paper .tv { flex-direction: column; gap: 0; padding: 18px 18px 14px; }  /* never rotated: that would resample the art */
.tv__pin { position: absolute; left: 50%; top: -10px; width: 16px; height: 16px; margin-left: -8px; background: var(--red);
  box-shadow: 0 -4px var(--ink), 0 4px var(--ink), -4px 0 var(--ink), 4px 0 var(--ink), inset 4px 4px 0 var(--coral); }
.tv__caption { display: block; width: 0; min-width: 100%; text-align: center; margin-top: 12px; font: 16px/1.4 var(--px); color: var(--wood3); }

/* ---------------------------------------------------------------- 01 the show */
.sec--show { --bg: var(--night); --accent: var(--orange); }
.facts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; }
.facts li { display: grid; grid-template-columns: 16px 1fr; column-gap: 16px; }
.facts li::before { content: ""; grid-row: span 2; width: 12px; height: 12px; margin-top: 6px; background: var(--orange); box-shadow: 4px 4px 0 var(--ink); }
.facts b { font: 16px/1.5 var(--px); color: var(--pale); font-weight: 400; }
.facts span { color: var(--muted); }

/* ---------------------------------------------------------------- 02 watch */
.sec--watch { --bg: var(--ink); --accent: var(--cyan); }
.plat { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; gap: 28px; margin-top: 44px; }
.pcard {
  --bc: var(--pc); --sh: rgba(0, 0, 0, .6);
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 22px;
  background: var(--night); color: var(--text); text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.pcard:hover { --lift: 6px; transform: translateY(-6px); background: var(--night2); color: var(--text); }
.pcard__name { font: 24px/1 var(--px); color: var(--pc); text-shadow: 3px 3px 0 var(--ink); }
.pcard__what { color: var(--muted); flex: 1; }
.pcard__go { font: 16px/1 var(--px); color: var(--pc2, var(--pc)); }
.pcard__go i { font-style: normal; font-family: var(--body); display: inline-block; transition: transform .18s ease; }
.pcard:hover .pcard__go i { transform: translateX(4px); }
.pcard--yt { --pc: var(--red); --pc2: var(--coral); grid-row: span 2; padding: 32px 30px; justify-content: flex-end;
  background: linear-gradient(var(--wine) 0 0) 0 0 / 100% 100px no-repeat, var(--night); }
.pcard--yt:hover { background: linear-gradient(var(--wine2) 0 0) 0 0 / 100% 100px no-repeat, var(--night2); }
.pcard--yt::before { /* a big play mark in the card's top band */
  content: ""; position: absolute; left: 30px; top: 30px; width: 60px; height: 44px; background: var(--red);
  clip-path: polygon(4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px), 0 4px, 4px 4px);
}
.pcard--yt::after { content: ""; position: absolute; left: 54px; top: 42px; width: 16px; height: 20px; background: var(--paper);
  clip-path: polygon(0 0, 4px 0, 4px 2px, 8px 2px, 8px 6px, 12px 6px, 12px 8px, 16px 8px, 16px 12px, 12px 12px, 12px 14px, 8px 14px, 8px 18px, 4px 18px, 4px 20px, 0 20px); }
.pcard--yt .pcard__name { font-size: 40px; text-shadow: 5px 5px 0 var(--ink); margin-top: 96px; }
.pcard--yt .pcard__what { flex: none; font-size: 18px; }
.pcard--tt { --pc: var(--cyan); --pc2: var(--pink); box-shadow:
    0 -4px 0 0 var(--cyan), 0 4px 0 0 var(--pink), -4px 0 0 0 var(--cyan), 4px 0 0 0 var(--pink),
    0 calc(12px + var(--lift)) 0 -4px rgba(0, 0, 0, .6); }
.pcard--tt .pcard__name { text-shadow: 3px 3px 0 var(--pink); color: var(--cyan); }
.pcard--ig { --pc: var(--pink); --pc2: var(--orange); box-shadow:
    0 -4px 0 0 var(--pink), 0 4px 0 0 var(--orange), -4px 0 0 0 var(--pink), 4px 0 0 0 var(--orange),
    0 calc(12px + var(--lift)) 0 -4px rgba(0, 0, 0, .6); }
.pcard--fb { --pc: var(--blue); --pc2: #7fb8ff; }
.pcard--fb .pcard__name { color: #7fb8ff; }
.pcard--tt, .pcard--ig, .pcard--fb { grid-column: span 1; }
.plat .pcard--fb { grid-column: 2 / span 2; }
.times { --bc: var(--night3); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; margin-top: 48px; padding: 18px 24px; background: var(--night); }
.times__label, .times__zone { margin: 0; font: 16px/1.4 var(--px); color: var(--cyan); }
.times__zone { color: var(--muted); font-family: var(--body); font-size: 15px; text-align: right; }
.times__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.times__list time { display: block; font: 24px/1 var(--px); color: var(--pale); background: var(--ink); padding: 10px 12px 8px;
  box-shadow: 0 -4px var(--navy), 0 4px var(--navy), -4px 0 var(--navy), 4px 0 var(--navy); }

/* ---------------------------------------------------------------- 03 trend watch: a newsroom at night */
.sec--trend { --bg: var(--night); --accent: var(--coral);
  background:
    linear-gradient(90deg, rgba(87, 230, 255, .045) 2px, transparent 2px) 0 0 / 48px 48px,
    linear-gradient(0deg, rgba(87, 230, 255, .045) 2px, transparent 2px) 0 0 / 48px 48px,
    var(--night); }
.chips { list-style: none; margin: 22px 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chips li { font: 16px/1 var(--px); color: var(--ink); background: var(--paper); padding: 8px 10px 6px;
  box-shadow: 0 -4px var(--ink), 0 4px var(--ink), -4px 0 var(--ink), 4px 0 var(--ink), 0 8px 0 -0px rgba(0,0,0,.35); margin: 4px; }
.chips li:nth-child(2) { background: var(--gold); }
.chips li:nth-child(3) { background: var(--blush); }
.chips li:nth-child(4) { background: var(--teal2); }
.also { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.also span { font-size: 15px; color: var(--muted); }

/* ---------------------------------------------------------------- 04 the cast: a stage, lit */
.sec--cast { --bg: var(--night2); --accent: var(--blush); }
.castgrid { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 28px; }
.castcard {
  --bc: var(--indigo); --sh: rgba(0, 0, 0, .55);
  position: relative; background: var(--night); text-align: center; padding-bottom: 18px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.castcard:hover { --lift: 6px; transform: translateY(-6px); }
.castcard__stage {
  --maxh: 168px; height: 196px; padding: 14px 12px 16px;
  display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
  background:
    linear-gradient(var(--night3) 0 0) 0 100% / 100% 16px no-repeat,
    radial-gradient(ellipse 58% 90% at 50% 100%, #573679 0 26%, #3a2968 26% 48%, #251d52 48% 72%, transparent 72%),
    var(--night);
}
.castcard--guest .castcard__stage {
  background:
    linear-gradient(var(--night3) 0 0) 0 100% / 100% 16px no-repeat,
    radial-gradient(ellipse 58% 90% at 50% 100%, var(--glow3) 0 26%, var(--glow2) 26% 48%, var(--glow1) 48% 72%, transparent 72%),
    var(--night);
}
.slot--cast img { animation: bob 2.4s step-end infinite; }
/* a card pressed: its character cheers and says something, in a bubble over the stage */
.castcard__stage[role="button"] { cursor: pointer; }
.castcard__stage:focus-visible { outline: 2px dashed var(--gold); outline-offset: -8px; }
.castcard__say { left: 50%; top: 44px; transform: translateX(-50%); white-space: nowrap; animation: none; z-index: 3; }
.castcard__say[hidden] { display: none; }
.castcard:nth-child(2) .slot--cast img { animation-delay: -.6s; }
.castcard:nth-child(3) .slot--cast img { animation-delay: -1.5s; }
.castcard:nth-child(4) .slot--cast img { animation-delay: -.3s; }
.castcard:nth-child(5) .slot--cast img { animation-delay: -1.2s; }
.castcard:nth-child(6) .slot--cast img { animation-delay: -1.8s; }
.castcard:nth-child(7) .slot--cast img { animation-delay: -.9s; }
.castcard:nth-child(8) .slot--cast img { animation-delay: -2.1s; }
@keyframes turn { 0% { visibility: visible; } 50% { visibility: hidden; } }
@keyframes bob { 0% { transform: translateY(0); } 25% { transform: translateY(-2px); } 50% { transform: translateY(-4px); } 75% { transform: translateY(-2px); } }
.slot--cast.missing { width: 100%; height: 100%; min-height: 150px; padding: 10px; }
.slot--cast.missing::before { font-size: 16px; overflow-wrap: anywhere; }
.castcard h3 { margin: 16px 14px 6px; font-size: 16px; line-height: 1.35; color: var(--gold); }
.castcard p { margin: 0 16px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.guest { position: absolute; top: 10px; right: 10px; z-index: 2; font: 16px/1 var(--px); color: var(--ink); background: var(--blush); padding: 5px 7px 3px;
  box-shadow: 0 -4px var(--ink), 0 4px var(--ink), -4px 0 var(--ink), 4px 0 var(--ink); }
.castnote { margin: 40px 0 0; text-align: center; font: 16px/1.4 var(--px); color: var(--blush); }

/* ---------------------------------------------------------------- 05 the writers' room: cards pinned on a board */
.sec--writers { --bg: var(--wood1); --accent: var(--coral);
  background: repeating-linear-gradient(180deg, var(--wood1) 0 60px, var(--wood0) 60px 64px), var(--wood1); }
.sec--writers h2 { color: var(--paper); }
.sec--writers .copy p { color: #e6d3c0; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin-top: 80px; }
.tier {
  --bc: var(--ink); --sh: rgba(0, 0, 0, .55);
  position: relative; padding: 30px 26px 28px; background: var(--paper); color: #3d2226;
  transform: rotate(var(--r, 0deg)); transition: transform .2s ease, box-shadow .2s ease;
}
.js .tier.reveal { transform: translateY(20px) rotate(var(--r, 0deg)); }
.js .tier.reveal.in { transform: rotate(var(--r, 0deg)); }
.js .tier.reveal.in:hover, .tier:hover { --lift: 6px; transform: translateY(-6px) rotate(0deg); }
.tier::before { /* the pin */
  content: ""; position: absolute; left: 50%; top: -8px; width: 16px; height: 16px; margin-left: -8px; background: var(--pin, var(--red));
  box-shadow: 0 -4px var(--ink), 0 4px var(--ink), -4px 0 var(--ink), 4px 0 var(--ink), inset 4px 4px 0 rgba(255, 255, 255, .35);
}
.tier::after { /* a colour band along the top of each card */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--band, var(--teal2));
}
.tier h3 { margin: 6px 0 12px; font-size: 16px; line-height: 1.5; color: var(--wine2); }
.tier p { margin: 0; line-height: 1.6; }
.tier--fan { --band: var(--teal2); --pin: var(--teal); }
.tier--room { --band: var(--coral); --pin: var(--red); }
.tier--dir { --band: var(--gold); --pin: var(--gold2); }
.vote {
  --bc: var(--ink); --sh: rgba(0, 0, 0, .55);
  max-width: 820px; margin: 56px auto 0; padding: 26px 30px 26px; background: var(--pale); color: #3a2412;
  transform: rotate(.5deg);
}
.js .vote.reveal { transform: translateY(20px) rotate(.5deg); }
.js .vote.reveal.in { transform: rotate(.5deg); }
.vote h3 { margin: 0 0 10px; font-size: 16px; color: #6b4214; }
.vote p { margin: 0; line-height: 1.65; }

/* ---------------------------------------------------------------- 06 the discord: a fire on the beach at night */
.sec--discord { --bg: var(--ink); --accent: var(--orange); background: var(--ink) var(--stars); }
.earn { font-size: 15px; }
.earn b { display: block; font: 16px/1.5 var(--px); font-weight: 400; color: var(--pale); margin-bottom: 4px; }
/* THE CAMPFIRE is the show's own loop (site/art/campfire.gif, 176x80 at one art pixel, made in the engine by
   profiles/make/site.js --live campfire): it carries its own firelight, so the CSS glow rings and the hand-placed
   box-shadow fire that stood here (one frame, never moving: user, 25 Sep, "ugly/not in our style and also not
   animating") are retired. The page's script scales it by a whole number, up to x2 of --maxh. Its bubbles sit over
   the heads (Tung's at x 50, the ballerina's at x 124, the tops of both at y 30, in art px). */
.campfire { position: relative; isolation: isolate; padding: 8px 24px 24px; }
.fireside { --maxh: 160px; text-align: center; margin: 0 0 24px; }
.slot--fire { display: inline-block; vertical-align: top; }
.slot--fire img { image-rendering: pixelated; }
.slot--fire .bubble--a { left: calc(50 / 176 * 100% - 22px); bottom: calc(50 / 80 * 100% + 12px); top: auto; right: auto; }
.slot--fire .bubble--b { left: calc(124 / 176 * 100% - 22px); bottom: calc(50 / 80 * 100% + 12px); top: auto; right: auto; }
.chat { --bc: var(--violet); --sh: rgba(0, 0, 0, .6); list-style: none; margin: 0; padding: 10px 26px; background: var(--night); }
.chat li { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: baseline; padding: 14px 0; }
.chat li + li { background: linear-gradient(90deg, var(--night3) 50%, transparent 0) 0 0 / 8px 2px repeat-x; }
.ch { font: 16px/1.3 var(--px); color: var(--lav); }
.chat li span:last-child { color: var(--muted); font-size: 16px; }
.bubble {
  --bc: var(--ink); --sh: rgba(0, 0, 0, .45);
  position: absolute; z-index: 2; font: 16px/1 var(--px); color: var(--ink); background: var(--paper); padding: 10px 12px 8px;
  animation: float 7s ease-in-out infinite;
}
.bubble::after { content: ""; position: absolute; left: 18px; bottom: -12px; width: 8px; height: 8px; background: var(--paper);
  box-shadow: 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink), 4px 4px 0 0 var(--ink); }
.bubble--a { left: 4px; top: 0; background: var(--gold); }
.bubble--a::after { background: var(--gold); }
.bubble--b { right: 0; top: 14px; animation-delay: -2.4s; }
.bubble--c { left: 6%; bottom: 72px; background: var(--blush); animation-delay: -4.6s; }
.bubble--c::after { background: var(--blush); top: -12px; bottom: auto; box-shadow: 0 -4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink), 4px -4px 0 0 var(--ink); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------------------------------------------------------------- 07 who makes this */
.sec--about { --bg: var(--night); --accent: var(--gold); }
.mail { --bc: var(--gold); --sh: rgba(0, 0, 0, .55); padding: 32px 30px; background: var(--ink); text-align: center; }
.mail__hi { margin: 0 0 14px; font: 16px/1.5 var(--px); color: var(--pale); }
.mail__addr { display: inline-block; font-weight: 700; font-size: 22px; word-break: break-word; }
.mail__small { margin: 12px 0 0; color: var(--muted); font-size: 15px; }

/* ---------------------------------------------------------------- the footer (the home page's) */
.foot { position: relative; background: var(--ink); padding: 56px 24px 48px; text-align: center; color: var(--muted); font-size: 15px; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px;
  background: linear-gradient(var(--ink) 0 0) 0 100% / 100% 8px no-repeat, linear-gradient(90deg, var(--ink) 50%, transparent 0) 0 0 / 16px 8px repeat-x; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 22px; }
.foot__links a { font: 16px/1.6 var(--px); text-decoration: none; }
.foot__legal { margin: 0 0 8px; }
.foot__legal a { color: var(--muted); }
.foot__legal a:hover { color: var(--gold); }
.foot__c { margin: 0; }

/* ---------------------------------------------------------------- the legal pages (their HTML is untouched) */
body:not(.home)::before {  /* the same stepped top edge the home page has, in the show's gold and crimson */
  content: ""; display: block; height: 16px;
  background: linear-gradient(var(--crimson) 0 0) 0 0 / 100% 8px no-repeat, linear-gradient(90deg, var(--crimson) 50%, transparent 0) 8px 8px / 16px 8px repeat-x, var(--ink);
}
main.legal {
  --bc: var(--indigo); --sh: rgba(0, 0, 0, .55);
  max-width: 820px; margin: 56px auto 56px; padding: 40px 48px 44px; background: var(--night);
}
.legal h1 { margin: 10px 0 6px; font-size: 40px; line-height: 1.15; color: var(--gold); text-shadow: 5px 5px 0 var(--ink); }
.legal h2 { margin: 36px 0 8px; font-size: 24px; line-height: 1.25; color: var(--gold); text-shadow: 3px 3px 0 var(--ink); }
.legal p, .legal li { color: #e6e1fb; }
.legal ul { padding-left: 22px; }
.legal li { margin: 8px 0; }
.legal > p:first-child a { text-decoration: none; font-weight: 600; }
.small { color: var(--muted); font-size: 14px; }
code { background: var(--night2); padding: 1px 6px; }
body:not(.home) > footer { text-align: center; color: var(--muted); font-size: 15px; padding: 0 16px 56px; }
body:not(.home) > footer a { margin: 0 8px; }

/* ---------------------------------------------------------------- narrower screens */
@media (max-width: 1080px) {
  .nav nav { display: none; }
  .nav__watch { display: inline-flex; margin: 4px; }
}
@media (max-width: 900px) {
  .row { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .row--flip > .copy { order: 0; }
  .plat { grid-template-columns: 1fr 1fr; }
  .pcard--yt { grid-column: 1 / -1; grid-row: auto; }
  .plat .pcard--fb { grid-column: 1 / -1; }
  .castgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiers { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-left: auto; margin-right: auto; }
  .times { grid-template-columns: 1fr; text-align: center; }
  .times__zone { text-align: center; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav { padding: 8px 16px; }
  .brand__name { font-size: 16px; }
  .hero h1 { font-size: 32px; text-shadow: 4px 4px 0 var(--crimson), 8px 8px 0 var(--ink); }
  .hero__plate { padding: 24px 18px 44px; }
  .lede { font-size: 17px; margin: 22px auto; }
  .marquee__group { font-size: 16px; gap: 22px; padding-right: 22px; }
  .sec { padding: 72px 0 80px; }
  .wrap { padding: 0 18px; }
  h2 { font-size: 32px; text-shadow: 4px 4px 0 var(--ink); }
  .plat { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pcard--yt .pcard__name { font-size: 32px; text-shadow: 4px 4px 0 var(--ink); }
  .times__list { display: grid; grid-template-columns: repeat(2, auto); }
  .times__list time { font-size: 16px; }
  .castgrid { gap: 24px 16px; margin-top: 56px; }
  .castcard__stage { --maxh: 132px; height: 156px; padding: 10px 6px 16px; }
  .castcard h3 { margin: 14px 8px 6px; }
  .castcard p { margin: 0 10px; font-size: 14px; }
  .guest { top: 6px; right: 6px; }
  .tvwrap { --maxh: 300px; padding: 36px 0 12px; }
  .tv { padding: 12px; gap: 10px; }
  .tv-news .tv { padding: 12px 12px 14px; }
  .tv__side { width: 24px; }
  .tv__tab--r { display: none; }
  .tiers { gap: 32px; margin-top: 56px; }
  .vote { padding: 22px 22px; }
  .campfire { padding: 8px 4px 16px; }
  /* a phone's campfire is too narrow for both bubbles at once, so the two take turns talking (a step, no fade) */
  .slot--fire .bubble--a { animation: float 7s ease-in-out infinite, turn 8s steps(1) infinite; }
  .slot--fire .bubble--b { animation: float 7s ease-in-out infinite, turn 8s steps(1) -4s infinite; }
  .chat { padding: 6px 18px; }
  .chat li { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 0; }
  .bubble--b { top: 6px; }
  .mail { padding: 26px 18px; }
  .mail__addr { font-size: 18px; }
  main.legal { margin: 28px 12px 40px; padding: 26px 22px 30px; }
  .legal h1 { font-size: 32px; text-shadow: 4px 4px 0 var(--ink); }
}

@media (max-width: 360px) { .hero h1 { font-size: 24px; text-shadow: 3px 3px 0 var(--crimson), 6px 6px 0 var(--ink); } }

/* ---------------------------------------------------------------- reduced motion: everything still, everything shown */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .reveal.in { opacity: 1; transform: none; }
  .js .tier.reveal, .js .tier.reveal.in { transform: rotate(var(--r, 0deg)); }
  .js .vote.reveal, .js .vote.reveal.in { transform: rotate(.5deg); }
  .marquee__track { width: auto; justify-content: center; }
  .marquee__group { flex-wrap: wrap; justify-content: center; text-align: center; white-space: normal; padding: 14px 20px 12px; gap: 12px 28px; }
  .marquee .gem { display: none; }
  .marquee__group + .marquee__group { display: none; }
  .btn:hover, .pcard:hover, .castcard:hover, .tier:hover { transform: none; }
}

/* with motion off the bubbles can't take turns, so a phone keeps just the first */
@media (prefers-reduced-motion: reduce) and (max-width: 720px) { .slot--fire .bubble--b { display: none; } }
