/* ============================================================
   Summertastic Contest · Disney Channel — campaign microsite
   Responsive desktop + mobile · brand-led, illustration-driven
   ============================================================ */

:root {
  /* Brand */
  --dc-deep:        #0a0e3f;
  --dc-purple-deep: #1a0b4d;
  --dc-purple:      #3b1c8a;
  --dc-purple-2:    #4a1f9c;
  --dc-purple-br:   #6c2bd9;
  --dc-magenta:     #e6189c;
  --dc-pink:        #ff5fb6;
  --dc-pink-2:      #ff3aa3;
  --dc-teal:        #1ec9c5;
  --dc-cyan:        #29d3ff;
  --dc-yellow:      #ffd23f;
  --dc-yellow-warm: #ffb627;
  --dc-cream:       #fff7e8;
  --dc-sand:        #fff3d6;

  --ink:        #0c0626;
  --ink-2:      #1a0b4d;
  --ink-soft:   #4a3b7a;
  --ink-mute:   #7766a5;
  --paper:      #ffffff;
  --paper-soft: #f6f1ff;
  --paper-warm: #fff7e8;
  --line:       rgba(60, 28, 138, 0.12);
  --line-2:     rgba(60, 28, 138, 0.18);

  --shadow-md: 0 12px 30px -12px rgba(26, 11, 77, 0.35);
  --shadow-lg: 0 28px 70px -24px rgba(26, 11, 77, 0.45);
  --shadow-xl: 0 50px 120px -40px rgba(26, 11, 77, 0.6);
  --shadow-pop: 0 10px 0 0 #b40c79, 0 24px 40px -10px rgba(180, 12, 121, 0.55);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-pill: 999px;

  --font-display: 'Outfit', 'Baloo 2', system-ui, sans-serif;
  --font-fun:     'Baloo 2', 'Outfit', system-ui, sans-serif;
  --font-body:    'Fredoka', 'Outfit', system-ui, sans-serif;
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
  position: relative;
  /* Mobile / short viewport: allow vertical scroll if form/content can't fit */
}
@media (max-width: 900px), (max-height: 760px) {
  body {
    height: auto;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
  }
}
body {
  /* Solid navy fallback. The actual scene gradient lives on .global-scene
     (which is position:fixed and renders reliably on iOS Safari, where
     background-attachment:fixed on body is broken). */
  background: #07154a;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ═══════════════ Atmosphere ═══════════════ */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 40% at 88% 8%, rgba(255, 220, 120, 0.45) 0%, transparent 65%),
    radial-gradient(80% 50% at 50% 100%, rgba(20, 110, 180, 0.35) 0%, transparent 70%);
}
.sun-glow {
  position: absolute;
  top: -160px; right: -80px;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 120, 0.55) 0%, rgba(255, 145, 80, 0.18) 40%, transparent 70%);
  filter: blur(50px);
  animation: sunPulse 10s ease-in-out infinite;
}
@keyframes sunPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50%      { transform: scale(1.07); opacity: 1; }
}

/* ─── Glassmorphism clouds ─── */
.cloud-glass {
  position: absolute;
  display: flex;
  align-items: center;
  pointer-events: none;
  filter: drop-shadow(0 12px 26px rgba(8, 30, 90, 0.25));
  animation: cloudDrift 80s linear infinite;
}
.cloud-glass i {
  display: block;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0.18) 100%);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow:
    inset 0 -10px 18px rgba(20, 80, 160, 0.12),
    inset 0 8px 16px rgba(255, 255, 255, 0.55);
  margin-left: -18px;
}
.cloud-glass i:first-child { margin-left: 0; }
.cloud-a { top: 7%;  left: -260px; }
.cloud-a i:nth-child(1) { width: 56px; height: 56px; }
.cloud-a i:nth-child(2) { width: 80px; height: 80px; margin-left: -22px; }
.cloud-a i:nth-child(3) { width: 64px; height: 64px; margin-left: -28px; }
.cloud-a i:nth-child(4) { width: 48px; height: 48px; margin-left: -22px; }

.cloud-b { top: 22%; left: -260px; animation-delay: -28s; animation-duration: 100s; }
.cloud-b i:nth-child(1) { width: 44px; height: 44px; }
.cloud-b i:nth-child(2) { width: 60px; height: 60px; margin-left: -16px; }
.cloud-b i:nth-child(3) { width: 40px; height: 40px; margin-left: -18px; }

.cloud-c { top: 12%; left: -260px; animation-delay: -55s; animation-duration: 130s; opacity: 0.85; }
.cloud-c i:nth-child(1) { width: 52px; height: 52px; }
.cloud-c i:nth-child(2) { width: 86px; height: 86px; margin-left: -22px; }
.cloud-c i:nth-child(3) { width: 70px; height: 70px; margin-left: -32px; }
.cloud-c i:nth-child(4) { width: 54px; height: 54px; margin-left: -24px; }

.cloud-d { top: 38%; left: -260px; animation-delay: -70s; animation-duration: 110s; opacity: 0.75; }
.cloud-d i:nth-child(1) { width: 38px; height: 38px; }
.cloud-d i:nth-child(2) { width: 56px; height: 56px; margin-left: -16px; }
.cloud-d i:nth-child(3) { width: 42px; height: 42px; margin-left: -18px; }

@keyframes cloudDrift {
  to { transform: translateX(calc(100vw + 320px)); }
}

/* Subtle on-theme floating accents */
.float-icon {
  position: absolute;
  font-size: 30px;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.25));
  animation: floatY 7s ease-in-out infinite;
  pointer-events: none;
}
.fi-1 { top: 28%; left: 4%;  font-size: 30px; animation-delay: 0s; }
.fi-2 { top: 70%; right: 5%; font-size: 30px; animation-delay: -3s; }
.fi-3 { top: 56%; left: 3%;  font-size: 26px; animation-delay: -5s; }
@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-16px) rotate(6deg); }
}

/* Ocean waves along the bottom of the page */
.ocean {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 240px;
  pointer-events: none;
}
.wave {
  position: absolute;
  left: -10%; right: -10%;
  width: 120%;
  bottom: 0;
}
.wave-back  { height: 150px; bottom: 0;   animation: waveX 14s ease-in-out infinite; }
.wave-mid   { height: 130px; bottom: 0;   animation: waveX 10s ease-in-out infinite reverse; }
.wave-front { height: 110px; bottom: -10px; animation: waveX 8s ease-in-out infinite; }
@keyframes waveX {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(-30px); }
}

/* ═══════════════ Top bar ═══════════════ */
.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(20px, 4vw, 56px);
}
.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 22px 10px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.96);
  box-shadow: 0 12px 28px -12px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.6);
  transition: transform 0.15s ease;
}
.topbar-brand:hover { transform: translateY(-2px); }
.topbar-brand .dc-logo { height: 42px; width: auto; }
.topbar-brand .st-logo { height: 44px; width: auto; }
.topbar-divider {
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, transparent, rgba(60,28,138,0.3), transparent);
  flex: 0 0 auto;
}
@media (max-width: 700px) {
  .topbar-brand .st-logo { display: none; }
  .topbar-divider { display: none; }
  .topbar-brand { gap: 0; padding: 8px 18px 8px 12px; }
  .topbar-brand .dc-logo { height: 32px; }
}
.topbar-meta { display: flex; align-items: center; gap: 12px; }

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-pill);
  color: white;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.live-pill-on-dark {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #5af09a;
  position: relative;
  flex: 0 0 auto;
  box-shadow: 0 0 0 0 rgba(90, 240, 154, 0.7);
  animation: livePulse 1.6s ease-out infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(90, 240, 154, 0.7); }
  100% { box-shadow: 0 0 0 12px rgba(90, 240, 154, 0); }
}

