/* ============================================================
   The Super Mario Galaxy Movie — concept experience
   Design system: deep-space nebula, bouncy springs, Titan One
   ============================================================ */

@font-face {
  font-family: 'Titan One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/titanone-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/nunito-400-latin.woff2') format('woff2');
}

:root {
  --space-0: #050510;
  --space-1: #0b0d2a;
  --space-2: #141a4d;
  --nebula-purple: #6b3fa0;
  --nebula-pink: #c65df0;
  --star-yellow: #ffd94a;
  --coin-gold: #fbd000;
  --mario-red: #e52521;
  --luigi-green: #43b047;
  --peach-pink: #f29ac1;
  --sky-blue: #43c6e8;
  --ink: #f4f6ff;
  --ink-dim: #b8c0e8;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --spring-big: cubic-bezier(.22, 1.8, .44, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --radius-lg: 28px;
  --gutter: clamp(20px, 5vw, 72px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { overscroll-behavior-y: none; }

body {
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--space-0);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}

img { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 300;
  background: var(--star-yellow); color: #111; font-weight: 800;
  padding: 10px 18px; border-radius: 999px; transition: top .25s var(--spring);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--star-yellow); outline-offset: 3px; border-radius: 6px; }

/* ---------- ambient layers ---------- */
#starfield {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.nebula-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(58% 42% at 18% 12%, rgba(107, 63, 160, .34), transparent 70%),
    radial-gradient(50% 40% at 85% 30%, rgba(198, 93, 240, .16), transparent 70%),
    radial-gradient(60% 55% at 50% 95%, rgba(20, 26, 77, .9), transparent 75%),
    linear-gradient(180deg, #070818 0%, #0b0d2a 45%, #050510 100%);
}
.nebula-bg::after {
  content: ""; position: absolute; inset: 0;
  background: url('../assets/bg-nebula.webp') center/cover no-repeat;
  opacity: .5; mix-blend-mode: screen;
}

main, .hero, .footer { position: relative; z-index: 1; }

/* ---------- progress road ---------- */
.progress-road {
  position: fixed; top: 0; left: 0; right: 0; height: 5px; z-index: 120;
  background: rgba(255,255,255,.07);
}
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #e52521, #fbd000, #43b047, #43c6e8, #c65df0);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 0 12px rgba(251, 208, 0, .55);
  transition: width .12s linear;
}

/* ---------- HUD ---------- */
.hud {
  position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 14px; z-index: 150;
  display: flex; gap: 8px; align-items: center;
}
.hud-pill {
  display: inline-flex; align-items: center; gap: 2px;
  background: rgba(11, 13, 42, .72);
  border: 2px solid rgba(255, 217, 74, .35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--star-yellow); font-weight: 900; font-size: 15px;
  border-radius: 999px; padding: 8px 14px;
  min-height: 44px; min-width: 44px;
  transition: transform .3s var(--spring), border-color .3s;
  user-select: none; -webkit-user-select: none;
}
.hud-pill:hover { transform: scale(1.08) rotate(-2deg); border-color: var(--star-yellow); }
.hud-pill:active { transform: scale(.94); }
.hud-luma { width: 22px; height: auto; margin-right: 4px; }
.hud-label { font-weight: 700; color: var(--ink-dim); font-size: 12px; }
.hud-sound .sound-off { display: none; }
.hud-sound[aria-pressed="false"] .sound-on { display: none; }
.hud-sound[aria-pressed="false"] .sound-off { display: inline; }

