@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Nunito:wght@400;600;700;800&display=swap');

/* ============================================================================
   EDIT BEFORE SENDING — search for each label and update:
   1. birthdayMessageText            -> your actual message (near bottom of script)
   2. girlfriendPhotoUrls            -> real photo URLs or file paths
   3. vintageSpeakerAudioTrackUrl    -> your instrumental file (place next to this HTML)
   4. birthYear / birthMonth / birthDay -> set to 21/09/2006
   ============================================================================ */

:root {
  --color-paper: #FDF6F0;
  --color-ink: #32251D;
  --color-coral: #E64C65;
  --color-blush: #F79DB2;
  --color-rose: #FF6B8B;
  --color-sage: #92B898;
  --color-mustard: #F7C552;
  --color-lavender: #D6A8F5;
  --color-skyblue: #9BC6ED;
  --color-candle-glow: #FFE58F;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Nunito', sans-serif;
  background:
    radial-gradient(ellipse at 50% 40%, #FFF8FA 0%, #FDF0F4 55%, #F6DEE7 100%);
  color: var(--color-ink);
  overflow: hidden;
  position: relative;
}

#experienceStage { position: relative; width: 100%; height: 100vh; }

/* ---------------- shared: paper card ---------------- */
.paperCard {
  position: relative;
  background: #FFFCF9;
  border: 2px solid var(--color-ink);
  border-radius: 8px;
  padding: 40px 30px;
  max-width: 460px;
  width: 90%;
  box-shadow: 8px 8px 0 rgba(95, 42, 58, 0.16);
  transform: rotate(-1deg);
  z-index: 4;
}
.washiTapeAccent {
  position: absolute;
  width: 78px; height: 26px;
  background: repeating-linear-gradient(45deg, #F79DB2, #F79DB2 6px, #FFE5EC 6px, #FFE5EC 12px);
  opacity: 0.95;
  top: -14px; left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  box-shadow: 0 2px 6px rgba(130, 50, 75, 0.16);
}
.paperCard h1, .paperCard h2 {
  font-family: 'Caveat', cursive; font-weight: 700; color: var(--color-ink); line-height: 1.15;
}
.paperCard h1 { font-size: 2.38rem; }
.paperCard h2 { font-size: 2.08rem; }
.paperCard p { color: #5c4e46; margin-top: 10px; font-size: 0.98rem; line-height: 1.55; }

.primaryButton {
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.95rem;
  padding: 12px 28px; border-radius: 999px;
  border: 2px solid var(--color-ink); color: #fff;
  background: linear-gradient(180deg, #FF8EA3 0%, #E64C65 100%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 3px 4px 0 rgba(80, 32, 45, 0.25);
  cursor: pointer; transition: transform 0.2s cubic-bezier(.34,1.56,.64,1), box-shadow 0.2s ease, filter 0.2s ease;
  will-change: transform;
}
.primaryButton:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 4px 6px 0 rgba(80, 32, 45, 0.28);
  filter: brightness(1.05);
}
.primaryButton:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 2px 2px 0 rgba(80, 32, 45, 0.25);
}

/* ---------------- scenes ---------------- */
.experienceScene {
  position: absolute; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 2;
}
.experienceScene.isActive { display: flex; opacity: 1; }

/* ================================================================
   SCENE 0 — greeting ("Hii bachhhuuuu")
   ================================================================ */
#sceneGreeting {
  background:
    radial-gradient(ellipse at 50% 40%, #FFF8FA 0%, #FDF0F5 55%, #F6DEE8 100%);
  z-index: 10;
  cursor: pointer;
}
.greetingTitle {
  font-family: 'Caveat', cursive;
  font-size: 2.85rem !important;
  color: var(--color-ink);
  line-height: 1.15;
  animation: greetingPopIn 0.55s cubic-bezier(.34,1.56,.64,1);
}
@keyframes greetingPopIn {
  0% { transform: scale(0.86); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.greetingSubtext {
  font-size: 1.05rem;
  color: #634e46;
  margin-top: 12px;
}
#sceneGreeting .primaryButton {
  margin-top: 22px;
}

/* ================================================================
   SCENE 1 — password gate
   ================================================================ */
#scenePasswordGate {
  background:
    radial-gradient(ellipse at 50% 40%, #FFF8FA 0%, #FDF0F5 55%, #F6DEE8 100%);
  z-index: 10;
}
.passwordLabel { font-weight: 700; color: var(--color-ink) !important; }
.passwordInput {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 13px 18px;
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 1px;
  color: var(--color-ink);
  background: #FFFDF9;
  border: 2px solid var(--color-ink);
  border-radius: 12px;
  text-align: center;
  outline: none;
  box-shadow: inset 1px 2px 4px rgba(70, 42, 26, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.passwordInput:focus {
  border-color: var(--color-coral);
  box-shadow: 0 0 0 3px rgba(230, 88, 88, 0.2);
}
.passwordHint {
  margin-top: 12px;
  font-size: 0.9rem;
  font-style: italic;
  color: #6b6252;
}
.passwordHint:empty { margin-top: 0; display: none; }
.passwordFeedback {
  margin-top: 6px;
  min-height: 1.2em;
  font-size: 0.88rem;
  color: var(--color-coral);
  font-weight: 700;
}
.passwordFeedback:empty { margin-top: 0; min-height: 0; display: none; }
#scenePasswordGate .primaryButton { margin-top: 18px; }
.paperCard.isShaking { animation: passwordShake 0.4s ease; }
@keyframes passwordShake {
  0%, 100% { transform: rotate(-1deg) translateX(0); }
  20% { transform: rotate(-1deg) translateX(-8px); }
  40% { transform: rotate(-1deg) translateX(8px); }
  60% { transform: rotate(-1deg) translateX(-5px); }
  80% { transform: rotate(-1deg) translateX(5px); }
}

/* ---------------- side photo strips (Polaroids) ---------------- */
.photoStrip {
  position: fixed; top: 0; bottom: 0;
  width: 86px;
  overflow: hidden;
  z-index: 3;
  opacity: 0;
  contain: layout style paint;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.7s ease;
  will-change: opacity;
  backface-visibility: hidden;
}
.photoStrip.left { left: 0; }
.photoStrip.right { right: 0; }
.photoStrip.isRevealed { opacity: 0.96; }

.photoStripTrack {
  display: flex; flex-direction: column; gap: 30px;
  padding: 16px 8px;
  animation-name: scrollPhotosBottomToTop;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-play-state: paused;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  align-items: center;
}
.photoStrip.left .photoStripTrack { animation-duration: 34s; }
.photoStrip.right .photoStripTrack { animation-duration: 40s; }
.photoStrip.isScrolling .photoStripTrack { animation-play-state: running; }
@keyframes scrollPhotosBottomToTop {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -50%, 0); }
}

/* Polaroid card thumbnail */
.polaroidCard {
  position: relative;
  width: 68px;
  background: #FFFDF9;
  padding: 5px 5px 12px 5px;
  border-radius: 2px;
  box-shadow: 0 4px 10px rgba(50, 30, 40, 0.16), 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(.34, 1.56, .64, 1), box-shadow 0.25s ease;
  user-select: none;
}
.polaroidCard[data-tilt="left"] {
  transform: rotate(-2.5deg);
}
.polaroidCard[data-tilt="right"] {
  transform: rotate(2.5deg);
}
.polaroidCard:hover {
  transform: scale(1.08) rotate(0deg) !important;
  box-shadow: 0 0 0 2.5px var(--color-rose), 0 8px 18px rgba(50, 30, 40, 0.25);
  z-index: 10;
}
.photoStrip:hover .photoStripTrack { animation-play-state: paused; }

.polaroidTape {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 8px;
  background: rgba(247, 157, 178, 0.7);
  border-radius: 1px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.polaroidPhotoWrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f0eae4;
  border-radius: 1px;
}
.polaroidPhotoWrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.polaroidChin {
  font-family: 'Caveat', cursive;
  font-size: 0.72rem;
  font-weight: 700;
  color: #7a4c56;
  line-height: 1;
  margin-top: 3px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* Fullscreen Backdrop for Enlarged Polaroid */
.photoZoomBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 10, 15, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.photoZoomBackdrop.isVisible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  cursor: pointer;
}

/* Enlarged Polaroid Zoom Preview */
.photoZoomPreview {
  position: fixed;
  top: 50% !important;
  left: 50% !important;
  width: 245px !important;
  max-width: 86vw !important;
  background: #FFFDF9;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 12px 12px 28px 12px;
  box-shadow: 0 20px 48px rgba(40, 20, 30, 0.45), 0 4px 14px rgba(0, 0, 0, 0.18);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  transform: translate(-50%, -50%) scale(0.82);
  transition:
    opacity 0.24s ease,
    visibility 0.24s ease,
    transform 0.28s cubic-bezier(.34, 1.56, .64, 1);
  cursor: pointer;
}
.photoZoomPreview.isVisible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translate(-50%, -50%) scale(1) !important;
}

.polaroidZoomCloseBtn {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #E64C65;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 20;
  transition: transform 0.2s cubic-bezier(.34, 1.56, .64, 1);
}
.polaroidZoomCloseBtn:hover {
  transform: scale(1.12);
  background: #ff5c77;
}
.polaroidZoomCloseBtn:active {
  transform: scale(0.9);
}

.polaroidZoomCloseHint {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  color: #8c5662;
  text-align: center;
  margin-top: 4px;
}
.polaroidZoomTape {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 14px;
  background: rgba(247, 157, 178, 0.75);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.polaroidZoomPhotoWrap {
  width: 100%;
  flex: 1;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #ede6df;
  border-radius: 2px;
}
.polaroidZoomPhotoWrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.polaroidZoomChin {
  font-family: 'Caveat', cursive;
  font-size: 1.35rem;
  font-weight: 700;
  color: #723b46;
  text-align: center;
  margin-top: 8px;
  line-height: 1;
}

@media (max-width: 680px) {
  .photoStrip { display: none !important; }
}

/* ================================================================
   SCENE 1 — consent (yes / no)
   ================================================================ */
#sceneConsent, #sceneStartDecoration {
  background:
    radial-gradient(circle at 50% 42%, #FFF8FA 0%, #FDF0F4 60%, #F7DEE8 100%);
}
.consentButtonArena {
  position: relative;
  width: 100%; max-width: 460px; height: 170px;
  margin-top: 26px;
}
#yesConsentButton {
  position: relative;
  background: linear-gradient(180deg, #99C59F 0%, #76A87E 100%);
  color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,0.18);
  box-shadow: 3px 4px 0 rgba(40, 70, 45, 0.25);
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1);
  z-index: 2;
  will-change: transform;
}
#noConsentButton {
  position: relative;
  background: #FFFDF9;
  color: var(--color-ink);
  transition: left 0.35s ease, top 0.35s ease, opacity 0.3s ease;
  z-index: 1;
}
#noConsentButton.isRoaming {
  position: absolute;
}
#noConsentButton.isEvadingFast {
  transition-duration: 0.15s;
}
.consentButtonRow {
  display: flex; gap: 16px; align-items: center; justify-content: center;
  position: relative; height: 100%;
}

