/* ============================================================
   BIRTHDAY SURPRISE — Premium Cinematic Theme
   Black · Purple · Pink · Glass · Neon
   ============================================================ */

:root {
  --bg: #05000c;
  --bg-deep: #0a0014;
  --purple: #a855f7;
  --purple-deep: #7c3aed;
  --pink: #ec4899;
  --pink-hot: #f472b6;
  --cyan: #67e8f9;
  --text: #f8f5ff;
  --text-muted: rgba(248, 245, 255, 0.62);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glow: 0 0 24px rgba(168, 85, 247, 0.5), 0 0 64px rgba(236, 72, 153, 0.28);
  --font: "Outfit", system-ui, sans-serif;
  --display: "Playfair Display", Georgia, serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius: 22px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

body.touch-device { cursor: auto; }
body.party-active { overflow: hidden; }
body.finale-mode { background: #020008; }

img, canvas { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.hidden { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  z-index: 10050;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--cyan));
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.7);
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ---------- Chrome buttons ---------- */
.chrome-btn {
  position: fixed;
  top: calc(1rem + env(safe-area-inset-top, 0px));
  right: 1rem;
  z-index: 10040;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  font-size: 1.2rem;
  box-shadow: var(--glow);
  transition: transform 0.3s var(--spring), box-shadow 0.3s ease;
}
.chrome-btn:hover { transform: scale(1.08); }
.chrome-btn:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

.btn-music {
  position: fixed;
  bottom: calc(1.25rem + var(--safe-b));
  left: 50%;
  transform: translateX(-50%);
  z-index: 10040;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glow);
  animation: float-y 2.5s ease-in-out infinite;
}
@keyframes float-y {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}

/* ---------- Ambient ---------- */
.aurora {
  position: fixed; inset: -20%;
  z-index: -2;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.7;
}
.blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.blob-a {
  width: 45vw; height: 45vw; max-width: 520px; max-height: 520px;
  left: 5%; top: 10%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.55), transparent 70%);
  animation: drift-a 18s ease-in-out infinite alternate;
}
.blob-b {
  width: 40vw; height: 40vw; max-width: 460px; max-height: 460px;
  right: 0%; top: 40%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.45), transparent 70%);
  animation: drift-b 22s ease-in-out infinite alternate;
}
.blob-c {
  width: 35vw; height: 35vw; max-width: 400px; max-height: 400px;
  left: 30%; bottom: 5%;
  background: radial-gradient(circle, rgba(103, 232, 249, 0.18), transparent 70%);
  animation: drift-c 26s ease-in-out infinite alternate;
}
@keyframes drift-a {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(8%, 12%) scale(1.15); }
}
@keyframes drift-b {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-10%, -8%) scale(1.2); }
}
@keyframes drift-c {
  from { transform: translate(0, 0); }
  to { transform: translate(6%, -14%); }
}

#parallax-bg {
  position: fixed; inset: -12%;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(168, 85, 247, 0.2), transparent 55%),
    var(--bg-deep);
  transition: transform 0.12s ease-out;
  will-change: transform;
}

.fog {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(255,255,255,0.04), transparent 60%),
    radial-gradient(ellipse 60% 30% at 20% 40%, rgba(168,85,247,0.06), transparent 50%);
  opacity: 0;
  transition: opacity 1.5s ease;
}
.fog.active { opacity: 1; }

#particle-canvas, #confetti-canvas, #firework-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}
#confetti-canvas { z-index: 9000; }
#firework-canvas { z-index: 4; opacity: 0; transition: opacity 1s ease; }
#firework-canvas.active { opacity: 1; }

#starfield {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: 0;
  transition: opacity 1.2s var(--ease);
}
#starfield.active { opacity: 1; }

#floating-layer {
  position: fixed; inset: 0; z-index: 2;
  pointer-events: none; overflow: hidden; opacity: 0;
  transition: opacity 1s ease;
}
#floating-layer.active { opacity: 1; }

