@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 -> already set to 19/09/2004, adjust if wrong
   ============================================================================ */

:root {
  --color-paper: #FBF3E7;
  --color-ink: #3A3226;
  --color-coral: #E76F51;
  --color-blush: #E8A0A0;
  --color-sage: #A8C3A0;
  --color-mustard: #F2CB6C;
  --color-lavender: #C9A0E8;
  --color-skyblue: #A6CBEA;
  --photo-strip-width: 150px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--color-paper);
  color: var(--color-ink);
  overflow: hidden;
  position: relative;
}

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

/* ---------------- shared: paper card ---------------- */
.paperCard {
  position: relative;
  background: #fff;
  border: 2px solid var(--color-ink);
  border-radius: 4px;
  padding: 40px 30px;
  max-width: 460px;
  width: min(90%, calc(100vw - 2 * var(--photo-strip-width) - 32px));
  box-shadow: 7px 7px 0 rgba(58,50,38,0.15);
  transform: rotate(-1deg);
  z-index: 4;
}
.washiTapeAccent {
  position: absolute;
  width: 74px; height: 26px;
  background: repeating-linear-gradient(45deg, var(--color-blush), var(--color-blush) 6px, var(--color-mustard) 6px, var(--color-mustard) 12px);
  opacity: 0.9;
  top: -14px; left: 50%;
  transform: translateX(-50%) rotate(-3deg);
}
.paperCard h1, .paperCard h2 {
  font-family: 'Caveat', cursive; font-weight: 700; color: var(--color-ink); line-height: 1.15;
}
.paperCard h1 { font-size: 2.3rem; }
.paperCard h2 { font-size: 2rem; }
.paperCard p { color: #6b6252; margin-top: 10px; font-size: 0.97rem; line-height: 1.55; }

.primaryButton {
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.92rem;
  padding: 12px 28px; border-radius: 999px;
  border: 2px solid var(--color-ink); color: var(--color-ink); background: var(--color-mustard);
  cursor: pointer; transition: transform 0.2s cubic-bezier(.34,1.56,.64,1);
  will-change: transform;
}
.primaryButton:hover { transform: translateY(-2px) scale(1.03); }
.primaryButton:active { transform: translateY(0) scale(0.97); }

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

/* ================================================================
   SCENE 0 — password gate
   ================================================================ */
#scenePasswordGate {
  background: var(--color-paper);
  z-index: 10;
}
.passwordLabel { font-weight: 700; color: var(--color-ink) !important; }
.passwordInput {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px 16px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  letter-spacing: 1px;
  color: var(--color-ink);
  background: #fff;
  border: 2px solid var(--color-ink);
  border-radius: 10px;
  text-align: center;
  outline: none;
}
.passwordInput:focus { border-color: var(--color-coral); }
.passwordHint {
  margin-top: 12px;
  font-size: 0.9rem;
  font-style: italic;
  color: #6b6252;
}
.passwordFeedback {
  margin-top: 6px;
  min-height: 1.2em;
  font-size: 0.88rem;
  color: var(--color-coral);
  font-weight: 700;
}
.passwordFeedback:empty { margin-top: 0; }
#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 ---------------- */
.photoStrip {
  position: fixed; top: 0; bottom: 0;
  width: var(--photo-strip-width);
  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.92; }

.photoStripTrack {
  display: flex; flex-direction: column; gap: 30px;
  padding: 10px;
  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;
}
.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); }
}

/* each photo sits inside a little polaroid frame — white border all round,
   a deeper margin under the photo, so it reads as a printed polaroid rather
   than a plain thumbnail */
.polaroidFrame {
  position: relative;
  width: 116px;
  box-sizing: border-box;
  background: #fff;
  padding: 7px 7px 19px 7px;
  border-radius: 2px;
  box-shadow: 2px 2px 0 rgba(58,50,38,0.12);
  display: block;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}
.polaroidFrame img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 1px;
}
/* handwritten caption sitting centered in the polaroid's bottom white
   margin, same font as the closing signature elsewhere on the site */
.polaroidCaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  text-align: center;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  color: var(--color-ink);
  font-size: 13px;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}
.polaroidFrame:hover {
  box-shadow: 0 0 0 3px var(--color-mustard), 3px 3px 0 rgba(58,50,38,0.25);
}
.photoStrip:hover .photoStripTrack { animation-play-state: paused; }

/* the actual enlarged preview — a separate fixed element so it's never
   clipped by the strip's overflow:hidden (that clipping is required for
   the infinite scroll loop, so scaling the polaroid in place isn't safe).
   It's built the same way as .polaroidFrame (white background + padding
   around an <img>), so growing it keeps the polaroid look at any size.
   Its left/top/width/height/padding are driven from JS so it can morph
   outward from the exact spot and size of the hovered polaroid, rather
   than just fading in as a separate box. */
.photoZoomPreview {
  position: fixed;
  box-sizing: border-box;
  background: #fff;
  border-radius: 3px;
  box-shadow: 7px 7px 0 rgba(58,50,38,0.28);
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  transition:
    left 0.38s cubic-bezier(.34,1.56,.64,1),
    top 0.38s cubic-bezier(.34,1.56,.64,1),
    width 0.38s cubic-bezier(.34,1.56,.64,1),
    height 0.38s cubic-bezier(.34,1.56,.64,1),
    padding 0.38s cubic-bezier(.34,1.56,.64,1),
    opacity 0.28s ease;
  will-change: left, top, width, height, padding, opacity;
}
.photoZoomPreview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1px;
}
.photoZoomPreview .polaroidCaption {
  bottom: 3px;
  font-size: 16px;
  transition: font-size 0.38s cubic-bezier(.34,1.56,.64,1);
}
.photoZoomPreview.isVisible {
  opacity: 1;
}

