/* Phoonk (एक फूँक): a little cake shop at night. Strawberry pink, vanilla cream, chocolate ink, mint and butter.
   Opening: a dark room, a two-tier cake, candles burning; hold (or blow into the mic) and the flames lean and go
   out, smoke curls, the fairy lights come on, a knife cuts the cake and the halves part on the name.
   Then: recipe card -> frosting scratch + countdown -> party menu (cake boxes) -> wish jar -> RSVP -> footer.
   Fraunces (soft) for display, Work Sans for text, Caveat for handwriting, Yatra One for Devanagari. */

:root {
  --cream: #fff6ec;
  --cream-2: #fbe9d8;
  --pink: #f7aec0;
  --pink-2: #fcd9e2;
  --berry: #e8577a;
  --berry-2: #c4405f;
  --choc: #4a2530;
  --choc-2: #6e4350;
  --muted: #8f6d76;
  --mint: #7bd3c4;
  --butter: #ffd166;
  --lilac: #c9bdfa;
  --night: #1b0f16;

  --f-display: "Fraunces", "Georgia", serif;
  --f-body: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --f-hand: "Caveat", "Bradley Hand", cursive;
  --f-deva: "Yatra One", "Noto Sans Devanagari", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);

  --fx-music-bg: #4a2530;
  --fx-music-ring: #f7aec0;
  --fx-music-ink: #fff6ec;
  --fx-bg: #fff6ec;
}

