/* ========================================
   RESET & CUSTOM PROPERTIES
   ======================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --pink: #e8729a;
  --pink-soft: #f4a0bb;
  --pink-light: #fde2ec;
  --peach: #f7c59f;
  --peach-light: #ffecd2;
  --rose: #c96b8b;
  --purple: #b388d9;
  --purple-soft: #d4b5f0;
  --purple-light: #f0e4fa;
  --lavender: #e0d0f5;
  --blue-soft: #b8cff5;
  --cream: #fdf8f4;
  --warm-white: #fffaf6;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.35);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --text-primary: #3d2b3a;
  --text-secondary: #6b5268;
  --text-muted: #9a8496;
  --shadow-xs: 0 1px 3px rgba(140, 80, 120, 0.06);
  --shadow-sm: 0 4px 16px rgba(140, 80, 120, 0.08);
  --shadow-md: 0 8px 32px rgba(140, 80, 120, 0.1);
  --shadow-lg: 0 16px 48px rgba(140, 80, 120, 0.14);
  --shadow-xl: 0 24px 64px rgba(140, 80, 120, 0.18);
  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 9999px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition: 0.4s var(--ease-out);
  --transition-slow: 0.7s var(--ease-out);
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  background: var(--cream);
  overflow: hidden;
  line-height: 1.75;
  font-weight: 300;
  height: 100vh;
  width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

/* ========================================
   CURSOR GLOW
   ======================================== */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 114, 154, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}
.cursor-glow.active { opacity: 1; }
@media (hover: none) { .cursor-glow { display: none; } }

/* ========================================
   CINEMATIC INTRO
   ======================================== */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: linear-gradient(135deg, #1a0a14 0%, #2d1528 30%, #1a0a14 60%, #1e1030 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.intro-overlay.hidden {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}
.intro-content { text-align: center; padding: 24px; }
.intro-hearts {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  font-size: 1.5rem;
}
.intro-hearts span {
  animation: intro-heart-float 2s ease-in-out infinite;
  opacity: 0;
}
.intro-hearts span:nth-child(1) { animation-delay: 0s; }
.intro-hearts span:nth-child(2) { animation-delay: 0.15s; }
.intro-hearts span:nth-child(3) { animation-delay: 0.3s; }
.intro-hearts span:nth-child(4) { animation-delay: 0.45s; }
.intro-hearts span:nth-child(5) { animation-delay: 0.6s; }

@keyframes intro-heart-float {
  0% { opacity: 0; transform: translateY(20px) scale(0.5); }
  20% { opacity: 1; transform: translateY(0) scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0.7; transform: translateY(-8px) scale(1.05); }
}
.intro-text {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  color: var(--pink-soft);
  min-height: 2.5em;
  margin-bottom: 40px;
}
.intro-loader {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin: 0 auto 16px;
  overflow: hidden;
}
.intro-loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--pink), var(--purple-soft));
  border-radius: 10px;
  transition: width 0.3s var(--ease-out);
}
.intro-subtext {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 300;
}

/* ========================================
   MUSIC BUTTON
   ======================================== */
.music-btn {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1000;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(-10px);
}
.music-btn.visible { opacity: 1; transform: translateY(0); }
.music-btn:hover { transform: scale(1.08); box-shadow: var(--shadow-md); }
.music-bars { display: flex; align-items: flex-end; gap: 2.5px; height: 16px; }
.music-bars span { width: 3px; height: 4px; background: var(--text-muted); border-radius: 2px; transition: var(--transition); }
.music-btn.playing .music-bars span { background: var(--pink); animation: music-bar 0.8s ease-in-out infinite alternate; }
.music-btn.playing .music-bars span:nth-child(1) { animation-delay: 0s; }
.music-btn.playing .music-bars span:nth-child(2) { animation-delay: 0.15s; }
.music-btn.playing .music-bars span:nth-child(3) { animation-delay: 0.3s; }
.music-btn.playing .music-bars span:nth-child(4) { animation-delay: 0.1s; }
@keyframes music-bar { 0% { height: 4px; } 100% { height: 16px; } }

/* ========================================
   PAGE NAVIGATION UI
   ======================================== */

/* Progress bar at top */
.page-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(232, 114, 154, 0.1);
  z-index: 1001;
}
.page-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--pink-soft));
  background-size: 200% 100%;
  animation: gradient-flow 3s linear infinite;
  border-radius: 0 2px 2px 0;
  transition: width 0.6s var(--ease-out);
  box-shadow: 0 0 10px rgba(232, 114, 154, 0.3);
}
@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Modern "Next" pill button — fixed at bottom of each page */
.page-next-btn {
  position: absolute;
  bottom: 32px;
  right: 28px;
  left: auto;
  transform: none;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff6b9d, #c44dff);
  box-shadow: 0 8px 28px rgba(196, 77, 255, 0.25);
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.35s var(--ease-out);
  white-space: nowrap;
  writing-mode: horizontal-tb;
}
.page-next-btn span {
  display: inline-block;
  transition: transform 0.3s var(--ease-spring);
  font-size: 1rem;
}
.page-next-btn:hover {
  box-shadow: 0 14px 40px rgba(196, 77, 255, 0.35);
  transform: translateY(-3px);
}
.page-next-btn:hover span {
  transform: translateX(4px);
}
.page-next-btn:active {
  transform: translateY(0) scale(0.96);
}

/* Subtle float animation */
.page.active .page-next-btn {
  animation: next-float 3s ease-in-out 1.5s infinite;
}
@keyframes next-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 768px) {
  .page-next-btn {
    bottom: 24px;
    right: 20px;
    padding: 12px 20px;
    font-size: 0.78rem;
    border-radius: 14px;
  }
}

/* ========================================
   PAGES SYSTEM
   ======================================== */
.pages-wrapper {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.page {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  /* Default: off-screen right */
  opacity: 0;
  transform: translateX(60px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
  z-index: 1;
}

.page.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  z-index: 2;
}

.page.exit-left {
  opacity: 0;
  transform: translateX(-60px) scale(0.96);
  pointer-events: none;
  z-index: 1;
}

.page.exit-right {
  opacity: 0;
  transform: translateX(60px) scale(0.96);
  pointer-events: none;
  z-index: 1;
}

.page-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.page-scrollable {
  overflow-y: auto;
  overflow-x: hidden;
  align-items: flex-start;
  padding: 80px 0 100px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--pink-soft) transparent;
}

