/* =====================================================
   Meera's Little Surprise – style.css
   Colours live in :root so you can change the whole
   mood of the website from one place.
   ===================================================== */

:root {
  --pink: #ffc2da;
  --pink-d: #ff8fb8;
  --rose: #ff5f9e;
  --rose-d: #e8427f;
  --lav: #e3d4ff;
  --lav-d: #b79cff;
  --cream: #fff8ee;
  --ink: #6b3a5c;
  --ink-soft: #8b5d7e;
  --title: #c2347a;
  --shadow: 0 20px 50px rgba(190, 120, 170, 0.28);
  --font-display: 'Fredoka', 'Baloo 2', 'Trebuchet MS', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-hand: 'Caveat', 'Segoe Print', 'Bradley Hand', 'Comic Sans MS', cursive;
}

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-display);
  color: var(--ink);
  background: #ffe6f1;
  touch-action: manipulation;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--lav-d); outline-offset: 3px; }

/* ---------- Animated background ---------- */
.bg {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 0;
  background: linear-gradient(135deg, #ffd9ea 0%, #f1e3ff 38%, #fff3e2 68%, #ffd9ea 100%);
  background-size: 300% 300%;
  animation: bgShift 18s ease-in-out infinite;
}
.blob { position: fixed; z-index: 0; border-radius: 50%; pointer-events: none; animation: blobFloat 14s ease-in-out infinite; }
.blob.b1 { width: 70vmax; height: 70vmax; left: -25vmax; top: -25vmax; background: radial-gradient(circle, rgba(255,170,205,.65), rgba(255,170,205,0) 68%); }
.blob.b2 { width: 62vmax; height: 62vmax; right: -22vmax; top: 6vh; background: radial-gradient(circle, rgba(205,180,255,.65), rgba(205,180,255,0) 68%); animation-delay: -5s; }
.blob.b3 { width: 58vmax; height: 58vmax; left: 12vw; bottom: -28vmax; background: radial-gradient(circle, rgba(255,222,190,.7), rgba(255,222,190,0) 68%); animation-delay: -9s; }

/* ---------- Decorative layers ---------- */
#fx { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; pointer-events: none; overflow: hidden; }

.petal {
  position: absolute; top: 0; left: var(--x);
  width: var(--s); height: calc(var(--s) * 1.25);
  animation: petalFall var(--dur) linear var(--delay) infinite;
  will-change: transform;
}
.petal i {
  display: block; width: 100%; height: 100%;
  border-radius: 80% 0 80% 0;
  background: linear-gradient(135deg, #fff2f7, var(--pc));
  box-shadow: inset -2px -2px 4px rgba(255,120,170,.28);
  animation: petalSway var(--sway) ease-in-out infinite alternate;
}

.fheart {
  position: absolute; bottom: 0; left: var(--x);
  width: var(--s); color: var(--hc); opacity: 0;
  animation: heartRise var(--dur) ease-in var(--delay) infinite;
  will-change: transform, opacity;
}
.fheart svg { display: block; width: 100%; height: auto; fill: currentColor; }

.spark {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--s); height: var(--s); color: var(--sc);
  animation: twinkle var(--dur) ease-in-out var(--delay) infinite;
}
.spark svg { display: block; width: 100%; height: 100%; fill: currentColor; filter: drop-shadow(0 0 4px rgba(255,255,255,.9)); }

/* Garden at the bottom */
#garden { position: fixed; left: 0; right: 0; bottom: 0; height: 160px; z-index: 2; pointer-events: none; }
.gf { position: absolute; bottom: -8px; height: var(--h); transform-origin: 50% 100%; animation: grow 1.5s var(--gd) cubic-bezier(.2,1.4,.4,1) both; }

/* ---------- Flowers (drawn with SVG, hand-drawn style) ---------- */
.flower { display: block; height: 100%; width: auto; overflow: visible; }
.flower .sway { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 4.2s ease-in-out infinite alternate; }
.flower .petal { transform-box: fill-box; transform-origin: 50% 100%; animation: petalPop .7s cubic-bezier(.2,1.5,.4,1) var(--d, .4s) both; }
.flower .stem { stroke-dasharray: 130; stroke-dashoffset: 130; animation: drawStem 1.2s ease-out forwards; }
.flower .leaf { transform-box: fill-box; transform-origin: 50% 100%; animation: petalPop .6s ease-out .8s both; }
.flower .core { transform-box: fill-box; transform-origin: center; animation: petalPop .5s ease-out .5s both; }

/* ---------- Stage / pages ---------- */
#stage { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 3; }
.page {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; padding: 84px 16px 130px;
  overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch;
  opacity: 0; visibility: hidden;
  transform: scale(.94) translateY(24px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.9,.3,1), visibility 0s linear .6s;
  pointer-events: none;
}
.page.active {
  opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  transition: opacity .7s ease .15s, transform .7s cubic-bezier(.2,.9,.3,1) .15s, visibility 0s;
}

.glass {
  background: rgba(255, 255, 255, 0.46);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.9);
  border-radius: 36px;
}
.card { padding: clamp(24px, 5vw, 42px); text-align: center; }
.stage-card { position: relative; width: min(100%, 560px); margin: auto; }
.wide { width: min(100%, 860px); margin: auto; text-align: center; }

