/* ==========================================================================
   HAPPY BIRTHDAY MY PRINCESS - ULTRA SOFT, ORGANIC & ANIMATED PINK THEME
   ========================================================================== */

:root {
  /* Ultra-soft Pastel Pink & Cream White Palette */
  --bg-pink-light: #fff5f8;
  --bg-pink-subtle: #fdf2f4;
  --bg-gradient-animated: linear-gradient(120deg, #fff0f5, #ffe4ec, #ffd6e0, #fff0f6, #ffeef2);
  
  --primary-pink: #ff6584;
  --primary-pink-dark: #ff3366;
  --primary-pink-pastel: #ff8fa3;
  --primary-pink-soft: #ffb3c6;
  --accent-gold: #ffb703;
  --accent-peach: #ffb4a2;
  --accent-lilac: #e2afff;
  --pure-white: #ffffff;

  /* Text & Surfaces */
  --text-main: #4a2835;
  --text-soft: #704353;
  --text-muted: #9e7483;

  /* Glassmorphism Pink/White with Soft Shadows */
  --glass-card-bg: rgba(255, 255, 255, 0.82);
  --glass-card-border: rgba(255, 255, 255, 0.95);
  --glass-shadow: 0 16px 40px rgba(255, 101, 132, 0.12), 0 4px 18px rgba(0, 0, 0, 0.03);
  --glass-shadow-hover: 0 22px 50px rgba(255, 101, 132, 0.22);
  
  --glow-pink: 0 0 30px rgba(255, 101, 132, 0.45);
  --glow-heart: 0 0 25px rgba(255, 71, 126, 0.6);

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-display: 'Cinzel Decorative', cursive;
  --font-script: 'Dancing Script', cursive;
  --font-body: 'Montserrat', sans-serif;

  /* Smooth Transitions */
  --transition-smooth: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-spring: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body.universe-body {
  background: var(--bg-gradient-animated);
  background-size: 300% 300%;
  animation: dynamicBackground 18s ease infinite;
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  line-height: 1.7;
  user-select: none;
}

@keyframes dynamicBackground {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Background Canvas for Floating Petals, Sparkles, Interactive Cursor */
#galaxyCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* Fireworks Canvas */
#fireworksCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  pointer-events: none;
}

/* Ambient Floating Decorative Cloud / Blobs in Background */
.ambient-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -2;
  opacity: 0.5;
  pointer-events: none;
  animation: blobFloat 12s ease-in-out infinite alternate;
}

.blob-1 {
  top: 10%;
  left: 5%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #ffccd5, transparent 70%);
}

.blob-2 {
  bottom: 15%;
  right: 8%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #ffb3c6, transparent 70%);
  animation-duration: 15s;
}

.blob-3 {
  top: 50%;
  right: 25%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, #ffe5ec, transparent 70%);
  animation-duration: 10s;
}

@keyframes blobFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 40px) scale(1.1); }
  100% { transform: translate(-20px, -30px) scale(0.95); }
}

/* Floating Hearts Container */
.heart-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 15;
  pointer-events: none;
  overflow: hidden;
}

.floating-heart {
  position: absolute;
  font-size: 1.2rem;
  color: var(--primary-pink);
  opacity: 0.9;
  animation: floatUpLove 5s ease-in-out forwards;
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(255, 101, 132, 0.45));
}

@keyframes floatUpLove {
  0% {
    transform: translateY(0) scale(0.4) rotate(0deg);
    opacity: 0;
  }
  20% {
    opacity: 0.95;
    transform: translateY(-20vh) scale(1) rotate(15deg);
  }
  60% {
    transform: translateY(-60vh) scale(1.15) rotate(-15deg);
  }
  100% {
    transform: translateY(-115vh) scale(1.3) rotate(30deg);
    opacity: 0;
  }
}

/* Mouse Sparkle Trail Effect */
.sparkle-trail {
  position: fixed;
  pointer-events: none;
  z-index: 999;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 10%, #ff8fa3 60%, transparent 100%);
  box-shadow: 0 0 10px #ff6584, 0 0 20px #ffb3c6;
  animation: sparkleDisappear 0.8s ease-out forwards;
}