.cursor-glow {
  position: fixed;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, var(--pink-hot) 40%, transparent 70%);
  pointer-events: none;
  z-index: 10060;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.25s ease;
  will-change: left, top;
}
.cursor-glow.on { opacity: 0.9; }

.mouse-light {
  position: fixed;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236,72,153,0.16), transparent 65%);
  pointer-events: none;
  z-index: 3;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: left, top;
}
.mouse-light.on { opacity: 1; }

.cursor-spark {
  position: fixed;
  pointer-events: none;
  z-index: 10055;
  font-size: 10px;
  animation: spark-fade 0.7s var(--ease) forwards;
}
@keyframes spark-fade {
  to { opacity: 0; transform: translateY(-18px) scale(0.4); }
}

/* ---------- Glass & buttons ---------- */
.glass {
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
}

.btn-premium {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.4rem;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: var(--glow);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--spring), box-shadow 0.35s ease, filter 0.3s;
}
.btn-premium::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.5), transparent 40%, rgba(255,255,255,0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.btn-premium::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.28), transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
  z-index: -1;
}
.btn-premium:hover {
  transform: scale(1.06);
  box-shadow: 0 0 36px rgba(168,85,247,0.8), 0 0 90px rgba(236,72,153,0.45);
  filter: brightness(1.08);
}
.btn-premium:hover::before { transform: translateX(120%); }
.btn-premium:active { transform: scale(0.97); }
.btn-premium:disabled { opacity: 0.55; pointer-events: none; }
.btn-premium:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.btn-premium .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transform: scale(0);
  animation: ripple-out 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes ripple-out {
  to { transform: scale(4); opacity: 0; }
}

/* ---------- Loading ---------- */
.loading-screen {
  position: fixed; inset: 0; z-index: 20000;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, #160528 0%, var(--bg) 70%);
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.loading-screen.fade-out {
  opacity: 0; visibility: hidden; pointer-events: none;
}

.loading-inner {
  text-align: center;
  width: min(92vw, 420px);
  padding: 2.5rem 1.5rem;
}

.loading-orb {
  width: 64px; height: 64px;
  margin: 0 auto 1.75rem;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--purple), var(--pink), var(--cyan), var(--purple));
  animation: orb-spin 2.2s linear infinite;
  position: relative;
  filter: drop-shadow(0 0 20px rgba(168,85,247,0.6));
}
.loading-orb::after {
  content: "";
  position: absolute; inset: 4px;
  border-radius: 50%;
  background: var(--bg);
}
@keyframes orb-spin { to { transform: rotate(360deg); } }

.loading-text {
  min-height: 2.8em;
  font-size: clamp(1.05rem, 3.8vw, 1.35rem);
  font-weight: 500;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.loading-text.visible {
  opacity: 1; transform: translateY(0);
}

.loading-bar-wrap {
  margin: 1.75rem auto 0;
  width: 70%; height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}
.loading-bar {
  height: 100%; width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--cyan));
  box-shadow: 0 0 12px var(--pink);
  transition: width 0.35s var(--ease);
}

