/* ==========================================================================
   CSS STYLESHEET - HAPPY BIRTHDAY KAK MEE (FROM KAK ONA)
   Aesthetic: Midnight Twilight & Rose Champagne Glow
   ========================================================================== */

:root {
  --bg-dark: #0d0b1a;
  --bg-gradient: radial-gradient(circle at 50% 20%, #1f183d 0%, #0d0b1a 70%, #07060e 100%);
  --primary: #ff758c;
  --primary-glow: rgba(255, 117, 140, 0.4);
  --secondary: #ff7eb3;
  --accent-gold: #ffd166;
  --accent-gold-glow: rgba(255, 209, 102, 0.5);
  --accent-purple: #9b5de5;
  --accent-mint: #06d6a0;
  
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
  --card-border-hover: rgba(255, 209, 102, 0.4);
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-gold: #ffe29a;

  --font-main: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --font-handwriting: 'Caveat', cursive;

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  background-image: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ==========================================================================
   CANVAS & BACKGROUND AMBIENCE
   ========================================================================== */
#stars-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  pointer-events: none;
}

/* Floating ambient glowing orbs */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  animation: floatSlow 18s ease-in-out infinite alternate;
}

.orb-1 {
  top: 10%;
  left: -5%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #ff758c, transparent 70%);
}

.orb-2 {
  top: 45%;
  right: -5%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #9b5de5, transparent 70%);
  animation-delay: -6s;
}

.orb-3 {
  bottom: 5%;
  left: 20%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #ffd166, transparent 70%);
  animation-delay: -12s;
}

@keyframes floatSlow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
  100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* ==========================================================================
   FLOATING AUDIO CONTROLLER
   ========================================================================== */
.audio-controller {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 8px;
  background: rgba(18, 14, 38, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 117, 140, 0.2);
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
}

.audio-controller:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(255, 209, 102, 0.5);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 209, 102, 0.3);
}

.vinyl-disc {
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, #333 25%, #111 60%, #000 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #555;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  position: relative;
  transition: transform 0.5s ease;
}

.vinyl-disc.spinning {
  animation: spin 3s linear infinite;
  border-color: var(--accent-gold);
}

.disc-label {
  font-size: 1rem;
}

.audio-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.audio-status {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-gold);
}

.audio-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.sound-toggle-btn {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s;
}

.sound-toggle-btn svg {
  width: 14px;
  height: 14px;
}

.hidden {
  display: none !important;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* ==========================================================================
   MAIN WRAPPER & SECTIONS
   ========================================================================== */
.main-container {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-tag {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 30px;
  background: rgba(255, 117, 140, 0.15);
  border: 1px solid rgba(255, 117, 140, 0.35);
  color: #ff9fb2;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.badge-tag.pulse {
  animation: tagPulse 2.5s infinite;
}

@keyframes tagPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 117, 140, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(255, 117, 140, 0); }
}

.main-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  text-align: center;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.highlight-name {
  background: linear-gradient(135deg, #ff758c 0%, #ffd166 50%, #ff7eb3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 20px rgba(255, 117, 140, 0.3);
  font-style: italic;
}

.subtitle {
  text-align: center;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
}

.subtitle strong {
  color: var(--accent-gold);
}

/* ==========================================================================
   STAGE 1: 3D INTERACTIVE WAX ENVELOPE
   ========================================================================== */
.section-envelope {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: 20px;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.envelope-wrapper {
  position: relative;
  width: 320px;
  height: 220px;
  margin: 20px auto 40px;
  cursor: pointer;
  outline: none;
}

.envelope {
  position: relative;
  width: 100%;
  height: 100%;
  background: #c53047;
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 117, 140, 0.3);
  transition: transform 0.4s var(--ease-spring);
}

.envelope-wrapper:hover .envelope {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 28px 55px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 117, 140, 0.45);
}

.envelope-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #a82337;
  border-radius: 12px;
  z-index: 1;
}