/* ---------- Luma companion ---------- */
#lumaPet {
  position: fixed; left: 18px; bottom: calc(18px + env(safe-area-inset-bottom));
  width: 64px; height: auto; z-index: 140; cursor: pointer;
  filter: drop-shadow(0 0 14px rgba(255, 217, 74, .65));
  animation: luma-bob 3.2s ease-in-out infinite;
  transition: transform .35s var(--spring);
  pointer-events: auto;
}
#lumaPet:hover { transform: scale(1.18) rotate(8deg); }
@keyframes luma-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* ---------- shared type ---------- */
.kicker {
  font-weight: 900; text-transform: uppercase; letter-spacing: .35em;
  color: var(--star-yellow); font-size: clamp(12px, 1.4vw, 15px);
}
.section-title {
  font-family: 'Titan One', 'Nunito', sans-serif; font-weight: 400;
  font-size: clamp(34px, 6.4vw, 76px); line-height: 1.04;
  margin-top: 14px;
  text-shadow: 0 4px 0 rgba(0,0,0,.35), 0 0 44px rgba(198, 93, 240, .35);
}
.section-sub { color: var(--ink-dim); margin-top: 12px; font-size: clamp(15px, 2vw, 18px); }
.section-head { text-align: center; padding: 0 var(--gutter); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 900; text-decoration: none;
  padding: 15px 28px; border-radius: 999px; border: 3px solid transparent;
  font-size: clamp(15px, 1.8vw, 18px);
  min-height: 48px;
  transition: transform .35s var(--spring), box-shadow .35s, background .3s;
  user-select: none; -webkit-user-select: none;
}
.btn-primary {
  background: linear-gradient(180deg, #ff6a5e, var(--mario-red) 60%, #b81a17);
  color: #fff; box-shadow: 0 6px 0 #7d100e, 0 14px 34px rgba(229, 37, 33, .45);
}
.btn-primary:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 10px 0 #7d100e, 0 22px 44px rgba(229, 37, 33, .5); }
.btn-primary:active { transform: translateY(2px) scale(.97); box-shadow: 0 2px 0 #7d100e; }
.btn-ghost {
  background: rgba(255,255,255,.06); color: var(--ink);
  border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px);
}
.btn-ghost:hover { transform: translateY(-4px) scale(1.04); background: rgba(255,255,255,.14); }
.btn-ghost:active { transform: translateY(2px) scale(.97); }
.btn-big { padding: 18px 34px; font-size: clamp(16px, 2vw, 20px); }
.btn-mini {
  padding: 10px 18px; min-height: 44px; font-size: 14px;
  background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.22);
}
.btn-mini:hover { background: rgba(255,255,255,.18); transform: translateY(-3px) rotate(-1deg); }
.btn-mini.is-active { border-color: var(--star-yellow); color: var(--star-yellow); }
.btn-flip {
  background: linear-gradient(180deg, #59d4f2, var(--sky-blue) 60%, #1f8fb0);
  color: #07202c; box-shadow: 0 6px 0 #14637c, 0 14px 30px rgba(67, 198, 232, .4);
}
.btn-flip:hover { transform: translateY(-4px) scale(1.05) rotate(1.5deg); }
.btn-flip:active { transform: translateY(2px) scale(.96); }

/* ---------- reveal system ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(46px) scale(.96);
  transition: opacity .7s var(--ease-out), transform .8s var(--spring-big);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].in { opacity: 1; transform: none; }

/* ============================================================ HERO */
.hero {
  min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(48px + env(safe-area-inset-top)) var(--gutter) 120px;
  text-align: center;
  overflow: clip;
}
.hero-inner { position: relative; z-index: 3; max-width: 900px; }
.hero-eyebrow {
  font-weight: 800; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink-dim); font-size: clamp(11px, 1.5vw, 14px);
  --reveal-delay: .1s;
}
.hero-logo {
  margin: 18px auto 6px; max-width: min(620px, 82vw);
  --reveal-delay: .22s;
}
.hero-logo img {
  filter: drop-shadow(0 10px 40px rgba(198, 93, 240, .45)) drop-shadow(0 4px 0 rgba(0,0,0,.4));
  animation: logo-float 6s ease-in-out infinite;
}
@keyframes logo-float {
  0%, 100% { transform: translateY(0) rotate(-.4deg); }
  50% { transform: translateY(-12px) rotate(.5deg); }
}
.hero-tagline {
  font-size: clamp(17px, 2.6vw, 24px); font-weight: 700; color: var(--ink);
  --reveal-delay: .36s;
}
.hero-tagline em { font-style: normal; color: var(--star-yellow); }
.hero-date-badge {
  margin: 22px auto 0; display: inline-flex; flex-direction: column; gap: 2px;
  padding: 12px 30px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(251,208,0,.16), rgba(251,208,0,.05));
  border: 2px solid rgba(251, 208, 0, .5);
  box-shadow: 0 0 34px rgba(251, 208, 0, .18), inset 0 0 22px rgba(251,208,0,.08);
  transform: rotate(-1.6deg);
  --reveal-delay: .5s;
}
.badge-only { font-size: 12px; font-weight: 800; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-dim); }
.badge-date {
  font-family: 'Titan One', sans-serif; font-size: clamp(24px, 4.4vw, 40px);
  color: var(--star-yellow); text-shadow: 0 3px 0 rgba(0,0,0,.4);
}
.hero-ctas {
  margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  --reveal-delay: .62s;
}
.hero-countdown-mini {
  margin-top: 26px; font-weight: 800; color: var(--ink-dim);
  font-size: clamp(13px, 1.8vw, 16px); --reveal-delay: .74s;
}
.cd-num { color: var(--star-yellow); font-variant-numeric: tabular-nums; }
.cd-num.tick { animation: cd-pop .4s var(--spring); display: inline-block; }
@keyframes cd-pop { 0% { transform: scale(1.45); color: #fff; } 100% { transform: none; } }
.cd-sep { opacity: .4; margin: 0 6px; }
.cd-tail { color: var(--ink-dim); }

.hero-mario {
  position: absolute; z-index: 2; right: clamp(-40px, 2vw, 90px); bottom: 6%;
  width: clamp(170px, 26vw, 380px);
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.5));
  animation: hero-drift 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes hero-drift {
  0%, 100% { rotate: -4deg; translate: 0 0; }
  50% { rotate: 3deg; translate: 0 -18px; }
}
.hero-peach {
  position: absolute; z-index: 2; left: clamp(-60px, -1vw, 60px); top: 12%;
  width: clamp(120px, 16vw, 240px); opacity: .95;
  animation: hero-drift 9s ease-in-out infinite reverse;
  pointer-events: none;
}
.hero-cloud { position: absolute; z-index: 1; opacity: .5; pointer-events: none; }
.cloud-a { left: -8%; bottom: 16%; width: clamp(200px, 30vw, 460px); animation: cloud-drift 26s linear infinite; }
.cloud-b { right: -6%; top: 8%; width: clamp(160px, 24vw, 380px); animation: cloud-drift 34s linear infinite reverse; }
@keyframes cloud-drift {
  0% { margin-left: 0; } 50% { margin-left: 34px; } 100% { margin-left: 0; }
}

.scroll-cue {
  position: absolute; z-index: 4; bottom: calc(22px + env(safe-area-inset-bottom)); left: 50%;
  translate: -50% 0; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--ink-dim); font-weight: 800; font-size: 12px;
  letter-spacing: .24em; text-transform: uppercase;
  min-height: 48px; padding: 6px 12px;
}
.cue-star { color: var(--star-yellow); animation: cue-bounce 1.6s var(--spring) infinite; display: block; }
@keyframes cue-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  40% { transform: translateY(9px) scale(.88); }
  60% { transform: translateY(4px) scale(1.12); }
}
.scroll-cue:hover .cue-star { animation-duration: .8s; }

