/* Gubbara (गुब्बारा): a bright kids' party. Sky blue, sunshine, six latex balloons and a lot of confetti.
   Opening: pop every balloon (tap or Enter); the last one leaves the child's name and a foil number.
   Then: a note on lined paper -> confetti scratch card + countdown -> party plan tickets -> bubble wrap
   -> a "count us in" on WhatsApp -> navy footer. Baloo 2 (Latin + Devanagari), Nunito, Patrick Hand. */

:root {
  --sky: #5ec4f7;
  --sky-2: #a9e4ff;
  --sky-3: #e2f7ff;
  --cream: #fff8ec;
  --paper: #ffffff;
  --ink: #1d2b5a;
  --ink-2: #3d4a78;
  --muted: #6a7499;
  --red: #ff5a5f;
  --yellow: #ffc93c;
  --green: #2fd39a;
  --purple: #7b6cf6;
  --pink: #ff8fc7;
  --blue: #2bb3ff;
  --grass: #4cc77a;

  --f-display: "Baloo 2", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --f-body: "Nunito", "Trebuchet MS", system-ui, sans-serif;
  --f-hand: "Patrick Hand", "Comic Sans MS", "Chalkboard SE", cursive;
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.22, 1, .36, 1);

  --fx-music-bg: #ff5a5f;
  --fx-music-ring: #ffc93c;
  --fx-music-ink: #fff;
  --fx-bg: #fff;
}

html { scroll-behavior: smooth; }
html.shut, html.shut body { overflow: hidden; }
body {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 90, 95, .14) 0 5px, transparent 6px) 0 0 / 180px 200px,
    radial-gradient(circle at 70% 60%, rgba(43, 179, 255, .14) 0 4px, transparent 5px) 0 0 / 160px 150px,
    radial-gradient(circle at 40% 80%, rgba(255, 201, 60, .2) 0 4px, transparent 5px) 0 0 / 210px 170px,
    var(--cream);
  color: var(--ink);
  font: 400 18px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px dashed var(--purple); outline-offset: 4px; }
[lang="hi"] { font-family: var(--f-display); }
.w { display: inline-block; white-space: nowrap; }

/* confetti instead of petals (core.js throws .fx-petal on taps and showers) */
.gubbara .fx-petal { width: 8px; height: 13px; margin: -6px 0 0 -4px; border-radius: 2px; box-shadow: none; }
.gubbara .fx-petal:nth-of-type(3n) { width: 10px; height: 10px; border-radius: 50%; }
.cf { position: fixed; z-index: 85; left: 0; top: 0; pointer-events: none; border-radius: 2px; will-change: transform; }
.cf--dot { border-radius: 50%; }
.cf--rib { border-radius: 1px; }
.popword {
  position: fixed; z-index: 86; left: 0; top: 0; pointer-events: none;
  font: 800 30px/1 var(--f-display); color: #fff; letter-spacing: .02em;
  -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill;
}

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

.gate {
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(18px + env(safe-area-inset-top)) 16px calc(70px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky-2) 58%, var(--sky-3) 100%);
}
.gate__sun {
  position: absolute; z-index: -1; top: -70px; right: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, #fff6c4 0 38%, #ffe27a 39% 52%, rgba(255, 226, 122, .35) 53% 64%, transparent 65%);
  animation: spin 40s linear infinite;
}
.gate__sun::before {
  content: ""; position: absolute; inset: -30px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 236, 150, .45) 0 7deg, transparent 7deg 22deg);
  -webkit-mask: radial-gradient(circle, transparent 46%, #000 47%, transparent 70%); mask: radial-gradient(circle, transparent 46%, #000 47%, transparent 70%);
}
@keyframes spin { to { rotate: 360deg; } }

.cloud { position: absolute; z-index: -1; width: 150px; opacity: .95; filter: drop-shadow(0 6px 0 rgba(29, 43, 90, .06)); }
.cloud--a { top: 13%; left: -40px; width: 130px; animation: drift 38s linear infinite; }
.cloud--b { top: 38%; right: -30px; width: 170px; animation: drift 52s linear infinite reverse; opacity: .8; }
.cloud--c { top: 70%; left: 10%; width: 110px; animation: drift 44s linear infinite; animation-delay: -20s; opacity: .7; }
@keyframes drift { 0% { translate: -30vw 0; } 100% { translate: 110vw 0; } }
.cloud--b { animation-name: driftB; }
@keyframes driftB { 0% { translate: 30vw 0; } 100% { translate: -110vw 0; } }