/* ═══════════════ App / screens ═══════════════ */
.app {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.screen {
  display: none;
  padding: clamp(20px, 4vw, 56px) clamp(20px, 4vw, 56px) clamp(40px, 6vw, 80px);
  animation: screenIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.screen.is-active { display: block; }
@keyframes screenIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════ Typography helpers ═══════════════ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.92);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--dc-purple-br);
  box-shadow: 0 6px 16px -8px rgba(0,0,0,0.3);
  width: fit-content;
}
.eyebrow-light {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  backdrop-filter: blur(12px);
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--dc-magenta);
}
.eyebrow-light .eyebrow-dot { background: var(--dc-yellow); }

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 16px 0 0;
  color: white;
  text-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.display em {
  font-style: normal;
  background: linear-gradient(90deg, var(--dc-yellow), var(--dc-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
.display .word-pop {
  display: inline-block;
  background: linear-gradient(90deg, var(--dc-yellow), var(--dc-yellow-warm));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  animation: wordPop 2.4s ease-in-out infinite;
}
@keyframes wordPop {
  0%, 100% { transform: scale(1) rotate(-1deg); }
  50%      { transform: scale(1.05) rotate(2deg); }
}

.display-md { font-size: clamp(28px, 4vw, 44px); }
.display-sm { font-size: clamp(22px, 3vw, 32px); }

.lede {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  margin: 14px 0 0;
  max-width: 540px;
}
.lede-light { color: rgba(255,255,255,0.85); }
.lede strong { color: white; font-weight: 700; }

/* ═══════════════ Buttons ═══════════════ */
.btn {
  appearance: none;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-fun);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-lg { padding: 16px 28px; font-size: 17px; }
.btn-xl { padding: 18px 34px; font-size: 18px; }

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--dc-magenta) 0%, var(--dc-purple-br) 100%);
  box-shadow: var(--shadow-pop);
  position: relative;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.25), transparent 50%);
  pointer-events: none;
}
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 4px 0 0 #b40c79, 0 12px 18px -8px rgba(180,12,121,0.45); }
.btn-primary:disabled {
  background: linear-gradient(135deg, #b8aad6 0%, #9d92be 100%);
  box-shadow: 0 6px 0 0 #7e72a1, 0 12px 18px -8px rgba(126,114,161,0.4);
  cursor: not-allowed;
  filter: grayscale(0.15);
}
.btn-primary:disabled:hover { transform: none; }

.btn-ghost {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); }

/* ═══════════════════════════════════════════════════════════
   1. SPLASH — cinematic stage (single viewport, no scroll on desktop)
   ═══════════════════════════════════════════════════════════ */
.screen-splash {
  padding: 0 !important;
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
}

/* The stage absorbs the cursor parallax + entrance zoom-in */
.hero-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  animation: stageZoom 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  transform-origin: 50% 60%;
  pointer-events: none;
}
.hero-stage > * { pointer-events: auto; }

/* ─── Global scene — sky, water, island, palms behind every screen ─── */
.global-scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  animation: stageZoom 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  transform-origin: 50% 60%;
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 215, 90, 0.45) 0%, rgba(255, 95, 182, 0.14) 26%, transparent 44%),
    linear-gradient(180deg,
      #07154a 0%,
      #0e2b85 18%,
      #1755c8 40%,
      #2c8be8 62%,
      #5fc4ee 82%,
      #93dfe6 100%);
}
@media (max-width: 700px) {
  /* Tone down the warm corner accent on phones so it doesn't overpower
     the dark blue sky. */
  .global-scene {
    background:
      radial-gradient(circle at 92% 10%, rgba(255, 215, 90, 0.32) 0%, rgba(255, 145, 80, 0.1) 22%, transparent 38%),
      linear-gradient(180deg,
        #07154a 0%,
        #0e2b85 22%,
        #1755c8 46%,
        #2c8be8 68%,
        #5fc4ee 86%,
        #93dfe6 100%);
  }
  /* Shrink the additional sun-glow blob too */
  .sun-glow { width: 280px; height: 280px; top: -100px; right: -50px; }
}

main.app {
  position: relative;
  z-index: 1;
}

/* Make all screens transparent so the global scene shows through */
.screen { background: transparent; }
@keyframes stageZoom {
  0%   { transform: scale(1.2); filter: blur(10px) brightness(1.1); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: scale(1); filter: blur(0) brightness(1); opacity: 1; }
}

/* ─── Parallax layers ─── */
.stage-sky, .stage-water, .island, .hero-hud {
  position: absolute;
  left: 0; right: 0;
  pointer-events: none;
}
.stage-sky    { top: 0; height: 100%; z-index: 1;
                transform: translate3d(calc(var(--cursor-x, 0) * -10px), calc(var(--cursor-y, 0) * -4px), 0);
                transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1); }
.stage-water  { left: -32px; right: -32px; bottom: 0; height: 38%; z-index: 2;
                transform: translate3d(calc(var(--cursor-x, 0) * -16px), 0, 0);
                transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); }
.island       { bottom: 0; z-index: 3;
                transform: translate3d(calc(var(--cursor-x, 0) * -22px), calc(var(--cursor-y, 0) * -4px), 0);
                transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); }
.hero-hud     { inset: 0; z-index: 8; pointer-events: none; }
.hero-hud * { pointer-events: auto; }

/* Hero logos — Disney Channel + Summertastic, stacked top-center */
.hero-logos {
  position: absolute;
  top: 1.5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
  pointer-events: none;
}
@media (min-width: 701px) {
  .hero-st-logo { margin-top: -80px; }
}
.hero-dc-logo {
  width: clamp(220px, 22vw, 320px);
  /* Layered shadows: tight dark halo gives the white logo a defined edge
     so it stays visible even when a white cloud passes behind it.
     Outer soft shadow adds depth against the dark sky. */
  filter:
    drop-shadow(0 0 1.5px rgba(8, 30, 90, 0.95))
    drop-shadow(0 0 4px rgba(8, 30, 90, 0.7))
    drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
}
.hero-st-logo {
  width: clamp(320px, 36vw, 540px);
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(8, 30, 90, 0.45));
}

.hero-dc-logo, .page-dc-logo { display: block; height: auto; }

/* Hero content — heading + CTA */
.hero-content {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  z-index: 9;
  text-align: center;
  pointer-events: none;
  width: min(760px, 92vw);
}
.hero-content > * { pointer-events: auto; }
.hero-heading {
  font-family: var(--font-fun);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.05;
  color: #fff;
  margin: 0;
  letter-spacing: -0.005em;
  text-shadow:
    0 2px 0 rgba(8, 30, 90, 0.55),
    0 4px 0 rgba(8, 30, 90, 0.3),
    0 14px 30px rgba(8, 30, 90, 0.55);
}
.hero-heading-accent {
  color: var(--dc-yellow);
  text-shadow:
    0 2px 0 rgba(140, 60, 0, 0.55),
    0 4px 0 rgba(140, 60, 0, 0.3),
    0 14px 30px rgba(255, 180, 60, 0.5);
  font-style: italic;
  display: inline-block;
}

/* Responsive — keep logos / heading / button / palms from overlapping */
@media (max-width: 1100px) {
  .hero-content { top: 44%; gap: 18px; }
  .hero-heading { font-size: clamp(1.6rem, 3.6vw, 2.6rem); }
}
@media (max-width: 760px) {
  .hero-content { top: 34%; gap: 16px; width: 92vw; }
  .hero-heading { font-size: clamp(1.5rem, 5.4vw, 2.2rem); }
  .hero-content .btn-xl { padding: 14px 22px; font-size: 1rem; }
}
@media (max-width: 480px) {
  .hero-content { top: 30%; gap: 14px; }
  .hero-heading { font-size: clamp(1.3rem, 6vw, 1.8rem); line-height: 1.1; }
  .hero-logos { top: -2%; }
  .hero-dc-logo { width: clamp(110px, 22vw, 160px); transform: translateY(18px); }
  .hero-st-logo { width: clamp(180px, 42vw, 260px); }
  .hero-logos > * + * { margin-top: -22px; }
}

