:root {
  --bg-deep: #07020f;
  --bg-mid: #1a0630;
  --fire-1: #ffd25a;
  --fire-2: #ff7a1a;
  --fire-3: #ff3b1f;
  --pink: #ff2fb4;
  --violet: #9b4dff;
  --blue: #3d6bff;
  --text: #fff7f0;
  --muted: #d9c6e8;
  --rx: 0deg;
  --ry: 0deg;
  --px: 0;
  --py: 0;
  --beat: 0;
  --title-font: 'Lilita One', 'Arial Black', system-ui, sans-serif;
  --script-font: 'Pacifico', cursive;
  --body-font: 'Inter', system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  overscroll-behavior: none;
  touch-action: manipulation; /* no double-tap zoom delay */
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--body-font);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

.stage { position: relative; min-height: 100svh; min-height: 100dvh; overflow: hidden; isolation: isolate; }

/* ---------- Background layers ---------- */
.sky {
  position: fixed; inset: -10%;
  z-index: -3;
  background:
    radial-gradient(60% 45% at 50% 55%, rgba(255, 90, 31, .25), transparent 70%),
    radial-gradient(50% 50% at 85% 75%, rgba(155, 77, 255, .35), transparent 70%),
    radial-gradient(45% 40% at 10% 80%, rgba(255, 47, 180, .25), transparent 70%),
    radial-gradient(120% 80% at 50% 0%, var(--bg-mid), var(--bg-deep) 70%);
  transform: translate(calc(var(--px) * -12px), calc(var(--py) * -12px));
  animation: skyPulse 8s ease-in-out infinite alternate;
}
@keyframes skyPulse { to { filter: hue-rotate(-25deg) brightness(1.15); } }

.beams {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  transform: translate(calc(var(--px) * -24px), calc(var(--py) * -16px));
}
.beam {
  position: absolute; top: -10%;
  width: 16vmax; height: 140vh;
  transform-origin: 50% 0;
  background: linear-gradient(to bottom, var(--c) 0%, transparent 85%);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  mix-blend-mode: screen;
  filter: blur(8px);
  opacity: .55;
  animation: sweep var(--d, 7s) ease-in-out infinite alternate;
}
.b1 { --c: rgba(61, 107, 255, .9); left: 2%;  --from: -35deg; --to: 5deg;  --d: 6s; }
.b2 { --c: rgba(155, 77, 255, .9); left: 18%; --from: -10deg; --to: 25deg; --d: 8s; }
.b3 { --c: rgba(255, 47, 180, .8); left: 38%; --from: 20deg;  --to: -20deg; --d: 5s; }
.b4 { --c: rgba(255, 122, 26, .7); left: 52%; --from: -20deg; --to: 18deg; --d: 7s; }
.b5 { --c: rgba(155, 77, 255, .9); left: 72%; --from: 15deg;  --to: -25deg; --d: 6.5s; }
.b6 { --c: rgba(61, 107, 255, .9); left: 88%; --from: 35deg;  --to: -5deg; --d: 9s; }
@keyframes sweep { from { rotate: var(--from); } to { rotate: var(--to); } }

.crowd {
  position: fixed; left: 0; right: 0; bottom: 0; height: clamp(90px, 22vh, 220px);
  z-index: -1; pointer-events: none;
  transform: translate(calc(var(--px) * 10px), 0);
}
.crowd svg { width: 100%; height: 100%; display: block; }
.crowd .person { animation: bob var(--bd, .5s) ease-in-out infinite alternate; animation-delay: var(--dl, 0s); transform-box: fill-box; transform-origin: 50% 100%; }
.crowd .arm { animation: wave var(--wd, .9s) ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes bob { to { transform: translateY(-6%); } }
@keyframes wave { from { rotate: -14deg; } to { rotate: 14deg; } }

#lasers { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; mix-blend-mode: screen; }
.city { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .7s, visibility .7s; }
.city.on { opacity: 1; visibility: visible; }
/* The camera dives through the logo into the city, and the page zooms back in on arrival. */
.content { transition: scale .9s cubic-bezier(.55, 0, .9, .45), opacity .9s, filter .9s; }
.content.dive { scale: 6; opacity: 0; filter: blur(8px); pointer-events: none; }
.content.arriving { scale: .5; opacity: 0; transition: none; }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; mix-blend-mode: screen; }