/* ============================================================ LAUNCH */
.launch { height: 340svh; position: relative; }
.launch-stage {
  position: sticky; top: 0; height: 100svh; overflow: clip;
  display: grid; place-items: center;
}
.launch-sky {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #6ec6f5 0%, #a8dcfb 34%, #ffd9ec 68%, #ffe9c9 100%);
  opacity: 0; /* driven by JS */
}
.launch-planet {
  position: absolute; left: 50%; bottom: -8svh;
  width: 340vw; height: 40svh;
  translate: -50% 0; border-radius: 50% 50% 0 0;
  background:
    radial-gradient(58% 130% at 50% 0%, #8ff06a 0 34%, #43b047 62%, #2b7d33 100%);
  box-shadow: 0 -18px 70px rgba(126, 217, 87, .4), 0 -60px 140px rgba(110, 198, 245, .25);
  will-change: transform, opacity;
}
.planet-castle {
  position: absolute; left: calc(50% - clamp(100px, 16vw, 220px)); bottom: calc(100% - 12px); translate: -50% 0;
  width: clamp(64px, 8vw, 104px); height: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.25));
}
.launch-mario {
  position: absolute; z-index: 3; left: 50%; top: 62%;
  width: clamp(150px, 22vw, 300px);
  translate: -50% -50%;
  filter: drop-shadow(0 14px 30px rgba(0,0,0,.4));
  will-change: transform, opacity;
}
.launch-captions { position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 24svh; pointer-events: none; z-index: 4; }
.launch-caption {
  position: absolute; max-width: 720px; padding: 0 var(--gutter);
  font-family: 'Titan One', sans-serif; text-align: center;
  font-size: clamp(26px, 5vw, 54px); line-height: 1.12;
  text-shadow: 0 4px 0 rgba(0,0,0,.4), 0 0 40px rgba(11,13,42,.7);
  opacity: 0; transform: translateY(30px) scale(.94);
  transition: opacity .5s var(--ease-out), transform .6s var(--spring-big);
}
.launch-caption.on { opacity: 1; transform: none; }
.launch-caption strong { color: var(--star-yellow); font-weight: 400; }
.launch-progress {
  position: absolute; bottom: 26px; left: 50%; translate: -50% 0; z-index: 5;
  width: min(300px, 60vw); height: 6px; border-radius: 99px;
  background: rgba(255,255,255,.18); overflow: hidden;
}
#launchBar {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--coin-gold), var(--star-yellow));
  border-radius: 99px;
}