/* ─── Sky / sun ─── */
.big-sun {
  position: absolute;
  top: 4%; right: 6%;
  width: clamp(110px, 12vw, 170px);
  height: clamp(110px, 12vw, 170px);
  z-index: 1;
  filter: drop-shadow(0 22px 40px rgba(255, 195, 80, 0.6));
  animation: sunBreathe 4.5s ease-in-out infinite;
  transform-origin: 50% 50%;
}
.sun-rays-group {
  transform-origin: 120px 120px;
  animation: sunRays 32s linear infinite;
}
@keyframes sunBreathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.045); }
}
@keyframes sunRays {
  to { transform: rotate(360deg); }
}

/* Soft floating clouds */
.cloud {
  position: absolute;
  filter: blur(0.5px) drop-shadow(0 18px 28px rgba(8, 30, 90, 0.22));
  animation: cloudDrift 90s linear infinite;
  pointer-events: none;
}
.cloud-1 { top: 7%;  left: -320px; width: 240px; animation-duration: 95s;  animation-delay: 0s; }
.cloud-2 { top: 13%; left: -320px; width: 190px; animation-duration: 75s;  animation-delay: -36s; }
.cloud-3 { top: 5%;  left: -320px; width: 170px; animation-duration: 110s; animation-delay: -68s; }
@keyframes cloudDrift { to { transform: translateX(calc(100vw + 320px)); } }

/* Subtle on-theme accents (no balloon, no stars, no pineapple) */
.float-icon {
  position: absolute;
  font-size: 28px;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.25));
  animation: floatY 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
.fi-coconut  { top: 38%; left: 4%;   animation-delay: 0s;   font-size: 30px; }
.fi-shell    { top: 18%; right: 22%; animation-delay: -5s;  font-size: 22px; }
@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-14px) rotate(6deg); }
}