@media (max-width: 560px) {
  :root { --photo-strip-width: 80px; }
  .polaroidFrame { width: 66px; padding: 4px 4px 11px 4px; }
  .polaroidCaption { font-size: 9px; bottom: 0.5px; }
  .photoZoomPreview .polaroidCaption { font-size: 13px; }
}

@media (max-width: 400px) {
  :root { --photo-strip-width: 56px; }
  .polaroidFrame { width: 44px; padding: 3px 3px 8px 3px; }
  .polaroidCaption { font-size: 7px; bottom: 0; }
}

/* ================================================================
   SCENE 1 — consent (yes / no)
   ================================================================ */
.consentButtonArena {
  position: relative;
  width: 100%; max-width: 460px; height: 170px;
  margin-top: 26px;
}
#yesConsentButton {
  position: relative;
  background: var(--color-sage);
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1);
  z-index: 2;
  will-change: transform;
}
#noConsentButton {
  position: relative;
  background: #fff;
  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.05rem;
  padding: 16px 34px;
  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: linear-gradient(180deg, #EFE3CE 0%, var(--color-paper) 60%);
  overflow: hidden;
}
.roomBackWall {
  position: absolute; inset: 0;
  z-index: 1;
}

/* 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: 70px;
  transform-origin: top center;
  opacity: 0;
  animation: balloonAppear 0.6s cubic-bezier(.34,1.56,.64,1) forwards, balloonSway 4.6s ease-in-out infinite;
  z-index: 2;
  will-change: transform, opacity;
}
@keyframes balloonAppear { to { opacity: 1; } }
@keyframes balloonSway {
  0%,100% { transform: translate3d(0,0,0) rotate(-3deg); }
  50% { transform: translate3d(0,-12px,0) rotate(3deg); }
}

/* 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); }
}

@media (max-width: 560px) {
  .vintageSpeaker { left: 58px; width: 104px; }
  .speakerPlayPauseButton { width: 36px; height: 36px; font-size: 0.8rem; left: 10px; bottom: 4px; }
}

.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, #F6D9C4, #EFC1A0);
}
.cakeTierTop {
  width: 118px; height: 48px;
  background: linear-gradient(180deg, #FBEAD8, #F6D9C4);
  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;
  background: inherit;
  border-radius: 0 0 50% 50%;
  background: #FDEFE2;
}
.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%, #FFE9A8 0%, var(--color-coral) 70%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  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);
  opacity: 0;
  animation: none;
}

/* ================================================================
   SCENE 5 — final message
   ================================================================ */
#finalMessageCard { max-width: 500px; }
@media (min-width: 900px) {
  #finalMessageCard { max-width: 640px; }
}
@media (min-width: 1400px) {
  #finalMessageCard { max-width: 720px; }
}
.birthdayMessageTextContainer {
  text-align: justify; text-justify: inter-word; margin-top: 16px;
  font-size: 0.98rem; line-height: 1.6; color: #4a4236;
  min-height: 90px;
  white-space: pre-line;
}
.typewriterCursor {
  display: inline-block;
  width: 2px; height: 1em;
  background: var(--color-ink);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.9s steps(1) infinite;
}
@keyframes cursorBlink { 50% { opacity: 0; } }

.signatureLine {
  margin-top: 18px;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--color-coral);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.signatureLine.isVisible { opacity: 1; }

.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: #fff;
  border: 2px solid var(--color-ink);
  border-radius: 14px;
  padding: 8px 14px;
  font-family: 'Caveat', cursive;
  font-size: 1.15rem;
  color: var(--color-ink);
  box-shadow: 3px 3px 0 rgba(58,50,38,0.15);
  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;
}

@media (max-width: 600px) {
  .paperCard { padding: 26px 16px; }
  .paperCard h1 { font-size: 1.55rem; }
  .paperCard h2 { font-size: 1.4rem; }
  .paperCard p { font-size: 0.85rem; }
  .primaryButton { font-size: 0.8rem; padding: 9px 20px; }
  .experienceScene { padding: 16px; }
  .consentButtonRow { gap: 10px; }

  .buntingFlag { width: 17px; height: 20px; font-size: 0.46rem; padding-top: 2px; }
  .buntingBanner { gap: 2px; }

  .roomBalloon { width: 46px; }
  .hangingLantern svg { width: 34px; }

  .cakeAssembly { transform: scale(0.78); transform-origin: bottom center; margin: 16px 0 4px; }
  .birthdayCakeCard { padding-top: 34px; }

  .floatingDecorativeElement { font-size: 1.05rem; }
  .signatureLine { font-size: 1.4rem; }
  .birthdayMessageTextContainer { font-size: 0.82rem; }
}

@media (max-width: 380px) {
  .paperCard { padding: 22px 13px; }
  .paperCard h1 { font-size: 1.35rem; }
  .paperCard h2 { font-size: 1.2rem; }
  .buntingFlag { width: 14px; height: 17px; font-size: 0.4rem; }
}

/* ================================================================
   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: 13px;
  line-height: 1;
  color: var(--color-coral);
  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; }
}