/* LIGHTS OUT: the marketing site.
   The palette and type are the game's own (docs/SPEC.md, section 11):
   black with three lights (DS glow blue, hallway amber, ceiling-star green),
   sticker brights only on paper, and amber only ever means the door. */

@font-face { font-family: 'Sedgwick Ave Display'; src: url(../fonts/sedgwick.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Permanent Marker'; src: url(../fonts/marker.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Anton'; src: url(../fonts/anton.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Patrick Hand'; src: url(../fonts/patrick.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'VT323'; src: url(../fonts/vt323.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Archivo'; src: url(../fonts/archivo.woff2) format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --wall: #0e1117; --wall-2: #151a24; --wall-3: #1d2431; --night: #05070b; --line: #2a3344;
  --on-wall: #d8dde7; --on-wall-2: #97a1b4;
  --glow: #bfe3ff; --amber: #ffad3b; --hall: #ffd894; --riot: #e0301e; --led: #ff2a1f;
  --paper: #ebe5d4; --paper-2: #ddd4bc; --ink: #151515; --ink-2: #34322d; --pen: #24357e; --margin: #e46b6b;
  --red-pen: #b8261a; --slime: #a6e22e; --pink: #ff4f9a; --zine: #f2c230; --navy: #0b1630;
  --f-tag: 'Sedgwick Ave Display', 'Permanent Marker', cursive;
  --f-cut: 'Anton', Impact, 'Arial Narrow Bold', sans-serif;
  --f-marker: 'Permanent Marker', 'Comic Sans MS', cursive;
  --f-pen: 'Patrick Hand', 'Comic Sans MS', cursive;
  --f-pixel: 'VT323', 'Courier New', monospace;
  --f-body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --paper-bg: var(--paper) url(../img/paper.webp) center / cover;
  --torn: polygon(0 2%, 8% 0, 22% 1.5%, 40% 0, 61% 1.2%, 80% 0, 100% 1.8%, 99% 30%, 100% 62%, 98.5% 100%, 76% 98.6%, 52% 100%, 30% 98.8%, 9% 100%, 0 98%, 1.2% 66%, 0 34%);
  --burst: polygon(50% 0, 59% 13%, 75% 7%, 77% 23%, 93% 25%, 87% 40%, 100% 50%, 87% 60%, 93% 75%, 77% 77%, 75% 93%, 59% 87%, 50% 100%, 41% 87%, 25% 93%, 23% 77%, 7% 75%, 13% 60%, 0 50%, 13% 40%, 7% 25%, 23% 23%, 25% 7%, 41% 13%);
  --star: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--wall); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
main { overflow-x: clip; }
body { margin: 0; background: var(--wall); color: var(--on-wall); font: 400 18px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
kbd { font: 400 .95em/1 var(--f-pixel); padding: .1em .4em; border: 1px solid currentColor; border-radius: 4px; white-space: nowrap; }
::selection { background: var(--pink); color: var(--ink); }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 95; padding: 10px 14px; background: var(--paper); color: var(--ink); font-family: var(--f-cut); text-transform: uppercase; }
.skip:focus { top: 12px; }

/* film grain over everything, like a copy of a copy */
body::after { content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- shared pieces ---------- */
.tape { position: absolute; width: clamp(84px, 11vw, 140px); height: auto; z-index: 3; pointer-events: none; opacity: .92; }
.tape-tl { top: -18px; left: -26px; transform: rotate(-28deg); }
.tape-tr { top: -16px; right: -26px; transform: rotate(24deg); }
.tape-br { bottom: -18px; right: -24px; transform: rotate(-22deg); }

.section-head { max-width: 1200px; margin: 0 auto clamp(28px, 4vw, 48px); padding: 0 var(--gutter); }
.hand-sub { margin: .7em 0 0; font: 400 clamp(20px, 2.2vw, 26px)/1.3 var(--f-marker); color: var(--paper); transform: rotate(-1deg); max-width: 36ch; }

/* cover lines, cut out of a 2004 Thrasher: a small kicker and a big bar */
.cover { display: flex; flex-direction: column; align-items: flex-start; gap: .18em; }
.cover-small { display: inline-block; padding: .22em .55em .16em; font: 400 clamp(15px, 1.6vw, 20px)/1 var(--f-cut); text-transform: uppercase; letter-spacing: .05em;
  background: var(--ink); color: var(--paper); transform: rotate(-2deg); box-shadow: 3px 3px 0 rgba(0, 0, 0, .6); }
.cover-big { display: inline-block; padding: .04em .2em .03em; font: 400 clamp(50px, 8.6vw, 118px)/.95 var(--f-cut); text-transform: uppercase; letter-spacing: -.005em;
  background: var(--paper-bg); color: var(--ink); transform: rotate(-1deg); box-shadow: 7px 8px 0 rgba(0, 0, 0, .55); }
.cover-alt { background: var(--zine); transform: rotate(1.4deg); margin-left: .5em; }
.how .cover-big { background: var(--riot); color: var(--paper); }
.week .cover-big { background: var(--ink); color: var(--paper); box-shadow: 7px 8px 0 rgba(0, 0, 0, .55), 0 0 0 2px #2a2d33; }
.yourds .cover-big { background: var(--glow); }

/* ransom-note headings: JS cuts each letter out of a different scrap.
   Without JS they stay a plain cut-out headline. */
.ransom { font: 400 clamp(38px, 6vw, 72px)/1.05 var(--f-cut); text-transform: uppercase; letter-spacing: .01em; color: var(--paper); }
.ransom-xl { font-size: clamp(46px, 8.5vw, 112px); }
.ransom.is-cut { line-height: 1.22; }
.ransom .word { display: inline-block; white-space: nowrap; margin-right: .3em; }
.ransom .word:last-child { margin-right: 0; }
.ransom .ch { position: relative; display: inline-block; padding: .03em .11em .05em; margin: 0 -.035em; line-height: 1; vertical-align: middle;
  box-shadow: .04em .06em 0 rgba(0, 0, 0, .55); }
.ransom .ch-paper { background: var(--paper-bg) !important; }
.ransom .ch-dots { background-image: radial-gradient(rgba(0, 0, 0, .22) 1px, transparent 1.5px) !important; background-size: 4px 4px !important; }
.ransom .ch-noise::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); mix-blend-mode: overlay; }

.label { display: inline-block; margin: 0 0 .7em; padding: .15em .55em; font: 400 20px/1.1 var(--f-pixel); text-transform: uppercase; letter-spacing: .06em; border: 1px solid currentColor; color: var(--glow); }
.label-pink { color: var(--pink); }

/* buttons are things: a scrap of paper, a die-cut sticker */
.btn { --rot: -1.5deg; display: inline-flex; align-items: center; gap: .55em; min-height: 52px; padding: .55em 1.1em .5em;
  font: 400 clamp(19px, 1.8vw, 23px)/1 var(--f-cut); text-transform: uppercase; letter-spacing: .02em; text-decoration: none;
  border: 0; cursor: pointer; transform: rotate(var(--rot)); transition: transform .14s ease, box-shadow .14s ease; }
.btn:hover { transform: rotate(calc(var(--rot) * -1)) translateY(-2px); }
.btn:active { transform: rotate(0deg) translateY(1px); }
.btn-paper { background: var(--paper-bg); color: var(--ink); box-shadow: 5px 6px 0 rgba(0, 0, 0, .65);
  clip-path: polygon(1% 4%, 22% 0, 48% 3%, 77% 0, 99% 2%, 100% 46%, 98% 97%, 71% 100%, 40% 96%, 13% 100%, 0 94%, 2% 50%); }
.btn-paper:focus-visible, .btn-hide:focus-visible { outline: 3px solid var(--ink); outline-offset: -8px; }
.btn-sticker { --rot: 2deg; background: var(--pink); color: var(--ink); border-radius: 14px; box-shadow: 0 0 0 5px #fff, 5px 8px 0 5px rgba(0, 0, 0, .45); }
.btn-big { min-height: 60px; font-size: clamp(22px, 2.2vw, 28px); padding: .55em 1.3em; }
.tri { width: 0; height: 0; border-style: solid; border-width: .38em 0 .38em .62em; border-color: transparent transparent transparent var(--riot); }

.px { image-rendering: pixelated; image-rendering: crisp-edges; width: 100%; height: auto; }
.ds-screen { position: relative; padding: 7px; background: #2b2d31; border-radius: 6px; box-shadow: inset 0 0 0 2px #1a1b1e, 0 0 0 3px #9da2aa, 0 10px 24px rgba(0, 0, 0, .5); }
.ds-screen img { border-radius: 1px; background: #000; aspect-ratio: 4 / 3; }

/* things slap onto the page as you scroll (JS adds .in) */
.js [data-slap] { opacity: 0; scale: 1.07; transition: opacity .18s ease-out, scale .42s cubic-bezier(.2, 1.6, .4, 1); }
.js [data-slap].in { opacity: 1; scale: 1; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--gutter) clamp(72px, 10vh, 120px); overflow: hidden; isolation: isolate; background: var(--night); }
/* the loop floats in the dark like the DS glow itself, feathered into black */
.hero-video { position: absolute; right: 1vw; top: 50%; width: min(68vw, 1400px); height: auto; aspect-ratio: 16 / 9; transform: translateY(-48%); object-fit: cover; z-index: -3;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 64%, transparent 94%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 64%, transparent 94%); }
.hero-shade { position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, var(--night) 20%, rgba(5, 7, 11, .65) 34%, rgba(5, 7, 11, 0) 52%),
    linear-gradient(0deg, var(--wall) 0, rgba(14, 17, 23, 0) 22%),
    linear-gradient(180deg, rgba(5, 7, 11, .85) 0, rgba(5, 7, 11, 0) 20%); }

.stars { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.stars i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); background: var(--slime); clip-path: var(--star);
  opacity: .5; filter: drop-shadow(0 0 6px rgba(166, 226, 46, .9)); animation: twinkle 5s ease-in-out var(--d) infinite; }
@keyframes twinkle { 0%, 100% { opacity: .45; } 50% { opacity: .85; } }

.topnav { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px var(--gutter); }
.topnav .mark { font: 400 30px/1 var(--f-tag); color: var(--paper); text-decoration: none; text-shadow: 2px 2px 0 var(--riot); transform: rotate(-3deg); }
.topnav .nav-get { display: inline-block; padding: .3em .7em .25em; font: 400 18px/1 var(--f-cut); text-transform: uppercase; letter-spacing: .03em; text-decoration: none;
  background: var(--pink); color: var(--ink); border-radius: 10px; transform: rotate(4deg); box-shadow: 0 0 0 4px #fff, 3px 5px 0 4px rgba(0, 0, 0, .45); transition: transform .14s; }
.topnav .nav-get:hover { transform: rotate(-3deg) scale(1.05); }

.hero-copy { position: relative; max-width: 760px; }
.logo { font: 400 clamp(82px, 14vw, 214px)/.86 var(--f-tag); color: var(--paper); margin: 0 0 .18em -.04em; transform: rotate(-4deg); transform-origin: 0 100%;
  text-shadow: .045em .05em 0 var(--riot), 0 0 .5em rgba(235, 229, 212, .12); }
.hero-top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-bottom: clamp(10px, 2.4vh, 24px); }
.clock { display: inline-flex; align-items: flex-start; gap: .25em; padding: .1em .35em .05em; background: #0b0606; border-radius: 8px;
  box-shadow: inset 0 0 0 2px #1d1212, 0 18px 40px -10px rgba(255, 42, 31, .45);
  font: 400 clamp(44px, 5vw, 76px)/1 var(--f-pixel); color: var(--led);
  text-shadow: 0 0 4px rgba(255, 42, 31, .95), 0 0 18px rgba(255, 42, 31, .6), 0 0 48px rgba(255, 42, 31, .35); }
.clock b { font-weight: 400; animation: blink 1s steps(1) infinite; }
.clock-am { font-size: .3em; margin-top: .35em; opacity: .9; }
@keyframes blink { 50% { opacity: .15; } }
.kicker { display: inline-block; margin: 0; max-width: 32ch; padding: .25em .6em; font: 400 clamp(15px, 1.5vw, 18px)/1.25 var(--f-cut); text-transform: uppercase; letter-spacing: .04em;
  background: var(--paper-bg); color: var(--ink); transform: rotate(-2deg); box-shadow: 4px 4px 0 rgba(0, 0, 0, .6); }
.hero-line { margin: .5em 0 .1em; font: 600 clamp(19px, 2vw, 25px)/1.3 var(--f-body); color: var(--on-wall); max-width: 26ch; }
.hero-hand { margin: 0 0 1.1em; font: 400 clamp(28px, 3.4vw, 44px)/1.1 var(--f-marker); color: var(--paper); transform: rotate(-2deg); transform-origin: 0 50%; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 22px 28px; align-items: center; }
.hero-hint { position: absolute; right: var(--gutter); bottom: 26px; margin: 0; font: 400 20px/1 var(--f-pen); color: var(--on-wall-2); transform: rotate(-3deg); }

/* the logo comes on like a tube light */
.js .logo[data-flicker] { animation: tube 1.5s linear .35s both; }
@keyframes tube {
  0% { opacity: 0; } 6% { opacity: .9; } 8% { opacity: .05; } 13% { opacity: 1; } 15% { opacity: .2; }
  22% { opacity: .95; } 24% { opacity: .35; } 34%, 100% { opacity: 1; } }

/* ---------- PITCH: a flyer that went through the copier twice ---------- */
.pitch { position: relative; z-index: 4; padding: 0 var(--gutter); margin-top: -40px; }
.flyer { position: relative; max-width: 900px; margin: 0 auto; padding: clamp(28px, 4vw, 52px) clamp(22px, 5vw, 60px) clamp(26px, 3.5vw, 44px);
  background: var(--paper-bg); color: var(--ink); transform: rotate(-1.2deg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 8px 10px 0 rgba(0, 0, 0, .55); isolation: isolate; }
.flyer-xerox { position: absolute; z-index: -1; right: 3%; top: 6%; width: 52%; height: 88%; object-fit: cover; object-position: 62% 50%;
  filter: grayscale(1) contrast(2.4) brightness(1.55); mix-blend-mode: multiply; opacity: .78; pointer-events: none; clip-path: var(--torn); }
.flyer h2 { margin-bottom: .45em; position: relative; }
.flyer-body { position: relative; max-width: 56ch; margin-bottom: .9em; font: 500 clamp(17px, 1.8vw, 21px)/1.95 var(--f-body); color: var(--ink); }
.flyer-body > span, .flyer-note > span { background: #fbfaf5; padding: .12em .35em; -webkit-box-decoration-break: clone; box-decoration-break: clone; box-shadow: 1px 1px 0 rgba(0, 0, 0, .12); }
.flyer-body strong { font: 400 1.08em/1 var(--f-cut); letter-spacing: .03em; background: var(--slime); padding: 0 .2em; }
.flyer-note { position: relative; margin: 0; font: 400 clamp(24px, 2.4vw, 28px)/1.6 var(--f-pen); color: var(--red-pen); transform: rotate(-1.5deg); }

/* ---------- TRAILER ---------- */
.trailer { padding: clamp(80px, 11vw, 140px) var(--gutter) clamp(50px, 7vw, 80px); }
.trailer .cover { max-width: 1180px; margin: 0 auto clamp(30px, 4vw, 48px); }
.tv { position: relative; max-width: 1180px; margin: 0 auto; padding: clamp(8px, 1.2vw, 14px); background: var(--paper-bg);
  transform: rotate(.5deg); box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .9), 10px 12px 0 rgba(0, 0, 0, .55); }
.tv-frame { position: relative; background: #000; aspect-ratio: 16 / 9; overflow: hidden; }
.tv-video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.tv-video:focus-visible { outline: 3px solid var(--glow); outline-offset: -3px; }
.tv:not(.is-playing) .tv-video { pointer-events: none; }
.play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  border: 0; padding: 0; cursor: pointer; background: radial-gradient(ellipse at center, rgba(5, 7, 11, 0) 30%, rgba(5, 7, 11, .55) 100%); color: var(--paper); }
.play:focus-visible { outline: 3px solid var(--glow); outline-offset: -10px; }
.play-sticker { display: flex; align-items: center; gap: .3em; padding: .3em .7em .3em .55em; font: 400 clamp(34px, 6vw, 72px)/1 var(--f-cut); text-transform: uppercase;
  background: var(--riot); color: var(--paper); border-radius: 18px; transform: rotate(-4deg); box-shadow: 0 0 0 6px #fff, 8px 12px 0 6px rgba(0, 0, 0, .5); transition: transform .14s ease; }
.play-tri { width: 0; height: 0; border-style: solid; border-width: .34em 0 .34em .56em; border-color: transparent transparent transparent var(--paper); }
.play-note { font: 400 clamp(18px, 2vw, 24px)/1 var(--f-marker); text-shadow: 0 2px 6px #000; transform: rotate(2deg); }
.play:hover .play-sticker { transform: rotate(3deg) scale(1.05); }
.tv.is-playing .play { display: none; }
.trailer-note { max-width: 1180px; margin: clamp(26px, 3vw, 38px) auto 0; padding-right: 10%; font: 400 clamp(21px, 2.2vw, 27px)/1.35 var(--f-pen); color: var(--on-wall-2); }

/* ---------- TAPE STRIP ---------- */
.strip { position: relative; z-index: 2; margin: clamp(30px, 5vw, 60px) -4vw; padding: .45em 0 .35em; transform: rotate(-2.2deg); overflow: hidden;
  background: #e8dcb0; box-shadow: 0 8px 18px rgba(0, 0, 0, .5); }
.strip::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .04) 0 2px, transparent 2px 9px); }
.strip-track { display: flex; width: max-content; animation: crawl 48s linear infinite; }
.strip-track span { font: 400 clamp(22px, 3vw, 36px)/1.15 var(--f-marker); color: var(--ink); text-transform: uppercase; white-space: nowrap; padding: 0 .55em; }
.strip-track span::after { content: '\2605'; margin-left: 1.1em; color: var(--riot); font-family: var(--f-body); }
@keyframes crawl { to { transform: translateX(-50%); } }

/* ---------- TWO GAMES ---------- */
.two { padding: clamp(70px, 9vw, 120px) 0 clamp(40px, 6vw, 80px); }
.two-grid { max-width: 1260px; margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3.5vw, 48px); align-items: start; }
.half { position: relative; overflow: hidden; border: 1px solid var(--line); }
.half-copy { padding: clamp(22px, 3vw, 36px); }
.half-copy p { color: var(--on-wall); }
.half-title { font: 400 clamp(44px, 5.5vw, 76px)/.95 var(--f-cut); text-transform: uppercase; color: var(--paper); margin-bottom: .35em; }
.half-room { background: var(--night); transform: rotate(-.6deg); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9); }
.half-room .half-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 70% 60%; }
.half-nc { background: var(--navy); transform: rotate(.7deg); margin-top: clamp(0px, 6vw, 70px);
  background-image: radial-gradient(rgba(191, 227, 255, .13) 1.2px, transparent 1.6px); background-size: 14px 14px; }
