/* ==========================================================================
   THEME: BIRTHDAY PASTEL PINK & PEARL WHITE (NO EMOJI, CUTE & SMOOTH)
   ========================================================================== */

:root {
  --pink-deep: #e84a75;
  --pink-primary: #ff6584;
  --pink-soft: #ff8ca3;
  --pink-pastel: #ffbcd0;
  --pink-light: #ffdce6;
  --pink-milk: #fff0f5;
  --pink-cream: #fff8fa;
  --white: #ffffff;

  --text-dark: #3f2330;
  --text-medium: #704757;
  --text-soft: #9c7384;
  --text-subtle: #bf9eac;

  --gold-glow: #ffd166;
  --shadow-pink: rgba(232, 74, 117, 0.18);
  --shadow-pink-strong: rgba(232, 74, 117, 0.28);
  --shadow-card: 0 25px 60px rgba(220, 90, 130, 0.16), 0 10px 24px rgba(255, 255, 255, 0.9) inset;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-cute: 'Caveat', cursive;

  --ease-spring: cubic-bezier(0.18, 1.25, 0.35, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Smooth Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  font-family: var(--font-body);
  color: var(--text-dark);
  background:
    radial-gradient(ellipse at 20% 18%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 240, 245, 0.7) 32%, transparent 62%),
    radial-gradient(ellipse at 82% 22%, rgba(255, 214, 229, 0.85) 0%, rgba(255, 236, 243, 0.45) 42%, transparent 68%),
    radial-gradient(ellipse at 50% 88%, rgba(255, 188, 208, 0.6) 0%, rgba(255, 228, 238, 0.4) 52%, transparent 78%),
    radial-gradient(ellipse at 8% 78%, rgba(232, 195, 246, 0.28) 0%, transparent 55%),
    linear-gradient(135deg, #fffafc 0%, #fff0f5 28%, #ffdbe6 58%, #ffc9dc 82%, #ffb6cf 100%);
  background-size: 220% 220%;
  animation: gradientShift 38s ease-in-out infinite alternate;
  user-select: none;
}

@keyframes gradientShift {
  0%   { background-position: 0% 30%; }
  50%  { background-position: 100% 70%; }
  100% { background-position: 0% 30%; }
}

/* 3D WebGL Background Canvas */
#bg3d {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Fallback floating hearts if WebGL is unavailable */
.bg-fallback {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  display: none;
}

/* Top Navigation Bar */












@media (min-width: 580px) {
  
}









/* Sound Synthesizer Toggle */
.sound-toggle { position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 215, 228, 0.7);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(232, 74, 117, 0.12), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--pink-primary);
  transition: all 0.5s var(--ease-spring);
}

.sound-toggle:hover {
  transform: scale(1.08);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(232, 74, 117, 0.22);
}

.sound-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.45s ease;
}

.sound-toggle .sound-icon-off {
  display: none;
}

.sound-toggle.muted .sound-icon-on {
  display: none;
}

.sound-toggle.muted .sound-icon-off {
  display: block;
  color: var(--text-subtle);
}

/* ==========================================================================
   STAGE & SCENE SYSTEM
   ========================================================================== */

.stage { position: relative; width: 100%; height: 100vh; height: 100dvh; z-index: 10; }

.scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(22px) scale(0.96);
  filter: blur(6px);
  transition: 
    opacity 0.75s var(--ease-smooth),
    transform 0.85s var(--ease-smooth),
    filter 0.75s var(--ease-smooth),
    visibility 0.75s;
  will-change: transform, opacity, filter;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 10px;
}

.scene::-webkit-scrollbar {
  display: none;
}

.scene.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.scene.exit {
  opacity: 0;
  transform: translateY(-20px) scale(0.97);
  filter: blur(5px);
}

/* Cute Badges & Titles */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 195, 215, 0.8);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--pink-deep);
  box-shadow: 0 4px 14px rgba(255, 101, 132, 0.1);
  margin-bottom: 12px;
}

.badge-pill .badge-icon {
  width: 12px;
  height: 12px;
  color: var(--pink-primary);
}

/* Coquette Typography & Shimmering Gradients */
.from-header {
  font-size: 0.8rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--text-muted, #8d6e63);
  margin-bottom: 10px;
  font-weight: 600;
}

.hbd-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(to right, #5d4037, #ff8da1, #5d4037);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 5s linear infinite;
  line-height: 1.15;
  filter: drop-shadow(0 2px 4px rgba(255, 199, 210, 0.5));
  margin-bottom: 8px;
}

.name-wrapper {
  position: relative;
  display: inline-block;
  margin: 8px 0 16px;
}

.pretty-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.2rem, 7.5vw, 5rem);
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(135deg, #5d4037 0%, #ff8da1 50%, #5d4037 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(2px 4px 6px rgba(93, 64, 55, 0.2));
  animation: shine 5s linear infinite;
  position: relative;
  z-index: 1;
  display: inline-block;
}

.name-wrapper::before {
  content: '🌸';
  position: absolute;
  font-size: 1.8rem;
  top: -12px;
  left: -28px;
  transform: rotate(-15deg);
  filter: drop-shadow(0 2px 4px rgba(255, 120, 160, 0.3));
}

.name-wrapper::after {
  content: '🎀';
  position: absolute;
  font-size: 2.2rem;
  bottom: -6px;
  right: -28px;
  transform: rotate(10deg);
  filter: drop-shadow(0 2px 4px rgba(255, 120, 160, 0.3));
}

@keyframes shine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

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

.coquette-card-container {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 10px auto;
}

.card-ribbon {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.6rem;
  z-index: 12;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.12));
  animation: floatRibbon 3.5s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(42px, 6.5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--pink-deep) 0%, var(--pink-primary) 50%, var(--pink-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding: 0 4px;
}

.hero-sub {
  font-size: clamp(13px, 2vw, 16px);
  color: var(--text-medium);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Cute Action Buttons */
.btn-cute-action {
  border: none;
  background: linear-gradient(135deg, #ff7392 0%, #ff5277 100%);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 13px 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(255, 82, 119, 0.38), 0 2px 0 rgba(255, 255, 255, 0.3) inset;
  transition: all 0.55s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.btn-cute-action::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn-cute-action:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 32px rgba(255, 82, 119, 0.48), 0 2px 0 rgba(255, 255, 255, 0.5) inset;
}

.btn-cute-action:hover::before {
  left: 100%;
}

.btn-cute-action:active {
  transform: translateY(1px) scale(0.98);
}

.btn-cute-action svg {
  width: 16px;
  height: 16px;
  transition: transform 0.55s var(--ease-spring);
}

.btn-cute-action:hover svg {
  transform: translateX(4px);
}

.btn-cute-secondary {
  border: 1.5px solid rgba(255, 175, 198, 0.7);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--pink-deep);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(232, 74, 117, 0.1);
  transition: all 0.5s var(--ease-spring);
}

.btn-cute-secondary:hover {
  background: var(--white);
  border-color: var(--pink-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(232, 74, 117, 0.18);
}

.btn-cute-secondary svg {
  width: 15px;
  height: 15px;
}

/* ==========================================================================
   SCENE 1: ENVELOPE (SURAT ULANG TAHUN)
   ========================================================================== */

.scene-envelope {
  gap: 20px;
}

/* Floating Sparkle Vectors */
.decor-sparkle {
  position: absolute;
  color: var(--pink-pastel);
  pointer-events: none;
  animation: floatSparkle 9s ease-in-out infinite;
}

.decor-sparkle svg {
  width: 100%;
  height: 100%;
}

.sp-1 { top: 14%; left: 16%; width: 28px; height: 28px; animation-delay: 0s; color: #ffb3c6; }
.sp-2 { top: 22%; right: 18%; width: 22px; height: 22px; animation-delay: -2s; color: #ffa3ba; }
.sp-3 { bottom: 18%; left: 22%; width: 20px; height: 20px; animation-delay: -4s; color: #ffd6e3; }

@keyframes floatSparkle {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(0.9); opacity: 0.6; }
  50% { transform: translateY(-14px) rotate(18deg) scale(1.15); opacity: 1; }
}

.envelope-wrapper {
  perspective: 1200px;
  margin: 10px auto;
}

.envelope-box {
  position: relative;
  width: 340px;
  height: 220px;
  background: transparent;
  border: none;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-spring), filter 0.5s ease;
  will-change: transform;
}

.envelope-box:hover {
  transform: translateY(-8px) scale(1.02);
}

/* Soft ambient glow below envelope */
.env-glow {
  position: absolute;
  bottom: -22px;
  left: 20px;
  right: 20px;
  height: 30px;
  background: radial-gradient(ellipse at center, rgba(232, 74, 117, 0.3) 0%, transparent 75%);
  filter: blur(14px);
  border-radius: 50%;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.envelope-box:hover .env-glow {
  transform: scale(1.15);
  opacity: 0.85;
}

/* ==========================================================================
   FIXED SITE CORNER DECORATIONS (Vintage TL & Sakura BR)
   ========================================================================== */
.site-corners-wrap {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 15;
  overflow: hidden;
}

.corner-decor {
  position: fixed;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  z-index: 15;
  will-change: transform;
}

.corner-decor-tl {
  top: 0;
  left: 0;
  width: clamp(140px, 20vw, 250px);
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(180, 50, 90, 0.16));
  animation: floatCornerTL 7s ease-in-out infinite alternate;
}

.corner-decor-br {
  bottom: 0;
  right: 0;
  width: clamp(150px, 22vw, 280px);
  height: auto;
  filter: drop-shadow(0 -10px 26px rgba(180, 50, 90, 0.16));
  animation: floatCornerBR 8s ease-in-out infinite alternate;
}

@keyframes floatCornerTL {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(4px, 4px) rotate(1deg); }
}

@keyframes floatCornerBR {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-4px, -4px) rotate(-1deg); }
}

