/* ========================================================
   GLOBAL DESIGN TOKENS & RESET
   ======================================================== */
:root {
  --bg-primary: #0e0714;
  --bg-secondary: #1a0d24;
  --bg-card: rgba(30, 16, 42, 0.7);
  --bg-card-hover: rgba(45, 23, 62, 0.85);
  
  --rose-gold-light: #f7dcdb;
  --rose-gold: #e8a598;
  --rose-gold-dark: #c27d70;
  
  --gold-glow: #f9e29d;
  --gold-accent: #d4af37;
  --gold-deep: #b38728;
  
  --heart-red: #ff3366;
  --heart-glow: rgba(255, 51, 102, 0.4);
  
  --text-main: #fbf6f6;
  --text-muted: #d0c1d6;
  --text-faint: #9885a3;

  --border-glass: rgba(232, 165, 152, 0.22);
  --border-gold: rgba(245, 215, 127, 0.35);

  --shadow-ambient: 0 10px 40px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(232, 165, 152, 0.3);
  --shadow-gold-glow: 0 0 30px rgba(245, 215, 127, 0.35);

  --font-heading: 'Playfair Display', serif;
  --font-serif: 'Cinzel', serif;
  --font-script: 'Dancing Script', cursive;
  --font-handwriting: 'Caveat', cursive;
  --font-sans: 'Montserrat', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition-smooth: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(100, 20, 70, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(55, 15, 80, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(30, 10, 40, 0.5) 0%, transparent 70%);
  background-attachment: fixed;
}

/* Background Canvas for interactive petals & sparkles */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

/* Helper Utilities */
.hidden {
  display: none !important;
}

.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-ambient);
}

.gold-gradient-text {
  background: linear-gradient(135deg, #fff3d1 0%, var(--gold-glow) 40%, var(--rose-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ========================================================
   STICKY AUDIO DOCK (Bottom Floating)
   ======================================================== */
.audio-dock {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(22, 10, 31, 0.85);
  backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-gold);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), var(--shadow-glow);
  transition: var(--transition-smooth);
}

.audio-dock:hover {
  transform: translateY(-2px);
  border-color: var(--gold-glow);
}

.music-btn {
  background: none;
  border: none;
  color: var(--rose-gold-light);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
}

.music-icon {
  font-size: 1.1rem;
  animation: pulse-note 2s infinite ease-in-out;
}

.sound-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.sound-bars .bar {
  width: 3px;
  height: 4px;
  background: var(--gold-glow);
  border-radius: 2px;
  transition: height 0.2s ease;
}

.sound-bars.active .bar:nth-child(1) { animation: soundBar 0.8s infinite ease-in-out alternate; }
.sound-bars.active .bar:nth-child(2) { animation: soundBar 1.1s infinite 0.2s ease-in-out alternate; }
.sound-bars.active .bar:nth-child(3) { animation: soundBar 0.9s infinite 0.4s ease-in-out alternate; }
.sound-bars.active .bar:nth-child(4) { animation: soundBar 1.2s infinite 0.1s ease-in-out alternate; }
.sound-bars.active .bar:nth-child(5) { animation: soundBar 0.7s infinite 0.3s ease-in-out alternate; }

@keyframes soundBar {
  0% { height: 3px; }
  100% { height: 16px; }
}



/* ========================================================
   STAGE 0: THE MYSTERY ENVELOPE SURPRISE GATE
   ======================================================== */
.surprise-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at center, #1b0c26 0%, #0a040e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 1s cubic-bezier(0.8, 0, 0.2, 1), transform 1s ease;
}

.surprise-gate.open {
  opacity: 0;
  transform: scale(1.1);
  pointer-events: none;
}

.gate-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 580px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.glowing-halo {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(232, 165, 152, 0.2) 0%, rgba(212, 175, 55, 0.05) 60%, transparent 80%);
  border-radius: 50%;
  filter: blur(40px);
  animation: haloPulse 4s infinite alternate ease-in-out;
  pointer-events: none;
}

@keyframes haloPulse {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* 3D Wax-Sealed Envelope */
.envelope-wrapper {
  position: relative;
  width: 290px;
  height: 190px;
  margin: 10px auto 30px;
  background: linear-gradient(135deg, #2f1738 0%, #1f0d26 100%);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 35px rgba(232, 165, 152, 0.25);
  border: 1px solid rgba(232, 165, 152, 0.4);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.envelope-wrapper:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 45px rgba(245, 215, 127, 0.45);
}

.envelope-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 145px solid transparent;
  border-right: 145px solid transparent;
  border-top: 105px solid #3c1e48;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
  transition: transform 0.6s ease;
  transform-origin: top;
  z-index: 3;
}

.envelope-body {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  overflow: hidden;
  z-index: 2;
}

.envelope-body::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  border-left: 145px solid #230f2c;
  border-top: 95px solid transparent;
}

