/* NOSTALGIA — the landing page (site/index.html), served at the site root; the game is in play/.
 * Our own look: a 2003 Hyderabad of cassette J-cards, VHS on-screen display and hand-painted tin signboards, in the
 * dusk-to-golden palette of ARCHITECTURE §15. Fonts are the game's self-hosted ones (play/vendor/fonts/fonts.css).
 * No frameworks, no external requests. One orchestrated moment (the hero's REWIND, site.js); otherwise calm.
 */
:root {
  color-scheme: dark;
  /* palette anchors (ARCHITECTURE §15) */
  --plaster: #e8d9b5;
  --sandstone: #b98f5e;
  --auto-yellow: #f2c230;
  --auto-black: #1a1214;
  --apsrtc-red: #b22b2b;
  --irani-teal: #2a8c82;
  --whitewash: #efe9dc;
  --sodium: #ffab40;
  /* dusk */
  --bg: #120d16;
  --bg-2: #1d1622;
  --bg-3: #261c2e;
  --night: #0c0910;
  --plum: #5e2a5c;
  --sunset: #d8604a;
  --gold: #ffb35a;
  --ink: #f4ead8;
  --ink-dim: #c2b49c;
  --line: rgba(244, 234, 216, 0.14);
  /* VHS OSD */
  --osd: #eaf2ff;
  --osd-shadow: #1b2a78;
  --osd-glow: rgba(120, 160, 255, 0.55);
  /* the J-card */
  --paper: #f6efdb;
  --paper-2: #ebe1c4;
  --rule: rgba(64, 98, 168, 0.22);
  --ball: #22409a;
  --pencil: #5f5a55;
  --red: #c8231d;
  --st1: #e2542b;
  --st2: #f2a72f;
  --st3: #2f6fb0;
  /* type */
  --f-sign: 'Yatra One', 'Baloo 2', system-ui, sans-serif;
  --f-body: 'Baloo 2', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-osd: 'VT323', ui-monospace, 'Courier New', monospace;
  --f-hand: 'Kalam', 'Comic Sans MS', 'Chalkboard SE', 'Marker Felt', cursive;
  --bar-h: 56px;
  --gut: 16px;
}
@media (min-width: 600px) { :root { --gut: 24px; } }
@media (min-width: 1000px) { :root { --gut: 32px; --bar-h: 62px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--auto-yellow); }
:focus-visible { outline: 3px solid var(--osd); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
kbd {
  display: inline-block; min-width: 1.9em; margin: 0 1px; padding: 0 0.45em;
  font: 700 0.82em/1.75 var(--f-body); text-align: center; color: var(--auto-black);
  background: var(--whitewash); border-radius: 5px; box-shadow: inset 0 -3px 0 #b5ab98;
}
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gut); }
.wrap-narrow { max-width: 820px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 14px; background: var(--auto-yellow); color: var(--auto-black); font-weight: 700; border-radius: 4px; }
.skip:focus { top: 10px; }

/* ------------------------------------------------------------------ the tin signboard button */
.tin {
  position: relative; display: inline-flex; align-items: center; gap: 0.45em;
  padding: 0.42em 1.05em 0.3em;
  font-family: var(--f-sign); font-size: 22px; line-height: 1.15; color: var(--auto-black); text-decoration: none; white-space: nowrap;
  background:
    radial-gradient(circle at 8px 8px, rgba(70, 46, 8, 0.75) 0 1.8px, rgba(255, 245, 200, 0.6) 2.2px, transparent 2.9px),
    radial-gradient(circle at calc(100% - 8px) 8px, rgba(70, 46, 8, 0.75) 0 1.8px, rgba(255, 245, 200, 0.6) 2.2px, transparent 2.9px),
    radial-gradient(circle at 8px calc(100% - 8px), rgba(70, 46, 8, 0.75) 0 1.8px, rgba(255, 245, 200, 0.6) 2.2px, transparent 2.9px),
    radial-gradient(circle at calc(100% - 8px) calc(100% - 8px), rgba(70, 46, 8, 0.75) 0 1.8px, rgba(255, 245, 200, 0.6) 2.2px, transparent 2.9px),
    linear-gradient(176deg, #f8d655 0%, #f2c230 46%, #e6b21c 100%);
  border: 3px solid var(--auto-black); border-radius: 6px;
  box-shadow: 5px 5px 0 var(--apsrtc-red);
  transform: rotate(-1.2deg);
  transition: transform 0.12s, box-shadow 0.12s;
}
.tin span { font-family: var(--f-osd); font-size: 0.95em; line-height: 1; transform: translateY(-0.06em); }
.tin:hover { color: var(--auto-black); transform: rotate(0deg) translate(-2px, -2px); box-shadow: 7px 7px 0 var(--apsrtc-red); }
.tin:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--apsrtc-red); }
.tin:focus-visible { outline: 3px solid var(--osd); outline-offset: 5px; }
.tin-lg { font-size: clamp(26px, 2.6vw, 32px); padding: 0.4em 1.15em 0.28em; }
.tin-sm { font-size: 17px; padding: 0.38em 0.85em 0.26em; border-width: 2px; box-shadow: 3px 3px 0 var(--apsrtc-red); background-size: auto; }
.tin-sm:hover { box-shadow: 4px 4px 0 var(--apsrtc-red); }