@media (max-width: 768px) {
  .corner-decor-tl {
    width: clamp(100px, 28vw, 150px);
  }
  .corner-decor-br {
    width: clamp(110px, 30vw, 160px);
  }
}

/* ==========================================================================
   DIM BACKDROP FOR CENTERED LETTER
   ========================================================================== */
.letter-dim-backdrop {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(60, 20, 35, 0.5) 0%, rgba(20, 5, 12, 0.72) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

.letter-dim-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Envelope Back Base */
.env-back {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #fff0f5 0%, #ffd1df 45%, #fcaec5 100%);
  border-radius: 16px;
  border: 1.5px solid rgba(255, 235, 245, 0.9);
  box-shadow: 0 16px 36px rgba(220, 80, 120, 0.22);
}

/* ==========================================================================
   CUSTOM BINDER INDEX CARD NOTE (#envLetter)
   ========================================================================== */
.env-letter {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 10px;
  height: 195px;
  aspect-ratio: 490 / 322;
  background-image: url('assets/custom_note_paper.png');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(180, 60, 95, 0.18);
  z-index: 3;
  transform: translateY(12px);
  transition: transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.8s ease;
  pointer-events: none;
  box-sizing: border-box;
  padding: 16% 12% 10% 18%; /* Aligns text neatly with ruled lines and red margin */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
}

.binder-note-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

.note-dear {
  font-family: var(--font-cute);
  font-size: clamp(17px, 3.2vw, 24px);
  font-weight: 700;
  color: #3b202c;
  margin: 0 0 4px 0;
  display: block;
}

.note-dear .recipient-name {
  color: #d81b60;
  text-decoration: underline wavy rgba(216, 27, 96, 0.35);
}

.binder-note-content .typewriter-wrap {
  position: relative;
  flex: 1;
  min-height: 48px;
}

.binder-note-content .letter-text {
  font-family: var(--font-cute);
  font-size: clamp(15px, 2.7vw, 19px);
  line-height: 1.55;
  color: #4a2d39;
  letter-spacing: 0.01em;
  margin: 0;
  display: inline;
}

.typewriter-cursor {
  display: inline-block;
  font-weight: 700;
  color: #d81b60;
  animation: blinkCursor 0.75s infinite;
  margin-left: 2px;
  vertical-align: baseline;
}

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

.note-sign-wrap {
  text-align: right;
  margin-top: auto;
  padding-right: 6px;
}

.note-sign {
  font-family: var(--font-cute);
  font-size: clamp(15px, 2.6vw, 18px);
  font-weight: 700;
  color: #d81b60;
}

.btn-note-next {
  position: absolute;
  bottom: -58px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff3377 0%, #e91e63 100%);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.9);
  padding: 10px 22px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(233, 30, 99, 0.4), 0 2px 0 rgba(255, 255, 255, 0.35) inset;
  transition: all 0.35s var(--ease-spring);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 105;
}

.btn-note-next:hover {
  transform: translateX(-50%) translateY(-2px) scale(1.04);
  box-shadow: 0 14px 30px rgba(233, 30, 99, 0.5);
}

.btn-note-next:active {
  transform: translateX(-50%) scale(0.98);
}

/* Envelope Front Pockets (Pocket Fold - Sized for 340px width) */
.env-front-pocket {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  z-index: 5;
  border-left: 170px solid #f9c2d3;
  border-right: 170px solid #f6b1c7;
  border-top: 120px solid transparent;
  border-bottom: 100px solid #ee98b3;
  border-radius: 0 0 16px 16px;
  pointer-events: none;
}

/* Envelope Flap */
.env-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  z-index: 7;
  border-left: 170px solid transparent;
  border-right: 170px solid transparent;
  border-top: 130px solid #e782a2;
  transform-origin: top center;
  transition: transform 0.95s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* Wax Seal Button (Matching Hot Pink / Paperclip Theme) */
.env-seal {
  position: absolute;
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #ff80ab 40%, #ff4081 75%, #c2185b 100%);
  box-shadow: 0 8px 24px rgba(216, 27, 96, 0.45), 0 2px 4px rgba(255, 255, 255, 0.8) inset;
  z-index: 9;
  display: grid;
  place-items: center;
  transition: transform 0.5s var(--ease-spring), opacity 0.4s ease;
  border: 2px solid rgba(255, 255, 255, 0.85);
  cursor: pointer;
  animation: sealGentlePulse 2.4s ease-in-out infinite;
}

@keyframes sealGentlePulse {
  0%, 100% { transform: translateX(-50%) scale(1); box-shadow: 0 8px 24px rgba(216, 27, 96, 0.45); }
  50% { transform: translateX(-50%) scale(1.08); box-shadow: 0 12px 30px rgba(255, 64, 129, 0.6); }
}

.seal-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 64, 129, 0.5);
  animation: pulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  pointer-events: none;
}

@keyframes pulseRing {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

.seal-inner {
  width: 24px;
  height: 24px;
  color: var(--white);
  display: grid;
  place-items: center;
}

.seal-inner svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 1px 1px rgba(160, 40, 70, 0.4));
}

/* ==========================================================================
   ANIMATION STAGES: UNBOXING & SLIDING TO CENTER
   ========================================================================== */

/* Stage 1: Flap opening */
.envelope-box.is-opening .env-flap,
.envelope-box.is-open .env-flap {
  transform: rotateX(180deg);
  z-index: 2;
}

.envelope-box.is-opening .env-seal,
.envelope-box.is-open .env-seal {
  transform: translateX(-50%) scale(0) rotate(60deg);
  opacity: 0;
  pointer-events: none;
}

/* Stage 2: Letter rising up out of envelope pocket */
.env-letter.is-rising {
  transform: translateY(-110px);
  z-index: 6;
  box-shadow: 0 20px 45px rgba(200, 70, 110, 0.25);
}

/* Stage 3: Letter gliding to fixed center stage */
.env-letter.is-centered {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) scale(1) !important;
  width: min(520px, 92vw) !important;
  height: auto !important;
  aspect-ratio: 490 / 322 !important;
  max-height: 84vh;
  box-shadow: 0 32px 75px rgba(180, 40, 80, 0.38), 0 4px 14px rgba(0, 0, 0, 0.08) !important;
  z-index: 100 !important;
  pointer-events: auto !important;
  padding: 15% 12% 10% 18% !important;
  transition: all 0.95s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.env-letter.is-centered .btn-note-next {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.5s ease 0.5s, transform 0.35s var(--ease-spring);
}

