/* ═══════════════════════════════════════════════════════════════
   BIRTHDAY WEBSITE — SKY BLUE CELESTIAL EXPERIENCE (FOR JANE JESSICA)
   Design System: Midnight Sky Blue · Azure Blue · Glassmorphism
═══════════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ─────────────────────────────────── */
:root {
  --bg-dark: #132238;
  --bg-deeper: #0F1A2C;
  --bg-darkest: #09101C;
  --accent-rose: #38BDF8; /* Sky Blue Primary Accent */
  --accent-light: #F0F9FF;
  --accent-medium: #BAE6FD;
  --accent-deep: #0284C7;
  --accent-glow: #70C1FF;
  --mauve-muted: #7DD3FC;
  --mauve-soft: #93C5FD;
  --white: #FFFFFF;
  --cream: #F0F9FF;
  --glass-surface: rgba(255,255,255,0.07);
  --glass-surface-2: rgba(255,255,255,0.045);
  --border-soft: rgba(112,193,255,0.18);
  --border-glow: rgba(56,189,248,0.25);
  --shadow-sm: rgba(0,0,0,0.55) 0px 8px 60px 0px, rgba(56,189,248,0.12) 0px 0px 50px 0px, rgba(186,230,253,0.1) 0px 1px 0px 0px inset;
  --shadow-md: rgba(0,0,0,0.45) 0px 4px 30px 0px, rgba(112,193,255,0.1) 0px 1px 0px 0px inset;
  --shadow-lg: rgba(0,0,0,0.5) 0px 8px 40px 0px, rgba(186,230,253,0.1) 0px 1px 0px 0px inset;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ui: Arial, Helvetica, sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: all 0.2s ease;
}

/* ─── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13.6px;
  font-weight: 200;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hidden { display: none !important; }
.screen { position: fixed; inset: 0; z-index: 1000; overflow: hidden; }

/* ─── Scroll Progress ────────────────────────────────────────── */
#scroll-progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-rose), var(--accent-light));
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(56,189,248,0.7);
}

/* ─── Loading Screen ─────────────────────────────────────────── */
#loading-screen {
  position: fixed; inset: 0;
  background: var(--bg-darkest);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  flex-direction: column;
}

.loading-content { text-align: center; position: relative; z-index: 2; }

.loading-flower {
  width: 100px; height: 100px;
  margin: 0 auto 24px;
  animation: spinSlow 8s linear infinite;
}

.loading-flower svg { width: 100%; height: 100%; }

.petal-svg {
  transform-origin: 0 0;
  animation: petalPulse 2s ease-in-out infinite;
}
.petal-svg:nth-child(odd) { animation-delay: 0.2s; }

@keyframes petalPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.loading-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  color: var(--accent-medium);
  letter-spacing: 0.08em;
  animation: fadeInOut 1.8s ease-in-out infinite;
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ─── Floating Petals & Clouds ───────────────────────────────── */
.ambient-petals-layer {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -40px;
  font-size: 16px;
  opacity: 0;
  animation: petalFall linear infinite;
  pointer-events: none;
  user-select: none;
}

@keyframes petalFall {
  0% {
    transform: translateY(-20px) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 0.8; }
  90% { opacity: 0.4; }
  100% {
    transform: translateY(110vh) translateX(80px) rotate(720deg);
    opacity: 0;
  }
}

/* ─── PIN SCREEN ─────────────────────────────────────────────── */
#pin-screen {
  background: linear-gradient(135deg, var(--bg-darkest) 0%, var(--bg-dark) 50%, var(--bg-deeper) 100%);
  display: flex; align-items: center; justify-content: center;
}

#pin-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.pin-card {
  background: var(--glass-surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-soft);
  border-radius: 24px 24px 12px 24px;
  padding: 52px 44px;
  max-width: 380px;
  width: calc(100% - 48px);
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 2;
  animation: cardEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.pin-flower-top {
  margin: -80px auto 24px;
  width: 80px; height: 80px;
  animation: floatFlower 3s ease-in-out infinite;
}

@keyframes floatFlower {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

.pin-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 34px;
  color: var(--accent-light);
  margin-bottom: 8px;
  line-height: 1.1;
}

.pin-subtitle {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 12.8px;
  color: var(--mauve-soft);
  margin-bottom: 32px;
}

.pin-display {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.pin-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--border-glow);
  background: transparent;
  transition: var(--transition-smooth);
}

.pin-dot.filled {
  background: var(--accent-rose);
  border-color: var(--accent-rose);
  box-shadow: 0 0 12px rgba(56,189,248,0.6);
}