h1, h2, h3 { margin: 0; line-height: 1.12; color: var(--title); text-shadow: 0 3px 0 rgba(255,255,255,.85); letter-spacing: .2px; }
h1 { font-size: clamp(2.1rem, 8.4vw, 3.3rem); font-weight: 700; margin-top: 8px; }
h2 { font-size: clamp(1.8rem, 7vw, 2.8rem); font-weight: 700; }
.sub { margin: 14px 0 0; font-size: clamp(1.05rem, 3.8vw, 1.3rem); color: var(--ink-soft); font-weight: 500; }
.ch { display: inline-block; }
.word { display: inline-block; white-space: nowrap; }

/* Staggered entrance */
.page.active .stagger > *:not(.corner) { animation: popIn .8s cubic-bezier(.2,1.3,.4,1) both; animation-delay: calc(var(--i, 0) * .14s + .2s); }
.page.active .ch { animation: chPop .6s cubic-bezier(.2,1.5,.4,1) both; animation-delay: calc(var(--n, 0) * 38ms + .5s); }

.corner { position: absolute; height: 100px; pointer-events: none; }
.corner.tl { left: -16px; top: -34px; transform: rotate(-18deg); }
.corner.tr { right: -16px; top: -34px; transform: rotate(18deg); }

/* ---------- Teddy bear ---------- */
.bear-wrap { display: flex; justify-content: center; margin-top: -4px; }
.bear-wrap svg, .gm-bear svg { width: clamp(130px, 36vw, 190px); height: auto; cursor: pointer; }
.gm-bear { display: flex; justify-content: center; margin-bottom: 6px; }
.gm-bear svg { width: 120px; }
.bear { overflow: visible; filter: drop-shadow(0 10px 12px rgba(200,120,150,.3)); animation: bearBob 3s ease-in-out infinite; transform-origin: 50% 100%; }
.bear.wiggle { animation: bearWiggle .7s ease; }
.bear .eye { transform-box: fill-box; transform-origin: center; animation: blink 4.5s infinite; }
.bear .arm { transform-box: fill-box; transform-origin: 50% 14%; }
.bear .arm-r.wave { animation: wave 1.1s ease-in-out infinite; }
.bear .pulse { transform-box: fill-box; transform-origin: center; animation: pulse 1.2s ease-in-out infinite; }
.bear .tear { animation: tear 1.4s ease-in infinite; }
.bear .tear.t2 { animation-delay: .5s; }
.cartwheel .bear { animation: none; }
.overlay.show .cartwheel .bear { animation: cartwheel 1s cubic-bezier(.3,1.3,.5,1) both; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 22px; padding: 15px 30px; min-height: 52px;
  border-radius: 999px;
  font-size: 1.2rem; font-weight: 700; letter-spacing: .3px;
  transition: transform .25s cubic-bezier(.2,1.5,.4,1), box-shadow .25s;
}
.btn span { position: relative; z-index: 1; }
.btn:hover { transform: translateY(-4px) scale(1.05); }
.btn:active { transform: scale(.95); }
.btn-primary {
  color: #fff; background: linear-gradient(135deg, #ff7eb0, var(--rose-d));
  box-shadow: 0 10px 24px rgba(232, 66, 127, .38), inset 0 2px 0 rgba(255,255,255,.4);
  text-shadow: 0 1px 2px rgba(150,20,80,.35);
}
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg); animation: shine 3.2s ease-in-out infinite;
}
.btn-lav {
  color: #4b2f7a; background: linear-gradient(135deg, #efe4ff, #c9b5ff);
  box-shadow: 0 10px 24px rgba(150, 120, 230, .32), inset 0 2px 0 rgba(255,255,255,.7);
}
.btn-ghost {
  color: var(--ink); background: rgba(255,255,255,.7);
  border: 2px solid rgba(255,255,255,.95);
  box-shadow: 0 8px 20px rgba(190,120,170,.2);
}
.btn-big { font-size: 1.35rem; padding: 17px 36px; }
.btn-small { font-size: 1rem; padding: 12px 20px; min-height: 46px; margin-top: 12px; }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; }
.btn.nudge { animation: nudge .9s ease 2; }