/* ================================================================
   SCENE 2 — start decoration
   ================================================================ */
#startDecorationButton {
  font-size: 1.08rem;
  padding: 16px 36px;
  box-shadow: 4px 5px 0 rgba(90, 35, 50, 0.25);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.4,0,.6,1);
  will-change: transform, opacity;
}
#startDecorationButton.isFadingOut {
  opacity: 0;
  transform: scale(0.7);
}

/* ================================================================
   SCENE 3 — room decoration
   ================================================================ */
#sceneRoomDecoration {
  background:
    radial-gradient(ellipse 85% 65% at 50% 36%, rgba(255, 246, 250, 0.98) 0%, rgba(255, 235, 242, 0.82) 42%, rgba(250, 222, 232, 0.55) 75%, transparent 100%),
    radial-gradient(circle at 50% 0%, rgba(255, 218, 228, 0.55) 0%, transparent 60%),
    linear-gradient(180deg, #FBF0F4 0%, #F7E3EC 45%, #F0D4E2 80%, #E6C4D4 100%);
  overflow: hidden;
  box-shadow: inset 0 0 130px rgba(115, 45, 65, 0.09);
  transition: background 1.2s ease, box-shadow 1.2s ease;
}
/* Atmospheric room dimming during cake & candle wish moment */
#sceneRoomDecoration.isLightsDimmed {
  background:
    radial-gradient(ellipse 75% 65% at 50% 48%, rgba(255, 230, 205, 0.12) 0%, transparent 68%),
    radial-gradient(circle at 50% 38%, rgba(42, 18, 32, 0.94) 0%, rgba(18, 8, 16, 0.98) 100%);
  box-shadow: inset 0 0 160px rgba(0, 0, 0, 0.75);
}
#sceneRoomDecoration.isLightsDimmed .fairyLightBulb {
  filter: drop-shadow(0 0 12px rgba(255, 224, 102, 1)) drop-shadow(0 0 30px rgba(255, 195, 80, 0.95));
}
#sceneRoomDecoration.isLightsDimmed .birthdayCandleFlame {
  filter: drop-shadow(0 0 16px rgba(255, 220, 110, 1)) drop-shadow(0 0 34px rgba(255, 110, 90, 0.85));
}
#sceneRoomDecoration.isLightsDimmed .cakeAssembly {
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.45));
}
#sceneRoomDecoration.isLightsDimmed .birthdayCakeCard {
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4), 0 0 50px rgba(255, 220, 140, 0.18);
}
.roomBackWall {
  position: absolute; inset: 0;
  z-index: 1;
}