.gate__ask { position: relative; z-index: 2; padding-top: 34px; text-align: center; max-width: 520px; transition: opacity .4s, translate .4s var(--ease); }
.gate__to { font: 700 16px/1.2 var(--f-body); color: var(--ink); margin-bottom: 6px; }
.gate__title {
  font: 800 clamp(34px, 10vw, 54px)/1 var(--f-display); color: #fff; letter-spacing: -.01em;
  -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink);
  rotate: -2deg;
}
.gate__sub { margin-top: 12px; font: 700 17px/1.4 var(--f-body); color: var(--ink); }
.gate__left {
  display: inline-block; margin-left: 4px; padding: 2px 12px; border-radius: 999px;
  background: var(--yellow); box-shadow: 0 3px 0 var(--ink); white-space: nowrap;
}
.gate__left b { font-weight: 800; }

.sky { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 520px; min-height: 380px; margin-top: 6px; }
.bal {
  position: absolute; width: clamp(80px, 24vw, 118px); aspect-ratio: 100 / 190; padding: 0; border: 0; background: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent; transform-origin: 50% 66%;
  animation: bob 3.4s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.7s);
}
.bal::after {               /* a bigger, easier tap target round the latex */
  content: ""; position: absolute; left: -8%; right: -8%; top: -4%; height: 72%; border-radius: 50%;
}
.bal__svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 8px 6px rgba(29, 43, 90, .16)); }
.bal__body, .bal__string { transform-box: fill-box; transform-origin: 50% 50%; }
.bal:hover .bal__body { scale: 1.04; transition: scale .25s var(--bounce); }
.bal:focus-visible { outline: none; }
.bal:focus-visible .bal__body { stroke: var(--ink); stroke-width: 3px; stroke-dasharray: 6 5; }
.bal.wobble { animation: wobble .5s var(--bounce); }
.bal.popped { pointer-events: none; animation: none; }
.bal--0 { left: 4%;  top: 6%; }
.bal--1 { left: 38%; top: 0%; }
.bal--2 { left: 70%; top: 10%; }
.bal--3 { left: 20%; top: 38%; }
.bal--4 { left: 56%; top: 42%; }
.bal--5 { left: 38%; top: 24%; z-index: -1; }
@keyframes bob { 0% { transform: translateY(0) rotate(-3deg); } 100% { transform: translateY(-14px) rotate(3deg); } }
@keyframes wobble { 0% { transform: rotate(0); } 30% { transform: rotate(-9deg) scale(1.04); } 60% { transform: rotate(7deg); } 100% { transform: rotate(0); } }

.gate__skip {
  position: absolute; z-index: 5; left: calc(14px + env(safe-area-inset-left)); bottom: calc(18px + env(safe-area-inset-bottom));
  min-width: 64px; min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .75); border: 2px solid var(--ink); color: var(--ink); font: 800 14px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase;
}
html:not(.shut) .gate__skip { display: none; }