.envelope-body::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  border-right: 145px solid #281132;
  border-top: 95px solid transparent;
}

.envelope-letter-peek {
  position: absolute;
  top: 25px;
  left: 20px;
  right: 20px;
  height: 120px;
  background: #fdfaf6;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
  transition: transform 0.6s ease;
  z-index: 1;
}

.peek-text {
  font-family: var(--font-script);
  font-size: 1.35rem;
  color: #632d43;
  font-weight: 700;
}

/* Wax Seal Button */
.seal-button {
  position: absolute;
  top: 75px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  cursor: pointer;
  outline: none;
}

.wax-seal {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: radial-gradient(circle at 30% 30%, #e63946 0%, #9e1b27 75%, #590d14 100%);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 20px rgba(230, 57, 70, 0.6);
  border: 2px dashed rgba(255, 215, 0, 0.6);
  animation: sealPulse 2s infinite ease-in-out;
}

@keyframes sealPulse {
  0% { transform: scale(1); box-shadow: 0 0 15px rgba(230, 57, 70, 0.4); }
  50% { transform: scale(1.08); box-shadow: 0 0 25px rgba(230, 57, 70, 0.8), 0 0 35px rgba(245, 215, 127, 0.4); }
  100% { transform: scale(1); box-shadow: 0 0 15px rgba(230, 57, 70, 0.4); }
}

.seal-heart {
  font-size: 1.4rem;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}

.gate-text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.sparkle-tag {
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-glow);
  font-weight: 600;
}

.gate-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.25;
}

.highlight-name {
  color: var(--rose-gold-light);
  text-shadow: 0 0 20px rgba(232, 165, 152, 0.6);
  display: inline-block;
}

.gate-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 440px;
}

.btn-royal-pulse {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #d4af37 0%, #e8a598 50%, #c44d67 100%);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
  transition: var(--transition-smooth);
}

.btn-royal-pulse:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(232, 165, 152, 0.6);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: btnShine 3s infinite;
}

@keyframes btnShine {
  0% { left: -100%; }
  40% { left: 150%; }
  100% { left: 150%; }
}

.gate-hint {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 4px;
}

/* ========================================================
   NAVIGATION HEADER
   ======================================================== */
.romantic-nav {
  position: sticky;
  top: 16px;
  z-index: 100;
  margin: 0 auto;
  max-width: 1080px;
  width: calc(100% - 32px);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(22, 11, 31, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--rose-gold-light);
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--gold-glow);
  text-shadow: 0 0 10px rgba(245, 215, 127, 0.5);
}

.btn-outline-gold {
  background: transparent;
  border: 1px solid var(--gold-accent);
  color: var(--gold-glow);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.15);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
  transform: translateY(-1px);
}

/* ========================================================
   SECTION GENERAL STYLING
   ======================================================== */
.section {
  position: relative;
  z-index: 10;
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-glow);
  font-weight: 600;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto;
}

/* ========================================================
   SECTION 1: HERO SECTION
   ======================================================== */
.hero-section {
  text-align: center;
  padding-top: 100px;
  padding-bottom: 80px;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232, 165, 152, 0.12);
  border: 1px solid var(--border-glass);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--rose-gold-light);
  margin-bottom: 24px;
}

/* Queen Keerthi Spotlight Portrait */
.queen-portrait-container {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-halo {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 215, 127, 0.35) 0%, rgba(232, 165, 152, 0.15) 50%, transparent 70%);
  filter: blur(12px);
  animation: haloPulse 3s infinite alternate ease-in-out;
}

.portrait-crown {
  position: absolute;
  top: -24px;
  font-size: 2.2rem;
  z-index: 5;
  filter: drop-shadow(0 4px 10px rgba(245, 215, 127, 0.8));
  animation: crownBob 2.5s infinite ease-in-out alternate;
}

@keyframes crownBob {
  0% { transform: translateY(0) rotate(-4deg); }
  100% { transform: translateY(-6px) rotate(4deg); }
}

.portrait-ring {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #f5d77f 0%, #e8a598 50%, #d4af37 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(245, 215, 127, 0.4);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.queen-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  transition: transform 0.5s ease;
}

.queen-portrait-container:hover .queen-portrait-img {
  transform: scale(1.08);
}

.portrait-sparkle-tag {
  position: absolute;
  bottom: -10px;
  background: rgba(22, 10, 31, 0.9);
  border: 1px solid var(--border-gold);
  color: var(--gold-glow);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 14px;
  border-radius: var(--radius-full);
  z-index: 6;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 40px;
  font-family: var(--font-sans);
  font-weight: 400;
}

