/* What's on Cezz: a TV channel guide where each section is its own channel.
   Base = test card. Each .world sets its own palette and type. */

:root {
  /* base: test card */
  --card: #e4e7ec;
  --ink: #161b2e;
  --ink-2: #4a5068;
  --rule: #c4c9d4;
  --sig-yellow: #f2c230;
  --sig-cyan: #2bb3c9;
  --sig-green: #3db66a;
  --sig-magenta: #d1408d;
  --sig-red: #d83a2e;
  --sig-blue: #2c4bd1;
  --sig-white: #f7f8fa;

  --f-base: "Bricolage Grotesque", system-ui, sans-serif;
  --f-ras: "Archivo", system-ui, sans-serif;
  --f-show: "Bungee", "Bricolage Grotesque", system-ui, sans-serif;
  --f-fell: "IM Fell English", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --wrap: 1140px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--card);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--f-base);
  font-optical-sizing: auto;
  overflow-x: hidden;
}
img, iframe { max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: .08em; }
:focus-visible { outline: 3px solid var(--sig-yellow); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }

/* ================= HERO: the TV ================= */

.hero { padding: 40px 0 72px; }
.hero-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.35fr 1fr; gap: 48px; padding-top: 24px; } }

.tv {
  background: #2a2d36;
  border-radius: 34px;
  padding: 22px 22px 0;
  box-shadow: inset 0 2px 0 #474b57, inset 0 -6px 0 #1d1f26, 0 30px 60px -30px rgba(22, 27, 46, .6);
}
.tv-screen {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 28px / 34px;
  overflow: hidden;
  background: #1a1f3a;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, .7);
  isolation: isolate;
}
.tv-screen::after { /* scanlines + glass */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background:
    radial-gradient(120% 90% at 30% 20%, rgba(255, 255, 255, .12), transparent 45%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px);
}
.snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; opacity: 0; transition: opacity .25s; }
.tuning .snow { opacity: 1; }
.titlecard {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 8% 9% 18%;
  color: #fff;
  background:
    radial-gradient(80% 70% at 70% 40%, #3346c9 0, transparent 70%),
    #1a1f3a;
}
.handle { font-weight: 600; color: var(--sig-yellow); margin: 0 0 .3em; font-size: clamp(.9rem, 1.6vw, 1.1rem); }
.name {
  position: relative;
  font-weight: 800;
  font-variation-settings: "wdth" 75;
  font-size: clamp(4.5rem, 15vw, 11rem);
  letter-spacing: -.035em;
  line-height: .82;
  margin-bottom: .14em;
}
.name::before, .name::after { /* RGB split, shown while the set tunes in */
  content: attr(data-text); position: absolute; left: 0; top: 0; mix-blend-mode: screen; opacity: 0;
}
.name::before { color: #ff2d55; }
.name::after { color: #2de0ff; }
.tuned .name::before { animation: split-r .9s steps(6) .05s 1; }
.tuned .name::after { animation: split-c .9s steps(6) .05s 1; }
.tuned .titlecard { animation: hold .7s steps(5) 1; }
@keyframes split-r { 0% { opacity: .9; transform: translate(-10px, 2px); } 60% { opacity: .7; transform: translate(4px, -1px); } 100% { opacity: 0; transform: none; } }
@keyframes split-c { 0% { opacity: .9; transform: translate(10px, -2px); } 60% { opacity: .7; transform: translate(-4px, 1px); } 100% { opacity: 0; transform: none; } }
@keyframes hold { 0% { transform: translateY(-8%) skewX(-6deg); filter: brightness(1.8); } 40% { transform: translateY(3%); } 100% { transform: none; filter: none; } }
.tagline { max-width: 30ch; font-size: clamp(1rem, 2.1vw, 1.3rem); line-height: 1.35; color: #d9defc; margin: 0; }
.bars { position: absolute; left: 0; right: 0; bottom: 0; height: 12%; display: flex; z-index: 1; }
.bars i { flex: 1; }
.bars i:nth-child(1) { background: var(--sig-white); }
.bars i:nth-child(2) { background: var(--sig-yellow); }
.bars i:nth-child(3) { background: var(--sig-cyan); }
.bars i:nth-child(4) { background: var(--sig-green); }
.bars i:nth-child(5) { background: var(--sig-magenta); }
.bars i:nth-child(6) { background: var(--sig-red); }
.bars i:nth-child(7) { background: var(--sig-blue); }
.tv-chin { display: flex; justify-content: flex-end; align-items: center; gap: 14px; height: 56px; padding: 0 10px; }
.knob { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #6b7080, #33363f); box-shadow: 0 2px 0 #15161b; }
.led { width: 9px; height: 9px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 10px #ff3b30; margin-left: 6px; }

/* the listings card */
.guide { background: var(--sig-white); border-radius: 6px; padding: 22px 22px 18px; box-shadow: 8px 8px 0 var(--ink); border: 2px solid var(--ink); }
.guide-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 4px; }
.guide h2 { font-size: 2rem; font-weight: 800; font-variation-settings: "wdth" 80; letter-spacing: -.01em; }
.clock { font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: .95rem; }
.guide-rows { list-style: none; margin: 0; padding: 0; }
.guide-rows a {
  display: grid; grid-template-columns: 6.2em 1fr; column-gap: 14px;
  padding: 11px 0 11px 14px; border-bottom: 1px solid var(--rule);
  text-decoration: none; position: relative;
}
.guide-rows a::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 5px; border-radius: 3px; background: var(--sig); }
.guide-rows a:hover .g-name, .guide-rows a:focus-visible .g-name { text-decoration: underline; }
.sig-yellow { --sig: var(--sig-yellow); } .sig-cyan { --sig: var(--sig-cyan); } .sig-green { --sig: var(--sig-green); }
.sig-magenta { --sig: var(--sig-magenta); } .sig-red { --sig: var(--sig-red); } .sig-blue { --sig: var(--sig-blue); } .sig-white { --sig: var(--ink-2); }
.g-when { grid-row: span 2; color: var(--ink-2); font-size: .88rem; font-variant-numeric: tabular-nums; padding-top: .15em; }
.g-name { font-weight: 700; }
.g-what { color: var(--ink-2); font-size: .94rem; line-height: 1.35; }
.onair-txt { color: var(--sig-red); }
.guide-socials { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; font-size: .9rem; color: var(--ink-2); }

/* ================= shared world chrome ================= */

.world { position: relative; overflow: hidden; padding: 96px 0; isolation: isolate; }
.world > .wrap { position: relative; z-index: 1; }
.world h2 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: .35em; }

/* channel-change static wipe */
.tuner { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; }
.tuner i {
  position: absolute; inset: -50%;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .14) 0 2px, transparent 2px 4px),
    repeating-radial-gradient(circle at 17% 32%, #fff 0 1px, #000 1px 3px, #888 3px 4px);
  background-size: 100% 4px, 7px 7px;
}
.world.is-on .tuner { animation: tune .55s steps(7) 1; }
.world.is-on .tuner i { animation: jitter .55s steps(7) 1; }
@keyframes tune { 0% { opacity: 1; clip-path: inset(0); } 70% { opacity: 1; clip-path: inset(30% 0 30% 0); } 100% { opacity: 0; clip-path: inset(50% 0 50% 0); } }
@keyframes jitter { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -4%); } 75% { transform: translate(-1%, 3%); } 100% { transform: translate(3%, 1%); } }

