:root {
  --p1: #ff1f8e;
  --p2: #ff4fa3;
  --p3: #ff85c0;
  --p4: #ffc2e2;
  --p5: #ffe4f1;
  --deep: #c2185b;
  --ink: #7a0a3d;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
body {
  font-family: 'Fredoka', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
  background: #ffc4e1 linear-gradient(-45deg, #ffd1e8, #ff9ccf, #ffc4e1, #ff7eb9, #ffe0f0) fixed;
  background-size: 400% 400%;
  animation: bgShift 16s ease infinite;
  -webkit-tap-highlight-color: transparent;
}
@keyframes bgShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---------- ambient layers ---------- */
.blobs { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.blobs span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: blob 22s ease-in-out infinite alternate; }
.blobs span:nth-child(1) { width: 50vmax; height: 50vmax; background: #ff4fa3; top: -18vmax; left: -15vmax; }
.blobs span:nth-child(2) { width: 42vmax; height: 42vmax; background: #fff; bottom: -12vmax; right: -12vmax; animation-duration: 28s; }
.blobs span:nth-child(3) { width: 34vmax; height: 34vmax; background: #ff85c0; top: 40%; left: 45%; animation-duration: 17s; }
@keyframes blob { to { transform: translate(10vmax, 8vmax) scale(1.25); } }

#hearts { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.floater {
  position: absolute; bottom: -70px; line-height: 1;
  animation-name: floatUp, sway;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: 1, infinite;
  animation-direction: normal, alternate;
  animation-fill-mode: forwards, none;
  filter: drop-shadow(0 4px 6px rgba(194, 24, 91, .25));
}
@keyframes floatUp { to { transform: translateY(calc(-100vh - 140px)) rotate(30deg); } }
@keyframes sway { from { translate: -26px 0; } to { translate: 26px 0; } }

#balloons { position: fixed; inset: 0; z-index: 20; pointer-events: none; overflow: hidden; }
.balloon {
  position: absolute; bottom: -220px;
  width: calc(72px * var(--s, 1)); height: calc(90px * var(--s, 1));
  border-radius: 50% 50% 48% 52% / 58% 58% 42% 42%;
  background:
    radial-gradient(circle at 30% 26%, rgba(255,255,255,.85) 0 7%, transparent 8%),
    radial-gradient(circle at 35% 32%, var(--hi), var(--c) 58%, var(--dk));
  box-shadow: inset -8px -10px 18px rgba(0,0,0,.08);
  pointer-events: auto; cursor: pointer;
  animation: rise linear forwards;
}
.balloon::before { /* knot */
  content: ''; position: absolute; left: 50%; top: calc(100% - 3px); transform: translateX(-50%);
  border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 9px solid var(--dk);
}
.balloon::after { /* string */
  content: ''; position: absolute; left: 50%; top: calc(100% + 5px); width: 1.5px; height: 110px;
  background: linear-gradient(rgba(122,10,61,.5), rgba(122,10,61,0));
}
@keyframes rise {
  0%   { transform: translate(0, 0) rotate(-4deg); }
  25%  { transform: translate(var(--sx), calc(-.25 * (100vh + 340px))) rotate(4deg); }
  50%  { transform: translate(0, calc(-.5 * (100vh + 340px))) rotate(-4deg); }
  75%  { transform: translate(calc(var(--sx) * -1), calc(-.75 * (100vh + 340px))) rotate(4deg); }
  100% { transform: translate(0, calc(-100vh - 340px)) rotate(-4deg); }
}

#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 60; pointer-events: none; }

/* ---------- intro / gift ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px;
  padding: 24px; text-align: center;
  background: radial-gradient(circle at 50% 50%, #ffe4f1 0%, #ffb3d9 45%, #ff6fb5 100%);
  transition: opacity .9s ease, transform .9s ease;
}
.intro::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 170vmax; height: 170vmax; margin: -85vmax 0 0 -85vmax; z-index: -1;
  background: repeating-conic-gradient(rgba(255,255,255,.28) 0 9deg, transparent 9deg 18deg);
  animation: spin 50s linear infinite;
}
.intro.gone { opacity: 0; transform: scale(1.5); pointer-events: none; }
.intro-title {
  font-family: 'Pacifico', cursive; font-size: clamp(1.7rem, 6vw, 3rem); color: #fff;
  text-shadow: 0 3px 0 var(--deep), 0 10px 26px rgba(194,24,91,.45);
  animation: popIn .9s cubic-bezier(.2,1.6,.4,1) both;
}
.intro-hint { font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--deep); animation: pulse 1.3s ease-in-out infinite; }

.gift {
  position: relative; width: 210px; height: 200px; border: 0; background: none; cursor: pointer;
  animation: wiggle 2s ease-in-out infinite;
  filter: drop-shadow(0 22px 26px rgba(160, 0, 80, .35));
}
.gift:focus-visible { outline: 4px dashed #fff; outline-offset: 14px; border-radius: 24px; }
.gift-box {
  position: absolute; left: 22px; right: 22px; bottom: 0; height: 122px; border-radius: 12px;
  background:
    linear-gradient(90deg, transparent 43%, #fff 43% 57%, transparent 57%),
    linear-gradient(160deg, #ff5fae, #d6006f);
}
.gift-lid {
  position: absolute; left: 8px; right: 8px; top: 48px; height: 42px; border-radius: 12px; z-index: 2;
  background:
    linear-gradient(90deg, transparent 42%, #fff 42% 58%, transparent 58%),
    linear-gradient(160deg, #ff85c0, #ff1f8e);
  transition: transform .75s cubic-bezier(.3,-.4,.4,1.4), opacity .75s;
}
.gift-lid::after { content: ''; position: absolute; left: 50%; top: -9px; width: 24px; height: 18px; transform: translateX(-50%); background: #fff; border-radius: 8px; }
.gift-bow { position: absolute; left: 50%; top: -34px; }
.gift-bow::before, .gift-bow::after {
  content: ''; position: absolute; top: 0; width: 50px; height: 36px; border: 10px solid #fff; border-radius: 50%;
}
.gift-bow::before { right: 4px; transform: rotate(-22deg); }
.gift-bow::after  { left: 4px;  transform: rotate(22deg); }
.gift.open { animation: none; }
.gift.open .gift-lid { transform: translateY(-280px) rotate(-38deg); opacity: 0; }
.gift.open .gift-box { animation: boxPop .5s ease; }
@keyframes boxPop { 50% { transform: scale(1.12, .9); } }
@keyframes wiggle {
  0%, 55%, 100% { transform: rotate(0) scale(1); }
  62% { transform: rotate(-9deg) scale(1.05); }
  69% { transform: rotate(9deg) scale(1.05); }
  76% { transform: rotate(-6deg); }
  83% { transform: rotate(4deg); }
  90% { transform: rotate(0); }
}

/* ---------- layout ---------- */
main { position: relative; z-index: 2; }
section { position: relative; padding: clamp(64px, 10vw, 120px) 16px; text-align: center; }

.section-title {
  font-family: 'Pacifico', cursive; font-weight: 400; font-size: clamp(2.2rem, 7vw, 4rem); line-height: 1.25; color: var(--deep);
  text-shadow: 0 3px 0 #fff, 0 10px 26px rgba(194,24,91,.3);
}
.sub { margin-top: 10px; font-size: clamp(1rem, 3vw, 1.25rem); font-weight: 500; color: var(--ink); opacity: .85; }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(10px, 2.2vh, 22px); padding-top: 96px;
}
.bunting { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-around; }
.bunting::before { content: ''; position: absolute; left: 0; right: 0; top: 8px; height: 3px; background: rgba(255,255,255,.95); }
.flag {
  width: 32px; height: 44px; margin-top: 9px; transform-origin: 50% 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  animation: swing 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.23s);
}
.flag:nth-child(4n+1) { background: #ff1f8e; }
.flag:nth-child(4n+2) { background: #fff; }
.flag:nth-child(4n+3) { background: #ff85c0; }
.flag:nth-child(4n)   { background: #c2185b; }
@keyframes swing { 0%,100% { transform: rotate(7deg); } 50% { transform: rotate(-7deg); } }

.kicker {
  display: inline-block; padding: 10px 22px; border-radius: 999px; background: rgba(255,255,255,.75);
  color: var(--deep); font-weight: 700; letter-spacing: .22em; text-transform: uppercase; font-size: clamp(.8rem, 2.6vw, 1.1rem);
  box-shadow: 0 8px 24px rgba(194,24,91,.22);
  animation: popIn .8s .1s cubic-bezier(.2,1.6,.4,1) both;
}

.name { font-family: 'Pacifico', cursive; font-weight: 400; font-size: clamp(4.4rem, 21vw, 13rem); line-height: 1.2; white-space: nowrap; }
.name span {
  display: inline-block; color: var(--c);
  text-shadow: 0 4px 0 #fff, 0 8px 0 rgba(176,18,91,.3), 0 18px 36px rgba(255,31,142,.45);
  animation: drop .9s cubic-bezier(.2,1.5,.4,1) backwards, wave 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * .09s + .35s), calc(var(--i) * .13s + 1.4s);
}
@keyframes drop { from { transform: translateY(-110vh) rotate(-40deg); opacity: 0; } }
@keyframes wave {
  0%, 100% { transform: translateY(0) rotate(0); }
  25% { transform: translateY(-16px) rotate(-5deg); }
  50% { transform: translateY(0) rotate(0); }
  75% { transform: translateY(6px) rotate(4deg); }
}

.age-wrap { display: flex; align-items: center; justify-content: center; gap: 22px 34px; flex-wrap: wrap; animation: popIn .8s 1.2s cubic-bezier(.2,1.6,.4,1) both; }
.age-label { font-family: 'Pacifico', cursive; font-size: clamp(1.6rem, 5vw, 2.6rem); color: #fff; text-shadow: 0 3px 0 var(--deep), 0 8px 20px rgba(194,24,91,.4); }
.age {
  position: relative; width: clamp(140px, 34vw, 210px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; margin: 24px;
  background: radial-gradient(circle at 35% 30%, #ff9ccf, #ff1f8e 60%, #b0004f);
  color: #fff; font-weight: 700; font-size: clamp(3.6rem, 13vw, 6.2rem);
  text-shadow: 0 4px 0 rgba(122,10,61,.35);
  box-shadow: 0 0 0 8px rgba(255,255,255,.75), 0 22px 50px rgba(194,24,91,.45);
  animation: heartbeat 1.6s ease-in-out infinite;
}
.age::before { content: ''; position: absolute; inset: -22px; border-radius: 50%; border: 4px dashed rgba(255,255,255,.95); animation: spin 14s linear infinite; }
.age::after {
  content: ''; position: absolute; inset: -44px; border-radius: 50%;
  background: conic-gradient(#fff, transparent 25%, #ff1f8e 50%, transparent 75%, #fff);
  -webkit-mask: radial-gradient(closest-side, transparent 84%, #000 86% 94%, transparent 96%);
          mask: radial-gradient(closest-side, transparent 84%, #000 86% 94%, transparent 96%);
  animation: spin 3.5s linear infinite reverse;
}
#age { display: inline-block; }
#age.tick { animation: tick .14s ease-out; }
@keyframes tick { 50% { transform: scale(1.25); } }
@keyframes heartbeat { 0%,100% { transform: scale(1); } 15% { transform: scale(1.08); } 30% { transform: scale(1); } 45% { transform: scale(1.05); } }

.tagline { font-size: clamp(1.1rem, 3.6vw, 1.6rem); font-weight: 600; color: var(--deep); animation: popIn .8s 1.6s both; }
.scroll-hint {
  margin-top: 8px; color: var(--deep); text-decoration: none; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; font-size: .85rem;
  animation: popIn .8s 2s both;
}
.scroll-hint span { display: block; font-size: 1.6rem; animation: bounce 1.2s ease-in-out infinite; }

/* ---------- marquee ---------- */
.marquee-wrap { position: relative; overflow: hidden; padding: 40px 0; }
.marquee {
  width: 116%; margin-left: -8%; transform: rotate(-3deg);
  background: linear-gradient(90deg, #ff1f8e, #ff4fa3, #ff1f8e); color: #fff;
  box-shadow: 0 0 0 5px #fff, 0 16px 40px rgba(194,24,91,.4);
  overflow: hidden; white-space: nowrap; padding: 14px 0;
}
.marquee-track { display: inline-block; font-weight: 700; font-size: clamp(1.1rem, 3.5vw, 1.6rem); letter-spacing: .08em; animation: marquee 22s linear infinite; }
.marquee-track span { padding: 0 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- photo ---------- */
.polaroid {
  position: relative; width: min(100%, 400px); margin: 48px auto 0; padding: 16px 16px 0;
  background: #fff; border-radius: 6px; cursor: pointer;
  box-shadow: 0 0 0 6px #ffc2e2, 0 0 0 9px #ff4fa3, 0 30px 60px rgba(194,24,91,.4);
}
.polaroid.in { animation: polaroidSway 6s ease-in-out infinite; }
@keyframes polaroidSway { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(2deg) translateY(-8px); } }
.polaroid img { display: block; width: 100%; height: auto; border-radius: 2px; }
.polaroid figcaption { padding: 16px 6px 20px; font-family: 'Pacifico', cursive; font-size: clamp(1.2rem, 4.5vw, 1.6rem); color: var(--deep); line-height: 1.45; }
.tape {
  position: absolute; top: -18px; left: 50%; width: 130px; height: 36px; z-index: 2;
  transform: translateX(-50%) rotate(-4deg);
  background: repeating-linear-gradient(45deg, rgba(255,79,163,.75) 0 8px, rgba(255,194,226,.75) 8px 16px);
  box-shadow: 0 2px 6px rgba(122,10,61,.2);
}
.polaroid::before, .polaroid::after { /* sticker hearts */
  position: absolute; font-size: 44px; z-index: 2; filter: drop-shadow(0 4px 6px rgba(194,24,91,.35));
  animation: heartbeat 1.6s ease-in-out infinite;
}
.polaroid::before { content: '💖'; left: -26px; bottom: 70px; }
.polaroid::after  { content: '🎀'; right: -24px; top: 22px; animation-delay: .5s; }

/* ---------- cake ---------- */
.cake {
  --w: clamp(230px, 72vw, 330px);
  width: var(--w); margin: 40px auto 0;
  display: flex; flex-direction: column; align-items: center;
}
.candles { display: flex; gap: 14px; align-items: flex-end; margin-bottom: -8px; position: relative; z-index: 2; }
.candle { position: relative; display: flex; flex-direction: column; align-items: center; }
.digit {
  font-weight: 700; font-size: 80px; line-height: .85;
  background: repeating-linear-gradient(135deg, #fff 0 7px, #ff4fa3 7px 14px);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 2.5px #c2185b;
  filter: drop-shadow(0 4px 0 rgba(122,10,61,.25));
}
.wick { width: 3px; height: 12px; background: #5a2a3a; border-radius: 2px; }
.flame {
  width: 18px; height: 30px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(ellipse at 50% 72%, #fff 0 25%, #ffd1e8 42%, #ff9ccf 65%, #ff1f8e 100%);
  box-shadow: 0 0 18px 6px rgba(255,180,215,.85), 0 0 56px 18px rgba(255,105,180,.45);
  transform-origin: 50% 90%;
  animation: flicker .12s ease-in-out infinite alternate;
  transition: transform .35s ease, opacity .35s;
}
@keyframes flicker { from { transform: rotate(-3deg) scaleY(1); } to { transform: rotate(3deg) scaleY(1.12); } }
.cake.out .flame { animation: none; transform: scale(0); opacity: 0; }
.smoke {
  position: absolute; top: 10px; left: 50%; width: 14px; height: 14px; border-radius: 50%;
  background: rgba(255,255,255,.85); transform: translate(-50%, 0);
  animation: smoke 1.8s ease-out forwards; pointer-events: none;
}
@keyframes smoke { to { transform: translate(calc(-50% + var(--dx)), -100px) scale(3.5); opacity: 0; } }

.tier {
  position: relative; border-radius: 16px 16px 10px 10px;
  background: linear-gradient(#ff8cc6, #ff5aa8);
  box-shadow: inset 0 -10px 0 rgba(122,10,61,.1), 0 6px 14px rgba(194,24,91,.18);
}
.tier::before { /* frosting drips */
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 28px; border-radius: 16px 16px 0 0;
  background:
    radial-gradient(circle at 11px 15px, #fff 10px, transparent 11px) 0 0 / 22px 28px repeat-x,
    linear-gradient(#fff, #fff) 0 0 / 100% 15px no-repeat;
}
.tier::after { /* sprinkles */
  content: ''; position: absolute; left: 6%; right: 6%; top: 34px; bottom: 12px;
  background:
    radial-gradient(circle, #fff 2px, transparent 2.6px) 0 0 / 30px 20px,
    radial-gradient(circle, #c2185b 2px, transparent 2.6px) 15px 10px / 30px 20px;
  opacity: .9;
}
.t3 { width: 56%; height: 66px; }
.t2 { width: 78%; height: 74px; }
.t1 { width: 100%; height: 86px; }
.plate { width: 118%; height: 20px; margin-top: -6px; border-radius: 50%; background: linear-gradient(#fff, #ffd1e8); box-shadow: 0 12px 24px rgba(194,24,91,.28); }

.cake-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }
.wish-msg {
  margin-top: 26px; font-family: 'Pacifico', cursive; font-size: clamp(1.5rem, 5vw, 2.4rem); color: #fff;
  text-shadow: 0 3px 0 var(--deep), 0 10px 26px rgba(194,24,91,.4);
  opacity: 0; transform: scale(.3); transition: transform .6s cubic-bezier(.2,1.6,.4,1), opacity .4s;
}
.wish-msg.show { opacity: 1; transform: scale(1); }

/* ---------- buttons ---------- */
.btn {
  font: inherit; font-weight: 700; font-size: 1.05rem; border: 0; border-radius: 999px; padding: 14px 26px; cursor: pointer;
  color: #fff; background: linear-gradient(135deg, #ff4fa3, #e0218a);
  box-shadow: 0 6px 0 #a3004f, 0 14px 30px rgba(194,24,91,.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #a3004f, 0 6px 14px rgba(194,24,91,.3); }
.btn:focus-visible { outline: 3px dashed #fff; outline-offset: 4px; }
.btn.ghost { background: rgba(255,255,255,.8); color: var(--deep); box-shadow: 0 6px 0 #ff85c0, 0 14px 30px rgba(194,24,91,.2); }
.btn.big { font-size: clamp(1.1rem, 4vw, 1.5rem); padding: 18px 36px; margin-top: 36px; }

/* ---------- wishes ---------- */
.wishes {
  max-width: 1100px; margin: 44px auto 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 18px;
}
.wish {
  position: relative; padding: 26px 18px 22px; border-radius: 24px; text-align: center; cursor: pointer;
  background: rgba(255,255,255,.6); border: 2px solid rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px rgba(194,24,91,.15);
  font-weight: 500; font-size: 1.08rem; line-height: 1.4;
  opacity: 0; transform: translateY(50px) scale(.85) rotate(var(--r));
  transition: opacity .6s ease, transform .7s cubic-bezier(.2,1.4,.4,1), box-shadow .2s;
  transition-delay: var(--d);
}
.wish.in { opacity: 1; transform: rotate(var(--r)); }
.wish.in:hover { transform: rotate(0) scale(1.06); box-shadow: 0 18px 40px rgba(194,24,91,.3); transition-delay: 0s; }
.wish-num {
  display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 12px; border-radius: 50%;
  background: linear-gradient(135deg, #ff4fa3, #c2185b); color: #fff; font-weight: 700;
  box-shadow: 0 0 0 4px rgba(255,255,255,.9);
}
.wish-emoji { display: block; font-size: 1.8rem; margin-top: 8px; }

/* ---------- certificate ---------- */
.cert {
  max-width: 700px; margin: 44px auto 0; padding: 14px; border-radius: 30px;
  background: repeating-linear-gradient(45deg, #ff4fa3 0 14px, #ffc2e2 14px 28px);
  box-shadow: 0 30px 70px rgba(194,24,91,.35);
}
.cert-inner { position: relative; background: #fff8fb; border-radius: 18px; border: 3px dashed #ff85c0; padding: clamp(26px, 5vw, 50px) clamp(16px, 4vw, 42px); }
.cert-label { font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: #ff4fa3; font-size: .85rem; }
.cert-text { margin-top: 14px; font-size: clamp(1rem, 3vw, 1.2rem); line-height: 1.55; }
.domain {
  margin: 22px 0 18px; min-height: 1.3em; font-weight: 700; font-size: clamp(1.6rem, 7vw, 3.4rem); line-height: 1.25; overflow-wrap: anywhere;
  background: linear-gradient(90deg, #c2185b, #ff4fa3, #ff9ccf, #ff4fa3, #c2185b); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 3s linear infinite;
}
.domain.done { animation: shine 3s linear infinite, domainPop .6s cubic-bezier(.2,1.6,.4,1); }
@keyframes domainPop { 50% { transform: scale(1.12); } }
.caret { display: inline-block; width: 3px; height: .95em; margin-left: 4px; vertical-align: -.08em; background: #ff1f8e; animation: blink 1s steps(1) infinite; }
.domain.done .caret { display: none; }
.cert-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 30px; text-align: left; }
.sign { display: flex; flex-direction: column; }
.sign span { font-family: 'Pacifico', cursive; font-size: clamp(1.2rem, 4vw, 1.6rem); color: var(--deep); border-bottom: 2px solid #ffc2e2; padding: 0 6px 2px; }
.sign small { margin-top: 4px; padding-left: 6px; letter-spacing: .2em; text-transform: uppercase; font-size: .7rem; opacity: .7; }
.seal {
  flex: none; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; font-size: 30px;
  background: radial-gradient(circle at 35% 30%, #ff6fb5, #c2185b);
  box-shadow: 0 0 0 5px #ffc2e2, 0 0 0 8px #ff4fa3, 0 10px 20px rgba(122,10,61,.35);
  animation: heartbeat 1.8s ease-in-out infinite;
}

/* ---------- finale ---------- */
.finale { padding-bottom: 80px; }
.finale h2 {
  font-family: 'Pacifico', cursive; font-weight: 400; font-size: clamp(2.6rem, 10vw, 6rem); line-height: 1.3;
  background: linear-gradient(90deg, #c2185b, #ff1f8e, #fff, #ff1f8e, #c2185b); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 2.5s linear infinite;
  filter: drop-shadow(0 4px 0 rgba(194,24,91,.25));
}
footer { position: relative; z-index: 2; padding: 26px 16px 40px; text-align: center; font-weight: 500; color: var(--deep); opacity: .8; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px) scale(.95); transition: opacity .8s ease, transform .9s cubic-bezier(.2,1.3,.4,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- widgets ---------- */
.music {
  position: fixed; right: 16px; bottom: 16px; z-index: 80; width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
  font-size: 22px; background: linear-gradient(135deg, #ff4fa3, #c2185b); color: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.85), 0 10px 24px rgba(194,24,91,.4);
}
.music.playing { animation: heartbeat 1.2s ease-in-out infinite; }
.toast {
  position: fixed; left: 50%; top: 18px; z-index: 70; max-width: calc(100% - 32px);
  padding: 14px 22px; border-radius: 999px; background: #fff; color: var(--deep); font-weight: 700; text-align: center;
  box-shadow: 0 14px 34px rgba(194,24,91,.35);
  transform: translate(-50%, -150%); transition: transform .5s cubic-bezier(.2,1.5,.4,1);
}
.toast.show { transform: translate(-50%, 0); }
.noscript { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; text-align: center; padding: 24px; background: #ffc2e2; font-size: 1.4rem; color: var(--deep); }

/* ---------- shared keyframes ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.95); } }
@keyframes popIn { from { opacity: 0; transform: scale(.3); } }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes shine { to { background-position: 200% center; } }
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 480px) {
  .balloon { width: calc(54px * var(--s, 1)); height: calc(68px * var(--s, 1)); }
  .balloon::after { height: 70px; }
  .wishes { grid-template-columns: 1fr 1fr; gap: 12px; }
  .wish { padding: 18px 10px 14px; font-size: .95rem; border-radius: 18px; }
  .wish-num { width: 34px; height: 34px; margin-bottom: 8px; }
  .wish-emoji { font-size: 1.5rem; }
  .digit { font-size: 66px; }
  .cake-actions .btn { width: 100%; max-width: 320px; }
}