/* ambient warm bokeh orbs drifting in background */
.ambientBokehLayer {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.ambientBokehOrb {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.35;
  animation: bokehFloat var(--floatDuration, 9s) ease-in-out infinite alternate;
}
@keyframes bokehFloat {
  0% { transform: translate3d(0, 0, 0) scale(0.95); opacity: 0.22; }
  50% { opacity: 0.42; }
  100% { transform: translate3d(var(--driftX, 15px), -36px, 0) scale(1.15); opacity: 0.28; }
}

/* bunting banner */
.buntingBanner {
  position: absolute; top: 6%; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 4px;
  z-index: 2;
}
.buntingFlagWrap {
  display: flex;
  align-items: flex-start;
}
.buntingFlag {
  width: 26px; height: 30px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  opacity: 0;
  animation: buntingAppear 0.4s ease forwards, buntingSway 3.4s ease-in-out infinite;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 4px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.68rem;
  color: #fff;
}
@keyframes buntingAppear { to { opacity: 1; } }
@keyframes buntingSway {
  0%,100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}

/* fairy lights — drawn as one continuous sagging wire with bulbs along it */
.fairyLightsContainer {
  position: absolute; top: 9%; left: 0; right: 0; z-index: 2;
}
.fairyLightBulb {
  fill: #FFE066;
  filter: drop-shadow(0 0 6px rgba(255, 224, 102, 1)) drop-shadow(0 0 14px rgba(255, 200, 90, 0.75));
  animation: fairyTwinkle 2.2s ease-in-out infinite;
}
@keyframes fairyTwinkle {
  0%,100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* jhumar hanging lanterns */
.hangingLantern {
  position: absolute;
  transform-origin: top center;
  opacity: 0;
  animation: lanternAppear 0.5s ease forwards, lanternSwing 4.2s ease-in-out infinite;
  z-index: 2;
}
@keyframes lanternAppear { to { opacity: 1; } }
@keyframes lanternSwing {
  0%,100% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
}

/* balloons */
.roomBalloon {
  position: absolute;
  width: 76px;
  transform-origin: top center;
  opacity: 0;
  cursor: pointer;
  animation: balloonAppear 0.65s cubic-bezier(.34,1.56,.64,1) forwards, balloonSway 4.6s ease-in-out infinite;
  z-index: 2;
  will-change: transform, opacity;
  transition: filter 0.2s ease;
}
.roomBalloon:hover {
  filter: brightness(1.08) drop-shadow(0 6px 14px rgba(231, 111, 81, 0.32));
  transform: translate3d(0, -6px, 0) scale(1.06);
}

/* Cute prompt tag on balloon inviting user to pop */
.balloonPopPrompt {
  position: absolute;
  top: 23%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-5deg);
  background: rgba(255, 255, 255, 0.95);
  color: #C93452;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  padding: 3px 9px 2px;
  border-radius: 999px;
  border: 1.5px dashed #E65872;
  box-shadow: 0 3px 8px rgba(180, 50, 70, 0.25);
  pointer-events: none;
  white-space: nowrap;
  animation: balloonPopPromptPulse 1.8s ease-in-out infinite alternate;
  z-index: 5;
}

@keyframes balloonPopPromptPulse {
  0% { transform: translate(-50%, -50%) rotate(-6deg) scale(0.96); }
  100% { transform: translate(-50%, -50%) rotate(-2deg) scale(1.08); }
}

/* popping animation */
.roomBalloon.isPopping {
  animation: balloonPopAnimation 0.24s cubic-bezier(.12, .88, .22, 1) forwards !important;
  pointer-events: none;
}
@keyframes balloonPopAnimation {
  0% {
    transform: scale(1);
    opacity: 1;
    filter: brightness(1);
  }
  40% {
    transform: scale(1.24) rotate(-3deg);
    opacity: 0.95;
    filter: brightness(1.4);
  }
  100% {
    transform: scale(1.5) rotate(5deg);
    opacity: 0;
    filter: brightness(1.7);
  }
}

/* balloon popping shard particles */
.balloonPopShard {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 8;
  animation: balloonShardFly 0.48s ease-out forwards;
}
@keyframes balloonShardFly {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--flyX, 20px), var(--flyY, -20px), 0) scale(0.2);
    opacity: 0;
  }
}

