@font-face {
  font-family:Fredoka; src:url('/fredoka-latin.woff2') format('woff2');
  font-style:normal; font-weight:400 700; font-display:swap;
}
[data-birthday=true] {
  --paper:#fbf2ff; --white:#fffdfd; --ink:#36175b; --muted:#5e4375;
  --line:#e8c6ef; --accent:#a43283; --accent-deep:#82206a; --soft:#f4e4ff;
  --pink:#f76bb0; --lilac:#b380f2; --yellow:#ffda64; --blue:#76c9f9;
  --berry:#ba266f; --purple:#6b36a3; --lavender:#ecd7ff;
  --display:Fredoka,'Arial Rounded MT Bold','Trebuchet MS',system-ui,sans-serif;
}
.birthday-art { display:none }
[data-birthday=true] .invite-header {
  min-height:64px; background:#fff9fd; border-bottom-color:#edd4f4;
}
[data-birthday=true] .invite-brand { font:600 1.35rem/1.1 var(--display) }
[data-birthday=true] .cross { background:#ffe2f4; border-color:#f4b9e1; color:#b32677 }
[data-birthday=true] .button:not(.ghost) {
  border-color:#a81e70; background:linear-gradient(176deg,#c22c82,#a31968); color:#fff;
  box-shadow:0 4px 0 #7914501c,0 8px 18px #92216124;
}
[data-birthday=true] .button:not(.ghost):hover { background:#8c185b }
[data-birthday=true] .button.ghost { background:#fffdfd; border-color:#d7a6dc }
[data-birthday=true] .button.ghost:hover { background:#ffebfa; border-color:var(--accent) }

.invite-loading {
  position:relative; display:grid; align-content:center; justify-items:center; gap:.65rem;
  min-height:100vh; min-height:100svh; isolation:isolate; padding:3rem 1rem; text-align:center;
  background:radial-gradient(ellipse at center,#fff5d9,#ffeff7 40%,#f0e0ff 76%);
  color:#53217e; font:600 1.25rem/1.4 'Trebuchet MS',system-ui,sans-serif;
}
.loading-stars { display:flex; align-items:center; gap:.55rem }
.loading-stars span {
  color:#b34281; font-size:1.55rem; line-height:1;
  animation:invite-loading-bob .9s ease-in-out infinite alternate;
}
.loading-stars span:nth-child(2) { color:#92601b; font-size:2.2rem; animation-delay:.15s }
.loading-stars span:nth-child(3) { color:#7554b3; animation-delay:.3s }
@keyframes invite-loading-bob { to { transform:translateY(-.3rem) } }
@media (prefers-reduced-motion:reduce) {
  .loading-stars span { animation:none }
}

.opening {
  position:relative; display:grid; align-content:center; justify-items:center; isolation:isolate;
  min-height:calc(100svh - 64px); overflow:hidden;
  padding:clamp(3.25rem,7vw,5.9rem) 1rem 1.65rem; text-align:center;
  background:
    radial-gradient(ellipse at 50% 60%,#fff4dc 0%,#fff1f7 27%,transparent 70%),
    repeating-conic-gradient(from 14deg at 50% 64%,#f6dfff 0deg 12deg,#ebd7ff 12deg 24deg);
}
.opening-awning {
  position:absolute; z-index:-1; inset:0 0 auto; height:clamp(2rem,6vw,5rem);
  background:
    radial-gradient(circle at 50% 100%,#fff9b9 0 19%,transparent 22%) 0 100% / clamp(29px,5vw,58px) 37% repeat-x,
    repeating-linear-gradient(107deg,#ee6caf 0 6.25%,#fff1d6 6.25% 12.5%);
  border-bottom:4px solid #fff7c8; border-radius:0 0 34% 34% / 0 0 32% 32%;
  box-shadow:0 8px 28px #9a328037;
}
.opening-sparkles { position:absolute; z-index:-1; inset:0; pointer-events:none }
.opening-sparkles i {
  position:absolute; left:var(--x); top:var(--y); font-style:normal; line-height:1;
  color:var(--spark,#fcbb35); font-size:clamp(1.4rem,5vw,var(--size,3.8rem));
  text-shadow:0 2px #fff,2px 0 #fff,-2px 0 #fff,0 -2px #fff,0 7px 9px #744bac23;
  animation:party-twinkle 2.7s var(--delay,-.7s) ease-in-out 2;
}
.opening-sparkles i:nth-child(1) { --x:15%; --y:18%; --spark:#fff; --size:2.4rem }
.opening-sparkles i:nth-child(2) { --x:22%; --y:38%; --delay:-1.2s }
.opening-sparkles i:nth-child(3) { --x:13%; --y:72%; --spark:#f37db7; --size:3rem }
.opening-sparkles i:nth-child(4) { --x:83%; --y:20%; --spark:#fff; --size:2.6rem }
.opening-sparkles i:nth-child(5) { --x:73%; --y:34%; --delay:-.2s }
.opening-sparkles i:nth-child(6) { --x:87%; --y:70%; --spark:#e68edf; --size:2.8rem }
.opening-heading { z-index:1; animation:opening-arrive .55s ease-out both }
.opening .kicker,[data-birthday=true] .hero .kicker {
  display:inline-flex; align-items:center; gap:.48rem; letter-spacing:.10em;
  color:#285384; background:#e4f6ff; border:2px solid #fff;
  border-radius:999px; padding:.33rem .9rem; box-shadow:0 3px 0 #b9dbf7;
}
.opening .kicker::before,.opening .kicker::after,
[data-birthday=true] .hero .kicker::before,[data-birthday=true] .hero .kicker::after {
  content:'★'; font-size:.78em; color:#3362a2;
}
.opening h1,[data-birthday=true] .hero h1 {
  font:600 clamp(2.15rem,4.5vw,4.2rem)/1 var(--display); letter-spacing:-.03em;
  margin:.38em auto .12em; color:#53217e; text-wrap:balance;
}
.opening-name,.birthday-name {
  font:700 clamp(4rem,10vw,8.45rem)/1.02 var(--display);
  letter-spacing:-.052em; padding:0 .07em .07em; color:#d52783;
  paint-order:stroke fill; -webkit-text-stroke:.10em #fff;
  text-shadow:0 .06em 0 #aa267a68,0 .11em .17em #8d4ab450; overflow-wrap:anywhere;
}
.opening-recipient { color:var(--muted); font-weight:650; margin-top:.14rem; overflow-wrap:anywhere }
.opening-recipient:empty { display:none }
.circus-stage {
  position:relative; display:grid; place-items:end center; width:min(100%,615px);
  height:clamp(176px,24vw,290px); margin:.3rem 0 1.05rem; isolation:isolate;
  animation:opening-arrive .65s .1s ease-out both;
}
.circus-stage::after {
  content:''; position:absolute; z-index:2; inset:auto 8% 1% 8%; height:7%;
  border-radius:50%; background:#7c30a52a; filter:blur(7px);
}
.circus-tent {
  position:relative; width:76%; height:89%; align-self:end;
  filter:drop-shadow(0 6px 7px #8d479b33);
}
.circus-flag {
  position:absolute; z-index:2; width:16%; height:13%; bottom:96%; left:50%;
  background:linear-gradient(135deg,#ac60e4,#8646cb); clip-path:polygon(0 0,100% 10%,79% 46%,100% 79%,13% 91%,13% 100%,0 100%);
}
.circus-canopy {
  position:absolute; z-index:2; inset:0 0 38%; border-radius:10px;
  clip-path:polygon(50% 0,100% 68%,98% 89%,92% 98%,85% 91%,78% 100%,71% 91%,64% 100%,57% 91%,50% 100%,43% 91%,36% 100%,29% 91%,22% 100%,15% 91%,8% 98%,2% 89%,0 68%);
  background:repeating-conic-gradient(at 50% 0,#e84e9c 0 13deg,#ffd1e6 13deg 28deg,#fff0d5 28deg 38deg);
}
.circus-door {
  position:absolute; inset:40% 9% 1%; display:grid; place-items:center;
  background:linear-gradient(#a15ccb,#5e348c); border:4px solid #ffe2a1;
  border-radius:14px 14px 18px 18px; overflow:hidden;
}
.circus-door::before,.circus-door::after {
  content:''; z-index:1; position:absolute; inset:0 50% 0 0;
  background:repeating-linear-gradient(90deg,#ad64d6 0 6px,#d785e5 6px 15px);
  transform-origin:left top; transition:transform .57s cubic-bezier(.26,.75,.24,1);
}
.circus-door::after { inset:0 0 0 50%; transform-origin:right top }
.circus-heart { z-index:2; color:#ffedab; font-size:clamp(1.7rem,5vw,2.7rem); transition:transform .55s ease }
.is-opening .circus-door::before { transform:scaleX(.22) skewY(-9deg) }
.is-opening .circus-door::after { transform:scaleX(.22) skewY(9deg) }
.is-opening .circus-heart { transform:scale(1.36) }
.stage-cast {
  position:absolute; z-index:3; inset:auto 1% 0; display:flex; align-items:end; justify-content:center;
  gap:0; pointer-events:none; transition:transform .64s cubic-bezier(.21,.77,.26,1);
}
.stage-cast img,.portrait-cast img,.countdown-cast img,.response-cast img,.farewell-cast img,[data-birthday=true] .venue-friend,.gift-art img {
  display:block; object-fit:contain; filter:drop-shadow(0 5px 4px #6631822f);
}
.stage-cast img { width:19%; aspect-ratio:1; transform:rotate(var(--tilt,-10deg)); animation:friend-bob 2.55s var(--delay,-.7s) ease-in-out 2 }
.stage-cast img:nth-child(2) { width:23%; --tilt:7deg; --delay:-1.1s; margin-inline:-3% }
.stage-cast img:nth-child(3) { width:28%; --tilt:-4deg; --delay:-.35s; z-index:1 }
.stage-cast img:nth-child(4) { width:23%; --tilt:-8deg; --delay:-1.4s; margin-inline:-3% }
.stage-cast img:nth-child(5) { --tilt:9deg; --delay:-.9s }
.is-opening .stage-cast { transform:translateY(-12px) scale(1.045) }
@keyframes friend-bob { 50% { transform:translateY(-7px) rotate(calc(var(--tilt,0deg) + 3deg)) } }
.opening-confetti { position:absolute; inset:0; z-index:4; pointer-events:none }
.opening-confetti span,.magic-confetti i {
  position:absolute; top:64%; left:50%; opacity:0; font-style:normal;
  color:var(--color,#9558d4); font-size:clamp(1rem,3.1vw,1.75rem);
  text-shadow:1px 1px #fff;
}
.opening-confetti :nth-child(1),.magic-confetti :nth-child(1) { --x:-126px; --y:-56px; --color:#c63582 }
.opening-confetti :nth-child(2),.magic-confetti :nth-child(2) { --x:-94px; --y:-103px; --color:#e5579f }
.opening-confetti :nth-child(3),.magic-confetti :nth-child(3) { --x:-48px; --y:-139px; --color:#b67b0b }
.opening-confetti :nth-child(4),.magic-confetti :nth-child(4) { --x:5px; --y:-146px; --color:#7e4abf }
.opening-confetti :nth-child(5),.magic-confetti :nth-child(5) { --x:61px; --y:-126px; --color:#b67b0b }
.opening-confetti :nth-child(6),.magic-confetti :nth-child(6) { --x:111px; --y:-88px; --color:#336cac }
.opening-confetti :nth-child(7) { --x:141px; --y:-49px; --color:#b5418b }
.is-opening .opening-confetti span,.is-sparkling .magic-confetti i { animation:party-confetti .7s ease-out both }
@keyframes party-confetti {
  0% { opacity:0; transform:translate(-50%,15px) scale(.35) }
  36%,75% { opacity:.92 }
  100% { opacity:0; transform:translate(var(--x),var(--y)) rotate(24deg) scale(.95) }
}
@keyframes opening-arrive {
  from { opacity:.65; transform:translateY(9px) }
  to { opacity:1; transform:none }
}
.balloon {
  position:absolute; z-index:-1; width:clamp(39px,8vw,77px); aspect-ratio:.78; border-radius:49% 51% 48% 52% / 45% 45% 55% 55%;
  background:radial-gradient(circle at 34% 22%,#fffafac2,transparent 32%),var(--balloon);
  box-shadow:inset -5px -8px 10px #673a8d20; transform:rotate(var(--tilt));
  animation:balloon-drift 2.55s ease-in-out 2 alternate; animation-delay:var(--delay);
}
.balloon::before { content:''; position:absolute; inset:98% 43% auto; height:9%; background:var(--balloon); clip-path:polygon(50% 0,100% 100%,0 100%) }
.balloon::after { content:''; position:absolute; inset:104% auto auto 50%; width:14%; height:39%; border-left:1px solid #a879a8; border-radius:50% }
.balloon-pink { --balloon:#f68ac2; --tilt:-17deg; --delay:-.7s; left:1%; top:32% }
.balloon-blue { --balloon:#88d0fb; --tilt:13deg; --delay:-1s; left:8%; top:10% }
.balloon-lilac { --balloon:#b891fa; --tilt:12deg; --delay:-.3s; right:1%; top:35% }
.balloon-yellow { --balloon:#ffdb65; --tilt:-12deg; --delay:-.5s; right:9%; top:9% }
.stage-star { position:absolute; color:#9c61ca; font-size:1.65rem; line-height:1; animation:party-twinkle 2.15s ease-in-out 2 }
.star-left { left:1%; bottom:12%; color:#c74592 }
.star-right { right:9%; top:0; color:#b16fd9 }
@keyframes balloon-drift { to { transform:translateY(-8px) rotate(calc(var(--tilt) + 6deg)) } }
@keyframes party-twinkle { 50% { opacity:.66; transform:scale(.86) rotate(9deg) } }
.opening-button { min-width:185px }
.opening-audio { display:flex; align-items:center; gap:.5rem; min-height:44px; color:var(--muted); margin:.45rem 0 0 }
.opening-audio input { accent-color:var(--accent-deep); width:18px; height:18px }

[data-birthday=true] #invite {
  overflow:clip;
  background:
    radial-gradient(ellipse at 11% 6%,#fff2ce,transparent 29%),
    radial-gradient(ellipse at 96% 12%,#e9d9ff,transparent 34%),var(--paper);
}
.party-light { position:fixed; z-index:5; width:0; height:0; top:0; left:0; pointer-events:none }
.party-light::after {
  content:''; position:absolute; inset:-135px auto auto -135px; width:270px; height:270px;
  background:radial-gradient(circle,#ffe5a665,#f6b7de2f 36%,#d9b6ff1f 52%,transparent 72%); border-radius:50%;
}
[data-birthday=true] .hero {
  position:relative; isolation:isolate; width:min(1190px,100%);
  grid-template-columns:minmax(0,1fr) minmax(0,.9fr);
  grid-template-areas:'heading portrait' 'message portrait'; align-items:end;
  row-gap:1.25rem; column-gap:clamp(2rem,9vw,7.2rem); text-align:center;
  padding-block:clamp(4rem,7vw,6.2rem) clamp(4.45rem,7.8vw,7.5rem);
}
[data-birthday=true] .hero-trim { display:block; position:absolute; z-index:-1; inset:0; pointer-events:none }
.hero-pennants {
  display:flex; position:absolute; top:1.65rem; left:-.5rem; gap:.23rem; padding-inline:.5rem;
  transform:rotate(-12deg); border-top:2px solid #b474c8;
}
.hero-pennants:nth-child(2) { left:auto; right:-.5rem; transform:rotate(12deg) }
.hero-pennants i {
  width:clamp(13px,2.2vw,27px); height:clamp(14px,2.5vw,29px);
  clip-path:polygon(0 0,100% 0,50% 100%); background:var(--pink);
}
.hero-pennants i:nth-child(4n+2) { background:var(--yellow) }
.hero-pennants i:nth-child(4n+3) { background:var(--blue) }
.hero-pennants i:nth-child(4n) { background:var(--lilac) }
.hero-trim .balloon-pink { left:-3.5%; top:59% }
.hero-trim .balloon-blue { left:.6%; top:64% }
.hero-trim .balloon-lilac { right:-4%; top:40% }
.hero-trim .balloon-yellow { right:.4%; top:32% }
[data-birthday=true] .hero-copy { display:contents }
[data-birthday=true] .hero-heading { grid-area:heading; min-width:0 }
[data-birthday=true] .hero-message { grid-area:message; align-self:start }
[data-birthday=true] .hero h1 { font-size:clamp(2.1rem,4.05vw,3.75rem) }
.birthday-name { font-size:clamp(3.65rem,7.7vw,7.15rem) }
.full-name { color:var(--muted); font-weight:650; font-size:.97rem; margin:.14rem 0 0 }
[data-birthday=true] .event-date { margin:.9rem auto .16rem; font-size:1.02rem; font-weight:750 }
.event-hour { color:#6c337e; font-size:.96rem; font-weight:650 }
[data-birthday=true] .hero-intro { color:var(--ink); max-width:38ch; font-size:1rem }
[data-birthday=true] .hero-message .button { margin-top:1.1rem }
[data-birthday=true] .music-button { margin-top:.54rem; font-weight:650 }
[data-birthday=true] .hero-picture { grid-area:portrait; position:relative; align-self:center; width:min(100%,434px); margin-inline:auto }
[data-birthday=true] .picture-frame {
  width:100%; max-width:none; aspect-ratio:4/5;
  background:repeating-conic-gradient(at 50% 49%,#ffedaf 0deg 18deg,#ffd0eb 18deg 36deg,#e3caff 36deg 54deg,#d4edff 54deg 72deg);
  border:clamp(5px,.8vw,10px) solid #fff;
  border-radius:48% 48% 32px 32px / 20% 20% 32px 32px;
  box-shadow:0 0 0 3px #f5c963,0 0 0 8px #f3b8de,0 19px 39px #8c4fb045;
}
[data-birthday=true] .picture-frame img { object-fit:cover; object-position:center 32% }
[data-birthday=true] .picture-frame::after { inset:.42rem; border:1px dashed #fffdfadf }
[data-birthday=true] .cover-monogram {
  display:grid; place-items:center; width:53%; aspect-ratio:1; border:4px solid #fff;
  border-radius:50%; background:#f3ddff; margin:0; color:#92337d;
  font:700 clamp(2.2rem,10vw,5rem)/1 var(--display);
  box-shadow:0 5px 18px #9e5fbc59;
}
[data-birthday=true] .hero-picture::before,[data-birthday=true] .hero-picture::after {
  position:absolute; z-index:2; font:700 clamp(1.9rem,4.6vw,3.7rem)/1 var(--display);
  text-shadow:0 2px #fff,2px 0 #fff,-2px 0 #fff,0 -2px #fff; pointer-events:none;
  animation:party-twinkle 2.55s ease-in-out 2;
}
[data-birthday=true] .hero-picture::before { content:'★'; color:#f6bb39; left:-6%; top:14%; transform:rotate(-17deg) }
[data-birthday=true] .hero-picture::after { content:'♥'; color:#ed74b9; right:-6%; top:24%; transform:rotate(14deg) }
[data-birthday=true] .portrait-cast { display:block; position:absolute; z-index:3; inset:0; pointer-events:none }
.portrait-cast img { position:absolute; width:35%; aspect-ratio:1; bottom:-8%; left:-15%; --tilt:-11deg; transform:rotate(var(--tilt)) }
.portrait-cast img:nth-child(2) { left:auto; right:-14%; width:31%; --tilt:9deg; bottom:-5% }
[data-birthday=true] #photo-caption:empty { display:none }

[data-birthday=true] .countdown {
  border:0; background:linear-gradient(106deg,#f0cdf7,#e8d6ff 55%,#d6edfd);
  padding:clamp(1.9rem,5vw,3rem) 1rem; position:relative; isolation:isolate;
  border-block:3px solid #ffdc7c;
}
[data-birthday=true] .countdown::before,[data-birthday=true] .countdown::after {
  content:''; position:absolute; inset:0 0 auto; height:.75rem;
  background:radial-gradient(circle at 50% 0,#fff7d8 0 22%,transparent 25%) 0 0 / 26px 18px repeat-x; z-index:-1;
}
[data-birthday=true] .countdown::after { inset:auto 0 0; transform:rotate(180deg) }
[data-birthday=true] .countdown-board {
  position:relative; width:min(100%,630px); margin:auto;
  background:#fff9fd; padding:1.25rem clamp(.55rem,3vw,2.1rem) 1.4rem;
  border:3px solid #fff; border-radius:24px;
  box-shadow:0 0 0 2px #c49be8,0 7px 0 #a97ac74a,0 14px 32px #6d3f9c21;
}
[data-birthday=true] .countdown-cast { display:block; position:absolute; inset:0; pointer-events:none }
.countdown-cast img { width:24%; position:absolute; bottom:-8%; left:-19%; --tilt:-9deg; transform:rotate(var(--tilt)) }
.countdown-cast img:nth-child(2) { width:24%; left:auto; right:-19%; --tilt:8deg }
[data-birthday=true] #count-title { color:#67318e; font:600 clamp(1.07rem,3vw,1.55rem)/1.15 var(--display); letter-spacing:0; text-transform:none }
[data-birthday=true] .countdown-grid { width:100%; gap:.43rem; margin-top:.9rem; grid-template-columns:repeat(4,minmax(0,1fr)) }
[data-birthday=true] .countdown-grid div {
  min-width:0; border:1px solid #ead4f5; border-bottom:3px solid var(--trim,#c69ce8); border-radius:13px;
  background:var(--tile,#f1e4ff); padding:.53rem .1rem .66rem;
}
[data-birthday=true] .countdown-grid div:nth-child(2) { --tile:#fff2c8; --trim:#f4ce54 }
[data-birthday=true] .countdown-grid div:nth-child(3) { --tile:#e3f4ff; --trim:#a6d6f8 }
[data-birthday=true] .countdown-grid div:nth-child(4) { --tile:#ffe2f3; --trim:#f2a5d1 }
[data-birthday=true] .countdown-grid strong { font:600 clamp(1.7rem,5vw,3.15rem)/1 var(--display); color:#542787; font-variant-numeric:tabular-nums }
[data-birthday=true] .countdown-grid span { font-weight:650; font-size:.88rem }

[data-birthday=true] .section h2,[data-birthday=true] .venue h3,[data-birthday=true] .paper h3 {
  font-family:var(--display); font-weight:620; letter-spacing:-.02em; color:#542888;
}
[data-birthday=true] .section h2 { text-wrap:balance }
[data-birthday=true] .celebration-scene .section-head::before {
  content:'✦   ★   ✦'; display:block; color:#ad5cbd; font-size:1.19rem; letter-spacing:.24em;
}
[data-birthday=true] .celebration-scene .section-head { margin-bottom:2.25rem }
[data-birthday=true] .celebration-scene .section-head .kicker { color:#8b307e }
[data-birthday=true] .time-grid { grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr); align-items:start; max-width:920px; gap:clamp(1rem,3.5vw,2.6rem) }
[data-birthday=true] .venue { position:relative; isolation:isolate; min-width:0; padding:clamp(1.05rem,2.7vw,2rem) }
[data-birthday=true] .reception-ticket {
  background:linear-gradient(137deg,#fffaff,#e8f5ff);
  border:3px solid #fff; border-radius:23px;
  box-shadow:0 0 0 2px #b9b5ec,0 8px 0 #bda6e22c,0 15px 35px #713d9621;
}
[data-birthday=true] .reception-ticket::before {
  content:''; position:absolute; z-index:-1; inset:.51rem; border:1px dashed #9984ce; border-radius:16px; pointer-events:none;
}
[data-birthday=true] .reception-ticket .venue-icon {
  display:inline-grid; width:2rem; height:2rem; place-items:center; border-radius:50%;
  background:#e6dcff; color:#7739ae; line-height:1;
}
[data-birthday=true] .venue-friend {
  display:block; position:absolute; right:-.55rem; top:-.95rem; width:clamp(57px,11vw,105px);
  --tilt:10deg; transform:rotate(var(--tilt)); pointer-events:none;
}
[data-birthday=true] #reception { color:#482278; font:600 clamp(1.3rem,4vw,1.75rem)/1.13 var(--display); margin:.32rem auto .5rem }
[data-birthday=true] #reception_time:not(:empty) {
  display:inline-flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:.38rem;
  border-radius:999px; background:#fff0c4; color:#614518; padding:.36rem .68rem;
  font-weight:750; font-size:.93rem; margin:.23rem auto .66rem;
}
[data-birthday=true] #reception_time:not(:empty)::before { content:'◷'; font-size:1.21em; line-height:1 }
[data-birthday=true] #reception_address { max-width:33ch; margin:auto; overflow-wrap:anywhere }
[data-birthday=true] #reception_map { background:#f5edff; border-color:#c3a6e8; color:#5a2d87 }
[data-birthday=true] #reception_map:hover { background:#e9d9ff }
[data-birthday=true] #gifts-block {
  background:linear-gradient(138deg,#fff7e3,#fff1fa);
  border:3px solid #fffdf5; border-radius:36px 36px 49px 49px;
  box-shadow:0 0 0 2px #f3caf0,0 8px 0 #e1a8c936,0 12px 28px #a0579320;
}
[data-birthday=true] .gift-art {
  display:flex; position:relative; align-items:end; justify-content:center; width:9.25rem; height:5.65rem; margin:auto;
}
.gift-art img { width:65%; height:100%; --tilt:10deg; transform:rotate(var(--tilt)) }
.gift-box {
  position:relative; flex:none; width:3.3rem; height:2.65rem; margin:0 -.2rem .16rem 0; border-radius:6px; z-index:1;
  background:linear-gradient(90deg,#c673e6 0 39%,#ffde6d 39% 61%,#c673e6 61%);
  box-shadow:inset 0 -.35rem #9a55c542,0 4px 0 #d89ade53; transform:rotate(-10deg);
}
.gift-box::before {
  content:''; position:absolute; inset:-.37rem -.13rem auto; height:.78rem; border-radius:5px;
  background:linear-gradient(90deg,#da8ded 0 40%,#ffe477 40% 60%,#da8ded 60%); box-shadow:0 2px 0 #a75ecd53;
}
.gift-box::after {
  content:'∞'; position:absolute; inset:auto 0 80%; color:#ecb52b; text-shadow:0 1px #ffef9e;
  font:bold 2.35rem/1 var(--display); text-align:center;
}
[data-birthday=true] #details-block { grid-column:1/-1; background:#fff8fe; border:2px dashed #d6b4e9; border-radius:20px }
[data-birthday=true] #details-block p,[data-birthday=true] #gifts-block p,[data-birthday=true] #rsvp-message { white-space:pre-line; overflow-wrap:anywhere }
[data-birthday=true] #gifts-note { max-width:32ch; margin:auto }
[data-birthday=true] .hosts { padding-top:2.1rem }
[data-birthday=true] .hosts p::before { content:'♥'; display:inline-block; margin-right:.4rem; color:#ae477f }
.hosts-subtitle { display:block }

[data-birthday=true] .response-section {
  position:relative; isolation:isolate; border:0; padding-block:clamp(3.25rem,6vw,5.75rem);
  background:radial-gradient(ellipse at 15% 25%,#ffedcb,transparent 48%),linear-gradient(124deg,#f8dcfa,#edd7ff 70%,#ffe4f2);
  border-radius:48% 48% 0 0 / 4.5% 4.5% 0 0;
}
[data-birthday=true] .response-grid { max-width:940px }
[data-birthday=true] .response-copy { text-align:center; padding:clamp(.5rem,3.4vw,2.8rem) 0 0 }
[data-birthday=true] .response-copy p { margin-inline:auto }
[data-birthday=true] .response-copy .kicker { color:#843179 }
[data-birthday=true] .response-cast { display:flex; justify-content:center; position:relative; width:min(100%,275px); margin:1.05rem auto 0; isolation:isolate }
.response-cast::before {
  content:''; position:absolute; z-index:-1; inset:16% 6% 0; border-radius:50%;
  background:repeating-conic-gradient(from -8deg,#f4bde965 0 22deg,#fff3cb90 22deg 44deg); border:2px dashed #e5a7d9;
}
.response-cast img { width:55%; --tilt:-6deg; transform:rotate(var(--tilt)); margin-left:-.3rem }
.response-cast img:nth-child(2) { width:46%; --tilt:11deg; align-self:end }
[data-birthday=true] .response-grid .paper {
  position:relative; min-width:0; border:3px solid #fff; border-radius:26px; padding:clamp(1.15rem,3vw,2rem);
  background:linear-gradient(135deg,#fffaff,#fff);
  box-shadow:0 0 0 2px #d9b8ef,0 10px 0 #a669ba25,0 18px 34px #8351a428;
}
[data-birthday=true] .response-grid .paper::before {
  content:''; display:block; height:.48rem; margin:0 0 .95rem; border-radius:999px;
  background:repeating-linear-gradient(102deg,#ee84ba 0 8%,#fff0d0 8% 16%,#b58deb 16% 24%,#a4d8f6 24% 32%);
}
[data-birthday=true] .response-grid .paper .kicker { font-size:.8rem; color:#843271 }
[data-birthday=true] .response-grid .paper input,[data-birthday=true] .response-grid .paper select { border-color:#d8bce4 }
[data-birthday=true] .response-grid .paper #open-registration { margin-top:1rem }

[data-birthday=true] .invite-footer {
  border:0; text-align:center; padding:clamp(1.8rem,5vw,4.4rem) 0 1.2rem;
  background:radial-gradient(ellipse at 50% 19%,#fff5d9 1%,transparent 54%),linear-gradient(#f4ddfa,#f0d9ff);
}
[data-birthday=true] .farewell { display:block; position:relative; width:min(calc(100% - 2rem),690px); margin:0 auto 1.65rem }
.farewell-cast { display:flex; justify-content:center; align-items:end; gap:0; padding:0 .2rem; margin:0 auto -.25rem; width:min(100%,610px) }
.farewell-cast img { width:16%; --tilt:-11deg; transform:rotate(var(--tilt)); margin-inline:-.2%; }
.farewell-cast img:nth-child(even) { --tilt:9deg }
.farewell-cast img:nth-child(4) { width:23%; z-index:1; --tilt:-3deg }
.farewell-cast img:nth-child(1),.farewell-cast img:nth-child(6) { width:14% }
.farewell h2 {
  position:relative; display:inline-block; z-index:2; margin:auto; padding:.53em .89em .60em;
  background:linear-gradient(170deg,#d73889,#af2169);
  color:#fff; font:650 clamp(2rem,5.8vw,4.2rem)/1 var(--display); letter-spacing:-.02em;
  border:4px solid #fff; border-radius:23% 23% 27% 27% / 38% 38% 28% 28%;
  box-shadow:0 6px 0 #922c6a48,0 12px 26px #911e722a;
}
.farewell h2::before,.farewell h2::after { content:'♥'; color:#ffbadf; font-size:.43em; display:inline-block; vertical-align:middle; margin:0 .43em }
.farewell-magic { position:relative; width:46px; margin:.8rem auto 0; z-index:3 }
.farewell-magic:has(button[hidden]) { display:none }
.magic-star {
  display:grid; place-items:center; width:46px; height:46px; padding:0;
  background:#fff1bd; border:2px solid #fffdf0; color:#785109; border-radius:50%;
  font:1.55rem/1 var(--display); box-shadow:0 4px 0 #dcb75e69; transition:transform .16s ease;
}
.magic-star:hover { background:#ffdf74; transform:rotate(9deg) }
.magic-confetti { position:absolute; inset:0; pointer-events:none }
.magic-confetti i { top:12%; }
[data-birthday=true] .footer-grid { justify-content:center; flex-wrap:wrap }
[data-birthday=true] .footer-grid p { font:500 1.16rem/1.33 var(--display) }
[data-birthday=true] .footer-grid small { margin-top:.12rem }
[data-birthday=true] .share-whatsapp-icon { display:block; flex:none }

.rsvp-counts { display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin-bottom:1rem }
#response-family { margin-bottom:.8rem }
#extra-request { margin:1rem 0 }
#extra-request summary { cursor:pointer; padding:.55rem 0 }
#extra-form { margin-top:.5rem }
#reception_map { margin-top:.65rem }
.guest-pass select { width:auto; min-width:120px; margin:0 auto .5rem }
.family-gallery-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(.6rem,3vw,1.35rem); max-width:720px; margin:0 auto clamp(2.5rem,6vw,4rem) }
.family-gallery-grid img { width:100%; aspect-ratio:4/5; object-fit:cover; display:block; border:1px solid var(--line); border-radius:20px }
.family-gallery-grid figcaption { color:var(--muted); margin:.38rem 0 0; text-align:center }

.invite-reveal { animation:opening-arrive .55s ease both }
.scene-arrive { animation:opening-arrive .55s ease-out both }
.scene-arrive [data-friend] {
  animation:friend-bob 2.5s -.35s ease-in-out 2;
}
@media (max-width:880px) {
  [data-birthday=true] .countdown-board { width:min(82%,585px) }
  .countdown-cast img,.countdown-cast img:nth-child(2) { width:20% }
  .countdown-cast img { left:-14% }
  .countdown-cast img:nth-child(2) { right:-14% }
}
@media (max-width:680px) {
  .opening h1,[data-birthday=true] .hero h1 { font-size:clamp(2rem,8.4vw,3.2rem) }
  .opening-name,.birthday-name { font-size:clamp(3.3rem,14.6vw,5.65rem) }
  .opening .kicker,[data-birthday=true] .hero .kicker { font-size:.77rem }
  .opening-sparkles i:nth-child(2) { --x:6%; --y:39% }
  .opening-sparkles i:nth-child(5) { --x:86%; --y:38% }
  .circus-stage { height:clamp(171px,49vw,264px); }
  [data-birthday=true] #invite {
    background:radial-gradient(ellipse at 48% 8%,#fff1ce 0%,transparent 25%),
      radial-gradient(ellipse at 97% 21%,#efddff 0%,transparent 29%),var(--paper);
  }
  [data-birthday=true] .hero {
    grid-template-columns:minmax(0,1fr); grid-template-areas:'heading' 'portrait' 'message';
    gap:1.5rem; padding:2.7rem 1rem 2.6rem;
  }
  .hero-pennants { top:.5rem; left:-1.5rem; transform:rotate(-16deg) }
  .hero-pennants:nth-child(2) { right:-1.5rem; transform:rotate(16deg) }
  .hero-pennants i:nth-child(n+6) { display:none }
  [data-birthday=true] .hero-picture { width:min(72%,310px) }
  [data-birthday=true] .hero-message { padding-inline:.45rem; padding-top:.15rem }
  .hero-trim .balloon-pink { left:-7%; top:47% }
  .hero-trim .balloon-blue { left:-4%; top:49% }
  .hero-trim .balloon-lilac { right:-7%; top:53% }
  .hero-trim .balloon-yellow { right:-4%; top:42% }
  [data-birthday=true] .countdown { padding-top:2.6rem }
  [data-birthday=true] .countdown-board { width:min(100%,455px); padding-top:1.3rem }
  .countdown-cast img,.countdown-cast img:nth-child(2) { width:clamp(46px,16%,74px); bottom:auto; top:0 }
  .countdown-cast img { left:1%; margin-top:-2rem }
  .countdown-cast img:nth-child(2) { right:1%; margin-top:-1.85rem }
  [data-birthday=true] .countdown-grid span { font-size:.78rem }
  [data-birthday=true] .time-grid { grid-template-columns:minmax(0,1fr); gap:1.35rem }
  [data-birthday=true] .response-grid { grid-template-columns:minmax(0,1fr) }
  [data-birthday=true] .response-cast { width:min(57%,195px) }
  [data-birthday=true] .response-grid .paper { margin-inline:0 }
  .farewell h2 { padding-inline:.54em }
}
@media (min-width:365px) and (max-width:640px) {
  [data-birthday=true] .invite-header nav { flex-wrap:nowrap }
}
@media (max-width:360px) {
  .farewell h2::before,.farewell h2::after { margin-inline:.23em }
  [data-birthday=true] .hero .kicker,.opening .kicker { letter-spacing:.075em }
}
[data-animations=off] .invite-reveal,[data-animations=off] .opening *,
[data-animations=off] .opening *::before,[data-animations=off] .opening *::after,
[data-animations=off] #invite *,[data-animations=off] #invite *::before,[data-animations=off] #invite *::after {
  animation:none!important; transition:none!important;
}
@media (prefers-reduced-motion:reduce) {
  [data-birthday=true] .invite-reveal,[data-birthday=true] .opening *,
  [data-birthday=true] .opening *::before,[data-birthday=true] .opening *::after,
  [data-birthday=true] #invite *,[data-birthday=true] #invite *::before,[data-birthday=true] #invite *::after {
    animation:none!important; transition:none!important;
  }
}

#response-cta { margin:1rem 0 .15rem }
.attendance-counter {
  max-width:36ch; margin:.55rem auto 0; text-align:center;
  color:var(--muted); font-size:.875rem; line-height:1.45;
}
.response-copy .attendance-counter p { margin:.28rem auto 0 }
.attendance-count strong { color:var(--accent-deep); font-weight:700 }
.attendance-counter progress { display:block; width:min(100%,15rem); height:.5rem; margin:.4rem auto; accent-color:#9e569a }
#respuesta { scroll-margin-block:1rem }
[data-birthday=true] #respuesta > p:empty { display:none }
[data-birthday=true] #respuesta form > label:not(:first-child),
[data-birthday=true] #rsvp-family-fields > label:not(:first-child) { margin-top:.83rem }
[data-birthday=true] #open-counts { margin-top:.9rem }
[data-birthday=true] #open-counts > p { margin-bottom:.55rem }
[data-birthday=true] .rsvp-counts { grid-template-columns:repeat(3,minmax(0,1fr)); gap:.48rem; margin-bottom:.75rem }
[data-birthday=true] #rsvp-family-fields .rsvp-counts { margin-top:.88rem }
.attendance-total {
  display:block; border-radius:12px; padding:.46rem .72rem; margin:.25rem 0 .8rem;
  background:#f7eaff; color:#632e8f; font-weight:750;
}
#personal-registration,#response-actions { margin-top:1rem }
#personal-registration > p:last-child:empty { display:none }
#personal-registration .button { margin-top:.5rem }
#rsvp-status[data-kind=ok]:not(:empty) { background:#eaf7f0; border-radius:10px; font-weight:700; padding:.5rem .7rem; }
#rsvp-status[data-kind=error] { background:#fff0f1; border-radius:10px; padding:.5rem .7rem; }

.guest-calendar {margin-block:1rem}
.guest-calendar[open]>summary {margin-bottom:.6rem}
.guest-calendar .actions {flex-wrap:wrap}
.guest-calendar .secondary {margin:.5rem 0}