.envelope-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cute-micro-note {
  font-family: var(--font-cute);
  font-size: 15px;
  color: var(--text-soft);
}

/* ==========================================================================
   SCENE 2: CARD & BENTO BIRTHDAY CAKE
   ========================================================================== */

.card-glass-panel {
  width: min(520px, 94vw);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 248, 251, 0.88) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 28px;
  padding: 44px 36px 32px;
  box-shadow: var(--shadow-card);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  position: relative;
  text-align: center;
  margin: auto;
}

.ribbon-tag {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(110deg, #ff6584 0%, #ff85a2 100%);
  color: var(--white);
  padding: 8px 24px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(255, 101, 132, 0.35);
  white-space: nowrap;
}

.ribbon-tag svg {
  width: 11px;
  height: 11px;
}

.card-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--pink-soft);
  margin-bottom: 8px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.card-title em {
  font-style: normal;
  color: var(--pink-deep);
}

.card-copy {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-medium);
  max-width: 400px;
  margin: 0 auto 16px;
}

/* Bento Birthday Cake */
.bento-cake-container {
  position: relative;
  width: 200px;
  height: 170px;
  margin: 10px auto 20px;
}

.cake-plate {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 190px;
  height: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fae2e8 100%);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(220, 80, 110, 0.22), 0 2px 0 rgba(255, 255, 255, 0.9) inset;
}

.cake-body-wrap {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 148px;
  height: 96px;
}

.cake-tier-base {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: linear-gradient(180deg, #ff9bb2 0%, #f47d9a 100%);
  border-radius: 12px 12px 24px 24px;
  box-shadow: 0 8px 20px rgba(220, 70, 100, 0.25);
  overflow: hidden;
}

.cream-drips {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  background: #ffffff;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 3px 6px rgba(230, 80, 120, 0.15);
}

.cream-drips::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 10px;
  background: radial-gradient(circle at 10px 0, #ffffff 10px, transparent 11px);
  background-size: 20px 10px;
}

.cake-texture-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.cake-texture-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  display: block;
}

.cake-tier-top {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  height: 34px;
  background: radial-gradient(ellipse at center, #ffffff 0%, #fff0f5 70%, #ffd6e3 100%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(220, 70, 110, 0.15), inset 0 -3px 6px rgba(255, 160, 185, 0.3);
  z-index: 4;
}

.piped-text {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--pink-primary);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.cake-cream-swirls {
  position: absolute;
  top: 4px;
  left: 6px;
  right: 6px;
  display: flex;
  justify-content: space-between;
  z-index: 6;
  pointer-events: none;
}

.cake-cream-swirls span {
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #ffe6ee 100%);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(200, 60, 90, 0.2);
}

/* Striped Candles */
.candle {
  position: absolute;
  bottom: 84px;
  width: 8px;
  height: 42px;
  z-index: 10;
}

.candle-left {
  left: 48px;
}

.candle-right {
  right: 48px;
}

.candle-stick {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: repeating-linear-gradient(
    -45deg,
    #ffffff,
    #ffffff 4px,
    #ff6b8b 4px,
    #ff6b8b 8px
  );
  box-shadow: 0 2px 6px rgba(200, 50, 80, 0.25);
}

.candle-wick {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 7px;
  background: #553344;
  border-radius: 1px;
}

.candle-flame {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 13px;
  height: 20px;
  background: radial-gradient(circle at 50% 75%, #ffffff 0%, #ffde59 35%, #ff7b25 75%, transparent 100%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: 0 0 14px rgba(255, 180, 50, 0.9), 0 0 28px rgba(255, 120, 50, 0.5);
  animation: flameFlicker 2.2s ease-in-out infinite alternate;
  transform-origin: bottom center;
  transition: transform 0.6s ease, opacity 0.55s ease;
}

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

.candle-smoke {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: rgba(255, 200, 215, 0.6);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

/* Candled Blown State */
.candle.blown .candle-flame {
  opacity: 0;
  transform: translateX(-50%) scale(0.2) translateY(-10px);
}

.candle.blown .candle-smoke {
  animation: smokePuff 1.2s ease-out forwards;
}

@keyframes smokePuff {
  0% { opacity: 0.8; transform: translateX(-50%) translateY(0) scale(1); }
  50% { opacity: 0.5; transform: translateX(calc(-50% + 8px)) translateY(-20px) scale(2.2); }
  100% { opacity: 0; transform: translateX(calc(-50% - 6px)) translateY(-40px) scale(3.5); }
}

/* Wish Banner Pop-up */
.wish-banner {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #fff0f5 0%, #ffe0ea 100%);
  border: 1px solid var(--pink-pastel);
  color: var(--pink-deep);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  margin: 0 auto 16px;
  box-shadow: 0 6px 18px rgba(255, 101, 132, 0.2);
  animation: popIn 0.9s var(--ease-spring);
}

.wish-banner svg {
  width: 16px;
  height: 16px;
  color: var(--pink-primary);
}

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

.cake-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.glow-pulse {
  animation: btnGlow 4.2s ease-in-out infinite;
}

@keyframes btnGlow {
  0%, 100% { box-shadow: 0 10px 25px rgba(255, 82, 119, 0.38); }
  50% { box-shadow: 0 14px 34px rgba(255, 82, 119, 0.55), 0 0 16px rgba(255, 175, 198, 0.6); }
}

.microcopy {
  font-family: var(--font-cute);
  font-size: 16px;
  color: var(--text-soft);
}

/* ==========================================================================
   SCENE 3: PHOTO MEMORIES SCRAPBOOK (GALLERY)
   ========================================================================== */

.gallery-container {
  width: min(920px, 94vw);
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.gallery-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.5vw, 44px);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.gallery-sub {
  font-size: 13.5px;
  color: var(--text-medium);
}

/* Scrapbook Grid of Polaroids */
.scrapbook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px 24px;
  width: 100%;
  max-width: 820px;
  padding: 10px;
  perspective: 1000px;
}

.polaroid-card {
  position: relative;
  background: #ffffff;
  padding: 10px 10px 14px;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(180, 60, 90, 0.14), 0 2px 4px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.65s var(--ease-spring), box-shadow 0.6s ease;
  will-change: transform;
  border: 1px solid rgba(255, 230, 238, 0.8);
}

.polaroid-card:hover {
  transform: translateY(-10px) rotate(0deg) scale(1.05);
  box-shadow: 0 22px 42px rgba(220, 70, 110, 0.28);
  z-index: 10;
}

/* Cute Washi Tape on top */
.washi-tape {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(var(--tape-rot, -2deg));
  width: 60px;
  height: 16px;
  background: rgba(255, 225, 235, 0.85);
  box-shadow: 0 2px 5px rgba(150, 40, 70, 0.12);
  border-left: 2px dashed rgba(255, 175, 198, 0.5);
  border-right: 2px dashed rgba(255, 175, 198, 0.5);
  z-index: 5;
  pointer-events: none;
}

.washi-tape.white-tape {
  background: rgba(255, 255, 255, 0.92);
  border-left-color: rgba(220, 210, 215, 0.7);
  border-right-color: rgba(220, 210, 215, 0.7);
  box-shadow: 0 2px 5px rgba(100, 50, 70, 0.08);
}

.polaroid-img-wrap {
  position: relative;
  width: 100%;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff0f5;
}

.polaroid-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease-smooth);
}

.polaroid-card:hover .polaroid-img-wrap img {
  transform: scale(1.08);
}

.polaroid-meta {
  padding-top: 10px;
  text-align: center;
}

.polaroid-caption {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.polaroid-note {
  font-family: var(--font-cute);
  font-size: 14px;
  color: var(--pink-deep);
  line-height: 1.25;
}

.gallery-footer-action {
  margin-top: 8px;
}

/* ==========================================================================
   SCENE 4: FINAL WISH CARD
   ========================================================================== */

.final-card-panel {
  width: min(540px, 94vw);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 248, 252, 0.9) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 32px;
  padding: 44px 38px 38px;
  box-shadow: var(--shadow-card);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  position: relative;
  text-align: center;
  margin: auto;
}

/* Pulsating Heart Visual */
.final-heart-glow {
  position: relative;
  width: 74px;
  height: 74px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
}

.heart-pulse-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255, 175, 198, 0.35);
  animation: pulseRings 4s ease-out infinite;
}