.nc-pair { position: relative; padding: clamp(18px, 3vw, 32px) clamp(18px, 3vw, 32px) 0; }
.nc-cover { width: 74%; aspect-ratio: 1; object-fit: cover; transform: rotate(-3deg); box-shadow: 0 0 0 6px #fff, 10px 14px 0 6px rgba(0, 0, 0, .45); }
.ds-screen-tilt { position: absolute; right: clamp(14px, 3vw, 30px); bottom: -14px; width: 52%; transform: rotate(5deg); }
.half-nc .half-copy { padding-top: clamp(36px, 5vw, 56px); }
.nc-title.is-cut { font-size: clamp(40px, 5vw, 66px); }
.ticks { margin-top: 1.1em; display: grid; gap: .45em; }
.ticks li { position: relative; padding-left: 1.6em; font: 400 clamp(20px, 2vw, 23px)/1.3 var(--f-pen); color: var(--paper); }
.ticks li::before { content: ''; position: absolute; left: 0; top: .5em; width: .9em; height: 3px; background: var(--glow); box-shadow: 0 0 8px rgba(191, 227, 255, .7); }
.ticks-nc li::before { width: .8em; height: .8em; top: .2em; background: var(--slime); box-shadow: none; clip-path: var(--star); }

/* ---------- HOW A NIGHT GOES: torn prints, taped down ---------- */
.how { padding: clamp(70px, 9vw, 120px) 0 clamp(60px, 8vw, 110px); }
.steps { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: clamp(56px, 8vw, 110px); }
.step { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(26px, 4vw, 64px); align-items: center; }
.step-r { grid-template-columns: 1fr 1.25fr; }
.step-r .print { order: 2; }
.print { position: relative; filter: drop-shadow(7px 9px 0 rgba(0, 0, 0, .55)); }
.print > img:not(.tape) { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #000; clip-path: var(--torn); filter: contrast(1.18) saturate(.85); }
.print-l { transform: rotate(-1.8deg); }
.print-r { transform: rotate(1.6deg); }
.print-slit { filter: none; transform: none; margin: 0 calc(var(--gutter) * -1); }
.print-slit > img:not(.tape) { aspect-ratio: 1300 / 470; clip-path: none; filter: none; }
.step-copy { position: relative; }
.step-n { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; margin-bottom: .2em; font: 400 clamp(50px, 6vw, 80px)/1 var(--f-cut);
  background: var(--riot); color: var(--paper); transform: rotate(-6deg); box-shadow: 5px 6px 0 rgba(0, 0, 0, .6); clip-path: polygon(3% 6%, 96% 0, 100% 92%, 6% 100%); }
.step:nth-child(2) .step-n { background: var(--paper); color: var(--ink); transform: rotate(5deg); }
.step:nth-child(3) .step-n { background: var(--zine); color: var(--ink); transform: rotate(-3deg); }
.step:nth-child(4) .step-n { background: var(--glow); color: var(--ink); transform: rotate(7deg); }
.step-title { font: 400 clamp(46px, 5.6vw, 78px)/.95 var(--f-cut); text-transform: uppercase; color: var(--paper); margin: .1em 0 .3em; }
.step-copy p { font-size: clamp(18px, 1.6vw, 20px); color: var(--on-wall); max-width: 40ch; }

/* ---------- CAUGHT: the only fully lit frame on the page ---------- */
.caught { position: relative; min-height: min(92vh, 900px); display: flex; align-items: center; overflow: hidden; isolation: isolate; background: #1a0f05; }
.caught-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; z-index: -2; }
.caught-shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(20, 9, 2, .9) 0, rgba(20, 9, 2, .66) 36%, rgba(20, 9, 2, .05) 66%),
              linear-gradient(0deg, var(--wall) 0, rgba(14, 17, 23, 0) 18%), linear-gradient(180deg, var(--wall) 0, rgba(14, 17, 23, 0) 14%); }
