:root {
  --bg-darkest: #3D2E24;
  --bg-dark: #4D3E34;
  --bg-mid: #5A4D42;
  --bg-card: rgba(77, 62, 52, 0.5);
  --gold: #D4A853;
  --gold-light: #F5E6C8;
  --gold-glow: rgba(212, 168, 83, 0.35);
  --green: #8FAF7F;
  --green-light: #A8C88A;
  --pink: #E8A0B4;
  --pink-light: #F0C0CC;
  --text-primary: #FDF8F0;
  --text-muted: #D0C0B0;
  --text-gold: #E8C878;
  --border-subtle: rgba(212, 168, 83, 0.18);
  --font-heading: 'Great Vibes', cursive;
  --font-body: 'Cormorant Infant', Georgia, serif;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-darkest);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Three.js Canvas ── */
#three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* ════════════════════════════════════════════
   ENTRY OVERLAY
   ════════════════════════════════════════════ */
#entry-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: radial-gradient(ellipse at center 40%, #4D3E34 0%, #3D2E24 50%, #2A201A 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.8s cubic-bezier(0.77, 0, 0.18, 1);
}

#entry-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ── Text Shimmer ── */
@keyframes textShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.letter-title {
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 25%, #FFF5E0 50%, var(--gold-light) 75%, var(--gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 4s ease-in-out infinite;
}

/* Letter */
.entry-letter {
  position: relative;
  width: 340px;
  height: 460px;
  perspective: 1400px;
  z-index: 2;
}

.letter-card {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #5A4D42, #3D2E24);
  border: 1px solid rgba(212, 168, 83, 0.3);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 36px;
  backface-visibility: hidden;
  transition: transform 0.7s cubic-bezier(0.86, 0, 0.07, 1);
  box-shadow:
    0 0 80px rgba(212, 168, 83, 0.08),
    inset 0 1px 0 rgba(212, 168, 83, 0.1),
    0 0 2px rgba(212, 168, 83, 0.05);
}

.letter-card::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 18px;
  border: 1px solid rgba(212, 168, 83, 0.06);
  pointer-events: none;
}

.letter-card-front {
  transform: rotateX(0deg);
}

.letter-card-back {
  transform: rotateX(180deg);
  background: linear-gradient(160deg, #3D2E24, #5A4D42);
}

#entry-overlay.tapped .letter-card-front {
  transform: rotateX(-180deg);
}

#entry-overlay.tapped .letter-card-back {
  transform: rotateX(0deg);
}

.letter-seal {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--gold);
  margin-bottom: 28px;
  background: radial-gradient(circle at 40% 40%, rgba(212,168,83,0.12), transparent);
  box-shadow: 0 0 30px rgba(212,168,83,0.06);
  animation: sealGlow 3s ease-in-out infinite alternate;
}

@keyframes sealGlow {
  0% { box-shadow: 0 0 20px rgba(212,168,83,0.04); border-color: var(--gold); }
  100% { box-shadow: 0 0 40px rgba(212,168,83,0.12); border-color: var(--gold-light); }
}

.letter-title {
  font-family: var(--font-heading);
  font-size: 34px;
  color: var(--gold);
  text-align: center;
  line-height: 1.3;
  margin-bottom: 8px;
  -webkit-text-fill-color: transparent;
}

.letter-sub {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

.letter-divider {
  width: 50px;
  height: 1px;
  background: var(--gold);
  opacity: 0.3;
  margin: 18px 0;
}

.letter-inside-title {
  font-family: var(--font-heading);
  font-size: 48px;
  color: var(--gold);
  text-align: center;
  line-height: 1.2;
}

.letter-inside-sub {
  font-size: 17px;
  color: var(--text-primary);
  text-align: center;
  margin-top: 8px;
  font-weight: 300;
}

.letter-inside-date {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 18px;
  letter-spacing: 0.1em;
}

/* Glow behind letter */
.entry-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(212,168,83,0.2) 0%, rgba(232,160,180,0.1) 30%, rgba(212,168,83,0.04) 50%, transparent 70%);
  animation: entryGlowPulse 3s ease-in-out infinite alternate;
  pointer-events: none;
}

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