/* phone frame around reel embeds */
.phone { margin: 0; justify-self: center; width: min(340px, 100%); }
.phone-screen {
  border-radius: 38px; padding: 12px; background: #0f1014;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .12), 0 30px 50px -20px rgba(0, 0, 0, .6);
}
.phone-screen iframe { display: block; width: 100%; height: 600px; border: 0; border-radius: 28px; background: #fff; }
.phone figcaption { text-align: center; font-size: .9rem; margin-top: 12px; opacity: .85; }
.follow { font-weight: 700; }

/* ================= RANDOM ACTS OF SANTA ================= */

.w-santa {
  --navy: #18264d; --navy-2: #22346a; --cream: #f6f0e2; --red: #b8262c; --gold: #d9b26a; --sky: #aebbd4; --paper-ink: #18223a;
  background:
    repeating-linear-gradient(60deg, transparent 0 58px, rgba(174, 187, 212, .09) 58px 60px),
    repeating-linear-gradient(-60deg, transparent 0 58px, rgba(174, 187, 212, .09) 58px 60px),
    var(--navy);
  color: #e6ecf7;
  font-family: var(--f-ras);
  padding-top: 190px;
}
.baubles { position: absolute; inset: 0 0 auto; height: 220px; pointer-events: none; }
.hang { position: absolute; left: var(--x); top: 0; width: 2px; height: var(--len); background: #b89b5e; transform-origin: top center; animation: sway 4.2s ease-in-out var(--d) infinite alternate; }
.hang::after { content: ""; position: absolute; top: 100%; left: 50%; translate: -50% 0; }
.hang-red::after, .hang-gold::after, .hang-sky::after { width: 46px; height: 46px; border-radius: 50%; margin-top: 6px; box-shadow: inset -6px -8px 0 rgba(0, 0, 0, .15), inset 6px 6px 0 rgba(255, 255, 255, .18); }
.hang-red::after { background: linear-gradient(transparent 46%, var(--gold) 46% 54%, transparent 54%), var(--red); }
.hang-gold::after { width: 34px; height: 34px; background: linear-gradient(transparent 46%, var(--red) 46% 56%, transparent 56%), var(--gold); }
.hang-sky::after { width: 38px; height: 38px; background: repeating-linear-gradient(180deg, transparent 0 9px, #fff 9px 12px), var(--sky); }
.hang::before { content: ""; position: absolute; top: 100%; left: 50%; translate: -50% 0; width: 12px; height: 8px; background: var(--gold); border-radius: 2px; z-index: 1; }
.hang-stamp::before, .hang-tag::before { display: none; }
.hang-stamp::after { width: 44px; height: 54px; background: radial-gradient(circle, var(--gold) 0 4px, transparent 5px) center/100% 100% no-repeat, var(--navy-2); border: 4px dotted #fff; outline: 3px solid #fff; outline-offset: -6px; }
.hang-tag::after { width: 28px; height: 46px; background: repeating-linear-gradient(180deg, transparent 0 16px, #c9c0ab 16px 18px) 6px 12px / 16px 30px no-repeat, var(--cream); border-radius: 4px 4px 3px 3px; }
@keyframes sway { from { rotate: -4deg; } to { rotate: 4deg; } }

.santa-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .santa-grid { grid-template-columns: 1.1fr .9fr; } }
.santa-title { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.w-santa h2 { font-weight: 800; font-variation-settings: "wdth" 125; font-size: clamp(2.3rem, 5.6vw, 4.4rem); line-height: .95; letter-spacing: -.01em; margin: 0; }
.w-santa h2 small { font-weight: 400; font-size: .8em; }
.stamp-big { /* white perforated edge, navy face */
  flex: none; position: relative; width: 96px; height: 116px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 50%, transparent 4px, #fff 4.5px) -6px -6px / 12px 12px;
  rotate: -5deg; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35));
}
.stamp-big::before { content: ""; position: absolute; inset: 8px; background: var(--navy-2); outline: 2px solid #fff; outline-offset: -6px; }
.stamp-big .bauble { position: relative; }
.stamp-big b { position: absolute; bottom: 16px; z-index: 1; color: var(--gold); font-weight: 800; font-size: .95rem; }
.bauble { width: 40px; height: 40px; border-radius: 50%; margin-top: -12px; background: linear-gradient(transparent 46%, var(--gold) 46% 56%, transparent 56%), var(--red); box-shadow: inset -5px -6px 0 rgba(0, 0, 0, .18); }
.santa-lede { font-size: 1.15rem; max-width: 52ch; color: #c9d3ea; }
.santa-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-red, .btn-ghost, .btn-twitch { display: inline-block; padding: 13px 22px; border-radius: 6px; font-weight: 700; text-decoration: none; transition: transform .15s; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 4px 0 #7d1519; }
.btn-ghost { border: 2px solid #e6ecf7; color: #e6ecf7; }
.btn-red:hover, .btn-ghost:hover, .btn-twitch:hover { transform: translateY(-2px); }

.postcard {
  position: relative; background: var(--cream); color: var(--paper-ink); border-radius: 6px; padding: 30px 26px 26px;
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .55);
  rotate: 2deg;
}
.postcard::before { /* airmail stripe */
  content: ""; position: absolute; inset: 0 0 auto; height: 12px; border-radius: 6px 6px 0 0;
  background: repeating-linear-gradient(-45deg, var(--red) 0 14px, var(--cream) 14px 22px, var(--navy) 22px 36px, var(--cream) 36px 44px);
}
.pc-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid #d5c9ad; }
.pc-head h3 { font-size: 1.25rem; font-weight: 800; font-variation-settings: "wdth" 112; }
.pc-stamp { width: 48px; height: 58px; display: grid; place-items: center; background: var(--navy); border: 4px solid #fff; outline: 1px dashed #b7ab90; }
.pc-stamp .bauble { width: 22px; height: 22px; margin: 0; }
.postcard dl { margin: 0; }
.postcard dl > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid #d5c9ad; }
.postcard dt { font-variation-settings: "wdth" 120; font-size: .78rem; font-weight: 700; color: #5a6380; letter-spacing: .04em; padding-top: .2em; }
.postcard dd { margin: 0; font-weight: 600; }
.postcard dd small { display: block; font-weight: 400; color: #4b5670; font-size: .88rem; }
.postmark {
  position: absolute; right: -26px; bottom: -74px; width: 124px; height: 124px; border-radius: 50%;
  border: 3px solid rgba(184, 140, 60, .85); color: rgba(184, 140, 60, .95);
  display: grid; place-items: center; align-content: center; text-align: center; rotate: -14deg;
  font-variation-settings: "wdth" 120; font-size: .62rem; font-weight: 700; line-height: 1.2;
  background: radial-gradient(circle, transparent 54%, rgba(184, 140, 60, .85) 54% 56%, transparent 56%);
  opacity: 0;
}
.postmark b { font-size: 1.7rem; letter-spacing: .02em; font-weight: 800; }
.w-santa .postcard { translate: 60px 0; opacity: 0; transition: translate .8s cubic-bezier(.2, .8, .2, 1) .35s, opacity .5s .35s, rotate .8s .35s; rotate: 9deg; }
.w-santa.is-on .postcard { translate: 0 0; opacity: 1; rotate: 2deg; }
.w-santa.is-on .postmark { animation: thunk .35s cubic-bezier(.3, 1.6, .5, 1) 1.25s both; }
@keyframes thunk { from { opacity: 0; scale: 1.8; } to { opacity: 1; scale: 1; } }

/* ================= TWITCH ================= */

.w-twitch {
  --t-purple: #6c3fd6; --t-deep: #22124a; --t-lilac: #cdb8ff; --spud: #c99a57;
  background: radial-gradient(120% 80% at 80% 0%, #3b1f86 0, transparent 60%), var(--t-deep);
  color: #f1ebff;
}
.twitch-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .twitch-grid { grid-template-columns: .8fr 1.2fr; } }
.w-twitch h2 { font-weight: 800; font-variation-settings: "wdth" 75; font-size: clamp(2.8rem, 7vw, 5rem); letter-spacing: -.02em; }
.twitch-status { font-size: 1.15rem; }
.twitch-desc { color: var(--t-lilac); max-width: 46ch; }
.btn-twitch { background: #9147ff; color: #fff; box-shadow: 0 4px 0 #4f23a3; margin-top: 8px; }
.onair { display: inline-block; margin-bottom: 18px; }
.onair span {
  display: inline-block; padding: 6px 14px; border: 3px solid #5a4a7a; border-radius: 6px;
  font-weight: 800; font-variation-settings: "wdth" 80; font-size: 1.1rem; color: #5a4a7a; letter-spacing: .02em;
}
.onair.lit span { color: #fff; background: #e0182d; border-color: #ff7a85; box-shadow: 0 0 24px #e0182d, 0 0 60px rgba(224, 24, 45, .5); animation: buzz 2.4s infinite; }
@keyframes buzz { 0%, 92%, 100% { opacity: 1; } 94% { opacity: .55; } 96% { opacity: 1; } 98% { opacity: .7; } }
.crt { position: relative; }
.crt-glass {
  position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #0e0a1c;
  border: 14px solid #2e2340; box-shadow: 0 0 0 2px #4b3a66, 0 40px 60px -30px #000;
}
.crt { margin-top: 30px; }
.crt-glass iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.crt-base { height: 34px; width: 46%; margin: 0 auto; background: linear-gradient(#2e2340, #1d1530); clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%); position: relative; }
.spud { /* the potato watching the telly */
  position: absolute; right: 7%; top: -40px; width: 78px; height: 56px; z-index: 2;
  border-radius: 52% 48% 46% 54% / 60% 56% 44% 40%;
  background: radial-gradient(circle at 30% 35%, #7a5428 0 2.5px, transparent 3px), radial-gradient(circle at 64% 58%, #7a5428 0 2px, transparent 2.5px), radial-gradient(circle at 48% 26%, #7a5428 0 1.5px, transparent 2px), var(--spud);
  box-shadow: inset -8px -8px 0 rgba(0, 0, 0, .18);
  rotate: -8deg; animation: wobble 5s ease-in-out infinite;
}
@keyframes wobble { 0%, 80%, 100% { rotate: -8deg; } 86% { rotate: 4deg; translate: 0 -6px; } 92% { rotate: -12deg; translate: 0 0; } }


/* ================= interlude: shorts intro ================= */

.interlude { padding: 88px 0 64px; text-align: center; }
.interlude h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; font-variation-settings: "wdth" 80; margin-bottom: .4em; }
.interlude p { max-width: 60ch; margin-left: auto; margin-right: auto; color: var(--ink-2); font-size: 1.12rem; }
.interlude a { color: var(--ink); font-weight: 700; }

/* ================= DAILY QUIZ: Saturday-night quiz set ================= */

.w-quiz {
  --q-stage: #1e44c8; --q-ray: #2a55e0; --q-tile: #ffc93c; --q-tile-ink: #3b2600; --q-pink: #ff4f9a; --q-ink: #10173d; --q-bulb: #ffe7a0;
  background: var(--q-stage); color: #fff;
}
.sunburst { position: absolute; left: 50%; top: 50%; width: 220vmax; height: 220vmax; translate: -50% -50%; z-index: 0;
  background: repeating-conic-gradient(from 0deg, var(--q-stage) 0 7.5deg, var(--q-ray) 7.5deg 15deg);
  animation: spin 90s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.quiz-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .quiz-grid { grid-template-columns: 1.25fr .75fr; } }

.marquee { /* chasing bulbs frame */
  position: relative; padding: 18px; border-radius: 26px; background: #0d2a8f;
  box-shadow: 0 0 0 4px #0a1f6b, 0 30px 60px -25px rgba(0, 0, 0, .6);
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; inset: 4px; border-radius: 22px; pointer-events: none;
  background: radial-gradient(circle, var(--q-bulb) 0 3.5px, rgba(255, 231, 160, .25) 4.5px, transparent 7px) 0 0 / 22px 22px;
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  padding: 10px;
}
.marquee::after { background-position: 11px 11px; opacity: .25; }
.w-quiz.is-on .marquee::before { animation: chase 1s steps(1) infinite; }
.w-quiz.is-on .marquee::after { animation: chase 1s steps(1) .5s infinite; }
@keyframes chase { 0% { opacity: 1; } 50% { opacity: .25; } }
.board { position: relative; background: var(--q-ink); border-radius: 12px; padding: 30px 26px 26px; }
.handle-tag { display: inline-block; background: var(--q-pink); color: #fff; font-family: var(--f-show); font-size: .8rem; padding: 4px 12px 3px; border-radius: 4px; rotate: -3deg; margin-bottom: 18px; }
.tiles { display: flex; flex-wrap: wrap; gap: 10px 18px; font-family: var(--f-show); font-weight: 400; font-size: clamp(1.25rem, 6.2vw, 2.8rem); margin-bottom: 20px; }
.word { display: flex; gap: 6px; }
.tile { display: grid; place-items: center; width: 1.35em; height: 1.45em; background: var(--q-tile); color: var(--q-tile-ink); border-radius: 8px; box-shadow: 0 5px 0 #b8860b, 0 8px 0 var(--q-ink); }
.w-quiz .tile { opacity: 0; translate: 0 -60px; }
.w-quiz.is-on .tile { animation: hop .55s cubic-bezier(.3, 1.7, .5, 1) calc(.45s + var(--i) * .07s) both; }
@keyframes hop { from { opacity: 0; translate: 0 -60px; rotate: -10deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }
.quiz-desc { color: #c9d1ff; max-width: 52ch; }
.cue { background: #fffdf6; color: var(--q-ink); border-radius: 6px; padding: 18px 20px; margin: 22px 0; rotate: -1.5deg; box-shadow: 7px 7px 0 #000; max-width: 34rem; }
.round { font-family: var(--f-show); font-size: .8rem; color: var(--q-pink); margin-bottom: 6px; }
.cue-q { font-weight: 800; font-variation-settings: "wdth" 78; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.1; margin: 0; }
.cue-theme { margin: 8px 0 0; color: #5a5f78; font-size: .95rem; }
.flip-row { display: flex; align-items: center; gap: 14px; margin: 18px 0; color: #c9d1ff; }
.flip-row p { margin: 0; }
.flip { display: flex; gap: 4px; font-family: var(--f-show); font-size: 2.2rem; }
.flip span { position: relative; display: grid; place-items: center; width: 1.05em; height: 1.35em; background: #1b1b22; color: var(--q-tile); border-radius: 6px; overflow: hidden; }
.flip span::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: #000; }
.w-quiz.is-on .flip span { animation: flap .6s steps(4) 1.1s both; }
@keyframes flap { 0% { transform: rotateX(90deg); } 100% { transform: none; } }
.podium { list-style: none; padding: 0; margin: 0 0 18px; }
.podium li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px dashed rgba(255, 255, 255, .2); }
.podium span { color: #9aa6e8; font-size: .9rem; white-space: nowrap; }
.w-quiz .follow { color: var(--q-tile); }
.confetti { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.confetti i {
  position: absolute; top: -20px; left: calc(var(--i) * 4.2%); width: 8px; height: 14px; opacity: 0;
  background: hsl(calc(var(--i) * 47) 90% 62%); border-radius: 2px;
}
.w-quiz.is-on .confetti i { animation: fall 2.6s cubic-bezier(.3, .5, .6, 1) calc(1.3s + (var(--i) * .045s)) 1 both; }
@keyframes fall { 0% { opacity: 1; translate: 0 0; rotate: 0deg; } 100% { opacity: 0; translate: calc((var(--i) - 12) * 6px) 640px; rotate: calc(var(--i) * 70deg); } }

/* ================= DUNGEON CRAWL: torchlight ================= */

@property --r { syntax: "<length>"; inherits: true; initial-value: 300px; }
.w-dungeon {
  --stone: #1a1611; --torch: #f29a3a; --parch: #ecdcb6; --parch-ink: #3a2a17;
  --x: 50%; --y: 30%;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .35) 2px, transparent 2px) 0 0 / 120px 60px,
    linear-gradient(rgba(0, 0, 0, .35) 2px, transparent 2px) 0 0 / 120px 60px,
    linear-gradient(90deg, rgba(0, 0, 0, .35) 2px, transparent 2px) 60px 30px / 120px 60px,
    #3b3125;
  color: var(--parch);
  font-family: var(--f-fell);
}
.w-dungeon::after { /* darkness with a torch-shaped hole */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(circle var(--r) at var(--x) var(--y), rgba(242, 154, 58, .12) 0, rgba(10, 7, 4, .55) 55%, rgba(8, 6, 3, .94) 100%);
  animation: flicker 3.2s infinite;
}
@keyframes flicker { 0%, 100% { --r: 310px; } 20% { --r: 290px; } 35% { --r: 325px; } 55% { --r: 300px; } 75% { --r: 334px; } }
.dungeon-grid { display: grid; gap: 40px; align-items: center; z-index: 3 !important; }
@media (min-width: 980px) { .dungeon-grid { grid-template-columns: 1.1fr .9fr; } }
.scroll { background: var(--parch); color: var(--parch-ink); padding: 34px 32px; border-radius: 4px; position: relative;
  box-shadow: inset 0 0 40px rgba(120, 80, 30, .45), 0 20px 40px rgba(0, 0, 0, .5);
  background-image: radial-gradient(circle at 20% 30%, rgba(160, 110, 50, .15), transparent 40%), radial-gradient(circle at 80% 75%, rgba(120, 70, 20, .18), transparent 45%); }
.w-dungeon h2 { font-weight: 400; font-size: clamp(2.6rem, 6vw, 4rem); }
.w-dungeon h3 { font-weight: 400; font-style: italic; font-size: 1.5rem; margin: 18px 0 6px; }
.dungeon-desc { font-size: 1.2rem; line-height: 1.6; }
.quest { margin: 0 0 18px; padding-left: 1.6em; font-size: 1.15rem; }
.quest li { padding: 5px 0; border-bottom: 1px solid rgba(58, 42, 23, .25); }
.quest li span { float: right; font-style: italic; opacity: .75; font-size: .95rem; }
.quest li.current a { font-weight: 700; }
.quest li.current::marker { color: #9c3d12; }
.dungeon-cta { font-size: 1.1rem; margin: 0; }
.w-dungeon .follow { color: #8a2f0c; }
.w-dungeon .phone figcaption { color: var(--parch); }
.w-dungeon .scroll { opacity: 0; translate: 0 30px; transition: opacity .9s .5s, translate .9s .5s; }
.w-dungeon.is-on .scroll { opacity: 1; translate: 0 0; }

/* ================= SIXEL SPEEDWAY: pit wall ================= */

.w-speedway {
  --tarmac: #1f2327; --tarmac-2: #2a2f35; --timing: #ffd400; --purple: #a23cf0; --green: #19c37d; --amber: #ffb000;
  background: repeating-linear-gradient(90deg, var(--tarmac) 0 2px, var(--tarmac-2) 2px 3px), var(--tarmac);
  color: #e9edf2; font-family: var(--f-mono);
}
.kerb { position: absolute; inset: 0 0 auto; height: 18px; background: repeating-linear-gradient(90deg, #e22 0 40px, #fff 40px 80px); z-index: 1; }
.speed-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .speed-grid { grid-template-columns: 1.15fr .85fr; } }
.w-speedway h2 { font-family: var(--f-base); font-weight: 800; font-style: italic; font-variation-settings: "wdth" 75; font-size: clamp(2.8rem, 7.5vw, 5.4rem); letter-spacing: -.02em; text-transform: none; }
.speed-desc { color: #b9c1cb; max-width: 54ch; font-family: var(--f-base); font-size: 1.1rem; }
.gantry { display: flex; gap: 10px; background: #0f1113; padding: 10px 12px; border-radius: 10px; width: max-content; margin-bottom: 28px; box-shadow: 0 10px 0 -4px #000; }
.gantry span { display: grid; gap: 6px; background: #000; padding: 6px; border-radius: 8px; }
.gantry i { width: 24px; height: 24px; border-radius: 50%; background: #3a0d0d; }
.w-speedway.is-on .gantry i { animation: light 3.4s steps(1) forwards; animation-delay: calc(.4s + var(--i) * .45s); }
@keyframes light { 0% { background: #e0161b; box-shadow: 0 0 14px #ff2a2a; } 100% { background: #3a0d0d; box-shadow: none; } }
/* all lights hold until the 5th lights, then go out together */
.w-speedway.is-on .gantry span:nth-child(1) i { animation-duration: 3.2s; }
.w-speedway.is-on .gantry span:nth-child(2) i { animation-duration: 2.75s; }
.w-speedway.is-on .gantry span:nth-child(3) i { animation-duration: 2.3s; }
.w-speedway.is-on .gantry span:nth-child(4) i { animation-duration: 1.85s; }
.w-speedway.is-on .gantry span:nth-child(5) i { animation-duration: 1.4s; }
.tower { width: 100%; max-width: 560px; border-collapse: collapse; background: #0f1113; border-radius: 8px; overflow: hidden; font-size: .95rem; margin-bottom: 20px; }
.tower caption { text-align: left; font-weight: 700; color: var(--timing); padding: 0 0 8px; }
.tower th, .tower td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #23272c; }
.tower thead th { color: #7d8792; font-weight: 400; font-size: .8rem; }
.tower tbody th { font-weight: 700; }
.tower td { white-space: nowrap; }
.tower td:last-child { text-align: right; }
@media (max-width: 520px) { .tower th, .tower td { padding: 9px 8px; font-size: .85rem; } }
.tower td a { color: var(--timing); }
.sector { display: inline-block; vertical-align: -3px; width: 6px; height: 18px; margin-right: 10px; border-radius: 2px; background: var(--green); }
.sector.s0 { background: var(--purple); } .sector.s2 { background: var(--amber); }
.w-speedway .tower tbody tr { opacity: 0; translate: -40px 0; }
.w-speedway.is-on .tower tbody tr { transition: opacity .4s, translate .5s cubic-bezier(.2, .9, .3, 1); transition-delay: calc(3.7s + var(--i) * .08s); opacity: 1; translate: 0 0; }
.w-speedway .follow { color: var(--timing); }

/* ================= FARSIDE COLONY: pixel art dusk ================= */
/* Palette sampled from the channel art: night violet, dusk purple, rose, sunset peach, ringed planet, HUD yellow. */

.w-colony {
  --night: #1d1a4a; --violet: #3b2a6b; --dusk: #5e3480; --rose: #a24f7e; --peach: #e0866e;
  --planet: #e3a06a; --ring: #f0d9a8; --hud: #ffd23f; --hud-cream: #fff6e0; --hud-ink: #140f2a; --grow: #4fd68c; --ground: #2a1f40; --ground-top: #8a5ad1;
  --px: 6px;
  /* stepped dusk sky, like the art */
  background: linear-gradient(var(--night) 0 30%, var(--violet) 30% 50%, var(--dusk) 50% 66%, var(--rose) 66% 80%, var(--peach) 80% 100%);
  color: var(--hud-cream);
  font-family: "Pixelify Sans", var(--f-mono);
  font-variant-ligatures: none;
  padding-bottom: 0;
}
.w-colony::before { /* checker dither along each colour step */
  --c: calc(var(--px) * 2);
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    repeating-conic-gradient(var(--night) 0 25%, transparent 0 50%) 0 30% / var(--c) var(--c) repeat-x,
    repeating-conic-gradient(var(--violet) 0 25%, transparent 0 50%) 0 50% / var(--c) var(--c) repeat-x,
    repeating-conic-gradient(var(--dusk) 0 25%, transparent 0 50%) 0 66% / var(--c) var(--c) repeat-x,
    repeating-conic-gradient(var(--rose) 0 25%, transparent 0 50%) 0 80% / var(--c) var(--c) repeat-x;
}
.px-stars i { position: absolute; left: var(--x); top: var(--y); width: var(--px); height: var(--px); background: var(--hud-cream); }
.px-stars i:nth-child(3n) { background: #9cc3ff; }
.w-colony.is-on .px-stars i { animation: twinkle 2.4s steps(1) calc(var(--i) * .3s) infinite; }
@keyframes twinkle { 0%, 70% { opacity: 1; } 71%, 85% { opacity: .2; } }

.colony-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .colony-grid { grid-template-columns: 1fr 1fr; } }
.w-colony h2 { font-family: "Silkscreen", "Pixelify Sans", monospace; display: flex; flex-direction: column; line-height: .95; margin-bottom: 18px; }
.hud-title, .hud-sub { width: max-content; max-width: 100%; background: var(--hud-ink); padding: 4px 14px 6px; box-shadow: var(--px) var(--px) 0 rgba(20, 15, 42, .55); }
.hud-title { color: var(--hud); font-weight: 700; font-size: clamp(2.6rem, 10vw, 5.6rem); line-height: 1; }
.hud-sub { color: var(--hud-cream); font-weight: 400; font-size: clamp(1.6rem, 5.4vw, 3rem); line-height: 1; margin-top: -2px; }
.hud-desc { font-size: 1.25rem; line-height: 1.35; max-width: 32ch; background: rgba(20, 15, 42, .75); padding: 10px 14px; }
.hud-bar { max-width: 460px; margin: 22px 0; }
.hud-bar p { margin: 0 0 6px; font-size: 1.15rem; font-weight: 600; text-shadow: 3px 3px 0 var(--hud-ink); }
.hud-bar a { color: var(--hud); }
.bar { height: calc(var(--px) * 4); background: var(--hud-ink); padding: var(--px); box-shadow: 0 0 0 3px var(--hud-cream); }
.bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--grow) 0 calc(var(--px) * 2), #3cb874 calc(var(--px) * 2) calc(var(--px) * 3)); }
.w-colony.is-on .bar i { animation: load 4s steps(12) .6s infinite; }
.w-colony.is-on .bar.full i { animation: load 1.6s steps(10) .6s 1 forwards; }
@keyframes load { 0% { width: 0; } 80%, 100% { width: 100%; } }
.px-btn {
  display: inline-block; background: var(--hud); color: var(--hud-ink); text-decoration: none; font-weight: 700; font-size: 1.15rem;
  padding: 10px 18px; box-shadow: 0 var(--px) 0 #b8860b, 0 0 0 3px var(--hud-ink), 0 var(--px) 0 3px var(--hud-ink);
}
.px-btn:hover { translate: 0 2px; box-shadow: 0 2px 0 #b8860b, 0 0 0 3px var(--hud-ink), 0 2px 0 3px var(--hud-ink); }

.px-scene { margin: 0; justify-self: center; width: min(520px, 100%); position: relative;
  box-shadow: 0 0 0 var(--px) var(--hud-ink), 0 0 0 calc(var(--px) * 2) var(--hud-cream), calc(var(--px) * 3) calc(var(--px) * 3) 0 calc(var(--px) * 2) rgba(20, 15, 42, .55); }
.px-scene img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.w-colony .px-scene img { clip-path: inset(100% 0 0 0); }
.w-colony.is-on .px-scene img { animation: scanin 1.1s steps(15) .4s both; }
@keyframes scanin { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.colony-reel { margin-top: 48px; display: grid; }
.w-colony .phone figcaption { color: var(--hud-cream); }
.px-hills { position: relative; height: 120px; margin-top: 40px; background: #2d2150;
  clip-path: polygon(0 100%, 0 70%, 6% 70%, 6% 55%, 12% 55%, 12% 40%, 17% 40%, 17% 25%, 22% 25%, 22% 40%, 27% 40%, 27% 60%, 34% 60%, 34% 45%, 40% 45%, 40% 30%, 44% 30%, 44% 15%, 49% 15%, 49% 30%, 54% 30%, 54% 50%, 62% 50%, 62% 65%, 70% 65%, 70% 45%, 76% 45%, 76% 20%, 82% 20%, 82% 35%, 88% 35%, 88% 55%, 94% 55%, 94% 40%, 100% 40%, 100% 100%); }
.px-ground { position: relative; height: 72px; margin-top: -1px; background: repeating-conic-gradient(#33264d 0 25%, var(--ground) 0 50%) 0 0 / calc(var(--px) * 2) calc(var(--px) * 2); border-top: var(--px) solid var(--ground-top); }

.w-generic { background: var(--ink); color: #fff; }

/* ================= CREDITS ================= */

.credits { background: var(--ink); color: #e9ebf3; padding: 110px 0 90px; text-align: center; }
.credits h2 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; font-variation-settings: "wdth" 75; margin-bottom: .3em; }
.credits-lede { color: #a9afc6; max-width: 52ch; margin: 0 auto 56px; font-size: 1.1rem; }
.dept { max-width: 760px; margin: 0 auto 48px; }
.dept h3 { font-weight: 400; font-style: italic; font-size: 1.15rem; color: var(--sig-yellow); margin-bottom: 16px; }
.dept dl { margin: 0; }
.credit { padding: 10px 0; }
.credit dt { font-weight: 700; font-size: 1.3rem; font-variation-settings: "wdth" 85; word-break: break-word; }
.credit dt a { text-decoration: none; }
.credit dt a:hover { text-decoration: underline; }
.credit.star dt::after { content: " ★"; color: var(--sig-yellow); }
.credit dd { margin: 2px auto 0; color: #a9afc6; max-width: 60ch; }
.credit-site a { color: var(--sig-cyan); font-weight: 600; white-space: nowrap; }
.credits-end { margin-top: 24px; }
.credits-end a { color: #fff; font-weight: 700; }
.credits .dept { opacity: 0; translate: 0 40px; transition: opacity .8s, translate .8s; }
.credits.is-on .dept { opacity: 1; translate: 0 0; }
.credits.is-on .dept:nth-of-type(2) { transition-delay: .12s; }
.credits.is-on .dept:nth-of-type(3) { transition-delay: .24s; }
.credits.is-on .dept:nth-of-type(4) { transition-delay: .36s; }
.credits.is-on .dept:nth-of-type(5) { transition-delay: .48s; }

/* ================= footer ================= */

.foot { background: var(--card); padding: 40px 0 56px; color: var(--ink-2); font-size: .95rem; border-top: 10px solid; border-image: linear-gradient(90deg, var(--sig-white) 0 14.28%, var(--sig-yellow) 0 28.57%, var(--sig-cyan) 0 42.85%, var(--sig-green) 0 57.14%, var(--sig-magenta) 0 71.42%, var(--sig-red) 0 85.71%, var(--sig-blue) 0) 1; }
.foot code { background: #fff; padding: 1px 6px; border-radius: 4px; }
.foot-socials { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ================= no-JS and reduced motion ================= */

.no-js .world .tuner { display: none; }
.no-js .w-santa .postcard, .no-js .w-quiz .tile, .no-js .w-dungeon .scroll, .no-js .w-speedway .tower tbody tr, .no-js .credits .dept { opacity: 1; translate: none; }
.no-js .postmark { opacity: 1; }
.no-js .w-colony .px-scene img { clip-path: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tuner, .snow, .confetti { display: none; }
  .w-santa .postcard, .w-quiz .tile, .w-dungeon .scroll, .w-speedway .tower tbody tr, .credits .dept { opacity: 1 !important; translate: none !important; }
  .w-santa .postcard { rotate: 2deg; }
  .postmark { opacity: 1; }
  .w-dungeon::after { --r: 320px; }
  .w-colony .px-scene img { clip-path: none !important; }
  .bar i { width: 60%; }
}
