:root {
  --ink: #4a3a46;
  --muted: #8b7a87;
  --paper: #fffdf9;
  --cream: #fff8ef;
  --blush: #f6bfcb;
  --blush-deep: #e07f98;
  --rose: #c9506d;
  --sky: #c4e3f6;
  --sky-deep: #6eaed8;
  --butter: #ffe4a6;
  --sage: #cbe6d3;
  --lilac: #ddd0f3;
  --gold: #c39a45;

  --env-back: #e9aebd;
  --env-side: #f6cfd8;
  --env-bottom: #f9dbe2;
  --env-flap: #f3c3ce;

  --radius: 22px;
  --shadow: 0 18px 50px -20px rgba(122, 70, 94, 0.35), 0 2px 6px rgba(122, 70, 94, 0.08);
  --script: 'Dancing Script', cursive;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--sans);
  color: var(--ink);
  background: #fbe9f0;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
a { color: var(--rose); }

/* ============================================================ SKY */
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 100; }
.sky { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; background: linear-gradient(180deg, #dcefff 0%, #fbe9f0 55%, #fff6ea 100%); }
.cloud { position: absolute; width: 180px; height: 90px; fill: #fff; opacity: 0.85; filter: drop-shadow(0 6px 10px rgba(110, 150, 190, 0.15)); animation: drift linear infinite; }
.c1 { top: 6%;  width: 210px; animation-duration: 70s; animation-delay: -10s; }
.c2 { top: 22%; width: 140px; animation-duration: 55s; animation-delay: -40s; opacity: 0.7; }
.c3 { top: 58%; width: 240px; animation-duration: 90s; animation-delay: -60s; opacity: 0.6; }
.c4 { top: 80%; width: 160px; animation-duration: 65s; animation-delay: -25s; opacity: 0.75; }
@keyframes drift { from { transform: translateX(-260px); } to { transform: translateX(calc(100vw + 260px)); } }

.balloon {
  position: absolute; top: 0; width: 42px; height: 52px;
  border-radius: 50% 50% 48% 52% / 58% 58% 42% 42%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.75) 0 7%, transparent 8%), var(--c);
  box-shadow: inset -6px -8px 0 rgba(0, 0, 0, 0.06);
  animation: rise linear infinite;
  opacity: 0.9;
}
.balloon::before { content: ''; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 7px; transform: translateX(-50%); background: var(--c); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.balloon::after { content: ''; position: absolute; left: 50%; top: calc(100% + 5px); width: 1px; height: 70px; background: rgba(120, 100, 115, 0.35); }
.b1 { --c: var(--blush); left: 6%;  animation-duration: 24s; animation-delay: -4s; }
.b2 { --c: var(--sky);   left: 22%; animation-duration: 30s; animation-delay: -18s; transform: scale(.8); }
.b3 { --c: var(--butter); left: 74%; animation-duration: 26s; animation-delay: -9s; }
.b4 { --c: var(--lilac); left: 88%; animation-duration: 33s; animation-delay: -22s; }
.b5 { --c: var(--sage);  left: 50%; animation-duration: 38s; animation-delay: -30s; }
@keyframes rise {
  0%   { transform: translate(0, 110vh) rotate(-5deg); }
  50%  { transform: translate(18px, 40vh) rotate(5deg); }
  100% { transform: translate(-10px, -25vh) rotate(-4deg); }
}
.twinkle { position: absolute; color: #fff; font-size: 18px; text-shadow: 0 0 10px rgba(255, 210, 120, 0.9); animation: twinkle 3.2s ease-in-out infinite; }
.t1 { top: 12%; left: 14%; }
.t2 { top: 30%; left: 82%; animation-delay: -1s; font-size: 22px; }
.t3 { top: 70%; left: 8%;  animation-delay: -2s; }
.t4 { top: 86%; left: 64%; animation-delay: -.5s; }
.t5 { top: 46%; left: 92%; animation-delay: -1.6s; font-size: 14px; }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.7) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(20deg); } }

/* ============================================================ STAGE */
.stage {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 16px 40px; text-align: center;
  transition: opacity .7s ease, transform .7s ease;
}
.stage.exit { opacity: 0; transform: scale(1.06); pointer-events: none; }
.stage-eyebrow, .stage-name { transition: opacity .4s ease, transform .4s ease; }
.stage.opening .stage-eyebrow, .stage.opening .stage-name { opacity: 0; transform: translateY(-16px); }
.stage-eyebrow { margin: 0; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; font-size: 12px; color: var(--rose); }
.stage-name { margin: 6px 0 0; font-family: var(--script); font-size: clamp(40px, 10vw, 64px); line-height: 1.1; color: var(--ink); }