@keyframes sparkleDisappear {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: scale(0.1) translate(var(--dx, 0px), var(--dy, -20px)) rotate(90deg);
    opacity: 0;
  }
}

/* ==========================================================================
   MUSIC CONTROLLER BUTTON
   ========================================================================== */
.music-toggle-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1100;
}

.music-btn {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid var(--glass-card-border);
  color: var(--primary-pink-dark);
  padding: 10px 22px;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 25px rgba(255, 101, 132, 0.2);
  transition: var(--transition-spring);
  animation: floatSubtle 4s ease-in-out infinite alternate;
}

.music-btn:hover {
  transform: translateY(-3px) scale(1.08);
  background: #ffffff;
  box-shadow: var(--glow-pink);
}

.music-disc {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff758c, #ff477e);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(255, 71, 126, 0.4);
}

.music-btn.playing .music-disc {
  animation: spinDisc 3s linear infinite, heartThrob 1.2s ease-in-out infinite;
}

@keyframes spinDisc {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes heartThrob {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.music-status-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.4px;
}

/* ==========================================================================
   ORGANIC GLASSMORPHISM & GENERAL STYLES
   ========================================================================== */
.glass-panel {
  background: var(--glass-card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--glass-card-border);
  border-radius: 32px;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

/* Shimmer overlay animation on glass cards */
.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg);
  transition: 0.75s;
  pointer-events: none;
}

.glass-panel:hover::before {
  left: 150%;
}

.glass-panel:hover {
  transform: translateY(-8px);
  box-shadow: var(--glass-shadow-hover);
}

.glass-panel-heavy {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 2.5px solid #ffccd5;
  border-radius: 36px;
  box-shadow: 0 20px 60px rgba(255, 101, 132, 0.25);
}

.section {
  padding: 85px 24px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
  animation: fadeInSoft 1s ease-out;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--primary-pink-dark);
  background: linear-gradient(135deg, rgba(255, 101, 132, 0.15), rgba(255, 180, 162, 0.2));
  padding: 8px 22px;
  border-radius: 50px;
  text-transform: uppercase;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 101, 132, 0.2);
  box-shadow: 0 4px 15px rgba(255, 101, 132, 0.1);
  animation: floatSubtle 4s ease-in-out infinite alternate;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #4a2835 20%, #ff477e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  color: var(--text-soft);
  font-size: 1.08rem;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Primary Animated Buttons */
.btn-glow-primary {
  background: linear-gradient(135deg, #ff758c 0%, #ff477e 50%, #ff8fa3 100%);
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite, cutePulse 2.5s infinite ease-in-out;
  color: #fff;
  border: none;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(255, 71, 126, 0.38);
  transition: var(--transition-spring);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.btn-glow-primary:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 16px 40px rgba(255, 71, 126, 0.55);
}

.btn-glass-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-pink-dark);
  border: 2px solid rgba(255, 101, 132, 0.3);
  padding: 13px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 18px rgba(255, 101, 132, 0.12);
  transition: var(--transition-spring);
}

.btn-glass-secondary:hover {
  background: #ffffff;
  border-color: var(--primary-pink);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 25px rgba(255, 101, 132, 0.25);
}

.pulse-action {
  animation: cutePulse 2.5s infinite ease-in-out;
}

@keyframes cutePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(255, 71, 126, 0.38);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 16px 45px rgba(255, 71, 126, 0.6);
  }
}

@keyframes floatSubtle {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.hidden-state {
  display: none !important;
}

/* ==========================================================================
   SCREEN 1: CINEMATIC OPENING OVERLAY (SOFT & BLUSHING)
   ========================================================================== */
.opening-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, rgba(255, 240, 245, 0.97) 0%, rgba(255, 218, 230, 0.99) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  text-align: center;
  padding: 24px;
  transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.1s;
}

