/* Netflix style study deck. Unofficial. Every visual is CSS, SVG, canvas or three.js.
   All trademarks belong to their owners. Logos are redrawn for commentary (from logo/marks.js). */

@font-face { font-family: 'Inter'; src: url('fonts/Inter-VF.ttf') format('truetype'); font-weight: 100 900; font-display: block; }
@font-face { font-family: 'Bebas Neue'; src: url('fonts/BebasNeue-Regular.ttf') format('truetype'); font-weight: 400; font-display: block; }
@font-face { font-family: 'Oswald'; src: url('fonts/Oswald-VF.ttf') format('truetype'); font-weight: 200 700; font-display: block; }

:root {
  --black: #000000;
  --ui: #141414;
  --surface: #232323;
  --surface-2: #2D2D2D;
  --text-2: #B3B3B3;
  --red: #E50914;
  --red-dark: #B20710;
  --red-hover: #C11119;
  --magenta: #B82869;
  --promo-a: linear-gradient(149deg, #192247, #210E17);
  --promo-b: linear-gradient(91deg, #261733, #151A3F);
  --ease-rail: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ground: #000000;
  --hudfill: #B3B3B3;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; }
body { color: #fff; font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
p, h1, h2 { margin: 0; font-weight: inherit; }
button { font: inherit; color: inherit; }

#viewport { position: fixed; inset: 0; overflow: hidden; background: var(--ground); transition: background .6s; touch-action: none; user-select: none; -webkit-user-select: none; }
#stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; overflow: hidden; background: #000; }
#ground { position: absolute; inset: 0; background: var(--ground); }
#gl, #fx { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; pointer-events: none; }
#gl { opacity: 0; }
.on-intro #gl { opacity: 1; }
#slides { position: absolute; inset: 0; z-index: 0; }
#hud, #embed-disclaimer { z-index: 3; }

/* ---------- slides and builds ---------- */
.slide { position: absolute; inset: 0; display: none; overflow: hidden; }
.slide.active { display: block; }
.slide.rail-in { animation: railIn .45s var(--ease-rail) both; z-index: 2; }
.slide.rail-out { animation: railOut .45s var(--ease-rail) both; z-index: 1; }
@keyframes railIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes railOut { from { transform: none; } to { transform: translateX(-36%); opacity: .0; } }

.slide [data-step] { opacity: 0; transform: translateY(14px); transition: opacity .25s ease, transform .45s var(--ease-rail); }
.slide [data-step].on { opacity: 1; transform: none; }
.slide [data-until].off { opacity: 0 !important; visibility: hidden; transition: none !important; }
.slide .cut[data-step] { transform: none; transition: opacity .18s linear; }
.slide .billboard[data-step="1"] { transform: translateX(100%); opacity: 1; transition: transform .45s var(--ease-rail); }
.slide .billboard[data-step="1"].on { transform: none; }
.slide .deal[data-step], .slide .world[data-step] { transform: translateX(100%); opacity: 1; transition: transform .45s var(--ease-rail); }
.slide .deal.on, .slide .world.on { transform: none; }
#stage.instant, #stage.instant * { transition: none !important; }
#stage.instant .slide.rail-in, #stage.instant .slide.rail-out { animation: none !important; }
.paused .amb, .still .amb { animation-play-state: paused !important; }
.reduced .amb { animation: none !important; }

/* ---------- type ---------- */
.card { font-family: 'Bebas Neue', 'Oswald', sans-serif; font-size: 150px; line-height: .98; letter-spacing: .02em; text-align: center; color: #fff; }
.slide .track, .slide [data-step].track { transition: letter-spacing 2.4s cubic-bezier(.25, .1, .25, 1), opacity .5s ease, transform .45s var(--ease-rail); }
.on .track, .track.on { letter-spacing: .12em; }
.card.big2 { font-size: 118px; line-height: 1.04; }
.label { font: 600 24px/1 'Inter'; letter-spacing: .42em; color: var(--text-2); text-indent: .42em; }
.sub { font: 400 30px/1.4 'Inter'; color: var(--text-2); }
.ep { font: 600 22px/1 'Inter'; letter-spacing: .1em; color: var(--text-2); margin-bottom: 14px; }
.title { font-family: 'Bebas Neue', sans-serif; font-size: 210px; line-height: .84; letter-spacing: .01em; color: #fff; margin-bottom: 22px; }
.title.mid { font-size: 150px; line-height: .86; }
.meta { font: 500 24px/1.2 'Inter'; color: var(--text-2); margin-bottom: 18px; }
.meta i { font-style: normal; padding: 0 8px; opacity: .7; }
.logline { font: 400 32px/1.38 'Inter'; color: #E5E5E5; max-width: 920px; margin-bottom: 10px; }
.logline.big { font-size: 40px; font-weight: 500; color: #fff; }
.word { font-family: 'Bebas Neue', sans-serif; font-size: 240px; line-height: .9; color: #fff; }
.word.red { color: var(--red); }
.count { font-family: 'Oswald', sans-serif; font-weight: 300; line-height: 1; letter-spacing: 0; white-space: nowrap; }
.count .d { display: inline-block; width: .56em; text-align: center; }
.count .c { display: inline-block; width: .22em; text-align: center; }
.count .p { display: inline-block; width: .6em; text-align: center; color: var(--red); }
.numeral { font-family: 'Bebas Neue', sans-serif; line-height: .8; color: transparent; -webkit-text-stroke: 4px rgba(179, 179, 179, .75); white-space: nowrap; }
.red { color: var(--red); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.center-stack { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 34px; padding-bottom: 40px; }
.disclaimer { position: absolute; left: 96px; bottom: 132px; font: 400 18px/1.3 'Inter'; color: var(--text-2); opacity: .8; }
.micro { position: absolute; left: 96px; bottom: 104px; font: 400 16px/1.3 'Inter'; color: #808080; }

/* ---------- chips and buttons ---------- */
.chip { position: absolute; right: 96px; bottom: 132px; padding: 14px 30px; border: 2px solid rgba(255, 255, 255, .72); border-radius: 6px; background: rgba(0, 0, 0, .45); color: #fff; font: 600 26px/1 'Inter'; cursor: pointer; overflow: hidden; transition: background .25s, border-color .25s, transform .2s; }
.chip:hover { background: var(--red-hover); border-color: var(--red-hover); }
.chip .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(255, 255, 255, .22); }
.chip .txt { position: relative; }
.btn-play { display: inline-flex; align-items: center; gap: 14px; margin-top: 18px; padding: 15px 34px 15px 26px; border: 0; border-radius: 6px; background: #fff; color: #000; font: 700 27px/1 'Inter'; cursor: pointer; transition: background .25s, transform .2s; }
.btn-play svg { width: 30px; height: 30px; fill: #000; }
.btn-play:hover { background: rgba(255, 255, 255, .75); }
.embed .chip, .embed .btn-play { pointer-events: none; }

/* ---------- intro ---------- */
.s-intro .skip { opacity: 0; transition: opacity .4s ease .3s; }
.s-intro.active .skip { opacity: 1; }
.still .s-intro .skip, .reduced .s-intro .skip { transition: none; }

/* ---------- title ---------- */
.leak { position: absolute; left: -10%; right: -10%; top: 470px; height: 140px; background: radial-gradient(50% 50% at 50% 50%, rgba(229, 9, 20, .26), rgba(184, 40, 105, .08) 45%, rgba(0, 0, 0, 0) 72%); filter: blur(6px); animation: leak 9s ease-in-out infinite alternate; }
.leak::after { content: ''; position: absolute; left: 18%; right: 18%; top: 69px; height: 2px; background: linear-gradient(90deg, rgba(229, 9, 20, 0), rgba(255, 90, 100, .55) 50%, rgba(229, 9, 20, 0)); }
@keyframes leak { from { transform: translateX(-3%) scaleX(.94); opacity: .75; } to { transform: translateX(3%) scaleX(1.04); opacity: 1; } }
.s-title .center-stack, .s-end .center-stack { gap: 40px; }

/* ---------- season cards ---------- */
.season-card { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; background: #000; }
.card-k { font: 600 26px/1 'Inter'; letter-spacing: .5em; text-indent: .5em; color: var(--text-2); }
.season-card .card { font-size: 170px; }

/* ---------- billboard ---------- */
.billboard { position: absolute; inset: 0; background: #000; }
.art { position: absolute; right: 0; top: 0; width: 1460px; height: 1080px; overflow: hidden; }
.promo-a .art { background: var(--promo-a); }
.promo-b .art { background: var(--promo-b); }
.band { position: absolute; left: -10%; width: 130%; border-radius: 50%; filter: blur(46px); mix-blend-mode: screen; opacity: .8; animation: drift 14s ease-in-out infinite alternate; }
.b1 { top: 120px; height: 150px; background: rgba(229, 9, 20, .35); animation-duration: 13s; }
.b2 { top: 360px; height: 110px; background: rgba(184, 40, 105, .42); animation-duration: 17s; animation-delay: -4s; }
.b3 { top: 560px; height: 190px; background: rgba(60, 80, 210, .30); animation-duration: 15s; animation-delay: -7s; }
.b4 { top: 820px; height: 120px; background: rgba(178, 7, 16, .40); animation-duration: 19s; animation-delay: -2s; }
@keyframes drift { from { transform: translateX(-6%) scaleY(.85); } to { transform: translateX(6%) scaleY(1.15); } }
.vig { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, #000 0%, #000 24%, rgba(0, 0, 0, .86) 36%, rgba(0, 0, 0, .25) 58%, rgba(0, 0, 0, 0) 74%),
              linear-gradient(0deg, #000 0%, rgba(0, 0, 0, .7) 16%, rgba(0, 0, 0, 0) 42%),
              linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 18%); }
.bb .info, .s-sound .info { position: absolute; left: 96px; bottom: 150px; width: 1000px; }

/* kibble: one lamp lit in a dark room, abstract */
.kib-lamp { position: absolute; left: 1010px; top: 0; width: 40px; height: 520px; }
.kib-cord { position: absolute; left: 19px; top: 0; width: 2px; height: 404px; background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .22)); }
.kib-bulb { position: absolute; left: 6px; top: 400px; width: 28px; height: 38px; border-radius: 48% 48% 46% 46%; background: radial-gradient(60% 55% at 50% 58%, #FFF6EC, #FFD9B8 55%, #6b5a50 100%); opacity: .18; }
.kib-glow { position: absolute; left: -380px; top: 40px; width: 800px; height: 760px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 228, 200, .34), rgba(255, 200, 160, .1) 40%, rgba(0, 0, 0, 0) 100%); opacity: 0; mix-blend-mode: screen; }
.billboard.on .kib-bulb { animation: bulb 1.1s linear .55s both; }
.billboard.on .kib-glow { animation: bulbGlow 1.1s linear .55s both; }
@keyframes bulb { 0% { opacity: .18; box-shadow: none; } 8%, 20% { opacity: 1; box-shadow: 0 0 30px 8px rgba(255, 220, 190, .8); } 13% { opacity: .25; box-shadow: none; } 28%, 100% { opacity: 1; box-shadow: 0 0 34px 10px rgba(255, 220, 190, .75); } }
@keyframes bulbGlow { 0% { opacity: 0; } 8%, 20% { opacity: .9; } 13% { opacity: .05; } 28%, 100% { opacity: 1; } }
.reduced .billboard.on .kib-bulb, .still .billboard.on .kib-bulb, #stage.instant .billboard.on .kib-bulb { animation: none; opacity: 1; box-shadow: 0 0 34px 10px rgba(255, 220, 190, .75); }
.reduced .billboard.on .kib-glow, .still .billboard.on .kib-glow, #stage.instant .billboard.on .kib-glow { animation: none; opacity: 1; }

/* first disc: the white envelope */
.envelope { position: absolute; left: 0; top: 0; width: 520px; height: 340px; will-change: transform; transform-style: preserve-3d; transform-origin: 50% 50%; }
.env-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; transform-origin: 50% 50%; }
.env-back { transform: rotateY(0deg); border-radius: 6px; background: #F4F4F4; }
.env-front { transform: rotateY(180deg); border-radius: 6px; background: #FFFFFF; box-shadow: 0 40px 60px rgba(0, 0, 0, .6), inset 0 0 0 2px #fff; }
.env-front canvas { position: absolute; left: 0; top: 0; width: 520px; height: 340px; }
.envelope svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .6)); }
[data-id="first-disc"] .logline.l2.on { transition-delay: .75s; }
.envelope rect { fill: #F4F4F4; stroke: #fff; stroke-width: 2; }
.envelope path { fill: none; stroke: #C9C9C9; stroke-width: 3; stroke-linejoin: round; }
.envelope path.seam { stroke: #DADADA; stroke-width: 2; }

/* no due dates: the month */
.cal { position: absolute; left: 700px; top: 170px; width: 640px; padding: 34px 38px 38px; background: rgba(20, 20, 20, .72); border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; backdrop-filter: blur(6px); }
.cal-h { font: 700 34px/1 'Inter'; margin-bottom: 26px; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal-dow span { font: 600 16px/1 'Inter'; color: var(--text-2); letter-spacing: .1em; text-align: center; padding-bottom: 10px; }
.cal-grid span { position: relative; height: 62px; border-radius: 6px; background: rgba(255, 255, 255, .05); font: 500 20px/1 'Inter'; color: #ddd; padding: 9px 10px; }
.cal-grid span.blank { background: transparent; }
.cal-grid b { position: absolute; left: 8px; right: 8px; bottom: 7px; height: 22px; border: 1.5px solid rgba(255, 255, 255, .85); border-radius: 4px; font: 700 12px/19px 'Inter'; letter-spacing: .14em; text-align: center; color: #fff; transition: opacity .55s ease, transform .55s ease, filter .55s ease; }
.cal-grid b.gone { opacity: 0; transform: translateY(-10px) scale(.9); filter: blur(6px); }

/* IPO: the 2001 banner is the title treatment */
.title-mark { position: relative; width: 640px; height: 297px; }
.title-mark canvas { position: absolute; left: 0; top: 0; width: 640px; height: 457px; }
/* IPO ticker */
/* the line starts 60 px clear of the banner's final right edge (96 + 440.6 px), so it never reads as part of the mark */
.ticker { position: absolute; left: 137px; top: 260px; width: 1323px; height: 520px; overflow: visible; }
[data-id="ipo"] .title-mark { margin-top: 18px; margin-bottom: 32px; }
.ticker path { fill: none; stroke: #B3B3B3; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; opacity: .6; }

/* Watch Now */
.streamlines { position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0) 0 26px, rgba(255, 255, 255, .05) 26px 27px); -webkit-mask: linear-gradient(90deg, transparent, #000 40%, #000 80%, transparent); mask: linear-gradient(90deg, transparent, #000 40%, #000 80%, transparent); animation: stream 2.6s linear infinite; }
@keyframes stream { from { background-position: 0 0; } to { background-position: 0 54px; } }
.counter-block { position: absolute; right: 96px; top: 210px; width: 760px; }
.counter-block .word { font-size: 104px; margin: 6px 0 22px; }
.counter-block .logline { font-size: 28px; margin-top: 22px; }
.pbar { position: relative; height: 6px; background: rgba(255, 255, 255, .22); border-radius: 0; overflow: hidden; }
.pbar.big { height: 8px; width: 700px; }
.pbar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--red); }

/* The box */
.box-wrap { position: absolute; left: 610px; top: 360px; width: 460px; height: 320px; perspective: 1400px; }
.box3d { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.box3d .f { position: absolute; display: block; backface-visibility: hidden; }
.box3d .top { width: 420px; height: 300px; left: -210px; top: -150px; transform: rotateX(90deg) translateZ(35px); background: radial-gradient(120% 90% at 30% 20%, #4a4a4a, #232323 55%, #161616); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), inset 0 0 60px rgba(184, 40, 105, .12); border-radius: 12px; }
.box3d .bottom { width: 420px; height: 300px; left: -210px; top: -150px; transform: rotateX(-90deg) translateZ(35px); background: #0b0b0b; border-radius: 12px; }
.box3d .front { width: 420px; height: 70px; left: -210px; top: -35px; transform: translateZ(150px); background: linear-gradient(180deg, #2f2f2f, #141414); border-radius: 6px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); }
.box3d .back { width: 420px; height: 70px; left: -210px; top: -35px; transform: rotateY(180deg) translateZ(150px); background: linear-gradient(180deg, #262626, #111); border-radius: 6px; }
.box3d .left { width: 300px; height: 70px; left: -150px; top: -35px; transform: rotateY(-90deg) translateZ(210px); background: linear-gradient(180deg, #232323, #101010); border-radius: 6px; }
.box3d .right { width: 300px; height: 70px; left: -150px; top: -35px; transform: rotateY(90deg) translateZ(210px); background: linear-gradient(180deg, #2c2c2c, #121212); border-radius: 6px; }
.box-shadow { position: absolute; left: 30px; right: 30px; top: 250px; height: 70px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0)); will-change: transform, opacity; }

/* ---------- N06: fifty million ---------- */
.tc { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 34px; padding: 0 160px 40px; }
.s-fifty .tc .card { font-size: 160px; }
.s-fifty .tc .sub { max-width: 1180px; }
.lights-copy { position: absolute; inset: 0; transform: none !important; }
.lights-copy .line { position: absolute; left: 0; right: 0; top: 832px; text-align: center; font: 500 38px/1.2 'Inter'; color: #fff; }
.lights-copy .line.l2 { top: 892px; font-size: 30px; font-weight: 400; color: var(--text-2); }
.tally { position: absolute; right: 104px; top: 54px; font: 300 64px/1 'Oswald'; color: #fff; text-align: right; }
.tally .n { letter-spacing: .02em; }

/* ---------- N10: 26 episodes ---------- */
.deal { position: absolute; inset: 0; background: #000; }
.n26 { position: absolute; left: 30px; top: 214px; font-size: 540px; }
.deal .ep { position: absolute; left: 96px; top: 96px; }
.row-title { position: absolute; left: 96px; top: 134px; font: 700 40px/1 'Inter'; color: #fff; }
.row26-mask { position: absolute; left: 470px; right: 0; top: 318px; height: 200px; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent 0, #000 70px); mask: linear-gradient(90deg, transparent 0, #000 70px); }
.row26 { position: absolute; left: 70px; top: 14px; display: flex; gap: 12px; will-change: transform; }
.ep-tile { position: relative; flex: 0 0 auto; width: 300px; height: 169px; border-radius: 6px; background: var(--surface); overflow: hidden; }
.ep-tile .lit { position: absolute; inset: 0; opacity: 0; }
.ep-tile em { position: absolute; left: 12px; bottom: 10px; font: 700 18px/1 'Inter'; font-style: normal; color: #6b6b6b; }
.row26.lit .ep-tile .lit { opacity: 1; }
.row26.lit .ep-tile em { color: #fff; }
.row26.flash .ep-tile { box-shadow: 0 0 40px rgba(255, 255, 255, .35); }
.deal .copy { position: absolute; left: 96px; bottom: 150px; width: 1180px; }
.deal .logline { max-width: 1180px; }

/* ---------- N11: the sound ---------- */
.wave-labels { position: absolute; left: 0; top: 430px; width: 1920px; height: 20px; font: 600 16px/20px 'Inter'; letter-spacing: .3em; text-transform: uppercase; color: var(--text-2); }
.wave-labels span { position: absolute; transform: translateX(-50%); padding: 0 10px 0 calc(10px + .3em); background: #000; opacity: 0; transition: opacity .3s ease, color .3s ease; }
.wave-labels span.hit { color: #fff; }
.wave-labels span.hit { opacity: 1; }
.s-sound .info { bottom: 150px; width: 1240px; }
.s-sound .title.mid { font-size: 116px; white-space: nowrap; margin-bottom: 16px; }
.s-sound .logline { max-width: 1180px; }

/* ---------- N12: everywhere ---------- */
.world { position: absolute; inset: 0; }
.n130 { position: absolute; left: 56px; top: 110px; font-size: 470px; -webkit-text-stroke-color: rgba(179, 179, 179, .55); }
.world .info { position: absolute; left: 96px; bottom: 150px; width: 1040px; }
.world .logline { max-width: 1040px; }
.world .logline.l2.off { display: none; }
.reduced .app-icon { transition: opacity .2s; }

/* the N in your hand: a layered app icon */
.app-icon { position: absolute; left: 1210px; top: 250px; width: 380px; height: 380px; perspective: 1100px; opacity: 0; pointer-events: none; }
.ai-tilt { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
/* the real app tile is flat black: a 1 px rim and a faint glare (alpha .05) are the only light on it */
.ai-tile { position: absolute; inset: 0; border-radius: 9.2%; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); overflow: hidden; }
.ai-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .05) 50%, rgba(255, 255, 255, 0) 60%); background-size: 260% 100%; background-position: var(--glare, 50%) 0; }
.ai-floor { position: absolute; left: 6%; right: 6%; top: 88%; height: 18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .9), rgba(0, 0, 0, 0)); transform: translateZ(-30px); filter: blur(8px); }
.ai-layer { position: absolute; left: 119.05px; top: 61.09px; width: 142.02px; height: 257.8px; }
.ai-layer svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* ---------- N13: previously on ---------- */
.prev-label { position: absolute; left: 96px; top: 88px; text-indent: 0; }
.s-prev .label { transition: letter-spacing 2.4s cubic-bezier(.25, .1, .25, 1); letter-spacing: .2em; }
.s-prev.active .label { letter-spacing: .42em; }
.era-lines { position: absolute; left: 0; right: 0; top: 672px; height: 44px; }
.era-line { position: absolute; left: 0; right: 0; text-align: center; font: 500 32px/1.2 'Inter'; color: #E5E5E5; }
.era-rail { position: absolute; left: 260px; top: 820px; width: 1400px; height: 0; }
.era-track { position: absolute; left: 0; right: 0; top: -2px; height: 4px; background: rgba(255, 255, 255, .2); }
.era-played { position: absolute; left: 0; top: -2px; height: 4px; width: 0; background: var(--red); }
.era-tick { position: absolute; top: -9px; width: 2px; height: 18px; margin-left: -1px; background: rgba(179, 179, 179, .7); }
.era-handle { position: absolute; left: 0; top: -26px; width: 52px; height: 52px; margin-left: -26px; padding: 0; border: 0; background: transparent; cursor: grab; touch-action: none; }
.era-handle::before { content: ''; position: absolute; left: 14px; top: 14px; width: 24px; height: 24px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(229, 9, 20, .18); transition: transform .2s; }
.era-handle:hover::before { transform: scale(1.15); }
.era-handle:active { cursor: grabbing; }
.era-year { position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%); font: 300 48px/1 'Oswald'; color: #fff; letter-spacing: .02em; pointer-events: none; }
.embed .era-handle, .reduced .era-handle { pointer-events: none; cursor: default; }
.s-prev.launch .prev-dom { opacity: 0 !important; transition: none !important; }

/* ---------- N14: finale ---------- */
.fin-stage { position: absolute; inset: 0; will-change: opacity, filter; }
.home-n { position: absolute; left: 96px; top: 28px; width: 24.24px; height: 44px; }
.home-n svg { display: block; width: 100%; height: 100%; }
.env-mini i svg { position: absolute; left: 38px; top: 26px; width: 120px; height: auto; }
.fin-count { position: absolute; left: 96px; top: 156px; }
.fin-count .meta { font-size: 26px; letter-spacing: .02em; margin-bottom: 8px; }
.fin-count .word { font-size: 150px; }
.row-label { position: absolute; left: 96px; top: 452px; font: 700 34px/1 'Inter'; color: #E5E5E5; }
.cw-persp { position: absolute; left: 0; top: 506px; width: 1920px; height: 400px; perspective: 2200px; perspective-origin: 10% 40%; }
.cw-shift { position: absolute; left: 0; top: 0; will-change: transform; }
.cw-row { position: absolute; left: 96px; top: 0; display: flex; align-items: flex-start; gap: 18px; }
.cw { position: relative; flex: 0 0 auto; width: 500px; will-change: transform, opacity, width, margin; }
.cw-tile { position: relative; width: 500px; height: 281px; }
.tv { position: absolute; inset: 0; border-radius: 6px; overflow: hidden; background: var(--surface); transform-origin: 50% 98%; will-change: transform, filter, opacity; }
.tv-line { position: absolute; left: 0; right: 0; top: 278px; height: 4px; margin-top: -2px; border-radius: 4px; background: #fff; box-shadow: 0 0 18px 4px rgba(255, 255, 255, .85), 0 0 50px 12px rgba(229, 9, 20, .55); opacity: 0; transform: scaleX(1); will-change: transform, opacity; }
.cw-name { margin-top: 16px; font: 500 24px/1.2 'Inter'; color: #E5E5E5; }
.cw .pbar { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: rgba(120, 120, 120, .55); }
.cw .pbar.grey i { width: 0; }
.art-mini { position: absolute; inset: 0 0 6px 0; overflow: hidden; }
.env-mini { background: var(--promo-a); }
.env-mini i { position: absolute; left: 50%; top: 50%; width: 196px; height: 128px; margin: -64px 0 0 -98px; background: #F1F1F1; border-radius: 4px; transform: rotate(-6deg); box-shadow: 0 20px 40px rgba(0, 0, 0, .55); }
.env-mini i::before { content: ''; position: absolute; left: 6px; right: 6px; top: 4px; height: 74px; border: 0 solid #C5C5C5; border-bottom-width: 2px; border-right-width: 2px; transform: none; clip-path: polygon(0 0, 100% 0, 50% 100%); background: linear-gradient(160deg, #e3e3e3, #f6f6f6); }
.stream-mini { background: var(--promo-b); }
.stream-mini i { position: absolute; left: -10%; width: 120%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 120, 150, .9), rgba(255, 255, 255, 0)); box-shadow: 0 0 14px rgba(184, 40, 105, .8); }
.stream-mini i:nth-child(1) { top: 60px; } .stream-mini i:nth-child(2) { top: 100px; left: 10%; width: 70%; } .stream-mini i:nth-child(3) { top: 132px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(229, 9, 20, 1), rgba(255, 255, 255, 0)); }
.stream-mini i:nth-child(4) { top: 166px; left: -30%; } .stream-mini i:nth-child(5) { top: 204px; left: 20%; width: 60%; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(110, 130, 255, .9), rgba(255, 255, 255, 0)); }
.grid-mini { background: linear-gradient(149deg, #10131f, #1c0b12); display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 26px 22px; }
.grid-mini span { border-radius: 3px; background: linear-gradient(135deg, rgba(229, 9, 20, .55), rgba(60, 80, 210, .45)); }
.grid-mini span:nth-child(3n) { background: linear-gradient(135deg, rgba(184, 40, 105, .7), rgba(25, 34, 71, .8)); }
.grid-mini span:nth-child(4n+1) { background: linear-gradient(135deg, rgba(255, 255, 255, .35), rgba(184, 40, 105, .4)); }
.dots-mini { background: radial-gradient(circle at 50% 50%, #1b1f3d, #0b0b14 70%); }
.dots-mini span { position: absolute; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, .8); }
.fin-date { position: absolute; left: 96px; top: 872px; max-width: none; font-size: 34px; color: #fff; }
.fin-card .card { font-size: 150px; line-height: 1.02; }
.fin-card .sub { max-width: 1100px; }

/* ---------- N14: post-credits ---------- */
.pc-label { position: absolute; left: 96px; top: 88px; text-indent: 0; }
.big-num { position: absolute; left: 70px; top: 96px; height: 560px; }
.big-num .numeral { position: absolute; left: 0; top: 0; font-size: 560px; line-height: 1; letter-spacing: .01em; }
.big-num .numeral.fill { color: var(--red); -webkit-text-stroke: 4px var(--red); clip-path: inset(100% 0 0 0); }
.numeral .lead { opacity: .28; }
/* the number loads like an episode: a player bar under it, the red fill following its playhead */
.pc-bar { position: absolute; left: 86px; top: 598px; width: 1500px; height: 4px; background: rgba(255, 255, 255, .2); }
.pc-played { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--red); }
.pc-knob { position: absolute; left: 0; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--red); }
.s-post .info { position: absolute; left: 96px; top: 640px; width: 1400px; }
.s-post .logline { max-width: 1240px; }

/* ---------- N16: end ---------- */
.s-end .chip { bottom: 132px; }
/* once the N is whole (HUD gone), the lines drop to the HUD zone: one N leg of clear space under the mark */
.s-end .disclaimer, .s-end .micro { transition: transform .45s var(--ease-rail); }
.hud-hidden .s-end .disclaimer, .hud-hidden .s-end .micro { transform: translateY(72px); }
.s-end .next-ep { opacity: 0; transition: opacity .3s ease, background .25s, border-color .25s; }

/* ---------- grain ---------- */
/* the wrap is static and carries the blend and the holes (marks stay flat colour); the grain inside moves */
#grain-wrap { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; opacity: .5; mix-blend-mode: overlay; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
#grain { position: absolute; inset: -128px; pointer-events: none; animation: grain .9s steps(5) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-37px, 21px); } 40% { transform: translate(29px, -44px); } 60% { transform: translate(-12px, 58px); } 80% { transform: translate(51px, 9px); } 100% { transform: translate(0, 0); } }

/* ---------- HUD: the player ---------- */
#hud { position: absolute; left: 96px; right: 96px; bottom: 28px; transition: opacity .4s ease; pointer-events: none; }
.hud-hidden #hud, .still #hud { opacity: 0; }
.hud-ep { font: 500 22px/1 'Inter'; margin-bottom: 16px; color: #fff; }
.hud-ep b { font-weight: 700; }
.hud-ep span { color: var(--text-2); margin-left: 16px; }
.hud-row { display: flex; align-items: center; gap: 24px; }
.hud-track { position: relative; flex: 1; height: 4px; }
.hud-seg { position: absolute; top: 50%; height: 4px; margin-top: -2px; background: rgba(255, 255, 255, .2); transform-origin: 50% 50%; }
.hud-seg .sf { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #B3B3B3; }
.hud-seg .sr { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #E50914; }
.hud-seg .sw { position: absolute; inset: 0; background: #fff; opacity: 0; }
.hud-seg .sl { position: absolute; left: 0; bottom: calc(100% + 14px); font: 600 20px/1 'Inter'; color: #B3B3B3; white-space: nowrap; opacity: 0; }
.hud-knob { position: absolute; top: 50%; left: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--red); transform: scale(0); }
.hud-notch { position: absolute; top: 50%; width: 2px; height: 40px; margin: -20px 0 0 -1px; background: #000; opacity: 0; }
.hud-fold { position: absolute; left: 0; top: 50%; width: 40px; height: 24px; margin-top: -12px; background: linear-gradient(90deg, rgba(0, 0, 0, .85), rgba(0, 0, 0, 0)); opacity: 0; }
.hud-flare { position: absolute; top: 50%; width: 180px; height: 180px; margin: -90px 0 0 -90px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 1), rgba(255, 236, 236, .55) 25%, rgba(255, 255, 255, 0)); opacity: 0; pointer-events: none; }
.hud-count { font: 500 20px/1 'Inter'; color: var(--text-2); font-variant-numeric: tabular-nums; min-width: 84px; text-align: right; }
.hud-title { position: absolute; left: 0; bottom: 92px; font: 500 24px/1 'Inter'; color: #E5E5E5; opacity: 0; }
.hud-big { position: absolute; right: 0; bottom: 0; font: 300 64px/1 'Oswald'; color: #fff; opacity: 0; white-space: pre; display: flex; }
.hud-big .rc { display: inline-block; height: 1em; line-height: 1em; overflow: hidden; clip-path: inset(0); vertical-align: top; }
.hud-big .rc.roll { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 24%, #000 76%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 24%, #000 76%, transparent 100%); }
.hud-big .rc b { display: block; font-weight: 300; height: 1em; line-height: 1em; text-align: center; }
.hud-ghost { position: absolute; top: 50%; height: 4px; margin-top: -2px; border: 1px dashed rgba(255, 255, 255, .42); opacity: 0; pointer-events: none; }
#hud.snap, #hud.snap * { transition: none !important; }
.hud-chip { position: absolute; right: 0; bottom: 44px; padding: 13px 24px; border-radius: 6px; background: rgba(45, 45, 45, .92); border: 1px solid rgba(255, 255, 255, .22); font: 600 22px/1 'Inter'; color: #fff; overflow: hidden; opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease; }
.hud-chip.show { opacity: 1; transform: none; }
.hud-chip .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(255, 255, 255, .2); }
.hud-chip .txt { position: relative; }
#embed-disclaimer { display: none; position: absolute; left: 96px; bottom: 98px; font: 400 16px/1.3 'Inter'; color: var(--text-2); }
.embed #embed-disclaimer { display: block; }
.embed.own-disclaimer #embed-disclaimer { display: none; }
.embed .s-title .disclaimer, .embed .s-end .disclaimer { font-size: 18px; }

/* ---------- overlays outside the stage ---------- */
#notes { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 92vw); padding: 28px 28px 40px; background: rgba(20, 20, 20, .96); border-left: 1px solid #333; color: #ddd; font: 400 15px/1.55 'Inter'; overflow: auto; transform: translateX(100%); transition: transform .3s var(--ease-rail); z-index: 20; word-break: break-word; }
.show-notes #notes { transform: none; }
#notes .notes-h { font: 700 13px/1.3 'Inter'; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); margin-bottom: 14px; }
.slide .notes { display: none; }
#notes .notes-body { display: block; }
#help { position: fixed; left: 50%; top: 50%; width: min(460px, 92vw); padding: 28px 32px; background: rgba(20, 20, 20, .97); border: 1px solid #333; border-radius: 8px; transform: translate(-50%, -50%); font: 400 16px/1.6 'Inter'; color: #ddd; display: none; z-index: 21; }
.show-help #help { display: block; }
#help .help-h { font: 700 14px/1 'Inter'; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); margin-bottom: 16px; }
#help ul { margin: 0; padding: 0; list-style: none; }
#help b { color: #fff; font-weight: 600; }
#hint { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 10px 16px; border-radius: 6px; background: rgba(20, 20, 20, .9); color: #ccc; font: 500 13px/1.3 'Inter'; white-space: nowrap; opacity: 0; transition: opacity .5s ease; pointer-events: none; z-index: 19; max-width: 94vw; overflow: hidden; text-overflow: ellipsis; }
.show-hint #hint { opacity: 1; }
.embed #hint, .still #hint, .embed #help, .embed #notes, .still #notes { display: none; }
#turn { display: none; position: fixed; left: 50%; top: 18px; transform: translateX(-50%); font: 500 13px/1.3 'Inter'; color: #9a9a9a; white-space: nowrap; }
.portrait:not(.embed):not(.still) #turn { display: block; }
.portrait #hint { white-space: normal; text-align: center; width: 90vw; }

/* ---------- round 2 ---------- */
/* no due dates: struck in red, in reading order */
.cal-grid b { overflow: visible; }
/* Season 1 keeps its red budget: the strike is white, and the chips read at 15 px */
.cal-grid span { height: 70px; }
.cal-grid b { left: 6px; right: 6px; bottom: 7px; height: 28px; font: 700 15px/25px 'Inter'; letter-spacing: .12em; }
.cal-grid b .strike { position: absolute; left: -5px; right: -5px; top: 50%; height: 3px; margin-top: -1.5px; background: #FFFFFF; border-radius: 2px; transform: scaleX(0); transform-origin: 0 50%; transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
.cal-grid b.gone { opacity: 1; transform: none; filter: none; color: rgba(255, 255, 255, .55); border-color: rgba(255, 255, 255, .34); }
.cal-grid b.gone .strike { transform: scaleX(1); }

/* the box: a row of tiles; the flat box lifts out of its tile and slides away */
.boxrow { position: absolute; left: 440px; top: 280px; width: 1500px; height: 300px; }
.bt { position: absolute; top: 0; width: 360px; height: 203px; border-radius: 6px; overflow: hidden; background: var(--surface); }
.bt-a { left: 0; background: linear-gradient(149deg, #192247, #210E17); }
.bt-home { left: 374px; background: #151515; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.bt-b { left: 748px; background: linear-gradient(91deg, #261733, #151A3F); }
.bt-c { left: 1122px; background: linear-gradient(149deg, #210E17, #192247); }
.bt-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(120, 120, 120, .55); }
.bt-bar::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 46%; background: var(--red); }
.bt-d { left: 1496px; background: linear-gradient(91deg, #151A3F, #261733); }
.bt-c .bt-bar::after { width: 18%; } .bt-b .bt-bar::after { width: 72%; } .bt-d .bt-bar::after { width: 34%; }
.bt-b, .bt-c, .bt-d, .bt-home { will-change: transform; }
.bt-slot { position: absolute; inset: 10px; border: 2px dashed rgba(255, 255, 255, .45); border-radius: 4px; opacity: 0; }
.flatbox { position: absolute; left: 434px; top: 72px; width: 240px; height: 58px; border-radius: 12px; background: linear-gradient(180deg, #555, #262626); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 14px 26px rgba(0, 0, 0, .55); will-change: transform; }
.fb-light { position: absolute; right: 18px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px rgba(255, 255, 255, .7); }

/* sight unseen: the missing pilot, then 26 tiles that fill in order */
.ep-tile.pilot { background: transparent; border: 2px dashed rgba(179, 179, 179, .55); display: flex; align-items: center; justify-content: center; }
.ep-tile.pilot span { font: 700 22px/1 'Inter'; letter-spacing: .12em; text-transform: uppercase; color: #B3B3B3; }
.ep-tile .lit { transition: opacity .3s ease; }
.ep-tile.on .lit { opacity: 1; }
.ep-tile .epn { position: absolute; right: 14px; bottom: -14px; font: 400 150px/1 'Bebas Neue'; color: transparent; -webkit-text-stroke: 2px rgba(179, 179, 179, .28); transition: -webkit-text-stroke-color .3s ease; }
.ep-tile.on .epn { -webkit-text-stroke-color: rgba(255, 255, 255, .8); }
.ep-tile.on em { color: #fff; }
.ep-tile .rb { position: absolute; left: 0; bottom: 0; height: 5px; width: 0; background: var(--red); }
.row26.released .ep-tile .rb { width: 100%; transition: width .35s cubic-bezier(.2, .8, .2, 1); }

/* portrait phones: the disclaimer again, readable */
#portrait-disclaimer { display: none; position: fixed; left: 16px; right: 16px; bottom: 14px; font: 400 11px/1.4 'Inter'; color: #9a9a9a; text-align: center; }
.portrait:not(.embed):not(.still) #portrait-disclaimer { display: block; }
.portrait #hint { bottom: 64px; }
.poster .chip, .poster #hint { display: none !important; }