/* balloon respawning anywhere else */
.roomBalloon.isRespawning {
  animation: balloonRespawnIn 0.75s cubic-bezier(.34, 1.56, .64, 1) forwards, balloonSway 4.6s ease-in-out 0.75s infinite !important;
}
@keyframes balloonRespawnIn {
  0% {
    transform: translate3d(0, 36px, 0) scale(0);
    opacity: 0;
  }
  65% {
    transform: translate3d(0, -8px, 0) scale(1.12);
    opacity: 1;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
}

@keyframes balloonAppear { to { opacity: 1; } }
@keyframes balloonSway {
  0%,100% { transform: translate3d(0,0,0) rotate(-3.5deg); }
  50% { transform: translate3d(0,-14px,0) rotate(3.5deg); }
}



/* vintage gramophone speaker */
.vintageSpeaker {
  position: absolute; bottom: 14px; left: 100px;
  width: 128px;
  z-index: 5;
}
.vintageSpeaker .recordDisc {
  transform-box: fill-box;
  transform-origin: center;
  animation: recordSpin 3s linear infinite;
  animation-play-state: paused;
}
.vintageSpeaker.isPlaying .recordDisc { animation-play-state: running; }
@keyframes recordSpin { to { transform: rotate(360deg); } }

.speakerPlayPauseButton {
  position: absolute; left: 14px; bottom: 6px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2.5px solid #2b2420;
  background: radial-gradient(circle at 35% 30%, #F7E4B0, #C9974B 70%);
  color: #2b2420;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(58,50,38,0.25);
  transition: transform 0.15s ease;
}
.speakerPlayPauseButton:hover { transform: scale(1.08); }
.speakerPlayPauseButton:active { transform: scale(0.95); }

.speakerFloatingEmoji {
  position: fixed;
  font-size: 1.3rem;
  pointer-events: none;
  z-index: 40;
  animation: speakerEmojiFloatUp 2.6s ease-out forwards;
  will-change: transform, opacity;
}
@keyframes speakerEmojiFloatUp {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.7); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--driftX, 0px), -95px, 0) scale(1.15); }
}



/* hanging heart garland */
.heartGarland {
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  width: 88%;
  max-width: 760px;
  z-index: 2;
  opacity: 0;
  animation: heartGarlandAppear 0.6s ease forwards;
  pointer-events: none;
}
@keyframes heartGarlandAppear { to { opacity: 0.95; } }