/* ---------- Music player ---------- */
.player {
  position: fixed; top: max(12px, env(safe-area-inset-top)); left: 50%; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 20px);
  padding: 7px 12px 7px 7px; border-radius: 999px;
  background: rgba(255,255,255,.58);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255,255,255,.85);
  box-shadow: 0 10px 30px rgba(190,120,170,.28);
  transform: translate(-50%, -160%); opacity: 0;
  transition: transform .8s cubic-bezier(.2,1.3,.4,1), opacity .5s;
}
.player.show { transform: translate(-50%, 0); opacity: 1; }
.disc {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(#ffb3d1, #d9c8ff, #fff1b8, #ffb3d1);
  animation: spin 5s linear infinite; animation-play-state: paused;
}
.disc::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.55); }
.is-playing .disc { animation-play-state: running; }
.track { min-width: 0; line-height: 1.15; text-align: left; }
.track b { display: block; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.track small { font-size: .7rem; opacity: .75; white-space: nowrap; }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 16px; }
.eq i { display: block; width: 3px; height: 4px; border-radius: 2px; background: var(--rose); }
.is-playing .eq i { animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .15s !important; }
.eq i:nth-child(3) { animation-delay: .3s !important; }
.eq i:nth-child(4) { animation-delay: .45s !important; }
.pbtn {
  flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; box-shadow: 0 4px 10px rgba(200,120,170,.28);
  transition: transform .2s cubic-bezier(.2,1.5,.4,1);
}
.pbtn:hover { transform: scale(1.12); }
.pbtn:active { transform: scale(.92); }
.pbtn .ic { width: 18px; height: 18px; fill: var(--rose-d); grid-area: 1 / 1; }
.ic-pause, .ic-mute { display: none; }
.is-playing .ic-play { display: none; }
.is-playing .ic-pause { display: block; }
.is-muted .ic-vol { display: none; }
.is-muted .ic-mute { display: block; }
.vol { width: 72px; accent-color: var(--rose); }
@media (pointer: coarse), (max-width: 520px) { .vol { display: none; } }
@media (max-width: 380px) { .eq { display: none; } .track b { max-width: 96px; } }

/* ---------- Gift boxes ---------- */
.gift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 26px auto 0; }
.gift-btn {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 44px 12px 20px; border-radius: 32px;
  background: rgba(255,255,255,.5);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255,255,255,.9);
  box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.2,1.5,.4,1), box-shadow .3s;
}
.gift-btn:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 28px 55px rgba(190,120,170,.38); }
.gift-btn:hover .gift:not(.rumble) { animation: giftWiggle .7s ease; }
.gift-btn:active { transform: scale(.96); }
.gift-label { font-size: 1.15rem; font-weight: 600; color: var(--title); line-height: 1.2; }
.gift-check {
  position: absolute; top: 12px; right: 14px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: #fff; background: #7fdcae;
  box-shadow: 0 4px 10px rgba(80,180,130,.4); transform: scale(0); transition: transform .5s cubic-bezier(.2,1.8,.4,1);
}
.gift-btn.done .gift-check { transform: scale(1); }