.pin-dot.error {
  background: #E85A5A;
  border-color: #E85A5A;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.pin-btn {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: var(--glass-surface-2);
  color: var(--accent-light);
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  cursor: pointer;
  transition: var(--transition-bounce);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.pin-btn:hover, .pin-btn:active {
  background: rgba(56,189,248,0.15);
  border-color: var(--accent-rose);
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(56,189,248,0.35);
}

.pin-btn:active { transform: scale(0.95); }

.pin-clear { color: var(--mauve-muted); font-size: 14px; }
.pin-submit { color: var(--accent-rose); font-size: 18px; }

.pin-hint {
  font-size: 11px;
  font-weight: 200;
  color: var(--mauve-muted);
  opacity: 0.8;
}

.pin-error {
  font-size: 11.5px;
  color: rgba(255,120,140,0.9);
  margin-top: 10px;
  animation: fadeIn 0.3s ease;
}

.pin-success-overlay {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at center, rgba(56,189,248,0.35) 0%, rgba(19,34,56,0.95) 70%);
  z-index: 3;
  animation: successBloom 0.6s ease forwards;
}

@keyframes successBloom {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

/* ─── GIFT BOX SCREEN ────────────────────────────────────────── */
#giftbox-screen {
  background: radial-gradient(ellipse at center, #1B3150 0%, var(--bg-darkest) 70%);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  perspective: 1000px;
}

.gift-bg-glow {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(ellipse, rgba(56,189,248,0.12) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: bgGlow 3s ease-in-out infinite;
}

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

.gift-instruction {
  position: absolute;
  top: 20%;
  text-align: center;
  z-index: 5;
  transition: opacity 0.5s ease;
}

.gift-instruction p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  color: var(--accent-medium);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.giftbox-wrapper {
  position: relative;
  cursor: pointer;
  z-index: 10;
  animation: giftFloat 2.5s ease-in-out infinite;
  transition: transform 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  perspective: 800px;
}

.giftbox-wrapper:hover { transform: scale(1.05) translateY(-5px); }

@keyframes giftFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.giftbox {
  width: 100%; height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Gift Box Body */
.giftbox-body {
  position: relative;
  width: 160px; height: 120px;
  flex-shrink: 0;
}

.body-face {
  position: absolute;
  background: rgba(56,189,248,0.85);
  border: 1px solid rgba(186,230,253,0.4);
}

.body-front {
  width: 160px; height: 120px;
  top: 0; left: 0;
  background: linear-gradient(135deg, rgba(56,189,248,0.9), rgba(2,132,199,0.85));
  border-radius: 0 0 6px 6px;
  box-shadow: inset -6px 0 12px rgba(0,0,0,0.15), inset 6px 0 12px rgba(255,255,255,0.15);
}

.body-ribbon-h {
  position: absolute;
  height: 16px;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #E2E8F0, #94A3B8);
  z-index: 2;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.body-ribbon-v {
  position: absolute;
  width: 16px;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #E2E8F0, #94A3B8);
  z-index: 2;
  border-radius: 2px;
  box-shadow: 1px 0 4px rgba(0,0,0,0.2);
}

/* Lid */
.giftbox-lid {
  position: relative;
  width: 180px; height: 36px;
  flex-shrink: 0;
  transform-origin: bottom center;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  margin-left: -10px;
}

.giftbox-lid.open {
  animation: lidOpen 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes lidOpen {
  0% { transform: rotateX(0deg); }
  100% { transform: rotateX(-130deg) translateY(-20px); }
}

.lid-face { position: absolute; }

.lid-top {
  width: 180px; height: 36px;
  background: linear-gradient(135deg, rgba(112,193,255,0.95), rgba(2,132,199,0.9));
  border-radius: 4px 4px 0 0;
  left: 0; top: 0;
  border: 1px solid rgba(186,230,253,0.4);
  box-shadow: inset 0 4px 8px rgba(255,255,255,0.2), inset -4px 0 8px rgba(0,0,0,0.1);
}

.ribbon-h {
  position: absolute;
  height: 16px;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #E2E8F0, #94A3B8);
  border-radius: 2px;
  z-index: 2;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.ribbon-v {
  position: absolute;
  width: 16px;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #E2E8F0, #94A3B8);
  border-radius: 2px;
  z-index: 2;
  box-shadow: 1px 0 4px rgba(0,0,0,0.2);
}

/* Bow */
.bow {
  position: absolute;
  top: -26px; left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 60px; height: 28px;
}

.bow-left, .bow-right {
  position: absolute;
  width: 28px; height: 20px;
  background: linear-gradient(135deg, #F8FAFC, #CBD5E1);
  top: 4px;
}

.bow-left {
  right: 50%;
  transform: rotate(-25deg);
  border-radius: 50% 0 50% 50%;
  transform-origin: right center;
}

.bow-right {
  left: 50%;
  transform: rotate(25deg);
  border-radius: 0 50% 50% 50%;
  transform-origin: left center;
}

.bow-center {
  width: 14px; height: 14px;
  background: #38BDF8;
  border-radius: 50%;
  position: absolute;
  top: 2px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 8px rgba(56,189,248,0.6);
}

.gift-inner-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse, rgba(186,230,253,0) 0%, transparent 100%);
  transition: background 0.5s ease;
  z-index: 3;
  pointer-events: none;
}

.gift-inner-glow.active {
  background: radial-gradient(ellipse, rgba(186,230,253,0.95) 0%, rgba(56,189,248,0.5) 40%, transparent 70%);
  animation: innerGlow 0.5s ease forwards;
}

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

/* Light Rays */
.gift-rays {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.gift-rays.active { opacity: 1; }

.ray {
  position: absolute;
  top: 50%; left: 50%;
  transform-origin: 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(186,230,253,0.85), transparent);
  border-radius: 2px;
  animation: rayExpand 1s ease forwards;
}

@keyframes rayExpand {
  from { width: 0; opacity: 1; }
  to { width: 300px; opacity: 0.3; }
}

.gift-bloom-container {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 8;
}

/* ─── GLASS CARD BASE ────────────────────────────────────────── */
.glass-card {
  background: var(--glass-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-soft);
  border-radius: 24px 24px 12px 24px;
  box-shadow: var(--shadow-sm);
}

/* ─── SECTION SHARED ─────────────────────────────────────────── */
section {
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

.section-label {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mauve-soft);
  text-align: center;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 51.2px;
  color: var(--accent-light);
  text-align: center;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-subtitle {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 13px;
  color: var(--mauve-soft);
  text-align: center;
  margin-bottom: 52px;
}

/* ─── REVEAL ANIMATIONS ──────────────────────────────────────── */
.reveal-fade { opacity: 0; transition: opacity 0.9s ease; }
.reveal-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94); }

.reveal-fade.revealed, .reveal-up.revealed, .reveal-scale.revealed {
  opacity: 1; transform: none;
}

/* ─── HERO SECTION ───────────────────────────────────────────── */
.section-hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 0 24px;
  position: relative;
  overflow: hidden;
}



#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

.hero-content {
  text-align: center;
  position: relative; z-index: 2;
  max-width: 750px;
  margin: 0 auto;
  padding: 60px 50px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--accent-rose);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(64px, 10vw, 96px);
  line-height: 1.0;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-title-line { display: block; color: var(--accent-light); }

.hero-title .accent-script {
  color: var(--accent-rose);
  font-style: italic;
}

.hero-title .hero-name {
  font-size: clamp(70px, 12vw, 110px);
  color: var(--white);
  text-shadow: 0 0 60px rgba(56,189,248,0.5);
}

.hero-typewriter {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 20px;
  color: var(--accent-medium);
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  word-break: break-word;
}

.hero-typewriter::after {
  content: '|';
  animation: blink 0.7s ease-in-out infinite;
  color: var(--accent-rose);
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-divider {
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-rose), transparent);
  margin: 0 auto 20px;
}

.hero-date {
  font-size: 12px;
  font-weight: 200;
  color: var(--mauve-soft);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-flowers {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
}

.h-flower {
  position: absolute;
  font-size: 32px;
  animation: heroFloat linear infinite;
  opacity: 0.6;
}

.hf1 { top: 15%; left: 8%; font-size: 40px; animation-duration: 6s; animation-delay: 0s; }
.hf2 { top: 25%; right: 10%; font-size: 28px; animation-duration: 7s; animation-delay: 1s; }
.hf3 { bottom: 30%; left: 12%; font-size: 24px; animation-duration: 5.5s; animation-delay: 0.5s; }
.hf4 { top: 60%; right: 8%; font-size: 36px; animation-duration: 8s; animation-delay: 2s; }
.hf5 { bottom: 15%; right: 20%; font-size: 22px; animation-duration: 6.5s; animation-delay: 1.5s; }

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(8px, -12px) rotate(10deg); }
  50% { transform: translate(-6px, -20px) rotate(-5deg); }
  75% { transform: translate(10px, -10px) rotate(8deg); }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
  animation: fadeIn 2s ease 2s both;
  z-index: 2;
}

.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 1.5px solid var(--accent-rose);
  border-bottom: 1.5px solid var(--accent-rose);
  transform: rotate(45deg);
  animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 1; }
  50% { transform: rotate(45deg) translateY(5px); opacity: 0.5; }
}