/* ============================================================ STORY */
.story { padding: clamp(90px, 14vw, 170px) var(--gutter) 60px; position: relative; overflow: clip; }
.story-beats {
  position: relative; z-index: 2;
  max-width: 1100px; margin: clamp(48px, 7vw, 90px) auto 0;
  display: flex; flex-direction: column; gap: clamp(70px, 10vw, 130px);
}
.beat {
  display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 70px); align-items: center;
}
.beat-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }
.beat-flip .beat-media { order: 2; }
.planet-card {
  border-radius: 50%;
  overflow: hidden; aspect-ratio: 1;
  border: 5px solid rgba(255,255,255,.14);
  box-shadow: 0 24px 60px rgba(0,0,0,.55), inset 0 0 60px rgba(0,0,0,.4), 0 0 50px rgba(107,63,160,.3);
  transform: rotate(-3deg);
  transition: transform .5s var(--spring);
}
.beat:nth-child(2) .planet-card { transform: rotate(3deg); }
.planet-card:hover { transform: rotate(0deg) scale(1.05); }
.planet-card img { width: 100%; height: 100%; object-fit: cover; }
.beat-num {
  font-family: 'Titan One', sans-serif; font-size: clamp(15px, 2vw, 20px);
  color: var(--nebula-pink); letter-spacing: .18em;
}
.beat-copy h3 {
  font-family: 'Titan One', sans-serif; font-weight: 400;
  font-size: clamp(26px, 3.6vw, 42px); margin: 8px 0 12px;
  text-shadow: 0 3px 0 rgba(0,0,0,.35);
}
.beat-copy p { color: var(--ink-dim); font-size: clamp(15px, 1.9vw, 18px); max-width: 52ch; }
.story-yoshi {
  position: absolute; z-index: 1; right: -90px; bottom: -60px; width: clamp(240px, 30vw, 420px);
  filter: drop-shadow(0 16px 40px rgba(0,0,0,.5));
  pointer-events: none;
}
.drift { animation: hero-drift 8s ease-in-out infinite; }