.gift { --c1: #ffbfd8; --c2: #ff8fbb; --rib: #fff; position: relative; width: 112px; height: 104px; animation: giftFloat 3.2s ease-in-out infinite; }
.gift.g2 { --c1: #e6d8ff; --c2: #b79cff; --rib: #fff3b0; animation-delay: -1s; }
.gift.g3 { --c1: #ffe3b8; --c2: #ffaf7a; --rib: #ff6fa5; animation-delay: -2s; }
.gift-body {
  position: absolute; left: 7px; right: 7px; bottom: 0; height: 70px;
  border-radius: 8px 8px 16px 16px;
  background: linear-gradient(160deg, var(--c1), var(--c2));
  box-shadow: inset 0 -10px 0 rgba(0,0,0,.05), 0 10px 18px rgba(190,120,150,.25);
}
.gift-body::before, .gift-lid::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 18px; transform: translateX(-50%); background: var(--rib); opacity: .95; }
.gift-lid {
  position: absolute; left: 0; right: 0; bottom: 62px; height: 34px; z-index: 2;
  border-radius: 12px; background: linear-gradient(160deg, var(--c1), var(--c2));
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.05);
  transform-origin: 0% 100%;
}
.gift-lid .bow { position: absolute; left: 50%; top: -6px; width: 0; height: 0; }
.gift-lid .bow::before, .gift-lid .bow::after {
  content: ''; position: absolute; top: -18px; width: 30px; height: 24px;
  border: 7px solid var(--rib); border-radius: 50%;
}
.gift-lid .bow::before { left: -33px; transform: rotate(-24deg); }
.gift-lid .bow::after { left: 3px; transform: rotate(24deg); }
.gift-lid .bow i { position: absolute; left: -8px; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--rib); box-shadow: 0 2px 4px rgba(0,0,0,.15); z-index: 1; }
.gift-glow {
  position: absolute; left: 50%; bottom: 30px; width: 100px; height: 100px; border-radius: 50%; opacity: 0;
  transform: translateX(-50%) scale(.2);
  background: radial-gradient(circle, rgba(255,255,255,.95), rgba(255,240,180,0) 70%);
}

/* Gift 1 – lid tips open, big heart floats up */
.gift.g1.open .gift-lid { animation: lid1 .9s cubic-bezier(.3,1.4,.5,1) forwards; }
.gift.g1.open .gift-glow { animation: glow 1.4s ease-out forwards; }
.big-heart { position: absolute; left: 50%; bottom: 52px; width: 54px; margin-left: -27px; color: #ff5f9e; z-index: 1; transform: scale(0); animation: bigHeart 1.6s .3s cubic-bezier(.2,1.5,.4,1) forwards; }
.big-heart svg { display: block; width: 100%; height: auto; fill: currentColor; filter: drop-shadow(0 4px 6px rgba(255,95,158,.45)); }

/* Gift 2 – lid spins away, a flower blooms */
.gift.g2.open .gift-lid { animation: lid2 1.1s cubic-bezier(.3,1,.5,1) forwards; }
.gift.g2.open .gift-glow { animation: glow 1.4s ease-out forwards; }
.gift-bloom { position: absolute; left: 50%; bottom: 52px; width: 84px; margin-left: -42px; transform: scale(0); transform-origin: 50% 100%; animation: bloomUp 1.1s .5s cubic-bezier(.2,1.5,.4,1) forwards; z-index: 1; }
.gift-bloom .flower { width: 100%; height: auto; }

/* Gift 3 – rumble, blast */
.gift.rumble { animation: rumble 1.8s linear forwards; }
.gift.g3.open .gift-lid { animation: lid3 1s cubic-bezier(.2,.7,.4,1) forwards; }
.gift.g3.open .gift-glow { animation: glow 1.6s ease-out forwards; }
.gift.g3.open .gift-body { animation: bodyPop .6s cubic-bezier(.2,1.8,.4,1); }

/* ---------- Overlays ---------- */
.overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(120, 70, 130, .3);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity .4s ease, visibility 0s linear .4s;
}
.overlay.show { opacity: 1; visibility: visible; transition-delay: 0s; }
.modal-card {
  width: min(94vw, 470px); max-height: 92vh; overflow-y: auto; padding: 28px 24px 26px; text-align: center;
  background: rgba(255,255,255,.72);
  transform: scale(.7) translateY(40px) rotate(-3deg);
  transition: transform .7s cubic-bezier(.2,1.5,.4,1);
}
.overlay.show .modal-card { transform: none; }
.gm-title { font-size: 1.5rem; margin-bottom: 10px; }
.gm-text { margin: 8px 0 0; font-size: clamp(1.15rem, 4.4vw, 1.4rem); line-height: 1.45; font-weight: 500; }
.shout { font-size: clamp(1.8rem, 8vw, 2.4rem); }
.overlay.show .shout { animation: wrongShake .6s .3s ease both; }
.choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin-top: 12px; }
.dodge { transition: transform .35s cubic-bezier(.2,1.5,.4,1); }
.reply { min-height: 0; margin: 16px 0 0; font-size: 1.15rem; font-weight: 600; color: var(--title); line-height: 1.4; }
.reply:empty { display: none; }
.reply.pop { animation: popIn .6s cubic-bezier(.2,1.5,.4,1); }