.hangingHeartItem {
  transform-origin: top center;
  animation: heartGarlandSway 3.6s ease-in-out infinite;
}
@keyframes heartGarlandSway {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

/* streamers */
.roomStreamer {
  position: absolute;
  top: 8%;
  width: 34px;
  z-index: 2;
  opacity: 0;
  transform-origin: top center;
  animation: streamerAppear 0.6s ease forwards, streamerSway 4.4s ease-in-out infinite;
  pointer-events: none;
}
.roomStreamer.left { left: 95px; }
.roomStreamer.right { right: 95px; }
@keyframes streamerAppear { to { opacity: 0.88; } }
@keyframes streamerSway {
  0%, 100% { transform: rotate(-4deg) scaleX(1); }
  50% { transform: rotate(5deg) scaleX(0.92); }
}



/* twinkling wall sparkles */
.wallSparkle {
  position: absolute;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  animation: wallSparkleAppear 0.5s ease forwards, wallSparkleTwinkle 3.2s ease-in-out infinite;
  filter: drop-shadow(0 0 5px rgba(242, 203, 108, 0.75));
}
@keyframes wallSparkleAppear { to { opacity: 0.85; } }
@keyframes wallSparkleTwinkle {
  0%, 100% { transform: scale(0.85) rotate(0deg); opacity: 0.4; }
  50% { transform: scale(1.22) rotate(45deg); opacity: 1; }
}

/* gift box stack at bottom right */
.roomGiftStack {
  position: absolute;
  bottom: 14px;
  right: 100px;
  width: 120px;
  z-index: 5;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: transform 0.25s cubic-bezier(.34, 1.56, .64, 1);
  animation: giftStackAppear 0.7s cubic-bezier(.34, 1.56, .64, 1) forwards;
}
.roomGiftStack:hover {
  transform: translateY(-4px) scale(1.05);
}
.roomGiftStack:active {
  transform: translateY(0) scale(0.96);
}
@keyframes giftStackAppear {
  to { opacity: 1; transform: translateY(0) scale(1); }
}



.roomDecorationStatusCard {
  position: relative; z-index: 6;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  animation: statusCardAppear 0.5s ease 1.6s forwards;
}
.roomDecorationStatusCard.isFadingOut {
  opacity: 0;
  transform: scale(0.92);
}
@keyframes statusCardAppear { to { opacity: 1; } }


/* ================================================================
   SCENE 4 — cake (rendered inside the same decorated room)
   ================================================================ */
.roomOverlayCard {
  position: relative; z-index: 6;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: none;
}
.roomOverlayCard.isVisible {
  display: block;
  opacity: 1;
  transform: scale(1);
}
.birthdayCakeCard {
  padding-top: 52px;
  max-width: 380px;
}
.birthdayCakeCard h2 { margin-bottom: 10px; }
.cakeAssembly {
  position: relative;
  z-index: 2;
  margin: 30px 0 14px;
  display: flex; flex-direction: column; align-items: center;
}
.cakePlate {
  width: 190px; height: 16px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fdfdfd, #e4ded2);
  box-shadow: 0 6px 10px rgba(58,50,38,0.2);
  margin-top: -6px;
}
.cakeTier {
  position: relative;
  border-radius: 10px 10px 6px 6px;
  box-shadow: inset -6px -6px 14px rgba(0,0,0,0.08), inset 6px 6px 10px rgba(255,255,255,0.4), 0 6px 10px rgba(58,50,38,0.15);
}
.cakeTierBottom {
  width: 168px; height: 58px;
  background: linear-gradient(180deg, #FCE0DC, #F7C0BA);
}
.cakeTierTop {
  width: 118px; height: 48px;
  background: linear-gradient(180deg, #FFF0F4, #FCE0DC);
  margin-top: -10px;
}
.cakeDrip {
  position: absolute; top: -8px; left: 0; right: 0; height: 16px;
  display: flex; justify-content: space-around;
}
.cakeDrip span {
  width: 14px; height: 16px;
  border-radius: 0 0 50% 50%;
  background: #FFF5F7;
}
.cakePipedBorder {
  position: absolute; top: -6px; left: 0; right: 0;
  display: flex; justify-content: space-around;
}
.cakePipedBorder span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(58,50,38,0.2);
}
.birthdayCandle {
  width: 16px; height: 34px;
  background: linear-gradient(180deg, #FFE9B0, #F2CB6C);
  border-radius: 3px;
  margin-top: -16px;
  position: relative;
  z-index: 3;
}
.birthdayCandleFlame {
  position: absolute; top: -20px; left: 50%;
  width: 12px; height: 20px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 70%, #FFF2B2 0%, var(--color-coral) 75%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  filter: drop-shadow(0 0 8px rgba(255, 214, 102, 0.9)) drop-shadow(0 0 16px rgba(230, 88, 88, 0.6));
  animation: candleFlicker 1.1s ease-in-out infinite;
  transform-origin: center bottom;
  transition: transform 0.6s ease, opacity 0.6s ease;
  will-change: transform, opacity;
}
@keyframes candleFlicker {
  0%,100% { opacity: 1; transform: translateX(-50%) scaleY(1) rotate(0deg); }
  50% { opacity: 0.8; transform: translateX(-50%) scaleY(0.88) rotate(2deg); }
}
.cakeAssembly.isCandleBlownOut .birthdayCandleFlame {
  transform: translateX(-50%) scaleY(0) scaleX(0.3);
  opacity: 0;
  animation: none;
}
.birthdayCandleFlame.isMicFlickering {
  animation: flameBlowFlicker 0.11s ease-in-out infinite alternate !important;
  transform-origin: center bottom;
}
@keyframes flameBlowFlicker {
  0% { transform: translateX(-50%) scale(0.68, 0.58) rotate(-16deg); opacity: 0.65; }
  100% { transform: translateX(-50%) scale(0.48, 0.38) rotate(20deg); opacity: 0.38; }
}

.candleBlowMicHint {
  font-family: 'Nunito', sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  color: #8c5261;
  margin: 14px auto 10px;
  padding: 6px 14px;
  background: rgba(255, 240, 245, 0.9);
  border-radius: 999px;
  border: 1px dashed #f2b4c3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  animation: hintBreathe 2.2s ease-in-out infinite alternate;
  box-shadow: 0 2px 6px rgba(247, 157, 178, 0.15);
}
@keyframes hintBreathe {
  0% { transform: scale(0.98); opacity: 0.88; }
  100% { transform: scale(1.02); opacity: 1; }
}

/* realistic smoke wisp rising after blowing the candle */
.candleSmokeWisp {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(160, 150, 140, 0.65);
  filter: blur(2px);
  pointer-events: none;
  animation: smokeDrift 1.7s ease-out forwards;
}
@keyframes smokeDrift {
  0% { transform: translate3d(-50%, 0, 0) scale(0.8); opacity: 0.75; }
  40% { opacity: 0.5; }
  100% { transform: translate3d(calc(-50% + var(--driftX, 10px)), -48px, 0) scale(3); opacity: 0; }
}

/* ================================================================
   SCENE 5 — final message
   ================================================================ */
/* ================================================================
   SCENE 5 — Vintage Parchment Love Letter
   ================================================================ */
#finalMessageCard {
  max-width: 530px;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #B88A58 transparent;
  background:
    radial-gradient(ellipse 95% 85% at 50% 45%, #FDF8EE 0%, #F8EED8 60%, #EFE1C4 100%),
    repeating-linear-gradient(transparent, transparent 31px, rgba(184, 138, 88, 0.15) 31px, rgba(184, 138, 88, 0.15) 32px);
  border: 2px solid #7A4E29;
  border-radius: 6px;
  box-shadow:
    inset 0 0 35px rgba(160, 110, 60, 0.22),
    inset 0 0 90px rgba(120, 75, 35, 0.13),
    0 16px 44px rgba(50, 25, 15, 0.3),
    8px 8px 0 rgba(70, 35, 20, 0.22);
  padding: 38px 28px 28px;
  transform: rotate(-0.6deg);
}

/* Aged inner postal margin rule */
#finalMessageCard::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(138, 92, 51, 0.35);
  border-radius: 4px;
  pointer-events: none;
}

#finalMessageCard .washiTapeAccent {
  background: linear-gradient(135deg, rgba(224, 196, 158, 0.92), rgba(198, 162, 118, 0.85));
  border: 1px dashed rgba(130, 85, 45, 0.45);
  box-shadow: 0 2px 6px rgba(80, 45, 20, 0.16);
}

/* Vintage Air Mail postmark & postage stamp in top right */
.vintageLetterPostmark {
  position: absolute;
  top: 14px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 7px;
  pointer-events: none;
  z-index: 5;
}

.vintagePostageStamp {
  width: 42px;
  height: 50px;
  background: #FFF9F2;
  border: 2px dashed #9E382B;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(80, 40, 30, 0.18);
  transform: rotate(3deg);
  padding: 2px;
}

.vintageStampIcon {
  font-size: 1.2rem;
  line-height: 1;
}

.vintageStampValue {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 0.74rem;
  color: #9E382B;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.vintagePostmarkCircle {
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(140, 55, 45, 0.65);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-6deg);
  color: rgba(140, 55, 45, 0.75);
  font-family: 'Courier New', monospace;
  line-height: 1.1;
  padding: 2px;
}

.postmarkText {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.postmarkDate {
  font-size: 0.55rem;
  font-weight: 800;
  color: #8C2433;
}

.postmarkCity {
  font-size: 0.46rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.vintageLetterTitle {
  font-family: 'Caveat', cursive;
  font-size: 2.45rem;
  font-weight: 700;
  color: #3b2216;
  text-shadow: 0 1px 2px rgba(80, 40, 20, 0.15);
  margin-top: 10px;
  margin-bottom: 6px;
}

#finalMessageCard .daysCounterBadge {
  background: rgba(246, 236, 216, 0.95);
  border: 1.5px dashed #B88A58;
  color: #55341C;
  box-shadow: 0 2px 6px rgba(100, 60, 25, 0.12);
  margin: 8px auto 14px;
}

#finalMessageCard .daysCounterNumber {
  color: #9E382B;
  font-size: 1.05rem;
}

