@font-face { font-family: "Londrina"; src: url(/assets/fonts/LondrinaSolid-Black.ttf) format("truetype"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Londrina"; src: url(/assets/fonts/LondrinaSolid-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Elite"; src: url(/assets/fonts/SpecialElite-Regular.ttf) format("truetype"); font-display: swap; }

:root {
  --ink: #07080d;
  --night: #0e1220;
  --felt: #182035;
  --paper: #efe3c8;
  --paper-dim: #b9ad94;
  --amber: #f2a531;
  --pink: #e98ba0;
  --mint: #a9d8c6;
  --x: 50vw; --y: 45vh; --r: 230px;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font: 17px/1.6 "Elite", "Courier New", monospace;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: "Londrina", system-ui, sans-serif; font-weight: 900; line-height: .98; margin: 0; letter-spacing: .01em; }
.kicker { font-size: .82rem; letter-spacing: .28em; text-transform: uppercase; color: var(--amber); margin: 0 0 .9rem; }

/* film grain over everything */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  transition: background .4s, backdrop-filter .4s, padding .3s;
}
.nav.solid { background: rgba(7,8,13,.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding-block: 8px; }
.nav-logo img { height: 34px; width: auto; opacity: 0; transform: translateY(-8px); transition: .4s; }
.nav.solid .nav-logo img { opacity: 1; transform: none; }
.nav-links { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); font-family: "Londrina"; font-size: 1.1rem; letter-spacing: .04em; }
.nav-links a { text-decoration: none; opacity: .8; transition: opacity .2s, color .2s; }
.nav-links a:hover { opacity: 1; color: var(--amber); }
.sound {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: inherit; color: var(--paper); background: rgba(239,227,200,.07);
  border: 1.5px solid rgba(239,227,200,.25); border-radius: 999px; padding: 6px 14px;
}
.sound[aria-pressed="true"] { border-color: var(--amber); color: var(--amber); }
.sound-bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.sound-bars i { width: 3px; height: 4px; background: currentColor; border-radius: 2px; }
.sound[aria-pressed="true"] .sound-bars i { animation: eq .9s ease-in-out infinite; }
.sound-bars i:nth-child(2) { animation-delay: .2s !important; } .sound-bars i:nth-child(3) { animation-delay: .45s !important; }
@keyframes eq { 0%,100%{height:4px} 50%{height:14px} }

/* ---------- hero: you are the flashlight ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; cursor: none; touch-action: pan-y; }
.hero-scene { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: scale(1.06); filter: saturate(1.1) contrast(1.05); }
.hero-dark {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle var(--r) at var(--x) var(--y),
    rgba(7,8,13,0) 0%, rgba(7,8,13,.15) 35%, rgba(7,8,13,.82) 70%, rgba(7,8,13,.975) 100%);
}
.hero-dark::after { /* warm bulb tint inside the beam */
  content: ""; position: absolute; inset: 0; mix-blend-mode: overlay;
  background: radial-gradient(circle calc(var(--r) * .9) at var(--x) var(--y), rgba(255,190,90,.38), transparent 70%);
}
.hero-eyes { position: absolute; inset: 0; pointer-events: none; }
.eye-pair { position: absolute; display: flex; gap: .55em; font-size: var(--s, 10px); transition: opacity .35s; }
.eye-pair i { width: 1em; height: .62em; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #fff6c8 0 18%, #ffb12e 40%, rgba(255,140,0,0) 72%); filter: drop-shadow(0 0 .6em rgba(255,170,40,.9)); animation: blink var(--b, 5s) infinite; }
.eye-pair.hidden { opacity: 0; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.08); } }

.hero-content { position: relative; z-index: 2; text-align: center; padding: 0 var(--gutter); pointer-events: none; }
.hero-content a { pointer-events: auto; cursor: pointer; }
.hero h1 { margin: 0 auto; width: min(860px, 92vw); }
.hero-logo { width: 100%; height: auto; filter: drop-shadow(0 10px 30px rgba(0,0,0,.8)); animation: flicker 7s infinite; }
@keyframes flicker { 0%, 89%, 93%, 100% { opacity: 1; } 90% { opacity: .55; } 91.5% { opacity: .9; } 92% { opacity: .4; } }
.hero-sub { font-size: clamp(1.05rem, 2.6vw, 1.45rem); margin: 1.1rem 0 1.8rem; text-shadow: 0 2px 12px #000; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hint { font-size: .8rem; color: var(--paper-dim); display: inline-flex; align-items: center; gap: 8px; text-shadow: 0 1px 6px #000; }
.hint-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .4; } }