.scroll-indicator span {
  font-size: 10px;
  font-weight: 200;
  color: var(--mauve-soft);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ─── BOUQUET SECTION (REFACTORED & ALIGNED) ─────────────────── */
.section-bouquet {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-deeper) 100%);
  text-align: center;
}

.bouquet-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 32px;
}

.bouquet-container {
  position: relative;
  width: 400px;
  height: 420px;
  margin: 0 auto;
  cursor: default;
}

.bouquet-glow-bg {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse, rgba(56,189,248,0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: bgGlow 4s ease-in-out infinite;
}

.bouquet-flowers {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 5;
}

.b-flower {
  position: absolute;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: flowerSway 4s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.b-flower:hover, .b-flower.tapped {
  transform: scale(1.25) translateY(-8px) !important;
  z-index: 30 !important;
}

.b-flower-emoji {
  font-size: 52px;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4));
}

.b-flower-tag {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 300;
  background: rgba(19,34,56,0.85);
  color: var(--accent-light);
  border: 1px solid var(--border-glow);
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 2px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

@keyframes flowerSway {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  25% { transform: rotate(3deg) translateY(-4px); }
  75% { transform: rotate(-3deg) translateY(-2px); }
}

.bouquet-stem-wrap {
  position: absolute;
  inset: 0;
  display: flex; justify-content: center;
  align-items: stretch;
  z-index: 2;
  pointer-events: none;
}

.bouquet-stems {
  width: 100%; height: 100%;
  opacity: 0.85;
}

.bouquet-ribbon {
  position: absolute;
  bottom: 15px; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.ribbon-knot {
  width: 64px; height: 32px;
  background: linear-gradient(135deg, rgba(112,193,255,0.9), rgba(2,132,199,0.8));
  border-radius: 50% 50% 30% 30%;
  position: relative;
  box-shadow: 0 4px 16px rgba(56,189,248,0.4);
}

.ribbon-knot::before, .ribbon-knot::after {
  content: '';
  position: absolute;
  width: 26px; height: 22px;
  border-radius: 50%;
  background: rgba(186,230,253,0.8);
}

.ribbon-knot::before { top: -8px; left: -10px; transform: rotate(-20deg); }
.ribbon-knot::after { top: -8px; right: -10px; transform: rotate(20deg); }

.bouquet-particles {
  position: absolute; inset: 0;
  pointer-events: none;
}

.bouquet-message {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px 32px;
  text-align: center;
  transition: all 0.4s ease;
}

.b-msg-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--accent-light);
  margin-bottom: 6px;
}