/* ─── Water (the ocean surrounding the island) ─── */
.stage-water {
  background: linear-gradient(180deg,
    #1e87e3 0%,
    #34a3df 30%,
    #5fc4ee 65%,
    #93dfe6 100%);
  overflow: hidden;
}
.stage-water .wave {
  position: absolute;
  /* Extend ~10% beyond parent on each side. Cursor parallax shifts the
     wave (and its stage-water parent) by up to ~38px combined; this overhang
     guarantees the viewport edge never reveals an empty gap. The parent's
     overflow: hidden clips the spillover. */
  left: -10%; right: -10%;
  pointer-events: none;
  background-repeat: repeat-x;
  background-position: 0 bottom;
  will-change: transform, background-position;
}
.stage-water .wave-back {
  bottom: 32%;
  height: 200px;
  background-image: url('assets/wave-back.png');
  background-size: 1600px auto;
  opacity: 0.6;
  filter: brightness(1.1) saturate(0.85) blur(0.4px);
  animation: waveScrollSlow 90s linear infinite;
  transform: translate3d(calc(var(--cursor-x, 0) * 6px), calc(var(--cursor-y, 0) * -2px), 0);
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.stage-water .wave-mid {
  bottom: 8%;
  height: 240px;
  background-image: url('assets/wave-mid.png');
  background-size: 1400px auto;
  opacity: 0.92;
  animation: waveScrollMed 60s linear infinite reverse;
  transform: translate3d(calc(var(--cursor-x, 0) * -8px), calc(var(--cursor-y, 0) * -3px), 0);
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ─── Foreground waves (above island, covering its base) ─── */
.stage-water-front {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 24%;
  z-index: 4;
  pointer-events: none;
  overflow: visible;
}
.stage-water-front .wave {
  position: absolute;
  /* Same overhang as background waves so cursor parallax never exposes a gap. */
  left: -10%; right: -10%;
  pointer-events: none;
  background-repeat: repeat-x;
  background-position: 0 bottom;
  will-change: transform, background-position;
}
.stage-water-front .wave-front-a {
  bottom: 18%;
  height: 200px;
  background-image: url('assets/wave-mid.png');
  background-size: 1300px auto;
  opacity: 0.95;
  filter: brightness(0.86) saturate(1.25) hue-rotate(-4deg);
  animation: waveScrollMed 42s linear infinite;
  transform: translate3d(calc(var(--cursor-x, 0) * -14px), calc(var(--cursor-y, 0) * -4px), 0);
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.stage-water-front .wave-front-b {
  bottom: -30px;
  height: 240px;
  background-image: url('assets/wave-mid.png');
  background-size: 1200px auto;
  opacity: 1;
  filter: brightness(0.72) saturate(1.5) hue-rotate(-10deg);
  animation: waveScrollFast 28s linear infinite reverse;
  transform: translate3d(calc(var(--cursor-x, 0) * -22px), calc(var(--cursor-y, 0) * -6px), 0);
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes waveScrollSlow {
  from { background-position: 0 bottom; }
  to   { background-position: -1600px bottom; }
}
@keyframes waveScrollMed {
  from { background-position: 0 bottom; }
  to   { background-position: -1400px bottom; }
}
@keyframes waveScrollFast {
  from { background-position: 0 bottom; }
  to   { background-position: -1200px bottom; }
}
@keyframes waveScrollSlowVW {
  from { background-position: 0 bottom; }
  to   { background-position: -180vw bottom; }
}
@keyframes waveScrollMedVW {
  from { background-position: 0 bottom; }
  to   { background-position: -160vw bottom; }
}
@keyframes waveScrollFastVW {
  from { background-position: 0 bottom; }
  to   { background-position: -140vw bottom; }
}

/* ─── Wave responsive sizing (tablet & mobile) ───
   PNG aspect: 4.8 (2400×500). Opaque content fills y=181-499 of PNG (~63.8%).
   To avoid the transparent top of the PNG showing sand through, we size each
   wave div to ONLY the opaque portion: height = bg-size-width / 7.52
   (= width / 4.8 × (319/500)). With bg-position: 0 bottom this crops out
   the transparent strip. */
@media (max-width: 900px) {
  .stage-water .wave-back {
    bottom: 32%;
    height: calc(180vw / 7.52);
    background-size: 180vw auto;
    animation-name: waveScrollSlowVW;
    animation-duration: 70s;
  }
  .stage-water .wave-mid {
    bottom: 8%;
    height: calc(160vw / 7.52);
    background-size: 160vw auto;
    animation-name: waveScrollMedVW;
    animation-duration: 50s;
  }
  .stage-water-front { height: 34%; }
  .stage-water-front .wave-front-a {
    bottom: 14%;
    height: calc(160vw / 7.52);
    background-size: 160vw auto;
    animation-name: waveScrollMedVW;
    animation-duration: 36s;
  }
  .stage-water-front .wave-front-b {
    bottom: -2vw;
    height: calc(140vw / 7.52);
    background-size: 140vw auto;
    animation-name: waveScrollFastVW;
    animation-duration: 24s;
  }
}

@media (max-width: 560px) {
  .stage-water .wave-back {
    bottom: 36%;
    height: calc(200vw / 7.52);
    background-size: 200vw auto;
  }
  .stage-water .wave-mid {
    bottom: 10%;
    height: calc(180vw / 7.52);
    background-size: 180vw auto;
  }
  .stage-water-front { height: 36%; }
  .stage-water-front .wave-front-a {
    bottom: 16%;
    height: calc(180vw / 7.52);
    background-size: 180vw auto;
  }
  .stage-water-front .wave-front-b {
    bottom: -3vw;
    height: calc(160vw / 7.52);
    background-size: 160vw auto;
  }
}
.water-sparkle {
  position: absolute;
  width: 18px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  filter: blur(0.5px);
  box-shadow: 0 0 8px rgba(255,255,255,0.7);
  animation: sparkle 3s ease-in-out infinite;
}
.ws-1 { top: 35%; left: 12%; animation-delay: 0s; }
.ws-2 { top: 50%; left: 30%; animation-delay: -1s; }
.ws-3 { top: 28%; right: 18%; animation-delay: -1.5s; }
.ws-4 { top: 60%; right: 8%;  animation-delay: -2.2s; }
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0.7); }
  50%      { opacity: 1; transform: scale(1.2); }
}

/* ─── THE ISLAND ─── */
.island {
  height: 44%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.island-sand {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(1280px, 95vw);
  height: 100%;
  pointer-events: none;
}
.island-reflection {
  position: absolute;
  left: 50%;
  bottom: -30px;
  transform: translateX(-50%);
  width: min(1100px, 88vw);
  height: 60px;
  background: radial-gradient(ellipse 100% 100% at 50% 0%, rgba(0, 30, 80, 0.5), transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}
.island-foam {
  position: absolute;
  left: 50%;
  bottom: 26%;
  transform: translateX(-50%);
  width: min(1280px, 95vw);
  height: 30px;
  pointer-events: none;
  animation: foamPulse 4s ease-in-out infinite;
}
@keyframes foamPulse {
  0%, 100% { opacity: 0.85; transform: translateX(-50%) translateY(0); }
  50%      { opacity: 1;   transform: translateX(-50%) translateY(-3px); }
}

/* Palms anchored to the island top */
.island .palm {
  position: absolute;
  bottom: 30%;
  width: 200px;
  height: 400px;
  pointer-events: none;
  filter: drop-shadow(0 16px 18px rgba(0, 30, 80, 0.35));
  transform-origin: 50% 100%;
  transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}
/* Background palms — smaller, behind, slightly faded for depth */
.palm-bg {
  width: 150px !important;
  height: 320px !important;
  bottom: 28% !important;
  filter: drop-shadow(0 12px 16px rgba(0, 30, 80, 0.3)) brightness(0.92) saturate(0.9);
  z-index: 4;
}
.palm-bg-l { left: 18%; --leaf-tilt: 1;  transform: rotate(-6deg) scale(0.95); }
.palm-bg-r { right: 18%; --leaf-tilt: -1; transform: rotate(6deg)  scale(0.95) scaleX(-1); }

/* Foreground palms — larger, in front, interactive */
.palm-fg {
  z-index: 6;
}
.palm-fg-l { left: 26%;  bottom: calc(38% + 50px); --leaf-tilt: 1;  transform: rotate(calc(-4deg + var(--cursor-x, 0) * 5deg)); }
.palm-fg-r { right: 26%; bottom: calc(38% + 50px); --leaf-tilt: -1; transform: rotate(calc(4deg  + var(--cursor-x, 0) * 5deg)) scaleX(-1); }

/* Devices stand on the island center */
.island .device-stack {
  position: absolute;
  left: 50%;
  bottom: 28%;
  transform: translateX(-50%);
  width: min(440px, 80%);
  height: 320px;
  z-index: 7;
  pointer-events: none;
}

/* TV — front and center, in front of sun & background palms */
.tv {
  position: absolute !important;
  top: 0 !important; left: 50% !important;
  transform: translateX(-50%) rotate(-1deg) !important;
  width: 100% !important;
  animation: tvFloat 6s ease-in-out infinite;
  z-index: 7;
  pointer-events: auto;
}

/* Phone — overlaps the TV, slight tilt, bottom-right */
.phone-mock {
  position: absolute !important;
  bottom: -50px !important;
  right: -28px !important;
  width: 140px !important;
  z-index: 8;
  pointer-events: auto;
}

/* ─── HUD: copy + chips + sticker ─── */
.hero-copy {
  position: absolute;
  top: clamp(20px, 4vh, 56px);
  left: clamp(20px, 4vw, 56px);
  max-width: clamp(320px, 42vw, 560px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.splash-wordmark {
  width: 260px; max-width: 70%;
  filter: drop-shadow(0 18px 40px rgba(20, 60, 180, 0.45));
  margin: 14px 0 4px;
  animation: wordmarkIn 1s cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes wordmarkIn {
  from { opacity: 0; transform: scale(0.7) rotate(-6deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}

/* Hero headline */
.display-hero {
  font-size: clamp(48px, 7.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 12px 0 0;
}
.display-hero .word em {
  font-style: normal;
  background: linear-gradient(90deg, #ffd23f 0%, #ff5fb6 60%, #29d3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.lede {
  margin: 14px 0 0;
}

.cta-row {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.cta-row-center { justify-content: center; }

/* Live status row — replaces trust-row */
.live-status {
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.live-status-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  color: white;
  min-height: 56px;
}
.live-status-card strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.4px;
}
.live-status-card > div > span,
.live-status-card > div > strong + span {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.live-status-card .live-status-time {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: white;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
  margin-top: 1px;
}
.live-status-card #splash-people {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--dc-yellow);
  letter-spacing: 0.4px;
  font-variant-numeric: tabular-nums;
}
.live-status-emoji {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--dc-magenta), var(--dc-purple-br));
  display: grid; place-items: center;
  font-size: 18px;
  flex: 0 0 auto;
}
.live-dot-lg {
  width: 12px; height: 12px;
  flex: 0 0 auto;
}

/* ───── Step chip default positions (HUD layer) ───── */
/* Splash-art is replaced by the new .hero-stage / .island system above */

/* Step chips floating around device */
.step-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  background: rgba(255,255,255,0.96);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 30px -10px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.6);
  z-index: 5;
  animation: chipFloat 5s ease-in-out infinite;
  white-space: nowrap;
}
.step-chip .step-num {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--dc-magenta), var(--dc-purple-br));
  color: white;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  flex: 0 0 auto;
  box-shadow: 0 6px 14px -4px rgba(230, 24, 156, 0.5);
}
.step-chip .step-meta { line-height: 1.15; }
.step-chip strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
}
.step-chip small {
  display: block;
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: 1px;
}
/* Step chips positioned in the HUD around the island/devices */
.step-1 { top: 22%;    right: 18%; animation-delay: 0s;    --rot: -3deg; }
.step-2 { top: 38%;    right: 6%;  animation-delay: -1.6s; --rot:  3deg; }
.step-3 { bottom: 30%; right: 14%; animation-delay: -3.2s; --rot: -2deg; }

@keyframes chipFloat {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(-8px) rotate(var(--rot, 0deg)); }
}

/* Today's prize sticker — top-right of HUD */
.prize-sticker {
  position: absolute;
  top: clamp(20px, 5vh, 56px);
  right: clamp(20px, 4vw, 56px);
  background: linear-gradient(135deg, #ffd23f 0%, #ff8c00 100%);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 20px;
  transform: rotate(8deg);
  box-shadow:
    0 16px 32px -10px rgba(255, 140, 0, 0.6),
    inset 0 1px 0 rgba(255,255,255,0.6);
  z-index: 6;
  animation: stickerWiggle 3.5s ease-in-out infinite;
  border: 2px dashed rgba(255,255,255,0.6);
}
.prize-sticker::before {
  content: '';
  position: absolute;
  top: -6px; left: 14px;
  width: 12px; height: 12px;
  background: rgba(0,0,0,0.15);
  border-radius: 50%;
  filter: blur(2px);
}
.prize-sticker-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(0,0,0,0.55);
}
.prize-sticker-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  margin-top: 2px;
}
.prize-sticker-title span { font-size: 22px; }
@keyframes stickerWiggle {
  0%, 100% { transform: rotate(8deg) scale(1); }
  50%      { transform: rotate(4deg) scale(1.04); }
}

/* "Now playing" tag inside TV */
.tv-now-playing {
  position: absolute;
  top: 12px; right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.3px;
  backdrop-filter: blur(6px);
}
.tv-now-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #ff3344;
  animation: livePulse 1.6s ease-out infinite;
}

/* (Old splash-art positioned sun/palms/sand removed — replaced by .hero-stage system above) */
@keyframes tvFloat {
  0%, 100% { transform: translateX(-50%) rotate(-3deg) translateY(0); }
  50%      { transform: translateX(-50%) rotate(-3deg) translateY(-10px); }
}
.tv-screen {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  background: #000;
  padding: 12px;
  box-shadow:
    inset 0 0 0 4px #1a1a2e,
    0 30px 60px -20px rgba(0,0,0,0.6),
    0 0 80px -20px rgba(255, 95, 182, 0.4);
  position: relative;
  overflow: hidden;
}
.tv-show {
  width: 100%; height: 100%;
  border-radius: 8px;
  background: linear-gradient(135deg, #1ec9c5 0%, #6c2bd9 60%, #e6189c 100%);
  position: relative;
  overflow: hidden;
}
.tv-show-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 210, 63, 0.6) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(255, 95, 182, 0.6) 0%, transparent 50%);
  animation: showShimmer 4s ease-in-out infinite alternate;
}
@keyframes showShimmer {
  to { transform: scale(1.1) rotate(3deg); }
}
.tv-qr-card {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: white;
  border-radius: 14px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 24px -8px rgba(0,0,0,0.5);
  animation: qrFloat 3s ease-in-out infinite;
}
@keyframes qrFloat {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50%      { transform: translateY(-4px) rotate(-2deg); }
}
.tv-qr-text { display: flex; flex-direction: column; line-height: 1.1; }
.tv-qr-eyebrow {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--dc-magenta);
}
.tv-qr-text strong {
  font-family: var(--font-fun);
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
  margin-top: 2px;
}
.qr-block {
  width: 56px; height: 56px;
  background: white;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  border: 2px solid #1a0b4d;
}
.qr-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, #000 50%, transparent 50%),
    linear-gradient(0deg, #000 50%, transparent 50%);
  background-size: 8px 8px, 8px 8px;
  background-position: 0 0, 4px 4px;
  mask-image: radial-gradient(circle at 50% 50%, black 60%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 60%, transparent 80%);
}
.qr-pattern::before, .qr-pattern::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border: 3px solid #000;
  background: white;
}
.qr-pattern::before { top: 4px; left: 4px; }
.qr-pattern::after  { top: 4px; right: 4px; }