.btn { display: inline-block; font-family: "Londrina"; font-weight: 900; font-size: 1.35rem; letter-spacing: .03em; text-decoration: none; padding: .62em 1.5em .58em; border-radius: 14px; transition: transform .15s, box-shadow .2s; }
.btn-amber { background: var(--amber); color: #1b1206; box-shadow: 0 6px 0 #9a5d10, 0 0 40px rgba(242,165,49,.45); transform: rotate(-1.5deg); }
.btn-amber:hover { transform: rotate(0) translateY(-2px); box-shadow: 0 8px 0 #9a5d10, 0 0 60px rgba(242,165,49,.7); }
.btn-amber:active { transform: translateY(4px); box-shadow: 0 2px 0 #9a5d10; }

.scroll-cue { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; z-index: 2; width: 26px; height: 42px; border: 2px solid rgba(239,227,200,.5); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--paper); border-radius: 2px; animation: drop 1.8s infinite; }
@keyframes drop { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* torn paper edges between sections */
.tear { height: 46px; position: relative; z-index: 3; margin: -45px 0 0; background: var(--night);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 46' preserveAspectRatio='none'%3E%3Cpath d='M0 46V22l40 6 38-14 52 10 30-12 44 16 36-8 58 12 30-18 46 10 40-4 34 14 52-16 38 8 44-10 30 14 56-6 36 10 40-18 46 12 30-6 52 14 36-16 44 8 38-4 50 12 34-14 42 10 46-8 40 12 30-10 V46z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 46' preserveAspectRatio='none'%3E%3Cpath d='M0 46V22l40 6 38-14 52 10 30-12 44 16 36-8 58 12 30-18 46 10 40-4 34 14 52-16 38 8 44-10 30 14 56-6 36 10 40-18 46 12 30-6 52 14 36-16 44 8 38-4 50 12 34-14 42 10 46-8 40 12 30-10 V46z'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.tear-up { background: #0b0e19; transform: scaleX(-1); }

/* ---------- section heads ---------- */
.section-head { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter) clamp(40px, 7vw, 80px); text-align: center; }
.section-head h2 { font-size: clamp(2.4rem, 7vw, 4.6rem); }
.lead { color: var(--paper-dim); font-size: clamp(1rem, 2vw, 1.12rem); margin: 1.1rem auto 0; max-width: 600px; }

/* ---------- games ---------- */
.games { background: var(--night); padding: clamp(60px, 10vw, 120px) 0 clamp(40px, 6vw, 80px); position: relative; }
.shift {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(28px, 5vw, 72px);
  max-width: 1240px; margin: 0 auto clamp(70px, 10vw, 140px); padding: 0 var(--gutter);
}
.shift.flip .shift-copy { order: 2; }
.shift.flip .shift-bg { transform: scaleX(-1); }
.shift-bg {
  position: absolute; inset: -60px -10vw; z-index: 0; background-size: cover; background-position: center; opacity: .16; filter: blur(2px) saturate(.9);
  background-position: right center; opacity: .22;
  -webkit-mask: radial-gradient(ellipse 45% 60% at 72% 50%, #000 25%, transparent 75%); mask: radial-gradient(ellipse 45% 60% at 72% 50%, #000 25%, transparent 75%);
}
.shift-copy, .shift-media { position: relative; z-index: 1; }
.shift-no { font-family: "Londrina"; font-size: 1rem; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin: 0 0 .6rem; display: flex; align-items: center; gap: 12px; }
.shift-no::after { content: ""; flex: 0 0 60px; height: 2px; background: var(--accent); opacity: .6; }
.shift-logo { width: min(520px, 100%); height: auto; filter: drop-shadow(0 8px 24px rgba(0,0,0,.7)); }
.shift-plush .shift-logo { width: min(440px, 100%); }
.shift-title { font-size: clamp(2.4rem, 6vw, 4rem); color: var(--accent); margin: .2em 0 0; transform: rotate(-2deg); transform-origin: left; text-shadow: 0 4px 0 rgba(0,0,0,.5); }
.shift-tag { font-family: "Londrina"; font-weight: 400; font-size: clamp(1.35rem, 2.8vw, 1.8rem); line-height: 1.15; margin: 1rem 0 1rem; }
.verbs { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: 8px; }
.verbs li { font-family: "Londrina"; font-size: 1.05rem; letter-spacing: .04em; padding: .3em .85em; border-radius: 8px; background: color-mix(in srgb, var(--accent) 16%, transparent); border: 1.5px dashed color-mix(in srgb, var(--accent) 65%, transparent); color: var(--accent); }
.verbs li:nth-child(2) { transform: rotate(1.5deg); } .verbs li:nth-child(3) { transform: rotate(-1deg); }
.shift-text { color: var(--paper-dim); margin: 0 0 1.6rem; max-width: 56ch; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; padding: 9px 18px 9px 14px; border-radius: 12px;
  background: #000; border: 1.5px solid rgba(239,227,200,.28); color: #fff; font-family: system-ui, -apple-system, sans-serif; font-weight: 600; font-size: 1.12rem; line-height: 1.05;
  transition: transform .15s, border-color .2s, box-shadow .2s;
}
.store small { display: block; font-size: .64rem; font-weight: 500; opacity: .8; letter-spacing: .02em; }
.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store.soon > * { opacity: .55; }
.store.soon { cursor: default; border-style: dashed; position: relative; }
.store.soon::after { content: "Soon"; position: absolute; top: -9px; right: -8px; font: 900 .78rem "Londrina"; letter-spacing: .05em; color: #1b1206; background: var(--accent); padding: 2px 8px; border-radius: 6px; transform: rotate(6deg); }
.store:not(.soon):hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 0 26px color-mix(in srgb, var(--accent) 45%, transparent); }

.shift-media { display: flex; flex-direction: column; align-items: center; gap: 22px; min-width: 0; }
.phone {
  position: relative; margin: 0; width: min(300px, 74vw); aspect-ratio: 9 / 16; border-radius: 34px; overflow: hidden;
  background: #000; border: 8px solid #12141c; outline: 1.5px solid rgba(239,227,200,.15);
  box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 90px color-mix(in srgb, var(--accent) 22%, transparent);
  transform: rotate(var(--tilt, 2deg));
}
.flip .phone { --tilt: -2deg; }
.phone video { width: 100%; height: 100%; object-fit: cover; }
.unmute { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; font: .78rem "Elite", monospace; color: var(--paper); background: rgba(0,0,0,.6); border: 1px solid rgba(239,227,200,.3); padding: 6px 12px; border-radius: 999px; cursor: pointer; backdrop-filter: blur(6px); white-space: nowrap; }
.unmute.on { opacity: .55; }

.shots { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; max-width: 100%; padding: 4px 4px 12px; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
.shots img { flex: 0 0 auto; width: 104px; height: auto; border-radius: 12px; scroll-snap-align: center; border: 1.5px solid rgba(239,227,200,.12); cursor: zoom-in; transition: transform .2s, border-color .2s; }
.shots img:hover { transform: translateY(-4px) rotate(-1deg); border-color: var(--accent); }

/* ---------- cast ---------- */
.cast { background: #0b0e19; padding: clamp(60px, 9vw, 110px) 0 clamp(60px, 8vw, 100px); }
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 0 var(--gutter); margin: -30px 0 44px; }
.tabs button { font: 1.1rem "Londrina"; letter-spacing: .03em; color: var(--paper-dim); background: transparent; border: 1.5px solid rgba(239,227,200,.2); border-radius: 999px; padding: 8px 18px; cursor: pointer; transition: .2s; }
.tabs button[aria-selected="true"] { color: #1b1206; background: var(--amber); border-color: var(--amber); }
.cast-grid { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: 1240px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(160px, 42vw), 1fr));
  gap: clamp(12px, 2vw, 22px);
}
@media (min-width: 1100px) { .cast-grid { grid-template-columns: repeat(7, 1fr); } }
.card {
  position: relative; border-radius: 18px; padding: 16px 14px 18px; text-align: center; cursor: pointer;
  background: radial-gradient(circle at 50% 30%, #222a43 0%, #121626 70%);
  border: 1.5px solid rgba(239,227,200,.1); transition: transform .25s, border-color .25s;
  outline: none;
}
.card:hover, .card:focus-visible { transform: translateY(-6px) rotate(var(--rot, -1deg)); border-color: rgba(242,165,49,.5); }
.card:nth-child(even) { --rot: 1deg; }
.card-art { position: relative; height: 170px; }
.card-art img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 10px 14px rgba(0,0,0,.6)); transition: opacity .12s; }
.card-art .scare { opacity: 0; transform-origin: bottom center; }
.card.scared .idle { opacity: 0; }
.card.scared .scare { opacity: 1; animation: jolt .45s cubic-bezier(.2,2.4,.4,1); }
.card.scared { animation: shake .35s; border-color: #c43a3a; }
@keyframes jolt { 0% { transform: scale(.6); } 100% { transform: scale(1.18); } }
@keyframes shake { 20% { translate: -5px 2px; } 40% { translate: 5px -2px; } 60% { translate: -3px 1px; } 80% { translate: 3px 0; } }
.card h3 { font-size: 1.55rem; margin: 12px 0 2px; }
.card .what { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin: 0 0 8px; }
.card .rule { font-size: .9rem; line-height: 1.45; color: var(--paper-dim); margin: 0; min-height: 3.9em; transition: opacity .25s; }
.card .rule.swap { opacity: 0; }

/* ---------- facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; max-width: 1240px; margin: 0 auto; padding: clamp(40px, 6vw, 70px) var(--gutter); }
.fact { padding: 10px 20px; border-left: 1.5px dashed rgba(239,227,200,.18); }
.fact:first-child { border-left: 0; }
.fact b { display: block; font-family: "Londrina"; font-size: 2rem; color: var(--amber); line-height: 1.1; }
.fact span { color: var(--paper-dim); font-size: .95rem; }

/* ---------- final ---------- */
.final { position: relative; text-align: center; padding: clamp(80px, 12vw, 150px) var(--gutter); overflow: hidden; }
.final-glow { position: absolute; inset: 0; background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(242,165,49,.22), transparent 70%); }
.final h2 { position: relative; font-size: clamp(2.6rem, 8vw, 5.6rem); }
.final h2 span { color: var(--amber); }
.final-games { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(18px, 4vw, 44px); margin: 48px 0 26px; }
.final-games a { text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: "Londrina"; font-size: 1.2rem; }
.final-games img { width: clamp(84px, 16vw, 120px); height: auto; border-radius: 26%; box-shadow: 0 14px 36px rgba(0,0,0,.6); transition: transform .2s; }
.final-games a:hover img { transform: translateY(-6px) rotate(-3deg); }
.final-note { position: relative; color: var(--paper-dim); font-size: .9rem; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid rgba(239,227,200,.1); padding: 40px var(--gutter) 50px; text-align: center; color: var(--paper-dim); font-size: .85rem; }
.footer img { width: 170px; height: auto; margin: 0 auto 18px; opacity: .8; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 10px; }
.footer a { color: var(--paper); text-underline-offset: 3px; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(4,5,9,.92); display: grid; place-items: center; padding: 20px; cursor: zoom-out; opacity: 0; pointer-events: none; transition: opacity .2s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-height: 92svh; width: auto; border-radius: 18px; box-shadow: 0 30px 90px #000; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .shift { grid-template-columns: 1fr; text-align: left; }
  .shift.flip .shift-copy { order: 0; }
  .facts { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .fact:nth-child(3) { border-left: 0; }
  .nav-links a { display: none; }
  .card-art { height: 140px; }
}
@media (hover: none) { .hero { cursor: auto; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