.bouquet-message p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  font-weight: 300;
  color: var(--accent-medium);
  line-height: 1.5;
  transition: all 0.4s ease;
}

/* ─── LETTER SECTION ─────────────────────────────────────────── */
.section-letter {
  background: linear-gradient(180deg, var(--bg-deeper) 0%, var(--bg-dark) 100%);
  text-align: center;
}

.letter-wrapper {
  max-width: 620px;
  margin: 0 auto;
}

.letter-card {
  background: linear-gradient(145deg, rgba(19,34,56,0.95), rgba(15,26,44,0.98));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(112,193,255,0.2);
  border-radius: 16px;
  padding: 52px 48px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transform-origin: top center;
  color: var(--accent-light);
  animation: letterUnfold 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  overflow: hidden;
}

@keyframes letterUnfold {
  from { transform: scaleY(0.2); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}

.letter-corner {
  position: absolute;
  width: 50px; height: 50px;
}

.letter-corner::before, .letter-corner::after {
  content: '✧';
  position: absolute;
  font-size: 20px;
  color: rgba(56,189,248,0.3);
}

.letter-corner.tl { top: 16px; left: 16px; }
.letter-corner.tl::before { top: 0; left: 0; }
.letter-corner.tl::after { top: 12px; left: 12px; font-size: 14px; color: rgba(56,189,248,0.15); }

.letter-corner.tr { top: 16px; right: 16px; }
.letter-corner.tr::before { top: 0; right: 0; }
.letter-corner.tr::after { top: 12px; right: 12px; font-size: 14px; color: rgba(56,189,248,0.15); }

.letter-corner.bl { bottom: 16px; left: 16px; }
.letter-corner.bl::before { bottom: 0; left: 0; }
.letter-corner.br { bottom: 16px; right: 16px; }
.letter-corner.br::before { bottom: 0; right: 0; }

.letter-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(56,189,248,0.15);
}

.letter-floral-deco {
  font-size: 18px;
  color: rgba(112,193,255,0.4);
  letter-spacing: 0.3em;
  margin-bottom: 8px;
}

.letter-date {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  font-weight: 300;
  color: rgba(112,193,255,0.7);
}

