@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --black: #000;
  --purple: #6a3bb0;
  --purple-deep: #3f1d78;
  --orange: #f05a22;
  --yellow: #ffd21f;
  --slime: #7cf03a;
  --blue: #19a7e0;
  --green: #3dbb4a;
  --red: #e3262f;
  --white: #fff6e6;
  --bar-h: 92px;
  --pad: clamp(20px, 5vw, 72px);
  --display: "Archivo", "Arial Narrow", Impact, sans-serif;
  /* the logo's chunky black extrude, reused on display type */
  --extrude: 1px 1px 0 #000, 2px 2px 0 #000, 3px 3px 0 #000, 4px 4px 0 #000, 5px 5px 0 #000, 6px 6px 0 #000, 7px 7px 0 #000, 8px 8px 0 #000;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 400 18px/1.55 var(--display);
  font-stretch: 100%;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--yellow); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; border-radius: 2px; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--yellow); color: #000; padding: 10px 16px; font-weight: 800; }
.skip:focus { top: 12px; }

/* ---------- carnival bulbs ---------- */
.bulbs { position: relative; height: 18px; background: #120a00; }
.bulbs::before, .bulbs::after {
  content: ""; position: absolute; inset: 0;
  background-size: 36px 18px; background-repeat: repeat-x;
}
.bulbs::before { background-image: radial-gradient(circle at 9px 9px, #fff3b0 0 3px, var(--yellow) 4px 5px, rgba(255,210,31,.35) 6px, transparent 8px); }
.bulbs::after  { background-image: radial-gradient(circle at 27px 9px, #fff3b0 0 3px, var(--yellow) 4px 5px, rgba(255,210,31,.35) 6px, transparent 8px); opacity: .25; }
@media (prefers-reduced-motion: no-preference) {
  .bulbs::before { animation: blink 1.2s steps(1) infinite; }
  .bulbs::after  { animation: blink 1.2s steps(1) infinite reverse; }
}
@keyframes blink { 0% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- logo-colored stripe band (lifted from the logo's inline lines) ---------- */
.stripes {
  height: 46px;
  background:
    linear-gradient(to bottom,
      var(--blue) 0 6px, transparent 6px 10px,
      var(--green) 10px 16px, transparent 16px 20px,
      var(--yellow) 20px 26px, transparent 26px 30px,
      var(--orange) 30px 36px, transparent 36px 40px,
      var(--red) 40px 46px);
  background-color: #000;
}
.stripes--flip { transform: scaleY(-1); }

/* ---------- pinned bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: var(--bar-h);
  background: #000;
  transform: translateY(-110%);
  transition: transform .35s cubic-bezier(.2,.9,.3,1.3);
}
.bar.is-on { transform: none; }
.bar-nav {
  height: calc(var(--bar-h) - 18px);
  display: grid; grid-template-columns: 1fr 1fr 150px 1fr 1fr; align-items: center;
  max-width: 1100px; margin: 0 auto; padding: 0 var(--pad);
  font-weight: 800; font-stretch: 75%; font-size: 17px; text-transform: uppercase; letter-spacing: .02em;
}
.bar-nav a { text-decoration: none; justify-self: center; padding: 8px 4px; }
.bar-nav a:hover { color: var(--yellow); }
.bar-bulbs { position: absolute; inset: auto 0 0 0; }
.no-js-bar .bar { transform: none; }

/* ---------- the logo (h1) ---------- */
.brand { margin: 0; position: absolute; z-index: 50; left: 50%; top: 50svh; width: min(86vw, 760px); transform: translate(-50%, -58%); }
.brand-link { display: block; }
.brand img { width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,.55)); }
.js .brand { position: fixed; top: 0; transform-origin: 50% 0; will-change: transform; transform: translate(-50%, var(--y, 20vh)) scale(var(--s, 1)); }
.js .brand.is-pinned img { filter: none; }

/* ---------- hero + VHS treatment ---------- */
.hero { position: relative; height: 100svh; min-height: 520px; overflow: hidden; background: #000; }
.vhs { position: absolute; inset: 0; }
.vhs-video {
  position: absolute; inset: -2%; width: 104%; height: 104%; object-fit: cover;
  filter: saturate(1.35) contrast(1.15) brightness(.42) blur(1.2px);
}
.vhs-scan {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.42) 0 2px, rgba(255,255,255,.035) 2px 3px, transparent 3px 4px);
  mix-blend-mode: multiply;
}
.vhs-noise {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .13; mix-blend-mode: screen;
}
.vhs-track {
  position: absolute; left: 0; right: 0; top: -20%; height: 14%;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.07) 40%, rgba(255,255,255,.14) 50%, rgba(255,255,255,.05) 60%, transparent);
  filter: blur(2px);
}
.vhs-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(0,0,0,.75) 100%); }
.vhs-osd {
  position: absolute; left: var(--pad); top: 26px; margin: 0;
  font: 700 22px/1 "Courier New", monospace; color: rgba(255,255,255,.75); letter-spacing: .08em;
  text-shadow: 2px 0 rgba(255,0,80,.6), -2px 0 rgba(0,200,255,.6);
  display: flex; gap: 16px;
}
.vhs-osd span:first-child::before { content: "\25B6\FE0E  "; }
@media (prefers-reduced-motion: no-preference) {
  .vhs-noise { animation: grain .5s steps(4) infinite; }
  .vhs-track { animation: track 7s linear infinite; }
}
@keyframes grain { 0% { transform: translate(0,0); } 25% { transform: translate(-6%,4%); } 50% { transform: translate(5%,-3%); } 75% { transform: translate(-3%,-6%); } }
@keyframes track { to { top: 110%; } }