/* Authentic handwritten letter text in vintage fountain-pen ink */
#finalMessageCard .birthdayMessageTextContainer {
  text-align: left;
  margin-top: 16px;
  font-family: 'Caveat', cursive;
  font-size: 1.34rem;
  font-weight: 600;
  line-height: 1.76;
  color: #2D1D16;
  min-height: 90px;
  white-space: pre-line;
  letter-spacing: 0.3px;
  text-shadow: 0 0.5px 0.5px rgba(45, 29, 22, 0.18);
}

#finalMessageCard .typewriterCursor {
  background: #2D1D16;
  width: 2.5px;
}

#finalMessageCard .signatureLine {
  margin-top: 22px;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 2.5rem;
  color: #8C2433;
  text-shadow: 0 2px 4px rgba(140, 36, 51, 0.2);
  opacity: 0;
  transition: opacity 0.6s ease;
}

#finalMessageCard .signatureLine.isVisible {
  opacity: 1;
  animation: signaturePulse 2.4s ease-in-out infinite alternate;
}


@keyframes signaturePulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.035); }
}

/* ================================================================
   Sticky Notes Deck — "Little things I love about you"
   ================================================================ */
.stickyNotesSection {
  margin-top: 22px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.34,1.56,.64,1);
}
.stickyNotesSection.isVisible {
  opacity: 1;
  transform: translateY(0);
}
.stickyNotesHeader {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-burgundy);
  margin-bottom: 14px;
}
.stickyNotesHeadingIcon {
  font-size: 1.25rem;
  display: inline-block;
  animation: pulseBeat 1.8s infinite alternate;
}
.stickyNotesDeck {
  position: relative;
  width: 92%;
  max-width: 340px;
  cursor: pointer;
  perspective: 800px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
/* Realistic background stacked ghost note cards for physical depth */
.stickyNotesDeck::before,
.stickyNotesDeck::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  pointer-events: none;
  transition: transform 0.3s ease;
}
.stickyNotesDeck::before {
  background: #FFF3B0;
  transform: rotate(3.2deg) translate(2px, 3px);
  box-shadow: 0 4px 10px rgba(160, 100, 120, 0.12);
  z-index: 1;
}
.stickyNotesDeck::after {
  background: #E8DFF5;
  transform: rotate(-3deg) translate(-2px, 5px);
  box-shadow: 0 6px 14px rgba(160, 100, 120, 0.14);
  z-index: 0;
}
.stickyNotesDeck:hover .stickyNoteCard {
  transform: rotate(var(--noteTilt, 0deg)) translateY(-4px) scale(1.02);
  box-shadow: 0 12px 24px rgba(140, 60, 80, 0.22);
}
.stickyNotesDeck:active .stickyNoteCard {
  transform: rotate(var(--noteTilt, 0deg)) scale(0.98);
}
.stickyNotesPin {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.6rem;
  z-index: 10;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.25));
  pointer-events: none;
  line-height: 1;
}
.stickyNoteCard {
  position: relative;
  z-index: 3;
  background: #FFF3B0;
  border: 1.5px solid #F4D06F;
  border-radius: 12px;
  padding: 22px 18px 14px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  box-shadow: 0 8px 20px rgba(140, 60, 80, 0.16);
  transform: rotate(var(--noteTilt, -2deg));
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), box-shadow 0.3s ease, background 0.35s ease, border-color 0.35s ease;
}
.stickyNoteCard.isFlippingNote {
  animation: noteFlipSlide 0.45s cubic-bezier(.25, 1, .5, 1);
}
@keyframes noteFlipSlide {
  0% { transform: translateY(0) scale(1) rotate(var(--noteTilt, 0deg)); opacity: 1; }
  35% { transform: translateY(-20px) scale(0.92) rotate(-8deg); opacity: 0.7; }
  65% { transform: translateY(8px) scale(1.04) rotate(4deg); opacity: 0.9; }
  100% { transform: translateY(0) scale(1) rotate(var(--noteTilt, 0deg)); opacity: 1; }
}
.stickyNoteCount {
  align-self: flex-end;
  font-family: 'Nunito', sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  color: rgba(60, 40, 50, 0.6);
  background: rgba(255, 255, 255, 0.65);
  padding: 2px 8px;
  border-radius: 999px;
}
.stickyNoteText {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
  color: #3f2832;
  margin: 10px 0 12px;
}
.stickyNoteTapPrompt {
  font-family: 'Caveat', cursive;
  font-size: 1.05rem;
  font-weight: 600;
  color: #944b5d;
  opacity: 0.85;
}