.tv-bug {
  position: absolute;
  top: 10px; left: 12px;
  background: rgba(255,255,255,0.95);
  border-radius: 10px;
  padding: 4px 8px;
}
.tv-bug img { height: 14px; width: auto; }

.tv-stand {
  width: 60px;
  height: 24px;
  margin: -2px auto 0;
  background: linear-gradient(180deg, #2a1850 0%, #0c0626 100%);
  border-radius: 0 0 8px 8px;
}
.tv-base {
  width: 140px;
  height: 8px;
  margin: 0 auto;
  background: #0c0626;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Phone mockup — floats next to the TV on the sand (default rules; .island override above) */
.phone-mock {
  position: absolute;
  bottom: 60px; right: 14%;
  width: 162px;
  z-index: 7;
  background: linear-gradient(180deg, #1a1a2e 0%, #0c0626 100%);
  border-radius: 32px;
  padding: 8px;
  border: 4px solid #1a1a2e;
  transform: rotate(8deg);
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.6),
    0 0 0 2px rgba(255,255,255,0.05);
  animation: phoneFloat 5s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: rotate(8deg) translateY(0); }
  50%      { transform: rotate(8deg) translateY(-8px); }
}
.phone-notch {
  width: 40px; height: 5px;
  background: #000;
  border-radius: 4px;
  margin: 0 auto 4px;
}
.phone-screen {
  background: linear-gradient(180deg, #fff7e8 0%, #f6f1ff 100%);
  border-radius: 24px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.phone-logo { width: 100%; }
.phone-question {
  font-family: var(--font-fun);
  font-weight: 700;
  font-size: 11px;
  line-height: 1.3;
  color: var(--ink);
}
.phone-options { display: flex; flex-direction: column; gap: 4px; }
.phone-opt {
  font-size: 9px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 8px;
  background: white;
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
}
.phone-opt.active {
  background: linear-gradient(135deg, #f6f1ff, #fce7f6);
  border-color: var(--dc-purple-br);
  color: var(--dc-purple-br);
}
.phone-cta {
  text-align: center;
  font-family: var(--font-fun);
  font-weight: 700;
  font-size: 10px;
  color: white;
  background: linear-gradient(135deg, var(--dc-magenta), var(--dc-purple-br));
  padding: 8px;
  border-radius: 12px;
  margin-top: 2px;
}


/* Hide footer on the splash screen so the hero is a true single-viewport */
body[data-screen="splash"] .sitefoot { display: none; }
@media (min-width: 901px) {
  body[data-screen="splash"] { overflow: hidden; height: 100dvh; }
}

/* ─── Staged pop-in entrance ─── */
.pop {
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  animation: popIn 0.7s cubic-bezier(0.2, 1.4, 0.3, 1) forwards;
}
@keyframes popIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.pop-1 { animation-delay: 0.95s; }
.pop-2 { animation-delay: 1.10s; }
.pop-3 { animation-delay: 1.25s; }
.pop-4 { animation-delay: 1.40s; }
.pop-5 { animation-delay: 1.55s; }
.pop-6 { animation-delay: 1.70s; }
.pop-7 { animation-delay: 1.85s; }

/* Headline: word-by-word pop after stage zoom */
.display-hero .word.pop-w {
  display: inline-block;
  margin-right: 0.18em;
  opacity: 0;
  transform: translateY(0.4em) rotate(-2deg);
  animation: wordIn 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) forwards;
}
.pop-w-1 { animation-delay: 1.10s; }
.pop-w-2 { animation-delay: 1.25s; }
.pop-w-3 { animation-delay: 1.40s; }
@keyframes wordIn {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

/* ═══════════════ 2. REGISTRATION ═══════════════ */
.register-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
@media (min-width: 900px) {
  .register-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 0;
  }
}

.register-aside {
  background:
    radial-gradient(80% 60% at 20% 20%, rgba(255, 95, 182, 0.4) 0%, transparent 60%),
    linear-gradient(135deg, #6c2bd9 0%, #1a0b4d 100%);
  padding: clamp(28px, 4vw, 48px);
  position: relative;
  overflow: hidden;
}
.register-aside::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,210,63,0.6), transparent 70%);
  filter: blur(20px);
}
.aside-inner { position: relative; display: flex; flex-direction: column; gap: 18px; height: 100%; }

.prize-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.prize-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  transition: background 0.2s ease, transform 0.2s ease;
}
.prize-item:hover { background: rgba(255,255,255,0.14); transform: translateX(4px); }
.prize-emoji {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffd23f, #ff8c00);
  display: grid; place-items: center;
  font-size: 22px;
  flex: 0 0 auto;
}
.prize-item strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: white;
}
.prize-item span {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}
.aside-foot { margin-top: auto; padding-top: 14px; }