/* Love Counter Card */
.love-counter-card {
  max-width: 680px;
  width: 100%;
  padding: 28px 32px;
  margin: 0 auto 50px;
  border: 1px solid var(--border-gold);
  background: rgba(24, 12, 35, 0.7);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(232, 165, 152, 0.15);
}

.counter-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--rose-gold-light);
  font-weight: 600;
  margin-bottom: 24px;
}

.pulsing-heart {
  display: inline-block;
  animation: heartPulse 1.4s infinite ease-in-out;
}

@keyframes heartPulse {
  0% { transform: scale(1); }
  25% { transform: scale(1.25); }
  40% { transform: scale(1); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.time-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 75px;
}

.time-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold-glow);
  line-height: 1;
  text-shadow: 0 0 15px rgba(245, 215, 127, 0.4);
}

.time-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-top: 6px;
}

.time-colon {
  font-size: 2rem;
  color: var(--border-gold);
  font-weight: 300;
  margin-top: -12px;
}

.counter-footer {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--rose-gold);
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-faint);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
}

.scroll-indicator:hover {
  color: var(--gold-glow);
}

.mouse-icon {
  width: 22px;
  height: 36px;
  border: 2px solid var(--border-glass);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.mouse-icon .wheel {
  width: 4px;
  height: 8px;
  background: var(--gold-glow);
  border-radius: 2px;
  animation: mouseWheel 1.5s infinite;
}

@keyframes mouseWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ========================================================
   SECTION 2: MEMORIES & PHOTO GALLERY
   ======================================================== */
.gallery-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.view-switcher {
  display: flex;
  background: rgba(25, 12, 36, 0.8);
  border: 1px solid var(--border-glass);
  padding: 4px;
  border-radius: var(--radius-full);
}

.switch-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.switch-btn.active {
  background: linear-gradient(135deg, var(--rose-gold) 0%, #aa4b6b 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(232, 165, 152, 0.4);
}



/* Fairy Light Wire & Hanging Polaroids */
.polaroid-string-container {
  position: relative;
  width: 100%;
  padding: 50px 0 30px;
  overflow: visible;
}

.fairy-wire {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 35px;
  border-bottom: 2px solid rgba(245, 215, 127, 0.4);
  border-radius: 50%;
  pointer-events: none;
}

.fairy-bulb {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 12px 4px #ffe699, 0 0 25px 8px rgba(255, 215, 0, 0.5);
  animation: bulbTwinkle 2s infinite alternate ease-in-out;
}

.b1 { left: 8%; top: 12px; animation-delay: 0.1s; }
.b2 { left: 24%; top: 22px; animation-delay: 0.6s; }
.b3 { left: 40%; top: 30px; animation-delay: 0.3s; }
.b4 { left: 56%; top: 31px; animation-delay: 0.8s; }
.b5 { left: 72%; top: 23px; animation-delay: 0.4s; }
.b6 { left: 88%; top: 13px; animation-delay: 0.9s; }
.b7 { left: 96%; top: 8px; animation-delay: 0.2s; }

@keyframes bulbTwinkle {
  0% { opacity: 0.4; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1.15); }
}

.polaroid-cards-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 36px 24px;
  padding-top: 35px;
}

/* Polaroid Card Item */
.polaroid-card {
  position: relative;
  background: #fdfaf6;
  padding: 14px 14px 22px;
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transform-origin: top center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.polaroid-card::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 22px;
  background: #c29b62;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  z-index: 5;
}

.polaroid-card:nth-child(even) {
  transform: rotate(2.5deg);
}

.polaroid-card:nth-child(odd) {
  transform: rotate(-2.5deg);
}

.polaroid-card:hover {
  transform: translateY(-12px) rotate(0deg) scale(1.05);
  box-shadow: 0 24px 45px rgba(0, 0, 0, 0.7), 0 0 25px rgba(245, 215, 127, 0.35);
  z-index: 20;
}

.polaroid-img-box {
  width: 100%;
  aspect-ratio: 4 / 4.8;
  overflow: hidden;
  background: #201328;
  border-radius: 2px;
}

.polaroid-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.polaroid-card:hover .polaroid-img-box img {
  transform: scale(1.06);
}

.polaroid-caption {
  margin-top: 14px;
  text-align: center;
}

.polaroid-title {
  font-family: var(--font-handwriting);
  font-size: 1.45rem;
  color: #2b182e;
  font-weight: 700;
  line-height: 1.2;
}

.polaroid-date {
  font-size: 0.75rem;
  color: #7d6580;
  font-weight: 500;
  margin-top: 2px;
}

/* 3D Circular Revolving Carousel */
.carousel-3d-container {
  position: relative;
  width: 100%;
  height: 480px;
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 20px;
}