/* Retro cassette tape voice note player */
.retroCassettePlayer {
  margin-top: 20px;
  background: linear-gradient(135deg, #FFF6F8 0%, #FEECEF 100%);
  border: 2px solid var(--color-ink);
  border-radius: 12px;
  padding: 13px 16px;
  box-shadow: 4px 4px 0 rgba(70, 30, 40, 0.14);
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.34,1.56,.64,1);
  display: none;
}
.retroCassettePlayer.isVisible {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
}
.cassetteHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 800;
  color: #5c353f;
  margin-bottom: 9px;
}
.cassetteTapeLabel {
  font-family: 'Caveat', cursive;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--color-coral);
}
.cassetteDuration {
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  background: #fff;
  border: 1px solid #e8b0be;
  border-radius: 999px;
  padding: 2px 8px;
  color: #7a4652;
}
.cassetteBody {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #382d2c;
  border-radius: 8px;
  padding: 10px 14px;
  gap: 12px;
  border: 1.5px solid #241a1b;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.3);
}
.cassetteSpool {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, #f5f3ef 35%, #ded8cf 70%);
  border: 2px solid #5a4b49;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.retroCassettePlayer.isPlaying .cassetteSpool {
  animation: spoolSpin 2s linear infinite;
}
@keyframes spoolSpin {
  to { transform: rotate(360deg); }
}
.cassetteSpoolHole {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #382d2c;
  border: 1.5px dashed #8a7c78;
}
.cassetteWindow {
  flex: 1;
  height: 28px;
  background: #241c1c;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #4a3e3c;
  position: relative;
}
.cassetteWaveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 16px;
}
.cassetteWaveform span {
  width: 3px;
  height: 6px;
  background: #F79DB2;
  border-radius: 2px;
  transition: height 0.2s ease;
}
.retroCassettePlayer.isPlaying .cassetteWaveform span {
  animation: waveBar 0.8s ease-in-out infinite alternate;
}
.cassetteWaveform span:nth-child(1) { animation-delay: 0.1s; }
.cassetteWaveform span:nth-child(2) { animation-delay: 0.25s; }
.cassetteWaveform span:nth-child(3) { animation-delay: 0.4s; }
.cassetteWaveform span:nth-child(4) { animation-delay: 0.15s; }
.cassetteWaveform span:nth-child(5) { animation-delay: 0.5s; }
.cassetteWaveform span:nth-child(6) { animation-delay: 0.3s; }
.cassetteWaveform span:nth-child(7) { animation-delay: 0.2s; }
.cassetteWaveform span:nth-child(8) { animation-delay: 0.45s; }
.cassetteWaveform span:nth-child(9) { animation-delay: 0.1s; }
@keyframes waveBar {
  0% { height: 4px; }
  100% { height: 20px; background: #FF6B8B; }
}
.cassettePlayButton {
  margin-top: 10px;
  width: 100%;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--color-ink);
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF0F3 100%);
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  color: #6d2435;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 2px 3px 0 rgba(70, 30, 40, 0.15);
  transition: transform 0.15s ease, background 0.15s ease;
}
.cassettePlayButton:hover {
  transform: translateY(-1px);
  background: #FFF5F7;
}
.cassettePlayButton:active {
  transform: translateY(1px);
}

.floatingDecorativeElement {
  position: absolute;
  font-size: 1.5rem;
  cursor: pointer;
  animation: floatingGentleBob 3.4s ease-in-out infinite;
  z-index: 5;
  user-select: none;
  will-change: transform;
}
@keyframes floatingGentleBob {
  0%,100% { transform: translate3d(0,0,0) rotate(-4deg); }
  50% { transform: translate3d(0,-10px,0) rotate(4deg); }
}
.floatingElementReactionBubble {
  position: fixed;
  background: #FFF5F7;
  border: 2px solid #F79DB2;
  border-radius: 16px;
  padding: 9px 16px;
  font-family: 'Caveat', cursive;
  font-size: 1.25rem;
  font-weight: 700;
  color: #691b2c;
  box-shadow: 3px 4px 0 rgba(230, 76, 101, 0.22);
  z-index: 50;
  animation: reactionBubbleFloat 2.4s ease forwards;
  pointer-events: none;
  white-space: nowrap;
}
@keyframes reactionBubbleFloat {
  0% { opacity: 0; transform: translate3d(0,6px,0) scale(0.9); }
  15% { opacity: 1; transform: translate3d(0,0,0) scale(1); }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(0,-24px,0) scale(1); }
}

.hiddenBonusSparkle {
  position: absolute;
  font-size: 1.6rem;
  cursor: pointer;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.34,1.56,.64,1);
  z-index: 6;
}
.hiddenBonusSparkle.isRevealed {
  opacity: 1;
  transform: scale(1);
  animation: floatingGentleBob 2.6s ease-in-out infinite;
}

/* ================================================================
   MOBILE-FIRST RESPONSIVE PERFECTION (< 680px)
   Eliminates all congestion, overlapping, and visual clutter
   ================================================================ */