.opening-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.opening-content {
  max-width: 700px;
  background: rgba(255, 255, 255, 0.88);
  padding: 50px 40px;
  border-radius: 40px;
  border: 2px solid rgba(255, 255, 255, 0.98);
  box-shadow: 0 25px 70px rgba(255, 101, 132, 0.22);
  animation: popInSoft 1.1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popInSoft {
  0% { opacity: 0; transform: scale(0.9) translateY(30px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.stardust-ring {
  width: 95px;
  height: 95px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #fff0f5);
  border: 2.5px dashed var(--primary-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--primary-pink);
  box-shadow: 0 10px 30px rgba(255, 101, 132, 0.3);
  animation: floatRotate 6s ease-in-out infinite alternate;
}

@keyframes floatRotate {
  0% { transform: translateY(0) rotate(-8deg); }
  100% { transform: translateY(-12px) rotate(12deg); }
}

.subtitle-fade {
  font-size: 0.9rem;
  letter-spacing: 3.5px;
  color: var(--primary-pink-dark);
  margin-bottom: 14px;
  font-weight: 700;
}

.glow-title {
  font-family: var(--font-heading);
  font-size: 2.9rem;
  margin-bottom: 20px;
  color: var(--text-main);
  line-height: 1.25;
}

.opening-description {
  font-size: 1.1rem;
  color: var(--text-soft);
  margin-bottom: 35px;
  line-height: 1.85;
}

.sound-notice {
  margin-top: 25px;
  font-size: 0.92rem;
  color: var(--text-muted);
  animation: pulseSubtle 2s infinite ease-in-out;
}

@keyframes pulseSubtle {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* ==========================================================================
   HERO SECTION & 3D INTERACTIVE CAKE
   ========================================================================== */
.hero-section {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 50px;
}

.hero-badge {
  background: #ffffff;
  border: 2px solid #ffccd5;
  color: var(--primary-pink-dark);
  padding: 10px 26px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(255, 101, 132, 0.16);
  animation: floatSubtle 3.5s ease-in-out infinite alternate;
}

.main-birthday-title {
  font-family: var(--font-display);
  font-size: 3.2rem;
  letter-spacing: 2px;
  line-height: 1.35;
  margin-bottom: 16px;
  color: var(--text-main);
}

.highlight-lover-name {
  font-family: var(--font-script);
  font-size: 4.6rem;
  font-weight: 700;
  display: inline-block;
  background: linear-gradient(135deg, #ff3366, #ff758c, #ffb4a2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 12px rgba(255, 101, 132, 0.35));
  animation: heartThrob 3s ease-in-out infinite;
}

.hero-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--text-soft);
  min-height: 52px;
  margin-bottom: 40px;
  max-width: 740px;
}

/* 3D Birthday Cake Structure in Soft Wave Style */
.birthday-cake-card {
  padding: 40px 55px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 36px;
  animation: floatSubtle 4s ease-in-out infinite alternate;
}

.cake-container {
  width: 200px;
  height: 170px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.cake-tier {
  border-radius: 18px 18px 10px 10px;
  box-shadow: inset 0 4px 8px rgba(255, 255, 255, 0.8), 0 6px 16px rgba(255, 101, 132, 0.25);
  position: relative;
}

.cake-bottom {
  width: 180px;
  height: 54px;
  background: linear-gradient(180deg, #ffa3be 0%, #ff6584 100%);
}

.cake-bottom::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 14px;
  background: repeating-linear-gradient(90deg, #ffffff, #ffffff 14px, transparent 14px, transparent 28px);
  border-radius: 18px 18px 0 0;
}

.cake-middle {
  width: 140px;
  height: 48px;
  background: linear-gradient(180deg, #ffffff 0%, #ffe4ec 100%);
  margin-bottom: -2px;
  border: 1.5px solid #ffd1dc;
}

.cake-middle::after {
  content: '🍓';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.1rem;
}

.cake-top {
  width: 100px;
  height: 42px;
  background: linear-gradient(180deg, #ffb3c6 0%, #ff8fa3 100%);
  margin-bottom: -2px;
  display: flex;
  justify-content: center;
}

/* Candle & Flame */
.candle {
  position: absolute;
  top: -36px;
  width: 12px;
  height: 36px;
  background: repeating-linear-gradient(45deg, #ffffff, #ffffff 5px, #ff3366 5px, #ff3366 10px);
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.candle:hover {
  transform: scale(1.1);
}

.wick {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 2.5px;
  height: 7px;
  background: #444;
}

.flame {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 26px;
  background: radial-gradient(ellipse at bottom, #ffffff 0%, #ffea00 40%, #ff5722 85%);
  border-radius: 50% 50% 35% 35%;
  box-shadow: 0 0 20px #ffd700, 0 0 32px #ff6584;
  animation: flicker 0.6s infinite alternate ease-in-out;
  transform-origin: center bottom;
  cursor: pointer;
}

.flame.blown-out {
  display: none;
}

@keyframes flicker {
  0% {
    transform: translateX(-50%) rotate(-4deg) scaleY(0.92);
    opacity: 0.9;
  }
  100% {
    transform: translateX(-50%) rotate(4deg) scaleY(1.12);
    opacity: 1;
    box-shadow: 0 0 25px #ffd700, 0 0 40px #ff6584;
  }
}

.cake-tip {
  font-size: 1rem;
  color: var(--text-soft);
  margin-bottom: 15px;
  font-weight: 600;
}

.scroll-down-indicator {
  color: var(--primary-pink-dark);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: var(--transition-spring);
  margin-top: 20px;
}

.scroll-down-indicator:hover {
  transform: translateY(6px);
  color: var(--primary-pink);
}

.bouncing {
  animation: bounceDown 2s infinite ease-in-out;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ==========================================================================
   COUNTERS SECTION (DAYS IN LOVE & COUNTDOWN)
   ========================================================================== */
.counters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.counter-card {
  padding: 45px 35px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  transition: var(--transition-smooth);
}

.counter-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--glass-shadow-hover);
}

.card-icon {
  font-size: 2.6rem;
  color: var(--primary-pink);
  margin-bottom: 18px;
  animation: heartThrob 2s ease-in-out infinite;
}

.counter-card h3 {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  margin-bottom: 20px;
  color: var(--text-main);
}

.counter-number {
  font-size: 4.8rem;
  font-weight: 800;
  font-family: var(--font-body);
  background: linear-gradient(135deg, #ff3366, #ff758c, #ffb4a2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 10px rgba(255, 101, 132, 0.2));
}

.counter-unit {
  font-size: 1rem;
  color: var(--text-soft);
  display: block;
  margin-bottom: 18px;
  font-weight: 500;
}

.counter-detail {
  font-size: 0.95rem;
  background: #ffffff;
  border: 1.5px solid #ffd1dc;
  padding: 10px 22px;
  border-radius: 30px;
  display: inline-block;
  color: var(--primary-pink-dark);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 101, 132, 0.12);
}

/* Timer Display */
.timer-display {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.time-block {
  background: #ffffff;
  border: 2px solid #ffccd5;
  padding: 14px 16px;
  border-radius: 20px;
  min-width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 6px 16px rgba(255, 101, 132, 0.12);
  transition: transform 0.3s ease;
}

.time-block:hover {
  transform: translateY(-4px);
}

.time-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-pink-dark);
}

.time-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 4px;
}

.timer-subtext {
  font-size: 0.95rem;
  color: var(--text-soft);
  font-style: italic;
}

/* ==========================================================================
   MEMORY ALBUM GRID & CARD ANIMATIONS
   ========================================================================== */
.memory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
  justify-content: center;
}

.memory-card {
  border-radius: 28px;
  overflow: hidden;
  background: #ffffff;
  border: 2px solid #ffe4ec;
  box-shadow: 0 10px 30px rgba(255, 101, 132, 0.14);
  transition: var(--transition-smooth);
}

.memory-card:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: var(--primary-pink-soft);
  box-shadow: var(--glass-shadow-hover);
}

.memory-image-container {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
}

.memory-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.memory-card:hover .memory-img {
  transform: scale(1.12);
}

.memory-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-pink-dark);
  border: 1.5px solid #ffd1dc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.memory-body {
  padding: 26px;
}

.memory-moment-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.memory-moment-date {
  font-size: 0.86rem;
  color: var(--primary-pink-dark);
  margin-bottom: 12px;
  font-weight: 700;
}

.memory-moment-desc {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ==========================================================================
   PROGRESSIVE LOVE LETTER SECTION
   ========================================================================== */
.letter-wrapper {
  padding: 50px 45px;
  position: relative;
  border-radius: 36px;
}

.letter-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 38px;
  flex-wrap: wrap;
}

.letter-nav-btn {
  background: #ffffff;
  border: 2px solid #ffd1dc;
  color: var(--text-soft);
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 101, 132, 0.1);
  transition: var(--transition-spring);
}

.letter-nav-btn:hover,
.letter-nav-btn.active {
  background: linear-gradient(135deg, #ff758c, #ff477e);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 71, 126, 0.4);
}

.letter-content-box {
  background: #ffffff;
  border-radius: 28px;
  padding: 45px;
  border: 2px solid #ffe4ec;
  position: relative;
  min-height: 300px;
  box-shadow: inset 0 2px 10px rgba(255, 101, 132, 0.05);
}

.wax-seal {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #ff758c, #ff3366);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 28px;
  box-shadow: 0 8px 22px rgba(255, 71, 126, 0.4);
  animation: heartThrob 2.5s ease-in-out infinite;
}

.letter-chapter-pane {
  display: none;
  animation: fadeInLetter 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.letter-chapter-pane.active {
  display: block;
}

@keyframes fadeInLetter {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

.letter-salutation {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin-bottom: 20px;
  color: var(--primary-pink-dark);
}

.letter-paragraph {
  font-size: 1.1rem;
  line-height: 1.95;
  color: var(--text-main);
  margin-bottom: 22px;
}

.btn-next-chapter {
  background: #fff0f5;
  color: var(--primary-pink-dark);
  border: 2px solid #ffccd5;
  padding: 10px 26px;
  border-radius: 30px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 12px;
  transition: var(--transition-spring);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-next-chapter:hover {
  background: var(--primary-pink);
  color: #fff;
  border-color: var(--primary-pink);
  transform: translateX(4px);
  box-shadow: 0 6px 18px rgba(255, 101, 132, 0.35);
}

.letter-signature {
  margin-top: 35px;
  text-align: right;
  border-top: 2px dashed #ffd1dc;
  padding-top: 24px;
}

.letter-signature span {
  font-size: 1rem;
  color: var(--text-soft);
}

.signature-name {
  font-family: var(--font-script);
  font-size: 2.6rem;
  color: var(--primary-pink-dark);
  margin-top: 6px;
}

/* ==========================================================================
   MINI GAME: SECRET LOVE PASSCODE
   ========================================================================== */
.passcode-section {
  text-align: center;
}

.passcode-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 50px 40px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 36px;
}

.lock-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: #fff;
  border: 2.5px solid #ffccd5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--primary-pink);
  box-shadow: 0 10px 28px rgba(255, 101, 132, 0.25);
  transition: var(--transition-spring);
}

.lock-icon-wrapper.unlocked {
  border-color: #2ec4b6;
  color: #2ec4b6;
  box-shadow: 0 10px 30px rgba(46, 196, 182, 0.35);
  transform: rotate(360deg) scale(1.1);
}

.passcode-hint {
  font-size: 1.02rem;
  color: var(--text-soft);
  margin-bottom: 28px;
  line-height: 1.7;
}

.passcode-hint code {
  background: #fff0f5;
  border: 1.5px solid #ffd1dc;
  padding: 4px 12px;
  border-radius: 10px;
  color: var(--primary-pink-dark);
  font-weight: 700;
}

.passcode-form .input-wrapper {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 14px;
}

#passcodeInput {
  flex: 1;
  background: #ffffff;
  border: 2px solid #ffccd5;
  padding: 15px 24px;
  border-radius: 50px;
  color: var(--text-main);
  font-size: 1.1rem;
  outline: none;
  transition: var(--transition-smooth);
  text-align: center;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.04);
}

#passcodeInput:focus {
  border-color: var(--primary-pink);
  box-shadow: 0 0 20px rgba(255, 101, 132, 0.35);
  transform: scale(1.02);
}

.btn-unlock {
  background: linear-gradient(135deg, #ff758c, #ff477e);
  color: #fff;
  border: none;
  padding: 15px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(255, 71, 126, 0.35);
  transition: var(--transition-spring);
  white-space: nowrap;
}

.btn-unlock:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 12px 32px rgba(255, 71, 126, 0.5);
}

.passcode-feedback {
  margin-top: 18px;
  font-size: 1rem;
  min-height: 26px;
}

.passcode-feedback.error {
  color: #ff3366;
  font-weight: 700;
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.passcode-feedback.success {
  color: #0f9d58;
  font-weight: 800;
}

.quick-hint-buttons {
  margin-top: 28px;
  border-top: 2px dashed #ffd1dc;
  padding-top: 22px;
}

.btn-hint-tag {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.btn-hint-tag:hover {
  color: var(--primary-pink-dark);
}

.hidden-hint {
  display: none;
  margin-top: 12px;
  font-size: 0.96rem;
  color: var(--primary-pink-dark);
  font-weight: 700;
}

.hidden-hint.show {
  display: block;
}

/* ==========================================================================
   CELEBRATION SECTION (FINAL SCREEN)
   ========================================================================== */
.celebration-section {
  text-align: center;
  padding: 70px 20px;
}

.celebration-content {
  max-width: 840px;
  margin: 0 auto;
  padding: 60px 40px;
  border-radius: 40px;
}

.celebration-badge-burst {
  width: 105px;
  height: 105px;
  margin: 0 auto 28px;
  background: linear-gradient(135deg, #ff758c, #ff3366);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: #fff;
  box-shadow: 0 12px 40px rgba(255, 71, 126, 0.45);
  animation: pulseScale 2.2s infinite ease-in-out;
}

@keyframes pulseScale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.celebration-headline {
  font-family: var(--font-display);
  font-size: 2.7rem;
  margin-bottom: 18px;
  color: var(--text-main);
  letter-spacing: 1px;
}

.celebration-subline {
  font-size: 1.2rem;
  color: var(--text-soft);
  margin-bottom: 38px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* Interactive Wish Box */
.wish-generator-box {
  background: #ffffff;
  border: 2.5px solid #ffccd5;
  border-radius: 28px;
  padding: 40px;
  margin-bottom: 38px;
  box-shadow: 0 10px 35px rgba(255, 101, 132, 0.15);
}

.wish-box-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: var(--primary-pink-dark);
  margin-bottom: 18px;
}

.wish-message-display {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--text-main);
  line-height: 1.8;
  min-height: 75px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.celebration-actions {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.btn-fireworks {
  background: linear-gradient(135deg, #ff3366 0%, #ff758c 100%);
  color: #fff;
  border: none;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(255, 71, 126, 0.45);
  transition: var(--transition-spring);
}

.btn-fireworks:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 16px 45px rgba(255, 71, 126, 0.65);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.universe-footer {
  text-align: center;
  padding: 45px 20px 65px;
  border-top: 2px solid #ffe4ec;
  font-size: 1rem;
  color: var(--text-soft);
}

.footer-lover-name {
  color: var(--primary-pink-dark);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 768px) {
  .glow-title {
    font-size: 2.3rem;
  }
  
  .main-birthday-title {
    font-size: 2.3rem;
  }
  
  .highlight-lover-name {
    font-size: 3.4rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .letter-wrapper {
    padding: 28px 18px;
  }
  
  .letter-content-box {
    padding: 28px 18px;
  }

  .passcode-form .input-wrapper {
    flex-direction: column;
  }

  .btn-unlock {
    justify-content: center;
  }

  .counters-grid {
    grid-template-columns: 1fr;
  }

  .timer-display {
    gap: 10px;
  }

  .time-block {
    min-width: 56px;
    padding: 10px 12px;
  }

  .time-num {
    font-size: 1.55rem;
  }
}