.letter-preview {
  position: absolute;
  top: 10px;
  left: 5%;
  width: 90%;
  height: 90%;
  background: #fffdf7;
  border-radius: 8px;
  z-index: 2;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: #333;
  font-family: var(--font-handwriting);
  font-size: 1.25rem;
  transition: transform 0.7s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.letter-peek-content {
  text-align: center;
  opacity: 0.85;
}

.envelope-front {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  border-radius: 12px;
  clip-path: polygon(0% 100%, 50% 48%, 100% 100%, 0% 100%, 0% 0%, 50% 48%, 0% 100%);
  background: linear-gradient(135deg, #e53852 0%, #b82339 100%);
  pointer-events: none;
}

.envelope-front::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(100% 0%, 50% 48%, 100% 100%);
  background: #d42e47;
}

.envelope-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  clip-path: polygon(0 0, 50% 52%, 100% 0);
  background: #f1445d;
  transform-origin: top center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.wax-seal {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, #e29528 20%, #b86b0f 75%, #844c06 100%);
  border-radius: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  transition: all 0.4s var(--ease-spring);
}

.seal-inner {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff4d1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.seal-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 209, 102, 0.3);
  filter: blur(8px);
  animation: sealPulse 2s infinite;
}

@keyframes sealPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.15); }
}

.envelope-instruction {
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--accent-gold);
  text-align: center;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: bounceHint 2s infinite ease-in-out;
}

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

/* Envelope Opened State */
.envelope-wrapper.is-opened .envelope-top {
  transform: rotateX(180deg);
  z-index: 0;
}

.envelope-wrapper.is-opened .wax-seal {
  opacity: 0;
  transform: translate(-50%, -80px) scale(0.4);
  pointer-events: none;
}

.envelope-wrapper.is-opened .letter-preview {
  transform: translateY(-90px);
}

/* ==========================================================================
   REVEALED CONTENT CONTAINER
   ========================================================================== */
.revealed-content {
  display: none;
  width: 100%;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.revealed-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Common Section Styling */
.section-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(255, 209, 102, 0.15);
  border: 1px solid rgba(255, 209, 102, 0.3);
  color: var(--accent-gold);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  text-align: center;
  margin-bottom: 10px;
  color: #fff;
}

.section-subtext {
  text-align: center;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 36px;
  font-size: 1rem;
}

/* ==========================================================================
   STAGE 2: BIRTHDAY CAKE & MAKE A WISH
   ========================================================================== */
.section-cake {
  margin: 60px 0 80px;
  text-align: center;
}

.cake-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 30px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.cake-container {
  position: relative;
  width: 260px;
  height: 250px;
  margin: 20px auto 30px;
  cursor: pointer;
  outline: none;
  transition: transform 0.3s ease;
}

.cake-container:hover {
  transform: scale(1.03);
}

/* Candles */
.candles-rack {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 36px;
  z-index: 10;
}

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

.candle-body {
  width: 14px;
  height: 48px;
  background: repeating-linear-gradient(
    45deg,
    #ffd166,
    #ffd166 6px,
    #ff758c 6px,
    #ff758c 12px
  );
  border-radius: 4px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4), 0 2px 6px rgba(0,0,0,0.3);
}