/* Gift 3 drumroll */
.dim { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 55; pointer-events: none; opacity: 0; visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 11vh; background: rgba(60, 20, 70, .5); transition: opacity .35s, visibility 0s linear .35s; }
.dim.show { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.dim .spot { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at 50% 50%, rgba(255,240,200,.45), rgba(255,240,200,0) 45%); animation: spotPulse .6s ease-in-out infinite alternate; }
.dim .drum { position: relative; color: #fff; font-size: clamp(1.3rem, 6vw, 2rem); font-weight: 600; text-shadow: 0 3px 12px rgba(0,0,0,.4); }
.dim .count { position: relative; color: #fff; font-size: clamp(4rem, 20vw, 7rem); font-weight: 700; line-height: 1; text-shadow: 0 6px 24px rgba(255,120,180,.9); }
.dim .count b { display: inline-block; font-weight: 700; animation: countPop .6s cubic-bezier(.2,1.6,.4,1) both; }
.flash { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 70; background: #fff; opacity: 0; pointer-events: none; }
.flash.go { animation: flash .8s ease-out; }

#fxTop { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 60; pointer-events: none; overflow: hidden; }
.bit { position: absolute; will-change: transform, opacity; line-height: 1; }
.bit svg { display: block; width: 100%; height: 100%; fill: currentColor; }
#confetti { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 65; pointer-events: none; }

.shake-card { animation: wrongShake .6s ease; }

/* ---------- Mobile ---------- */
@media (max-width: 680px) {
  .page { padding: 76px 14px 120px; }
  .gift-grid { grid-template-columns: 1fr; gap: 14px; max-width: 380px; }
  .gift-btn { flex-direction: row; justify-content: flex-start; gap: 18px; padding: 34px 18px 18px 26px; text-align: left; }
  .gift { transform-origin: left center; flex: none; }
  .gift-label { font-size: 1.1rem; }
  .corner { height: 78px; }
  .corner.tl { left: -8px; top: -26px; }
  .corner.tr { right: -8px; top: -26px; }
  #garden { height: 120px; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .page { padding-top: 70px; }
  .bear-wrap svg { width: 110px; }
}

/* ---------- Keyframes ---------- */
@keyframes bgShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes blobFloat { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(3vw,4vh) scale(1.08); } }
@keyframes petalFall { from { transform: translate3d(0,-12vh,0); } to { transform: translate3d(var(--drift),112vh,0); } }
@keyframes petalSway { from { transform: rotate(-35deg) translateX(-18px); } to { transform: rotate(55deg) translateX(18px); } }
@keyframes heartRise {
  0% { transform: translate3d(0,0,0) scale(.6) rotate(0deg); opacity: 0; }
  12% { opacity: .8; }
  88% { opacity: .55; }
  100% { transform: translate3d(var(--drift),-112vh,0) scale(1.1) rotate(var(--rot)); opacity: 0; }
}
@keyframes twinkle { 0%,100% { transform: scale(.2) rotate(0deg); opacity: 0; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(26px) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes chPop { from { opacity: 0; transform: translateY(30px) scale(.5) rotate(-12deg); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes sway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@keyframes petalPop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes drawStem { to { stroke-dashoffset: 0; } }
@keyframes bearBob { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1.5deg); } }
@keyframes bearWiggle { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-10deg) scale(1.05); } 40% { transform: rotate(9deg) scale(1.05); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(4deg); } }
@keyframes blink { 0%,92%,100% { transform: scaleY(1); } 95% { transform: scaleY(.08); } }
@keyframes wave { 0%,100% { transform: rotate(-125deg); } 50% { transform: rotate(-92deg); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.16); } }
@keyframes tear { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(26px); opacity: 0; } }
@keyframes cartwheel { 0% { transform: rotate(0) translateY(-60px) scale(.5); opacity: 0; } 60% { transform: rotate(380deg) translateY(0) scale(1.1); opacity: 1; } 100% { transform: rotate(360deg) scale(1); opacity: 1; } }
@keyframes wrongShake { 0%,100% { transform: translateX(0) rotate(0); } 15% { transform: translateX(-12px) rotate(-3deg); } 30% { transform: translateX(11px) rotate(3deg); } 45% { transform: translateX(-9px) rotate(-2deg); } 60% { transform: translateX(7px) rotate(2deg); } 75% { transform: translateX(-4px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 16px; } }
@keyframes shine { 0%,60% { left: -60%; } 100% { left: 140%; } }
@keyframes nudge { 0%,100% { transform: scale(1); } 25% { transform: scale(1.14) rotate(-3deg); } 50% { transform: scale(1.08) rotate(3deg); } 75% { transform: scale(1.14) rotate(-2deg); } }
@keyframes giftFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes giftWiggle { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-8deg) translateY(-6px); } 40% { transform: rotate(7deg) translateY(-6px); } 60% { transform: rotate(-5deg); } 80% { transform: rotate(3deg); } }
@keyframes lid1 { 0% { transform: none; } 25% { transform: translateY(5px) scaleY(.9); } 100% { transform: translate(-16px,-30px) rotate(-42deg); } }
@keyframes lid2 { 0% { transform: none; } 20% { transform: translateY(8px) scaleY(.85); } 55% { transform: translateY(-110px) rotate(200deg); opacity: 1; } 100% { transform: translateY(-60px) rotate(380deg) scale(.5); opacity: 0; } }
@keyframes lid3 { 0% { transform: none; opacity: 1; } 100% { transform: translate(70px,-460px) rotate(900deg) scale(.4); opacity: 0; } }
@keyframes bodyPop { 0% { transform: scale(1); } 40% { transform: scale(1.18,.85); } 100% { transform: scale(1); } }
@keyframes glow { 0% { opacity: 0; transform: translateX(-50%) scale(.2); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) scale(2.2); } }
@keyframes bigHeart { 0% { transform: translateY(0) scale(0); } 40% { transform: translateY(-46px) scale(1.25); } 60% { transform: translateY(-42px) scale(1); } 80% { transform: translateY(-46px) scale(1.12); } 100% { transform: translateY(-44px) scale(1); } }
@keyframes bloomUp { 0% { transform: scale(0) rotate(-20deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes rumble {
  0% { transform: translate(0,0); } 10% { transform: translate(-2px,1px) rotate(-1deg); } 20% { transform: translate(3px,-1px) rotate(1.5deg); }
  30% { transform: translate(-4px,1px) rotate(-2deg); } 40% { transform: translate(5px,-2px) rotate(2.5deg); }
  50% { transform: translate(-6px,2px) rotate(-3deg) scale(1.04); } 60% { transform: translate(7px,-2px) rotate(3.5deg) scale(1.07); }
  70% { transform: translate(-8px,2px) rotate(-4deg) scale(1.1); } 80% { transform: translate(9px,-3px) rotate(4.5deg) scale(1.13); }
  90% { transform: translate(-10px,3px) rotate(-5deg) scale(1.16); } 100% { transform: scale(1.2); }
}
@keyframes countPop { from { transform: scale(2.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes spotPulse { from { opacity: .6; transform: scale(.9); } to { opacity: 1; transform: scale(1.15); } }
@keyframes flash { 0% { opacity: 0; } 15% { opacity: .95; } 100% { opacity: 0; } }

/* ---------- Respect "reduce motion" settings ---------- */
@media (prefers-reduced-motion: reduce) {
  .petal, .fheart, .spark, .bg, .blob, .gift, .bear, .btn-primary::after, .disc { animation: none !important; }
  .petal, .fheart { display: none; }
}