.letter-body { text-align: left; }

.letter-salutation {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--accent-light);
  margin-bottom: 20px;
}

.letter-para {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: rgba(186,230,253,0.85);
  line-height: 1.8;
  margin-bottom: 16px;
}

.letter-para.italic { font-style: italic; color: rgba(112,193,255,0.9); }

.letter-ps {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(56,189,248,0.08);
  border-left: 2px solid rgba(56,189,248,0.5);
  border-radius: 0 8px 8px 0;
}

.letter-ps-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  font-weight: 300;
  color: rgba(186,230,253,0.9);
  margin: 0;
}

.letter-signature {
  text-align: right;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(56,189,248,0.15);
}

.letter-closing {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  font-weight: 300;
  color: rgba(112,193,255,0.85);
  margin-bottom: 4px;
}

.letter-name-sig {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--accent-light);
}

.letter-seal {
  font-size: 28px;
  margin-top: 8px;
}

.letter-floral-bottom {
  text-align: center;
  margin-top: 28px;
  font-size: 16px;
  color: rgba(56,189,248,0.3);
  letter-spacing: 0.4em;
}

/* ─── POLAROID MEMORIES ──────────────────────────────────────── */
.section-memories {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-deeper) 100%);
}

.polaroid-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.polaroid {
  background: var(--cream);
  padding: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: rgba(0,0,0,0.4) 0 8px 32px, rgba(0,0,0,0.15) 0 2px 8px;
  position: relative;
  flex-shrink: 0;
}

.polaroid:hover {
  transform: scale(1.06) translateY(-8px) !important;
  box-shadow: rgba(0,0,0,0.5) 0 16px 48px, rgba(56,189,248,0.25) 0 0 24px;
  z-index: 10;
}

.polaroid-tape {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  width: 48px; height: 20px;
  background: rgba(224,242,254,0.85);
  border-radius: 2px;
  z-index: 2;
}

.polaroid-photo {
  width: 160px; height: 200px;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: linear-gradient(135deg, #bae6fd, #38bdf8);
}

.polaroid-photo-inner {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #bae6fd, #38bdf8);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  z-index: 0;
}

.polaroid-photo-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  z-index: 1;
  transition: transform 0.4s ease;
}

.polaroid:hover .polaroid-photo-inner,
.polaroid:hover .polaroid-photo-img { transform: scale(1.05); }

.polaroid-caption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  font-weight: 400;
  color: rgba(15,23,42,0.8);
  text-align: center;
  padding: 10px 4px 0;
  line-height: 1.4;
}

/* Photo Modal */
.photo-modal {
  position: fixed; inset: 0;
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
}

.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(9,16,28,0.9);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.modal-content {
  position: relative; z-index: 2;
  animation: modalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-polaroid {
  background: var(--cream);
  padding: 20px 20px 60px;
  box-shadow: rgba(0,0,0,0.7) 0 20px 80px;
  max-width: 320px;
}

.modal-photo {
  width: 280px; height: 240px;
  display: flex; align-items: center; justify-content: center;
  font-size: 100px;
  background-size: cover; background-position: center;
  overflow: hidden;
}

.modal-photo-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.modal-photo-emoji {
  font-size: 100px;
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}

.modal-caption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  font-weight: 400;
  color: rgba(15,23,42,0.85);
  text-align: center;
  padding-top: 16px;
  line-height: 1.5;
}

.modal-close {
  position: absolute;
  top: -20px; right: -20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: var(--glass-surface);
  color: var(--accent-light);
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition-bounce);
  backdrop-filter: blur(10px);
}

.modal-close:hover {
  background: rgba(56,189,248,0.2);
  transform: scale(1.1);
}

/* ─── TIMELINE SECTION ───────────────────────────────────────── */
.section-timeline {
  background: linear-gradient(180deg, var(--bg-deeper) 0%, var(--bg-dark) 100%);
}

.timeline-container {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  padding: 20px 0;
}

.timeline-vine {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(56,189,248,0.35) 10%, rgba(56,189,248,0.35) 90%, transparent);
  transform: translateX(-50%);
}

.timeline-vine::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0px,
    transparent 24px,
    rgba(56,189,248,0.3) 24px,
    rgba(56,189,248,0.3) 26px
  );
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 52px;
  position: relative;
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
  transform: translateX(30px);
}

.timeline-item:nth-child(even) {
  transform: translateX(-30px);
}

.timeline-item.revealed {
  opacity: 1;
  transform: translateX(0) !important;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  width: 16px; height: 16px;
  background: var(--accent-rose);
  border-radius: 50%;
  border: 3px solid var(--bg-dark);
  box-shadow: 0 0 12px rgba(56,189,248,0.6);
  z-index: 2;
}