.carousel-stage {
  width: 260px;
  height: 360px;
  position: relative;
  transform-style: preserve-3d;
}

.carousel-ring {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  transition: transform 0.4s ease-out;
}

.carousel-item {
  position: absolute;
  width: 240px;
  height: 330px;
  left: 10px;
  top: 15px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border-gold);
  cursor: pointer;
  transition: filter 0.3s;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(14, 7, 20, 0.9) 0%, transparent 100%);
}

.carousel-nav-hints {
  position: absolute;
  bottom: 12px;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* Scrapbook Masonry Grid */
.scrapbook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 24px;
}

.scrapbook-item {
  position: relative;
  background: rgba(30, 15, 42, 0.65);
  border-radius: var(--radius-md);
  padding: 12px;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-ambient);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.scrapbook-item:hover {
  transform: translateY(-8px);
  border-color: var(--gold-accent);
}

.washi-tape {
  position: absolute;
  top: -10px;
  left: 30%;
  width: 80px;
  height: 22px;
  background: rgba(232, 165, 152, 0.6);
  transform: rotate(-4deg);
  opacity: 0.85;
}

.scrapbook-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
}

.scrapbook-info {
  padding: 10px 4px 4px;
}

.scrapbook-info h4 {
  font-family: var(--font-heading);
  color: var(--rose-gold-light);
  font-size: 1.1rem;
}

.gallery-footer-bar {
  text-align: center;
  margin-top: 40px;
}

.drop-zone-tip {
  font-size: 0.85rem;
  color: var(--gold-glow);
  background: rgba(245, 215, 127, 0.08);
  display: inline-block;
  padding: 8px 24px;
  border-radius: var(--radius-full);
  border: 1px dashed rgba(245, 215, 127, 0.3);
}

/* ========================================================
   SECTION 3: INTERACTIVE CAKE & BLOW CANDLES
   ======================================================== */
.cake-section {
  text-align: center;
}

.cake-backdrop-glow {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(245, 215, 127, 0.15) 0%, rgba(232, 165, 152, 0.08) 50%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}

.cake-interactive-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  max-width: 640px;
  margin: 0 auto;
}

.cake-card {
  width: 100%;
  padding: 48px 24px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--border-gold);
}

/* Candles Row */
.candles-row {
  display: flex;
  gap: 24px;
  margin-bottom: 2px;
  z-index: 5;
}