.envelope-wrap {
  position: relative;
  width: min(88vw, 440px);
  aspect-ratio: 3 / 2;
  margin: 72px auto 18px;
  animation: bob 4s ease-in-out infinite;
  cursor: pointer;
}
.envelope-wrap:hover { animation-play-state: paused; }
.envelope-wrap:hover .envelope:not(.open) { animation: wiggle .6s ease; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }

.env-shadow { position: absolute; left: 10%; right: 10%; bottom: -26px; height: 18px; border-radius: 50%; background: radial-gradient(rgba(120, 70, 95, .28), transparent 70%); }
.envelope { position: absolute; inset: 0; perspective: 1400px; }
.env-back { position: absolute; inset: 0; border-radius: 12px; background: var(--env-back); box-shadow: var(--shadow); }

.letter {
  position: absolute; left: 6%; right: 6%; top: 5%; height: 90%; z-index: 2;
  border-radius: 8px;
  background: var(--paper);
  background-image: radial-gradient(rgba(224, 127, 152, .12) 1.2px, transparent 1.3px);
  background-size: 14px 14px;
  box-shadow: 0 2px 10px rgba(110, 60, 80, .15);
  transition: transform 1s cubic-bezier(.2, .9, .25, 1);
  display: grid; place-items: center;
}
.letter-inner {
  position: absolute; inset: 8px; border: 1.5px dashed rgba(195, 154, 69, .55); border-radius: 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 7%;
}
.letter-mini { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--muted); }
.letter-script { font-family: var(--script); font-size: clamp(28px, 7vw, 40px); color: var(--rose); line-height: 1.15; }
.letter-names { color: var(--gold); }
.envelope.letter-out .letter { transform: translateY(-58%); }