@media (max-width: 680px) {
  /* Dynamic viewport height on modern mobile browsers */
  html, body, #experienceStage {
    height: 100dvh;
    min-height: 100dvh;
  }

  .experienceScene {
    padding: 12px 6px;
  }

  /* 1. Side photo strips on mobile: slim, elegant, floating smoothly on left and right */
  .photoStrip {
    display: block !important;
    width: 44px;
    z-index: 3;
    opacity: 0;
  }
  .photoStrip.left {
    left: 0;
  }
  .photoStrip.right {
    right: 0;
  }
  .photoStrip.isRevealed {
    opacity: 0.92;
  }
  .photoStripTrack {
    padding: 8px 2px;
    gap: 14px;
  }
  .photoStrip.left .photoStripTrack { animation-duration: 26s; }
  .photoStrip.right .photoStripTrack { animation-duration: 30s; }

  .polaroidCard {
    width: 38px;
    padding: 3px 2px 5px 2px;
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(50, 30, 40, 0.16);
    cursor: pointer;
  }
  .polaroidCard:hover,
  .polaroidCard:active {
    transform: scale(1.08) rotate(0deg) !important;
  }
  .polaroidTape {
    width: 14px;
    height: 5px;
    top: -3px;
  }
  .polaroidChin {
    display: none; /* miniature caption hidden on mobile track, opens enlarged with full caption on tap! */
  }

  /* 2. Hide diagonal streamers on mobile to eliminate visual clutter */
  .roomStreamer {
    display: none !important;
  }

  /* 3. Center Paper Cards — sized calc(100% - 98px) so they NEVER collide with side strips */
  .paperCard {
    width: calc(100% - 98px);
    max-width: 320px;
    padding: 22px 14px 18px;
    margin: auto;
    border-radius: 12px;
    box-shadow: 4px 4px 0 rgba(95, 42, 58, 0.15);
    z-index: 5;
  }
  .paperCard h1 { font-size: 1.85rem; }
  .greetingTitle { font-size: 2.15rem !important; }
  .greetingSubtext { font-size: 0.92rem; margin-top: 6px; }

  /* 4. Room Balloons on Mobile: scaled & non-intrusive in background */
  .roomBalloon {
    transform: scale(0.55) !important;
    transform-origin: top center;
    opacity: 0.65;
    z-index: 1;
  }
  .balloonPopPrompt {
    font-size: 0.8rem;
    padding: 1px 5px;
  }

  /* 5. Corner speaker and gift stack: tucked neatly into bottom corners */
  .vintageSpeaker {
    left: 4px !important;
    bottom: 4px !important;
    width: 58px !important;
    z-index: 4;
  }
  .speakerPlayPauseButton {
    width: 32px;
    height: 32px;
    font-size: 0.76rem;
    left: 2px;
    bottom: 0px;
  }
  .roomGiftStack {
    right: 4px !important;
    bottom: 4px !important;
    width: 54px !important;
    z-index: 4;
  }

  /* 6. Heart Garland & Hanging Lanterns on mobile */
  .heartGarland {
    top: 8%;
    width: 90%;
    z-index: 1;
  }
  .hangingLantern {
    transform: scale(0.72);
    transform-origin: top center;
    z-index: 1;
  }

  /* 7. Birthday Cake Card on mobile */
  .birthdayCakeCard {
    width: calc(100% - 98px);
    max-width: 310px;
    padding: 18px 12px 14px;
    z-index: 5;
  }
  .birthdayCakeCard h2 {
    font-size: 1.85rem;
    margin-bottom: 2px;
  }
  .cakeAssembly {
    transform: scale(0.78);
    margin: 2px auto;
  }
  .candleBlowMicHint {
    font-size: 0.74rem;
    padding: 3px 8px;
    margin: 4px auto;
  }
  #blowCandleButton {
    padding: 8px 18px;
    font-size: 0.84rem;
    margin-top: 4px;
  }

  /* 8. Vintage Love Letter Card on mobile */
  #finalMessageCard {
    width: calc(100% - 98px);
    max-width: 325px;
    max-height: 84dvh;
    padding: 22px 12px 18px;
    margin: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 5;
  }
  .vintageLetterPostmark {
    top: 8px;
    right: 8px;
    gap: 3px;
    transform: scale(0.65);
    transform-origin: top right;
  }
  .vintageLetterTitle {
    font-size: 1.82rem;
    margin-top: 4px;
    margin-bottom: 2px;
    line-height: 1.15;
  }
  #finalMessageCard .daysCounterBadge {
    font-size: 0.74rem;
    padding: 3px 8px;
    margin: 4px auto 8px;
  }
  #finalMessageCard .daysCounterNumber {
    font-size: 0.88rem;
  }
  #finalMessageCard .birthdayMessageTextContainer {
    font-size: 1.18rem;
    line-height: 1.58;
    margin-top: 10px;
  }
  #finalMessageCard .signatureLine {
    font-size: 1.95rem;
    margin-top: 12px;
  }

  /* 9. Hide floating emojis around letter on mobile to prevent clutter */
  .floatingDecorativeElement,
  .hiddenBonusSparkle {
    display: none !important;
  }

  /* 10. Sticky Notes Deck on mobile */
  .stickyNotesSection {
    margin-top: 16px;
    margin-bottom: 12px;
  }
  .stickyNotesHeader {
    font-size: 1.25rem;
    margin-bottom: 8px;
  }
  .stickyNotesDeck {
    width: 100%;
    max-width: 260px;
  }
  .stickyNoteCard {
    padding: 14px 12px 10px;
    min-height: 110px;
  }
  .stickyNoteText {
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 6px 0 8px;
  }
  .stickyNoteTapPrompt {
    font-size: 0.86rem;
  }

  /* 11. Cassette player on mobile */
  .retroCassettePlayer {
    width: 100%;
    max-width: 265px;
    margin: 14px auto 8px;
    padding: 8px 10px;
  }
  .cassetteHeader {
    font-size: 0.74rem;
    margin-bottom: 4px;
  }
  .cassetteBody {
    height: 48px;
    padding: 3px 8px;
  }
  .cassettePlayButton {
    padding: 6px 14px;
    font-size: 0.8rem;
    margin-top: 6px;
  }

  /* 12. Replay button */
  .replayExperienceButton {
    margin-top: 10px;
    padding: 6px 16px;
    font-size: 0.78rem;
  }

  /* 13. Enlarged Photo Preview on mobile */
  .photoZoomPreview {
    z-index: 10000;
  }
  .photoZoomPreview.isVisible {
    pointer-events: auto !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  }
}

/* ================================================================
   Replay button — appears once the message finishes typing
   ================================================================ */
.replayExperienceButton {
  margin-top: 16px;
  padding: 8px 20px;
  font-size: 0.82rem;
  background: #fff;
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.34,1.56,.64,1);
}
.replayExperienceButton.isVisible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* ================================================================
   Cursor heart trail — subtle hearts drifting from the cursor,
   site-wide. Kept small and low-opacity so it never competes
   with anything else on screen.
   ================================================================ */
.cursorHeartTrailParticle {
  position: fixed;
  left: 0; top: 0;
  font-size: 14px;
  line-height: 1;
  color: var(--color-coral);
  filter: drop-shadow(0 2px 5px rgba(230, 76, 101, 0.45));
  pointer-events: none;
  user-select: none;
  z-index: 9999;
  animation: cursorHeartTrailDrift 1.05s ease-out forwards;
  will-change: transform, opacity;
}
@keyframes cursorHeartTrailDrift {
  0% { transform: translate3d(-50%, -50%, 0) scale(0.55); opacity: 0.75; }
  100% { transform: translate3d(calc(-50% + var(--driftX)), calc(-50% - 46px), 0) scale(1.05); opacity: 0; }
}

/* ================================================================
   Falling petals — a sparse, slow, continuous drift across every
   scene, carrying the tulip-bouquet opening thread all the way
   through the site.
   ================================================================ */
.fallingPetal {
  position: fixed;
  top: -8vh;
  left: 0;
  opacity: 0;
  pointer-events: none;
  user-select: none;
  z-index: 4;
  will-change: transform, opacity;
  animation: fallingPetalDrift var(--fallDuration, 12s) linear var(--fallDelay, 0s) 1 forwards;
}
@keyframes fallingPetalDrift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  8% { opacity: 0.5; }
  92% { opacity: 0.45; }
  100% { transform: translate3d(var(--driftX), 116vh, 0) rotate(320deg); opacity: 0; }
}

/* ================================================================
   Hide Netlify Drawer, Badge, or Injected Feedback Widget
   ================================================================ */
netlify-drawer,
netlify-feedback,
#netlify-drawer,
.netlify-badge,
a[href*="netlify.com"],
div[class*="netlify"],
iframe[src*="netlify"],
[data-netlify-deploy-id] {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}