.heart-pulse-circle.delay {
  animation-delay: 1.4s;
}

@keyframes pulseRings {
  0% { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

.final-heart-svg {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff 0%, #ffe4ec 100%);
  box-shadow: 0 8px 24px rgba(232, 74, 117, 0.3), 0 2px 4px rgba(255, 255, 255, 0.9) inset;
  display: grid;
  place-items: center;
  animation: heartThump 3.4s ease-in-out infinite;
}

.final-heart-svg svg {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 2px 4px rgba(232, 74, 117, 0.3));
}

@keyframes heartThump {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.14); }
  30% { transform: scale(1); }
  45% { transform: scale(1.08); }
  60% { transform: scale(1); }
}

.final-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4.5vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.final-message {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-medium);
  max-width: 440px;
  margin: 0 auto 16px;
}

.final-signature {
  font-family: var(--font-cute);
  font-size: 22px;
  font-weight: 700;
  color: var(--pink-deep);
  margin-bottom: 24px;
}

.final-buttons-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ==========================================================================
   PHOTO MODAL / LIGHTBOX
   ========================================================================== */

.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
  padding: 20px;
}

.photo-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(60, 20, 35, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-card {
  position: relative;
  z-index: 2;
  background: var(--white);
  padding: 16px;
  border-radius: 20px;
  max-width: min(500px, 92vw);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.6s var(--ease-spring);
  text-align: center;
}

.photo-modal.is-open .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--pink-deep);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transition: transform 0.45s ease;
}

.modal-close:hover {
  transform: scale(1.12);
}

.modal-img-wrap {
  width: 100%;
  max-height: 60vh;
  border-radius: 14px;
  overflow: hidden;
  background: #fff0f5;
}

.modal-img-wrap img {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: cover;
  display: block;
}

.modal-info {
  padding-top: 14px;
}

.modal-info h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.modal-info p {
  font-family: var(--font-cute);
  font-size: 17px;
  color: var(--pink-deep);
}

/* ==========================================================================
   PARTICLE LAYERS (CONFETTI & CLICK BURST) - NO EMOJIS!
   ========================================================================== */

.confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  overflow: hidden;
}

.confetti-item {
  position: absolute;
  top: -30px;
  left: var(--x);
  width: var(--w, 10px);
  height: var(--h, 16px);
  background: var(--bg);
  border-radius: var(--br, 2px);
  animation: confettiFall var(--dur, 4s) linear var(--delay, 0s) forwards;
  will-change: transform, opacity;
}

.confetti-item.heart-shape {
  width: var(--size, 14px);
  height: var(--size, 14px);
  background: transparent;
  display: grid;
  place-items: center;
}

.confetti-item.heart-shape svg {
  width: 100%;
  height: 100%;
  fill: var(--bg);
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg) rotateX(0deg);
    opacity: 1;
  }
  85% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(110vh) rotate(var(--rot, 360deg)) rotateX(var(--rotX, 540deg));
    opacity: 0;
  }
}

.burst-layer {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  overflow: hidden;
}

.burst-item {
  position: absolute;
  transform: translate(-50%, -50%);
  color: var(--color, var(--pink-primary));
  animation: burstFloat 2.2s var(--ease-smooth) forwards;
  pointer-events: none;
  will-change: transform, opacity;
}

.burst-item svg {
  width: var(--size, 20px);
  height: var(--size, 20px);
  filter: drop-shadow(0 2px 8px rgba(255, 101, 132, 0.4));
}

@keyframes burstFloat {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }
  15% {
    opacity: 1;
    transform: translate(calc(-50% + var(--bx) * 0.3), calc(-50% + var(--by) * 0.3)) scale(var(--bs, 1)) rotate(calc(var(--br) * 0.3));
  }
  70% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--bx)), calc(-50% + var(--by))) scale(calc(var(--bs, 1) * 1.15)) rotate(var(--br));
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================================================== */

@media (max-width: 640px) {
  
  
  

  .scene {
    padding: 16px 12px 24px;
    justify-content: center;
  }

  .envelope-box {
    width: 280px;
    height: 190px;
  }

  .env-front-pocket {
    border-left-width: 140px;
    border-right-width: 140px;
  }

  .env-flap {
    border-left-width: 140px;
    border-right-width: 140px;
    border-top-width: 110px;
  }

  .env-seal {
    top: 78px;
    width: 42px;
    height: 42px;
  }

  .card-glass-panel,
  .final-card-panel {
    padding: 36px 20px 28px;
    border-radius: 24px;
  }

  .card-title {
    font-size: 28px;
  }

  .bento-cake-container {
    transform: scale(0.9);
    margin: 4px auto 14px;
  }

  .scrapbook-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 10px;
  }

  .polaroid-img-wrap {
    height: 115px;
  }

  .polaroid-caption {
    font-size: 13px;
  }

  .polaroid-note {
    font-size: 12px;
  }
}

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

/* Smooth 3D tilt (digerakkan oleh effects.js via custom property) */
.envelope-wrapper.tiltable,
.card-glass-panel.tiltable,
.final-card-panel.tiltable {
  transform: perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
}


/* ==========================================================================
   LETTER REVEAL OVERLAY - Surat besar muncul di tengah setelah amplop dibuka
   ========================================================================== */