/* Bamboo behind letter */
.entry-bamboo-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 75%;
  overflow: hidden;
  opacity: 0.25;
}

.entry-bamboo-stalk {
  position: absolute;
  bottom: -5%;
  width: 5px;
  background: linear-gradient(to top, transparent, var(--green-light), var(--green));
  border-radius: 2px;
  transform-origin: bottom center;
}

.entry-bamboo-stalk:nth-child(1) { left: 7%; height: 70%; animation: bambooSway 4s ease-in-out infinite; }
.entry-bamboo-stalk:nth-child(2) { left: 18%; height: 85%; animation: bambooSway 5s ease-in-out infinite 0.5s; }
.entry-bamboo-stalk:nth-child(3) { left: 28%; height: 60%; animation: bambooSway 3.5s ease-in-out infinite 1s; }
.entry-bamboo-stalk:nth-child(4) { left: 40%; height: 90%; animation: bambooSway 4.5s ease-in-out infinite 0.3s; }
.entry-bamboo-stalk:nth-child(5) { left: 50%; height: 75%; animation: bambooSway 5.5s ease-in-out infinite 0.8s; }
.entry-bamboo-stalk:nth-child(6) { left: 60%; height: 65%; animation: bambooSway 3.8s ease-in-out infinite 0.6s; }
.entry-bamboo-stalk:nth-child(7) { left: 72%; height: 82%; animation: bambooSway 4.2s ease-in-out infinite 0.2s; }
.entry-bamboo-stalk:nth-child(8) { left: 85%; height: 70%; animation: bambooSway 5.1s ease-in-out infinite 0.9s; }

.entry-bamboo-stalk::before {
  content: '';
  position: absolute;
  left: -3px;
  width: 11px;
  height: 3px;
  background: var(--green-light);
  border-radius: 2px;
  opacity: 0.5;
}

.entry-bamboo-stalk:nth-child(1)::before { top: 30%; }
.entry-bamboo-stalk:nth-child(2)::before { top: 50%; }
.entry-bamboo-stalk:nth-child(3)::before { top: 22%; }
.entry-bamboo-stalk:nth-child(4)::before { top: 55%; }
.entry-bamboo-stalk:nth-child(5)::before { top: 35%; }
.entry-bamboo-stalk:nth-child(6)::before { top: 45%; }
.entry-bamboo-stalk:nth-child(7)::before { top: 40%; }
.entry-bamboo-stalk:nth-child(8)::before { top: 25%; }

/* Extra floating petals */
.entry-petal {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50% 0 50% 0;
  background: var(--pink-light);
  opacity: 0.4;
  animation: petalFall 8s ease-in infinite;
  pointer-events: none;
  z-index: 1;
}
.entry-petal:nth-child(1) { left: 5%; animation-delay: 0s; animation-duration: 7s; }
.entry-petal:nth-child(2) { left: 25%; animation-delay: 2s; animation-duration: 9s; }
.entry-petal:nth-child(3) { left: 50%; animation-delay: 1s; animation-duration: 6.5s; }
.entry-petal:nth-child(4) { left: 75%; animation-delay: 3s; animation-duration: 8s; }
.entry-petal:nth-child(5) { left: 90%; animation-delay: 0.5s; animation-duration: 7.5s; }

@keyframes petalFall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.3; }
  100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

@keyframes bambooSway {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(2.2deg); }
}

/* ── Floating Sparkles ── */
.entry-sparkles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 8px var(--gold-light), 0 0 16px rgba(212,168,83,0.3);
  animation: sparkleFloat 6s ease-in-out infinite;
}