.env-pocket { position: absolute; inset: 0; z-index: 3; border-radius: 12px; overflow: hidden; pointer-events: none; }
.pocket-side { position: absolute; inset: 0; background: var(--env-side); }
.pocket-side.left  { clip-path: polygon(0 0, 52% 52%, 0 100%); }
.pocket-side.right { clip-path: polygon(100% 0, 48% 52%, 100% 100%); background: #f3c8d2; }
.pocket-bottom-wrap { position: absolute; inset: 0; filter: drop-shadow(0 -3px 3px rgba(130, 60, 90, .12)); }
.pocket-bottom { position: absolute; inset: 0; background: var(--env-bottom); clip-path: polygon(0 100%, 50% 46%, 100% 100%); }

.env-to { position: absolute; left: 0; right: 0; bottom: 9%; display: flex; gap: 8px; justify-content: center; align-items: baseline; }
.env-to-label { font-weight: 800; font-size: 11px; letter-spacing: .15em; color: var(--muted); text-transform: uppercase; }
.env-to-name { font-family: var(--script); font-size: clamp(20px, 5vw, 28px); color: var(--ink); max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.env-stamp {
  position: absolute; right: 5%; bottom: 8%; width: 44px; height: 52px; background: #fff;
  display: grid; place-items: center; transform: rotate(6deg);
  -webkit-mask: radial-gradient(circle 3px at 3px 3px, transparent 98%, #000) -3px -3px / 8px 8px;
          mask: radial-gradient(circle 3px at 3px 3px, transparent 98%, #000) -3px -3px / 8px 8px;
}
.env-stamp span { display: grid; place-items: center; width: 34px; height: 42px; background: var(--sky); font-size: 20px; }
.env-postmark {
  position: absolute; left: 5%; bottom: 8%; width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid rgba(201, 80, 109, .45); color: rgba(201, 80, 109, .6);
  font-size: 8px; font-weight: 800; line-height: 1.25; letter-spacing: .1em;
  display: grid; place-items: center; transform: rotate(-14deg);
}

.env-flap {
  position: absolute; left: 0; right: 0; top: 0; height: 56%; z-index: 4;
  transform-origin: 50% 0; transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.4, .1, .3, 1), z-index 0s .4s;
}
.flap-face { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.flap-outer { background: linear-gradient(180deg, var(--env-flap), #f0b6c4); clip-path: polygon(0 0, 100% 0, 50% 100%); border-radius: 12px 12px 0 0; }
.flap-inner {
  transform: rotateX(180deg);
  clip-path: polygon(0 100%, 100% 100%, 50% 0);
  background: #fff6f8;
  background-image:
    radial-gradient(var(--sky) 3px, transparent 3.5px),
    radial-gradient(var(--butter) 3px, transparent 3.5px);
  background-size: 22px 22px; background-position: 0 0, 11px 11px;
}
.envelope.open .env-flap { transform: rotateX(180deg); z-index: 1; }

.seal {
  position: absolute; left: 50%; top: 56%; z-index: 5;
  width: 80px; height: 80px; padding: 0; border: 0; background: none; cursor: pointer;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 5px 6px rgba(110, 30, 55, .35));
  -webkit-tap-highlight-color: transparent;
}
.seal::after {
  content: ''; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid rgba(201, 80, 109, .5); animation: ping 2s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.seal:hover .seal-half, .seal:focus-visible .seal-half { transform: scale(1.06); }
.seal:focus-visible { outline: none; }
.seal:focus-visible::after { border-color: var(--ink); animation: none; }
.seal-half {
  position: absolute; inset: 0;
  border-radius: 48% 52% 50% 50% / 52% 48% 52% 48%;
  background: radial-gradient(circle at 34% 30%, #ef9aab 0%, #cf5470 45%, #a5344f 100%);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .08), inset 0 0 0 9px rgba(120, 20, 50, .18), inset 0 -6px 10px rgba(80, 10, 35, .3);
  display: grid; place-items: center;
  transition: transform .6s cubic-bezier(.3, .7, .3, 1), opacity .6s ease;
}
.seal-half.left  { clip-path: polygon(0 0, 54% 0, 44% 30%, 58% 55%, 46% 78%, 52% 100%, 0 100%); }
.seal-half.right { clip-path: polygon(54% 0, 100% 0, 100% 100%, 52% 100%, 46% 78%, 58% 55%, 44% 30%); }
.seal-text { font-family: var(--serif); font-weight: 700; font-size: 22px; color: #ffe3ea; text-shadow: 0 -1px 0 rgba(90, 10, 35, .45), 0 1px 0 rgba(255, 255, 255, .3); letter-spacing: 1px; }
.seal-text i { font-style: normal; font-size: 15px; margin: 0 2px; vertical-align: 2px; }
.seal.broken { pointer-events: none; }
.seal.broken::after { display: none; }
.seal.broken .left  { transform: translate(-46px, 70px) rotate(-50deg); opacity: 0; }
.seal.broken .right { transform: translate(46px, 70px) rotate(50deg); opacity: 0; }

.hint { margin: 30px 0 0; font-weight: 700; color: var(--muted); transition: opacity .3s; }
.hint-hand { display: inline-block; animation: tap 1.4s ease-in-out infinite; }
@keyframes tap { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.stage.opening .hint { opacity: 0; }

/* ============================================================ INVITATION */
.invite { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 28px 16px 60px; }
.invite.enter { animation: unfold .9s cubic-bezier(.2, .9, .25, 1); }
@keyframes unfold { from { opacity: 0; transform: translateY(40px) scale(.96); } to { opacity: 1; transform: none; } }

.card {
  position: relative; margin: 0 0 22px; padding: clamp(24px, 5vw, 44px);
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  text-align: center;
}
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .9, .25, 1); }
.reveal.in { opacity: 1; transform: none; }

.section-title { margin: 0 0 18px; font-family: var(--serif); font-size: clamp(24px, 5vw, 32px); font-weight: 700; }
.section-title::after { content: '♡'; display: block; font-size: 16px; color: var(--blush-deep); margin-top: 4px; }
.section-lede { margin: -4px auto 22px; max-width: 520px; color: var(--muted); line-height: 1.6; }
.script { font-family: var(--script); }

/* Hero */
.hero { padding-top: 64px; overflow: hidden; background: var(--paper) radial-gradient(circle at 50% -20%, #fff1f5 0, transparent 60%); }
.hero::before {
  content: ''; position: absolute; inset: 12px; border: 1.5px solid rgba(195, 154, 69, .45); border-radius: calc(var(--radius) - 8px); pointer-events: none;
}
.bunting { position: absolute; top: 0; left: 0; right: 0; height: 56px; display: flex; justify-content: center; gap: 2px; }
.bunting::before { content: ''; position: absolute; left: -5%; right: -5%; top: -34px; height: 50px; border-bottom: 1.5px solid rgba(139, 122, 135, .5); border-radius: 0 0 50% 50%; }
.flag { width: 26px; height: 32px; clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: 50% 0; animation: flutter 3s ease-in-out infinite; }
@keyframes flutter { 0%, 100% { rotate: -5deg; } 50% { rotate: 5deg; } }

.eyebrow { margin: 0; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; font-size: 12px; color: var(--muted); }
.hero-title { margin: 2px 0 0; font-size: clamp(56px, 14vw, 96px); line-height: 1; color: var(--rose); text-shadow: 0 3px 0 rgba(246, 191, 203, .6); }
.honoring { margin: 10px 0 14px; font-family: var(--serif); font-style: italic; color: var(--muted); }
.parents { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 4vw, 34px); flex-wrap: wrap; }
.parent { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.parent-name { font-family: var(--serif); font-size: clamp(32px, 8vw, 48px); font-weight: 700; line-height: 1.05; }
.parent-full { font-size: 13px; color: var(--muted); letter-spacing: .06em; }
.parent-role { margin-top: 8px; padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.parent-role.mom { background: #fde3ea; color: #b3415f; }
.parent-role.dad { background: #dceefa; color: #3d7fae; }
.parents-amp { font-family: var(--script); font-size: clamp(36px, 8vw, 54px); color: var(--gold); }
.tagline { margin: 22px 0 0; font-size: 17px; font-weight: 700; color: var(--ink); }

.datebar { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 4vw, 24px); margin: 26px auto 0; max-width: 460px; }
.datebar-side { flex: 1; padding: 10px 0; border-top: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); font-weight: 800; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.datebar-mid { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.datebar-month, .datebar-year { font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.datebar-day { font-family: var(--serif); font-size: 54px; font-weight: 700; color: var(--rose); margin: 2px 0; }

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.baby-mobile { display: flex; justify-content: center; gap: 18px; margin-top: 26px; font-size: 22px; }
.baby-mobile span { display: inline-block; transform-origin: 50% -30px; animation: swing 3s ease-in-out infinite; animation-delay: var(--d); }
@keyframes swing { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 22px; border-radius: 99px; border: 2px solid transparent;
  font-weight: 800; font-size: 15px; text-decoration: none; cursor: pointer;
  background: #fff; color: var(--ink); border-color: #f0dde3;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgba(160, 70, 100, .45); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 2px; }
.btn.primary { background: linear-gradient(135deg, #ee8ea6, var(--rose)); color: #fff; border-color: transparent; }
.btn.ghost { background: transparent; border-color: var(--blush); color: var(--rose); }
.btn.small { padding: 8px 14px; font-size: 13px; }
.btn.big { width: 100%; padding: 16px 22px; font-size: 17px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.link-btn { background: none; border: 0; padding: 6px; color: var(--rose); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Countdown */
.cd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 2vw, 16px); max-width: 520px; margin: 0 auto; }
.cd-tile { padding: 16px 4px 12px; border-radius: 16px; background: var(--cream); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .04); }
.cd-tile:nth-child(1) { background: #fde6ec; }
.cd-tile:nth-child(2) { background: #e2f1fb; }
.cd-tile:nth-child(3) { background: #fff1d1; }
.cd-tile:nth-child(4) { background: #e4f3e8; }
.cd-num { display: block; font-family: var(--serif); font-size: clamp(28px, 7vw, 44px); font-weight: 700; font-variant-numeric: tabular-nums; }
.cd-num.tick { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.15); } }
.cd-label { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cd-done { margin: 0; font-family: var(--script); font-size: 34px; color: var(--rose); }

/* When & where */
.ww-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; text-align: left; }
.ww-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: 18px; background: var(--cream); }
.cal-icon { flex: none; width: 64px; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 4px 10px rgba(110, 60, 80, .12); text-align: center; }
.cal-month { display: block; padding: 4px 0; background: var(--rose); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.cal-day { display: block; padding: 6px 0 8px; font-family: var(--serif); font-size: 28px; font-weight: 700; }
.pin-icon { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; background: #fff; box-shadow: 0 4px 10px rgba(110, 60, 80, .12); }
.ww-head { margin: 2px 0 4px; font-weight: 800; font-size: 17px; }
.ww-sub { margin: 0; color: var(--muted); line-height: 1.5; }
.ww-note { margin: 6px 0 0; font-size: 14px; color: var(--muted); font-style: italic; }
.mini-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dresscode { margin: 20px 0 0; font-weight: 700; }
.dresscode b { color: var(--rose); }

/* Good to know */
.details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.detail { padding: 20px 16px; border-radius: 18px; background: var(--cream); transition: transform .2s; }
.detail:hover { transform: translateY(-4px) rotate(-1deg); }
.detail-icon { font-size: 34px; display: block; margin-bottom: 6px; }
.detail h4 { margin: 0 0 4px; font-size: 16px; }
.detail p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }

/* Registry */
.registry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.gift {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 26px 16px 20px; border-radius: 18px; text-decoration: none; color: var(--ink);
  background: linear-gradient(180deg, #fff, var(--cream)); border: 2px dashed var(--blush);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
a.gift:hover { transform: translateY(-4px); border-style: solid; box-shadow: 0 14px 24px -14px rgba(160, 70, 100, .5); }
a.gift:hover .gift-emoji { animation: shake .5s ease; }
@keyframes shake { 25% { transform: rotate(-12deg) scale(1.1); } 75% { transform: rotate(12deg) scale(1.1); } }
.gift-emoji { font-size: 40px; }
.gift-name { font-weight: 800; }
.gift-note { font-size: 14px; color: var(--muted); }
.gift-cta { margin-top: 6px; font-size: 13px; font-weight: 800; color: var(--rose); }

/* RSVP */
.rsvp { text-align: left; }
.rsvp .section-title, .rsvp .section-lede { text-align: center; }
#rsvpForm { max-width: 520px; margin: 0 auto; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .choices legend, .stepper-label { font-weight: 800; font-size: 14px; }
.field small { font-weight: 600; color: var(--muted); }
input, textarea {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: 2px solid #f0dde3; background: #fff;
  font: inherit; font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus { outline: none; border-color: var(--blush-deep); box-shadow: 0 0 0 4px rgba(246, 191, 203, .4); }
textarea { resize: vertical; min-height: 84px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.choices { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choices legend { padding: 0; margin-bottom: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%;
  padding: 14px 10px; border-radius: 16px; border: 2px solid #f0dde3; background: #fff;
  text-align: center; font-weight: 700; font-size: 14px; transition: all .2s;
}
.choice span b { font-size: 28px; transition: transform .25s; }
.choice:hover span { border-color: var(--blush); }
.choice input:focus-visible + span { outline: 3px solid var(--sky-deep); outline-offset: 2px; }
.choice input:checked + span { border-color: var(--rose); background: #fff0f4; box-shadow: 0 6px 16px -8px rgba(201, 80, 109, .5); }
.choice input:checked + span b { transform: scale(1.2) rotate(-8deg); }
.choice.boy input:checked + span { border-color: var(--sky-deep); background: #eef7fd; box-shadow: 0 6px 16px -8px rgba(110, 174, 216, .7); }

.party { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; animation: unfold .4s ease; }
.stepper { display: grid; gap: 8px; padding: 12px 14px; border-radius: 16px; background: var(--cream); }
.stepper-ctl { display: flex; align-items: center; justify-content: space-between; }
.stepper-ctl button {
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--blush); background: #fff;
  font-size: 20px; font-weight: 800; line-height: 1; color: var(--rose); cursor: pointer;
}
.stepper-ctl button:hover { background: #fff0f4; }
.stepper-ctl output { font-family: var(--serif); font-size: 26px; font-weight: 700; min-width: 2ch; text-align: center; }

.form-msg { margin: 0; min-height: 1.4em; text-align: center; font-weight: 700; color: var(--rose); }

.rsvp-done { max-width: 460px; margin: 0 auto; text-align: center; animation: unfold .6s ease; }
.done-emoji { font-size: 64px; animation: bounce 1.2s ease infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-14px); } }
.done-title { margin: 4px 0 6px; font-size: 40px; color: var(--rose); }
.rsvp-done p { color: var(--muted); line-height: 1.6; }

.tally { max-width: 460px; margin: 28px auto 0; padding-top: 20px; border-top: 1.5px dashed #f0dde3; text-align: center; }
.tally-title { margin: 0 0 10px; font-weight: 800; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tally-bar { display: flex; height: 18px; border-radius: 99px; overflow: hidden; background: #f3eef1; }
.tally-boy, .tally-girl { display: block; height: 100%; transition: width 1s cubic-bezier(.2, .9, .25, 1); width: 0; }
.tally-boy { background: linear-gradient(90deg, #a8d4f2, var(--sky-deep)); }
.tally-girl { background: linear-gradient(90deg, #f3a3b7, var(--blush-deep)); }
.tally-legend { display: flex; justify-content: space-between; margin-top: 8px; font-weight: 800; font-size: 14px; }

/* Sign-off */
.sign-off { text-align: center; padding: 20px 0 10px; }
.sign-off .script { margin: 0; font-size: 28px; color: var(--muted); }
.sign-names { margin: 0; font-family: var(--script); font-size: 44px; color: var(--rose); line-height: 1.2; }
.contact { color: var(--muted); }

@media (max-width: 520px) {
  .row2, .party { grid-template-columns: 1fr; }
  .choice span { font-size: 13px; }
  .datebar-side { font-size: 11px; letter-spacing: .1em; }
  .env-postmark { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .cloud, .balloon { display: none; }
}