.letter-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.7s ease, visibility 0.7s;
}
.letter-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.letter-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255, 214, 227, 0.55) 0%, rgba(232, 74, 117, 0.28) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.letter-overlay-paper {
  position: relative;
  width: min(460px, 88vw);
  padding: 52px 40px 38px;
  background: linear-gradient(160deg, #fffef9 0%, #fff6ef 55%, #ffeee4 100%);
  border-radius: 4px;
  box-shadow:
    0 30px 60px rgba(180, 60, 90, 0.28),
    0 4px 12px rgba(180, 60, 90, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  text-align: left;
  transform: translateY(40px) rotate(-2deg) scale(0.88);
  opacity: 0;
  transition: transform 0.9s cubic-bezier(0.18, 1.1, 0.3, 1), opacity 0.7s ease;
  overflow: hidden;
}
.letter-overlay.is-visible .letter-overlay-paper {
  transform: translateY(0) rotate(-1.2deg) scale(1);
  opacity: 1;
}
.letter-overlay-paper::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1.5px dashed rgba(232, 138, 160, 0.45);
  border-radius: 3px;
  pointer-events: none;
}
.paper-stamp {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 46px;
  height: 46px;
  padding: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #ffe4ec);
  color: var(--pink-primary, #ff6584);
  box-shadow: 0 3px 10px rgba(232, 74, 117, 0.22), inset 0 0 0 2px rgba(255, 255, 255, 0.9);
  transform: rotate(8deg);
}
.paper-stamp svg { width: 100%; height: 100%; display: block; }
.paper-dear {
  font: 700 26px/1 'Playfair Display', serif;
  color: var(--text-dark, #3f2330);
  margin-bottom: 14px;
}
.paper-dear em {
  font-style: normal;
  color: var(--pink-deep, #e84a75);
}
.paper-text {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  line-height: 1.55;
  color: var(--text-medium, #704757);
  margin: 0 0 22px;
}
.paper-sign {
  font-family: 'Caveat', cursive;
  font-size: 19px;
  color: var(--pink-deep, #e84a75);
  text-align: right;
}
.paper-corner {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 42px;
  height: 42px;
  background: linear-gradient(315deg, transparent 49%, rgba(255, 220, 230, 0.6) 50%);
  border-radius: 0 0 4px 0;
}


/* ==========================================================================
   FLOATING 2D HEARTS LAYER - hati kecil naik perlahan dari bawah ke atas
   ========================================================================== */
.floating-hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.f-heart {
  position: absolute;
  bottom: -8%;
  color: var(--fh-color, #ffb8cc);
  opacity: 0;
  animation: floatHeartUp var(--fh-dur, 20s) linear var(--fh-delay, 0s) infinite;
  will-change: transform, opacity;
  filter: drop-shadow(0 2px 6px rgba(232, 74, 117, 0.18));
}
.f-heart svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}
@keyframes floatHeartUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.7);
  }
  8% {
    opacity: var(--fh-opacity, 0.6);
  }
  50% {
    transform: translate3d(var(--fh-sway, 24px), -55vh, 0) rotate(var(--fh-rot, 20deg)) scale(1);
  }
  92% {
    opacity: var(--fh-opacity, 0.6);
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -110vh, 0) rotate(calc(var(--fh-rot, 20deg) * 1.4)) scale(0.9);
  }
}


/* ==========================================================================
   ENTRANCE ANIMATIONS - elemen muncul bertahap saat scene aktif
   ========================================================================== */
.scene.active .envelope-heading,
.scene.active .envelope-wrapper,
.scene.active .envelope-action,
.scene.active .card-glass-panel > *,
.scene.active .gallery-heading,
.scene.active .scrapbook-grid,
.scene.active .gallery-footer-action,
.scene.active .final-card-panel > * {
  animation: sceneItemIn 1.1s var(--ease-smooth, cubic-bezier(.16,1,.3,1)) backwards;
}
.scene.active .envelope-wrapper   { animation-delay: .25s; }
.scene.active .envelope-action    { animation-delay: .55s; }
.scene.active .card-glass-panel > *:nth-child(1) { animation-delay: .1s; }
.scene.active .card-glass-panel > *:nth-child(2) { animation-delay: .22s; }
.scene.active .card-glass-panel > *:nth-child(3) { animation-delay: .34s; }
.scene.active .card-glass-panel > *:nth-child(4) { animation-delay: .46s; }
.scene.active .card-glass-panel > *:nth-child(5) { animation-delay: .58s; }
.scene.active .card-glass-panel > *:nth-child(6) { animation-delay: .7s; }
.scene.active .card-glass-panel > *:nth-child(7) { animation-delay: .82s; }
.scene.active .card-glass-panel > *:nth-child(8) { animation-delay: .94s; }
.scene.active .scrapbook-grid       { animation-delay: .3s; }
.scene.active .gallery-footer-action{ animation-delay: .6s; }
.scene.active .final-card-panel > *:nth-child(1) { animation-delay: .15s; }
.scene.active .final-card-panel > *:nth-child(2) { animation-delay: .3s; }
.scene.active .final-card-panel > *:nth-child(3) { animation-delay: .45s; }
.scene.active .final-card-panel > *:nth-child(4) { animation-delay: .6s; }
.scene.active .final-card-panel > *:nth-child(5) { animation-delay: .75s; }
.scene.active .final-card-panel > *:nth-child(6) { animation-delay: .9s; }

@keyframes sceneItemIn {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.97);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Polaroid masuk satu per satu */
.scene.active .polaroid-card {
  animation: polaroidInSoft 1.2s var(--ease-spring, cubic-bezier(.18,1.25,.35,1)) backwards;
}
.scene.active .polaroid-card:nth-child(1) { animation-delay: .4s; }
.scene.active .polaroid-card:nth-child(2) { animation-delay: .55s; }
.scene.active .polaroid-card:nth-child(3) { animation-delay: .7s; }
.scene.active .polaroid-card:nth-child(4) { animation-delay: .85s; }
.scene.active .polaroid-card:nth-child(5) { animation-delay: 1.0s; }
.scene.active .polaroid-card:nth-child(6) { animation-delay: 1.15s; }

@keyframes polaroidInSoft {
  from {
    opacity: 0;
    transform: translateY(40px) rotate(calc(var(--rot, 0deg) * 2.5)) scale(0.85);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(var(--rot, 0deg)) scale(1);
    filter: blur(0);
  }
}

/* ==========================================================================
   EXPIRED OVERLAY (Masa Aktif Habis)
   ========================================================================== */
.expired-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at center, rgba(255, 245, 248, 0.98) 0%, rgba(255, 230, 238, 0.98) 100%);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.expired-card {
  max-width: 440px;
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(255, 185, 205, 0.4);
  border-radius: 24px;
  padding: 38px 28px 32px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(220, 80, 120, 0.15);
  animation: expiredPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes expiredPop {
  from { opacity: 0; transform: scale(0.92) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.expired-badge {
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d84a75;
  background: #ffeaf0;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.expired-clock-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #fff0f5 0%, #ffe0ea 100%);
  border: 1px solid rgba(255, 175, 198, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e84a75;
  box-shadow: 0 8px 20px rgba(232, 74, 117, 0.15);
}

.expired-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #2c1e19;
  margin-bottom: 10px;
  line-height: 1.25;
}

.expired-desc {
  font-size: 0.92rem;
  color: #6b554e;
  line-height: 1.55;
  margin-bottom: 18px;
}

.expired-desc strong {
  color: #d84a75;
}

.expired-time-info {
  font-size: 0.8rem;
  font-weight: 600;
  color: #8c736c;
  background: #faf5f2;
  border: 1px dashed #e8dcd6;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 22px;
}

.expired-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, #ff6584 0%, #f44369 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(244, 67, 105, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.expired-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(244, 67, 105, 0.4);
}

.expired-footer {
  margin-top: 18px;
  font-size: 0.74rem;
  color: #ab9b93;
}


/* ==========================================================================
   UPGRADED IMMERSIVE FEATURES: AURORA, VINYL, FLIP CARDS, SCRATCH & WA
   ========================================================================== */

/* 1. DREAMY AURORA MESH BACKGROUND */
.aurora-mesh {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  filter: blur(80px);
  opacity: 0.75;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  animation: auroraFloat 18s ease-in-out infinite alternate;
}

.aurora-blob.blob-1 {
  top: -10%;
  left: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 175, 204, 0.6) 0%, transparent 70%);
  animation-duration: 22s;
}

.aurora-blob.blob-2 {
  bottom: -15%;
  right: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 200, 221, 0.7) 0%, transparent 70%);
  animation-duration: 26s;
  animation-delay: -5s;
}

.aurora-blob.blob-3 {
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(255, 227, 236, 0.8) 0%, transparent 70%);
  animation-duration: 20s;
  animation-delay: -10s;
}

@keyframes auroraFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -40px) scale(1.15); }
  100% { transform: translate(-40px, 50px) scale(0.95); }
}

.fairy-dust-layer {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* 2. FLOATING MINI VINYL PLAYER */
.vinyl-player {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 200, 220, 0.6);
  border-radius: 999px;
  padding: 6px 14px 6px 8px;
  box-shadow: 0 8px 24px rgba(220, 80, 120, 0.16);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.18, 1.25, 0.35, 1);
  user-select: none;
}

.vinyl-player:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 30px rgba(220, 80, 120, 0.22);
}

.vinyl-disc-wrap {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.vinyl-record {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, #2d2629 0%, #151013 100%);
  border: 1px solid #443a3e;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.vinyl-player.is-playing .vinyl-record {
  animation: spinVinyl 3.5s linear infinite;
}

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

.vinyl-groove {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.vinyl-groove.g-1 { width: 72%; height: 72%; }
.vinyl-groove.g-2 { width: 50%; height: 50%; }

.vinyl-center-sticker {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffeaf0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

.vinyl-tonearm {
  position: absolute;
  top: 2px;
  right: -2px;
  width: 16px;
  height: 3px;
  background: #a89a9e;
  border-radius: 2px;
  transform-origin: 100% 50%;
  transform: rotate(-35deg);
  transition: transform 0.4s cubic-bezier(0.18, 1.25, 0.35, 1);
}

.vinyl-player.is-playing .vinyl-tonearm {
  transform: rotate(15deg);
}

.vinyl-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 155px;
  overflow: hidden;
}

.vinyl-title-marquee {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vinyl-wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 12px;
}

.vinyl-wave span {
  width: 2.5px;
  height: 4px;
  background: var(--pink-main);
  border-radius: 2px;
  transition: height 0.2s ease;
}

.vinyl-player.is-playing .vinyl-wave span:nth-child(1) { animation: eqBounce 0.7s ease infinite alternate; }
.vinyl-player.is-playing .vinyl-wave span:nth-child(2) { animation: eqBounce 0.5s ease infinite alternate 0.15s; }
.vinyl-player.is-playing .vinyl-wave span:nth-child(3) { animation: eqBounce 0.8s ease infinite alternate 0.3s; }
.vinyl-player.is-playing .vinyl-wave span:nth-child(4) { animation: eqBounce 0.6s ease infinite alternate 0.1s; }

@keyframes eqBounce {
  from { height: 3px; }
  to { height: 12px; }
}

/* 3. TYPEWRITER EFFECT */
.typewriter-wrap {
  position: relative;
  min-height: 80px;
}

.typewriter-cursor {
  display: inline-block;
  color: var(--pink-main);
  font-weight: 700;
  animation: blinkCursor 0.8s infinite;
  margin-left: 2px;
}

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

.letter-paper-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

.btn-skip-typing {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--pink-main);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 101, 132, 0.08);
  transition: all 0.2s ease;
}