/* ------------------------------------------------------------------ top bar */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--bar-h);
  background: rgba(18, 13, 22, 0.94);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s, border-color 0.25s;
}
.js .bar { background: linear-gradient(to bottom, rgba(10, 7, 12, 0.6), rgba(10, 7, 12, 0)); border-bottom-color: transparent; }
.js .bar.solid { background: rgba(18, 13, 22, 0.94); border-bottom-color: var(--line); }
@supports (backdrop-filter: blur(8px)) { .js .bar.solid { background: rgba(18, 13, 22, 0.82); backdrop-filter: blur(8px); } }
.bar-in { display: flex; align-items: center; gap: 20px; height: 100%; max-width: 1400px; margin: 0 auto; padding: 0 var(--gut); }
.bar-logo { font-family: var(--f-sign); font-size: 26px; line-height: 1; color: var(--auto-yellow); text-decoration: none; text-shadow: 2px 2px 0 var(--apsrtc-red); }
.bar-logo:hover { color: var(--auto-yellow); }
.bar-nav { display: none; gap: 24px; margin-left: auto; }
.bar-nav a { color: var(--ink); font-weight: 600; font-size: 16px; text-decoration: none; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.bar-nav a:hover { color: var(--auto-yellow); }
.bar .tin { margin-left: auto; }
@media (min-width: 860px) { .bar-nav { display: flex; } .bar .tin { margin-left: 6px; } }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; background: var(--night); padding-top: var(--bar-h); }
.hero-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: #2a1426; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; opacity: 0; transition: opacity 0.8s ease; }
.hero-video.on { opacity: 1; }
.hero-fx { position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, 0.12) 2px 3px),
    radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0) 55%, rgba(8, 5, 10, 0.55) 100%),
    linear-gradient(to bottom, rgba(12, 9, 16, 0) 60%, rgba(12, 9, 16, 0.9) 100%);
}
.osd {
  position: absolute; z-index: 3;
  font-family: var(--f-osd); font-size: clamp(19px, 2.1vw, 28px); line-height: 1; letter-spacing: 2px; color: var(--osd);
  text-shadow: 2px 2px 0 var(--osd-shadow), 0 0 8px var(--osd-glow);
  white-space: nowrap; pointer-events: none;
}
.osd b { font-weight: 400; }
.osd-tl { left: var(--gut); top: 14px; }
.osd-tr { right: var(--gut); top: 14px; }
.osd-br { right: var(--gut); bottom: 14px; }
.osd-count { display: inline-block; min-width: 3ch; }

.hero-copy { position: relative; z-index: 2; padding: 0 var(--gut) 56px; margin-top: -0.55em; }
.logo { font-family: var(--f-sign); font-size: clamp(60px, 8.8vw, 112px); line-height: 0.95; color: var(--auto-yellow);
  text-shadow: 0.035em 0.035em 0 var(--apsrtc-red), 0 0.12em 0.4em rgba(0, 0, 0, 0.55); }
.logo-side { display: block; margin-top: 12px; font-family: var(--f-osd); font-size: clamp(21px, 2.3vw, 29px); line-height: 1.1; letter-spacing: 3px; text-transform: uppercase;
  color: var(--osd); text-shadow: 2px 2px 0 var(--osd-shadow), 0 0 8px var(--osd-glow); }