.register-form-wrap {
  background: linear-gradient(180deg, #ffffff 0%, #fff7e8 100%);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ═══════════════ Generic page template — used by all non-splash screens ═══════════════ */
.screen-register.is-active,
.screen-question.is-active,
.screen-result.is-active,
.screen-info.is-active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100dvh;
  padding: 16px 20px 20px;
  box-sizing: border-box;
}

.page-shell {
  max-width: 560px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.page-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  filter: drop-shadow(0 10px 26px rgba(8, 30, 90, 0.5));
}
.page-dc-logo {
  width: clamp(195px, 23vw, 320px);
  height: auto;
  filter:
    drop-shadow(0 0 1.5px rgba(8, 30, 90, 0.95))
    drop-shadow(0 0 4px rgba(8, 30, 90, 0.7))
    drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
}
.page-st-logo { height: clamp(150px, 18vw, 240px); width: auto; }

.page-card {
  width: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #fff7e8 100%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.page-card-head { display: flex; flex-direction: column; gap: 2px; }
.page-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin: 0;
  background: linear-gradient(90deg, var(--dc-purple-br), var(--dc-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-sub { font-size: 0.85rem; margin: 0; color: var(--ink-soft); }

/* Form-specific tweaks inside .page-card */
.page-card .form-card { gap: 12px; }
.page-card .form-grid { gap: 10px; }
.page-card .field { gap: 4px; }
.page-card .form-actions { gap: 10px; }
.page-card .btn-lg { padding: 12px 20px; font-size: 0.95rem; }

/* Consent clauses */
.consent-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: rgba(108, 43, 217, 0.05);
  border: 1px solid rgba(108, 43, 217, 0.12);
  border-radius: var(--radius-md);
  max-height: 220px;
  overflow-y: auto;
}
.consent-group { display: flex; flex-direction: column; gap: 4px; }
.consent-text {
  font-size: 0.78rem;
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}
.consent-text strong { font-weight: 700; margin-right: 2px; }
.consent-text a {
  color: var(--dc-purple-br);
  text-decoration: underline;
  font-weight: 600;
}
.consent-radios { display: flex; gap: 14px; margin-top: 2px; flex-wrap: wrap; }
.consent-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.consent-radio input[type="radio"] {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--dc-purple-br);
}

/* Quiz status pill */
.quiz-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(217, 21, 86, 0.1);
  color: #c8104b;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  align-self: center;
  text-transform: uppercase;
}
.quiz-pulse {
  width: 8px;
  height: 8px;
  background: #d11456;
  border-radius: 50%;
  animation: pulseDot 1.2s ease-in-out infinite;
  box-shadow: 0 0 0 4px rgba(209, 20, 86, 0.18);
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.3); }
}

/* Result-style card variant */
.page-card-result {
  align-items: center;
  text-align: center;
  padding: 28px 24px;
  gap: 16px;
}
.result-emoji { font-size: 64px; line-height: 1; }
.result-title {
  font-family: var(--font-fun);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  margin: 0;
  color: var(--ink);
  line-height: 1.2;
}
.result-copy {
  font-size: 0.95rem;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 440px;
}
.info-pill {
  margin-top: 4px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, rgba(108, 43, 217, 0.1), rgba(230, 24, 156, 0.1));
  color: var(--dc-purple-br);
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid rgba(108, 43, 217, 0.2);
}

@media (max-height: 720px) {
  .page-dc-logo { width: clamp(140px, 18vw, 230px); }
  .page-st-logo { height: clamp(110px, 14vw, 170px); }
  .page-shell { gap: 4px; }
  .page-card { padding: 18px 20px; }
  .consent-list { max-height: 180px; }
}
.register-form-head h1 {
  color: transparent;
  background: linear-gradient(90deg, var(--dc-purple-br), var(--dc-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
  margin: 0;
}
.register-form-head .lede { color: var(--ink-soft); }

.form-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 600px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field-wide { grid-column: 1 / -1; }
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.3px;
}
.field-label em {
  font-style: normal;
  color: var(--dc-purple-br);
  font-weight: 600;
  font-size: 12px;
}
.field input {
  appearance: none;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: white;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder { color: #a99fc4; }
.field input:focus {
  outline: none;
  border-color: var(--dc-purple-br);
  box-shadow: 0 0 0 4px rgba(108, 43, 217, 0.15);
}
.field-with-prefix, .field-with-icon {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  background: white;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field-with-prefix:focus-within, .field-with-icon:focus-within {
  border-color: var(--dc-purple-br);
  box-shadow: 0 0 0 4px rgba(108, 43, 217, 0.15);
}
.field-with-prefix input, .field-with-icon input {
  border: 0; border-radius: 0; flex: 1;
}
.field-with-prefix input:focus, .field-with-icon input:focus {
  outline: none; box-shadow: none;
}
.prefix {
  display: grid;
  place-items: center;
  padding: 0 16px;
  background: var(--paper-soft);
  font-weight: 700;
  color: var(--dc-purple-br);
  border-right: 2px solid var(--line);
  font-size: 15px;
}
.field-with-icon svg {
  margin: 0 0 0 14px;
  align-self: center;
  color: var(--dc-purple-br);
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  background: var(--paper-soft);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}
.consent a { color: var(--dc-magenta); font-weight: 600; }
.consent a:hover { text-decoration: underline; }
.consent input[type="checkbox"] {
  appearance: none;
  width: 22px; height: 22px;
  border: 2px solid var(--dc-purple-br);
  border-radius: 6px;
  flex: 0 0 auto;
  margin-top: 1px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.consent input[type="checkbox"]:checked {
  background: var(--dc-purple-br);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 14px 14px;
  background-repeat: no-repeat;
  background-position: center;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.form-actions .btn-ghost { color: var(--dc-purple-br); border-color: var(--line-2); background: white; }
.form-actions .btn-ghost:hover { background: var(--paper-soft); }
.form-actions .btn-primary { flex: 1; min-width: 220px; }

/* ═══════════════ 3. QUIZ ═══════════════ */
.quiz-shell {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.slot-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, #1ec9c5 0%, #29d3ff 60%, #6c2bd9 130%);
  color: white;
  box-shadow:
    0 14px 32px -10px rgba(30, 201, 197, 0.5),
    inset 0 1px 0 rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}
.slot-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent 50%);
  pointer-events: none;
}
.slot-banner-left { display: flex; align-items: center; gap: 12px; position: relative; }
.slot-banner-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; position: relative; }

.slot-pulse {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: white;
  position: relative;
  flex: 0 0 auto;
}
.slot-pulse::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}
.slot-text strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
}
.slot-text small {
  display: block;
  font-size: 12px;
  opacity: 0.92;
  margin-top: 2px;
}
.slot-timer-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.85;
}
.slot-timer {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  background: rgba(0,0,0,0.18);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 1.5px;
  font-variant-numeric: tabular-nums;
}

.question-card {
  background: linear-gradient(180deg, #ffffff 0%, #fff7e8 100%);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255,255,255,0.5);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  overflow: hidden;
}
.question-card::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 63, 0.4), transparent 70%);
  pointer-events: none;
}
.question-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.q-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--dc-magenta);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  background: rgba(230, 24, 156, 0.1);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}
.q-progress {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper-soft);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}
.q-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.options { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 700px) { .options { grid-template-columns: 1fr 1fr; } }

.option {
  appearance: none;
  border: 2px solid var(--line);
  background: white;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  font-family: inherit;
  font-size: 15.5px;
  color: var(--ink);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  cursor: pointer;
}
.option:hover {
  border-color: var(--dc-purple-br);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px rgba(108, 43, 217, 0.4);
}
.opt-letter {
  width: 36px; height: 36px;
  border-radius: 12px;
  background: var(--paper-soft);
  color: var(--dc-purple-br);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  display: grid; place-items: center;
  flex: 0 0 auto;
  transition: background 0.15s ease, color 0.15s ease;
}
.opt-text { flex: 1; line-height: 1.3; font-weight: 500; }
.opt-mark {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--dc-purple-br);
  color: white;
  display: grid; place-items: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s ease, transform 0.15s ease;
  flex: 0 0 auto;
}

.option.is-selected {
  border-color: var(--dc-purple-br);
  background: linear-gradient(135deg, #f6f1ff 0%, #fce7f6 100%);
  box-shadow: 0 0 0 4px rgba(108, 43, 217, 0.15), 0 12px 30px -12px rgba(108, 43, 217, 0.45);
}
.option.is-selected .opt-letter {
  background: linear-gradient(135deg, var(--dc-purple-br), var(--dc-magenta));
  color: white;
}
.option.is-selected .opt-mark { opacity: 1; transform: scale(1); }

.question-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 6px;
}
.q-help { font-size: 13px; color: var(--ink-mute); }
.question-foot .btn { min-width: 220px; }