.btn-skip-typing:hover {
  background: rgba(255, 101, 132, 0.16);
  transform: translateY(-1px);
}

/* 4. CANDLELIGHT DIMMING MOOD */
.candlelight-ambient {
  position: fixed;
  inset: 0;
  z-index: 15;
  background: radial-gradient(circle at center, rgba(35, 18, 25, 0.55) 0%, rgba(18, 8, 14, 0.82) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.candlelight-ambient.active {
  opacity: 1;
}

.cake-candle-halo {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 195, 110, 0.45) 0%, rgba(255, 140, 160, 0.15) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.85;
  animation: candleHaloFlicker 2.5s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

@keyframes candleHaloFlicker {
  0% { transform: translateX(-50%) scale(0.95); opacity: 0.75; }
  50% { transform: translateX(-50%) scale(1.08); opacity: 0.95; }
  100% { transform: translateX(-50%) scale(1.02); opacity: 0.82; }
}

.scene.scene-card.blown .cake-candle-halo {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* 5. 3D FLIP POLAROID SCRAPBOOK */
.gallery-tip-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--pink-deep);
  background: rgba(255, 235, 242, 0.85);
  border: 1px dashed rgba(255, 160, 185, 0.6);
  padding: 5px 14px;
  border-radius: 999px;
  margin-top: 8px;
}

.polaroid-card {
  perspective: 1200px;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer;
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.65s var(--ease-spring);
}

.polaroid-card:hover {
  transform: translateY(-8px) rotate(0deg) scale(1.04);
  z-index: 10;
}

.polaroid-flipper {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.18, 1.25, 0.35, 1);
}

.polaroid-card.is-flipped .polaroid-flipper {
  transform: rotateY(180deg);
}

.polaroid-front, .polaroid-back {
  width: 100%;
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 10px 14px;
  box-shadow: 0 12px 28px rgba(180, 60, 90, 0.14), 0 2px 4px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(255, 230, 238, 0.85);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.polaroid-front {
  position: relative;
}

.polaroid-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  background: linear-gradient(145deg, #fffcfd 0%, #fff6f9 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  box-sizing: border-box;
}

.polaroid-back-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(255, 175, 198, 0.6);
  padding-bottom: 8px;
}

.polaroid-stamp-mini {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--pink-deep);
  border: 1px dashed var(--pink-main);
  padding: 2px 6px;
  border-radius: 4px;
}

.polaroid-back-note {
  font-family: var(--font-cute);
  font-size: 18px;
  color: #3b282c;
  line-height: 1.35;
  text-align: center;
  margin: auto 0;
  padding: 8px 4px;
}

.polaroid-back-footer {
  text-align: center;
  font-size: 12px;
  color: var(--pink-main);
  font-weight: 600;
}

.flip-hint-pill {
  display: block;
  font-size: 11px;
  color: var(--pink-deep);
  opacity: 0.85;
  margin-top: 4px;
}

/* 6. INTERACTIVE SCRATCH CARD (HADIAH RAHASIA) */
.scratch-card-box {
  margin: 28px 0 20px;
  background: linear-gradient(145deg, #ffffff 0%, #fff7f9 100%);
  border: 2px dashed rgba(255, 130, 160, 0.4);
  border-radius: 20px;
  padding: 24px 20px 20px;
  box-shadow: 0 16px 36px rgba(220, 80, 120, 0.12);
  text-align: center;
}

.scratch-pill {
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink-deep);
  background: var(--pink-tint);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.scratch-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.scratch-sub {
  font-size: 13px;
  color: var(--pink-deep);
  margin-bottom: 16px;
}

.scratch-canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 340px;
  height: 130px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(200, 60, 100, 0.15);
  border: 1px solid rgba(255, 175, 198, 0.5);
}

.scratch-reward-content {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fff0f5 0%, #ffe0ea 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.4;
  box-sizing: border-box;
}

#scratchCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

#scratchCanvas:active {
  cursor: grabbing;
}

.scratch-instruction {
  font-size: 12px;
  font-weight: 600;
  color: var(--pink-main);
  margin-top: 10px;
  letter-spacing: 0.05em;
}

/* 7. WHATSAPP REPLY BUTTON */
.btn-cute-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.28);
  transition: all 0.3s cubic-bezier(0.18, 1.25, 0.35, 1);
}

.btn-cute-wa:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 32px rgba(37, 211, 102, 0.38);
}

.btn-cute-wa svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   SCENE 3: THE BLOOMING FLOWER GARDEN (ANIMATED PROCEDURAL CSS FLOWERS & FIREFLIES)
   ========================================================================== */
.scene-flowers {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 85%, rgba(255, 185, 205, 0.45) 0%, rgba(255, 230, 240, 0.25) 45%, transparent 70%);
}