/* Candle Flame */
.flame {
  position: absolute;
  top: -26px;
  width: 16px;
  height: 26px;
  background: radial-gradient(ellipse at 50% 80%, #ffffff 0%, #fffb91 30%, #ff8a00 70%, rgba(255, 60, 0, 0) 100%);
  border-radius: 50% 50% 20% 20% / 60% 60% 40% 40%;
  filter: drop-shadow(0 0 12px #ffb703) drop-shadow(0 0 24px #fb8500);
  animation: flameFlicker 1.2s infinite ease-in-out alternate;
  transform-origin: bottom center;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.candle.c-2 .flame {
  animation-duration: 0.9s;
  animation-delay: -0.3s;
}

.candle.c-3 .flame {
  animation-duration: 1.4s;
  animation-delay: -0.6s;
}

@keyframes flameFlicker {
  0% { transform: scale(1) rotate(-2deg); }
  35% { transform: scale(1.08, 0.95) rotate(2deg); }
  70% { transform: scale(0.95, 1.05) rotate(-1deg); }
  100% { transform: scale(1.04, 1) rotate(1deg); }
}

/* Smoke effect after blown */
.smoke {
  position: absolute;
  top: -12px;
  width: 8px;
  height: 8px;
  background: rgba(200, 200, 200, 0.6);
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0;
  pointer-events: none;
}

.candle.blown .flame {
  opacity: 0;
  transform: scale(0.2) translateY(-10px);
}

.candle.blown .smoke {
  animation: smokeAscend 1.8s forwards ease-out;
}

@keyframes smokeAscend {
  0% { opacity: 0.8; transform: translate(0, 0) scale(1); }
  50% { opacity: 0.4; transform: translate(-6px, -24px) scale(2); }
  100% { opacity: 0; transform: translate(10px, -50px) scale(3.5); }
}

/* Cake Tiers */
.cake-tier {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 12px;
  box-shadow: inset 0 3px 6px rgba(255, 255, 255, 0.3), 0 6px 12px rgba(0, 0, 0, 0.3);
}

.tier-top {
  top: 60px;
  width: 140px;
  height: 60px;
  background: linear-gradient(180deg, #ffccd5 0%, #ff8fa3 100%);
  z-index: 5;
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding-top: 4px;
}

.strawberry {
  font-size: 1.2rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.frosting-drip {
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 12px;
  background: #ffffff;
  border-radius: 0 0 10px 10px;
  opacity: 0.9;
}

.tier-mid {
  top: 110px;
  width: 190px;
  height: 65px;
  background: linear-gradient(180deg, #fff0f3 0%, #ffb3c1 100%);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cream-decorations {
  font-size: 0.9rem;
  display: flex;
  gap: 16px;
  opacity: 0.9;
}

.tier-bottom {
  top: 165px;
  width: 240px;
  height: 65px;
  background: linear-gradient(180deg, #ffc2d1 0%, #ff758c 100%);
  z-index: 3;
}

.cake-plate {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 275px;
  height: 20px;
  background: linear-gradient(180deg, #e9ecef 0%, #adb5bd 100%);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  border-bottom: 3px solid #6c757d;
}

.wish-status-box {
  margin: 10px 0 24px;
  padding: 10px 20px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-block;
  font-size: 0.95rem;
  color: var(--accent-gold);
}

.wish-indicator.granted {
  color: #55efc4;
  font-weight: 600;
  animation: glowPulse 1.5s infinite alternate;
}

@keyframes glowPulse {
  0% { text-shadow: 0 0 5px rgba(85, 239, 196, 0.5); }
  100% { text-shadow: 0 0 15px rgba(85, 239, 196, 0.9); }
}

/* Action Buttons */
.action-buttons-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  padding: 12px 28px;
  border-radius: 30px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s var(--ease-spring);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 117, 140, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(255, 117, 140, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* ==========================================================================
   STAGE 3: THE HEARTFELT LETTER FROM KAK ONA
   ========================================================================== */
.section-letter {
  margin: 70px 0;
  width: 100%;
}

.parchment-letter {
  position: relative;
  background: #fdfaf3;
  color: #2b2420;
  padding: 50px 40px;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 35px rgba(255, 209, 102, 0.25);
  border: 1px solid rgba(212, 175, 55, 0.4);
  background-image: 
    radial-gradient(#eedcb5 0.75px, transparent 0.75px),
    radial-gradient(#eedcb5 0.75px, #fdfaf3 0.75px);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
}

.letter-stamp {
  position: absolute;
  top: 30px;
  right: 35px;
  border: 2px dashed #b8860b;
  padding: 6px 14px;
  border-radius: 8px;
  text-align: center;
  transform: rotate(5deg);
  background: rgba(255, 250, 240, 0.8);
}

.letter-stamp span {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #7d601b;
  letter-spacing: 1px;
}

.letter-stamp strong {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: #c53047;
}

/* Polaroid Snapshot pinned to letter */
.letter-polaroid-clip {
  position: absolute;
  top: 24px;
  right: 140px;
  background: #ffffff;
  padding: 6px 6px 10px 6px;
  border-radius: 3px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.12);
  transform: rotate(-4deg);
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease;
  z-index: 5;
  outline: none;
}

.letter-polaroid-clip:hover,
.letter-polaroid-clip:focus-visible {
  transform: rotate(0deg) scale(1.08) translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.32), 0 0 20px rgba(255, 117, 140, 0.45);
}

.polaroid-pin {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.15rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
  z-index: 2;
}

.polaroid-thumb-img {
  width: 66px;
  height: 82px;
  border-radius: 2px;
  overflow: hidden;
  background: #2b2420;
}

.polaroid-thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.polaroid-thumb-caption {
  display: block;
  font-family: var(--font-handwriting);
  font-size: 0.9rem;
  color: #3d342f;
  text-align: center;
  margin-top: 3px;
  line-height: 1.1;
  font-weight: 700;
}

.letter-header {
  margin-bottom: 26px;
  border-bottom: 1px solid rgba(139, 69, 19, 0.15);
  padding-bottom: 16px;
}

.letter-date {
  font-size: 0.85rem;
  color: #8c7b70;
  display: block;
  margin-bottom: 6px;
}

.letter-salutation {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: #892837;
}

.letter-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #3d342f;
}

.letter-body p {
  margin-bottom: 18px;
}

.blessings-list {
  list-style: none;
  margin: 20px 0 24px;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blessings-list li {
  position: relative;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.7);
  border-left: 4px solid #ff758c;
  border-radius: 8px;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.blessings-list li strong {
  color: #892837;
}

.letter-signature {
  margin-top: 36px;
  text-align: right;
  padding-top: 16px;
  border-top: 1px solid rgba(139, 69, 19, 0.15);
}

.signature-title {
  font-size: 0.95rem;
  color: #7d6e65;
  margin-bottom: 4px;
}

.handwritten-name {
  font-family: var(--font-handwriting);
  font-size: 2.2rem;
  color: #c53047;
  font-weight: 700;
  display: inline-block;
  transform: rotate(-3deg);
}

.letter-decoration-corner {
  position: absolute;
  font-size: 2rem;
  pointer-events: none;
  opacity: 0.6;
}

.letter-decoration-corner.top-left {
  top: 15px;
  left: 20px;
}

.letter-decoration-corner.bottom-right {
  bottom: 15px;
  right: 20px;
}

/* ==========================================================================
   STAGE 4: SWEET MEMORIES POLAROID GALLERY
   ========================================================================== */
.section-gallery {
  margin: 70px 0;
  width: 100%;
  text-align: center;
  position: relative;
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: -10px auto 35px;
  flex-wrap: wrap;
}

.gallery-count-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 18px;
  border-radius: 30px;
  background: rgba(255, 209, 102, 0.12);
  border: 1px solid rgba(255, 209, 102, 0.35);
  color: var(--accent-gold);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.btn-gallery-shuffle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.28s var(--ease-spring);
}

.btn-gallery-shuffle:hover {
  background: rgba(255, 117, 140, 0.28);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 117, 140, 0.35);
}

.polaroid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 36px 24px;
  width: 100%;
  padding: 20px 8px 30px;
}

.polaroid-card {
  position: relative;
  background: #ffffff;
  padding: 14px 14px 22px 14px;
  border-radius: 4px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 3px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease, z-index 0.1s;
  outline: none;
  display: flex;
  flex-direction: column;
}

/* Staggered organic tilt angles */
.polaroid-card:nth-child(1) { transform: rotate(-2.8deg); }
.polaroid-card:nth-child(2) { transform: rotate(2.2deg); }
.polaroid-card:nth-child(3) { transform: rotate(-1.6deg); }
.polaroid-card:nth-child(4) { transform: rotate(2.6deg); }
.polaroid-card:nth-child(5) { transform: rotate(-2.2deg); }
.polaroid-card:nth-child(6) { transform: rotate(1.8deg); }
.polaroid-card:nth-child(7) { transform: rotate(-1.8deg); }
.polaroid-card:nth-child(8) { transform: rotate(2.4deg); }
.polaroid-card:nth-child(9) { transform: rotate(-1.4deg); }

.polaroid-card:hover,
.polaroid-card:focus-visible {
  transform: translateY(-12px) scale(1.04) rotate(0deg) !important;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.65), 0 0 32px rgba(255, 117, 140, 0.55);
  z-index: 25;
}

/* Masking tape on top of polaroids */
.washi-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 24px;
  background: rgba(255, 209, 102, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  border-left: 3px dashed rgba(0, 0, 0, 0.1);
  border-right: 3px dashed rgba(0, 0, 0, 0.1);
  z-index: 2;
  opacity: 0.9;
}

.polaroid-card:nth-child(3n+1) .washi-tape {
  background: rgba(255, 117, 140, 0.65);
  transform: translateX(-50%) rotate(-2deg);
}

.polaroid-card:nth-child(3n+2) .washi-tape {
  background: rgba(255, 209, 102, 0.75);
  transform: translateX(-50%) rotate(2.5deg);
}

.polaroid-card:nth-child(3n+3) .washi-tape {
  background: rgba(155, 93, 229, 0.6);
  transform: translateX(-50%) rotate(-1deg);
}

.polaroid-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 3px;
  overflow: hidden;
  background: #181424;
}

.polaroid-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.polaroid-card:hover .polaroid-frame img,
.polaroid-card:focus-visible .polaroid-frame img {
  transform: scale(1.06);
}

.polaroid-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 11, 26, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.polaroid-card:hover .polaroid-overlay,
.polaroid-card:focus-visible .polaroid-overlay {
  opacity: 1;
}

.zoom-badge {
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.94);
  color: #1a162b;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  transform: translateY(6px);
  transition: transform 0.3s var(--ease-spring);
}

.polaroid-card:hover .zoom-badge,
.polaroid-card:focus-visible .zoom-badge {
  transform: translateY(0);
}

.polaroid-caption {
  margin-top: 14px;
  padding: 0 4px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.polaroid-caption p {
  font-family: var(--font-handwriting);
  font-size: 1.35rem;
  color: #2b2320;
  line-height: 1.25;
  font-weight: 600;
  margin: 0;
  flex: 1;
  text-align: left;
}

.polaroid-sticker {
  font-size: 1.35rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

/* ==========================================================================
   STAGE 5: 3D INTERACTIVE FLIP CARDS
   ========================================================================== */
.section-cards {
  margin: 60px 0;
  width: 100%;
  text-align: center;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
  width: 100%;
  margin-top: 20px;
}

.flip-card {
  background-color: transparent;
  height: 230px;
  perspective: 1000px;
  cursor: pointer;
  outline: none;
}

.flip-card-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;
  border-radius: 18px;
}

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

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  border: 1px solid var(--card-border);
}

.flip-card-front {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: border-color 0.3s;
}

.flip-card-front:hover {
  border-color: var(--card-border-hover);
}

.card-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
  transition: transform 0.3s var(--ease-spring);
}

.flip-card:hover .card-icon {
  transform: scale(1.15) rotate(5deg);
}

.flip-card-front h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
}

.tap-hint {
  font-size: 0.75rem;
  color: var(--text-gold);
  background: rgba(255, 209, 102, 0.1);
  padding: 4px 10px;
  border-radius: 12px;
}

.flip-card-back {
  background: linear-gradient(145deg, rgba(35, 26, 68, 0.95), rgba(20, 15, 42, 0.95));
  border-color: rgba(255, 117, 140, 0.35);
  transform: rotateY(180deg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.flip-card-back h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--accent-gold);
  margin-bottom: 10px;
}

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

/* Card Themes */
.card-theme-1 { background: radial-gradient(circle at top, rgba(255, 117, 140, 0.15), rgba(255, 255, 255, 0.04)); }
.card-theme-2 { background: radial-gradient(circle at top, rgba(155, 93, 229, 0.15), rgba(255, 255, 255, 0.04)); }
.card-theme-3 { background: radial-gradient(circle at top, rgba(6, 214, 160, 0.15), rgba(255, 255, 255, 0.04)); }
.card-theme-4 { background: radial-gradient(circle at top, rgba(255, 209, 102, 0.15), rgba(255, 255, 255, 0.04)); }

/* ==========================================================================
   STAGE 5: BALLOONS CELEBRATION GAME
   ========================================================================== */
.section-balloons {
  margin: 60px 0;
  width: 100%;
  text-align: center;
}

.balloon-score-board {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 1rem;
  color: var(--text-gold);
}

.score-progress-bar {
  width: 220px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.score-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ff758c, #ffd166);
  border-radius: 10px;
  transition: width 0.4s ease;
}

.balloon-sky {
  position: relative;
  width: 100%;
  height: 280px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 20px 10px;
}

.interactive-balloon {
  position: relative;
  width: 65px;
  height: 80px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset -4px -6px 10px rgba(0, 0, 0, 0.25), 0 8px 20px rgba(0, 0, 0, 0.3);
  animation: balloonFloat 4s ease-in-out infinite alternate;
  transition: transform 0.2s;
  user-select: none;
}

.interactive-balloon:hover {
  transform: scale(1.12);
}

.interactive-balloon::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 24px;
  background: rgba(255, 255, 255, 0.4);
}