.sparkle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 5.2s; }
.sparkle:nth-child(2) { left: 85%; top: 15%; animation-delay: 0.8s; animation-duration: 6.1s; width: 3px; height: 3px; }
.sparkle:nth-child(3) { left: 20%; top: 75%; animation-delay: 1.6s; animation-duration: 4.8s; }
.sparkle:nth-child(4) { left: 75%; top: 70%; animation-delay: 2.4s; animation-duration: 5.7s; width: 5px; height: 5px; }
.sparkle:nth-child(5) { left: 50%; top: 10%; animation-delay: 3.2s; animation-duration: 6.4s; width: 3px; height: 3px; }
.sparkle:nth-child(6) { left: 35%; top: 85%; animation-delay: 0.4s; animation-duration: 5.5s; }
.sparkle:nth-child(7) { left: 65%; top: 30%; animation-delay: 1.2s; animation-duration: 4.3s; width: 6px; height: 6px; }
.sparkle:nth-child(8) { left: 5%; top: 55%; animation-delay: 2s; animation-duration: 5.9s; width: 3px; height: 3px; }
.sparkle:nth-child(9) { left: 92%; top: 50%; animation-delay: 2.8s; animation-duration: 6.7s; }
.sparkle:nth-child(10) { left: 45%; top: 40%; animation-delay: 3.6s; animation-duration: 4.1s; width: 5px; height: 5px; }

@keyframes sparkleFloat {
  0%, 100% { transform: translateY(0) scale(0.5); opacity: 0; }
  20% { opacity: 1; }
  50% { transform: translateY(-30px) scale(1.2); opacity: 0.8; }
  80% { opacity: 0.4; }
  100% { transform: translateY(-60px) scale(0.3); opacity: 0; }
}

/* Moon */
.entry-moon {
  position: absolute;
  top: 4%;
  right: 8%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFF8E8, var(--gold-light) 30%, rgba(212,168,83,0.35) 60%, transparent 70%);
  box-shadow: 0 0 100px rgba(212,168,83,0.3), 0 0 200px rgba(212,168,83,0.15), 0 0 300px rgba(212,168,83,0.08);
  animation: moonPulse 4s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes moonPulse {
  0% { box-shadow: 0 0 80px rgba(212,168,83,0.15), 0 0 160px rgba(212,168,83,0.08), 0 0 240px rgba(212,168,83,0.04); transform: scale(1); }
  100% { box-shadow: 0 0 120px rgba(212,168,83,0.25), 0 0 200px rgba(212,168,83,0.12), 0 0 300px rgba(212,168,83,0.06); transform: scale(1.05); }
}

/* Tap prompt */
.entry-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 3;
  margin-top: 32px;
  animation: promptFadeIn 1.5s 1s both ease-out;
}

.entry-prompt-label {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: promptPulse 2.4s 1.5s ease-in-out infinite;
}

@keyframes promptPulse {
  0%, 100% { opacity: 0.35; letter-spacing: 0.26em; }
  50% { opacity: 0.85; letter-spacing: 0.32em; }
}

.entry-chevron-down {
  width: 14px;
  height: 14px;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg);
  animation: chevronBounce 2.4s 1.7s ease-in-out infinite;
}

@keyframes chevronBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.4; }
  50% { transform: rotate(45deg) translate(4px, 4px); opacity: 1; }
}

@keyframes promptFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Burst overlay canvas */
#burst-canvas {
  position: fixed;
  inset: 0;
  z-index: 99998;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#burst-canvas.active {
  opacity: 1;
}

/* ════════════════════════════════════════════
   MAIN CONTENT
   ════════════════════════════════════════════ */
#main-content {
  position: relative;
  z-index: 1;
  display: none;
}

#main-content.visible {
  display: block;
}

/* ── Section Base ── */
.section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  background: linear-gradient(180deg, rgba(77,62,52,0.35) 0%, rgba(61,46,36,0.5) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}

.section:nth-child(odd) {
  background: linear-gradient(180deg, rgba(90,77,66,0.2) 0%, rgba(77,62,52,0.4) 100%);
}

.section-inner {
  max-width: 680px;
  width: 100%;
  text-align: center;
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 400;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 7vw, 64px);
  color: var(--gold);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-text {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 300;
}

/* ── Floating Hero Orbs ── */
.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(212,168,83,0.35), transparent 70%);
  animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb:nth-child(1) { width: 140px; height: 140px; left: 5%; top: 10%; animation-duration: 7s; animation-delay: 0s; opacity: 0.6; }