/* ============================================================ GRAVITY interlude */
.gravity {
  min-height: 78svh; display: grid; place-items: center;
  padding: 80px var(--gutter); text-align: center;
}
.gravity-line {
  font-family: 'Titan One', sans-serif;
  font-size: clamp(28px, 5.6vw, 64px); line-height: 1.15; max-width: 20ch;
  text-shadow: 0 4px 0 rgba(0,0,0,.35);
}
.gravity-line .hl {
  background: linear-gradient(100deg, var(--star-yellow), var(--nebula-pink), var(--sky-blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
#gravityFlip { margin-top: 34px; }
.gravity-hint { margin-top: 22px; color: var(--ink-dim); font-size: 14px; font-weight: 700; opacity: .8; }

body.flipped main, body.flipped .hero, body.flipped .footer { animation: flip-spin 1.1s var(--spring-big); }
@keyframes flip-spin {
  0% { rotate: 0deg; } 55% { rotate: 185deg; } 78% { rotate: 176deg; } 100% { rotate: 180deg; }
}
body.flipped { }
body.flipped main, body.flipped .hero, body.flipped .footer { rotate: 180deg; }
body.flipped #lumaPet { rotate: 180deg; }
body.flipped .hud { rotate: 180deg; transform-origin: center; }

/* ============================================================ CHARACTERS */
.characters { padding: clamp(90px, 13vw, 160px) var(--gutter); }
.crew-grid {
  list-style: none; max-width: 1180px; margin: clamp(44px, 6vw, 80px) auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.6vw, 30px);
}
.crew-card { perspective: 900px; }
.crew-btn {
  position: relative; display: flex; flex-direction: column; align-items: center;
  width: 100%; min-height: 100%; padding: 30px 18px 26px;
  background: linear-gradient(180deg, rgba(20, 26, 77, .75), rgba(11, 13, 42, .85));
  border: 3px solid color-mix(in srgb, var(--hue) 55%, transparent);
  border-radius: var(--radius-lg);
  transition: transform .45s var(--spring), border-color .3s, box-shadow .45s;
  overflow: visible; text-align: center;
  transform-style: preserve-3d;
}
.crew-btn:hover, .crew-card.popped .crew-btn {
  border-color: var(--hue);
  box-shadow: 0 18px 50px rgba(0,0,0,.5), 0 0 44px color-mix(in srgb, var(--hue) 40%, transparent);
}
.crew-planet {
  width: clamp(120px, 15vw, 190px); aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(75% 75% at 32% 26%, color-mix(in srgb, var(--hue) 78%, white) 0%, var(--hue) 46%, color-mix(in srgb, var(--hue) 58%, black) 100%);
  box-shadow: inset -12px -16px 34px rgba(0,0,0,.45), 0 14px 34px rgba(0,0,0,.45), 0 0 30px color-mix(in srgb, var(--hue) 45%, transparent);
  transition: transform .5s var(--spring);
}
.crew-img {
  position: absolute; left: 50%; top: 4px; translate: -50% 0;
  width: auto; height: clamp(150px, 17vw, 210px); max-width: 92%;
  object-fit: contain;
  transform-origin: 50% 100%;
  transform: translateY(0) scale(1);
  transition: transform .55s var(--spring-big);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.5));
  pointer-events: none;
}
.crew-img-wide { height: auto; width: 88%; top: 40px; }
.crew-btn:hover .crew-img, .crew-card.popped .crew-img {
  transform: translateY(-20px) scale(1.09) rotate(-3deg);
}
.crew-btn:active .crew-img { transform: translateY(-10px) scale(1.02) rotate(2deg); }
.crew-name {
  font-family: 'Titan One', sans-serif; font-size: clamp(22px, 2.6vw, 30px);
  margin-top: 22px; text-shadow: 0 3px 0 rgba(0,0,0,.4);
}
.crew-actor {
  font-size: 12px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase;
  color: var(--hue); margin-top: 4px;
  filter: brightness(1.35);
}
.crew-note {
  margin-top: 10px; color: var(--ink-dim); font-size: 14px; font-weight: 700;
  max-width: 30ch;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .5s var(--ease-out), opacity .45s, margin .45s;
}
.crew-btn:hover .crew-note, .crew-card.popped .crew-note, .crew-btn:focus-visible .crew-note {
  max-height: 90px; opacity: 1;
}
.crew-wide { grid-column: 1 / -1; }
.crew-wide .crew-btn { padding-top: 20px; }
.crew-wide .crew-planet { position: absolute; inset: auto; opacity: 0; width: 0; }
.crew-wide .crew-img { position: static; translate: none; transform: scale(.94); margin: 6px auto 0; }
.crew-wide .crew-btn:hover .crew-img, .crew-card.popped .crew-img-wide { transform: scale(1.02) rotate(-1deg); }