.flash { position: fixed; inset: 0; z-index: 6; pointer-events: none; background: radial-gradient(circle, #fff, #ffd25a 40%, #ff2fb4); opacity: 0; mix-blend-mode: screen; }
.flash.go { animation: flash .45s ease-out; }
@keyframes flash { from { opacity: .85; } }

/* ---------- Intro gate: mysterious black screen; its tap unlocks audio so the intro runs on the song's timeline ---------- */
.gate { display: none; }
.pre .gate {
  position: fixed; inset: 0; z-index: 30; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(14px, 3.5svh, 28px);
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  text-align: center; background: #000;
  transition: opacity .6s ease-in, visibility .6s;
}
.pre .gate.leaving { opacity: 0; visibility: hidden; }
/* Film grain. */
.gate::before {
  content: ''; position: absolute; inset: -50%; 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 .4s steps(4) infinite;
}
@keyframes grain { 25% { translate: -4% 3%; } 50% { translate: 3% -5%; } 75% { translate: -2% -3%; } 100% { translate: 4% 2%; } }
/* Drifting smoke. */
.gate::after {
  content: ''; position: absolute; inset: -30%; pointer-events: none;
  background: radial-gradient(40% 30% at 30% 70%, rgba(120, 60, 160, .16), transparent 70%), radial-gradient(35% 25% at 70% 30%, rgba(255, 90, 31, .08), transparent 70%);
  filter: blur(30px); animation: smoke 14s ease-in-out infinite alternate;
}
@keyframes smoke { to { translate: 8% -6%; rotate: 8deg; } }
.gate > * { position: relative; z-index: 1; }

.gate-ember {
  width: 14px; height: 14px; border-radius: 50%;
  background: #ffd25a;
  box-shadow: 0 0 10px #ffb300, 0 0 30px #ff7a1a, 0 0 70px 10px rgba(255, 59, 31, .55), 0 0 160px 40px rgba(255, 59, 31, .18);
  animation: breathe 2.6s ease-in-out infinite, gateIn 1.5s ease-out both;
}
@keyframes breathe { 50% { scale: .55; opacity: .55; box-shadow: 0 0 6px #ffb300, 0 0 16px #ff7a1a, 0 0 40px 4px rgba(255, 59, 31, .35), 0 0 100px 20px rgba(255, 59, 31, .1); } }
@keyframes gateIn { from { opacity: 0; filter: blur(8px); } }
.gate-sparks i {
  position: absolute; left: var(--x); bottom: -10px; width: 3px; height: 3px; border-radius: 50%;
  background: #ffb347; box-shadow: 0 0 6px #ff7a1a;
  animation: floatUp var(--t) linear var(--d) infinite;
}
@keyframes floatUp { 0% { opacity: 0; translate: 0 0; } 15% { opacity: .9; } 100% { opacity: 0; translate: var(--sway) -105svh; } }
.gate-sparks { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.gate-whisper {
  position: relative; margin: 0;
  font-family: var(--title-font); font-weight: normal; font-size: clamp(1.9rem, 9vw, 3.6rem); letter-spacing: .06em;
  color: #f3e6ff; text-shadow: 0 0 10px rgba(255, 122, 26, .6), 0 0 34px rgba(155, 77, 255, .5);
  animation: gateIn 2s .6s ease-out both, neonFlicker 6s 2.6s infinite steps(1);
}
@keyframes neonFlicker { 0%, 100% { opacity: 1; } 31% { opacity: .3; } 32% { opacity: 1; } 34% { opacity: .5; } 35% { opacity: 1; } 71% { opacity: .7; } 72% { opacity: 1; } }
/* Glitch slices: two offset copies that jitter now and then. */
.gate-whisper::before, .gate-whisper::after { content: attr(data-text); position: absolute; inset: 0; opacity: 0; }
.gate-whisper::before { color: #ff2fb4; animation: glitchA 4s 3s infinite steps(1); }
.gate-whisper::after { color: #3d6bff; animation: glitchB 4s 3s infinite steps(1); }
@keyframes glitchA { 0%, 88%, 100% { opacity: 0; } 89% { opacity: .8; translate: -4px 0; clip-path: inset(10% 0 55% 0); } 92% { opacity: .8; translate: 3px 0; clip-path: inset(60% 0 10% 0); } 95% { opacity: 0; } }
@keyframes glitchB { 0%, 88%, 100% { opacity: 0; } 90% { opacity: .8; translate: 4px 0; clip-path: inset(40% 0 30% 0); } 93% { opacity: .8; translate: -3px 0; clip-path: inset(5% 0 75% 0); } 95% { opacity: 0; } }

.gate-when { margin: -6px 0 0; font-size: clamp(.8rem, 3.2vw, 1rem); letter-spacing: .5em; text-transform: uppercase; color: rgba(255, 210, 160, .55); animation: gateIn 2s 1.6s ease-out both; }
.gate-sound { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 8px 0 0; color: var(--muted); animation: gateIn 1.5s 2.6s ease-out both; }
.gate-sound svg { width: 44px; height: 44px; fill: none; stroke: #ffd9b8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(255, 122, 26, .8)); animation: breathe 2.6s ease-in-out infinite; }
.gate-sound strong { font-size: clamp(1.05rem, 4.4vw, 1.3rem); color: #fff; letter-spacing: .04em; }
.gate-sound span { font-size: .9rem; color: rgba(217, 198, 232, .7); }

.gate-start {
  min-width: min(100%, 300px); min-height: 60px; padding: 16px 30px;
  font-family: var(--title-font); font-size: clamp(1.2rem, 5vw, 1.5rem); letter-spacing: .08em; color: #fff;
  border: 1.5px solid rgba(255, 170, 110, .8); border-radius: 999px; cursor: pointer;
  background: radial-gradient(circle at 50% 120%, rgba(255, 90, 31, .45), rgba(40, 10, 50, .6) 70%);
  box-shadow: 0 0 18px rgba(255, 90, 31, .55), inset 0 0 18px rgba(255, 90, 31, .3);
  animation: gateIn 1.2s 3.4s ease-out both, heartbeat 1.6s 4.6s ease-in-out infinite;
  touch-action: manipulation;
}
@keyframes heartbeat { 0%, 40%, 100% { scale: 1; } 10% { scale: 1.06; box-shadow: 0 0 34px rgba(255, 90, 31, .9), inset 0 0 22px rgba(255, 90, 31, .5); } 20% { scale: 1; } 28% { scale: 1.04; } }
.gate-start:focus-visible, .gate-silent:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.gate-silent { min-height: 44px; padding: 10px 16px; font: inherit; font-size: .9rem; color: rgba(217, 198, 232, .55); background: none; border: 0; text-decoration: underline; cursor: pointer; animation: gateIn 1s 4s ease-out both; }

/* No scrolling while the logo builds itself. */
.pre, .pre body { overflow: hidden; height: 100%; }
.logo { -webkit-user-select: none; user-select: none; }

/* Hidden until the timeline reveals them. */
.pre .beam:not(.on) { visibility: hidden; }
.pre .part:not(.on), .pre .ltr:not(.on), .pre .tagline:not(.risen), .pre .marquee:not(.risen) { opacity: 0; }
.pre .card:not(.risen) { display: none; }
.pre .word::after { display: none; }

/* ---------- Content ---------- */
.content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(14px, 3vw, 28px);
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) calc(clamp(90px, 22vh, 220px) * .6) max(16px, env(safe-area-inset-left));
  perspective: 1000px;
}

/* ---------- Logo ---------- */
.logo {
  position: relative; margin: clamp(48px, 12vw, 110px) 0 0;
  /* Height-capped so the loader and form stay above the fold on wide screens. */
  width: min(100%, 960px, 70svh);
  container-type: inline-size;
  aspect-ratio: 16 / 10.5;
  font-weight: normal;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .15s ease-out;
}

.content.shake { animation: shake .5s cubic-bezier(.36, .07, .19, .97); }
@keyframes shake {
  10%, 90% { translate: -2px 1px; } 20%, 80% { translate: 5px -3px; }
  30%, 50%, 70% { translate: -9px 4px; } 40%, 60% { translate: 9px -4px; }
}

.disco {
  position: absolute; left: 50%; top: 55%; width: 90cqw; aspect-ratio: 1; translate: -50% -50%;
  background: conic-gradient(from 0deg, rgba(255,122,26,.0), rgba(255,122,26,.35), rgba(255,47,180,.0), rgba(155,77,255,.35), rgba(61,107,255,0), rgba(255,210,90,.3), rgba(255,122,26,0));
  border-radius: 50%;
  mask: radial-gradient(closest-side, #000 20%, transparent 100%);
  filter: blur(10px);
  animation: spin 10s linear infinite;
  transform: translateZ(-60px);
}
@keyframes spin { to { rotate: 360deg; } }

.orbit { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; transform: translateZ(-20px) rotate(-6deg); }
.orbit ellipse { fill: none; stroke: url(#orbitGrad); }
.orbit-ring { stroke-width: 5; filter: drop-shadow(0 0 6px #ff7a1a) drop-shadow(0 0 18px #ff2fb4); opacity: .85; }
.orbit-comet {
  stroke-width: 12; stroke-linecap: round; stroke-dasharray: 8 92;
  filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 20px #ffd25a);
  animation: comet 3.2s linear infinite;
}
.orbit-comet.c2 { stroke-dasharray: 4 96; animation-duration: 4.6s; animation-direction: reverse; stroke-width: 8; }
@keyframes comet { to { stroke-dashoffset: -100; } }

.icon { position: absolute; fill: none; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.neon-orange { stroke: #ffb347; filter: drop-shadow(0 0 3px #ff7a1a) drop-shadow(0 0 12px #ff5a1f); animation: flicker 4s infinite steps(1); }
.neon-pink { stroke: #ff6ad5; filter: drop-shadow(0 0 3px #ff2fb4) drop-shadow(0 0 12px #ff2fb4); animation: flicker 5.3s 1s infinite steps(1); }
@keyframes flicker {
  0%, 100% { opacity: 1; } 41% { opacity: .35; } 42% { opacity: 1; } 43% { opacity: .5; } 45% { opacity: 1; } 77% { opacity: .6; } 78% { opacity: 1; }
}
.burger { left: 4cqw; top: 12cqw; width: 14cqw; transform: translateZ(40px); animation: flicker 4s infinite steps(1), floaty 3s ease-in-out infinite alternate; }
.cocktail { right: -1cqw; top: 10cqw; width: 13cqw; transform: translateZ(40px); animation: flicker 5.3s 1s infinite steps(1), floaty 3.6s ease-in-out .5s infinite alternate; }
@keyframes floaty { from { translate: 0 -4%; rotate: -6deg; } to { translate: 0 4%; rotate: 6deg; } }

.cutlery { left: 56cqw; top: 2cqw; width: 8cqw; stroke: #f2f2ff; stroke-width: 4; filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 10px #9b4dff); transform: translateZ(50px); }
.cutlery .fork { transform-box: fill-box; transform-origin: 50% 100%; rotate: -12deg; animation: clink 2.4s ease-in-out infinite; }
.cutlery .knife { transform-box: fill-box; transform-origin: 50% 100%; rotate: 16deg; animation: clink 2.4s ease-in-out infinite reverse; }
@keyframes clink { 0%, 80%, 100% { translate: 0; } 88% { translate: 6% -4%; } }

.cloche-wrap { position: absolute; left: 36cqw; top: 3cqw; width: 22cqw; transform: translateZ(60px); }
.cloche { width: 100%; display: block; position: relative; filter: drop-shadow(0 0 12px rgba(255, 180, 60, .8)); animation: lid 3s ease-in-out infinite; }
@keyframes lid { 0%, 85%, 100% { translate: 0; } 90% { translate: 0 -8%; rotate: -4deg; } 95% { translate: 0 -2%; } }
.flames { position: absolute; left: 10%; right: 10%; bottom: 55%; height: 120%; }
.flame { position: absolute; bottom: 0; width: 55%; transform-origin: 50% 100%; mix-blend-mode: screen; filter: blur(1px) drop-shadow(0 0 10px #ff5a1f); }
.f1 { left: 0; height: 100%; animation: burn 0.9s ease-in-out infinite alternate; }
.f2 { left: 22%; height: 125%; animation: burn 0.7s ease-in-out .2s infinite alternate; }
.f3 { left: 45%; height: 95%; animation: burn 1.1s ease-in-out .1s infinite alternate; }
.f1 path { fill: #ff7a1a; } .f2 path { fill: #ffc93a; } .f3 path { fill: #ff4a1f; }
@keyframes burn {
  0% { transform: scale(1, 1) skewX(0deg); opacity: .9; }
  50% { transform: scale(.9, 1.15) skewX(-6deg); }
  100% { transform: scale(1.08, .92) skewX(6deg); opacity: 1; }
}

.amp {
  position: absolute; left: -1cqw; top: 26cqw;
  font-family: var(--script-font); font-size: 30cqw; line-height: 1;
  color: transparent;
  -webkit-text-stroke: .6cqw #ffd25a;
  text-shadow: 0 0 1cqw #ffb300, 0 0 3cqw #ff7a1a, 0 0 6cqw #ff3b1f;
  transform: translateZ(70px) rotate(-8deg);
  animation: ampGlow 1.6s ease-in-out infinite alternate;
}
@keyframes ampGlow { to { -webkit-text-stroke-color: #fff3c4; text-shadow: 0 0 1.5cqw #fff, 0 0 4cqw #ffb300, 0 0 9cqw #ff3b1f; } }

.words { position: absolute; left: 0; right: 0; top: 21cqw; display: flex; flex-direction: column; transform: translateZ(80px) skewX(-7deg); }
.word {
  position: relative; display: block;
  font-family: var(--title-font); font-size: 17.5cqw; line-height: .9; letter-spacing: .02em;
  color: #fff4e8;
  text-shadow:
    .25cqw .25cqw 0 #d9b9e8, .5cqw .5cqw 0 #a77bc2, .75cqw .75cqw 0 #7b4a99, 1cqw 1cqw 0 #55286f, 1.25cqw 1.25cqw 0 #3a1150,
    1.5cqw 1.8cqw 2.5cqw rgba(0, 0, 0, .7), 0 0 3cqw rgba(255, 170, 110, .55);
}
.happen { color: #fff1e0; }
.stappen { color: #fbeeff; }
/* A light band sweeping across the letters. */
.word::after {
  content: attr(data-text); position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .95) 50%, transparent 60%) 0 0 / 250% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none;
  animation: shine 3.5s ease-in-out infinite;
}
.happen { margin-left: 22cqw; }
.stappen { margin-left: 20cqw; }
@keyframes shine { from { background-position: 120% 0; } 60%, to { background-position: -120% 0; } }

.badge {
  position: absolute; left: 50%; top: 53cqw; translate: -50% 0;
  padding: 1.6cqw 5cqw; border-radius: 3cqw;
  background: linear-gradient(#1b0828, #1b0828) padding-box, linear-gradient(90deg, #ffb300, #ff3b1f, #ff2fb4, #9b4dff) border-box;
  border: .6cqw solid transparent;
  box-shadow: 0 0 2cqw rgba(255, 90, 31, .7), 0 0 5cqw rgba(155, 77, 255, .5), inset 0 0 2cqw rgba(255, 47, 180, .35);
  transform: translateZ(90px);
  animation: pulse 1.2s ease-in-out infinite;
}
.badge span { font-family: var(--title-font); font-size: 7cqw; letter-spacing: .04em; color: #fff; text-shadow: 0 0 1cqw #fff, 0 0 3cqw #ff7a1a; font-style: italic; }
@keyframes pulse { 50% { scale: 1.06; box-shadow: 0 0 3cqw rgba(255, 90, 31, .95), 0 0 8cqw rgba(155, 77, 255, .8), inset 0 0 3cqw rgba(255, 47, 180, .5); } }

/* ---------- Tagline + marquee ---------- */
.tagline { margin: 0; text-align: center; font-size: clamp(1rem, 3.6vw, 1.35rem); line-height: 1.5; color: var(--muted); text-shadow: 0 2px 12px #000; }
.tagline strong { display: inline-block; margin-top: 4px; color: #fff; letter-spacing: .25em; font-weight: 800; background: linear-gradient(90deg, var(--fire-1), var(--pink), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.marquee {
  width: 100vw; overflow: hidden; padding: 10px 0;
  background: linear-gradient(90deg, rgba(255,122,26,.18), rgba(255,47,180,.18), rgba(155,77,255,.18));
  border-block: 2px solid rgba(255, 140, 220, .55);
  box-shadow: 0 0 24px rgba(255, 47, 180, .45), inset 0 0 18px rgba(255, 122, 26, .25);
  rotate: -2deg;
}
.marquee-track { display: flex; width: max-content; animation: marquee 18s linear infinite; }
.marquee-track span { font-family: var(--title-font); font-size: clamp(1.1rem, 4.5vw, 1.8rem); white-space: nowrap; color: #fff; text-shadow: 0 0 8px var(--pink), 0 0 18px var(--fire-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Card ---------- */
.card {
  position: relative; width: min(100%, 460px);
  padding: clamp(20px, 5vw, 32px);
  border-radius: 24px;
  background: rgba(22, 8, 38, .55);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
}
.card { scroll-margin-top: max(16px, env(safe-area-inset-top)); }
.risen { animation: rise .8s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes rise { from { opacity: 0; translate: 0 40px; } }
.card-glow {
  position: absolute; inset: -2px; z-index: -1; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--angle, 0deg), var(--fire-1), var(--fire-3), var(--pink), var(--violet), var(--blue), var(--fire-1));
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  filter: drop-shadow(0 0 10px rgba(255, 47, 180, .8));
  animation: rotateAngle 4s linear infinite;
}
@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes rotateAngle { to { --angle: 360deg; } }

.card h2 { margin: 0 0 6px; font-family: var(--title-font); font-weight: normal; font-size: clamp(1.6rem, 6vw, 2rem); letter-spacing: .02em; }
.card-sub { margin: 0 0 18px; color: var(--muted); line-height: 1.45; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; margin-bottom: 6px; font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #ffc9a3; }
.field input {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 16px; /* 16px stops iOS zooming on focus */
  color: #fff; background: rgba(0, 0, 0, .35);
  border: 1.5px solid rgba(255, 255, 255, .18); border-radius: 14px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: rgba(255, 255, 255, .35); }
.field input:focus { border-color: var(--fire-2); box-shadow: 0 0 0 4px rgba(255, 122, 26, .25), 0 0 24px rgba(255, 122, 26, .45); }
.turnstile { min-height: 65px; margin: 6px 0 10px; display: flex; justify-content: center; }
.error { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 59, 31, .18); border: 1px solid rgba(255, 59, 31, .6); color: #ffd2c8; }
.error.shake-x { animation: shakeX .4s; }
@keyframes shakeX { 25% { translate: -8px; } 50% { translate: 8px; } 75% { translate: -4px; } }

.cta {
  position: relative; width: 100%; min-height: 56px; padding: 14px 20px; overflow: hidden;
  font-family: var(--title-font); font-size: 1.35rem; letter-spacing: .04em; color: #fff;
  border: 0; border-radius: 16px; cursor: pointer;
  background: linear-gradient(90deg, var(--fire-2), var(--fire-3), var(--pink), var(--violet), var(--fire-2));
  background-size: 300% 100%;
  box-shadow: 0 0 20px rgba(255, 90, 31, .7), 0 0 50px rgba(255, 47, 180, .45);
  text-shadow: 0 2px 6px rgba(0, 0, 0, .4);
  animation: ctaFlow 4s linear infinite;
  transition: transform .15s, box-shadow .2s;
}
.cta::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); translate: -100% 0; animation: gleam 2.8s ease-in-out infinite; }
.cta:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 0 30px rgba(255, 90, 31, .9), 0 0 70px rgba(255, 47, 180, .7); }
.cta:active { transform: scale(.97); }
.cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.cta[disabled] { opacity: .6; cursor: progress; }
@keyframes ctaFlow { to { background-position: 300% 0; } }
@keyframes gleam { 60%, 100% { translate: 100% 0; } }
.privacy { margin: 14px 0 0; font-size: .8rem; line-height: 1.45; color: rgba(217, 198, 232, .75); text-align: center; }

.success { text-align: center; padding: 10px 0; outline: none; }
.success:not([hidden]) { animation: pop .6s cubic-bezier(.2, 1.6, .4, 1) both; }
.success-emoji { font-size: 4rem; animation: floaty 1.2s ease-in-out infinite alternate; }
.success p { color: var(--muted); }
@keyframes pop { from { opacity: 0; scale: .6; } }

.footer { font-size: .8rem; color: rgba(217, 198, 232, .5); }

/* ---------- Logo build-up (classes added by the timeline in effects.js) ---------- */
.ltr { display: inline-block; }
.ltr.on { animation: letterDrop .45s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes letterDrop { from { opacity: 0; translate: 0 -140%; scale: 1.8; rotate: -20deg; filter: blur(6px); } }

.orbit.on .orbit-ring { stroke-dasharray: 100; animation: draw 1.1s cubic-bezier(.6, 0, .3, 1) both; }
@keyframes draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

@keyframes powerOn { 0% { opacity: 0; } 10% { opacity: 1; } 20% { opacity: .1; } 35% { opacity: 1; } 45% { opacity: .2; } 60%, 100% { opacity: 1; } }
.burger.on { animation: powerOn .7s steps(1) both, flicker 4s .7s infinite steps(1), floaty 3s ease-in-out infinite alternate; }
.cocktail.on { animation: powerOn .7s steps(1) both, flicker 5.3s 1.7s infinite steps(1), floaty 3.6s ease-in-out .5s infinite alternate; }

.cutlery .fork.on { animation: flyFromLeft .45s cubic-bezier(.3, 1.4, .5, 1) both, clink 2.4s .45s ease-in-out infinite; }
.cutlery .knife.on { animation: flyFromRight .45s cubic-bezier(.3, 1.4, .5, 1) both, clink 2.4s .45s ease-in-out infinite reverse; }
@keyframes flyFromLeft { from { opacity: 0; translate: -400% -120%; } }
@keyframes flyFromRight { from { opacity: 0; translate: 400% -120%; } }

.cloche-wrap.on { animation: dropIn .55s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes dropIn { from { opacity: 0; translate: 0 -260%; } }
.flames.on { animation: ignite .5s cubic-bezier(.2, 1.8, .4, 1) both; transform-origin: 50% 100%; }
@keyframes ignite { from { opacity: 0; scale: .1 0; } }

.amp.on { animation: wipe .7s ease-out both, ampGlow 1.6s .7s ease-in-out infinite alternate; }
@keyframes wipe { from { clip-path: inset(-50% 100% -50% -50%); } to { clip-path: inset(-50%); } }

.badge.on { animation: badgeSlam .5s cubic-bezier(.2, 1.6, .4, 1) both, pulse 1.2s .5s ease-in-out infinite; }
@keyframes badgeSlam { from { opacity: 0; scale: 4; filter: blur(10px); } }
.disco.on { animation: discoIn 1.2s ease-out both, spin 10s linear infinite; }
@keyframes discoIn { from { opacity: 0; scale: .2; } }

/* The title bumps with the bass while the song plays. */
.words { scale: calc(1 + var(--beat) * .05); }

/* ---------- Fake loading bar ---------- */
.loader { display: none; }
.pre .loader { display: block; width: min(100%, 420px); text-align: center; opacity: 0; }
.pre .loader.risen { opacity: 1; }
.loader.done { animation: loaderOut .4s ease-in both; }
@keyframes loaderOut { to { opacity: 0; scale: 1.3; filter: blur(8px); } }
.loader-label { margin: 0 0 12px; min-height: 1.5em; font-weight: 600; letter-spacing: .04em; color: #ffe3c7; text-shadow: 0 0 10px rgba(255, 122, 26, .7); }
.loader-bar {
  position: relative; height: 22px; padding: 3px; border-radius: 999px; overflow: hidden;
  background: rgba(0, 0, 0, .5); border: 2px solid rgba(255, 140, 220, .7);
  box-shadow: 0 0 18px rgba(255, 47, 180, .6), inset 0 0 10px rgba(0, 0, 0, .6);
}
.loader-bar i {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .25) 0 8px, transparent 8px 16px), linear-gradient(90deg, var(--fire-1), var(--fire-2), var(--pink), var(--violet));
  background-size: 22px 22px, 100% 100%;
  box-shadow: 0 0 14px var(--fire-2);
  animation: stripes .5s linear infinite;
}
@keyframes stripes { to { background-position: 22px 0, 0 0; } }
.loader-pct { margin: 10px 0 0; font-family: var(--title-font); font-size: 2rem; color: #fff; text-shadow: 0 0 12px var(--pink); font-variant-numeric: tabular-nums; }

/* ---------- Neon grid floor + fog ---------- */
.floor {
  position: fixed; left: -50%; right: -50%; bottom: 0; height: 38vh; z-index: -2; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 47, 180, .55) 0 2px, transparent 2px 80px),
    repeating-linear-gradient(0deg, rgba(155, 77, 255, .55) 0 2px, transparent 2px 80px);
  transform: perspective(300px) rotateX(62deg);
  transform-origin: 50% 100%;
  mask: linear-gradient(to top, #000 10%, transparent 90%);
  -webkit-mask: linear-gradient(to top, #000 10%, transparent 90%);
  filter: drop-shadow(0 0 6px #ff2fb4);
  opacity: calc(.45 + var(--beat) * .5);
  animation: floorMove 1.02s linear infinite; /* one cell per beat at ~117 BPM */
}
@keyframes floorMove { to { background-position: 0 80px, 0 80px; } }
.fog { position: fixed; inset: auto 0 0 0; height: 45vh; z-index: -1; pointer-events: none; overflow: hidden; }
.fog i { position: absolute; bottom: -20%; width: 120%; height: 100%; border-radius: 50%; background: radial-gradient(closest-side, rgba(200, 150, 255, .22), transparent); filter: blur(20px); animation: drift 18s ease-in-out infinite alternate; }
.fog i:nth-child(2) { left: -40%; background: radial-gradient(closest-side, rgba(255, 120, 80, .18), transparent); animation-duration: 24s; animation-direction: alternate-reverse; }
@keyframes drift { from { translate: -15% 0; } to { translate: 25% -8%; } }

/* ---------- Lyrics: one line at a time, alternating sides, words popping in ---------- */
.lyric {
  position: fixed; z-index: 1; pointer-events: none;
  top: 50%; max-height: 92svh;
  writing-mode: vertical-rl;
  font-family: var(--title-font); font-size: clamp(1.3rem, 2.6vw, 2.3rem); line-height: 1.15; letter-spacing: .04em;
  color: #fff; text-align: center; text-transform: uppercase;
}
.lyric-left { left: max(14px, env(safe-area-inset-left)); translate: 0 -50%; rotate: 180deg; }
.lyric-right { right: max(14px, env(safe-area-inset-right)); translate: 0 -50%; }
.lyric-left { text-shadow: 0 0 8px var(--fire-2), 0 0 24px var(--fire-3); }
.lyric-right { text-shadow: 0 0 8px var(--pink), 0 0 24px var(--violet); }
.lyric .lw { display: inline-block; opacity: .28; text-shadow: none; }
.lyric .lw.lit { opacity: 1; text-shadow: inherit; animation: wordPop .3s cubic-bezier(.2, 1.8, .4, 1) both; }
.lyric.out { animation: lyricOut .5s ease-in both; }
@keyframes wordPop { from { scale: 1.6; color: #fff6c8; } }
@keyframes lyricOut { to { opacity: 0; filter: blur(8px); } }
/* Phones: no room on the sides, so lines show as a subtitle pill at the top edge. */
@media (max-width: 700px) {
  .lyric {
    writing-mode: horizontal-tb; rotate: none; translate: -50% 0; z-index: 4;
    top: max(10px, env(safe-area-inset-top)); left: 50%; width: max-content; max-width: calc(100vw - 32px);
    padding: 6px 14px; border-radius: 999px; font-size: clamp(.95rem, 4.4vw, 1.2rem);
    background: rgba(10, 3, 20, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  .lyric:empty { display: none; }
}

/* ---------- Music ---------- */
.music-toggle {
  position: fixed; z-index: 20;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 8px;
  min-width: 48px; min-height: 48px; padding: 10px 14px;
  font-size: 1.25rem; color: #fff; cursor: pointer;
  background: rgba(22, 8, 38, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 140, 220, .6); border-radius: 999px;
  box-shadow: 0 0 16px rgba(255, 47, 180, .5);
}
.music-toggle:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.eq { display: none; align-items: flex-end; gap: 3px; height: 18px; }
.music-toggle.playing .eq { display: flex; }
.eq i { width: 4px; height: 100%; border-radius: 2px; background: linear-gradient(var(--fire-1), var(--pink)); transform-origin: bottom; animation: eq .5s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -.2s; } .eq i:nth-child(3) { animation-delay: -.35s; } .eq i:nth-child(4) { animation-delay: -.1s; }
@keyframes eq { from { scale: 1 .2; } to { scale: 1 1; } }

/* Beat-reactive accents (--beat is set by music.js while the song plays). */
.disco { opacity: calc(.75 + var(--beat) * .8); }
.beams { opacity: calc(.8 + var(--beat) * .6); }
.orbit-ring { stroke-width: calc(5px + var(--beat) * 6px); }

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .beam { width: 30vmax; }
  .marquee { rotate: -3deg; }
}

/* ---------- Reduced motion: final states, no movement ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #fx, #lasers, .flash, .lyric, .city { display: none; }
}