.hero-orb:nth-child(2) { width: 100px; height: 100px; right: 10%; top: 50%; animation-duration: 9s; animation-delay: 1.2s; background: radial-gradient(circle at 30% 30%, rgba(232,160,180,0.25), transparent 70%); opacity: 0.5; }
.hero-orb:nth-child(3) { width: 180px; height: 180px; left: 15%; bottom: 5%; animation-duration: 11s; animation-delay: 2.4s; opacity: 0.4; }
.hero-orb:nth-child(4) { width: 80px; height: 80px; right: 25%; top: 15%; animation-duration: 6s; animation-delay: 0.6s; background: radial-gradient(circle at 30% 30%, rgba(143,175,127,0.2), transparent 70%); opacity: 0.5; }
.hero-orb:nth-child(5) { width: 120px; height: 120px; left: 55%; top: 0%; animation-duration: 10s; animation-delay: 3s; opacity: 0.45; }
.hero-orb:nth-child(6) { width: 90px; height: 90px; right: 3%; top: 3%; animation-duration: 8.5s; animation-delay: 1.8s; opacity: 0.55; }
.hero-orb:nth-child(7) { width: 110px; height: 110px; left: 70%; bottom: 15%; animation-duration: 7.5s; animation-delay: 0.3s; opacity: 0.4; }
.hero-orb:nth-child(8) { width: 60px; height: 60px; left: 35%; top: 80%; animation-duration: 9.5s; animation-delay: 2s; background: radial-gradient(circle at 30% 30%, rgba(232,160,180,0.2), transparent 70%); opacity: 0.6; }

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
  25% { transform: translateY(-25px) scale(1.15); opacity: 1; }
  50% { transform: translateY(12px) scale(0.95); opacity: 0.7; }
  75% { transform: translateY(-15px) scale(1.08); opacity: 0.85; }
}

/* ── Hero ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 30%, rgba(212,168,83,0.08) 0%, transparent 60%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  padding: 120px 24px;
}

#hero .section-inner {
  position: relative;
  z-index: 1;
}

.hero-names {
  font-family: var(--font-heading);
  font-size: clamp(36px, 10vw, 140px);
  color: var(--gold);
  line-height: 1.1;
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 20%, #FFF5E0 45%, var(--gold-light) 70%, var(--gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroScaleIn 1.4s 0.3s both cubic-bezier(0.34, 1.56, 0.64, 1),
             textShimmer 5s ease-in-out 2s infinite;
}

@keyframes heroScaleIn {
  from { opacity: 0; transform: scale(0.6) translateY(40px); filter: blur(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

.hero-ampersand {
  display: block;
  font-size: clamp(24px, 5vw, 60px);
  color: var(--pink);
  margin: 4px 0;
  font-family: var(--font-heading);
  opacity: 0.6;
  animation: heroReveal 1.6s 0.6s both ease-out;
}

.hero-date {
  font-family: var(--font-body);
  font-size: clamp(22px, 3vw, 30px);
  color: var(--text-primary);
  margin-top: 14px;
  font-weight: 300;
  letter-spacing: 0.06em;
  animation: heroReveal 1.6s 0.9s both ease-out;
}

.hero-date .gold {
  color: var(--gold);
  font-weight: 500;
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green-light);
  border: 1px solid rgba(143, 175, 127, 0.25);
  padding: 10px 28px;
  border-radius: 100px;
  margin-top: 24px;
  animation: heroReveal 1.6s 1.2s both ease-out;
  position: relative;
  overflow: hidden;
}

.hero-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(168, 200, 138, 0.1), transparent);
  animation: badgeSweep 3s ease-in-out infinite;
}

@keyframes badgeSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

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

/* ── Countdown ── */
.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
}

.countdown-number {
  font-family: var(--font-heading);
  font-size: clamp(52px, 8vw, 72px);
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 40px rgba(212,168,83,0.08);
}

.countdown-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
}

.countdown-sep {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 52px);
  color: var(--pink);
  opacity: 0.35;
  align-self: flex-start;
  padding-top: 6px;
}

/* ── Timeline ── */
.timeline {
  position: relative;
  margin: 40px auto 0;
  max-width: 480px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  position: relative;
  padding: 18px 0;
}

.timeline-item:nth-child(odd) { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }

.timeline-time {
  flex: 1;
  text-align: right;
  font-size: 15px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.timeline-item:nth-child(even) .timeline-time { text-align: left; }

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg-dark);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  margin-top: 5px;
  box-shadow: 0 0 16px rgba(212,168,83,0.15);
}

.timeline-event {
  flex: 1;
  text-align: left;
  font-size: 17px;
  color: var(--text-primary);
  font-weight: 300;
}

.timeline-item:nth-child(even) .timeline-event { text-align: right; }

/* ── Location ── */
.location-card {
  background: rgba(30, 22, 19, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 40px 28px;
  margin-top: 28px;
}

.location-icon {
  font-size: 40px;
  margin-bottom: 12px;
  display: block;
  opacity: 0.5;
}

.location-name {
  font-family: var(--font-heading);
  font-size: clamp(30px, 5vw, 44px);
  color: var(--gold);
  margin-bottom: 4px;
}

.location-address {
  font-size: 17px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.5;
}

/* ── Map ── */
.map-container {
  margin-top: 28px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 16/9;
  background: var(--bg-mid);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Calendar ── */
.calendar-section {
  margin-top: 28px;
}

.calendar-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.calendar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(212, 168, 83, 0.08);
  border: 1px solid rgba(212, 168, 83, 0.2);
  color: var(--text-primary);
  text-decoration: none;
}

.calendar-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.calendar-btn:hover {
  background: rgba(212, 168, 83, 0.18);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.calendar-btn-primary {
  background: linear-gradient(135deg, rgba(212,168,83,0.2), rgba(212,168,83,0.1));
  border-color: var(--gold);
  color: var(--gold-light);
}

.calendar-btn-primary:hover {
  background: linear-gradient(135deg, rgba(212,168,83,0.35), rgba(212,168,83,0.2));
  box-shadow: 0 4px 20px rgba(212,168,83,0.12);
}

/* ── RSVP CTA ── */
.rsvp-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: radial-gradient(circle at 40% 40%, var(--bg-mid), var(--bg-dark));
  cursor: pointer;
  margin: 28px 0 12px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.rsvp-seal::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(212,168,83,0.15);
}

.rsvp-seal:hover {
  transform: scale(1.05);
  border-color: var(--gold-light);
  box-shadow: 0 0 40px rgba(212,168,83,0.12);
}

.rsvp-seal-inner {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--gold);
  text-align: center;
  line-height: 1.2;
}

.rsvp-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  animation: rsvpBounce 2s ease-in-out infinite;
}

.rsvp-arrow-svg {
  width: 22px;
  height: 22px;
}

.rsvp-arrow-svg path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes rsvpBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ════════════════════════════════════════════
   PANDA PHOTO SECTION
   ════════════════════════════════════════════ */
#panda-photo {
  background: linear-gradient(180deg, rgba(30, 22, 19, 0.8), var(--bg-darkest) 60%, var(--bg-darkest));
  overflow: hidden;
}

.panda-frame {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  position: relative;
}

.panda-frame::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 420px;
  height: 420px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212,168,83,0.12) 0%, rgba(232,160,180,0.06) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: pandaGlow 4s ease-in-out infinite alternate;
}