html { scroll-behavior: smooth; }
html.shut, html.shut body { overflow: hidden; }
body {
  background: var(--cream);
  color: var(--choc);
  font: 400 18px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { background: var(--pink); color: var(--choc); }
:focus-visible { outline: 2.5px solid var(--berry); outline-offset: 4px; }
[lang="hi"] { font-family: var(--f-deva); }
.w { display: inline-block; white-space: nowrap; }
.phoonk .fx-petal { border-radius: 3px; width: 4px; height: 12px; box-shadow: none; }

/* =================================================================== OPENING */

.gate {
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: calc(56px + env(safe-area-inset-top)) 16px calc(40px + env(safe-area-inset-bottom));
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .28) 0 22px, transparent 22px 44px),
    radial-gradient(120% 70% at 50% 100%, #f6c1cf, #f9d9df 60%, #fbe6e8);
  --b: 0;
}
/* the shop shelf under the cake */
.gate::after {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 26%;
  background: linear-gradient(#e9a8b9, #d98fa4 6px, #f0c3cf 7px, #f6d3dc);
  box-shadow: 0 -2px 0 rgba(74, 37, 48, .12);
}
.room { position: absolute; inset: 0 0 auto; height: 110px; z-index: 0; pointer-events: none; }
.fairy { position: absolute; left: 0; top: 18px; width: 100%; height: 50px; }
.bulbs { position: absolute; left: 0; right: 0; top: 18px; height: 50px; }
.bulbs i {
  position: absolute; left: calc(var(--i) * 8.4% + 3%); top: calc(18px + 14px * sin(calc(var(--i) * 52deg)));
  width: 9px; height: 13px; border-radius: 50% 50% 45% 45%; background: #6b5560;
  transition: background .3s, box-shadow .3s; transition-delay: calc(var(--i) * 70ms);
}
.bulbs i:nth-child(4n+1) { --on: #ffd166; }
.bulbs i:nth-child(4n+2) { --on: #ff8fab; }
.bulbs i:nth-child(4n+3) { --on: #9fe0c8; }
.bulbs i:nth-child(4n+4) { --on: #c9bdfa; }
.gate.lit .bulbs i { background: var(--on); box-shadow: 0 0 10px 3px color-mix(in srgb, var(--on) 70%, transparent); animation: twinkle 2.4s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.37s); }
@keyframes twinkle { 50% { opacity: .65; } }

/* the dark: a pool of candlelight round the cake; it lifts when the lights come on */
.dark {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(42vmax 38vmax at 50% 52%, rgba(255, 170, 80, .16), rgba(27, 15, 22, .82) 46%, rgba(17, 8, 13, .96) 80%);
  opacity: calc(1 - var(--b) * .12);
  transition: opacity 1.6s ease;
  animation: candle 3.2s ease-in-out infinite;
}
@keyframes candle { 0%, 100% { filter: brightness(1); } 30% { filter: brightness(1.06); } 60% { filter: brightness(.95); } }
.gate.out .dark { opacity: .97; animation: none; }
.gate.lit .dark { opacity: 0; transition: opacity 1.4s ease .2s; }

.gate__ask { position: relative; z-index: 3; text-align: center; color: #ffe9cf; transition: opacity .5s, translate .5s var(--ease); }
.gate__to { font: 600 16px/1.2 var(--f-body); color: var(--pink); margin-bottom: 6px; }
.gate__title { font: italic 600 clamp(38px, 11vw, 60px)/1 var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 1; text-shadow: 0 0 24px rgba(255, 170, 80, .45); }
.gate__sub { margin-top: 10px; font: 400 18px/1.4 var(--f-body); color: #f3d4c4; }
.gate__sub b { color: #fff; font-weight: 600; }
.gate.lit .gate__ask { opacity: 0; translate: 0 -16px; pointer-events: none; }

.gate__ta {
  position: relative; z-index: 3; display: none; text-align: center;
  font: italic 600 clamp(40px, 12vw, 64px)/1 var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--berry);
}
.gate__ta span { display: block; margin-top: 8px; font: 700 26px/1 var(--f-hand); color: var(--choc-2); }
.gate.cut .gate__ta { display: block; animation: taIn .8s var(--spring) .5s both; }
@keyframes taIn { from { opacity: 0; translate: 0 16px; } }
.gate.cut .gate__ask { display: none; }
.gate.cut .stage { margin-top: var(--room, 100px); }
.stage { position: relative; z-index: 3; width: min(86vw, 380px); aspect-ratio: 300 / 236; margin-top: 18px; }
.cake {
  position: absolute; inset: auto 0 0; aspect-ratio: 300 / 220; width: 100%; padding: 0; border: 0; background: none;
  cursor: pointer; touch-action: none; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
}
.cake:focus-visible { outline-offset: 10px; border-radius: 16px; }
.cake__half { position: absolute; inset: 0; transition: transform 1.1s var(--ease); }
.cake__half--l { clip-path: inset(-5% 50% -5% -5%); }
.cake__half--r { clip-path: inset(-5% -5% -5% 50%); }
.cake__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.gate.cut .cake__half--l { transform: translateX(-36%) rotate(-4deg); }
.gate.cut .cake__half--r { transform: translateX(36%) rotate(4deg); }

/* candles stand on the top tier (y 56/220) */
.candles { position: absolute; left: 0; right: 0; bottom: 74.5%; height: 0; transition: transform .9s var(--ease), opacity .7s ease; }
.gate.lift .candles { transform: translateY(-60px); opacity: 0; }
.candle { position: absolute; left: var(--x); bottom: 0; width: 0; }
.candle__wax {
  position: absolute; left: -4.5px; bottom: 0; width: 9px; height: clamp(34px, 11vw, 46px); border-radius: 3px 3px 1px 1px;
  background: repeating-linear-gradient(135deg, #fff 0 5px, var(--wax, #8ecfe0) 5px 10px);
  box-shadow: inset -2px 0 0 rgba(0, 0, 0, .08);
}
.candle:nth-child(3n+2) .candle__wax { --wax: #f7aec0; }
.candle:nth-child(3n+3) .candle__wax { --wax: #ffd166; }
.candle__digit {
  position: absolute; left: 0; bottom: -4px; translate: -50% 0;
  font: 900 clamp(54px, 17vw, 76px)/1 var(--f-display); font-variation-settings: "SOFT" 100;
  background: repeating-linear-gradient(135deg, #fff 0 6px, #8ecfe0 6px 12px); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(1.5px 0 0 #5fa9bd) drop-shadow(-1.5px 0 0 #5fa9bd) drop-shadow(0 -1.5px 0 #5fa9bd);
}
.candle--digit:nth-child(2) .candle__digit { background-image: repeating-linear-gradient(135deg, #fff 0 6px, #f7aec0 6px 12px); filter: drop-shadow(1.5px 0 0 #d9738e) drop-shadow(-1.5px 0 0 #d9738e) drop-shadow(0 -1.5px 0 #d9738e); }
.candle__wick { position: absolute; left: -1px; bottom: clamp(34px, 11vw, 46px); width: 2px; height: 7px; background: #3b2a33; border-radius: 1px; }
.candle--digit .candle__wick { bottom: clamp(48px, 15vw, 66px); }
.flame {
  position: absolute; left: 0; bottom: calc(clamp(34px, 11vw, 46px) + 5px); width: 0; height: 0;
  transform-origin: 0 0; transition: opacity .25s, transform .25s;
  transform: skewX(calc(var(--b) * -28deg)) scale(calc(1 - var(--b) * .45), calc(1 - var(--b) * .65));
}
.candle--digit .flame { bottom: calc(clamp(48px, 15vw, 66px) + 5px); }
.flame i { position: absolute; left: 0; bottom: 0; }
.flame__halo {
  width: 90px; height: 90px; margin: 0 0 -38px -45px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 110, .55), rgba(255, 160, 60, .16) 40%, transparent 70%);
  opacity: calc(1 - var(--b) * .8); animation: halo 2.1s ease-in-out infinite alternate;
}
.flame__body {
  width: 14px; height: 30px; margin-left: -7px; border-radius: 50% 50% 50% 50% / 64% 64% 36% 36%;
  background: radial-gradient(60% 50% at 50% 70%, #fffbe6, #ffd36b 45%, #ff9a2e 75%, rgba(255, 110, 30, .2));
  transform-origin: 50% 100%; animation: flicker .18s ease-in-out infinite alternate;
  box-shadow: 0 0 12px 3px rgba(255, 170, 60, .55);
}
.flame__core { width: 6px; height: 9px; margin: 0 0 1px -3px; border-radius: 50% 50% 40% 40%; background: rgba(110, 160, 255, .75); filter: blur(.5px); }
.candle:nth-child(2n) .flame__body { animation-duration: .23s; animation-delay: -.1s; }
@keyframes flicker { 0% { transform: scale(1, 1) rotate(-2deg); } 100% { transform: scale(.94, 1.07) rotate(2.5deg); } }
@keyframes halo { to { transform: scale(1.08); opacity: calc(.85 - var(--b) * .8); } }
.candle.out .flame { opacity: 0; transform: scale(.2, .1); }
.smoke { position: absolute; left: -10px; bottom: calc(clamp(34px, 11vw, 46px) + 2px); width: 20px; height: 70px; opacity: 0; pointer-events: none; }
.candle--digit .smoke { bottom: calc(clamp(48px, 15vw, 66px) + 2px); }
.smoke path { stroke-dasharray: 140; stroke-dashoffset: 140; }
.candle.out .smoke { animation: smokefade 2.4s ease-out forwards; }
.candle.out .smoke path { animation: smokerise 2.4s ease-out forwards; }
@keyframes smokefade { 0% { opacity: .0; } 15% { opacity: .55; } 100% { opacity: 0; translate: 4px -30px; } }
@keyframes smokerise { to { stroke-dashoffset: 0; } }

.knife {
  position: absolute; left: 50%; top: -34%; width: 14px; height: 120%; margin-left: -7px; opacity: 0; pointer-events: none;
  background:
    linear-gradient(90deg, #5a3b45 0 100%) top / 100% 26% no-repeat,
    linear-gradient(90deg, #c9ced8, #f6f8fb 45%, #aab1bf) bottom / 100% 74% no-repeat;
  border-radius: 4px 4px 2px 50% / 4px 4px 2px 30px;
  box-shadow: 2px 0 6px rgba(0, 0, 0, .25);
}
.gate.cutting .knife { animation: knife .8s cubic-bezier(.5, 0, .3, 1) forwards; }
@keyframes knife { 0% { opacity: 0; translate: 0 -40%; } 25% { opacity: 1; translate: 0 -20%; } 70% { opacity: 1; translate: 0 18%; } 100% { opacity: 0; translate: 0 6%; } }

/* the cross-section card the cut reveals */
.slice {
  position: absolute; z-index: 4; left: 50%; bottom: 4%; width: min(76vw, 300px); translate: -50% 0;
  padding: 22px 12px 12px; border-radius: 18px; pointer-events: none;
  background: linear-gradient(#f39ab0 0 12px, #f6dcae 12px 38%, #fff5e6 38% 44%, #e8577a 44% 48%, #f6dcae 48% 84%, #fff5e6 84% 90%, #f6dcae 90%);
  box-shadow: 0 30px 50px -24px rgba(74, 37, 48, .55), inset 0 -4px 0 rgba(0, 0, 0, .06);
  opacity: 0; scale: .2 .6; transform-origin: 50% 100%;
}
.gate.cut .slice { opacity: 1; scale: 1; pointer-events: auto; transition: opacity .5s ease .3s, scale .9s var(--spring) .25s; }
.slice__label { padding: 18px 14px 16px; border-radius: 12px; background: #fffaf3; text-align: center; box-shadow: 0 2px 0 rgba(74, 37, 48, .08); }
.slice__kick { font: 700 24px/1 var(--f-hand); color: var(--berry); }
.slice__hi { margin-top: 6px; font: 400 22px/1.2 var(--f-deva); color: var(--choc-2); }
.slice__name { margin: 2px 0 0; font: 800 clamp(46px, 15vw, 66px)/1 var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -.02em; color: var(--choc); }
.slice__age { margin-top: 4px; font: italic 500 22px/1.2 var(--f-display); color: var(--choc-2); }
.slice__age b { font: normal 900 40px/1 var(--f-display); color: var(--berry); vertical-align: -4px; }
.slice__when { margin-top: 10px; padding-top: 10px; border-top: 1.5px dashed var(--pink); font: 600 16px/1.4 var(--f-body); }
.slice__where { margin-top: 2px; font: 400 15px/1.4 var(--f-body); color: var(--muted); }

.breath { position: relative; z-index: 3; width: 150px; height: 6px; margin-top: 18px; border-radius: 6px; background: rgba(255, 233, 207, .2); overflow: hidden; transition: opacity .4s; }
.breath__bar { position: absolute; inset: 0; width: calc(var(--b) * 100%); background: linear-gradient(90deg, var(--butter), var(--pink)); border-radius: inherit; }
.gate__hint { position: relative; z-index: 3; min-height: 1.4em; font: 700 26px/1.2 var(--f-hand); color: #ffe9cf; transition: opacity .4s; }
.gate__mic {
  position: relative; z-index: 3; min-height: 44px; padding: 0 16px; border: 0; background: none; cursor: pointer;
  font: 500 15px/1 var(--f-body); color: #f3d4c4; text-decoration: underline; text-underline-offset: 4px; transition: opacity .4s;
}
.gate__mic[aria-pressed="true"] { color: var(--butter); text-decoration: none; }
.gate.out :is(.breath, .gate__hint, .gate__mic) { opacity: 0; pointer-events: none; }
.gate__more {
  position: relative; z-index: 3; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin-top: 8px; padding: 0 22px; border-radius: 999px;
  background: var(--choc); color: var(--cream); text-decoration: none; font: 600 16px/1 var(--f-body);
  opacity: 0; translate: 0 12px; pointer-events: none;
}
.gate.cut .gate__more { opacity: 1; translate: 0 0; pointer-events: auto; transition: opacity .6s ease 1s, translate .6s var(--ease) 1s; }
.gate__more span { animation: nudge 1.5s ease-in-out infinite; }
@keyframes nudge { 50% { translate: 0 4px; } }
.gate:not(.cut) .gate__more { position: absolute; bottom: 0; }

.gate__skip {
  position: absolute; z-index: 5; left: calc(14px + env(safe-area-inset-left)); bottom: calc(16px + env(safe-area-inset-bottom));
  min-height: 44px; min-width: 60px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 233, 207, .5); background: rgba(27, 15, 22, .4); color: #ffe9cf;
  font: 600 13px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase;
}
html:not(.shut) .gate__skip { display: none; }
.gate.instant * { transition: none !important; }
.gate.done .breath, .gate.done .gate__hint, .gate.done .gate__mic { display: none; }

/* =================================================================== SECTIONS */

.sec { position: relative; padding: 84px 20px; }
.sec > * { max-width: 560px; margin-inline: auto; }
.eyebrow { font: 700 26px/1 var(--f-hand); color: var(--berry); }
.sec__title {
  margin: 8px 0 0; font: 700 clamp(36px, 10vw, 54px)/1.02 var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 0;
  letter-spacing: -.02em; text-wrap: balance;
}
.sec__title em { font-style: italic; font-weight: 500; color: var(--berry); font-variation-settings: "SOFT" 100, "WONK" 1; }

/* --- recipe card --- */
.sec--recipe { background: repeating-linear-gradient(45deg, #fdeef0 0 14px, #fff6ec 14px 28px); }
.recipe {
  position: relative; padding: 30px 22px 22px; border-radius: 6px; background: #fffdf8;
  box-shadow: 0 1px 0 rgba(74, 37, 48, .08), 0 24px 44px -24px rgba(74, 37, 48, .45);
  border-top: 10px solid var(--berry);
}
.recipe::before {
  content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px;
  background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(255, 255, 255, .55) 14px 18px);
}
.recipe .sec__title { font-size: clamp(32px, 8.6vw, 46px); }
.recipe__cols { display: grid; gap: 22px; margin-top: 24px; }
@media (min-width: 640px) { .recipe__cols { grid-template-columns: 1fr 1.2fr; gap: 30px; } }
.recipe__h { padding-bottom: 6px; border-bottom: 1.5px solid var(--pink); font: 600 12px/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.recipe__list { list-style: none; margin: 10px 0 0; padding: 0; }
.recipe__list li { display: grid; grid-template-columns: 42px 1fr; gap: 6px; padding: 8px 0; border-bottom: 1px dotted rgba(74, 37, 48, .18); font: 400 17px/1.45 var(--f-body); }
.recipe__list span { font: 700 22px/1.1 var(--f-hand); color: var(--berry); }
.recipe__method { margin-top: 12px; font: 500 25px/1.35 var(--f-hand); color: var(--choc); }
.recipe__bless { margin-top: 12px; font: italic 400 17px/1.5 var(--f-display); color: var(--choc-2); }
.recipe__serves { margin-top: 22px; padding-top: 12px; border-top: 1.5px dashed var(--pink); font: 600 13px/1.5 var(--f-body); letter-spacing: .06em; color: var(--muted); }

/* --- date under frosting --- */
.sec--date { text-align: center; background: var(--cream); }
.date .scratch { margin: 30px auto 0; max-width: 330px; border-radius: 26px; }
.sd {
  display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 150px; padding: 18px 22px; border-radius: 26px;
  background: #fffaf3; border: 2px solid var(--pink);
}
.sd__day { font: 900 92px/.9 var(--f-display); font-variation-settings: "SOFT" 100; color: var(--berry); }
.sd__meta { display: flex; flex-direction: column; align-items: flex-start; text-align: left; font: 500 16px/1.4 var(--f-body); color: var(--choc-2); }
.sd__meta b { font: 700 30px/1 var(--f-display); color: var(--choc); }
.sd__meta i { font: 700 22px/1.2 var(--f-hand); color: var(--berry); font-style: normal; }
.scratch__hint { margin-top: 24px; font: 500 22px/1 var(--f-hand); color: var(--muted); }
.oven { margin: 34px auto 0; max-width: 360px; padding: 20px 16px 18px; border-radius: 22px; background: var(--choc); color: var(--cream); }
.oven__label { font: 600 12px/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--pink); }
.count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.count span { display: grid; gap: 4px; padding: 10px 0; border-radius: 12px; background: rgba(255, 246, 236, .08); font: 500 12px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: #e9c9d1; }
.count b { font: 800 32px/1 var(--f-display); color: var(--butter); }
.count__done { margin-top: 16px; font: 700 28px/1.2 var(--f-hand); color: var(--berry); }

/* --- party menu: cake boxes --- */
.sec--menu { background: var(--pink-2); }
.box {
  position: relative; margin-top: 46px; padding: 30px 20px 20px; border-radius: 8px; background: #fff;
  box-shadow: 0 22px 40px -26px rgba(74, 37, 48, .55);
}
.box::before {                         /* the ribbon round the box */
  content: ""; position: absolute; top: 0; bottom: 0; right: 30px; width: 14px; background: var(--berry); opacity: .9;
}
.box__lid {
  position: absolute; left: -6px; right: -6px; top: -18px; height: 26px; border-radius: 6px;
  background: repeating-linear-gradient(90deg, var(--pink) 0 18px, #fff 18px 36px); box-shadow: 0 4px 0 rgba(74, 37, 48, .12);
}
.box__lid span {
  position: absolute; right: 18px; top: -16px; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: var(--berry); color: #fff; font: 800 22px/1 var(--f-display); box-shadow: 0 3px 0 var(--berry-2);
}
.box__hi { font: 400 20px/1.2 var(--f-deva); color: var(--berry); }
.box__name { margin: 2px 60px 0 0; font: 700 30px/1.1 var(--f-display); font-variation-settings: "SOFT" 100; }
.box__rows { margin: 14px 0 0; padding-right: 40px; }
.box__rows div { padding: 9px 0; border-top: 1px dashed rgba(74, 37, 48, .16); }
.box__rows dt { font: 600 11px/1.4 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.box__rows dd { margin: 2px 0 0; font: 400 17px/1.45 var(--f-body); }
.box__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-right: 40px; }
.pill {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; text-decoration: none;
  border: 1.5px solid var(--choc); font: 600 14px/1 var(--f-body);
}
.pill--solid { background: var(--choc); color: var(--cream); }

/* --- wish jar --- */
.sec--jar { text-align: center; background: linear-gradient(180deg, #2a1822, #3a2230); color: var(--cream); }
.sec--jar .eyebrow { color: var(--pink); }
.sec--jar .sec__title em { color: var(--butter); }
.jar__ask { margin-top: 10px; color: #ecd2d9; }
.jar__btn { display: block; margin: 22px auto 0; padding: 10px; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.jar__svg { display: block; width: 150px; height: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .4)); }
.jar__btn:hover .jar__svg, .jar__btn.shake .jar__svg { animation: jiggle .5s var(--spring); }
@keyframes jiggle { 25% { rotate: -6deg; } 60% { rotate: 5deg; } 100% { rotate: 0; } }
.wish {
  position: relative; max-width: 320px; margin: 14px auto 0; padding: 20px 18px 16px; border-radius: 4px;
  background: var(--butter); color: var(--choc); rotate: -2deg; box-shadow: 0 16px 26px -12px rgba(0, 0, 0, .5);
  animation: unfold .6s var(--spring);
}
.wish[data-tone="1"] { background: var(--pink); rotate: 2deg; }
.wish[data-tone="2"] { background: #9fe0c8; rotate: -1deg; }
.wish[data-tone="3"] { background: var(--lilac); rotate: 1.5deg; }
@keyframes unfold { from { scale: .2 .05; opacity: 0; translate: 0 -40px; } }
.wish__text { font: 700 27px/1.25 var(--f-hand); }
.wish__from { margin-top: 6px; font: italic 400 15px/1 var(--f-display); color: var(--choc-2); }

/* --- gallery --- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }

/* --- rsvp --- */
.sec--rsvp { text-align: center; padding-block: 100px; background: var(--cream); }
.rsvp__ask { margin-top: 12px; color: var(--choc-2); }
.slice-btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 60px; margin-top: 28px; padding: 0 28px 0 20px; border-radius: 999px;
  background: var(--berry); color: #fff; text-decoration: none; font: 700 20px/1 var(--f-body);
  box-shadow: 0 6px 0 var(--berry-2), 0 18px 30px -12px rgba(232, 87, 122, .6); transition: translate .12s, box-shadow .12s;
}
.slice-btn svg { width: 36px; height: 28px; }
.slice-btn:hover { translate: 0 -2px; }
.slice-btn:active { translate: 0 4px; box-shadow: 0 2px 0 var(--berry-2); }
.rsvp__no { display: flex; justify-content: center; align-items: center; min-height: 44px; margin-top: 14px; font: 500 16px/1.3 var(--f-body); color: var(--muted); text-underline-offset: 4px; }
.rsvp__tag { margin-top: 20px; font: 700 26px/1 var(--f-hand); color: var(--berry); }

/* --- footer --- */
.foot { padding: 56px 20px calc(90px + env(safe-area-inset-bottom)); text-align: center; background: var(--choc); color: var(--cream); }
.foot__name { font: 700 36px/1.1 var(--f-display); font-variation-settings: "SOFT" 100; }
.foot__name em { font-weight: 400; color: var(--pink); }
.foot__hosts { margin-top: 6px; color: #e3c6cd; font-size: 16px; }
.foot__cal { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 12px; margin-top: 14px; font: 600 15px/1 var(--f-body); }
.foot__cal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--butter); }
.foot__music, .foot__credit { margin-top: 8px; font: 400 13px/1.5 var(--f-body); color: #c7a8b0; }
.foot__credit a { color: var(--cream); }
.up { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; font: 600 13px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--cream); }

@media (min-width: 900px) {
  .stage { width: 440px; }
  .slice { width: 330px; }
  .sec { padding-block: 110px; }
  .recipe { padding: 40px 40px 30px; }
}
@media (max-height: 700px) {
  .stage { width: min(74vw, 320px); }
  .gate { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .gate.cut .slice { opacity: 1; scale: 1; }
}

/* =================================================================== LINK-PREVIEW CARD */
.ogcard { background: radial-gradient(70% 90% at 26% 60%, #4a2530, #24141d 70%); color: var(--cream); font-family: var(--f-body); --b: 0; }
.og__glow { position: absolute; left: 70px; top: 40px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 180, 90, .35), transparent 65%); }
.og__cake { position: absolute; left: 50px; bottom: 40px; width: 450px; height: 520px; }
.og__cake .cake { cursor: default; }
.og__cake .candle__wax { height: 70px; width: 14px; left: -7px; }
.og__cake .candle__wick { bottom: 70px; }
.og__cake .flame { bottom: 75px; transform: scale(1.5); }
.og__cake .candle__digit { font-size: 110px; }
.og__cake .candle--digit .candle__wick { bottom: 96px; }
.og__cake .candle--digit .flame { bottom: 101px; }
.og__text { position: absolute; left: 540px; right: 50px; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; }
.og__kick { font: 700 50px/1 var(--f-hand); color: var(--pink); }
.og__name { margin-top: 6px; font: 800 136px/.95 var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.og__age { margin-top: 8px; font: italic 500 46px/1.1 var(--f-display); color: #f3d4c4; }
.og__age b { font: normal 900 76px/1 var(--f-display); color: var(--butter); }
.og__date { margin-top: 26px; font: 600 32px/1.25 var(--f-body); }
.og__venue { margin-top: 6px; font: 400 28px/1.25 var(--f-body); color: #e3c6cd; }