.timeline-card {
  width: calc(50% - 32px);
  background: var(--glass-surface);
  border: 1px solid var(--border-soft);
  border-radius: 12px 24px 24px 12px;
  padding: 24px 28px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.timeline-item:nth-child(odd) .timeline-card {
  border-radius: 24px 12px 12px 24px;
}

.timeline-date {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-rose);
  margin-bottom: 6px;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--accent-light);
  margin-bottom: 8px;
}

.timeline-desc {
  font-family: var(--font-body);
  font-size: 12.8px;
  font-weight: 200;
  color: var(--mauve-soft);
  line-height: 1.7;
}

.timeline-emoji {
  font-size: 22px;
  margin-bottom: 8px;
  display: block;
}

/* ─── MUSIC PLAYER SECTION ───────────────────────────────────── */
.section-music {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-deeper) 100%);
}

.player-container {
  max-width: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.player-card {
  padding: 40px;
  text-align: center;
}

.player-artwork {
  width: 140px; height: 140px;
  margin: 0 auto 24px;
  position: relative;
}

.artwork-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(56,189,248,0.25), rgba(19,34,56,0.85));
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-soft);
}

.vinyl-record {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: conic-gradient(
    rgba(56,189,248,0.2) 0deg,
    rgba(19,34,56,0.9) 60deg,
    rgba(56,189,248,0.12) 120deg,
    rgba(19,34,56,0.9) 180deg,
    rgba(56,189,248,0.2) 240deg,
    rgba(19,34,56,0.9) 300deg,
    rgba(56,189,248,0.2) 360deg
  );
  display: flex; align-items: center; justify-content: center;
  transition: animation-play-state 0.3s;
}

.vinyl-record.spinning {
  animation: vinylSpin 3s linear infinite;
}

@keyframes vinylSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.vinyl-center {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, #E0F2FE, rgba(19,34,56,0.85));
  border: 2px solid rgba(56,189,248,0.35);
}

.artwork-glow {
  position: absolute; inset: -4px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(56,189,248,0.2) 0%, transparent 70%);
  animation: artworkGlow 2s ease-in-out infinite;
}

@keyframes artworkGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.player-track-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--accent-light);
  margin-bottom: 4px;
}

.player-artist {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 200;
  color: var(--mauve-soft);
  margin-bottom: 20px;
}

/* Visualizer */
.visualizer-container {
  height: 40px;
  display: flex; align-items: flex-end; justify-content: center;
  gap: 3px;
  margin-bottom: 16px;
}

.viz-bars {
  display: flex; align-items: flex-end;
  gap: 3px;
  height: 100%;
}

.viz-bar {
  width: 4px;
  background: linear-gradient(180deg, var(--accent-rose), var(--accent-deep));
  border-radius: 2px 2px 0 0;
  transform-origin: bottom;
  animation: vizAnim 0.5s ease-in-out infinite;
  min-height: 4px;
}

@keyframes vizAnim {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

.player-progress-wrap { margin-bottom: 20px; }

.player-progress-bg {
  width: 100%; height: 4px;
  background: rgba(56,189,248,0.18);
  border-radius: 2px;
  cursor: pointer;
  margin-bottom: 8px;
  position: relative;
}

.player-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-rose));
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s linear;
  position: relative;
}

.player-progress-fill::after {
  content: '';
  position: absolute;
  right: -6px; top: 50%;
  transform: translateY(-50%);
  width: 12px; height: 12px;
  background: var(--accent-rose);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(56,189,248,0.6);
}

.player-times {
  display: flex; justify-content: space-between;
  font-size: 11px; font-weight: 200;
  color: var(--mauve-muted);
}

.player-controls {
  display: flex; align-items: center; justify-content: center;
  gap: 20px;
}

.ctrl-btn {
  background: transparent;
  border: none;
  color: var(--accent-medium);
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition-bounce);
  padding: 8px;
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}

.ctrl-btn:hover {
  color: var(--accent-rose);
  background: rgba(56,189,248,0.15);
  transform: scale(1.1);
}

.ctrl-play {
  width: 56px; height: 56px;
  background: rgba(56,189,248,0.18) !important;
  border: 1px solid var(--border-glow) !important;
  font-size: 22px;
}

.ctrl-play:hover {
  background: rgba(56,189,248,0.3) !important;
  box-shadow: 0 0 20px rgba(56,189,248,0.4);
}