.flower-wish-wrap {
  margin-top: 10px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flower-wish {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  color: var(--text-main, #5d4037);
  font-size: clamp(1.2rem, 3.2vw, 1.7rem);
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(255, 199, 210, 0.9);
  padding: 8px 24px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(255, 177, 193, 0.35);
}

.flowers-garden-box {
  position: relative;
  width: 100%;
  max-width: 650px;
  height: min(440px, 52vh);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
  margin: 10px auto;
  cursor: pointer;
}

.night {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 0;
}

.flowers {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) scale(clamp(0.52, 0.9vmin, 0.78));
  transform-origin: bottom center;
  z-index: 2;
  filter: drop-shadow(0 0 16px rgba(255, 177, 193, 0.55));
}

.flower__leaf {
  background-color: var(--flower-pink, #ffb1c1);
  background-image: linear-gradient(to top, #ff8da1, var(--flower-pink, #ffb1c1));
  box-shadow: inset 0 0 2vmin rgba(255, 255, 255, 0.85);
}

.flower__leaf--4 {
  background-image: linear-gradient(to top, #ffc7d2, var(--flower-pink, #ffb1c1));
}

.flower__line {
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.1), var(--accent-pink, #f4c2c2));
}

.flower__line__leaf {
  background-image: linear-gradient(to top, rgba(255, 177, 193, 0.4), #ff8da1);
}

.flower__light {
  background-color: #ffe082;
  box-shadow: 0 0 1vmin #fff9c4, 0 0 2vmin #ffe082;
}

.flower__light:nth-child(odd) {
  background-color: #ffab91;
}

.flower__grass { --c: #ffb1c1; }
.flower__g-long { --c: #ffb1c1; }
.long-g .leaf { --c: #ffb1c1; }

.interactive-firefly {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff9c4 0%, #ffe082 50%, #ff8da1 100%);
  box-shadow: 0 0 14px #fff9c4, 0 0 28px #ffb1c1;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.6);
  animation: fireflyBurst 1.6s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
  z-index: 20;
}

@keyframes fireflyBurst {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
  50% { transform: translate(-50%, -45px) scale(1.4); opacity: 0.9; }
  100% { transform: translate(-50%, -90px) scale(0.2); opacity: 0; }
}

.flowers-footer-action {
  margin-top: 6px;
  z-index: 10;
}

/* Procedural CSS Flower Components */
.flower { position: absolute; bottom: 10vmin; transform-origin: bottom center; z-index: 10; --fl-speed: 0.8s; }
.flower--1 { animation: moving-flower-1 4s linear infinite; }
.flower--1 .flower__line { height: 70vmin; animation-delay: 0.3s; }
.flower--1 .flower__line__leaf--1 { animation: blooming-leaf-right var(--fl-speed) 1.6s backwards; }
.flower--1 .flower__line__leaf--2 { animation: blooming-leaf-right var(--fl-speed) 1.4s backwards; }
.flower--1 .flower__line__leaf--3 { animation: blooming-leaf-left var(--fl-speed) 1.2s backwards; }
.flower--1 .flower__line__leaf--4 { animation: blooming-leaf-left var(--fl-speed) 1s backwards; }
.flower--1 .flower__line__leaf--5 { animation: blooming-leaf-right var(--fl-speed) 1.8s backwards; }
.flower--1 .flower__line__leaf--6 { animation: blooming-leaf-left var(--fl-speed) 2s backwards; }
.flower--2 { left: 50%; transform: rotate(20deg); animation: moving-flower-2 4s linear infinite; }
.flower--2 .flower__line { height: 60vmin; animation-delay: 0.6s; }
.flower--2 .flower__line__leaf--1 { animation: blooming-leaf-right var(--fl-speed) 1.9s backwards; }
.flower--2 .flower__line__leaf--2 { animation: blooming-leaf-right var(--fl-speed) 1.7s backwards; }
.flower--2 .flower__line__leaf--3 { animation: blooming-leaf-left var(--fl-speed) 1.5s backwards; }
.flower--2 .flower__line__leaf--4 { animation: blooming-leaf-left var(--fl-speed) 1.3s backwards; }
.flower--3 { left: 50%; transform: rotate(-15deg); animation: moving-flower-3 4s linear infinite; }
.flower--3 .flower__line { animation-delay: 0.9s; }
.flower--3 .flower__line__leaf--1 { animation: blooming-leaf-right var(--fl-speed) 2.5s backwards; }
.flower--3 .flower__line__leaf--2 { animation: blooming-leaf-right var(--fl-speed) 2.3s backwards; }
.flower--3 .flower__line__leaf--3 { animation: blooming-leaf-left var(--fl-speed) 2.1s backwards; }
.flower--3 .flower__line__leaf--4 { animation: blooming-leaf-left var(--fl-speed) 1.9s backwards; }
.flower__leafs { position: relative; animation: blooming-flower 2s backwards; }
.flower__leafs--1 { animation-delay: 1.1s; }
.flower__leafs--2 { animation-delay: 1.4s; }
.flower__leafs--3 { animation-delay: 1.7s; }
.flower__leafs::after { content: ""; position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); width: 8vmin; height: 8vmin; background-color: #fff; filter: blur(10vmin); }
.flower__leaf { position: absolute; bottom: 0; left: 50%; width: 8vmin; height: 11vmin; border-radius: 51% 49% 47% 53% / 44% 45% 55% 69%; transform-origin: bottom center; opacity: 0.9; z-index: 1; }
.flower__leaf--1 { transform: translate(-10%, 1%) rotateY(40deg) rotateX(-50deg); }
.flower__leaf--2 { transform: translate(-50%, -4%) rotateX(40deg); }
.flower__leaf--3 { transform: translate(-90%, 0%) rotateY(45deg) rotateX(50deg); }
.flower__leaf--4 { width: 8vmin; height: 8vmin; transform-origin: bottom left; border-radius: 4vmin 10vmin 4vmin 4vmin; transform: translate(-0%, 18%) rotateX(70deg) rotate(-43deg); z-index: 1; opacity: 0.8; }
.flower__white-circle { position: absolute; left: -3.5vmin; top: -3vmin; width: 9vmin; height: 4vmin; border-radius: 50%; background-color: #fff; z-index: 2; }
.flower__white-circle::after { content: ""; position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); width: 60%; height: 60%; border-radius: inherit; background-image: repeating-linear-gradient(135deg, rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 1px, transparent 1px, transparent 12px), repeating-linear-gradient(45deg, rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 1px, transparent 1px, transparent 12px), linear-gradient(90deg, #ffeb12, #ffc107); }
.flower__line { width: 1.5vmin; box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2); animation: grow-flower-tree 4s backwards; transform-origin: bottom; }
.flower__line__leaf { --w: 7vmin; --h: calc(var(--w) + 2vmin); position: absolute; top: 20%; left: 90%; width: var(--w); height: var(--h); border-top-right-radius: var(--h); border-bottom-left-radius: var(--h); }
.flower__light { position: absolute; bottom: 0vmin; width: 1vmin; height: 1vmin; border-radius: 50%; filter: blur(0.2vmin); animation: light-ans 4s linear infinite backwards; }
.flower__light--1 { left: -2vmin; animation-delay: 1s; }
.flower__light--2 { left: 3vmin; animation-delay: 0.5s; }
.flower__light--3 { left: -6vmin; animation-delay: 0.3s; }
.flower__light--4 { left: 6vmin; animation-delay: 0.9s; }
.flower__light--5 { left: -1vmin; animation-delay: 1.5s; }
.flower__light--6 { left: -4vmin; animation-delay: 3s; }
.flower__light--7 { left: 3vmin; animation-delay: 2s; }
.flower__light--8 { left: -6vmin; animation-delay: 3.5s; }
.flower__grass { --line-w: 1.5vmin; position: absolute; bottom: 12vmin; left: -7vmin; display: flex; flex-direction: column; align-items: flex-end; z-index: 20; transform-origin: bottom center; transform: rotate(-48deg) rotateY(40deg); }
.flower__grass--1 { animation: moving-grass 2s linear infinite; }
.flower__grass--2 { left: 2vmin; bottom: 10vmin; transform: scale(0.5) rotate(75deg) rotateX(10deg) rotateY(-200deg); opacity: 0.8; z-index: 0; animation: moving-grass--2 1.5s linear infinite; }
.flower__grass--top { width: 7vmin; height: 10vmin; border-top-right-radius: 100%; border-right: var(--line-w) solid var(--c); transform-origin: bottom center; transform: rotate(-2deg); }
.flower__grass--bottom { margin-top: -2px; width: var(--line-w); height: 25vmin; background-image: linear-gradient(to top, transparent, var(--c)); }
.flower__grass__leaf { --size: 10vmin; position: absolute; width: calc(var(--size) * 2.1); height: var(--size); border-top-left-radius: var(--size); border-top-right-radius: var(--size); background-image: linear-gradient(to top, transparent, transparent 30%, var(--c)); z-index: 100; }
.flower__grass__overlay { position: absolute; top: -10%; right: 0%; width: 100%; height: 100%; background-color: rgba(255, 255, 255, 0.3); filter: blur(1.5vmin); z-index: 100; }
.flower__g-long { --w: 2vmin; --h: 6vmin; position: absolute; bottom: 10vmin; left: -3vmin; transform-origin: bottom center; transform: rotate(-30deg) rotateY(-20deg); display: flex; flex-direction: column; align-items: flex-end; animation: flower-g-long-ans 3s linear infinite; }
.flower__g-long__top { top: calc(var(--h) * -1); width: calc(var(--w) + 1vmin); height: var(--h); border-top-right-radius: 100%; border-right: 0.7vmin solid var(--c); transform: translate(-0.7vmin, 1vmin); }
.flower__g-long__bottom { width: var(--w); height: 50vmin; transform-origin: bottom center; background-image: linear-gradient(to top, transparent 30%, var(--c)); box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.1); clip-path: polygon(35% 0, 65% 1%, 100% 100%, 0% 100%); }
.flower__g-right { position: absolute; bottom: 6vmin; left: -2vmin; transform-origin: bottom left; transform: rotate(20deg); }
.flower__g-right .leaf { width: 30vmin; height: 50vmin; border-top-left-radius: 100%; border-left: 2vmin solid #ff8da1; background-image: linear-gradient(to bottom, transparent, rgba(255,255,255,0.5) 60%); -webkit-mask-image: linear-gradient(to top, transparent 30%, #ff8da1 60%); }
.flower__g-right--1 { animation: flower-g-right-ans 2.5s linear infinite; }
.flower__g-right--2 { left: 5vmin; transform: rotateY(-180deg); animation: flower-g-right-ans--2 3s linear infinite; }
.flower__g-right--2 .leaf { height: 75vmin; filter: blur(0.3vmin); opacity: 0.8; }
.flower__g-front { position: absolute; bottom: 6vmin; left: 2.5vmin; z-index: 100; transform-origin: bottom center; transform: rotate(-28deg) rotateY(30deg) scale(1.04); animation: flower__g-front-ans 2s linear infinite; }
.flower__g-front__line { width: 0.3vmin; height: 20vmin; background-image: linear-gradient(to top, transparent, #ff8da1, transparent 100%); position: relative; }
.flower__g-front__leaf-wrapper { position: absolute; top: 0; left: 0; transform-origin: bottom left; transform: rotate(10deg); }
.flower__g-front__leaf { width: 10vmin; height: 10vmin; border-radius: 100% 0% 0% 100% / 100% 100% 0% 0%; box-shadow: inset 0 2px 1vmin rgba(255, 255, 255, 0.5); background-image: linear-gradient(to bottom left, transparent, rgba(255,255,255,0.3)), linear-gradient(to bottom right, var(--flower-pink, #ffb1c1) 50%, transparent 50%); -webkit-mask-image: linear-gradient(to bottom right, var(--flower-pink, #ffb1c1) 50%, transparent 50%); }
.flower__g-fr { position: absolute; bottom: -4vmin; left: 10vmin; transform-origin: bottom left; z-index: 10; animation: flower__g-fr-ans 2s linear infinite; }
.flower__g-fr .leaf { width: 30vmin; height: 50vmin; border-top-left-radius: 100%; border-left: 2vmin solid #ff8da1; -webkit-mask-image: linear-gradient(to top, transparent 25%, #ff8da1 50%); position: relative; z-index: 1; }
.flower__g-fr__leaf { position: absolute; top: 0; left: 0; width: 10vmin; height: 10vmin; border-radius: 100% 0% 0% 100% / 100% 100% 0% 0%; box-shadow: inset 0 2px 1vmin rgba(255,255,255,0.3); background-image: linear-gradient(to bottom left, transparent, rgba(255,255,255,0.2) 98%), linear-gradient(to bottom right, var(--deep-pink, #fae1e6) 45%, transparent 50%); -webkit-mask-image: linear-gradient(135deg, var(--flower-pink, #ffb1c1) 40%, transparent 50%); }
.long-g { position: absolute; bottom: 25vmin; left: -42vmin; transform-origin: bottom left; }
.long-g--1 { bottom: 0vmin; transform: scale(0.8) rotate(-5deg); }
.long-g--2, .long-g--3 { bottom: -3vmin; left: -35vmin; transform-origin: center; transform: scale(0.6) rotateX(60deg); }
.long-g--3 { left: -17vmin; bottom: 0vmin; }
.long-g--4 { left: 25vmin; bottom: -3vmin; transform-origin: center; transform: scale(0.6) rotateX(60deg); }
.long-g--5 { left: 42vmin; bottom: 0vmin; transform: scale(0.8) rotate(2deg); }
.long-g--6 { left: 0vmin; bottom: -20vmin; z-index: 100; filter: blur(0.3vmin); transform: scale(0.8) rotate(2deg); }
.long-g--7 { left: 35vmin; bottom: 20vmin; z-index: -1; filter: blur(0.3vmin); transform: scale(0.6) rotate(2deg); opacity: 0.7; }
.long-g .leaf { --w: 15vmin; --h: 40vmin; position: absolute; bottom: 0; width: var(--w); height: var(--h); border-top-left-radius: 100%; border-left: 2vmin solid var(--c); -webkit-mask-image: linear-gradient(to top, transparent 20%, #fff); transform-origin: bottom center; }
.long-g .leaf--0 { left: 2vmin; animation: leaf-ans-1 4s linear infinite; }
.long-g .leaf--1 { --w: 5vmin; --h: 60vmin; animation: leaf-ans-1 4s linear infinite; }
.long-g .leaf--2 { --w: 10vmin; --h: 40vmin; left: -0.5vmin; bottom: 5vmin; transform-origin: bottom left; transform: rotateY(-180deg); animation: leaf-ans-2 3s linear infinite; }
.long-g .leaf--3 { --w: 5vmin; --h: 30vmin; left: -1vmin; bottom: 3.2vmin; transform-origin: bottom left; transform: rotate(-10deg) rotateY(-180deg); animation: leaf-ans-3 3s linear infinite; }
.growing-grass { animation: growing-grass-ans 1s 2s backwards; }

/* Flower Garden Keyframe Animations */
@keyframes blooming-flower { 0% { transform: scale(0); } }
@keyframes blooming-leaf-right { 0% { transform-origin: left; transform: rotate(70deg) rotateY(30deg) scale(0); } }
@keyframes blooming-leaf-left { 0% { transform-origin: right; transform: rotate(-70deg) rotateY(30deg) scale(0); } }
@keyframes grow-flower-tree { 0% { height: 0; border-radius: 1vmin; } }
@keyframes moving-flower-1 { 0%, 100% { transform: rotate(2deg); } 50% { transform: rotate(-2deg); } }
@keyframes moving-flower-2 { 0%, 100% { transform: rotate(20deg); } 50% { transform: rotate(14deg); } }
@keyframes moving-flower-3 { 0%, 100% { transform: rotate(-15deg); } 50% { transform: rotate(-20deg) rotateY(-10deg); } }
@keyframes moving-grass { 0%, 100% { transform: rotate(-48deg) rotateY(40deg); } 50% { transform: rotate(-50deg) rotateY(40deg); } }
@keyframes moving-grass--2 { 0%, 100% { transform: scale(0.5) rotate(75deg) rotateX(10deg) rotateY(-200deg); } 50% { transform: scale(0.5) rotate(79deg) rotateX(10deg) rotateY(-200deg); } }
@keyframes flower-g-long-ans { 0%, 100% { transform: rotate(-30deg) rotateY(-20deg); } 50% { transform: rotate(-32deg) rotateY(-20deg); } }
@keyframes flower-g-right-ans { 0%, 100% { transform: rotate(20deg); } 50% { transform: rotate(24deg) rotateX(-20deg); } }
@keyframes flower-g-right-ans--2 { 0%, 100% { transform: rotateY(-180deg) rotate(0deg) rotateX(-20deg); } 50% { transform: rotateY(-180deg) rotate(6deg) rotateX(-20deg); } }
@keyframes flower__g-front-ans { 0%, 100% { transform: rotate(-28deg) rotateY(30deg) scale(1.04); } 50% { transform: rotate(-35deg) rotateY(40deg) scale(1.04); } }
@keyframes flower__g-fr-ans { 0%, 100% { transform: rotate(2deg); } 50% { transform: rotate(4deg); } }
@keyframes grow-ans { 0% { transform: scale(0); opacity: 0; } }
@keyframes light-ans {
  0% { opacity: 0; transform: translateY(0vmin); }
  25% { opacity: 1; transform: translateY(-5vmin) translateX(-2vmin); }
  50% { opacity: 1; transform: translateY(-15vmin) translateX(2vmin); filter: blur(0.2vmin); }
  75% { transform: translateY(-20vmin) translateX(-2vmin); filter: blur(0.2vmin); }
  100% { transform: translateY(-30vmin); opacity: 0; filter: blur(1vmin); }
}
@keyframes growing-grass-ans { 0% { transform: scale(0); } }
@keyframes leaf-ans-1 { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes leaf-ans-2 { 0%, 100% { transform: rotateY(-180deg) rotate(5deg); } 50% { transform: rotateY(-180deg) rotate(-5deg); } }
@keyframes leaf-ans-3 { 0%, 100% { transform: rotate(-10deg) rotateY(-180deg); } 50% { transform: rotate(-18deg) rotateY(-180deg); } }

/* ==========================================================================
   COQUETTE FINAL SCENE STYLING
   ========================================================================== */
.coquette-divider {
  font-size: 1.3rem;
  letter-spacing: 6px;
  margin-bottom: 16px;
  opacity: 0.88;
}

.wish-text-final {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(to right, #5d4037, #ff8da1, #5d4037);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 5s linear infinite;
  margin-bottom: 20px;
}

.footer-decor {
  margin-top: 14px;
}

.emoji-row {
  font-size: 1.3rem;
  letter-spacing: 12px;
  text-indent: 12px;
  margin-bottom: 10px;
  opacity: 0.88;
}

.sig-text {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-muted, #8d6e63);
}

.date-text {
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: #bcaaa4;
  margin-top: 8px;
  text-transform: uppercase;
  font-weight: 600;
}