.balloon-knot {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 4px;
  background: inherit;
  border-radius: 2px;
}

.balloon-text {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

/* Popped balloon state */
.interactive-balloon.popped {
  pointer-events: none;
  animation: popEffect 0.35s forwards ease-out;
}

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

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

.balloon-reward-message {
  margin-top: 24px;
  padding: 16px 24px;
  background: rgba(6, 214, 160, 0.15);
  border: 1px solid rgba(6, 214, 160, 0.35);
  border-radius: 16px;
  color: #55efc4;
  font-size: 1.05rem;
  animation: fadeInDown 0.6s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   STAGE 6: FINALE & ACTIONS
   ========================================================================== */
.section-finale {
  margin: 60px 0 30px;
  width: 100%;
}

.finale-card {
  padding: 45px 30px;
  background: linear-gradient(135deg, rgba(255, 117, 140, 0.15) 0%, rgba(155, 93, 229, 0.15) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  text-align: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

.finale-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  animation: bounceHint 2s infinite ease-in-out;
}

.finale-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  margin-bottom: 14px;
  color: #fff;
}

.finale-desc {
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 30px;
  font-size: 1.05rem;
}

.reply-action-box {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
}

.wa-icon {
  width: 20px;
  height: 20px;
}

.btn-celebrate {
  background: linear-gradient(135deg, #ffd166 0%, #ff8a00 100%);
  color: #3d2300;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(255, 209, 102, 0.35);
}

.btn-celebrate:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 209, 102, 0.5);
}

/* ==========================================================================
   FOOTER & TOAST
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 30px 20px 50px;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer strong {
  color: var(--accent-gold);
}

.copyright {
  font-size: 0.8rem;
  margin-top: 6px;
  opacity: 0.6;
}

.toast-message {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(20, 16, 40, 0.95);
  border: 1px solid var(--accent-gold);
  color: #fff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  transition: transform 0.4s var(--ease-spring), opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}

.toast-message.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   PHOTO LIGHTBOX MODAL
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 18, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.lightbox-dialog {
  position: relative;
  z-index: 10;
  max-width: 580px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: lightboxPopIn 0.35s var(--ease-spring);
}

@keyframes lightboxPopIn {
  0% { transform: scale(0.92) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.lightbox-close-btn {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease-spring);
}

.lightbox-close-btn:hover {
  background: var(--primary);
  transform: rotate(90deg) scale(1.08);
  box-shadow: 0 0 20px var(--primary-glow);
}

.lightbox-media-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.lightbox-nav-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
  flex-shrink: 0;
}

.lightbox-nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.12);
  box-shadow: 0 0 22px var(--primary-glow);
}

.lightbox-image-wrapper {
  position: relative;
  max-width: 430px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(255, 117, 140, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: #0d0b1a;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-img {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  display: block;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.lightbox-img.switching {
  opacity: 0.2;
  transform: scale(0.96);
}

.lightbox-love-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-heart {
  position: absolute;
  font-size: 1.8rem;
  pointer-events: none;
  animation: floatHeartAnim 1.4s ease-out forwards;
}

@keyframes floatHeartAnim {
  0% {
    transform: translateY(0) scale(0.6);
    opacity: 1;
  }
  100% {
    transform: translateY(-160px) scale(1.3) rotate(20deg);
    opacity: 0;
  }
}

.lightbox-details {
  width: 100%;
  max-width: 430px;
  margin-top: 14px;
  padding: 12px 18px;
  background: rgba(22, 18, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lightbox-meta {
  flex: 1;
}

.lightbox-counter {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 3px;
}

.lightbox-caption {
  font-family: var(--font-handwriting);
  font-size: 1.35rem;
  color: #fff;
  line-height: 1.2;
  margin: 0;
}

.lightbox-love-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 117, 140, 0.2);
  border: 1px solid rgba(255, 117, 140, 0.4);
  color: #fff;
  border-radius: 20px;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.25s var(--ease-spring);
  flex-shrink: 0;
}

.lightbox-love-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 117, 140, 0.5);
}

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

/* ==========================================================================
   RESPONSIVE OPTIMIZATION
   ========================================================================== */
@media (max-width: 640px) {
  .main-container {
    padding: 30px 14px 60px;
  }
  
  .parchment-letter {
    padding: 36px 18px;
  }

  .letter-stamp {
    top: 20px;
    right: 18px;
    padding: 4px 10px;
  }

  .letter-polaroid-clip {
    position: static;
    display: table;
    margin: 0 auto 20px;
    transform: rotate(-2deg);
  }

  .letter-salutation {
    font-size: 1.45rem;
  }

  .envelope-wrapper {
    width: 280px;
    height: 195px;
  }

  .cake-container {
    width: 220px;
    height: 220px;
  }

  .audio-controller {
    top: 12px;
    right: 12px;
    padding: 6px 10px 6px 6px;
  }

  .audio-sub {
    display: none;
  }

  .polaroid-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 28px 16px;
    padding: 10px 4px 20px;
  }

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

  .polaroid-caption p {
    font-size: 1.18rem;
  }

  .lightbox-media-container {
    gap: 8px;
  }

  .lightbox-nav-btn {
    width: 38px;
    height: 38px;
  }

  .lightbox-close-btn {
    top: -42px;
    right: 4px;
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .lightbox-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .lightbox-actions {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }

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