@keyframes pandaGlow {
  from { opacity: 0.5; transform: translate(-50%, -50%) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.panda-polaroid {
  background: rgba(239, 235, 224, 0.08);
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: 4px;
  padding: 14px 14px 24px;
  box-shadow:
    0 0 80px rgba(212, 168, 83, 0.08),
    0 8px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  max-width: 400px;
  width: 100%;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.panda-polaroid:hover {
  transform: scale(1.02);
  box-shadow:
    0 0 80px rgba(212, 168, 83, 0.08),
    0 12px 50px rgba(0, 0, 0, 0.4);
}

.panda-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 922 / 1152;
  overflow: hidden;
  border-radius: 2px;
  background: var(--bg-darkest);
}

.panda-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.panda-polaroid:hover .panda-image {
  transform: scale(1.03);
}

.panda-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.panda-caption-heart {
  color: var(--pink);
  font-size: 14px;
  animation: heartBeat 2s ease-in-out infinite;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
}

/* ── Footer ── */
#footer {
  background: rgba(6, 14, 14, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.footer-names {
  font-family: var(--font-heading);
  font-size: clamp(40px, 6vw, 60px);
  color: var(--gold);
  line-height: 1.2;
}

.footer-details {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer-divider {
  width: 36px;
  height: 1px;
  background: var(--gold);
  margin: 20px auto;
  opacity: 0.35;
}

/* ════════════════════════════════════════════
   RSVP POPUP
   ════════════════════════════════════════════ */
#rsvp-popup {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 14, 14, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 24px;
}

#rsvp-popup.open { opacity: 1; pointer-events: all; }

.rsvp-popup-content {
  background: linear-gradient(160deg, #4D3E34, rgba(61, 46, 36, 0.95));
  box-shadow: 0 0 80px rgba(212,168,83,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 44px 36px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.rsvp-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.rsvp-close:hover { color: var(--gold); background: rgba(212,168,83,0.1); }

.rsvp-popup-title {
  font-family: var(--font-heading);
  font-size: 34px;
  color: var(--gold);
  margin-bottom: 2px;
}

.rsvp-popup-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 400;
}

.form-label .required { color: var(--pink); margin-left: 2px; }

.form-input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(6, 18, 18, 0.6);
  border: 1px solid rgba(212,168,83,0.15);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,168,83,0.06);
}

.form-input::placeholder { color: var(--text-muted); opacity: 0.4; }

.form-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.form-radio input[type="radio"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(212,168,83,0.25);
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

.form-radio input[type="radio"]:checked { border-color: var(--gold); }

.form-radio input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--gold);
  border-radius: 50%;
}

.form-radio-label {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 300;
}

.form-submit {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border: none;
  border-radius: 12px;
  color: var(--bg-darkest);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.04em;
  margin-top: 6px;
}

.form-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212,168,83,0.15);
}

.form-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.form-error {
  color: var(--pink);
  font-size: 12px;
  margin-top: 3px;
  display: none;
}

.form-input.error { border-color: var(--pink); }

/* ════════════════════════════════════════════
   SCROLL REVEAL
   ════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

/* ── Audio Button ── */
#audio-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  color: var(--gold);
}

#audio-btn.visible { opacity: 1; visibility: visible; }

#audio-btn:hover {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(212,168,83,0.08);
}

#audio-btn svg { width: 20px; height: 20px; }

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 768px) {
  .section { padding: 60px 20px; }

  .entry-letter { width: 280px; height: 380px; }
  .entry-moon { width: 90px; height: 90px; top: 4%; right: 6%; }
  .entry-glow { width: 360px; height: 360px; }
  .letter-inside-title { font-size: 36px; }
  .letter-title { font-size: 26px; }
  .letter-card { padding: 32px 24px; }

  .countdown-grid { gap: 12px; }
  .countdown-item { min-width: 56px; }
  .countdown-sep { display: none; }

  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: row;
    padding-left: 36px;
  }
  .timeline-time,
  .timeline-item:nth-child(even) .timeline-time { text-align: left; font-size: 14px; flex: 0 0 auto; }
  .timeline-dot {
    position: absolute;
    left: 10px;
    width: 10px; height: 10px;
  }
  .timeline-event,
  .timeline-item:nth-child(even) .timeline-event { text-align: left; font-size: 15px; }

  .calendar-buttons { flex-direction: column; align-items: center; }
  .rsvp-popup-content { padding: 32px 24px; }

  .panda-polaroid { max-width: 320px; }
  .panda-caption { font-size: 16px; gap: 8px; }
}

@media (max-width: 480px) {
  .entry-letter { width: 240px; height: 340px; }
  .letter-card { padding: 24px 18px; }
  .entry-moon { width: 64px; height: 64px; top: 3%; right: 5%; }
  .entry-glow { width: 280px; height: 280px; }
  .letter-inside-title { font-size: 32px; }
  .letter-title { font-size: 22px; }

  .countdown-grid { gap: 8px; }
  .countdown-item { min-width: 44px; }
  .countdown-number { font-size: 32px; }

  .rsvp-popup-content { padding: 24px 18px; }

  .panda-polaroid { max-width: 280px; }
  .panda-caption { font-size: 14px; flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