/* ═══════════════ 4 / 5 / 6. RESULTS & STATES ═══════════════ */
.screen-result, .screen-state { position: relative; }

.result-shell {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: clamp(20px, 4vw, 40px);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}
.result-shell::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 95, 182, 0.4), transparent 70%);
  pointer-events: none;
  filter: blur(20px);
}

.result-burst {
  width: 160px; height: 160px;
  border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 50%, #fff 0%, transparent 68%),
    conic-gradient(from 0deg, #ffd23f, #ff5fb6, #29d3ff, #1ec9c5, #ffd23f);
  animation: spin 8s linear infinite;
  position: relative;
  z-index: 1;
}
.result-burst::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: white;
}
.result-burst-soft {
  background:
    radial-gradient(circle at 50% 50%, #fff 0%, transparent 68%),
    conic-gradient(from 0deg, #c5b9e0, #ff5fb6, #c5b9e0, #ffd23f, #c5b9e0);
}
.emoji-pop {
  font-size: 76px;
  position: relative;
  z-index: 2;
  animation: pop 0.8s cubic-bezier(0.2, 1.6, 0.4, 1);
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.25));
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.screen-result .display, .screen-state .display { margin-top: 4px; }
.screen-result .lede, .screen-state .lede { color: rgba(255,255,255,0.88); margin-bottom: 4px; }

.result-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: 100%;
  max-width: 560px;
  margin-top: 6px;
}
@media (min-width: 720px) {
  .screen-correct .result-cards { grid-template-columns: 1fr 1fr; }
}

.prize-card-2 {
  background: linear-gradient(135deg, rgba(255,210,63,0.16) 0%, rgba(255,140,0,0.16) 100%);
  border: 1px solid rgba(255,210,63,0.4);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  color: white;
}
.prize-card-2-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffd23f, #ff8c00);
  display: grid; place-items: center;
  font-size: 24px;
  flex: 0 0 auto;
  box-shadow: 0 10px 22px -8px rgba(255, 140, 0, 0.5);
}
.prize-card-2 strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}
.prize-card-2 span {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
}

.next-slot-card {
  background: rgba(255,255,255,0.08);
  border: 1px dashed rgba(255,255,255,0.4);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  color: white;
}
.next-slot-time {
  font-size: 11px;
  font-weight: 800;
  color: var(--dc-yellow);
  text-transform: uppercase;
  letter-spacing: 1.4px;
}
.next-slot-window {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  margin: 4px 0 6px;
  background: linear-gradient(90deg, white, var(--dc-yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.next-slot-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,0.78);
}

/* Confetti burst (correct screen) */
.confetti-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.confetti-burst span {
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 14px;
  border-radius: 2px;
  opacity: 0;
  animation: confettiFly 1.6s cubic-bezier(0.25, 0.6, 0.4, 1) forwards;
}
.confetti-burst span:nth-child(1)  { background: var(--dc-yellow);  --tx:  220px; --ty: -180px; --rot: 480deg; animation-delay: 0.05s; }
.confetti-burst span:nth-child(2)  { background: var(--dc-magenta); --tx: -240px; --ty: -200px; --rot:-360deg; animation-delay: 0.10s; }
.confetti-burst span:nth-child(3)  { background: var(--dc-cyan);    --tx:  280px; --ty:  120px; --rot: 720deg; animation-delay: 0.15s; }
.confetti-burst span:nth-child(4)  { background: var(--dc-pink);    --tx: -260px; --ty:  150px; --rot:-540deg; animation-delay: 0.20s; }
.confetti-burst span:nth-child(5)  { background: var(--dc-teal);    --tx:  -60px; --ty: -260px; --rot: 360deg; animation-delay: 0.25s; }
.confetti-burst span:nth-child(6)  { background: var(--dc-yellow);  --tx:   60px; --ty: -280px; --rot:-280deg; animation-delay: 0.30s; }
.confetti-burst span:nth-child(7)  { background: var(--dc-magenta); --tx:  180px; --ty:  -60px; --rot: 420deg; animation-delay: 0.10s; }
.confetti-burst span:nth-child(8)  { background: var(--dc-cyan);    --tx: -180px; --ty:  -40px; --rot:-460deg; animation-delay: 0.18s; }
.confetti-burst span:nth-child(9)  { background: var(--dc-pink);    --tx:  120px; --ty:  220px; --rot: 540deg; animation-delay: 0.22s; }
.confetti-burst span:nth-child(10) { background: var(--dc-yellow);  --tx: -120px; --ty:  240px; --rot:-660deg; animation-delay: 0.28s; }
.confetti-burst span:nth-child(11) { background: var(--dc-teal);    --tx:  320px; --ty:  -40px; --rot: 380deg; animation-delay: 0.05s; }
.confetti-burst span:nth-child(12) { background: var(--dc-magenta); --tx: -320px; --ty:  -20px; --rot:-300deg; animation-delay: 0.12s; }
.confetti-burst span:nth-child(13) { background: var(--dc-yellow);  --tx:   40px; --ty:  300px; --rot: 600deg; animation-delay: 0.32s; }
.confetti-burst span:nth-child(14) { background: var(--dc-cyan);    --tx: -200px; --ty: -120px; --rot:-420deg; animation-delay: 0.16s; }
.confetti-burst span:nth-child(15) { background: var(--dc-pink);    --tx:  220px; --ty:  -20px; --rot: 320deg; animation-delay: 0.08s; }

@keyframes confettiFly {
  0%   { opacity: 1; transform: translate(-50%, -50%) rotate(0deg); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) rotate(var(--rot)); }
}

/* States — clock & moon */
.state-art { padding: 4px 0; }
.clock {
  width: 150px; height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff7e8, #ffe9b8);
  display: grid; place-items: center;
  box-shadow:
    0 18px 38px -12px rgba(255, 182, 39, 0.6),
    inset 0 -8px 16px rgba(0,0,0,0.08);
  border: 8px solid #ffd23f;
}
.clock-face {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: white;
  position: relative;
}
.clock-hand {
  position: absolute;
  left: 50%; top: 50%;
  background: var(--ink);
  border-radius: 4px;
  transform-origin: 50% 100%;
}
.clock-hour { width: 4px; height: 32px; transform: translate(-50%, -100%) rotate(0deg); animation: tick 60s linear infinite; }
.clock-min  { width: 3px; height: 44px; transform: translate(-50%, -100%) rotate(0deg); animation: tick 12s linear infinite; }
.clock-center {
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 12px;
  background: var(--dc-magenta);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
@keyframes tick { to { transform: translate(-50%, -100%) rotate(360deg); } }

.moon {
  font-size: 110px;
  filter: drop-shadow(0 16px 28px rgba(255, 210, 63, 0.5));
  animation: moonSwing 5s ease-in-out infinite;
}
@keyframes moonSwing {
  0%, 100% { transform: rotate(-8deg); }
  50%      { transform: rotate(8deg); }
}

/* ═══════════════ Footer ═══════════════ */
.sitefoot {
  position: relative;
  z-index: 2;
  padding: 30px clamp(20px, 4vw, 56px) 90px;
  margin-top: auto;
}
.sitefoot-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}
@media (min-width: 720px) {
  .sitefoot-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.sitefoot-brand {
  display: flex; align-items: center; gap: 14px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}
.sitefoot-brand img { height: 24px; opacity: 0.9; }
.sitefoot-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.sitefoot-nav a {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  transition: color 0.15s ease;
}
.sitefoot-nav a:hover { color: white; }

/* ═══════════════ Dev preview nav (right-side column, desktop only) ═══════════════ */
.devnav {
  position: fixed;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 10px;
  background: rgba(12, 6, 38, 0.9);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.12);
  z-index: 50;
  align-items: stretch;
  box-shadow: 0 12px 40px -12px rgba(0,0,0,0.5);
}
.devnav-label {
  color: rgba(255,255,255,0.55);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  text-align: center;
  padding: 0 4px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 4px;
}
@media (max-width: 900px) {
  .devnav { display: none; }
}
.devnav button {
  appearance: none;
  border: 0;
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  transition: background 0.15s ease, transform 0.1s ease;
}
.devnav button:hover { background: rgba(255,255,255,0.18); }
.devnav button.is-active {
  background: linear-gradient(90deg, var(--dc-magenta), var(--dc-purple-br));
  box-shadow: 0 4px 12px -4px rgba(230, 24, 156, 0.6);
}