.page-scrollable::-webkit-scrollbar { width: 4px; }
.page-scrollable::-webkit-scrollbar-track { background: transparent; }
.page-scrollable::-webkit-scrollbar-thumb { background: var(--pink-soft); border-radius: 10px; }

/* ========================================
   ANIM ITEMS (page enter animations)
   ======================================== */
.anim-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: calc(var(--delay, 0) * 0.1s);
}

.page.active .anim-item {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger the section headers */
.page.active .section-header .anim-item:nth-child(1) { transition-delay: 0.1s; }
.page.active .section-header .anim-item:nth-child(2) { transition-delay: 0.2s; }
.page.active .section-header .anim-item:nth-child(3) { transition-delay: 0.3s; }
.page.active .section-header .anim-item:nth-child(4) { transition-delay: 0.4s; }

/* When page exits, reset instantly */
.page:not(.active) .anim-item {
  transition-delay: 0s;
  transition-duration: 0s;
}

/* ========================================
   GLASSMORPHISM
   ======================================== */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.glass-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.5);
  background: var(--glass-strong);
}

/* ========================================
   SECTION COMMON
   ======================================== */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-tag {
  display: inline-block;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 20px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 5.5vw, 3rem);
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  font-weight: 300;
  font-style: italic;
  max-width: 460px;
  margin: 0 auto 20px;
  line-height: 1.6;
}
.section-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--pink-soft), var(--purple-soft));
  margin: 0 auto;
  border-radius: 2px;
}

/* ========================================
   FILM GRAIN OVERLAY
   ======================================== */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  opacity: 0.04;
  filter: url(#grain);
  mix-blend-mode: overlay;
  width: 100%;
  height: 100%;
}

/* ========================================
   MORPHING BLOB SYSTEM
   ======================================== */
.blob-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  will-change: transform, border-radius;
}

/* Blob morph keyframes — organic shape shifting */
@keyframes morph-1 {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: translate(0, 0) rotate(0deg) scale(1); }
  25%      { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; transform: translate(5%, -8%) rotate(5deg) scale(1.05); }
  50%      { border-radius: 50% 60% 30% 60% / 40% 70% 50% 60%; transform: translate(-3%, 5%) rotate(-3deg) scale(0.97); }
  75%      { border-radius: 40% 60% 60% 40% / 70% 30% 50% 60%; transform: translate(4%, 3%) rotate(4deg) scale(1.03); }
}

@keyframes morph-2 {
  0%, 100% { border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%; transform: translate(0, 0) rotate(0deg) scale(1); }
  25%      { border-radius: 50% 50% 40% 60% / 40% 60% 50% 50%; transform: translate(-6%, 4%) rotate(-4deg) scale(1.04); }
  50%      { border-radius: 60% 40% 50% 50% / 50% 50% 40% 60%; transform: translate(4%, -5%) rotate(6deg) scale(0.96); }
  75%      { border-radius: 45% 55% 55% 45% / 55% 45% 55% 45%; transform: translate(-2%, -3%) rotate(-2deg) scale(1.02); }
}

@keyframes morph-3 {
  0%, 100% { border-radius: 70% 30% 50% 50% / 30% 70% 40% 60%; transform: translate(0, 0) rotate(0deg); }
  33%      { border-radius: 40% 60% 30% 70% / 60% 40% 70% 30%; transform: translate(6%, -4%) rotate(8deg); }
  66%      { border-radius: 50% 50% 60% 40% / 40% 60% 30% 70%; transform: translate(-5%, 6%) rotate(-5deg); }
}

/* Floating drift animation */
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(15px, -20px); }
  50% { transform: translate(-10px, 15px); }
  75% { transform: translate(20px, 10px); }
}