/* ============================================================ WATCH */
.watch { padding: clamp(90px, 13vw, 160px) 0; }
.theater { max-width: 1080px; margin: clamp(44px, 6vw, 80px) auto 0; padding: 0 var(--gutter); }
.theater-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 5px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 80px rgba(107, 63, 160, .35);
  aspect-ratio: 16/9; background: #000;
  transform: rotate(-.6deg);
  transition: transform .5s var(--spring);
}
.theater-frame:hover { transform: rotate(0deg) scale(1.01); }
.theater-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.theater-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play-btn {
  position: absolute; inset: 0; margin: auto; width: 96px; height: 96px;
  border-radius: 50%; border: 4px solid rgba(255,255,255,.9);
  background: rgba(229, 37, 33, .92); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 34px rgba(0,0,0,.55);
  transition: transform .35s var(--spring), background .3s;
}
.play-btn:hover { transform: scale(1.14); background: var(--mario-red); }
.play-btn:active { transform: scale(.92); }
.play-ring {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 4px solid rgba(255,255,255,.75);
  animation: ring-pulse 2s var(--ease-out) infinite;
}
@keyframes ring-pulse {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.65); opacity: 0; }
}
.theater-tag {
  position: absolute; left: 18px; bottom: 16px;
  background: rgba(5, 5, 16, .78); backdrop-filter: blur(6px);
  padding: 8px 16px; border-radius: 999px;
  font-weight: 900; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--star-yellow); border: 1.5px solid rgba(255,217,74,.4);
}
.theater-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

.gallery { margin-top: clamp(56px, 8vw, 90px); }
.gallery-label {
  padding: 0 var(--gutter); font-weight: 900; text-transform: uppercase;
  letter-spacing: .26em; font-size: 13px; color: var(--ink-dim); margin-bottom: 18px;
}
.gallery-track {
  display: flex; gap: clamp(12px, 2vw, 22px);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px var(--gutter) 26px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item {
  flex: 0 0 clamp(170px, 24vw, 240px); scroll-snap-align: center;
  border-radius: 20px; overflow: hidden; position: relative;
  border: 3px solid rgba(255,255,255,.14);
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  transition: transform .4s var(--spring), border-color .3s;
}
.gallery-item:nth-child(odd) { transform: rotate(-1.4deg); }
.gallery-item:nth-child(even) { transform: rotate(1.2deg); }
.gallery-item:hover { transform: rotate(0) translateY(-8px) scale(1.04); border-color: var(--star-yellow); z-index: 2; }
.gallery-item img { width: 100%; height: clamp(230px, 32vw, 310px); object-fit: cover; display: block; }
.gallery-wide { flex-basis: clamp(280px, 42vw, 430px); }
.gallery-poster { flex-basis: clamp(180px, 24vw, 230px); }
.gallery-item--frame { position: relative; }
.gallery-item--frame::before {
  content: ""; position: absolute; inset: 0;
  background: url('../assets/scene-peachmario.webp') center/cover no-repeat;
  filter: blur(16px) brightness(.5) saturate(1.25);
  transform: scale(1.25);
}
.gallery-item--frame img { position: relative; object-fit: contain; }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px; font-weight: 900; font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase;
  background: linear-gradient(transparent, rgba(5,5,16,.9));
}