.hook { max-width: 33em; margin: 22px 0 26px; font-size: clamp(18px, 1.55vw, 21px); line-height: 1.55; color: var(--ink); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.text-link { font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; border-bottom: 2px solid rgba(244, 234, 216, 0.35); padding-bottom: 1px; }
.text-link:hover { color: var(--auto-yellow); border-bottom-color: var(--auto-yellow); }
.hero-facts { margin: 20px 0 0; font-family: var(--f-osd); font-size: 20px; line-height: 1.3; letter-spacing: 1px; color: var(--ink-dim); }
.hero-facts span { white-space: nowrap; }

@media (min-width: 900px) {
  .hero { display: flex; align-items: flex-end; min-height: min(100svh, 56.25vw + 40px); padding-top: 0; }
  /* the still fills the right two-thirds (Charminar, in the middle of the frame, lands right of the copy) and fades
     into the dusk on its left; the VHS display spans the whole hero */
  .hero { overflow: hidden; background: radial-gradient(ellipse 60% 80% at 20% 70%, rgba(94, 42, 92, 0.35), rgba(94, 42, 92, 0) 70%), var(--night); }
  .hero-media { position: absolute; inset: 0 0 0 33%; aspect-ratio: auto; background: transparent; overflow: visible; }
  .hero-media img, .hero-video { object-position: 50% 50%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26%); mask-image: linear-gradient(90deg, transparent 0, #000 26%); }
  .hero-fx { inset: 0 0 0 -49.25%; background:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0 2px, rgba(0, 0, 0, 0.12) 2px 3px),
    linear-gradient(to bottom, rgba(12, 9, 16, 0) 66%, rgba(12, 9, 16, 0.7) 100%),
    radial-gradient(ellipse at 66% 45%, rgba(0, 0, 0, 0) 55%, rgba(8, 5, 10, 0.4) 100%); }
  .osd-tl { top: calc(var(--bar-h) + 18px); left: calc(var(--gut) - 49.25%); }
  .osd-tr { top: calc(var(--bar-h) + 18px); }
  .osd-br { bottom: 26px; }
  .hero-copy { max-width: min(600px, 50vw); margin: 0; padding: calc(var(--bar-h) + 80px) 0 clamp(56px, 7vw, 96px) max(var(--gut), calc((100vw - 1160px) / 2 + var(--gut))); box-sizing: content-box; }
}

/* the REWIND (site.js adds .rw on <html> for ~1.6 s at load; never with reduced motion) */
.rw .hero-media img { animation: rw-jitter 1.6s steps(16) both; }
.rw .hero-fx::after {
  content: ''; position: absolute; left: 0; right: 0; height: 16%; top: 100%;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.0) 0 3px, rgba(255, 255, 255, 0.35) 3px 4px, rgba(255, 255, 255, 0.05) 4px 9px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(220, 230, 255, 0.28) 45%, rgba(255, 255, 255, 0));
  mix-blend-mode: screen;
  animation: rw-band 0.8s linear 2 both;
}
.rw .osd-mode { animation: rw-blink 0.5s steps(2, start) infinite; }
@keyframes rw-jitter {
  0% { transform: translateX(0) scale(1.03); filter: saturate(0.6) contrast(1.15) hue-rotate(-12deg) brightness(1.1); }
  25% { transform: translateX(-6px) scale(1.03); }
  50% { transform: translateX(4px) scale(1.02); filter: saturate(0.8) contrast(1.08) hue-rotate(-6deg); }
  75% { transform: translateX(-2px) scale(1.01); }
  100% { transform: none; filter: none; }
}
@keyframes rw-band { from { top: 100%; } to { top: -16%; } }
@keyframes rw-blink { to { visibility: hidden; } }

/* ------------------------------------------------------------------ sections */
.sec { padding: clamp(68px, 9vw, 124px) 0; }
.kicker { margin: 0 0 10px; font-family: var(--f-osd); font-size: 21px; letter-spacing: 2px; color: var(--gold); }
.sec h2 { font-family: var(--f-sign); font-size: clamp(32px, 4.4vw, 54px); line-height: 1.12; color: var(--ink); max-width: 20em; }
.sec h2::after { content: ''; display: block; width: 72px; height: 9px; margin: 18px 0 0;
  background: linear-gradient(to bottom, var(--st1) 0 4px, var(--st2) 4px 7px, var(--st3) 7px 9px); border-radius: 1px; }
.lede { max-width: 40em; margin: 22px 0 0; font-size: clamp(17px, 1.45vw, 20px); color: var(--ink-dim); }
.lede em { font-style: italic; color: var(--ink); }

/* ------------------------------------------------------------------ story */
.story { background:
  radial-gradient(ellipse 70% 50% at 85% 0%, rgba(216, 96, 74, 0.16), rgba(216, 96, 74, 0) 70%),
  radial-gradient(ellipse 60% 60% at 0% 100%, rgba(94, 42, 92, 0.32), rgba(94, 42, 92, 0) 70%),
  var(--bg); }