/* ---------- Cinematic ---------- */
.cinematic {
  position: fixed; inset: 0; z-index: 19000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: #000;
  padding: 2rem;
  text-align: center;
  gap: 2rem;
}
.cine-line {
  font-family: var(--display);
  font-size: clamp(1.6rem, 6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.25;
  max-width: 16ch;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  background: linear-gradient(135deg, #fff, var(--pink-hot), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(236,72,153,0.35));
}
.cine-line.visible {
  opacity: 1; transform: scale(1);
}
.cine-line.big {
  max-width: 18ch;
  font-size: clamp(1.8rem, 7vw, 3.6rem);
}
.btn-ready { animation: pulse-glow 2s ease-in-out infinite; }
@keyframes pulse-glow {
  0%, 100% { box-shadow: var(--glow); }
  50% { box-shadow: 0 0 40px rgba(168,85,247,0.9), 0 0 100px rgba(236,72,153,0.5); }
}

/* ---------- Layout ---------- */
.main-experience { position: relative; z-index: 5; }

.section {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.35rem;
  text-align: center;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 700;
  background: linear-gradient(135deg, #fff, var(--pink-hot), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.45rem;
  filter: drop-shadow(0 0 20px rgba(168,85,247,0.3));
}
.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.4rem;
}

.reveal {
  opacity: 0;
  transform: translateY(48px) scale(0.96);
  filter: blur(10px);
  transition:
    opacity 0.95s var(--ease),
    transform 0.95s var(--ease),
    filter 0.95s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* ---------- Hero ---------- */
.hero { overflow: hidden; }
.hero-glow {
  position: absolute;
  width: min(80vw, 520px); height: min(80vw, 520px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236,72,153,0.35), rgba(124,58,237,0.15), transparent 70%);
  filter: blur(40px);
  animation: hero-pulse 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes hero-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}

.hero-content {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
}
.hero-emoji {
  font-size: clamp(3.2rem, 11vw, 5.2rem);
  animation: bounce-in 1s var(--spring) both;
  filter: drop-shadow(0 0 28px rgba(236,72,153,0.65));
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(2.2rem, 7.5vw, 4.2rem);
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #fff 10%, var(--pink-hot) 50%, var(--purple) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: title-in 1.1s 0.15s var(--ease) both;
}
.hero-name {
  font-size: clamp(2.6rem, 9.5vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--cyan), var(--purple));
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: name-in 1.1s 0.35s var(--spring) both, shimmer 5s linear infinite;
  filter: drop-shadow(0 0 40px rgba(236,72,153,0.5));
}
.hero-tagline {
  margin-top: 0.6rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  animation: fade-up 1s 0.8s both;
}

@keyframes bounce-in {
  from { opacity: 0; transform: scale(0.2) rotate(-18deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes title-in {
  from { opacity: 0; transform: translateY(28px); filter: blur(10px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes name-in {
  from { opacity: 0; transform: scale(0.72); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes shimmer { to { background-position: 220% center; } }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-hint {
  margin-top: 3.2rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: fade-up 1s 1.1s both;
}
.scroll-chevron {
  width: 16px; height: 16px;
  border-right: 2px solid var(--pink);
  border-bottom: 2px solid var(--pink);
  transform: rotate(45deg);
  animation: chevron 1.6s ease-in-out infinite;
}
@keyframes chevron {
  0%, 100% { transform: rotate(45deg) translate(0,0); opacity: 0.45; }
  50% { transform: rotate(45deg) translate(4px,4px); opacity: 1; }
}

/* ---------- Memory — tek fotoğraf kartı ---------- */
.memory-card {
  position: relative;
  display: block;
  width: min(100%, 420px);
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.45s var(--spring), box-shadow 0.4s ease;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(168, 85, 247, 0.28),
    0 0 80px rgba(236, 72, 153, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.memory-card:hover,
.memory-card:focus-visible {
  transform: scale(1.035);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.45),
    0 0 50px rgba(168, 85, 247, 0.4),
    0 0 100px rgba(236, 72, 153, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  outline: none;
}
.memory-glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 50% 40%, rgba(236, 72, 153, 0.35), transparent 55%);
  pointer-events: none;
  animation: hero-pulse 5s ease-in-out infinite;
  z-index: 0;
}
.memory-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
  background: #1a0a2e;
}
.memory-caption {
  margin-top: 1.35rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 12000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5, 0, 12, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 1rem;
  animation: lb-in 0.35s var(--ease);
}
@keyframes lb-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lightbox img {
  max-width: min(92vw, 900px);
  max-height: 82dvh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6), var(--glow);
  animation: lb-zoom 0.4s var(--spring);
}
@keyframes lb-zoom {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.lightbox-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.8rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  line-height: 1;
  z-index: 2;
}
.lightbox-close:hover { border-color: var(--pink); }

/* ---------- Timeline ---------- */
.timeline {
  display: flex; flex-direction: column; gap: 1.2rem;
  width: min(100%, 480px);
}
.timeline-card {
  padding: 1.45rem 1.65rem;
  text-align: left;
  display: flex; align-items: flex-start; gap: 1rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.timeline-card::before {
  content: "";
  position: absolute; inset: 0;
  opacity: 0.35;
  pointer-events: none;
}
.timeline-card.tint-pink::before { background: linear-gradient(135deg, rgba(236,72,153,0.35), transparent 60%); }
.timeline-card.tint-purple::before { background: linear-gradient(135deg, rgba(124,58,237,0.4), transparent 60%); }
.timeline-card.tint-blue::before { background: linear-gradient(135deg, rgba(103,232,249,0.22), transparent 60%); }
.timeline-card.tint-rose::before { background: linear-gradient(135deg, rgba(251,113,133,0.35), transparent 60%); }

.timeline-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(236,72,153,0.45);
  box-shadow: 0 0 30px rgba(168,85,247,0.28), 0 14px 40px rgba(0,0,0,0.4);
}
.timeline-card .card-emoji { font-size: 1.75rem; flex-shrink: 0; }
.timeline-card p { font-size: 1.08rem; font-weight: 500; position: relative; }
.timeline-card.reveal.visible { transition-delay: calc(var(--delay, 0) * 0.14s); }

/* ---------- Party ---------- */
.btn-party { font-size: 1.12rem; padding: 1.12rem 2.7rem; }
.party-overlay {
  position: fixed; inset: 0; z-index: 8000;
  pointer-events: none; overflow: hidden; mix-blend-mode: screen;
}
.party-overlay.active { animation: disco 0.35s steps(2) infinite; }
@keyframes disco {
  0% { background: rgba(255,0,128,0.25); }
  25% { background: rgba(0,255,255,0.2); }
  50% { background: rgba(168,85,247,0.3); }
  75% { background: rgba(255,255,0,0.15); }
  100% { background: rgba(236,72,153,0.25); }
}
.chaos-emoji {
  position: absolute; font-size: 2.5rem;
  animation: chaos-fall linear forwards;
  pointer-events: none; z-index: 8001;
}
@keyframes chaos-fall {
  0% { transform: translateY(-10vh) rotate(0) scale(0.5); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg) scale(1.4); opacity: 0.8; }
}
.chaos-dancer {
  position: fixed; font-size: clamp(3rem, 10vw, 5rem);
  z-index: 8002; pointer-events: none;
  animation: dance 0.35s ease-in-out infinite alternate;
}
@keyframes dance {
  from { transform: translateY(0) rotate(-15deg); }
  to { transform: translateY(-20px) rotate(15deg) scale(1.12); }
}
.chaos-unicorn {
  position: fixed; font-size: 4rem; z-index: 8002; pointer-events: none;
  animation: spin-fly 2.5s linear infinite;
}
@keyframes spin-fly {
  0% { transform: translate(0,0) rotate(0); }
  50% { transform: translate(40vw,-20vh) rotate(180deg); }
  100% { transform: translate(-10vw,10vh) rotate(360deg); }
}
.chaos-pizza {
  position: fixed; font-size: 3rem; z-index: 8002; pointer-events: none;
  animation: pizza-fly 1.8s ease-in-out infinite;
}
@keyframes pizza-fly {
  0%, 100% { transform: translate(0,0) rotate(-20deg); }
  50% { transform: translate(30vw,-15vh) rotate(40deg); }
}

/* ---------- Quiz ---------- */
.quiz-box {
  width: min(100%, 460px);
  padding: 2rem 1.75rem;
  text-align: left;
}
.quiz-progress {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink-hot);
  margin-bottom: 0.75rem;
}
.quiz-question { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.4rem; }
.quiz-options { display: flex; flex-direction: column; gap: 0.75rem; }
.quiz-option {
  padding: 0.95rem 1.2rem;
  border-radius: 14px;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--spring);
}
.quiz-option:hover:not(:disabled) {
  border-color: var(--purple);
  background: rgba(168,85,247,0.15);
  transform: translateX(5px);
}
.quiz-option.wrong { border-color: #f87171; animation: shake 0.4s ease; }
.quiz-option.correct {
  border-color: #4ade80;
  background: rgba(74,222,128,0.15);
  box-shadow: 0 0 24px rgba(74,222,128,0.3);
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}
.quiz-feedback {
  margin-top: 1.2rem; min-height: 1.5em;
  font-weight: 600; text-align: center;
}
.quiz-feedback.success { color: #4ade80; }
.quiz-feedback.fail { color: var(--pink-hot); }
.quiz-done { text-align: center; font-size: 1.2rem; font-weight: 700; }

/* ---------- Heart game ---------- */
.game-hud {
  display: flex; gap: 2rem;
  padding: 1rem 1.75rem;
  margin-bottom: 1.25rem;
}
.game-stat { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.game-stat span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.game-stat strong { font-size: 1.6rem; font-variant-numeric: tabular-nums; }

.game-arena {
  position: relative;
  width: min(100%, 480px);
  height: min(52vh, 360px);
  margin-top: 1.25rem;
  overflow: hidden;
  touch-action: manipulation;
}
.game-arena.playing { border-color: rgba(236,72,153,0.45); box-shadow: var(--glow); }

.catch-heart {
  position: absolute;
  font-size: 1.8rem;
  border: none;
  background: none;
  padding: 0.35rem;
  cursor: pointer;
  filter: drop-shadow(0 0 8px rgba(236,72,153,0.7));
  animation: heart-float linear forwards;
  transform: translate(-50%, -50%);
  transition: transform 0.12s var(--spring);
}
.catch-heart:active { transform: translate(-50%, -50%) scale(1.3); }
@keyframes heart-float {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  10% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 20px)), calc(-50% + var(--dy, -80px))) scale(0.8); }
}

.game-result {
  margin-top: 1.25rem;
  min-height: 1.6em;
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Cake ---------- */
.cake-stage {
  margin-bottom: 1.75rem;
  perspective: 800px;
}
.cake {
  position: relative;
  width: 220px; height: 200px;
  margin: 0 auto;
  transform-style: preserve-3d;
}
.candles {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 14px;
  z-index: 5;
}
.candle {
  position: relative;
  width: 8px; height: 36px;
  background: linear-gradient(180deg, #fce7f3, #f9a8d4);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(249,168,212,0.5);
}
.flame {
  position: absolute;
  top: -16px; left: 50%;
  width: 12px; height: 18px;
  margin-left: -6px;
  background: radial-gradient(ellipse at bottom, #fff7a0 10%, #fb923c 50%, transparent 70%);
  border-radius: 50% 50% 40% 40%;
  animation: flicker 0.25s ease-in-out infinite alternate;
  transform-origin: bottom center;
  filter: drop-shadow(0 0 8px #fbbf24);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.cake.blown .flame {
  opacity: 0;
  transform: scale(0.2) translateY(8px);
}
@keyframes flicker {
  from { transform: scaleY(1) rotate(-3deg); }
  to { transform: scaleY(1.15) rotate(4deg); }
}
.cake-top {
  position: absolute;
  bottom: 100px; left: 50%;
  transform: translateX(-50%);
  width: 140px; height: 36px;
  background: linear-gradient(180deg, #fbcfe8, #f472b6);
  border-radius: 10px 10px 6px 6px;
  box-shadow: 0 4px 16px rgba(236,72,153,0.4), inset 0 4px 0 rgba(255,255,255,0.35);
}
.cake-mid {
  position: absolute;
  bottom: 58px; left: 50%;
  transform: translateX(-50%);
  width: 170px; height: 44px;
  background: linear-gradient(180deg, #e9d5ff, #a855f7);
  border-radius: 10px 10px 6px 6px;
  box-shadow: 0 4px 16px rgba(168,85,247,0.4), inset 0 4px 0 rgba(255,255,255,0.3);
}
.cake-bottom {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 48px;
  background: linear-gradient(180deg, #fce7f3, #db2777);
  border-radius: 12px 12px 8px 8px;
  box-shadow: 0 6px 20px rgba(219,39,119,0.45), inset 0 5px 0 rgba(255,255,255,0.28);
}
.cake-plate {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 230px; height: 14px;
  background: linear-gradient(180deg, #e2e8f0, #94a3b8);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
.blow-hint {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Smoke puffs */
.smoke {
  position: absolute;
  top: -10px; left: 50%;
  width: 10px; height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: rgba(200,200,220,0.5);
  animation: smoke-up 1.2s var(--ease) forwards;
  pointer-events: none;
}
@keyframes smoke-up {
  to { transform: translateY(-40px) scale(3); opacity: 0; }
}

/* ---------- Wheel ---------- */
.wheel-wrap {
  position: relative;
  width: min(90vw, 340px);
  height: min(90vw, 340px);
  margin-bottom: 1.75rem;
}
#wheel-canvas {
  width: 100%; height: 100%;
  border-radius: 50%;
  position: relative; z-index: 1;
}
.wheel-glow {
  position: absolute; inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236,72,153,0.35), transparent 65%);
  filter: blur(20px);
  animation: hero-pulse 4s ease-in-out infinite;
  z-index: 0;
}
.wheel-pointer {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 30px solid var(--pink);
  filter: drop-shadow(0 0 10px var(--pink));
  z-index: 2;
}
.wheel-result-card {
  margin-top: 1.75rem;
  width: min(100%, 360px);
  padding: 1.5rem 1.35rem 1.35rem;
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 0 40px rgba(168, 85, 247, 0.35),
    0 0 80px rgba(236, 72, 153, 0.2),
    0 12px 40px rgba(0, 0, 0, 0.35);
  animation: result-pop 0.7s var(--spring) both;
}
.wheel-result-card.hidden { display: none; }
.wheel-result-emoji {
  display: block;
  font-size: 2.8rem;
  margin-bottom: 0.4rem;
  filter: drop-shadow(0 0 16px rgba(236, 72, 153, 0.65));
  animation: result-emoji 0.8s var(--spring) both;
}
.wheel-result-text {
  font-size: clamp(1.15rem, 4vw, 1.4rem);
  font-weight: 700;
  line-height: 1.35;
  background: linear-gradient(90deg, #fff, var(--pink-hot), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wheel-result-sub {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
@keyframes result-pop {
  from { opacity: 0; transform: translateY(24px) scale(0.88); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes result-emoji {
  from { transform: scale(0.3) rotate(-20deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}

.wheel-wrap.spinning .wheel-glow {
  animation: hero-pulse 0.8s ease-in-out infinite;
  opacity: 1;
  filter: blur(16px) brightness(1.3);
}

/* ---------- Counter ---------- */
.counter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: min(100%, 440px);
}
@media (min-width: 520px) {
  .counter-grid { grid-template-columns: repeat(4, 1fr); }
}
.counter-cell {
  padding: 1.25rem 0.7rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
}
.counter-num {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 20px rgba(168,85,247,0.7);
}
.counter-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* ---------- Wish ---------- */
.wish-box {
  width: min(100%, 420px);
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.wish-input {
  width: 100%;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.35);
  color: var(--text);
  font-family: inherit;
  font-size: 1.05rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.wish-input::placeholder { color: rgba(248,245,255,0.4); }
.wish-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 24px rgba(168,85,247,0.35);
}
.wish-sent {
  margin-top: 2rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  animation: wish-pop 0.8s var(--spring) both;
}
.wish-sparkle {
  font-size: 3rem;
  animation: sparkle 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(255,255,200,0.8));
}
.wish-sent p { font-size: 1.25rem; font-weight: 700; color: var(--pink-hot); }
@keyframes wish-pop {
  from { opacity: 0; transform: scale(0.5) translateY(20px); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0); }
  50% { transform: scale(1.2) rotate(12deg); }
}

.wish-star {
  position: fixed;
  z-index: 7000;
  pointer-events: none;
  font-size: 1.4rem;
  animation: star-rise 2.4s var(--ease) forwards;
  filter: drop-shadow(0 0 10px #fbbf24);
}
@keyframes star-rise {
  0% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
  100% { opacity: 0; transform: translateY(-55vh) scale(1.6) rotate(40deg); }
}

/* ---------- Finale ---------- */
.finale-section {
  min-height: 100dvh;
  padding-bottom: calc(5rem + var(--safe-b));
  background: radial-gradient(ellipse at center, rgba(88,28,135,0.45), transparent 60%);
  transition: background 1s ease;
}
.finale-section.epic {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(236,72,153,0.35), transparent 40%),
    radial-gradient(ellipse at 70% 60%, rgba(124,58,237,0.4), transparent 45%),
    radial-gradient(ellipse at center, rgba(10,0,20,0.2), #020008);
}
.finale-title {
  font-family: var(--display);
  font-size: clamp(2rem, 7vw, 3.6rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff, var(--pink-hot), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(236,72,153,0.4));
}
.finale-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.finale-typewriter {
  min-height: 3.2em;
  max-width: 28ch;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(248,245,255,0.88);
}
.finale-end {
  font-size: clamp(1.35rem, 4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: var(--glow);
  animation: pulse-soft 2.5s ease-in-out infinite;
}
@keyframes pulse-soft {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

/* ---------- Floaters ---------- */
.floater {
  position: absolute;
  pointer-events: none;
  user-select: none;
  will-change: transform;
  opacity: 0.85;
}
.floater.balloon {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  animation: float-up linear infinite;
}
.floater.heart {
  font-size: clamp(0.95rem, 2.4vw, 1.5rem);
  animation: float-drift linear infinite;
  filter: drop-shadow(0 0 6px rgba(236,72,153,0.6));
}
.floater.star {
  font-size: clamp(0.65rem, 1.4vw, 1rem);
  animation: twinkle ease-in-out infinite;
}
@keyframes float-up {
  0% { transform: translateY(110vh) rotate(0); opacity: 0; }
  10% { opacity: 0.9; }
  90% { opacity: 0.9; }
  100% { transform: translateY(-15vh) rotate(25deg); opacity: 0; }
}
@keyframes float-drift {
  0% { transform: translate(0, 110vh) rotate(0); opacity: 0; }
  15% { opacity: 0.85; }
  85% { opacity: 0.85; }
  100% { transform: translate(40px, -10vh) rotate(30deg); opacity: 0; }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}
.star-dot {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(255,255,255,0.8);
  animation: star-move linear infinite;
}
@keyframes star-move {
  from { transform: translateY(0); }
  to { transform: translateY(-100vh); }
}

/* ---------- Hidden hearts ---------- */
.secret-heart {
  position: absolute;
  font-size: 1.1rem;
  opacity: 0.28;
  border: none;
  background: none;
  padding: 0.4rem;
  z-index: 6;
  transition: opacity 0.3s, transform 0.35s var(--spring), filter 0.3s;
  filter: grayscale(0.4);
  cursor: pointer;
}
.secret-heart:hover,
.secret-heart:focus-visible {
  opacity: 0.85;
  transform: scale(1.3);
  outline: none;
}
.secret-heart.found {
  opacity: 1;
  filter: none;
  pointer-events: none;
  animation: found-pop 0.5s var(--spring);
}
@keyframes found-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.8); }
  100% { transform: scale(0); opacity: 0; }
}

.secret-overlay {
  position: fixed; inset: 0; z-index: 15000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5,0,12,0.8);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
  animation: lb-in 0.4s var(--ease);
}
.secret-card {
  max-width: 400px;
  padding: 2.5rem 2rem;
  text-align: center;
}
.secret-card h2 {
  font-family: var(--display);
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #fff, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.secret-card p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
  body { cursor: auto; }
  .cursor-glow, .mouse-light { display: none !important; }
}

/* ---------- Mobile ---------- */
@media (max-width: 480px) {
  .section { padding: 4rem 1rem; }
  .btn-premium { padding: 0.9rem 1.8rem; font-size: 0.95rem; }
  .cake { transform: scale(0.88); }
  body { cursor: auto; }
  .cursor-glow { display: none; }
}

@media (hover: none) {
  body { cursor: auto; }
  .cursor-glow { display: none !important; }
}
