:root {
  --forest: #174d2b;
  --leaf: #2f7d43;
  --lime: #d8ef9b;
  --cream: #fffaf0;
  --orange: #f59e37;
  --brown: #70401f;
  --text: #263227;
  --muted: #687369;
  --danger: #b42318;
  --shadow: 0 22px 60px rgba(36, 72, 43, .18);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Nunito", system-ui, sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(216,239,155,.7), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(245,158,55,.18), transparent 24%),
    linear-gradient(140deg, #eff9e7, #fffaf0 50%, #f3f7e9);
}
body::before, body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .18;
  z-index: -1;
}
body::before { background: var(--leaf); top: -60px; left: -80px; }
body::after { background: var(--orange); right: -80px; bottom: -60px; }
.page-shell {
  width: min(1120px, calc(100% - 28px));
  margin: 28px auto;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 24px;
  align-items: start;
}
.hero-card, .form-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(23,77,43,.12);
  border-radius: 30px;
  box-shadow: var(--shadow);
}
.hero-card {
  min-height: 720px;
  padding: 68px 42px 40px;
  text-align: center;
  color: white;
  background:
    linear-gradient(rgba(12,57,31,.9), rgba(14,71,37,.92)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 2px, transparent 2px 16px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-card::after {
  content: "";
  position: absolute;
  left: -8%; right: -8%; bottom: -55px;
  height: 170px;
  background: #123f25;
  border-radius: 50% 50% 0 0;
  z-index: 0;
}
.hero-card > * { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 8px; color: var(--lime); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
h1, h2, h3 { font-family: "Baloo 2", system-ui, sans-serif; }
h1 { margin: 0; font-size: clamp(3rem, 7vw, 5.7rem); line-height: .9; letter-spacing: -.04em; }
h1 span { display: inline-block; margin-top: 16px; color: var(--orange); font-size: .72em; }
.hero-copy { max-width: 470px; margin: 24px auto 30px; color: #edf6e9; font-size: 1.08rem; }
.event-grid { display: grid; gap: 12px; text-align: left; }
.event-grid div { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.08); border-radius: 16px; backdrop-filter: blur(8px); }
.event-grid span { font-size: 1.25rem; }
.map-link { display: inline-flex; align-self: center; margin-top: 18px; color: #fff; font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.animal { position: absolute; z-index: 2; font-size: 4rem; filter: drop-shadow(0 8px 10px rgba(0,0,0,.18)); }
.animal-left { left: 20px; bottom: 18px; transform: rotate(-6deg); }
.animal-right { right: 18px; bottom: 16px; transform: rotate(5deg); }
.leaf { position: absolute; font-size: 5.5rem; opacity: .25; z-index: 0; }
.leaf-one { top: -18px; left: -14px; transform: rotate(20deg); }
.leaf-two { top: -16px; right: -12px; transform: rotate(-30deg); }
.form-card { padding: 38px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); }
.section-heading p { margin: 0; color: var(--leaf); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.section-heading h2 { margin: -4px 0 22px; font-size: 3.2rem; color: var(--forest); }
form { display: grid; gap: 18px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label, legend { font-weight: 800; color: #354238; }
input, textarea {
  width: 100%;
  margin-top: 7px;
  border: 1.5px solid #d9e1d8;
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
input:focus, textarea:focus { border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(47,125,67,.12); }
fieldset { margin: 0; padding: 0; border: 0; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; padding: 13px; border: 1.5px solid #d9e1d8; border-radius: 14px; background: #fff; text-align: center; transition: .2s; }
.choice input:checked + span { border-color: var(--leaf); background: #f0f8e9; box-shadow: 0 0 0 3px rgba(47,125,67,.1); }
.meal-panel { margin-top: 16px; padding: 16px; border-radius: 18px; background: #f5f9ef; border: 1px solid #dfe9d7; }
.meal-title { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 12px; }
.meal-title h3 { margin: 0; font-size: 1.35rem; color: var(--forest); }
.meal-title p { margin: 0; color: var(--muted); font-size: .9rem; }
.meal-status { white-space: nowrap; padding: 7px 10px; border-radius: 999px; background: #fff; color: var(--brown); font-size: .82rem; font-weight: 900; }
.meal-status.valid { background: #dff5df; color: #17622f; }
.meal-status.invalid { background: #fee4e2; color: var(--danger); }
.optional { color: var(--muted); font-weight: 600; font-size: .84rem; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--leaf); }
button { border: 0; border-radius: 16px; padding: 15px 20px; background: linear-gradient(135deg, var(--forest), var(--leaf)); color: white; font: 800 1rem "Nunito", sans-serif; cursor: pointer; box-shadow: 0 10px 22px rgba(23,77,43,.22); transition: transform .2s, box-shadow .2s; }
button:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(23,77,43,.28); }
button:disabled { opacity: .65; cursor: wait; transform: none; }
.form-message { min-height: 24px; font-weight: 800; text-align: center; }
.form-message.success { color: #17622f; }
.form-message.error { color: var(--danger); }
.contact-note { margin: 18px 0 0; text-align: center; color: var(--muted); }
.contact-note a { color: var(--forest); font-weight: 900; }
.hidden { display: none !important; }
@media (max-width: 850px) {
  .page-shell { grid-template-columns: 1fr; }
  .hero-card { min-height: auto; padding: 54px 28px 110px; }
}
@media (max-width: 560px) {
  .page-shell { width: min(100% - 18px, 1120px); margin: 9px auto; gap: 12px; }
  .hero-card, .form-card { border-radius: 22px; }
  .hero-card { padding: 46px 20px 100px; }
  .form-card { padding: 24px 18px; }
  .field-grid, .choice-row { grid-template-columns: 1fr; }
  h1 { font-size: 3.15rem; }
  .event-grid div { font-size: .92rem; }
  .meal-title { align-items: flex-start; flex-direction: column; }
}

/* Animated invitation opening */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
body.invite-locked { overflow: hidden; }
.invitation-intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 36%, rgba(255,255,255,.24), transparent 32%),
    linear-gradient(155deg, #0a3d25 0%, #176038 48%, #0b4528 100%);
  transition: opacity .8s ease, visibility .8s ease, transform .8s ease;
}
.invitation-intro.is-opening { opacity: 0; visibility: hidden; transform: scale(1.06); pointer-events: none; }
.invitation-intro::before,
.invitation-intro::after {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .26;
  animation: jungleGlow 6s ease-in-out infinite alternate;
}
.invitation-intro::before { background: #a9d856; left: -160px; top: -120px; }
.invitation-intro::after { background: #f59e37; right: -170px; bottom: -150px; animation-delay: -3s; }
.invite-stage { position: relative; z-index: 4; width: min(430px, 92vw); text-align: center; animation: stageRise 1s cubic-bezier(.2,.8,.2,1) both; }
.intro-kicker { margin: 0 0 13px; color: #f4ffd9; font: 800 clamp(.82rem, 2vw, 1rem) "Nunito", sans-serif; letter-spacing: .13em; text-transform: uppercase; animation: fadeDown .9s .25s both; }
.animated-invite-card {
  position: relative;
  width: min(100%, 370px);
  margin: 0 auto;
  overflow: hidden;
  border: 5px solid rgba(255,255,255,.92);
  border-radius: 25px;
  background: #fffaf0;
  box-shadow: 0 35px 90px rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.2);
  transform-origin: 50% 80%;
  animation: cardEntrance 1.25s cubic-bezier(.16,1,.3,1) both, cardFloat 4s 1.3s ease-in-out infinite;
}
.animated-invite-card img { display: block; width: 100%; height: auto; }
.card-shine { position: absolute; inset: -50% auto -50% -80%; width: 45%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.46), transparent); transform: rotate(18deg); animation: cardShine 4.8s 1.6s ease-in-out infinite; }
.open-invitation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(100%, 370px);
  margin-top: 17px;
  border: 2px solid rgba(255,255,255,.36);
  border-radius: 999px;
  padding: 15px 22px;
  background: linear-gradient(135deg, #f3a134, #ef7c20);
  color: #fff;
  font: 900 1rem "Nunito", sans-serif;
  box-shadow: 0 15px 32px rgba(0,0,0,.25);
  animation: buttonPop .7s 1s both, buttonPulse 2.4s 1.8s ease-in-out infinite;
}
.open-invitation:hover { transform: translateY(-3px) scale(1.02); }
.skip-animation { margin-top: 10px; padding: 5px 10px; background: transparent; box-shadow: none; color: rgba(255,255,255,.74); font-size: .8rem; text-decoration: underline; text-underline-offset: 3px; }
.skip-animation:hover { transform: none; box-shadow: none; color: #fff; }
.jungle-canopy { position: absolute; inset: -22px 0 auto; z-index: 2; display: flex; justify-content: space-around; font-size: clamp(4rem, 10vw, 8rem); filter: drop-shadow(0 12px 10px rgba(0,0,0,.2)); pointer-events: none; }
.jungle-canopy span:nth-child(odd) { animation: leafSway 4s ease-in-out infinite alternate; }
.jungle-canopy span:nth-child(even) { animation: leafSway 5s -2s ease-in-out infinite alternate-reverse; }
.floating-animal { position: absolute; z-index: 3; font-size: clamp(2.6rem, 7vw, 5rem); filter: drop-shadow(0 12px 12px rgba(0,0,0,.25)); pointer-events: none; }
.animal-monkey { left: 4%; top: 24%; animation: animalBob 4s ease-in-out infinite; }
.animal-parrot { right: 5%; top: 19%; animation: animalBob 3.6s -1.5s ease-in-out infinite reverse; }
.animal-butterfly { right: 12%; bottom: 12%; font-size: clamp(1.8rem, 5vw, 3.2rem); animation: butterflyFlight 7s ease-in-out infinite; }
.confetti-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 8; }
.confetti-piece { position: absolute; top: -12%; width: 10px; height: 18px; border-radius: 3px; animation: confettiFall var(--fall-duration) linear var(--fall-delay) forwards; }
.page-shell { transition: opacity .8s ease, transform .8s ease; }
.page-shell[aria-hidden="true"] { opacity: 0; transform: translateY(25px); pointer-events: none; }
.page-shell.site-visible { opacity: 1; transform: translateY(0); }
.hero-card { animation: subtleHeroFloat 7s ease-in-out infinite; }
.animal-left { animation: heroAnimalLeft 3.8s ease-in-out infinite; }
.animal-right { animation: heroAnimalRight 4.2s ease-in-out infinite; }
.leaf-one { animation: leafSway 4s ease-in-out infinite alternate; }
.leaf-two { animation: leafSway 5s ease-in-out infinite alternate-reverse; }

@keyframes stageRise { from { opacity: 0; transform: translateY(35px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cardEntrance { 0% { opacity: 0; transform: perspective(900px) rotateY(-22deg) rotateX(12deg) scale(.78); } 70% { opacity: 1; transform: perspective(900px) rotateY(3deg) rotateX(-2deg) scale(1.025); } 100% { transform: perspective(900px) rotateY(0) rotateX(0) scale(1); } }
@keyframes cardFloat { 0%,100% { transform: translateY(0) rotate(-.35deg); } 50% { transform: translateY(-9px) rotate(.35deg); } }
@keyframes cardShine { 0%,55% { left: -80%; } 76%,100% { left: 145%; } }
@keyframes buttonPop { from { opacity: 0; transform: scale(.75); } to { opacity: 1; transform: scale(1); } }
@keyframes buttonPulse { 0%,100% { box-shadow: 0 15px 32px rgba(0,0,0,.25), 0 0 0 0 rgba(245,158,55,.45); } 50% { box-shadow: 0 15px 32px rgba(0,0,0,.25), 0 0 0 12px rgba(245,158,55,0); } }
@keyframes leafSway { from { transform: rotate(-7deg) translateY(0); } to { transform: rotate(8deg) translateY(9px); } }
@keyframes animalBob { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-18px) rotate(5deg); } }
@keyframes butterflyFlight { 0%,100% { transform: translate(0,0) rotate(-8deg); } 25% { transform: translate(-45px,-50px) rotate(10deg); } 50% { transform: translate(10px,-95px) rotate(-7deg); } 75% { transform: translate(40px,-35px) rotate(9deg); } }
@keyframes jungleGlow { from { transform: scale(.9); } to { transform: scale(1.15); } }
@keyframes confettiFall { 0% { transform: translate3d(0,-10vh,0) rotate(0); opacity: 1; } 100% { transform: translate3d(var(--drift),115vh,0) rotate(720deg); opacity: .9; } }
@keyframes subtleHeroFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes heroAnimalLeft { 0%,100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-8px); } }
@keyframes heroAnimalRight { 0%,100% { transform: rotate(5deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-10px); } }

@media (max-height: 760px) and (min-width: 570px) {
  .invite-stage { width: min(330px, 80vw); }
  .animated-invite-card { width: 255px; }
  .intro-kicker { margin-bottom: 8px; }
  .open-invitation { width: 300px; margin-top: 10px; padding: 12px 18px; }
}
@media (max-width: 560px) {
  .invitation-intro { padding: 14px; }
  .invite-stage { width: min(345px, 94vw); }
  .animated-invite-card { width: min(100%, 315px); border-width: 4px; border-radius: 21px; }
  .open-invitation { width: min(100%, 315px); padding: 14px 16px; }
  .animal-monkey { left: -4px; top: 27%; }
  .animal-parrot { right: -4px; top: 18%; }
  .animal-butterfly { right: 5%; bottom: 8%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

.mobile-top{position:sticky;top:0;z-index:20;display:flex;justify-content:space-between;align-items:center;padding:10px 18px;background:rgba(18,61,36,.92);color:#fff;backdrop-filter:blur(12px)}.mobile-top button{border:1px solid #ffffff55;background:#ffffff18;color:white;border-radius:999px;padding:7px 12px}.countdown{display:flex;gap:10px;justify-content:center;margin:20px 0}.countdown span{min-width:72px;background:#fff7d8;border:1px solid #ead797;border-radius:16px;padding:10px;text-align:center;font-size:.78rem}.countdown b{display:block;font-size:1.45rem;color:#174d2b}.hero-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}.calendar-link{display:inline-flex;align-items:center;justify-content:center;padding:12px 16px;border-radius:999px;background:#fff;color:#174d2b;text-decoration:none;font-weight:800;border:1px solid #d7c783}.reminder-box{background:#f4f8ed;border:1px solid #d5e3c8;border-radius:18px;padding:16px;margin:18px 0}.reminder-box strong,.reminder-box small{display:block}.reminder-box small{margin-top:8px;color:#61715f}.success-card{text-align:center;padding:28px}.success-card>div{font-size:3rem}.success-card h3{font-size:2rem;margin:8px}.admin-link{opacity:.7}@media(max-width:600px){.mobile-top{font-size:.9rem}.countdown span{min-width:62px}.hero-actions a{width:100%}}

/* Readability correction for countdown cards */
.countdown span{color:#173f27!important;font-weight:800!important;line-height:1.15!important;}
.countdown b{color:#174d2b!important;text-shadow:none!important;margin-bottom:4px!important;}
@media(max-width:600px){.countdown span{font-size:.78rem!important;padding:10px 6px!important;}}


/* Premium RSVP submission finale */
.rsvp-finale {
  position: fixed;
  inset: 0;
  z-index: 5000;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 36%, rgba(255,244,177,.30), transparent 26%),
    linear-gradient(155deg, #07351f 0%, #0d6337 54%, #082f1c 100%);
  opacity: 0;
  visibility: hidden;
  transform: scale(.98);
  transition: opacity .32s ease, transform .32s ease, visibility .32s ease;
}
.rsvp-finale.is-playing { opacity: 1; visibility: visible; transform: scale(1); }
.rsvp-finale.is-leaving { opacity: 0; transform: scale(1.05); }
.finale-sky-glow {
  position: absolute;
  width: min(90vw, 780px);
  height: min(90vw, 780px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,255,160,.24), rgba(255,173,66,.10) 45%, transparent 68%);
  animation: finaleGlow 2.2s ease-in-out infinite alternate;
}
.finale-scene { position: relative; z-index: 5; width: min(760px, 96vw); min-height: 520px; display: grid; place-items: center; }
.finale-message-card {
  position: relative;
  z-index: 5;
  width: min(480px, 88vw);
  padding: 34px 28px 30px;
  border: 3px solid rgba(255,255,255,.84);
  border-radius: 30px;
  text-align: center;
  color: #153f26;
  background: linear-gradient(180deg, #fffdf0, #f6f0cf);
  box-shadow: 0 28px 70px rgba(0,0,0,.36), 0 0 0 10px rgba(255,255,255,.09);
  transform: translateY(42px) scale(.72) rotate(-3deg);
  opacity: 0;
  animation: finaleCardPop .85s .45s cubic-bezier(.15,1.3,.25,1) forwards;
}
.finale-message-card::before { content:""; position:absolute; inset:8px; border:1.5px dashed rgba(39,103,55,.32); border-radius:22px; pointer-events:none; }
.finale-paw { font-size: 2.5rem; animation: pawBounce .8s 1.1s ease-in-out 2; }
.finale-message-card h2 { position:relative; margin: 3px 0 8px; font-size: clamp(2rem, 6vw, 3.2rem); line-height: .95; color:#16542e; }
.finale-message-card p { position:relative; margin: 0 auto; max-width: 390px; font-size: clamp(.98rem, 2.5vw, 1.15rem); color:#3d563f; }
.finale-goodbye { position:relative; display:inline-block; margin-top:16px; padding:9px 16px; border-radius:999px; background:#f49a2f; color:#fff; font-weight:900; transform:scale(0); animation: goodbyePop .55s 1.65s cubic-bezier(.2,1.4,.3,1) forwards; }
.finale-animals { position:absolute; inset:0; z-index:4; pointer-events:none; }
.finale-animal { position:absolute; display:block; font-size:clamp(3.4rem, 10vw, 6.8rem); filter:drop-shadow(0 14px 10px rgba(0,0,0,.26)); opacity:0; }
.finale-lion { left:1%; bottom:4%; animation: animalHelloLeft 1s .15s cubic-bezier(.2,1.2,.3,1) forwards, animalWave 1.1s 1.25s ease-in-out 2; }
.finale-elephant { right:0; bottom:3%; animation: animalHelloRight 1s .22s cubic-bezier(.2,1.2,.3,1) forwards, elephantWiggle 1.2s 1.2s ease-in-out 2; }
.finale-monkey { left:8%; top:2%; animation: monkeyDrop .9s .1s cubic-bezier(.2,1.3,.3,1) forwards, monkeySwing 1.25s 1.05s ease-in-out 2; }
.finale-giraffe { right:7%; top:0; animation: giraffePeek .9s .28s cubic-bezier(.2,1.2,.3,1) forwards, giraffeNod 1.2s 1.2s ease-in-out 2; }
.finale-butterflies { position:absolute; z-index:6; top:15%; left:50%; color:#fff; font-size:2rem; opacity:0; animation: butterflyFarewell 2.5s .7s ease-in-out forwards; }
.finale-leaves,.finale-confetti-layer { position:absolute; inset:0; overflow:hidden; pointer-events:none; }
.finale-leaf { position:absolute; top:-15vh; left:var(--leaf-start); font-size:clamp(1.5rem,4vw,3rem); filter:drop-shadow(0 5px 4px rgba(0,0,0,.2)); animation: leavesBlowAway var(--leaf-duration) var(--leaf-delay) cubic-bezier(.2,.65,.35,1) forwards; }
.finale-confetti { position:absolute; top:-10vh; left:var(--x); width:9px; height:16px; border-radius:3px; background:hsl(var(--hue) 86% 60%); opacity:0; animation: finaleConfetti 2.5s var(--delay) ease-out forwards; }
.success-card-reveal { animation: successReveal .75s cubic-bezier(.2,1,.3,1) both; }

@keyframes finaleGlow { from{transform:scale(.86);opacity:.65} to{transform:scale(1.12);opacity:1} }
@keyframes finaleCardPop { 0%{opacity:0;transform:translateY(50px) scale(.65) rotate(-5deg)} 70%{opacity:1;transform:translateY(-8px) scale(1.04) rotate(1deg)} 100%{opacity:1;transform:translateY(0) scale(1) rotate(0)} }
@keyframes pawBounce { 0%,100%{transform:translateY(0) rotate(0)} 50%{transform:translateY(-10px) rotate(10deg)} }
@keyframes goodbyePop { to{transform:scale(1)} }
@keyframes animalHelloLeft { from{opacity:0;transform:translate(-130px,80px) rotate(-25deg)} to{opacity:1;transform:translate(0,0) rotate(-5deg)} }
@keyframes animalHelloRight { from{opacity:0;transform:translate(130px,80px) rotate(25deg)} to{opacity:1;transform:translate(0,0) rotate(5deg)} }
@keyframes monkeyDrop { from{opacity:0;transform:translateY(-150px) rotate(-18deg)} to{opacity:1;transform:translateY(0) rotate(7deg)} }
@keyframes giraffePeek { from{opacity:0;transform:translateY(-145px) rotate(13deg)} to{opacity:1;transform:translateY(0) rotate(-3deg)} }
@keyframes animalWave { 0%,100%{transform:rotate(-5deg) translateY(0)} 50%{transform:rotate(8deg) translateY(-12px)} }
@keyframes elephantWiggle { 0%,100%{transform:rotate(5deg)} 50%{transform:rotate(-7deg) translateY(-8px)} }
@keyframes monkeySwing { 0%,100%{transform:rotate(7deg) translateX(0)} 50%{transform:rotate(-12deg) translateX(16px)} }
@keyframes giraffeNod { 0%,100%{transform:rotate(-3deg)} 50%{transform:rotate(8deg) translateY(8px)} }
@keyframes butterflyFarewell { 0%{opacity:0;transform:translate(-50%,80px) scale(.5)} 20%{opacity:1} 100%{opacity:0;transform:translate(40vw,-180px) scale(1.2) rotate(16deg)} }
@keyframes leavesBlowAway { 0%{opacity:0;transform:translate3d(-25vw,-5vh,0) rotate(0) scale(.7)} 12%{opacity:1} 100%{opacity:0;transform:translate3d(35vw,120vh,0) rotate(var(--leaf-spin)) scale(1.25)} }
@keyframes finaleConfetti { 0%{opacity:0;transform:translate3d(0,-5vh,0) rotate(0)} 12%{opacity:1} 100%{opacity:0;transform:translate3d(var(--drift),112vh,0) rotate(920deg)} }
@keyframes successReveal { from{opacity:0;transform:translateY(24px) scale(.96)} to{opacity:1;transform:translateY(0) scale(1)} }

@media(max-width:600px){
  .rsvp-finale{padding:10px}
  .finale-scene{min-height:500px}
  .finale-message-card{padding:28px 20px 25px;width:min(335px,82vw)}
  .finale-animal{font-size:4.1rem}
  .finale-lion{left:-2%;bottom:5%}.finale-elephant{right:-3%;bottom:5%}
  .finale-monkey{left:1%;top:5%}.finale-giraffe{right:1%;top:4%}
}
@media(prefers-reduced-motion:reduce){
  .rsvp-finale,.rsvp-finale *{animation-duration:.01ms!important;animation-delay:0ms!important}
}