.playlist-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.playlist-item {
  background: var(--glass-surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.playlist-item:hover, .playlist-item.active {
  background: rgba(56,189,248,0.12);
  border-color: var(--border-glow);
  transform: translateX(4px);
}

.playlist-item.active .pl-name { color: var(--accent-rose); }

.pl-num {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 300;
  color: var(--mauve-muted);
  width: 28px; flex-shrink: 0;
}

.pl-info { flex: 1; }

.pl-name {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 300;
  color: var(--accent-light);
  margin-bottom: 2px;
}

.pl-artist {
  font-size: 11px; font-weight: 200;
  color: var(--mauve-muted);
}

.pl-emoji { font-size: 20px; }

/* ─── REASONS JAR SECTION ────────────────────────────────────── */
.section-reasons {
  background: linear-gradient(180deg, var(--bg-deeper) 0%, var(--bg-dark) 100%);
  text-align: center;
}

.jar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.reasons-jar {
  position: relative;
  display: inline-block;
}

.jar-svg-wrap {
  width: 200px;
  filter: drop-shadow(0 8px 32px rgba(56,189,248,0.25));
  cursor: pointer;
  transition: transform 0.2s ease;
}

.reasons-jar.shaking .jar-svg-wrap {
  animation: jarShake 0.5s ease;
}

@keyframes jarShake {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-8deg) translateX(-4px); }
  40% { transform: rotate(8deg) translateX(4px); }
  60% { transform: rotate(-6deg) translateX(-3px); }
  80% { transform: rotate(6deg) translateX(3px); }
}

.jar-shake-btn {
  margin-top: 16px;
  background: rgba(56,189,248,0.12);
  border: 1px solid var(--border-glow);
  border-radius: 50px;
  padding: 12px 28px;
  cursor: pointer;
  transition: var(--transition-bounce);
}

.jar-shake-btn:hover {
  background: rgba(56,189,248,0.25);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(56,189,248,0.3);
}

.jar-shake-btn span {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--accent-medium);
  cursor: pointer;
}

.reason-card-display {
  min-height: 160px;
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 460px;
}

.reason-note {
  background: linear-gradient(145deg, rgba(19,34,56,0.95), rgba(15,26,44,0.98));
  border-radius: 4px;
  padding: 32px 36px;
  max-width: 400px;
  position: relative;
  box-shadow: rgba(0,0,0,0.3) 0 8px 32px, rgba(56,189,248,0.15) 0 0 20px;
  border: 1px solid rgba(112,193,255,0.2);
  transform-origin: top center;
  animation: noteReveal 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes noteReveal {
  from { opacity: 0; transform: rotateX(-20deg) scale(0.85); }
  to { opacity: 1; transform: rotateX(0) scale(1); }
}

.note-line {
  height: 1px;
  background: rgba(56,189,248,0.1);
  margin-bottom: 14px;
}

.note-number {
  position: absolute;
  top: 10px; right: 14px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: rgba(112,193,255,0.5);
}

.note-text {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  color: var(--accent-light);
  line-height: 1.6;
  text-align: center;
  margin-bottom: 12px;
}

.note-heart {
  text-align: center;
  font-size: 20px;
  animation: heartPulse 1s ease-in-out infinite;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.reasons-counter {
  margin-top: 16px;
  font-size: 11px;
  font-weight: 200;
  color: var(--mauve-muted);
  letter-spacing: 0.1em;
}

/* ─── FINAL WISH SECTION ─────────────────────────────────────── */
.section-final {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #1B3150 0%, var(--bg-darkest) 70%);
  padding: 80px 24px;
}

#final-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

.final-flowers-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.final-lights {
  position: absolute; inset: 0;
  pointer-events: none;
}

.glowing-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(56,189,248,0.3) 0%, transparent 70%);
  animation: orbFloat ease-in-out infinite;
}

.final-content {
  position: relative; z-index: 2;
  max-width: 750px;
  padding: 60px 50px;
}

.final-eyebrow {
  font-family: var(--font-body);
  font-weight: 200;
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--accent-rose);
  margin-bottom: 28px;
}

.final-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(52px, 8vw, 80px);
  line-height: 1.15;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--accent-light);
}

.final-accent {
  color: var(--accent-rose);
  font-style: italic;
}

.final-message {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 200;
  color: var(--mauve-soft);
  line-height: 1.9;
  max-width: 560px;
  margin: 0 auto 16px;
}

.final-message:first-of-type {
  font-size: 18px;
  font-weight: 300;
  color: var(--accent-light);
  margin-bottom: 20px;
}

.final-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-rose), transparent);
  margin: 0 auto 32px;
}

.final-promise {
  max-width: 520px;
  margin: 28px auto 36px;
  padding: 24px 32px;
  background: rgba(56,189,248,0.06);
  border: 1px solid rgba(112,193,255,0.15);
  border-radius: 12px;
  position: relative;
}