.story-grid { display: grid; gap: 48px; margin-top: 52px; align-items: start; }
@media (min-width: 920px) { .story-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; } }

.note { position: relative; margin: 0; max-width: 520px; }
.note-paper {
  position: relative;
  padding: 32px 26px 32px 54px;
  font-family: var(--f-hand); font-size: 19px; line-height: 32px; color: var(--ball);
  background:
    linear-gradient(90deg, transparent 0 38px, rgba(200, 35, 29, 0.45) 38px 39.5px, transparent 39.5px),
    repeating-linear-gradient(to bottom, transparent 0 31px, var(--rule) 31px 32px),
    var(--paper);
  border-radius: 2px;
  box-shadow: 0 2px 0 #d8ccaa, 0 22px 50px rgba(0, 0, 0, 0.5), 6px 8px 0 rgba(0, 0, 0, 0.28);
  transform: rotate(-1.6deg);
}
.note-paper::before, .note-paper::after { content: ''; position: absolute; top: -12px; width: 92px; height: 26px; background: rgba(232, 222, 186, 0.88); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
.note-paper::before { left: 18px; transform: rotate(-6deg); }
.note-paper::after { right: 22px; transform: rotate(5deg); }
.note-paper p { margin: 0 0 32px; }
.note-paper p:last-child { margin: 0; }
.note-to { font-weight: 700; font-size: 22px; }
.note-sign { text-align: right; font-weight: 700; font-size: 22px; padding-right: 12px; }
.note figcaption { margin: 22px 6px 0 10px; font-size: 15px; font-style: italic; color: var(--ink-dim); }

.beats { list-style: none; margin: 0; padding: 0; position: relative; }
.beats::before { content: ''; position: absolute; left: 13px; top: 18px; bottom: 30px; width: 3px; background: linear-gradient(to bottom, #6b4630, #4a2f22); border-radius: 2px; }
.beat { position: relative; padding: 0 0 40px 52px; }
.beat:last-child { padding-bottom: 0; }
.beat::before { /* a cassette hub on the tape path */
  content: ''; position: absolute; left: 0; top: 2px; width: 29px; height: 29px; border-radius: 50%;
  background: radial-gradient(circle, var(--bg) 0 4px, var(--whitewash) 4.5px 8px, #3a2a20 8.5px 10px, #7a5038 10.5px 14.5px);
  box-shadow: 0 0 0 2px var(--bg);
}
.beat-osd { margin: 0 0 6px; font-family: var(--f-osd); font-size: 20px; letter-spacing: 1.5px; color: var(--osd); text-shadow: 2px 2px 0 var(--osd-shadow), 0 0 6px var(--osd-glow); }
.beat h3 { font-family: var(--f-sign); font-size: clamp(25px, 2.4vw, 30px); line-height: 1.2; color: var(--plaster); margin-bottom: 8px; }
.beat p:last-child { margin: 0; color: var(--ink-dim); }
.beat i { font-style: normal; font-family: var(--f-osd); font-size: 1.1em; letter-spacing: 0.5px; color: var(--ink); }

.start {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px;
  margin-top: 64px; padding: 20px 24px;
  background: #1f6f67; border: 3px solid var(--auto-black); border-radius: 8px;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.35);
}
.start-title { font-family: var(--f-sign); font-size: 26px; line-height: 1.1; color: #fff; }
.start-steps { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; padding: 0; list-style: none; counter-reset: st; }
.start-steps li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; line-height: 1.3; color: #fff; }
.start-steps .kc { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; font-family: var(--f-osd); font-size: 21px; color: var(--auto-black); background: var(--auto-yellow); border: 2px solid var(--auto-black); border-radius: 50%; }

/* ------------------------------------------------------------------ Side A J-card */
.tracks { background: var(--bg-2); }
.jcard { display: flex; margin-top: 48px; background: var(--paper); border-radius: 3px;
  box-shadow: 0 2px 0 #d8ccaa, 0 26px 60px rgba(0, 0, 0, 0.5), 8px 10px 0 rgba(0, 0, 0, 0.3); transform: rotate(-0.6deg); }
.jcard-spine {
  flex: none; width: 46px; display: flex; justify-content: space-between; align-items: center; padding: 18px 0;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--f-hand); font-weight: 700; font-size: 15px; letter-spacing: 1px; color: var(--ball); white-space: nowrap;
  background: linear-gradient(to left, var(--st1) 0 7px, var(--st2) 7px 12px, var(--st3) 12px 15px, transparent 15px), var(--paper-2);
  border-left: 2px dashed rgba(90, 70, 40, 0.35);
}
.jcard-spine b { font-size: 21px; letter-spacing: 4px; color: var(--red); }
.jcard-front { position: relative; flex: 1; min-width: 0; padding: 14px 18px 56px 24px;
  background:
    linear-gradient(to right, transparent 0 12px, rgba(200, 35, 29, 0.35) 12px 13.5px, transparent 13.5px),
    repeating-linear-gradient(to bottom, transparent 0 31px, var(--rule) 31px 32px);
  background-position: 0 0, 0 8px; }
.jcard-print { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 10px; padding-bottom: 4px;
  font-weight: 800; font-size: 11px; letter-spacing: 1.5px; color: #5b6e9e; border-bottom: 3px double rgba(108, 127, 174, 0.55); white-space: nowrap; overflow: hidden; }
.jcard-print span:last-child { text-align: right; }
@media (max-width: 520px) { .jcard-print span:last-child { display: none; } .beat-osd { font-size: 18px; letter-spacing: 1px; } }
.jcard-list { list-style: none; margin: 0; padding: 0; counter-reset: trk; }
.jcard-list li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; column-gap: 8px; align-items: baseline; padding: 9px 4px 7px 0; border-bottom: 1px dashed rgba(95, 90, 85, 0.25); }
.jcard-list li::before { counter-increment: trk; content: 'A' counter(trk); grid-row: span 2; font-family: var(--f-osd); font-size: 20px; color: var(--pencil); }
.jcard-list b { font-family: var(--f-hand); font-weight: 700; font-size: 21px; line-height: 1.2; color: var(--ball); }
.jcard-list em { grid-column: 2; font-family: var(--f-hand); font-style: normal; font-size: 16px; line-height: 1.3; color: var(--pencil); }
.jcard-list time { grid-column: 3; grid-row: 1; font-family: var(--f-osd); font-size: 20px; color: var(--red); white-space: nowrap; }
@media (min-width: 780px) {
  .jcard-front { padding: 18px 40px 60px 34px; }
  .jcard-list { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(6, auto); grid-auto-flow: column; column-gap: 48px; }
  .jcard-spine { width: 54px; }
}
.jcard-scribble { position: absolute; right: 24px; bottom: 10px; margin: 0; font-family: var(--f-hand); font-size: 24px; color: var(--pencil); transform: rotate(-6deg); }

/* ------------------------------------------------------------------ what's in it */
.tiles { list-style: none; margin: 52px 0 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.tile { position: relative; padding: 24px 24px 22px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; }
.tile-ico { width: 58px; height: 58px; padding: 5px; margin-bottom: 16px;
  fill: none; stroke: var(--auto-black); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round;
  background: var(--auto-yellow); border: 2px solid var(--auto-black); border-radius: 6px; box-shadow: 3px 3px 0 var(--apsrtc-red); transform: rotate(-2deg); }
.tile:nth-child(2n) .tile-ico { background: var(--whitewash); box-shadow: 3px 3px 0 var(--irani-teal); transform: rotate(1.5deg); }
.tile h3 { font-family: var(--f-sign); font-size: 24px; line-height: 1.2; color: var(--plaster); margin-bottom: 8px; }
.tile p { margin: 0; font-size: 16.5px; color: var(--ink-dim); }
.tile i { font-style: italic; color: var(--ink); }

/* ------------------------------------------------------------------ stills */
.stills { background: var(--night); }
.gallery { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.gallery li { margin: 0; }
.shot { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: zoom-in; }
.shot:hover .shot-cap { color: var(--ink); }
.shot-frame { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-2); border-radius: 4px; }
.shot-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.shot:hover .shot-frame img { transform: scale(1.03); }
.shot-osd { position: absolute; left: 10px; top: 8px; font-family: var(--f-osd); font-size: 18px; letter-spacing: 1.5px; line-height: 1; color: var(--osd); text-shadow: 2px 2px 0 var(--osd-shadow), 0 0 6px var(--osd-glow); }
.shot-cap { display: block; padding: 10px 2px 0; font-size: 15.5px; line-height: 1.45; color: var(--ink-dim); }
@media (min-width: 980px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery li.big { grid-column: span 2; grid-row: span 2; }
  .gallery li.big .shot-frame { aspect-ratio: auto; height: calc(100% - 3.6em); min-height: 0; }
  .gallery li.big .shot { height: 100%; display: flex; flex-direction: column; }
  .gallery li.big .shot-frame { flex: 1; }
}

.lightbox { max-width: min(1600px, 96vw); width: auto; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.lightbox::backdrop { background: rgba(8, 6, 10, 0.92); }
.lightbox img { max-width: 100%; max-height: 84vh; width: auto; border-radius: 3px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.lightbox p { margin: 12px 4px 0; font-family: var(--f-osd); font-size: 21px; letter-spacing: 1px; color: var(--osd); }
.lb-close { position: absolute; right: -6px; top: -48px; width: 42px; height: 42px; font-size: 30px; line-height: 1; color: var(--ink); background: rgba(30, 22, 36, 0.9); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }

/* ------------------------------------------------------------------ before you play */
.before { background: var(--bg); }
.notes { display: grid; gap: 20px; margin-top: 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.notes-card { padding: 24px; background: var(--bg-2); border: 2px dashed rgba(244, 234, 216, 0.2); border-radius: 10px; }
.notes-card h3 { font-family: var(--f-sign); font-size: 23px; line-height: 1.2; color: var(--plaster); margin-bottom: 10px; }
.notes-card p { font-size: 16.5px; color: var(--ink-dim); }
.notes-card p:last-child { margin-bottom: 0; }
.keylist { margin: 0 0 14px; }
.keylist div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.keylist dt { font-size: 15px; color: var(--ink-dim); }
.keylist dd { margin: 0; font-size: 16px; text-align: right; color: var(--ink); }
.keys-touch { font-size: 15.5px !important; }

/* ------------------------------------------------------------------ FAQ */
.faq { background: var(--bg-2); }
.faq h2 { margin-bottom: 30px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 18px 40px 18px 0; font-weight: 700; font-size: 19px; line-height: 1.35; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '\25B6'; position: absolute; right: 6px; top: 20px; font-family: var(--f-osd); font-size: 20px; color: var(--gold); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(90deg); }
.faq summary:hover { color: var(--auto-yellow); }
.faq details p { margin: 0 0 20px; max-width: 42em; color: var(--ink-dim); }
.faq details b { color: var(--ink); }

/* ------------------------------------------------------------------ final CTA */
.final { position: relative; overflow: hidden; padding: clamp(72px, 9vw, 120px) 0 calc(clamp(200px, 25vw, 400px) * 0.92); text-align: center;
  background: linear-gradient(to bottom, #1b1236 0%, #5e2a5c 48%, #d8604a 78%, #ffb35a 100%); }
.final .wrap { position: relative; z-index: 2; }
.final-art { position: absolute; left: 0; bottom: 0; display: block; width: 100%; height: clamp(200px, 25vw, 400px); z-index: 1; pointer-events: none; }
.final-osd { margin: 0 0 8px; font-family: var(--f-osd); font-size: 22px; letter-spacing: 2px; color: var(--osd); text-shadow: 2px 2px 0 var(--osd-shadow), 0 0 8px var(--osd-glow); }
.final h2 { font-family: var(--f-sign); font-size: clamp(36px, 5vw, 60px); line-height: 1.1; color: var(--ink); margin: 0 0 30px; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35); }
.final .hero-facts { color: #fff3e0; text-shadow: 0 1px 6px rgba(40, 10, 30, 0.7); }

/* ------------------------------------------------------------------ footer */
.foot { padding: 56px 0 64px; background: var(--night); font-size: 15px; color: var(--ink-dim); border-top: 1px solid var(--line); }
.foot-logo { font-family: var(--f-sign); font-size: 28px; line-height: 1.2; color: var(--auto-yellow); text-shadow: 2px 2px 0 var(--apsrtc-red); margin-bottom: 10px; }
.foot-logo span { font-family: var(--f-osd); font-size: 21px; letter-spacing: 1.5px; color: var(--ink-dim); text-shadow: none; }
.foot-fiction { color: var(--ink); max-width: 42em; }
.foot-h { margin: 28px 0 8px; font-family: var(--f-osd); font-size: 20px; letter-spacing: 2px; color: var(--gold); }
.credits { margin: 0 0 24px; padding-left: 1.1em; max-width: 54em; }
.credits li { margin: 0 0 6px; }
.credits code { font-size: 0.92em; color: var(--ink); }
.foot-play { margin: 0; font-weight: 700; }

/* ------------------------------------------------------------------ motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