.caught-copy { max-width: 680px; padding: 0 var(--gutter); }
.stamp { display: inline-block; margin: 0 0 .35em -.32em; padding: .08em .3em .02em; font: 400 clamp(64px, 10vw, 150px)/1 var(--f-cut); text-transform: uppercase; letter-spacing: .02em;
  color: var(--riot); border: .07em solid var(--riot); border-radius: .08em; transform: rotate(-9deg);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.4 1.75'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.4 1.75'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.caught-quote { font: 400 clamp(30px, 4vw, 52px)/1.1 var(--f-marker); color: var(--paper); margin-bottom: .5em; transform: rotate(-1.5deg); }
.caught-body { font-size: clamp(18px, 1.7vw, 21px); color: #f1e3cf; max-width: 38ch; }

/* ---------- THE HALL LIGHT TEST: built from the game's own frames ---------- */
.test { padding: clamp(80px, 10vw, 130px) 0 clamp(60px, 8vw, 100px); }
.room { position: relative; max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }
.room-scene { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; border: 1px solid var(--line); isolation: isolate; }
.frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .18s linear, filter .4s; }
.frame-screen { position: absolute; left: 37.4%; top: 8.9%; width: 24.6%; height: 33%; opacity: 0; transition: opacity .18s; }
.frame-screen img { width: 100%; height: 100%; filter: brightness(.92); }
.hall-glow { position: absolute; right: -6%; bottom: 8%; width: 30%; height: 34%; opacity: 0; pointer-events: none;
  background: radial-gradient(ellipse at 70% 70%, rgba(255, 216, 148, .7), rgba(255, 173, 59, .25) 40%, rgba(255, 173, 59, 0) 70%); mix-blend-mode: screen; }
.lids span { position: absolute; left: -4%; right: -4%; height: 0; z-index: 4; background: #000; transition: height .22s ease-in; }
.lid-top { top: 0; border-radius: 0 0 50% 50% / 0 0 12% 12%; }
.lid-bottom { bottom: 0; border-radius: 50% 50% 0 0 / 12% 12% 0 0; }
.room-cue { position: absolute; z-index: 5; left: 4%; top: 6%; margin: 0; max-width: 60%; font: 400 clamp(18px, 2.6vw, 30px)/1.15 var(--f-marker); color: var(--paper);
  text-shadow: 0 2px 0 #000, 0 0 14px rgba(0, 0, 0, .9); transform: rotate(-2deg); }
.room-cue:empty { display: none; }
.room-stamp { position: absolute; z-index: 6; left: 50%; top: 50%; margin: 0; padding: .06em .3em 0; font: 400 clamp(40px, 7vw, 92px)/1 var(--f-cut); text-transform: uppercase; color: var(--riot);
  border: .07em solid var(--riot); border-radius: .08em; background: rgba(20, 9, 2, .35); opacity: 0; transform: translate(-50%, -50%) rotate(-10deg) scale(1.6); transition: opacity .12s, transform .2s cubic-bezier(.2, 1.6, .4, 1); }

.room[data-state='idle'] .frame-skate, .room[data-state='skating'] .frame-skate, .room[data-state='cue'] .frame-skate,
.room[data-state='safe'] .frame-skate, .room[data-state='won'] .frame-skate, .room[data-state='away'] .frame-skate { opacity: 1; }
.room[data-state='light'] .frame-light, .room[data-state='knob'] .frame-light, .room[data-state='false'] .frame-light { opacity: 1; }
.room[data-state='hidden'] .frame-dark, .room[data-state='early'] .frame-dark, .room[data-state='falsehid'] .frame-dark { opacity: 1; }
.room[data-state='check'] .frame-check { opacity: 1; }
.room[data-state='caught'] .frame-caught { opacity: 1; }
.room[data-state='idle'] .frame, .room[data-state='won'] .frame, .room[data-state='away'] .frame { filter: brightness(.5); }
.room[data-state='idle'] .frame-screen, .room[data-state='won'] .frame-screen, .room[data-state='away'] .frame-screen { opacity: .5; }
.room[data-state='skating'] .frame-screen, .room[data-state='cue'] .frame-screen, .room[data-state='safe'] .frame-screen,
.room[data-state='light'] .frame-screen, .room[data-state='knob'] .frame-screen, .room[data-state='false'] .frame-screen { opacity: 1; }
.room[data-state='light'] .hall-glow, .room[data-state='knob'] .hall-glow, .room[data-state='false'] .hall-glow { opacity: 1; animation: hallpulse 1.1s ease-in-out infinite; }
@keyframes hallpulse { 50% { opacity: .55; } }
.room[data-state='hidden'] .lids span, .room[data-state='falsehid'] .lids span { height: 44%; }
.room[data-state='early'] .lids span { height: 30%; }
.room[data-state='caught'] .room-stamp { opacity: 1; transform: translate(-50%, -50%) rotate(-10deg) scale(1); }

.room-hud { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.hud-night { margin: 0; font: 400 24px/1 var(--f-pixel); color: var(--glow); text-transform: uppercase; white-space: nowrap; }
.hud-sep { color: var(--on-wall-2); }
.hud-bar { flex: 1; height: 10px; background: var(--wall-3); overflow: hidden; }
.hud-bar span { display: block; height: 100%; width: 0; background: var(--amber); box-shadow: 0 0 12px rgba(255, 173, 59, .8); }

.room-card { position: relative; max-width: 600px; margin: 18px 0 0; padding: clamp(16px, 2.6vw, 24px) clamp(18px, 3vw, 28px) clamp(12px, 2vw, 18px);
  background: var(--paper-bg); color: var(--ink); transform: rotate(-.8deg); box-shadow: 8px 10px 0 rgba(0, 0, 0, .6); }
.card-title { margin: 0 0 .3em; font: 400 clamp(26px, 3.4vw, 40px)/1.05 var(--f-cut); text-transform: uppercase; }
.card-body { margin: 0; font: 400 clamp(19px, 2vw, 23px)/1.3 var(--f-pen); color: var(--ink-2); }
.card-body kbd { color: var(--ink); }
.room[data-state='caught'] .card-title { color: var(--riot); }
.room-controls { display: flex; flex-wrap: wrap; gap: 20px 26px; margin-top: 22px; align-items: center; }
/* hiding is the safe move, so it is DS-glow blue, not hall amber */
.btn-hide { --rot: 1.5deg; min-height: 64px; padding: .5em 1.4em; font-size: clamp(24px, 3vw, 32px); background: var(--glow); color: var(--ink); box-shadow: 6px 7px 0 rgba(0, 0, 0, .65);
  clip-path: polygon(0 6%, 30% 0, 70% 4%, 100% 0, 98% 52%, 100% 96%, 66% 100%, 33% 95%, 2% 100%); }
.btn-hide kbd { font-size: .62em; border-color: rgba(0, 0, 0, .5); }
.btn-hide[aria-disabled='true'] { background: var(--wall-3); color: var(--on-wall-2); box-shadow: none; cursor: default; transform: rotate(var(--rot)); }
.btn-hide[aria-disabled='true'] kbd { border-color: var(--line); }
.btn-hide[aria-disabled='true']:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; }

/* ---------- THE WEEK ---------- */
.week { padding: clamp(70px, 9vw, 120px) 0 clamp(60px, 8vw, 100px); }
.warn-key { max-width: 1260px; margin: 0 auto 34px; padding: 0 var(--gutter); display: flex; align-items: center; gap: 14px; font: 400 21px/1.3 var(--f-pen); color: var(--on-wall-2); }
.warn-key .warn-bar { flex: 0 0 60px; width: 60px; }
.nights { max-width: 1260px; margin: 0 auto; padding: 14px var(--gutter) 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(30px, 3vw, 40px) clamp(22px, 2.4vw, 32px); }
.night { position: relative; display: flex; flex-direction: column; padding: 0 18px 18px; background: var(--paper-bg); color: var(--ink); box-shadow: 6px 8px 0 rgba(0, 0, 0, .55); }
.night:nth-child(odd) { transform: rotate(-.9deg); }
.night:nth-child(even) { transform: rotate(.8deg); }
.night:nth-child(3n) { transform: rotate(-.3deg); }
.night-tab { align-self: flex-start; margin: -12px 0 14px -6px; padding: .2em .6em .1em; background: var(--tab, var(--paper-2)); color: var(--ink);
  font: 400 21px/1 var(--f-pixel); transform: rotate(-2.5deg); box-shadow: 3px 3px 0 rgba(0, 0, 0, .45); }
.night-tab b { font: 400 25px/1 var(--f-cut); margin-right: .25em; letter-spacing: .03em; }
.night-tab-plain { background: var(--paper); color: var(--ink); }
.night .ds-screen { margin-bottom: 14px; }
.night-name { font: 400 27px/1.05 var(--f-marker); margin: 0 0 .3em; }
.night-line { margin: 0 0 .7em; font: 500 16px/1.45 var(--f-body); color: var(--ink-2); }
.night-house { margin: 0 0 .9em; font: 400 19px/1.25 var(--f-pen); color: var(--pen); }
.night-house span { display: block; font: 400 16px/1.2 var(--f-pixel); text-transform: uppercase; letter-spacing: .06em; color: #5a5445; }
.night-warn { margin: auto 0 0; display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px dashed rgba(21, 21, 21, .25); }
.warn-bar { display: block; height: 9px; width: calc(var(--w) / 4 * 100%); max-width: 100%; background: var(--amber); box-shadow: 0 0 0 1px rgba(0, 0, 0, .2); }
.night-warn .warn-bar { flex: 0 0 auto; width: calc(var(--w) / 4 * 70%); }
.warn-s { font: 400 22px/1 var(--f-pixel); color: #8a4e06; }
.night-shells { background: #111; color: var(--paper); background-image: none; }
.night-shells .night-line { color: #cfc7b3; }
.night-shells .night-house { color: var(--glow); }
.night-shells .night-house span { color: var(--on-wall-2); }
.shells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 10px; margin: 6px 0 18px; }
.shells svg { display: block; width: 100%; max-width: 44px; margin: 0 auto; color: var(--c); filter: drop-shadow(2px 3px 0 rgba(0, 0, 0, .5)); }
.shells li:nth-child(odd) svg { transform: rotate(-6deg); }
.shells li:nth-child(even) svg { transform: rotate(5deg); }
.night-link { font: 400 22px/1 var(--f-marker); color: var(--pink); text-decoration: none; transform: rotate(-2deg); display: inline-block; }
.night-link:hover { text-decoration: underline; }

/* ---------- YOUR DS (3D) ---------- */
.yourds { padding: clamp(70px, 9vw, 120px) 0 clamp(50px, 7vw, 90px); }
.yourds-grid { max-width: 1260px; margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(20px, 3vw, 44px); align-items: center; }
.stage { position: relative; margin-bottom: 30px; }
.stage .gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .5s; cursor: grab; outline: none; }
.stage .gl.is-dragging { cursor: grabbing; }
.stage.is-live .gl { opacity: 1; }
.stage-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .4s; }
.stage.is-live .stage-fallback { opacity: 0; }
.stage-hint { position: absolute; left: 50%; top: 100%; margin: 6px 0 0; transform: translateX(-50%); font: 400 19px/1 var(--f-pixel); color: var(--on-wall-2); letter-spacing: .05em; text-transform: uppercase;
  white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .4s; }
.stage.is-live .stage-hint { opacity: 1; }
.stage-ds { aspect-ratio: 4 / 3; background: radial-gradient(ellipse 42% 46% at 50% 50%, rgba(191, 227, 255, .14), rgba(191, 227, 255, 0) 72%); }
.yourds-side { display: grid; gap: 22px; align-content: start; }
.btn-lid { justify-self: start; }
.shell-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shell-picker button { display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; width: 100%; padding: 8px 10px; text-align: left;
  background: transparent; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.shell-picker button:hover { border-color: var(--on-wall-2); }
.shell-picker svg { grid-row: 1 / 3; width: 38px; color: var(--c); filter: drop-shadow(2px 3px 0 rgba(0, 0, 0, .5)); transform: rotate(-4deg); }
.shell-name { font: 400 17px/1.1 var(--f-cut); text-transform: uppercase; letter-spacing: .02em; color: var(--paper); }
.shell-unlock { font: 400 16px/1.1 var(--f-pen); color: var(--on-wall-2); }
.shell-picker button[aria-pressed='true'] { border-color: var(--glow); background: rgba(191, 227, 255, .08); box-shadow: 0 0 18px rgba(191, 227, 255, .15); }
.shell-picker button[aria-pressed='true'] svg { transform: rotate(3deg) scale(1.08); }

/* ---------- STICKER SHEET ---------- */
.sheet-wrap { padding: clamp(60px, 8vw, 110px) var(--gutter); }
.sheet { position: relative; max-width: 1180px; margin: 0 auto; padding: clamp(30px, 4.5vw, 60px); background: #f6f3ea; color: var(--ink);
  transform: rotate(.4deg); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 10px 12px 0 rgba(0, 0, 0, .5);
  display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(26px, 4vw, 56px); align-items: start; }
.sheet::before { content: ''; position: absolute; inset: 14px; border: 2px dashed rgba(21, 21, 21, .18); pointer-events: none; }
.sheet h2 { grid-column: 1 / -1; color: var(--ink); }
.stickers { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(30px, 3.4vw, 46px) clamp(18px, 2.4vw, 30px); align-items: start; }
.stk:nth-child(2) { margin-top: 26px; } .stk:nth-child(4) { margin-top: -8px; } .stk:nth-child(6) { margin-top: 18px; }
.stk p { margin: 14px 0 0; font: 400 clamp(18px, 1.8vw, 21px)/1.25 var(--f-pen); color: var(--ink-2); max-width: 22ch; }
.stk-face { display: inline-grid; place-items: center; text-align: center; font: 400 clamp(21px, 2.2vw, 28px)/1 var(--f-cut); text-transform: uppercase; letter-spacing: .02em;
  background: var(--bg); color: var(--fg, var(--ink)); transform: rotate(var(--r)); box-shadow: 0 0 0 5px #fff, 0 0 0 6px rgba(0, 0, 0, .08), 4px 7px 0 5px rgba(0, 0, 0, .18); }
.stk-rect .stk-face { padding: .35em .6em .3em; border-radius: 12px; }
.stk-circle .stk-face { width: 4.6em; aspect-ratio: 1; border-radius: 50%; line-height: .95; }
.stk-pill .stk-face { padding: .35em 1em .3em; border-radius: 999px; transform: rotate(var(--r)) skewX(-10deg); }
.stk-burst .stk-face { padding: 7px; background: #fff; clip-path: var(--burst); box-shadow: none; }
.stk-burst .stk-face > span { display: grid; place-items: center; width: 5.2em; aspect-ratio: 1; padding: 1em; background: var(--bg); clip-path: var(--burst); font-size: .85em; line-height: 1; }
.stk-dymo .stk-face { padding: .55em .9em .5em; background: #141414; color: #f2f2f2; font: 700 clamp(16px, 1.6vw, 20px)/1 var(--f-body); letter-spacing: .16em; border-radius: 2px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35), 0 -1px 0 rgba(0, 0, 0, .9); box-shadow: 3px 5px 0 rgba(0, 0, 0, .25);
  clip-path: polygon(0 0, 100% 0, 98% 50%, 100% 100%, 0 100%, 2% 50%); }
.pictochat { position: relative; align-self: center; padding: 10px 10px 54px; background: #fff; transform: rotate(3deg); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .5), 4px 6px 0 rgba(0, 0, 0, .2); }
.pictochat img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; }
.pictochat figcaption { position: absolute; left: 14px; right: 14px; bottom: 10px; font: 400 18px/1.15 var(--f-marker); color: var(--ink-2); }

/* ---------- DAWN ---------- */
.dawn { position: relative; min-height: min(86vh, 860px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; background: #0c1426; }
.dawn-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; z-index: -2; }
.dawn-shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(8, 12, 22, .95) 0, rgba(8, 12, 22, .6) 34%, rgba(8, 12, 22, 0) 62%), linear-gradient(180deg, var(--wall) 0, rgba(14, 17, 23, 0) 16%); }
.dawn-copy { max-width: 900px; padding: 0 var(--gutter) clamp(50px, 8vw, 100px); }
.dawn-quote { font: 400 clamp(36px, 5.4vw, 74px)/1.05 var(--f-marker); color: var(--paper); margin-bottom: .45em; transform: rotate(-1.5deg); transform-origin: 0 50%; }
.dawn-copy p { font-size: clamp(18px, 1.7vw, 21px); color: #c9d4e6; max-width: 46ch; margin: 0; }

/* ---------- GET IT ---------- */
.get { padding: clamp(90px, 12vw, 160px) var(--gutter) clamp(70px, 9vw, 110px); background: var(--night); text-align: center; }
.get-inner { max-width: 1100px; margin: 0 auto; }
.get-date { margin: 0 0 .4em; font: 400 clamp(22px, 2.6vw, 30px)/1 var(--f-pixel); color: var(--glow); letter-spacing: .04em; text-shadow: 0 0 12px rgba(191, 227, 255, .5); }
.get-logo { font: 400 clamp(64px, 12vw, 180px)/.95 var(--f-tag); color: var(--paper); text-shadow: .04em .05em 0 var(--riot); transform: rotate(-3deg); margin: 0 0 .5em; }
.get-card { position: relative; display: grid; grid-template-columns: minmax(200px, 360px) 1fr; gap: clamp(18px, 3.5vw, 44px); align-items: center; text-align: left;
  max-width: 960px; margin: 0 auto; padding: clamp(22px, 3.5vw, 44px); background: var(--paper-bg); color: var(--ink); transform: rotate(-.8deg); box-shadow: 10px 12px 0 rgba(0, 0, 0, .6), 0 0 120px rgba(191, 227, 255, .08); }
.stage-cart { aspect-ratio: 1 / 1.08; }
.stage-cart .stage-fallback { transform: rotate(-5deg); padding: 6%; }
.stage-cart .stage-hint { color: #6a6457; }
.get-title { font: 400 clamp(32px, 3.8vw, 50px)/1 var(--f-cut); text-transform: uppercase; margin: 0 0 .45em; }
.get-specs { display: grid; gap: .25em; margin: 0 0 1.4em; font: 400 clamp(19px, 1.9vw, 22px)/1.3 var(--f-pen); color: var(--pen); }
.get-specs li::before { content: '\2192  '; color: var(--red-pen); }
.get-ctas { display: flex; flex-wrap: wrap; gap: 22px 26px; align-items: center; }
.get-ctas .btn-paper { box-shadow: 4px 5px 0 rgba(0, 0, 0, .35); }
.get-note { margin: 1.3em 0 0; max-width: 46ch; font: 400 19px/1.3 var(--f-pen); color: var(--ink-2); }

/* ---------- FOOTER ---------- */
.foot { padding: 50px var(--gutter) 60px; background: var(--night); border-top: 1px solid var(--line); text-align: center; color: var(--on-wall-2); font-size: 15px; }
.foot-logo { font: 400 44px/1 var(--f-tag); color: var(--paper); text-shadow: 2px 2px 0 var(--riot); margin-bottom: .4em; }
.foot-fine { max-width: 62ch; margin: 0 auto 1em; font-size: 13px; color: #8790a0; }
.foot a { color: var(--glow); }

/* ---------- the page gets checked on ---------- */
.checkin { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; pointer-events: none; }
.checkin-line { height: 6px; background: var(--hall); opacity: 0; transition: opacity .12s; box-shadow: 0 0 24px 8px rgba(255, 173, 59, .7), 0 0 90px 30px rgba(255, 173, 59, .3); }
.checkin.is-light .checkin-line { opacity: 1; animation: hallpulse 1.1s ease-in-out infinite; }
.checkin-toast { pointer-events: auto; position: absolute; right: var(--gutter); bottom: 30px; display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; max-width: calc(100% - 2 * var(--gutter));
  padding: 12px 14px 12px 18px; background: var(--paper-bg); color: var(--ink); transform: rotate(-1.5deg); box-shadow: 6px 7px 0 rgba(0, 0, 0, .6); animation: slapin .3s cubic-bezier(.2, 1.6, .4, 1); }
.checkin-text { margin: 0; font: 400 clamp(20px, 2.2vw, 26px)/1.15 var(--f-marker); }
@keyframes slapin { from { opacity: 0; scale: 1.2; } }
.lights { position: fixed; inset: 0; z-index: 85; pointer-events: none; display: grid; place-items: center; }
.lights .lid-top, .lights .lid-bottom { position: absolute; left: -5%; right: -5%; height: 0; background: #000; transition: height .2s ease-in; }
.lights .lid-top { top: 0; border-radius: 0 0 50% 50% / 0 0 12% 12%; }
.lights .lid-bottom { bottom: 0; border-radius: 50% 50% 0 0 / 12% 12% 0 0; }
.lights.is-shut .lid-top, .lights.is-shut .lid-bottom { height: 58%; }
.lights.is-slit .lid-top, .lights.is-slit .lid-bottom { height: 46%; }
.lights-text { position: relative; z-index: 2; margin: 0; padding: 0 var(--gutter); text-align: center; font: 400 clamp(24px, 3vw, 38px)/1.2 var(--f-marker); color: var(--paper); text-shadow: 0 2px 0 #000; }
.lights-stamp { position: absolute; z-index: 3; margin: 0; font-size: clamp(56px, 11vw, 150px); opacity: 0; transform: rotate(-10deg) scale(1.6); transition: opacity .12s, transform .25s cubic-bezier(.2, 1.6, .4, 1); }
.lights.is-caught { background: radial-gradient(ellipse at 70% 40%, rgba(255, 216, 148, .78), rgba(255, 173, 59, .55) 45%, rgba(110, 55, 10, .8)); transition: background .15s; }
.lights.is-caught .lights-stamp { opacity: 1; transform: rotate(-10deg) scale(1); }
.lights.is-caught .lights-text { top: 26vh; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .two-grid { grid-template-columns: 1fr; }
  .half-nc { margin-top: 0; }
  .step, .step-r { grid-template-columns: 1fr; }
  .step-r .print { order: 0; }
  .sheet { grid-template-columns: 1fr; }
  .stickers { grid-template-columns: repeat(2, 1fr); }
  .pictochat { max-width: 420px; justify-self: center; }
  .yourds-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero { padding-top: 92px; }
  .hero-video { top: 58px; right: auto; left: 50%; width: 150vw; max-width: none; transform: translateX(-50%); opacity: .9;
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 45%, #000 46%, transparent 92%); mask-image: radial-gradient(ellipse 50% 50% at 50% 45%, #000 46%, transparent 92%); }
  .hero-shade { background: linear-gradient(0deg, var(--night) 0, rgba(5, 7, 11, .94) 46%, rgba(5, 7, 11, .2) 72%, rgba(5, 7, 11, .55) 100%); }
  .clock { font-size: 42px; }
  .hero-hint { display: none; }
  .flyer-xerox { left: 0; right: 0; top: auto; bottom: 0; width: 100%; height: 38%; opacity: .5; }
  .stickers { grid-template-columns: 1fr 1fr; }
  .get-card { grid-template-columns: 1fr; }
  .stage-cart { max-width: 300px; margin: 0 auto 34px; width: 100%; }
  .room-hud { flex-wrap: wrap; }
  .hud-bar { flex-basis: 100%; }
  .hud-night { font-size: 21px; }
  .caught { align-items: flex-end; padding-bottom: 50px; }
  .caught-shade { background: linear-gradient(0deg, rgba(20, 9, 2, .95) 0, rgba(20, 9, 2, .75) 45%, rgba(20, 9, 2, .1) 75%), linear-gradient(180deg, var(--wall) 0, rgba(14, 17, 23, 0) 14%); }
  /* seven nights become a stack you flip through sideways */
  .nights { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory;
    padding-top: 18px; padding-bottom: 22px; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .night { scroll-snap-align: center; }
  .shell-picker { grid-template-columns: 1fr 1fr; }
  .shell-picker button { grid-template-columns: 30px 1fr; column-gap: 8px; padding: 6px 8px; }
  .shell-picker svg { width: 30px; }
  .shell-name { font-size: 15px; }
  .shell-unlock { font-size: 15px; }
}
@media (max-width: 420px) {
  .tape { width: 72px; }
  .tape-tl { left: -14px; } .tape-tr { right: -14px; } .tape-br { right: -12px; }
  .stickers { grid-template-columns: 1fr; }
  .stk:nth-child(n) { margin-top: 0; }
}
@media (hover: none) and (pointer: coarse) {
  .btn kbd, .kb { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-slap] { opacity: 1; scale: 1; }
}