.candle {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.candle-stick {
  width: 10px;
  height: 50px;
  background: repeating-linear-gradient(45deg, #ffd1dc, #ffd1dc 6px, #fff 6px, #fff 12px);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.flame {
  width: 14px;
  height: 24px;
  background: radial-gradient(ellipse at bottom, #fff 0%, #ffeb3b 40%, #ff5722 80%);
  border-radius: 50% 50% 35% 35%;
  margin-bottom: 3px;
  box-shadow: 0 0 15px 4px rgba(255, 179, 0, 0.8), 0 0 30px 8px rgba(255, 87, 34, 0.5);
  animation: flameFlicker 1.2s infinite alternate ease-in-out;
  transform-origin: bottom center;
}

.candle:nth-child(2) .flame { animation-delay: 0.3s; }
.candle:nth-child(3) .flame { animation-delay: 0.6s; }
.candle:nth-child(4) .flame { animation-delay: 0.2s; }
.candle:nth-child(5) .flame { animation-delay: 0.5s; }

@keyframes flameFlicker {
  0% { transform: scale(1) rotate(-2deg); }
  50% { transform: scale(1.08) rotate(3deg); }
  100% { transform: scale(0.95) rotate(-1deg); }
}

/* Extinguished flame state */
.candle.blown-out .flame {
  display: none;
}

.smoke {
  display: none;
  position: absolute;
  top: -15px;
  width: 8px;
  height: 20px;
  background: rgba(220, 220, 220, 0.4);
  border-radius: 50%;
  filter: blur(4px);
}

.candle.blown-out .smoke {
  display: block;
  animation: smokeDrift 1.5s forwards ease-out;
}

@keyframes smokeDrift {
  0% { transform: translateY(0) scale(1); opacity: 0.8; }
  100% { transform: translateY(-40px) scale(2.5); opacity: 0; }
}

/* 3D Tier Cake Construction */
.cake-model {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.cake-tier {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, 0.3), 0 8px 20px rgba(0, 0, 0, 0.5);
}

.tier-top {
  width: 220px;
  height: 70px;
  background: linear-gradient(180deg, #ffccd5 0%, #f4a261 100%);
  border: 1px solid rgba(255, 204, 213, 0.6);
  z-index: 2;
}

.tier-bottom {
  width: 300px;
  height: 95px;
  background: linear-gradient(180deg, #f7d1cd 0%, #e76f51 100%);
  border: 1px solid rgba(247, 209, 205, 0.6);
  margin-top: -6px;
  z-index: 1;
}

.tier-frosting {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: #ffffff;
  border-radius: 12px 12px 6px 6px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.tier-berries {
  font-size: 1.1rem;
  letter-spacing: 4px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.cake-message {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.cake-plate {
  width: 350px;
  height: 16px;
  background: linear-gradient(180deg, #fff 0%, #d4af37 100%);
  border-radius: 50%;
  margin-top: -4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
}

.cake-action-area {
  margin-top: 32px;
}

.btn-blow-candles {
  background: linear-gradient(135deg, #f5d77f 0%, #e8a598 100%);
  color: #2b1433;
  border: none;
  padding: 14px 34px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 30px rgba(245, 215, 127, 0.4);
  transition: var(--transition-smooth);
}

.btn-blow-candles:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 40px rgba(245, 215, 127, 0.6);
}

.mic-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Revealed Wish Card */
.wish-reveal-box {
  width: 100%;
  padding: 36px;
  text-align: center;
  border: 1px solid var(--border-gold);
  background: rgba(36, 17, 50, 0.85);
  animation: revealCard 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes revealCard {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.celebration-confetti-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ffd700, #ff6b6b);
  color: #1e0926;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.wish-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--gold-glow);
  margin-bottom: 14px;
}

.wish-body {
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 20px;
}

.wish-signature {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--rose-gold-light);
}

/* ========================================================
   SECTION 4: 8 REASONS WHY I LOVE YOU (3D FLIP CARDS)
   ======================================================== */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.reason-card {
  perspective: 1000px;
  height: 250px;
  cursor: pointer;
}

.reason-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

.reason-card:hover .reason-inner,
.reason-card.flipped .reason-inner {
  transform: rotateY(180deg);
}

.reason-front,
.reason-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.reason-front {
  border: 1px solid var(--border-glass);
}

.card-num {
  position: absolute;
  top: 14px;
  left: 18px;
  font-size: 0.75rem;
  color: var(--gold-accent);
  font-weight: 700;
  letter-spacing: 1px;
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.card-front-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--rose-gold-light);
}

.tap-hint {
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: 12px;
}

.reason-back {
  background: linear-gradient(135deg, rgba(46, 20, 66, 0.95) 0%, rgba(28, 12, 40, 0.95) 100%);
  border: 1px solid var(--border-gold);
  transform: rotateY(180deg);
  justify-content: center;
  text-align: center;
}

.back-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.reason-back h4 {
  font-family: var(--font-heading);
  color: var(--gold-glow);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.reason-back p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========================================================
   SECTION 5: THE INTIMATE LOVE LETTER
   ======================================================== */
.parchment-letter-wrapper {
  max-width: 780px;
  margin: 0 auto;
}

.parchment-letter {
  position: relative;
  background: #fdfaf2;
  color: #2b1828;
  padding: 56px 48px;
  border-radius: 8px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(245, 215, 127, 0.2);
  border: 1px solid #d9c49d;
  background-image: 
    linear-gradient(#eee 1px, transparent 1px),
    radial-gradient(circle at 10% 10%, rgba(245, 215, 127, 0.1) 0%, transparent 60%);
  background-size: 100% 28px, 100% 100%;
}

.letter-stamp {
  position: absolute;
  top: 30px;
  right: 36px;
  border: 2px dashed #b54960;
  color: #b54960;
  padding: 6px 12px;
  text-align: center;
  transform: rotate(6deg);
  border-radius: 4px;
}

.letter-stamp span {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  display: block;
}

.letter-stamp small {
  font-size: 0.65rem;
}

.salutation {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: #7a223f;
  margin-bottom: 24px;
  font-weight: 700;
}

.letter-paragraph {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 20px;
  color: #3b2238;
}

.valediction {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: #7a223f;
  margin-top: 36px;
  line-height: 1.4;
}

.letter-author-name {
  font-size: 1.5rem;
  color: #2b1828;
}

/* ========================================================
   SECTION 6: POP-A-BALLOON MINI GAME
   ======================================================== */
.balloons-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 36px;
  min-height: 380px;
  padding: 40px 0;
}

.balloon-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  animation: balloonFloat 4s infinite ease-in-out alternate;
}

.balloon-item:nth-child(2) { animation-delay: 0.7s; }
.balloon-item:nth-child(3) { animation-delay: 1.4s; }
.balloon-item:nth-child(4) { animation-delay: 2.1s; }
.balloon-item:nth-child(5) { animation-delay: 0.3s; }
.balloon-item:nth-child(6) { animation-delay: 1.8s; }

@keyframes balloonFloat {
  0% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
  100% { transform: translateY(0) rotate(-2deg); }
}

.balloon-item:hover {
  transform: scale(1.1) translateY(-10px);
}

.balloon-shape {
  position: relative;
  width: 90px;
  height: 110px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset -10px -10px 20px rgba(0, 0, 0, 0.3), 0 10px 20px rgba(0, 0, 0, 0.4);
}

.balloon-shine {
  position: absolute;
  top: 15px;
  left: 18px;
  width: 14px;
  height: 28px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: rotate(-30deg);
}

.balloon-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.b-pink .balloon-shape { background: radial-gradient(circle at 35% 30%, #ff80a0, #d90429); }
.b-gold .balloon-shape { background: radial-gradient(circle at 35% 30%, #ffe066, #d4af37); }
.b-purple .balloon-shape { background: radial-gradient(circle at 35% 30%, #d88bf8, #7209b7); }
.b-rose .balloon-shape { background: radial-gradient(circle at 35% 30%, #f4acb7, #9d0208); }
.b-coral .balloon-shape { background: radial-gradient(circle at 35% 30%, #ffaa9b, #e85d04); }

.balloon-string {
  width: 2px;
  height: 70px;
  background: rgba(255, 255, 255, 0.4);
  position: relative;
}

.balloon-string::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 6px solid rgba(255, 255, 255, 0.6);
}

.balloon-label {
  font-size: 0.75rem;
  color: var(--gold-glow);
  font-weight: 600;
  margin-top: 4px;
  background: rgba(0,0,0,0.4);
  padding: 2px 8px;
  border-radius: 10px;
}

/* Popped Animation */
.balloon-item.popped {
  animation: balloonPop 0.3s forwards ease-out;
  pointer-events: none;
}

@keyframes balloonPop {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.8; }
  100% { transform: scale(0); opacity: 0; }
}

/* Coupon Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 4, 15, 0.85);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.coupon-card {
  max-width: 460px;
  width: 100%;
  padding: 36px 28px;
  text-align: center;
  border: 2px dashed var(--gold-accent);
  background: linear-gradient(135deg, rgba(38, 17, 52, 0.95), rgba(20, 8, 28, 0.95));
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.coupon-stamp {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--gold-glow);
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
}

.coupon-emoji {
  font-size: 3rem;
  margin-bottom: 8px;
}

.coupon-headline {
  font-family: var(--font-heading);
  color: var(--rose-gold-light);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.coupon-reward-desc {
  font-size: 1.15rem;
  color: #fff;
  font-weight: 600;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.08);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  border: 1px solid var(--border-glass);
}

.coupon-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-bottom: 24px;
}

/* ========================================================
   LIGHTBOX MODAL FOR MEMORIES
   ======================================================== */
.lightbox-content {
  position: relative;
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-gold);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.6rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrapper {
  width: 100%;
  max-height: 60vh;
  overflow: hidden;
  background: #000;
}

.lightbox-img-wrapper img {
  width: 100%;
  height: 100%;
  max-height: 60vh;
  object-fit: contain;
}

.lightbox-caption-area {
  padding: 20px 24px;
  background: var(--bg-card);
}

.lightbox-date {
  font-size: 0.8rem;
  color: var(--gold-glow);
  font-weight: 600;
}

.lightbox-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--rose-gold-light);
  margin: 4px 0 8px;
}

.lightbox-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ========================================================
   PHOTO MANAGER MODAL
   ======================================================== */
.manager-card {
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  padding: 28px;
  overflow-y: auto;
  border: 1px solid var(--border-gold);
}

.manager-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.manager-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--rose-gold-light);
}

.manager-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.drop-zone {
  border: 2px dashed var(--gold-accent);
  background: rgba(245, 215, 127, 0.05);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.drop-zone:hover, .drop-zone.dragover {
  background: rgba(245, 215, 127, 0.15);
  border-color: #fff;
  transform: scale(1.01);
}

.drop-zone-icon {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.file-input-hidden {
  display: none;
}

.manager-album-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rose-gold-light);
}

.text-btn {
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
}

.text-btn:hover {
  color: var(--gold-glow);
}

.manager-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.manager-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.manager-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.manager-delete-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(230, 57, 70, 0.85);
  border: none;
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.manager-footer {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}

/* ========================================================
   CUSTOMIZATION DRAWER
   ======================================================== */
.customizer-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 90vw;
  background: rgba(20, 9, 29, 0.96);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-gold);
  z-index: 10001;
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.customizer-drawer.hidden {
  transform: translateX(100%);
  display: flex !important;
}

.drawer-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
}

.drawer-header h3 {
  font-family: var(--font-heading);
  color: var(--gold-glow);
  font-size: 1.25rem;
}

.drawer-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
}

.drawer-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--rose-gold-light);
  letter-spacing: 0.5px;
}

.input-group input[type="text"],
.input-group input[type="date"],
.input-group textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-smooth);
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: var(--gold-glow);
  box-shadow: 0 0 10px rgba(245, 215, 127, 0.3);
}

.audio-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}

.drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

/* Share Guide Modal */
.share-card {
  max-width: 520px;
  width: 100%;
  padding: 32px;
  text-align: center;
  position: relative;
  border: 1px solid var(--border-gold);
}

.share-icon {
  font-size: 2.8rem;
  margin-bottom: 8px;
}

.share-card h3 {
  font-family: var(--font-heading);
  color: var(--gold-glow);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.share-instructions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  margin-bottom: 28px;
}

.share-step {
  display: flex;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.step-num {
  width: 28px;
  height: 28px;
  background: var(--gold-accent);
  color: #1e0926;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.share-step strong {
  color: var(--rose-gold-light);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 4px;
}

.share-step p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* ========================================================
   FOOTER
   ======================================================== */
.romantic-footer {
  position: relative;
  text-align: center;
  padding: 90px 24px 60px;
  background: linear-gradient(180deg, transparent 0%, rgba(18, 8, 26, 0.95) 40%, #0e0514 100%);
  border-top: 1px solid var(--border-glass);
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--rose-gold-light);
  margin-bottom: 8px;
}

.footer-note {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer-prepared-seal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 215, 127, 0.08);
  border: 1px solid var(--border-gold);
  color: var(--gold-glow);
  font-size: 0.88rem;
  padding: 6px 20px;
  border-radius: var(--radius-full);
  margin-bottom: 28px;
  box-shadow: 0 0 15px rgba(245, 215, 127, 0.15);
}

.footer-prepared-seal strong {
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 1px;
}

.footer-replay-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* ========================================================
   RESPONSIVE DESIGN (Tablets & Mobile Phones)
   ======================================================== */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .section {
    padding: 60px 16px;
  }

  /* Gate & Mystery Envelope on Mobile */
  .gate-content {
    padding: 16px;
    width: 100%;
  }

  .envelope-wrapper {
    width: 260px;
    height: 170px;
    margin-bottom: 24px;
  }

  .envelope-top {
    border-left-width: 130px;
    border-right-width: 130px;
    border-top-width: 90px;
  }

  .envelope-body::before {
    border-left-width: 130px;
    border-top-width: 85px;
  }

  .envelope-body::after {
    border-right-width: 130px;
    border-top-width: 85px;
  }

  .seal-button {
    top: 65px;
  }

  .wax-seal {
    width: 52px;
    height: 52px;
  }

  .gate-title {
    font-size: 1.85rem;
  }

  .btn-royal-pulse {
    padding: 12px 24px;
    font-size: 0.95rem;
    width: 100%;
    max-width: 320px;
  }

  /* Navigation on Mobile */
  .romantic-nav {
    top: 10px;
    width: calc(100% - 20px);
    padding: 8px 14px;
  }

  .nav-links {
    display: none; /* Keep clean and uncluttered */
  }

  .nav-brand {
    font-size: 1rem;
  }

  .btn-outline-gold {
    padding: 6px 14px;
    font-size: 0.78rem;
  }

  /* Hero Section on Mobile */
  .hero-section {
    padding-top: 70px;
    padding-bottom: 50px;
    min-height: auto;
  }

  .queen-portrait-container {
    width: 135px;
    height: 135px;
    margin: 0 auto 20px;
  }

  .portrait-ring {
    width: 120px;
    height: 120px;
  }

  .portrait-crown {
    top: -20px;
    font-size: 1.8rem;
  }

  .portrait-sparkle-tag {
    font-size: 0.65rem;
    padding: 2px 10px;
    bottom: -8px;
  }

  .hero-title {
    font-size: clamp(2.1rem, 8vw, 3rem);
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .hero-tagline {
    font-size: 0.95rem;
    margin-bottom: 28px;
    padding: 0 10px;
  }

  /* Love Counter on Mobile */
  .love-counter-card {
    padding: 20px 14px;
    margin-bottom: 35px;
    border-radius: var(--radius-md);
  }

  .counter-header {
    font-size: 0.85rem;
    margin-bottom: 16px;
    text-align: center;
  }

  .time-grid {
    gap: 6px;
    margin-bottom: 14px;
  }

  .time-block {
    min-width: 48px;
  }

  .time-number {
    font-size: 1.75rem;
  }

  .time-label {
    font-size: 0.65rem;
    letter-spacing: 1px;
  }

  .time-colon {
    font-size: 1.3rem;
    margin-top: -8px;
  }

  .counter-footer {
    font-size: 0.78rem;
  }

  /* Gallery Views on Mobile */
  .section-title {
    font-size: 1.85rem;
  }

  .section-subtitle {
    font-size: 0.92rem;
    padding: 0 8px;
  }

  .gallery-controls {
    gap: 10px;
    flex-direction: column;
  }

  .view-switcher {
    width: 100%;
    justify-content: center;
    overflow-x: auto;
  }

  .switch-btn {
    padding: 6px 12px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .polaroid-string-container {
    padding-top: 30px;
  }

  .fairy-wire {
    top: 10px;
  }

  .polaroid-cards-wrapper {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 28px 16px;
  }

  .polaroid-card {
    padding: 12px 12px 18px;
  }

  /* 3D Carousel on Mobile */
  .carousel-3d-container {
    height: 380px;
    perspective: 700px;
  }

  .carousel-stage {
    width: 190px;
    height: 270px;
  }

  .carousel-item {
    width: 180px;
    height: 250px;
  }

  /* Interactive Cake on Mobile */
  .cake-card {
    padding: 32px 16px 24px;
  }

  .candles-row {
    gap: 14px;
  }

  .candle-stick {
    width: 8px;
    height: 40px;
  }

  .flame {
    width: 12px;
    height: 20px;
  }

  .tier-top {
    width: 180px;
    height: 60px;
  }

  .tier-bottom {
    width: 240px;
    height: 80px;
  }

  .cake-plate {
    width: 270px;
    height: 14px;
  }

  .cake-message {
    font-size: 1.25rem;
  }

  .btn-blow-candles {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .wish-reveal-box {
    padding: 24px 16px;
  }

  .wish-title {
    font-size: 1.45rem;
  }

  .wish-body {
    font-size: 0.92rem;
  }

  /* Reasons Flip Cards on Mobile */
  .reasons-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .reason-card {
    height: 210px;
  }

  .card-front-title {
    font-size: 1.15rem;
  }

  /* Love Letter on Mobile */
  .parchment-letter {
    padding: 36px 18px;
    background-size: 100% 24px, 100% 100%;
  }

  .letter-stamp {
    position: static;
    display: inline-block;
    margin-bottom: 16px;
    transform: rotate(0);
  }

  .salutation {
    font-size: 1.7rem;
    margin-bottom: 16px;
  }

  .letter-paragraph {
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 14px;
  }

  .valediction {
    font-size: 1.5rem;
    margin-top: 24px;
  }

  /* Balloon Game on Mobile */
  .balloons-container {
    gap: 24px 14px;
    min-height: 300px;
    padding: 20px 0;
  }

  .balloon-shape {
    width: 72px;
    height: 90px;
  }

  .balloon-string {
    height: 50px;
  }

  .balloon-icon {
    font-size: 1.4rem;
  }

  .balloon-label {
    font-size: 0.7rem;
  }

  .coupon-card {
    padding: 26px 16px;
  }

  .coupon-headline {
    font-size: 1.3rem;
  }

  .coupon-reward-desc {
    font-size: 1rem;
    padding: 12px;
  }

  /* Audio Dock on Mobile */
  .audio-dock {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    right: 14px;
    padding: 6px 12px;
    gap: 8px;
  }

  .music-btn {
    font-size: 0.75rem;
  }

  .sound-bars {
    display: none; /* Keep dock super slim on small screens */
  }

  .gear-btn {
    padding: 4px 8px;
    font-size: 0.7rem;
  }

  /* Modals on Mobile */
  .lightbox-content, .manager-card, .share-card {
    max-width: 95vw;
    padding: 18px;
    border-radius: var(--radius-md);
  }

  .customizer-drawer {
    width: 100vw;
    max-width: 100vw;
  }
}

/* Very Small Mobile Screens (< 380px) */
@media (max-width: 380px) {
  .hero-title {
    font-size: 1.9rem;
  }

  .time-number {
    font-size: 1.45rem;
  }

  .time-block {
    min-width: 40px;
  }

  .polaroid-cards-wrapper {
    grid-template-columns: 1fr;
  }

  .envelope-wrapper {
    width: 230px;
    height: 150px;
  }

  .envelope-top {
    border-left-width: 115px;
    border-right-width: 115px;
    border-top-width: 80px;
  }

  .envelope-body::before, .envelope-body::after {
    border-top-width: 75px;
  }

  .envelope-body::before { border-left-width: 115px; }
  .envelope-body::after { border-right-width: 115px; }

  .tier-top { width: 150px; }
  .tier-bottom { width: 200px; }
  .cake-plate { width: 230px; }
}