.final-promise p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  font-weight: 300;
  color: var(--accent-medium);
  line-height: 1.6;
  text-align: center;
  margin: 0;
}

.final-signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  font-weight: 300;
  color: var(--accent-rose);
  margin-bottom: 40px;
  opacity: 0.9;
}

.final-celebrate-btn {
  background: linear-gradient(135deg, rgba(56,189,248,0.2), rgba(2,132,199,0.18));
  border: 1px solid var(--border-glow);
  border-radius: 50px;
  padding: 18px 44px;
  color: var(--accent-light);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  cursor: pointer;
  transition: var(--transition-bounce);
  letter-spacing: 0.05em;
}

.final-celebrate-btn:hover {
  background: linear-gradient(135deg, rgba(56,189,248,0.35), rgba(2,132,199,0.28));
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(56,189,248,0.35);
}

/* ─── FIREWORKS OVERLAY ──────────────────────────────────────── */
#fireworks-overlay {
  position: fixed; inset: 0;
  z-index: 9500;
  pointer-events: all;
  display: flex; align-items: center; justify-content: center;
}

#fireworks-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

.celebration-rain {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -20px;
  border-radius: 2px;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  to {
    transform: translateY(105vh) rotate(720deg);
    opacity: 0;
  }
}

.celebration-message {
  position: relative; z-index: 2;
  text-align: center;
  background: var(--glass-surface);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-soft);
  border-radius: 24px 24px 12px 24px;
  padding: 52px 60px;
  box-shadow: var(--shadow-sm);
  animation: celebIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes celebIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

.celeb-emoji { font-size: 64px; margin-bottom: 16px; animation: cakeWobble 1s ease-in-out infinite; }

@keyframes cakeWobble {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-8deg) scale(1.1); }
  75% { transform: rotate(8deg) scale(1.1); }
}

.celebration-message h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 42px;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.celebration-message p {
  font-size: 15px;
  font-weight: 200;
  color: var(--mauve-soft);
  margin-bottom: 32px;
}

.celeb-close-btn {
  background: rgba(56,189,248,0.15);
  border: 1px solid var(--border-glow);
  border-radius: 50px;
  padding: 12px 32px;
  color: var(--accent-medium);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.celeb-close-btn:hover {
  background: rgba(56,189,248,0.25);
  transform: scale(1.03);
}

/* ─── FLOATING MUSIC BUTTON ──────────────────────────────────── */
.music-float-btn {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(56,189,248,0.18);
  border: 1px solid var(--border-glow);
  backdrop-filter: blur(12px);
  color: var(--accent-rose);
  font-size: 22px;
  cursor: pointer;
  z-index: 8000;
  transition: var(--transition-bounce);
  box-shadow: rgba(0,0,0,0.3) 0 4px 20px;
  display: flex; align-items: center; justify-content: center;
}

.music-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(56,189,248,0.4), rgba(0,0,0,0.3) 0 4px 20px;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .section-title { font-size: 36px; }
  
  .hero-content { padding: 40px 24px; }
  .hero-typewriter { font-size: 17px; min-height: 56px; line-height: 1.5; }
  
  .letter-card { padding: 36px 28px; }
  
  .polaroid-grid { gap: 20px 12px; }
  .polaroid-photo { width: 140px; height: 175px; }
  
  .timeline-vine { left: 24px; }
  .timeline-item { flex-direction: column !important; padding-left: 52px; }
  .timeline-item:nth-child(odd) { transform: translateX(20px); }
  .timeline-item:nth-child(even) { transform: translateX(-20px); }
  .timeline-dot { left: 24px; }
  .timeline-card { width: 100%; border-radius: 12px !important; }
  
  .player-card { padding: 28px 24px; }
  
  .final-content { padding: 40px 24px; }
  
  .pin-card { padding: 40px 28px; }
  .pin-btn { width: 56px; height: 56px; }
  
  .celebration-message { padding: 40px 32px; margin: 20px; }
}

@media (max-width: 480px) {
  section { padding: 60px 16px; }
  .section-title { font-size: 28px; }
  
  .hero-typewriter { font-size: 15px; min-height: 64px; line-height: 1.5; margin-bottom: 20px; }
  
  .bouquet-container { width: 340px; height: 380px; }
  .b-flower-emoji { font-size: 44px; }
  
  .polaroid { padding: 8px; }
  .polaroid-photo { width: 120px; height: 150px; }
  
  .letter-card { padding: 28px 20px; }
  .letter-para { font-size: 13px; }
  
  .player-container { gap: 14px; }
}

/* ─── UTILITY ────────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.1); }
  66% { transform: translate(-15px, -20px) scale(0.9); }
}

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