/* === HERO BLOBS === */
.blob-1 {
  width: 55vmax; height: 55vmax;
  background: linear-gradient(135deg, #ff6b9d, #c44dff);
  top: -15%; left: -10%;
  animation: morph-1 12s ease-in-out infinite, drift 20s ease-in-out infinite;
  opacity: 0.25;
  filter: blur(60px);
}
.blob-2 {
  width: 45vmax; height: 45vmax;
  background: linear-gradient(135deg, #667eea, #764ba2);
  top: 10%; right: -15%;
  animation: morph-2 14s ease-in-out infinite, drift 22s ease-in-out infinite reverse;
  opacity: 0.25;
  filter: blur(60px);
}
.blob-3 {
  width: 35vmax; height: 35vmax;
  background: linear-gradient(135deg, #f093fb, #f5576c);
  bottom: -10%; left: 20%;
  animation: morph-3 16s ease-in-out infinite, drift 18s ease-in-out infinite;
  opacity: 0.2;
  filter: blur(60px);
}
.blob-4 {
  width: 25vmax; height: 25vmax;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  top: 40%; left: 50%;
  animation: morph-1 10s ease-in-out infinite reverse, drift 15s ease-in-out infinite;
  opacity: 0.15;
  filter: blur(80px);
}

/* === STORY BLOBS === */
.blob-story-1 {
  width: 50vmax; height: 50vmax;
  background: linear-gradient(135deg, #e0d0f5, #d4b5f0);
  top: -20%; right: -20%;
  animation: morph-2 15s ease-in-out infinite;
  opacity: 0.25;
}
.blob-story-2 {
  width: 40vmax; height: 40vmax;
  background: linear-gradient(135deg, #fde2ec, #f4a0bb);
  bottom: -15%; left: -15%;
  animation: morph-1 13s ease-in-out infinite reverse;
  opacity: 0.2;
}

/* === GALLERY BLOBS === */
.blob-gallery-1 {
  width: 45vmax; height: 45vmax;
  background: linear-gradient(135deg, #ffecd2, #f7c59f);
  top: -15%; left: -10%;
  animation: morph-3 14s ease-in-out infinite;
  opacity: 0.25;
}
.blob-gallery-2 {
  width: 35vmax; height: 35vmax;
  background: linear-gradient(135deg, #fde2ec, #e0d0f5);
  bottom: -10%; right: -10%;
  animation: morph-2 12s ease-in-out infinite reverse;
  opacity: 0.2;
}

/* === LETTERS BLOBS === */
.blob-letters-1 {
  width: 50vmax; height: 50vmax;
  background: linear-gradient(135deg, #f4a0bb, #fde2ec);
  top: -15%; left: 30%;
  animation: morph-1 16s ease-in-out infinite;
  opacity: 0.22;
}
.blob-letters-2 {
  width: 40vmax; height: 40vmax;
  background: linear-gradient(135deg, #d4b5f0, #b8cff5);
  bottom: -15%; left: -15%;
  animation: morph-3 13s ease-in-out infinite reverse;
  opacity: 0.18;
}

/* === SURPRISE BLOBS === */
.blob-surprise-1 {
  width: 55vmax; height: 55vmax;
  background: linear-gradient(135deg, #e0d0f5, #b388d9);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: morph-2 15s ease-in-out infinite;
  opacity: 0.2;
}
.blob-surprise-2 {
  width: 35vmax; height: 35vmax;
  background: linear-gradient(135deg, #f4a0bb, #e8729a);
  top: -10%; right: -10%;
  animation: morph-1 11s ease-in-out infinite reverse;
  opacity: 0.2;
}

/* === COUNTDOWN BLOBS === */
.blob-countdown-1 {
  width: 50vmax; height: 50vmax;
  background: linear-gradient(135deg, #fce4ec, #f8bbd0);
  top: -20%; left: -10%;
  animation: morph-1 14s ease-in-out infinite;
  opacity: 0.4; filter: blur(80px);
}
.blob-countdown-2 {
  width: 40vmax; height: 40vmax;
  background: linear-gradient(135deg, #e1bee7, #ce93d8);
  bottom: -15%; right: -15%;
  animation: morph-3 16s ease-in-out infinite reverse;
  opacity: 0.3; filter: blur(80px);
}
.blob-countdown-3 {
  width: 30vmax; height: 30vmax;
  background: linear-gradient(135deg, #c5cae9, #9fa8da);
  top: 30%; right: 10%;
  animation: morph-2 12s ease-in-out infinite;
  opacity: 0.25; filter: blur(80px);
}

/* === FUTURE BLOBS === */
.blob-future-1 {
  width: 45vmax; height: 45vmax;
  background: linear-gradient(135deg, #ffecd2, #f7c59f);
  top: -15%; right: -15%;
  animation: morph-2 14s ease-in-out infinite;
  opacity: 0.22;
}
.blob-future-2 {
  width: 40vmax; height: 40vmax;
  background: linear-gradient(135deg, #e0d0f5, #d4b5f0);
  bottom: -10%; left: -10%;
  animation: morph-1 12s ease-in-out infinite reverse;
  opacity: 0.2;
}

/* === FINAL BLOBS === */
.blob-final-1 {
  width: 55vmax; height: 55vmax;
  background: linear-gradient(135deg, #f4a0bb, #e8729a);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: morph-3 18s ease-in-out infinite;
  opacity: 0.18;
}
.blob-final-2 {
  width: 40vmax; height: 40vmax;
  background: linear-gradient(135deg, #d4b5f0, #e0d0f5);
  top: -10%; left: -10%;
  animation: morph-1 14s ease-in-out infinite reverse;
  opacity: 0.2;
}
.blob-final-3 {
  width: 30vmax; height: 30vmax;
  background: linear-gradient(135deg, #ffecd2, #b8cff5);
  bottom: 10%; right: -5%;
  animation: morph-2 12s ease-in-out infinite;
  opacity: 0.15;
  filter: blur(80px);
}

/* ========================================
   HERO
   ======================================== */
#page-hero {
  background: linear-gradient(135deg, #0f0c29 0%, #1a1a2e 30%, #16213e 60%, #0f0c29 100%);
  overflow: hidden;
}
.hero-mesh {
  position: absolute; inset: 0;
  opacity: 0.06;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.3) 1px, transparent 0);
  background-size: 32px 32px;
  z-index: 0;
}

.hero-content { z-index: 3; padding: 40px 24px; max-width: 700px; flex-direction: column; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 300;
  margin-bottom: 36px;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #ff6b9d;
  box-shadow: 0 0 8px #ff6b9d;
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 10vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 28px;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 0%, #f0c3ff 40%, #ff6b9d 70%, #ffd6e0 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease-in-out infinite;
  filter: drop-shadow(0 2px 20px rgba(255, 107, 157, 0.3));
}
.hero-title-line { display: block; }
.hero-title-heart {
  display: inline-block;
  font-size: 0.55em;
  animation: heart-beat 1.5s ease-in-out infinite;
  vertical-align: middle;
  -webkit-text-fill-color: initial;
}
@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.2); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
  60% { transform: scale(1); }
}
.hero-name {
  display: block;
  font-style: italic;
  font-size: 1.15em;
  margin-top: 4px;
  padding-bottom: 0.15em;
  line-height: 1.3;
  background: linear-gradient(90deg, #ff9dc2, #e08fff, #9bb5ff, #ff9dc2);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(224, 143, 255, 0.5));
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}
.hero-subtitle {
  font-size: clamp(0.95rem, 3vw, 1.15rem);
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.5px;
  margin-bottom: 44px;
  font-weight: 300;
}
.hero-cta { margin-bottom: 0; }

/* Primary Button */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  border: none;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #ff6b9d 0%, #c44dff 50%, #667eea 100%);
  background-size: 200% auto;
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 32px rgba(196, 77, 255, 0.3);
  letter-spacing: 0.5px;
  overflow: hidden;
}
.btn-primary:hover {
  background-position: 100% center;
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(196, 77, 255, 0.4);
}
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-glow {
  position: absolute; inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, #ff6b9d, #c44dff, #667eea);
  background-size: 200% auto;
  animation: glow-rotate 3s linear infinite;
  z-index: -1; opacity: 0; filter: blur(12px);
  transition: opacity 0.4s;
}
.btn-primary:hover .btn-glow { opacity: 0.6; }
@keyframes glow-rotate { 0% { background-position: 0% center; } 100% { background-position: 200% center; } }
.btn-icon { font-size: 1.1em; transition: transform 0.3s var(--ease-spring); }
.btn-primary:hover .btn-icon { transform: translateX(3px) scale(1.1); }

/* Floating hearts */
.floating-hearts { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.floating-heart { position: absolute; bottom: -40px; opacity: 0; animation: float-up linear infinite; }
@keyframes float-up {
  0% { opacity: 0; transform: translateY(0) rotate(0deg) scale(0.4); }
  8% { opacity: 0.7; }
  85% { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(-100vh) rotate(360deg) scale(0.9); }
}

/* ========================================
   STORY — WINDING PATH (all-in-SVG)
   ======================================== */
#page-story {
  background: var(--warm-white);
}

.story-page-content {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 20px 40px;
}

.story-header {
  text-align: center;
  margin-bottom: 8px;
}

.story-title {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.1;
}

.story-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.82rem, 2.2vw, 0.95rem);
  color: var(--text-muted);
  font-weight: 300;
  font-style: italic;
}

/* SVG container */
.winding-path-wrap {
  width: 100%;
  overflow: visible;
}

.story-svg {
  width: 100%;
  height: auto;
  max-height: 65vh;
  display: block;
  overflow: visible;
}

/* The dashed path line */
.story-line {
  stroke-dasharray: 7 5;
}

/* Animated draw-in */
.story-line-draw {
  transition: stroke-dashoffset 2.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#page-story.active .story-line-draw {
  stroke-dashoffset: 0 !important;
}

/* SVG text styles */
.ms-icon {
  font-size: 22px;
}

.ms-chapter {
  font-family: 'Poppins', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2.5px;
  fill: var(--pink);
}

.ms-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  fill: var(--text-primary);
}

.ms-caption {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 300;
  font-style: italic;
  fill: var(--text-muted);
}

.ms-continued {
  font-family: 'Dancing Script', cursive;
  font-size: 18px;
  fill: var(--text-secondary);
  opacity: 0;
  transition: opacity 1s var(--ease-out) 2.5s;
}

#page-story.active .ms-continued {
  opacity: 1;
}

/* Heart markers — staggered fade + pulse */
.story-heart {
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  transition-delay: calc(0.6s + var(--i, 0) * 0.35s);
}

#page-story.active .story-heart {
  opacity: 1;
}

/* Milestone groups — staggered fade */
.story-milestone {
  opacity: 0;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: calc(0.5s + var(--i, 0) * 0.35s);
  transform: translateY(8px);
}

#page-story.active .story-milestone {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile: allow horizontal scroll if needed */
@media (max-width: 600px) {
  .winding-path-wrap {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .winding-path-wrap::-webkit-scrollbar { display: none; }

  .story-svg {
    min-width: 700px;
    max-height: none;
    height: 350px;
  }

  .story-page-content {
    padding: 16px 8px 40px;
  }
}

/* ========================================
   POLAROID GALLERY
   ======================================== */
#page-gallery { background: linear-gradient(180deg, var(--cream) 0%, var(--warm-white) 50%, var(--cream) 100%); }

/* ---- Clothesline Gallery ---- */

/* Wood plank background */
.wood-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0px, transparent 80px,
      rgba(0,0,0,0.06) 80px, rgba(0,0,0,0.06) 82px
    ),
    repeating-linear-gradient(
      180deg,
      rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 2px,
      transparent 2px, transparent 18px
    ),
    linear-gradient(180deg, #4a2e1a 0%, #5c3a22 20%, #4e3019 50%, #5a3820 80%, #3d2412 100%);
}
.wood-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,200,100,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(255,180,80,0.06) 0%, transparent 50%);
  pointer-events: none;
}

/* Page title */
.cl-title {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: #fff;
  text-align: center;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  margin-bottom: 4px;
  position: relative; z-index: 2;
}
.cl-subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 300;
  margin-bottom: 32px;
  position: relative; z-index: 2;
}

/* Clothesline row */
.clothesline {
  position: relative;
  margin-bottom: 20px;
  padding-top: 18px;
  z-index: 2;
}

/* The string */
.cl-string {
  position: absolute;
  top: 18px; left: 3%; right: 3%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(200,180,140,0.7) 10%, rgba(200,180,140,0.8) 50%, rgba(200,180,140,0.7) 90%, transparent);
  z-index: 1;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Photos container */
.cl-photos {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 0 10px;
  position: relative;
  z-index: 2;
}

/* Individual hanging photo */
.cl-photo {
  position: relative;
  transform: rotate(var(--r, 0deg));
  margin-top: var(--drop, 10px);
  transition: transform 0.5s var(--ease-spring);
  flex-shrink: 0;
  width: clamp(100px, 16vw, 160px);
}
.cl-photo:hover {
  transform: rotate(0deg) scale(1.08) translateY(-6px);
  z-index: 10;
}

/* Clothespin */
.cl-pin {
  width: 10px;
  height: 24px;
  margin: 0 auto -6px;
  position: relative;
  z-index: 3;
}
.cl-pin::before {
  content: '';
  position: absolute;
  left: 50%; top: 0;
  transform: translateX(-50%);
  width: 14px; height: 22px;
  background: linear-gradient(180deg, #c9a96e 0%, #a07840 40%, #8a6530 100%);
  border-radius: 3px 3px 2px 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.cl-pin::after {
  content: '';
  position: absolute;
  left: 50%; top: 8px;
  transform: translateX(-50%);
  width: 8px; height: 3px;
  background: rgba(0,0,0,0.15);
  border-radius: 1px;
}

/* Polaroid card */
.cl-card {
  background: #fff;
  padding: 6px 6px 24px;
  border-radius: 2px;
  box-shadow:
    0 4px 16px rgba(0,0,0,0.25),
    0 1px 4px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: box-shadow 0.4s ease;
}
.cl-photo:hover .cl-card {
  box-shadow:
    0 12px 32px rgba(0,0,0,0.35),
    0 2px 8px rgba(0,0,0,0.2);
}
.cl-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  border-radius: 1px;
}
.cl-card p {
  text-align: center;
  font-family: 'Dancing Script', cursive;
  font-size: 0.65rem;
  color: #5a4030;
  margin-top: 4px;
  line-height: 1.3;
  font-weight: 600;
}

/* Fairy lights overlay */
.fairy-lights {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}
.fairy-dot {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #ffe8a0;
  box-shadow: 0 0 8px 2px rgba(255,220,120,0.6), 0 0 20px 4px rgba(255,200,80,0.2);
  animation: twinkle 2s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Responsive */
@media (max-width: 768px) {
  .cl-photos { gap: 8px; }
  .cl-photo { width: clamp(80px, 18vw, 130px); }
  .cl-card { padding: 4px 4px 18px; }
  .cl-card p { font-size: 0.55rem; }
  .cl-pin::before { width: 12px; height: 18px; }
  .clothesline { margin-bottom: 14px; }
}
@media (max-width: 480px) {
  .cl-photos { gap: 5px; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: 0 16px; -webkit-overflow-scrolling: touch; }
  .cl-photo { width: 110px; }
  .cl-card p { font-size: 0.5rem; }
  .cl-title { font-size: 1.8rem; }
}

/* ========================================
   LETTERS
   ======================================== */
#page-letters { background: linear-gradient(180deg, var(--cream) 0%, var(--warm-white) 50%, var(--cream) 100%); }

.letters-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; justify-items: center;
}

/* === Envelope card === */
.envelope {
  width: 100%; max-width: 320px; cursor: pointer;
  perspective: 800px;
}
.envelope-front {
  padding: 36px 24px 28px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,0.85), rgba(255,240,245,0.9));
  border-radius: var(--radius-md);
  border: 1px solid rgba(232, 114, 154, 0.15);
  box-shadow: 0 4px 24px rgba(140, 80, 120, 0.08);
  transition: all 0.4s var(--ease-out);
}
.envelope:hover .envelope-front {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(196, 77, 255, 0.15), 0 4px 16px rgba(232, 114, 154, 0.1);
  border-color: rgba(196, 77, 255, 0.25);
}
.envelope-flap {
  position: absolute; top: 0; left: 0; right: 0; height: 52px;
  background: linear-gradient(135deg, #ff9dc2, #e08fff);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transition: all 0.5s var(--ease-out); opacity: 0.6;
}
.envelope:hover .envelope-flap {
  clip-path: polygon(0 0, 100% 0, 50% 60%);
  opacity: 0.8;
}
.envelope-seal {
  font-size: 2.2rem; margin-bottom: 8px; position: relative; z-index: 1;
  transition: transform 0.5s var(--ease-spring);
}
.envelope:hover .envelope-seal { transform: scale(1.2) rotate(-8deg); }
.envelope-label {
  font-family: 'Playfair Display', serif; font-size: 1.05rem;
  color: var(--text-primary); font-weight: 600; position: relative; z-index: 1;
}
.envelope-hint {
  font-size: 0.65rem; color: var(--text-muted); letter-spacing: 1.5px;
  text-transform: uppercase; margin-top: 10px; opacity: 0;
  transition: opacity 0.3s; position: relative; z-index: 1;
}
.envelope:hover .envelope-hint { opacity: 1; }

/* === Letter content hidden inside envelope (used as source) === */
.letter-content { display: none; }

/* === Letter overlay backdrop === */
.letter-overlay {
  display: none; position: fixed; inset: 0; z-index: 9998;
  background: rgba(15, 12, 41, 0.75);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; transition: opacity 0.4s var(--ease-out);
}
.letter-overlay.active { display: block; opacity: 1; }
.letter-overlay.closing { opacity: 0; }

/* === Flying letter (positioned absolutely on body) === */
.letter-flying {
  position: fixed; z-index: 9999;
  pointer-events: none;
  transform-origin: center top;
}
.letter-flying.active { pointer-events: auto; }

/* Envelope shrink effect when letter is out */
.envelope-sending .envelope-front {
  transform: scale(0.92);
  opacity: 0.5;
  transition: all 0.4s var(--ease-out);
}

.letter-paper {
  background: linear-gradient(180deg, #fffaf6 0%, #fff5f8 100%);
  border-radius: var(--radius-lg); padding: 40px 32px 32px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255,255,255,0.1);
  position: relative; overflow: hidden; text-align: left;
  max-width: 480px; width: 100%;
}
.letter-paper::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #ff9dc2, #e08fff, #9bb5ff);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.letter-watermark {
  position: absolute; bottom: -10px; right: -10px;
  font-size: 6rem; opacity: 0.05; pointer-events: none;
}
.letter-greeting {
  font-family: 'Dancing Script', cursive; font-size: 1.5rem;
  color: var(--text-primary); margin-bottom: 18px;
}
.letter-paper p {
  color: var(--text-secondary); font-size: 0.92rem;
  line-height: 1.9; margin-bottom: 14px;
}
.letter-sign {
  font-family: 'Dancing Script', cursive; font-size: 1.15rem;
  background: linear-gradient(90deg, #ff6b9d, #c44dff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.letter-close-btn {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 20px; padding: 10px 24px;
  border: none; border-radius: var(--radius-full);
  background: linear-gradient(135deg, #ff6b9d, #c44dff);
  color: white; font-family: 'Poppins', sans-serif;
  font-size: 0.82rem; font-weight: 500; cursor: pointer;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 4px 16px rgba(196, 77, 255, 0.25);
}
.letter-close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(196, 77, 255, 0.35);
}

/* ========================================
   SURPRISE
   ======================================== */
#page-surprise { background: linear-gradient(180deg, var(--cream) 0%, var(--warm-white) 50%, var(--cream) 100%); }

/* === Gift Unwrap === */
/* === Gift Unwrap === */
.gift-unwrap {
  display: flex; flex-direction: column; align-items: center;
  position: relative;
}

/* Sparkles */
.gift-sparkles {
  position: absolute; inset: -40px; pointer-events: none; z-index: 5;
  overflow: hidden;
}
.gift-sparkle {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: #ffd700; opacity: 0;
  animation: sparkle-pop 0.8s var(--ease-out) forwards;
}
.gift-sparkle:nth-child(odd) { background: #ff6b9d; }
.gift-sparkle:nth-child(3n) { background: #c44dff; width: 4px; height: 4px; }
@keyframes sparkle-pop {
  0% { opacity: 0; transform: scale(0) translate(0, 0); }
  30% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0; transform: scale(0.5) translate(var(--sx), var(--sy)); }
}

/* 3D Gift Box */
.gift-box {
  position: relative; width: 200px; height: 220px;
  cursor: pointer; perspective: 800px;
  z-index: 2;
}
.gift-3d {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(8deg) rotateY(-12deg);
  transition: transform 0.4s var(--ease-spring);
}
.gift-box:hover .gift-3d { transform: rotateX(5deg) rotateY(-8deg) scale(1.04); }
.gift-box:active .gift-3d { transform: rotateX(8deg) rotateY(-12deg) scale(0.96); }

/* Lid */
.gift-lid {
  position: absolute; top: 0; left: -8px; right: -8px; height: 60px;
  transform-style: preserve-3d;
  transform-origin: top center;
  transition: transform 0.7s var(--ease-spring);
  z-index: 3;
}
.gift-box.lid-open .gift-lid {
  transform: rotateX(-110deg) translateY(-10px);
}
.gift-lid-top {
  position: absolute; inset: 0;
  background: linear-gradient(145deg, #ff6b9d, #e05585);
  border-radius: 12px 12px 4px 4px;
  box-shadow: 0 -4px 20px rgba(255, 107, 157, 0.2);
  overflow: hidden;
}
.gift-lid-front {
  position: absolute; bottom: -12px; left: 4px; right: 4px; height: 14px;
  background: linear-gradient(180deg, #e05585, #cc4070);
  border-radius: 0 0 4px 4px;
  transform: rotateX(-90deg);
  transform-origin: top;
}

/* Base box */
.gift-base {
  position: absolute; top: 55px; left: 0; right: 0; bottom: 20px;
  transform-style: preserve-3d;
}
.gift-base-front {
  position: absolute; inset: 0;
  background: linear-gradient(145deg, #c44dff, #a033d4);
  border-radius: 4px 4px 14px 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
  overflow: hidden;
}
.gift-base-right {
  position: absolute; top: 0; right: -14px; width: 16px; bottom: 0;
  background: linear-gradient(180deg, #9a2bc0, #7b22a0);
  border-radius: 0 6px 10px 0;
  transform: rotateY(90deg);
  transform-origin: left;
}
.gift-base-shadow {
  position: absolute; bottom: -18px; left: 10%; right: 10%; height: 20px;
  background: radial-gradient(ellipse, rgba(100, 40, 120, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(4px);
}

/* Ribbons */
.gift-ribbon-v {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 22px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #ffd700, #ffed4a, #ffd700);
  opacity: 0.85;
}
.gift-ribbon-h {
  position: absolute; left: 0; right: 0; top: 50%; height: 22px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, #ffd700, #ffed4a, #ffd700);
  opacity: 0.85;
}

/* Bow */
.gift-bow {
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  font-size: 3rem; z-index: 4;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
  animation: bow-bounce 2.5s ease-in-out infinite;
  transition: opacity 0.4s, transform 0.4s;
}
.gift-box.lid-open .gift-bow { opacity: 0; transform: translateX(-50%) translateY(-30px) scale(0.5); }
@keyframes bow-bounce {
  0%, 100% { transform: translateX(-50%) scale(1) rotate(0deg); }
  25% { transform: translateX(-50%) scale(1.12) rotate(-6deg); }
  75% { transform: translateX(-50%) scale(1.06) rotate(4deg); }
}

/* Tap label */
.gift-layer-label {
  text-align: center; margin-top: 16px;
  position: relative; z-index: 2;
}
.gift-tap-text {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem; color: var(--text-muted);
  letter-spacing: 1.5px; text-transform: uppercase; font-weight: 400;
  animation: tap-pulse 2s ease-in-out infinite;
}
@keyframes tap-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Step 2: box shake before opening */
.gift-box.shaking .gift-3d {
  animation: gift-shake 0.5s ease-in-out;
}
@keyframes gift-shake {
  0%, 100% { transform: rotateX(8deg) rotateY(-12deg); }
  15% { transform: rotateX(8deg) rotateY(-12deg) translateX(-6px) rotate(-2deg); }
  30% { transform: rotateX(8deg) rotateY(-12deg) translateX(6px) rotate(2deg); }
  45% { transform: rotateX(8deg) rotateY(-12deg) translateX(-4px) rotate(-1deg); }
  60% { transform: rotateX(8deg) rotateY(-12deg) translateX(4px) rotate(1deg); }
  75% { transform: rotateX(8deg) rotateY(-12deg) translateX(-2px); }
}

/* Step 3: hide box after reveal */
.gift-box.gift-hidden {
  animation: gift-shrink 0.5s var(--ease-out) forwards;
  pointer-events: none;
  position: absolute;
}
@keyframes gift-shrink {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.3) translateY(40px); height: 0; }
}

/* === Final reveal === */
.gift-reveal {
  display: none; text-align: center;
  animation: reveal-pop 0.8s var(--ease-spring) forwards;
  padding-bottom: 80px;
}
.gift-reveal.active { display: block; }
@keyframes reveal-pop {
  0% { opacity: 0; transform: scale(0.3) translateY(40px); }
  50% { transform: scale(1.04) translateY(-5px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.gift-reveal-emoji {
  font-size: 4.5rem; display: block; margin-bottom: 20px;
  animation: reveal-emoji-float 3s ease-in-out infinite;
}
@keyframes reveal-emoji-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.08); }
}
.gift-reveal-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 700; margin-bottom: 18px;
  line-height: 1.3;
  background: linear-gradient(135deg, #ff6b9d, #c44dff, #667eea);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gift-reveal-msg {
  font-size: 0.92rem; color: var(--text-secondary);
  line-height: 1.9; max-width: 420px; margin: 0 auto 18px;
}
.gift-reveal-sign {
  font-family: 'Dancing Script', cursive;
  font-size: 1.2rem;
  background: linear-gradient(90deg, #ff6b9d, #c44dff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px; display: block;
}

/* Rewrap button */
.gift-rewrap-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; margin-top: 8px;
  border: 1.5px solid rgba(196, 77, 255, 0.25);
  border-radius: var(--radius-full);
  background: transparent; color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem; font-weight: 500; cursor: pointer;
  transition: all 0.3s var(--ease-out);
}
.gift-rewrap-btn:hover {
  background: rgba(196, 77, 255, 0.06);
  border-color: rgba(196, 77, 255, 0.4);
  transform: translateY(-2px);
}

/* ========================================
   LOVE QUIZ GAME
   ======================================== */
#page-game {
  background: linear-gradient(160deg, #0f0c29 0%, #1a1a2e 40%, #16213e 70%, #0f0c29 100%);
}
#page-game .section-tag { color: rgba(255,255,255,0.5); }
#page-game .section-title { color: #fff; }
#page-game .section-subtitle { color: rgba(255,255,255,0.45); }
#page-game .section-divider { background: linear-gradient(90deg, transparent, rgba(255,107,157,0.4), transparent); }

.blob-game-1 {
  width: 45vmax; height: 45vmax;
  background: linear-gradient(135deg, #f093fb, #f5576c);
  top: -15%; right: -20%;
  animation: morph-2 14s ease-in-out infinite;
  opacity: 0.18; filter: blur(60px);
}
.blob-game-2 {
  width: 35vmax; height: 35vmax;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  bottom: -10%; left: -10%;
  animation: morph-3 16s ease-in-out infinite reverse;
  opacity: 0.15; filter: blur(60px);
}

.quiz-container {
  max-width: 460px; width: 100%; margin: 0 auto;
}

/* Progress bar */
.quiz-progress {
  width: 100%; height: 5px; border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 10px; overflow: hidden;
}
.quiz-progress-bar {
  height: 100%; width: 0%; border-radius: 5px;
  background: linear-gradient(90deg, #ff6b9d, #c44dff, #667eea);
  transition: width 0.5s var(--ease-out);
}
.quiz-step {
  font-size: 0.7rem; color: rgba(255,255,255,0.3);
  letter-spacing: 2px; text-transform: uppercase;
  text-align: center; margin-bottom: 20px;
}

/* Question card */
.quiz-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px; padding: 32px 28px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  animation: quiz-card-in 0.4s var(--ease-out) forwards;
}
@keyframes quiz-card-in {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
.quiz-question {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 600;
  color: #fff; text-align: center;
  margin-bottom: 24px; line-height: 1.5;
}

/* Options */
.quiz-options {
  display: flex; flex-direction: column; gap: 10px;
}
.quiz-option {
  padding: 14px 20px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem; font-weight: 400;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  text-align: left;
}
.quiz-option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(196, 77, 255, 0.3);
  transform: translateX(4px);
}
.quiz-option:active { transform: translateX(2px) scale(0.98); }

.quiz-option.correct {
  background: rgba(72, 199, 142, 0.15);
  border-color: rgba(72, 199, 142, 0.5);
  color: #48c78e;
}
.quiz-option.wrong {
  background: rgba(255, 99, 99, 0.12);
  border-color: rgba(255, 99, 99, 0.4);
  color: #ff6b6b;
}
.quiz-option.disabled {
  pointer-events: none; opacity: 0.5;
}

/* Result */
.quiz-result {
  display: none; text-align: center;
  animation: reveal-pop 0.7s var(--ease-spring) forwards;
}
.quiz-result.active { display: block; }
.quiz-result-emoji {
  font-size: 4rem; display: block; margin-bottom: 16px;
}
.quiz-result-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 700; color: #fff; margin-bottom: 10px;
}
.quiz-result-score {
  font-size: 1rem; margin-bottom: 12px;
  background: linear-gradient(90deg, #ff9dc2, #e08fff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; font-weight: 600;
}
.quiz-result-msg {
  font-size: 0.88rem; color: rgba(255,255,255,0.45);
  line-height: 1.7; margin-bottom: 24px;
  max-width: 360px; margin-left: auto; margin-right: auto;
}
.quiz-replay-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  background: transparent; color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem; font-weight: 500; cursor: pointer;
  transition: all 0.3s var(--ease-out);
}
.quiz-replay-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(196, 77, 255, 0.35);
  transform: translateY(-2px);
}

/* ========================================
   JIGSAW PUZZLE
   ======================================== */
#page-puzzle {
  background: linear-gradient(170deg, #fdf2f8 0%, #fce7f3 30%, #f3e8ff 60%, #ede9fe 100%);
}
.blob-puzzle-1 {
  width: 45vmax; height: 45vmax;
  background: linear-gradient(135deg, #fce4ec, #f8bbd0);
  top: -15%; left: -15%;
  animation: morph-1 14s ease-in-out infinite;
  opacity: 0.35; filter: blur(80px);
}
.blob-puzzle-2 {
  width: 35vmax; height: 35vmax;
  background: linear-gradient(135deg, #e1bee7, #ce93d8);
  bottom: -10%; right: -10%;
  animation: morph-3 16s ease-in-out infinite reverse;
  opacity: 0.25; filter: blur(80px);
}

.puzzle-wrap {
  display: flex; flex-direction: column; align-items: center;
  gap: 20px; position: relative; width: 100%;
  max-width: 500px; margin: 0 auto;
}

/* Reference + Board side by side */
.puzzle-ref {
  position: relative; width: 140px; height: 140px;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 8px 32px rgba(140, 80, 120, 0.12);
  flex-shrink: 0;
}
.puzzle-ref img {
  width: 100%; height: 100%; object-fit: cover;
}
.puzzle-ref-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: rgba(255,255,255,0.8);
  font-size: 0.6rem; text-align: center;
  padding: 8px 0 4px; letter-spacing: 1.5px; text-transform: uppercase;
}

/* Puzzle board */
.puzzle-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  width: min(280px, 75vw);
  height: min(280px, 75vw);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(196, 77, 255, 0.1);
  border-radius: 18px; padding: 5px;
  box-shadow: 0 8px 40px rgba(140, 80, 120, 0.08);
}

.puzzle-slot {
  border-radius: 10px;
  background: rgba(232, 200, 240, 0.15);
  border: 1.5px dashed rgba(196, 77, 255, 0.15);
  position: relative;
  transition: all 0.2s var(--ease-out);
}
.puzzle-slot.drag-over {
  background: rgba(196, 77, 255, 0.12);
  border-color: rgba(196, 77, 255, 0.5);
  transform: scale(1.03);
}
.puzzle-slot.filled {
  border: none; background: transparent;
  transform: none;
}

/* Puzzle pieces */
.puzzle-piece {
  width: 100%; height: 100%;
  border-radius: 10px; overflow: hidden;
  cursor: grab; touch-action: none;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
  position: relative;
  user-select: none; -webkit-user-select: none;
  box-shadow: 0 3px 12px rgba(140, 80, 120, 0.1);
}
.puzzle-piece:active { cursor: grabbing; }
.puzzle-piece img {
  position: absolute;
  pointer-events: none;
}
.puzzle-piece:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 24px rgba(196, 77, 255, 0.18);
}
.puzzle-piece.dragging {
  opacity: 0.75; transform: scale(1.12);
  box-shadow: 0 12px 36px rgba(196, 77, 255, 0.25);
  z-index: 100;
}
.puzzle-piece.placed {
  cursor: default; pointer-events: none;
  box-shadow: none;
  animation: piece-snap 0.35s var(--ease-spring);
}
@keyframes piece-snap {
  0% { transform: scale(1.12); }
  50% { transform: scale(0.94); }
  100% { transform: scale(1); }
}

/* Tray */
.puzzle-tray {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px; max-width: min(300px, 82vw);
  min-height: 60px; padding: 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(196, 77, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(140, 80, 120, 0.06);
}
.puzzle-tray .puzzle-piece {
  width: calc(min(280px, 75vw) / 3 - 8px);
  height: calc(min(280px, 75vw) / 3 - 8px);
  flex-shrink: 0;
}
.puzzle-tray:empty {
  display: none;
}

/* Completion */
.puzzle-complete {
  display: none; position: absolute; inset: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 18px;
  flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 28px;
  animation: reveal-pop 0.7s var(--ease-spring) forwards;
  z-index: 10;
}
.puzzle-complete.active { display: flex; }
.puzzle-complete-emoji { font-size: 3rem; margin-bottom: 12px; }
.puzzle-complete-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700; margin-bottom: 8px;
  background: linear-gradient(135deg, #ff6b9d, #c44dff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.puzzle-complete-msg {
  font-size: 0.85rem; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 18px;
}
.puzzle-replay-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px;
  border: none; border-radius: var(--radius-full);
  background: linear-gradient(135deg, #ff6b9d, #c44dff);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem; font-weight: 500; cursor: pointer;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 4px 16px rgba(196, 77, 255, 0.25);
}
.puzzle-replay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 77, 255, 0.35);
}

/* ========================================
   COUNTDOWN
   ======================================== */
#page-countdown {
  background: linear-gradient(170deg, #fdf2f8 0%, #fce7f3 30%, #f3e8ff 60%, #ede9fe 100%);
}

.countdown-timer {
  display: flex; justify-content: center; align-items: stretch;
  gap: 14px; flex-wrap: wrap; margin: 32px 0 40px;
}
.countdown-unit {
  padding: 30px 22px 22px; min-width: 110px; text-align: center;
  position: relative; overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(232, 114, 154, 0.12);
  border-radius: 24px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(140, 80, 120, 0.06);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s;
}
.countdown-unit::after {
  content: ''; position: absolute; bottom: 0; left: 15%; right: 15%; height: 3px;
  background: linear-gradient(90deg, #ff6b9d, #c44dff, #667eea);
  border-radius: 3px; opacity: 0.5;
  transition: all 0.4s var(--ease-out);
}
.countdown-unit:hover::after {
  left: 8%; right: 8%; opacity: 0.8;
}
.countdown-unit:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(196, 77, 255, 0.12);
  border-color: rgba(196, 77, 255, 0.18);
}

.countdown-ring { display: none; }

.countdown-number {
  display: block; font-family: 'Poppins', sans-serif;
  font-size: clamp(2.6rem, 7vw, 3.6rem); font-weight: 700;
  background: linear-gradient(135deg, #c44dff, #ff6b9d);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1; position: relative; z-index: 1;
  letter-spacing: -0.02em;
  /* Fixed height prevents layout shift on value change */
  min-height: 1.1em;
}
.countdown-label {
  display: block; font-size: 0.62rem; color: var(--text-muted); margin-top: 12px;
  text-transform: uppercase; letter-spacing: 3px; font-weight: 400; position: relative; z-index: 1;
}
.countdown-colon {
  font-family: 'Poppins', sans-serif; font-size: 2.2rem;
  color: rgba(196, 77, 255, 0.2); font-weight: 300;
  align-self: center; margin-top: -8px;
  animation: blink-colon 1.2s ease-in-out infinite;
}
@keyframes blink-colon { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.1; } }
.countdown-footer {
  text-align: center; font-style: italic; font-size: 0.92rem;
  color: var(--text-muted);
}

/* ========================================
   FUTURE
   ======================================== */
#page-future { background: linear-gradient(180deg, var(--cream) 0%, var(--warm-white) 50%, var(--cream) 100%); }

.future-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.future-card { padding: 32px 24px; text-align: center; position: relative; overflow: hidden; }
.future-card-glow {
  position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 114, 154, 0.1) 0%, transparent 70%);
  pointer-events: none; transition: var(--transition);
}
.future-card:hover .future-card-glow { width: 200px; height: 200px; }
.future-icon { font-size: 2.5rem; margin-bottom: 14px; transition: transform 0.5s var(--ease-spring); }
.future-card:hover .future-icon { transform: scale(1.15) translateY(-4px); }
.future-card h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; margin-bottom: 8px; font-weight: 600; }
.future-card p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.7; }

/* ========================================
   FINAL PAGE
   ======================================== */
#page-final { background: var(--warm-white); }
.final-content { text-align: center; }
.final-heart { font-size: 2.5rem; margin-bottom: 20px; animation: heart-beat 1.5s ease-in-out infinite; }
.final-title {
  font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--text-primary); font-weight: 700; margin-bottom: 12px; line-height: 1.3;
}
.final-subtitle { color: var(--text-muted); font-size: 1rem; font-style: italic; margin-bottom: 24px; }
.final-stars { display: flex; justify-content: center; gap: 16px; font-size: 1.1rem; opacity: 0.6; margin-bottom: 32px; }

/* ========================================
   CONFETTI CANVAS
   ======================================== */
#confetti-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 9999;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .letters-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .countdown-unit { min-width: 85px; padding: 24px 16px; }
  .future-grid { gap: 14px; }
  .future-card { padding: 24px 18px; }
  .timeline-item { padding-left: 50px; }
  .timeline-card { padding: 20px; }
  .gift-box { width: 170px; height: 190px; }
  .page-scrollable { padding: 70px 0 90px; }
}

@media (max-width: 480px) {
  .letters-grid { grid-template-columns: 1fr; }
  .future-grid { grid-template-columns: 1fr; }
  .countdown-timer { gap: 6px; }
  .countdown-unit { min-width: 70px; padding: 20px 12px; border-radius: 18px; }
  .countdown-colon { font-size: 1.6rem; }
  .hero-badge { font-size: 0.62rem; padding: 5px 14px; }
  .blob { opacity: 0.15; }
}