/* ============================================================ RELEASE */
.release { position: relative; padding: clamp(110px, 15vw, 200px) var(--gutter); text-align: center; overflow: clip; }
.release-keyart {
  position: absolute; inset: -6% -4%;
  background: url('../assets/keyart-cast.webp') center 30% / cover no-repeat;
  opacity: .34; z-index: -1;
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 72%, transparent 100%);
}
.release-date {
  font-family: 'Titan One', sans-serif; font-weight: 400;
  font-size: clamp(52px, 11vw, 150px); line-height: .98; margin-top: 16px;
  background: linear-gradient(180deg, #fff 12%, var(--star-yellow) 48%, #f5890a 82%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 0 rgba(0,0,0,.35)) drop-shadow(0 0 60px rgba(251,208,0,.3));
}
.release-sub { margin-top: 18px; font-size: clamp(16px, 2.2vw, 22px); font-weight: 800; color: var(--ink); }
.countdown {
  margin: clamp(34px, 5vw, 54px) auto 0;
  display: flex; gap: clamp(10px, 2.4vw, 24px); justify-content: center; flex-wrap: wrap;
}
.cd-cell {
  min-width: clamp(74px, 12vw, 130px); padding: clamp(14px, 2.4vw, 24px) 10px;
  background: rgba(11, 13, 42, .72); border: 3px solid rgba(198, 93, 240, .4);
  border-radius: 22px; backdrop-filter: blur(8px);
  box-shadow: 0 14px 40px rgba(0,0,0,.4);
  transition: transform .4s var(--spring), border-color .3s;
}
.cd-cell:hover { transform: translateY(-6px) rotate(-1.4deg); border-color: var(--nebula-pink); }
.cd-big {
  display: block; font-family: 'Titan One', sans-serif;
  font-size: clamp(30px, 6vw, 60px); color: var(--star-yellow);
  font-variant-numeric: tabular-nums; line-height: 1;
  text-shadow: 0 3px 0 rgba(0,0,0,.4);
}
.cd-big.tick { animation: cd-pop .4s var(--spring); }
.cd-cap { display: block; margin-top: 8px; font-size: 11px; font-weight: 900; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-dim); }
.release-ctas { margin-top: clamp(34px, 5vw, 50px); display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.release-formats { margin-top: 26px; color: var(--ink-dim); font-weight: 700; font-size: 15px; }
.release-formats strong { color: var(--ink); }

/* ============================================================ FOOTER */
.footer {
  padding: 90px var(--gutter) calc(50px + env(safe-area-inset-bottom));
  text-align: center; border-top: 1px solid rgba(255,255,255,.08);
}
.footer-logo { width: min(300px, 60vw); opacity: .95; }
.footer-credits { margin-top: 26px; color: var(--ink-dim); font-size: 14px; line-height: 1.9; }
.footer-credits strong { color: var(--ink); }
.footer-legal { margin-top: 22px; font-size: 12px; color: #6c76a8; line-height: 1.8; }
.footer-note { opacity: .85; }
.footer-top {
  display: inline-block; margin-top: 28px; min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 2px solid rgba(255,255,255,.2);
  text-decoration: none; font-weight: 900; font-size: 14px;
  transition: transform .35s var(--spring), background .3s;
}
.footer-top:hover { transform: translateY(-5px); background: rgba(255,255,255,.08); }

/* ============================================================ FX overlays */
.star-bit {
  position: fixed; z-index: 200; width: 10px; height: 10px; pointer-events: none;
  background: var(--star-yellow);
  clip-path: polygon(50% 0%, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0% 50%, 37% 37%);
  filter: drop-shadow(0 0 6px rgba(255, 217, 74, .9));
}
.superstar-banner, .flip-banner {
  position: fixed; left: 50%; top: 38%; translate: -50% -50%; z-index: 210;
  display: flex; align-items: center; gap: 14px;
  font-family: 'Titan One', sans-serif; font-size: clamp(30px, 7vw, 68px);
  color: var(--star-yellow); text-shadow: 0 5px 0 rgba(0,0,0,.45), 0 0 60px rgba(251,208,0,.7);
  pointer-events: none; opacity: 0;
}
.flip-banner { color: var(--sky-blue); text-shadow: 0 5px 0 rgba(0,0,0,.45), 0 0 60px rgba(67,198,232,.7); }
.superstar-banner.show, .flip-banner.show { animation: banner-pop 2.2s var(--spring-big) forwards; }
@keyframes banner-pop {
  0% { opacity: 0; transform: scale(.4) rotate(-8deg); }
  16% { opacity: 1; transform: scale(1.12) rotate(2deg); }
  26% { transform: scale(1) rotate(0deg); }
  80% { opacity: 1; transform: scale(1.02); }
  100% { opacity: 0; transform: scale(1.25) translateY(-30px); }
}
body.superstar #starfield { filter: saturate(1.8) brightness(1.35); }
body.superstar .nebula-bg { animation: rainbow-hue 1.6s linear infinite; }
@keyframes rainbow-hue { 0% { filter: hue-rotate(0deg); } 100% { filter: hue-rotate(360deg); } }

/* ============================================================ RESPONSIVE */
@media (max-width: 900px) {
  .crew-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-peach { display: none; }
}
@media (max-width: 640px) {
  .hero { padding-bottom: 96px; }
  .hero-mario { width: clamp(120px, 34vw, 170px); right: -34px; bottom: 1.5%; opacity: .95; }
  .scroll-cue { white-space: nowrap; font-size: 11px; letter-spacing: .18em; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-ctas { flex-direction: column; align-items: stretch; padding: 0 20px; }
  .beat, .beat-flip { grid-template-columns: 1fr; gap: 22px; }
  .beat-flip .beat-media { order: 0; }
  .planet-card { max-width: 300px; margin: 0 auto; }
  .crew-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .crew-btn { padding: 20px 10px 18px; }
  .crew-name { font-size: 19px; }
  .crew-note { font-size: 12.5px; }
  .crew-img { height: clamp(120px, 32vw, 150px); top: 0; }
  .crew-planet { width: clamp(110px, 30vw, 140px); }
  .launch-mario { width: clamp(130px, 40vw, 200px); }
  .launch-captions { padding-bottom: 38svh; }
  .hud-label { display: none; }
  .story-yoshi { right: -90px; width: 240px; opacity: .8; }
  .theater-frame { border-width: 3px; border-radius: 20px; }
  .play-btn { width: 72px; height: 72px; }
  .countdown { gap: 8px; }
  .cd-cell { min-width: calc(50% - 8px); }
}
@media (max-width: 340px) {
  .crew-grid { grid-template-columns: 1fr; }
  .crew-img { height: 150px; }
  .crew-planet { width: 150px; }
  .crew-wide .crew-img { height: auto; }
}
@media (max-width: 640px) {
  #lumaPet { width: 46px; }
}

/* ============================================================ REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
  .launch { height: auto; }
  .launch-stage { position: relative; height: auto; min-height: 60svh; padding: 80px 0; }
  .launch-caption { position: static; opacity: 1; transform: none; margin: 18px 0; }
  .launch-progress, .scroll-cue .cue-star { display: none; }
  .launch-sky { opacity: 1; }
}