.hero-foot { position: absolute; inset: auto 0 0 0; overflow: hidden; background: rgba(0,0,0,.7); border-top: 2px solid rgba(255,210,31,.5); }
.ticker {
  list-style: none; margin: 0; padding: 12px 0; display: flex; width: max-content; gap: 0;
  font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(20px, 2.6vw, 30px); line-height: 1;
  color: var(--white);
}
.ticker li { padding: 0 22px; display: flex; align-items: center; gap: 22px; white-space: nowrap; }
.ticker li::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 10px var(--yellow); }
.ticker .t-lead { color: var(--yellow); }
@media (prefers-reduced-motion: no-preference) {
  .js .ticker { animation: tick 40s linear infinite; }
}
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- shared display type ---------- */
.section-title, .about-title, .wild-title, .format-title {
  font-family: var(--display); font-weight: 900; font-stretch: 62%; text-transform: uppercase;
  line-height: .86; letter-spacing: -.005em; margin: 0;
}
.section-title { font-size: clamp(54px, 8.4vw, 124px); text-shadow: var(--extrude); }

/* ---------- about ---------- */
.about {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 15% 0%, rgba(255,255,255,.08), transparent 45%),
    var(--purple);
  padding: clamp(64px, 10vw, 140px) var(--pad) 0;
}
.about-copy { max-width: 980px; margin: 0 auto; }
.about-copy > p { max-width: 36em; }
.about-title { font-size: clamp(56px, 9.5vw, 132px); color: #fff; text-shadow: var(--extrude); margin-bottom: 18px; }
.tagline { font-weight: 800; font-stretch: 75%; font-size: clamp(26px, 3.6vw, 42px); line-height: 1.05; color: var(--yellow); margin-bottom: 1.1em; max-width: 18em; }
.byline { font-weight: 700; font-size: 21px; line-height: 1.45; }
.byline a, .credit-name a { color: #fff; text-decoration-color: var(--yellow); }
.about-copy > p:not(.tagline):not(.byline) { font-size: 20px; max-width: 36em; }
.aired { color: #e5d9ff; }

/* format: four wheels */
.format { max-width: 1100px; margin: clamp(56px, 8vw, 100px) auto 0; }
.format-title { font-size: clamp(34px, 5vw, 60px); color: var(--white); text-align: center; margin-bottom: 30px; }
.format-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.format-list li { display: grid; justify-items: center; gap: 4px; }
.format-list .mini { width: clamp(96px, 13vw, 150px); aspect-ratio: 1; margin-bottom: 10px; }
.format-list .mini svg { width: 100%; height: 100%; filter: drop-shadow(5px 6px 0 rgba(0,0,0,.6)); }
.format-list b { font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: 40px; line-height: 1; }
.format-list span:last-child { font-size: 16px; color: #e5d9ff; max-width: 13em; line-height: 1.35; }
.mini-rot { transform-origin: 50px 50px; transition: transform 1.6s cubic-bezier(.15,.8,.25,1); }
@media (prefers-reduced-motion: no-preference) {
  .format.is-in .mini-rot { transform: rotate(var(--r, 520deg)); }
}

/* wild wheel */
.wild {
  max-width: 1200px; margin: clamp(80px, 10vw, 140px) auto 0;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 64px); align-items: end;
}
.wild-stage { position: relative; aspect-ratio: 2 / 1.06; overflow: hidden; margin-bottom: -2px; }
.wheel-scroll { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 1; will-change: transform; }
.wheel-svg { width: 100%; height: 100%; }
.wheel-rot { transform-origin: 500px 500px; transition: transform 4.2s cubic-bezier(.12,.75,.18,1); }
.wl { font-family: var(--display); font-weight: 900; font-stretch: 70%; font-size: 50px; fill: #fff; text-anchor: middle; letter-spacing: .01em; }
.wl-big { font-size: 74px; }
.flapper {
  position: absolute; z-index: 2; left: 50%; top: -4px; width: 34px; height: 64px; transform: translateX(-50%);
  background: linear-gradient(#fff, #cfcfd8); clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: drop-shadow(0 4px 0 #000);
}
.wild-copy { padding-bottom: clamp(40px, 6vw, 80px); }
.wild-title { font-size: clamp(56px, 8vw, 110px); color: var(--slime); text-shadow: var(--extrude); margin-bottom: 18px; }
.wild-copy p { font-size: 19px; max-width: 30em; }
.spin {
  font: 900 26px/1 var(--display); font-stretch: 70%; text-transform: uppercase;
  color: #000; background: var(--yellow); border: 0; padding: 16px 26px 14px; cursor: pointer;
  box-shadow: 6px 6px 0 #000; transition: transform .1s, box-shadow .1s; margin-top: 8px;
}
.spin:hover { background: #fff; }
.spin:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 #000; }
.spin[disabled] { opacity: .6; cursor: wait; }
.spin-result { min-height: 1.6em; margin-top: 16px; font-weight: 900; font-stretch: 70%; font-size: 30px; text-transform: uppercase; color: var(--yellow); }

/* ---------- episodes ---------- */
.episodes {
  background: var(--orange); color: #000;
  padding: clamp(64px, 9vw, 130px) var(--pad) clamp(64px, 9vw, 120px);
}
.episodes-head { max-width: 1200px; margin: 0 auto clamp(40px, 6vw, 80px); }
.episodes .section-title { color: #fff; }
.episodes-head p { font-size: 20px; max-width: 34em; margin-top: 22px; font-weight: 500; }

.ep {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 60px); align-items: center;
  padding: clamp(36px, 5vw, 64px) 0;
  border-top: 4px solid #000;
}
.ep--even { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.ep--even .ep-text { order: 2; }
.ep-meta { display: flex; gap: 14px; align-items: center; font-weight: 800; font-stretch: 75%; font-size: 18px; text-transform: uppercase; margin-bottom: 14px; }
.ep-num { background: #000; color: var(--yellow); padding: 6px 12px 5px; }
.ep-title {
  margin: 0 0 20px; font-weight: 900; font-stretch: 62%; text-transform: uppercase; line-height: .88;
  font-size: clamp(46px, 6.4vw, 92px); color: #fff; text-shadow: var(--extrude);
}
.ep-title span { display: block; }
.ep-vs {
  display: inline-grid !important; place-items: center; width: 1.15em; height: 1.15em; margin: .1em 0 .12em;
  font-size: .42em; line-height: 1; border-radius: 50%; background: var(--yellow); color: #000; text-shadow: none;
  box-shadow: 0 0 0 5px #000, 0 0 0 9px var(--yellow), 6px 6px 0 9px #000;
  margin-left: 10px !important;
}
.ep-teaser { font-size: 20px; line-height: 1.5; font-weight: 500; max-width: 32em; }
.ep-cast { font-size: 16px; font-weight: 600; }
.ep a.person { font-weight: 800; text-decoration-color: #fff; }
.ep a.person:hover, .ep-watch a:hover { color: #fff; }
.ep-watch { margin: 0; font-weight: 800; font-size: 16px; }

/* LED-wall frame around each player */
.ep-frame {
  padding: 16px; background-color: #000;
  background-image: radial-gradient(circle at 8px 8px, #ffe68a 0 2.5px, #a87800 3.5px 4.5px, transparent 5px);
  background-size: 16px 16px;
  box-shadow: 10px 10px 0 #000;
}
@media (prefers-reduced-motion: no-preference) {
  .ep:hover .ep-frame, .ep:focus-within .ep-frame { animation: chase .6s linear infinite; }
}
@keyframes chase { to { background-position: 16px 0; } }
.player { position: relative; aspect-ratio: 16 / 9; background: #111; overflow: hidden; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { display: block; position: absolute; inset: 0; }
.play img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.15); transition: filter .2s; }
.play:hover img, .play:focus-visible img { filter: saturate(1.3) brightness(1.08); }
.nut {
  position: absolute; left: 50%; top: 50%; width: clamp(72px, 9vw, 108px); aspect-ratio: 1; transform: translate(-50%, -50%);
  transition: transform .25s cubic-bezier(.2,.9,.3,1.4);
}
.nut svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(4px 5px 0 #000); }
.nut circle { fill: none; stroke-width: 5; }
.nut circle:nth-child(1) { fill: #000; stroke: var(--yellow); }
.nut circle:nth-child(2) { stroke: var(--orange); }
.nut circle:nth-child(3) { stroke: var(--red); }
.nut polygon { fill: #fff; }
.nut path { fill: #000; }
.play:hover .nut, .play:focus-visible .nut { transform: translate(-50%, -50%) rotate(60deg) scale(1.08); }
.play:hover .nut path, .play:focus-visible .nut path { transform: rotate(-60deg); transform-origin: 50px 50px; }
.play:focus-visible { outline-offset: -6px; }

/* ---------- credits ---------- */
.credits {
  padding: clamp(64px, 9vw, 130px) var(--pad);
  background-color: #000;
  background-image: radial-gradient(circle at 12px 12px, rgba(255,255,255,.07) 0 4px, transparent 5px);
  background-size: 24px 24px;
}
.credits .section-title { max-width: 1200px; margin: 0 auto clamp(36px, 5vw, 64px); color: var(--yellow); }
.credits-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(40px, 6vw, 96px); }
.credit-block h3 { font-weight: 800; font-stretch: 75%; font-size: 18px; color: var(--orange); margin: 0 0 6px; text-transform: uppercase; letter-spacing: .02em; }
.credit-block p { margin-bottom: 30px; max-width: 30em; }
.credit-name { font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(40px, 5vw, 60px); line-height: 1; }
.roster { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.roster li { break-inside: avoid; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0 12px; padding: 12px 0 11px; border-bottom: 2px solid rgba(255,255,255,.14); }
.roster a.person { font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: 32px; line-height: 1.05; text-decoration: none; }
.roster a.person:hover { color: var(--yellow); text-decoration: underline; }
.roster .where { grid-column: 1; font-size: 14px; display: flex; gap: 14px; }
.roster .where a { color: #cfc6b6; }
.roster .where a:hover { color: var(--yellow); }
.roster .ep-link { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 14px; font-weight: 700; color: var(--yellow); text-decoration: none; white-space: nowrap; }
.roster .ep-link:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.foot { background: var(--yellow); color: #000; padding: clamp(48px, 7vw, 90px) var(--pad) 40px; text-align: center; }
.foot-tag { font-weight: 900; font-stretch: 62%; text-transform: uppercase; font-size: clamp(40px, 7vw, 104px); line-height: .9; max-width: 14em; margin: 0 auto 30px; color: #fff; text-shadow: var(--extrude); }
.foot-small { font-size: 16px; font-weight: 600; margin: 0; }
.foot-small a { font-weight: 800; }
.foot a:hover { color: var(--purple); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .wild { grid-template-columns: 1fr; }
  .wild-copy { order: -1; padding-bottom: 8px; }
  .ep, .ep--even { grid-template-columns: 1fr; }
  .ep-text { display: contents; }
  .ep-meta { order: 1; } .ep-title { order: 2; } .ep-frame { order: 3; margin-bottom: 8px; } .ep-teaser, .ep-cast, .ep-watch { order: 4; }
  .ep { gap: 0; } .ep-frame { margin-bottom: 26px; }
  .credits-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  :root { --bar-h: 74px; }
  .bar-nav { grid-template-columns: 1fr 96px 1fr; font-size: 15px; padding: 0 8px; }
  .bar-nav a:nth-of-type(1), .bar-nav a:nth-of-type(3) { display: none; }
  .format-list { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .format-list b { font-size: 32px; }
  .roster { columns: 1; }
  .roster a.person { font-size: 28px; }
  .vhs-osd { font-size: 16px; top: 16px; }
  .ep-frame { padding: 10px; box-shadow: 6px 6px 0 #000; background-size: 10px 10px; background-image: radial-gradient(circle at 5px 5px, #ffe68a 0 2px, #a87800 2.5px 3px, transparent 3.5px); }
  body { font-size: 17px; }
  .about-copy > p:not(.tagline):not(.byline), .ep-teaser, .episodes-head p { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wheel-rot, .mini-rot { transition: none; }
}

/* Get Lost-style shadowbox, matched to the existing game-show palette. */
.fwl-lightbox{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center}
.fwl-lightbox[hidden]{display:none}
.fwl-lightbox-backdrop{position:absolute;inset:0;background:rgba(12,8,18,.86);backdrop-filter:blur(2px)}
.fwl-lightbox-box{position:relative;width:80vw;height:80vh;background:#160b26;border:3px solid var(--white);box-shadow:0 30px 80px rgba(0,0,0,.7);display:flex;flex-direction:column}
.fwl-lightbox-player{flex:1;min-height:0;background:#000}
.fwl-lightbox-player iframe{display:block;width:100%;height:100%;border:0}
.fwl-lightbox-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;border-top:3px solid var(--white)}
.fwl-lightbox-yt,.fwl-lightbox-next{font:800 13px/1.3 var(--display);letter-spacing:.04em;text-transform:uppercase}
.fwl-lightbox-yt{color:var(--white);text-decoration:none;flex-shrink:0}
.fwl-lightbox-yt:hover{color:var(--yellow)}
.fwl-lightbox-next{background:var(--yellow);color:#000;border:0;padding:12px 16px;cursor:pointer;box-shadow:3px 3px 0 var(--orange);text-align:left}
.fwl-lightbox-next:hover{background:var(--orange)}
.fwl-lightbox-close{position:absolute;top:-16px;right:-16px;z-index:2;width:40px;height:40px;border-radius:50%;border:3px solid var(--white);background:var(--orange);color:#fff;font-size:25px;line-height:1;cursor:pointer}
@media(max-width:640px){.fwl-lightbox-box{width:92vw;height:72vh}.fwl-lightbox-bar{flex-wrap:wrap;gap:10px;padding:12px}.fwl-lightbox-next{width:100%}.fwl-lightbox-yt{padding:3px 0}}

/* header: erik.xxx link, pinned to the right edge so the centred logo gap stays centred */
.bar-nav a[href="https://erik.xxx/"] { position: absolute; right: max(18px, calc((100vw - 1280px) / 2 + 18px)); top: calc((var(--bar-h) - 18px) / 2); transform: translateY(-50%); }
@media (max-width: 700px) {
  .bar-nav { grid-template-columns: 1fr 96px 1fr; grid-template-rows: 1fr 1fr; font-size: 14px; padding: 0 8px; row-gap: 0; }
  .bar-nav a { padding: 2px 4px; line-height: 1.1; }
  .bar-nav a:nth-of-type(2) { grid-column: 1; grid-row: 1; }
  .bar-nav a:nth-of-type(4) { display: block; grid-column: 3; grid-row: 1 / 3; }
  .bar-nav .bar-gap { grid-column: 2; grid-row: 1 / 3; }
  .bar-nav a[href="https://erik.xxx/"] { position: static; transform: none; grid-column: 1; grid-row: 2; }
}