.grass {
  position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; height: 64px; pointer-events: none;
  background:
    radial-gradient(28px 22px at 28px 24px, var(--grass) 97%, transparent) 0 0 / 56px 26px repeat-x,
    linear-gradient(var(--grass), #39b467) 0 22px / 100% 100% no-repeat;
}

/* --- the reveal: name, foil number, floaters --- */
.hero {
  position: absolute; z-index: 3; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(40px + env(safe-area-inset-top)) 20px 90px; text-align: center; pointer-events: none;
  visibility: hidden;
}
.hero > :not(.floaters) { opacity: 0; scale: .6; }
.gate.done .hero { visibility: visible; pointer-events: auto; }
.gate.done .hero > :not(.floaters) { opacity: 1; scale: 1; transition: opacity .5s ease, scale .7s var(--bounce); }
.gate.done .hero > :nth-child(3) { transition-delay: .08s; }
.gate.done .hero > :nth-child(4) { transition-delay: .16s; }
.gate.done .hero > :nth-child(5) { transition-delay: .3s; }
.gate.done .hero > :nth-child(6) { transition-delay: .45s; }
.gate.done .hero > :nth-child(7) { transition-delay: .6s; }
.gate.done .hero > :nth-child(8) { transition-delay: .75s; }
.gate.instant .hero > * { transition: none !important; }
.gate.done .sky, .gate.done .gate__ask { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }

.hero__kick {
  margin-bottom: 10px; padding: 6px 16px; border-radius: 999px; background: var(--red); color: #fff; rotate: -3deg;
  font: 800 15px/1.2 var(--f-display); letter-spacing: .05em; text-transform: uppercase; box-shadow: 0 4px 0 var(--ink);
}
.hero__hi { margin-top: 16px; font: 700 26px/1.2 var(--f-display); color: var(--ink); }
.hero__name {
  width: 100%; margin: 4px 0 0; font: 800 clamp(64px, 22vw, 150px)/.92 var(--f-display); color: #fff; letter-spacing: -.01em;
  -webkit-text-stroke: 10px var(--ink); paint-order: stroke fill; text-shadow: 0 8px 0 var(--ink);
}
.hero__turns { margin-top: 8px; font: 700 22px/1.2 var(--f-hand); color: var(--ink); font-size: 26px; }
.foil { position: relative; display: grid; justify-items: center; margin-top: 2px; }
.foil__num {
  font: 800 clamp(120px, 40vw, 210px)/.9 var(--f-display); letter-spacing: -.04em;
  background: linear-gradient(100deg, #ffe48a 0%, #fff6cf 18%, #ffcf3f 40%, #f0a500 62%, #ffd75e 80%, #c98200 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(1.5px 0 0 #b36b00) drop-shadow(-1.5px 0 0 #b36b00) drop-shadow(0 1.5px 0 #b36b00) drop-shadow(0 -1.5px 0 #b36b00) drop-shadow(0 8px 0 rgba(29, 43, 90, .25));
  animation: foilbob 3s ease-in-out infinite alternate;
}
.foil__string { width: 18px; height: 46px; margin-top: -22px; }
@keyframes foilbob { from { translate: 0 0; rotate: -3deg; } to { translate: 0 -8px; rotate: 3deg; } }
.hero__when { margin-top: 8px; padding: 8px 18px; border-radius: 14px; background: #fff; box-shadow: 0 4px 0 var(--ink); font: 800 17px/1.3 var(--f-body); }
.hero__more {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 18px; padding: 0 20px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none; font: 800 16px/1 var(--f-body);
}
.hero__more span { animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { translate: 0 4px; } }

.floaters { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.floaters span { position: absolute; bottom: -200px; width: 64px; opacity: 0; }
.floaters span:nth-child(1) { left: 2%; width: 70px; }
.floaters span:nth-child(2) { left: 80%; width: 58px; }
.floaters span:nth-child(3) { left: 14%; width: 52px; }
.floaters span:nth-child(4) { left: 68%; width: 74px; }
.floaters span:nth-child(5) { left: 88%; width: 48px; }
.floaters span:nth-child(6) { left: 30%; width: 44px; }
.gate.done .floaters span { animation: rise 11s linear infinite; animation-delay: calc(var(--i) * 1.9s - 1s); }
@keyframes rise { 0% { translate: 0 0; opacity: .9; } 50% { translate: 18px -55svh; } 100% { translate: -10px -125svh; opacity: .9; } }

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

.sec { position: relative; padding: 76px 20px; }
.sec > * { max-width: 540px; margin-inline: auto; }
.tag {
  display: table; padding: 5px 14px; border-radius: 999px; rotate: -2deg; color: #fff;
  font: 800 13px/1.2 var(--f-display); letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 3px 0 var(--ink);
}
.tag--red { background: var(--red); }
.tag--blue { background: var(--blue); }
.tag--green { background: var(--green); color: var(--ink); }
.tag--purple { background: var(--purple); }
.tag--yellow { background: var(--yellow); color: var(--ink); }
.sec__title { margin: 16px 0 0; font: 800 clamp(34px, 9.4vw, 52px)/1.04 var(--f-display); letter-spacing: -.01em; text-wrap: balance; }
.pop { position: relative; display: inline-block; color: var(--red); white-space: nowrap; }
.pop::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .2em; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 8'%3E%3Cpath d='M0 4q5-4 10 0t10 0 10 0 10 0' fill='none' stroke='%23ffc93c' stroke-width='3'/%3E%3C/svg%3E") 0 0 / 1.1em 100% repeat-x;
}
.pop--blue { color: var(--blue); }
.pop--green { color: #14a874; }
.pop--purple { color: var(--purple); }
.pop--red { color: var(--red); }

.bunting { position: absolute; top: 0; left: 0; width: 100%; height: 54px; max-width: none; }

/* --- note on lined paper --- */
.sec--hello { padding-top: 92px; }
.note {
  position: relative; padding: 34px 22px 30px 40px; rotate: -1deg; border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 26px, rgba(255, 90, 95, .5) 26px 28px, transparent 28px),
    repeating-linear-gradient(180deg, transparent 0 33px, rgba(43, 179, 255, .25) 33px 34px),
    var(--paper);
  background-position: 0 0, 0 18px, 0 0;
  box-shadow: 0 2px 0 rgba(29, 43, 90, .06), 0 18px 34px -18px rgba(29, 43, 90, .35);
}
.note::before {                     /* masking tape */
  content: ""; position: absolute; top: -14px; left: 50%; width: 110px; height: 28px; translate: -50% 0; rotate: 3deg;
  background: rgba(255, 201, 60, .75); box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.note .tag { margin-bottom: 4px; }
.note__msg { margin-top: 18px; font: 400 25px/34px var(--f-hand); color: var(--ink); }
.note__sign { margin-top: 18px; font: 400 22px/1.4 var(--f-hand); color: var(--ink-2); }
.note__sign strong { font-weight: 400; color: var(--ink); font-size: 26px; }
.note__bless { margin-top: 6px; font: italic 600 16px/1.5 var(--f-body); color: var(--muted); }
.note__theme {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 18px; padding-top: 14px; border-top: 2px dashed rgba(29, 43, 90, .15);
  font: 800 20px/1.3 var(--f-display); color: var(--purple);
}
.note__theme span { font: 800 12px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.note__photo { margin: 20px auto 0; width: 70%; aspect-ratio: 4 / 5; border-radius: 50% 50% 46% 46%; overflow: hidden; border: 6px solid var(--yellow); }
.note__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- date --- */
.sec--date { background: linear-gradient(180deg, var(--sky-3), #c9eeff); }
.date { text-align: center; }
.date .tag { margin-inline: auto; }
.date .scratch { margin: 28px auto 0; max-width: 340px; border-radius: 22px; }
.sd {
  display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 150px; padding: 18px 20px; border-radius: 22px;
  background: #fff; border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink);
}
.sd__day { font: 800 96px/.9 var(--f-display); color: var(--red); }
.sd__meta { display: flex; flex-direction: column; align-items: flex-start; text-align: left; font: 700 16px/1.35 var(--f-body); }
.sd__meta b { font: 800 28px/1 var(--f-display); color: var(--ink); }
.sd__meta i { font-style: normal; color: var(--purple); }
.scratch__hint { margin-top: 26px; font: 400 20px/1 var(--f-hand); color: var(--muted); }
.date__count { margin-top: 30px; }
.date__label { font: 800 13px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.count { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.count span {
  display: grid; place-items: center; align-content: center; width: 72px; height: 84px; border-radius: 50% 50% 46% 46%;
  font: 800 12px/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .92);
  box-shadow: inset -8px -10px 0 rgba(0, 0, 0, .1), inset 8px 8px 0 rgba(255, 255, 255, .22);
  position: relative;
}
.count span::after { content: ""; position: absolute; bottom: -7px; left: 50%; translate: -50% 0; border: 6px solid transparent; border-bottom: 0; border-top: 8px solid var(--k); }
.count span:nth-child(1) { --k: var(--red); background: var(--red); }
.count span:nth-child(2) { --k: var(--purple); background: var(--purple); }
.count span:nth-child(3) { --k: var(--green); background: var(--green); color: var(--ink); }
.count span:nth-child(4) { --k: var(--blue); background: var(--blue); }
.count b { font: 800 30px/1 var(--f-display); color: #fff; margin-bottom: 2px; }
.count span:nth-child(3) b { color: var(--ink); }
.count__done { margin-top: 14px; font: 800 22px/1.3 var(--f-display); color: var(--red); }

/* --- party plan tickets --- */
.sec--plan .sec__title { margin-bottom: 28px; }
.ticket {
  position: relative; margin-top: 22px; border-radius: 22px; background: #fff; overflow: hidden;
  border: 3px solid var(--ink); box-shadow: 0 7px 0 var(--ink);
}
.ticket__head {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--c);
  border-bottom: 3px dashed var(--ink);
}
.ticket__no {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; border: 3px solid var(--ink); font: 800 22px/1 var(--f-display);
}
.ticket__hi { font: 700 18px/1.2 var(--f-display); color: var(--ink); opacity: .85; }
.ticket__name { margin: 0; font: 800 26px/1.08 var(--f-display); color: var(--ink); }
.ticket__rows { margin: 0; padding: 8px 18px 2px; }
.ticket__rows div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 11px 0; border-bottom: 2px dotted rgba(29, 43, 90, .14); }
.ticket__rows div:last-child { border-bottom: 0; }
.ticket__rows dt { font: 800 12px/1.8 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ticket__rows dd { margin: 0; font: 600 17px/1.45 var(--f-body); }
.ticket__links { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 18px 20px; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; text-decoration: none;
  border: 2px solid var(--ink); background: #fff; font: 800 14px/1 var(--f-body);
}
.chip--solid { background: var(--ink); color: #fff; }
.chip:active { translate: 0 2px; }

/* --- bubble wrap --- */
.sec--wrap { background: linear-gradient(180deg, #f1ecff, #e8e1ff); }
.wrap { text-align: center; }
.wrap .tag { margin-inline: auto; }
.wrap__ask { margin-top: 10px; font: 600 17px/1.5 var(--f-body); color: var(--ink-2); }
.bubbles {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; max-width: 360px; margin: 26px auto 0; padding: 16px;
  border-radius: 18px; background: rgba(255, 255, 255, .55); border: 2px solid rgba(123, 108, 246, .25);
}
.bub {
  position: relative; aspect-ratio: 1; min-width: 44px; border-radius: 50%; padding: 0; cursor: pointer; border: 0;
  background: radial-gradient(circle at 34% 30%, #fff 0 14%, rgba(255, 255, 255, .5) 15% 30%, rgba(200, 192, 255, .5) 70%, rgba(123, 108, 246, .45));
  box-shadow: inset 0 -4px 6px rgba(123, 108, 246, .3), 0 3px 5px rgba(29, 43, 90, .12);
  transition: scale .15s var(--bounce);
  -webkit-tap-highlight-color: transparent;
}
.bub:hover { scale: 1.06; }
.bub.popped {
  cursor: default; scale: .86;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .25), rgba(123, 108, 246, .14));
  box-shadow: inset 0 2px 4px rgba(29, 43, 90, .16);
}
.bub.popped::after {
  content: ""; position: absolute; inset: 28%;
  background: conic-gradient(from 20deg, transparent 0 10%, rgba(123, 108, 246, .35) 10% 13%, transparent 13% 40%, rgba(123, 108, 246, .3) 40% 43%, transparent 43% 72%, rgba(123, 108, 246, .35) 72% 75%, transparent 75%);
  border-radius: 50%;
}
.wrap__done { margin-top: 22px; font: 800 22px/1.35 var(--f-display); color: var(--purple); animation: fxRise .6s var(--bounce); }

/* --- gallery --- */
.line { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 26px; }
.polaroid { margin: 0; width: calc(50% - 10px); padding: 8px 8px 26px; background: #fff; rotate: var(--r); box-shadow: 0 10px 20px -10px rgba(29, 43, 90, .4); }
.polaroid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }

/* --- rsvp --- */
.sec--rsvp { padding-top: 96px; padding-bottom: 96px; background: linear-gradient(180deg, #fff3c9, #ffe58f); }
.rsvp { text-align: center; }
.rsvp .tag { margin-inline: auto; }
.rsvp__ask { margin-top: 12px; font: 600 18px/1.5 var(--f-body); color: var(--ink-2); }
.rsvp__btns { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 28px; }
.big {
  display: inline-flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 28px 8px 14px; border-radius: 999px;
  background: var(--red); color: #fff; text-decoration: none; border: 3px solid var(--ink); box-shadow: 0 7px 0 var(--ink);
  font: 800 24px/1 var(--f-display); transition: translate .12s, box-shadow .12s;
}
.big .bal__svg { width: 34px; height: 46px; filter: none; animation: bob 1.6s ease-in-out infinite alternate; }
.big .bal__body path:first-child { stroke: #fff; stroke-width: 3; }
.big:hover { translate: 0 -2px; box-shadow: 0 9px 0 var(--ink); }
.big:active { translate: 0 5px; box-shadow: 0 2px 0 var(--ink); }
.small { display: inline-flex; align-items: center; min-height: 44px; font: 700 16px/1.3 var(--f-body); color: var(--ink-2); text-underline-offset: 4px; }
.rsvp__tag { margin-top: 24px; font: 800 20px/1 var(--f-display); color: var(--purple); }

/* --- footer --- */
.foot {
  position: relative; padding: 64px 20px calc(90px + env(safe-area-inset-bottom)); text-align: center;
  background: var(--ink); color: #fff;
}
.foot__balloons { display: flex; justify-content: center; gap: 4px; margin: -110px auto 18px; height: 110px; }
.foot__balloons span { width: 54px; animation: bob 3s ease-in-out infinite alternate; }
.foot__balloons span:nth-child(2) { width: 64px; margin-top: -14px; animation-delay: -1s; }
.foot__balloons span:nth-child(3) { animation-delay: -2s; }
.foot__name { font: 800 34px/1.1 var(--f-display); }
.foot__hosts { margin-top: 6px; font: 600 17px/1.4 var(--f-body); color: #c9d1f2; }
.foot__cal { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 18px; font: 700 15px/1 var(--f-body); }
.foot__cal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--yellow); }
.foot__music, .foot__credit { margin-top: 10px; font: 600 13px/1.5 var(--f-body); color: #aab3dc; }
.foot__credit a { color: #fff; }
.up { display: inline-flex; align-items: center; min-height: 44px; margin-top: 14px; color: #fff; font: 800 14px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; }

/* desktop: a wider stage and roomier type */
@media (min-width: 900px) {
  .sky { max-width: 640px; }
  .bal { width: 132px; }
  .sec { padding-block: 104px; }
  .note { padding: 44px 40px 40px 60px; }
}
@media (max-height: 640px) {
  .sky { min-height: 330px; }
  .bal { width: clamp(70px, 20vw, 100px); }
}

/* reduced motion: everything lands in place */
@media (prefers-reduced-motion: reduce) {
  .gate.done .hero > * { opacity: 1; scale: 1; }
  .floaters { display: none; }
}

/* =================================================================== LINK-PREVIEW CARD */
.ogcard { background: linear-gradient(180deg, var(--sky) 0%, var(--sky-2) 70%, var(--sky-3) 100%); font-family: var(--f-display); color: var(--ink); }
.og__sky { position: absolute; inset: 0; }
.og__cloud { position: absolute; width: 240px; }
.og__cloud--a { left: 40px; top: 40px; opacity: .9; }
.og__cloud--b { left: 520px; top: 470px; width: 300px; opacity: .8; }
.og__bal { position: absolute; width: 150px; }
.og__bal .bal__svg { width: 100%; height: auto; }
.og__bal--0 { left: 820px; top: 40px; rotate: -8deg; }
.og__bal--1 { left: 960px; top: 90px; width: 170px; rotate: 6deg; }
.og__bal--2 { left: 870px; top: 250px; width: 130px; rotate: -4deg; }
.og__bal--3 { left: 1040px; top: 300px; width: 140px; rotate: 8deg; }
.og__bal--4 { left: 720px; top: 210px; width: 120px; rotate: -10deg; }
.og__text { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 0 0 80px; width: 760px; }
.og__kick { align-self: flex-start; padding: 8px 24px; border-radius: 999px; background: var(--red); color: #fff; font: 800 30px/1.2 var(--f-display); rotate: -3deg; box-shadow: 0 5px 0 var(--ink); }
.og__name {
  margin-top: 10px; font: 800 160px/.95 var(--f-display); color: #fff; letter-spacing: -.01em;
  -webkit-text-stroke: 14px var(--ink); paint-order: stroke fill; text-shadow: 0 10px 0 var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.og__turns { margin-top: 6px; font: 400 52px/1 var(--f-hand); }
.og__turns span {
  font: 800 110px/1 var(--f-display); vertical-align: -18px;
  background: linear-gradient(100deg, #ffe48a 0%, #fff6cf 18%, #ffcf3f 40%, #f0a500 62%, #ffd75e 80%, #c98200 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(2px 0 0 #b36b00) drop-shadow(-2px 0 0 #b36b00) drop-shadow(0 2px 0 #b36b00) drop-shadow(0 -2px 0 #b36b00);
}
.og__date { margin-top: 18px; align-self: flex-start; padding: 10px 22px; border-radius: 16px; background: #fff; box-shadow: 0 5px 0 var(--ink); font: 800 34px/1.2 var(--f-body); }
.og__venue { margin-top: 14px; font: 700 28px/1.2 var(--f-body); color: var(--ink-2); }
.nw { white-space: nowrap; }