/* ═══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — scene + hero + page-shell template
   ═══════════════════════════════════════════════════════════ */

/* ── Tablet & smaller — < 900px ── */
@media (max-width: 900px) {
  /* Center page-shell screens vertically on mobile */
  .screen-register.is-active,
  .screen-question.is-active,
  .screen-result.is-active,
  .screen-info.is-active {
    align-items: safe center;
    padding: 24px 20px;
  }

  /* Scene: sun + clouds smaller */
  .big-sun {
    width: clamp(80px, 14vw, 130px);
    height: clamp(80px, 14vw, 130px);
    top: 2%;
    right: 4%;
  }
  .cloud-1 { width: 200px; }
  .cloud-2 { width: 160px; }
  .cloud-3 { width: 150px; }

  /* Island shrinks */
  .island { height: 36%; }
  .island-sand,
  .island-foam { width: 132vw !important; }

  /* Palms scaled down, all four still visible */
  .island .palm { width: 130px; height: 260px; bottom: 26%; }
  .palm-bg {
    width: 100px !important;
    height: 200px !important;
    bottom: 22% !important;
  }
  .palm-bg-l { left: 4%; }
  .palm-bg-r { right: 4%; }
  .palm-fg-l { left: 14%; bottom: calc(28% + 30px); }
  .palm-fg-r { right: 14%; bottom: calc(28% + 30px); }

  /* Page card a touch tighter */
  .page-card { padding: 20px 22px; }
}

/* ── Phone — < 700px ── */
@media (max-width: 700px) {
  /* Scene: smaller sun + clouds, shifted */
  .big-sun {
    width: 100px;
    height: 100px;
    top: 1.5%;
    right: 3%;
  }
  .cloud-1 { width: 170px; top: 4%; }
  .cloud-2 { width: 140px; top: 11%; }
  .cloud-3 { width: 120px; top: 3%; }

  /* Island taller so back waves can peek above */
  .island { height: 36%; }

  /* Drop the background palms; keep only the 2 foreground ones,
     planted high on the sand mound so trunks aren't sitting in water */
  .palm-bg { display: none; }
  .island .palm { width: 170px; height: 340px; }
  .palm-fg-l { left: 2%; bottom: calc(50% + 30px); }
  .palm-fg-r { right: 2%; bottom: calc(50% + 30px); }

  /* Boost back wave visibility on mobile so all 4 wave layers read */
  .stage-water .wave-back { opacity: 0.85; }

  /* Lock the hero into a stable flex-column grid on mobile.
     No more absolute positioning that drifts with viewport height. */
  .hero-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 24px;
  }

  .hero-logos {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    gap: 0;
    width: 100%;
  }
  .hero-dc-logo { width: 280px; transform: translateY(28px); }
  .hero-st-logo { width: 96vw; max-width: 580px; }
  .hero-logos > * + * { margin-top: -34px; }

  .hero-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin-top: 40px;
    padding: 0 18px;
    width: 100%;
    gap: 30px;
  }
  .hero-heading {
    font-size: 3.1rem;
    line-height: 1.05;
  }
  .hero-content .btn-xl { padding: 22px 42px; font-size: 1.3rem; }

  /* Page-shell screens — bigger logos on mobile */
  .page-dc-logo { width: 230px; }
  .page-st-logo { height: 180px; }
  .page-logos { gap: 20px; }
  .page-shell { gap: 4px; }
  .page-card {
    padding: 18px;
    gap: 12px;
    border-radius: var(--radius-lg);
  }
  .page-title { font-size: 1.3rem; }
  .page-sub { font-size: 0.82rem; }

  /* Form inputs single-column */
  .form-grid { grid-template-columns: 1fr !important; gap: 10px; }
  .field-wide { grid-column: 1 !important; }

  /* Consent block */
  .consent-list {
    max-height: 180px;
    padding: 10px;
  }
  .consent-text { font-size: 0.74rem; }
  .consent-radio { font-size: 0.74rem; }

  /* Quiz options stack */
  .options { grid-template-columns: 1fr !important; }
  .q-text { font-size: 1rem; line-height: 1.3; }
  .option { padding: 12px 14px; font-size: 0.9rem; }

  /* Action rows stack */
  .question-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .question-foot .btn { width: 100%; }
  .form-actions { flex-direction: column; gap: 8px; }
  .form-actions .btn { width: 100%; }

  /* Result card */
  .result-emoji { font-size: 56px; }
  .result-title { font-size: 1.3rem; }
  .result-copy { font-size: 0.9rem; }

  /* Dev nav compact */
  /* devnav hidden on mobile via the dedicated rule above */
}

/* ── Standard phone — < 480px ── */
@media (max-width: 480px) {
  /* Scene */
  .big-sun {
    width: 80px;
    height: 80px;
    top: 1%;
    right: 2%;
  }
  .cloud-1 { width: 140px; }
  .cloud-2 { width: 120px; }
  .cloud-3 { width: 100px; }

  .island { height: 34%; }

  .island .palm { width: 140px; height: 280px; }
  .palm-fg-l { left: 1%; bottom: calc(48% + 24px); }
  .palm-fg-r { right: 1%; bottom: calc(48% + 24px); }

  /* Hero — locked grid, smaller sizes for compact phones */
  .hero-logos { gap: 0; width: 100%; }
  .hero-dc-logo { width: 240px; transform: translateY(24px); }
  .hero-st-logo { width: 96vw; max-width: 460px; }
  .hero-logos > * + * { margin-top: -28px; }
  .hero-content {
    margin-top: 32px;
    gap: 26px;
  }
  .hero-heading {
    font-size: 2.7rem;
    line-height: 1.05;
  }
  .hero-content .btn-xl { padding: 18px 34px; font-size: 1.2rem; }

  /* Page-shell — slightly smaller for tighter phones */
  .page-dc-logo { width: 195px; }
  .page-st-logo { height: 150px; }
  .page-logos { gap: 16px; }
  .page-card { padding: 16px; }
  .page-title { font-size: 1.2rem; }

  /* Result smaller */
  .result-emoji { font-size: 48px; }
  .result-title { font-size: 1.15rem; }

  /* Stack consent radios on tiny screens for tap target */
  .consent-radios {
    flex-direction: column;
    gap: 6px;
  }
}

/* ── Very small phone — < 380px ── */
@media (max-width: 380px) {
  .hero-dc-logo { width: 130px; }
  .hero-st-logo { width: 210px; }
  .hero-heading { font-size: 1.5rem; }
  .hero-content .btn-xl { padding: 14px 24px; font-size: 1rem; }

  .page-dc-logo { width: 170px; }
  .page-st-logo { height: 130px; }
  .page-card { padding: 14px; }
  .page-title { font-size: 1.1rem; }
  .page-sub { font-size: 0.78rem; }
}

/* ── Short viewport (landscape phones, small laptops) ── */
@media (max-height: 600px) {
  .page-shell { gap: 8px; }
  .page-card { padding: 14px 18px; gap: 10px; }
  .page-dc-logo { width: 105px !important; }
  .page-st-logo { height: 80px !important; }

  .hero-content { top: 26%; gap: 10px; }
  .hero-heading { font-size: 1.2rem; }
  .hero-dc-logo { width: 90px; }
  .hero-st-logo { width: 140px; }

  .consent-list { max-height: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
