:root {
  --ink: #3B3552;
  --ink-soft: #6B6385;
  --gold: #C9A24A;
  --blush: #F4C9D3;
  --lilac: #D9CCF2;
  --paper: #FFFDFC;

  /* setate din main.js */
  --sky-a: #CFE2F5;
  --sky-b: #FBE1E6;
  --night: 0;
  --fx: 0px;        /* poziția și mărimea Leei */
  --fy: 0px;
  --fw: 200px;
  --fh: 238px;
  --lw: 360px;      /* lățimea balonului de text */

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --hand: "Caveat", "Segoe Print", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* în poveste pagina nu se derulează: fiecare gest mută o scenă (main.js) */
html.story, html.story body { overflow: hidden; height: 100%; overscroll-behavior: none; }
html.story .stage { touch-action: none; }
html.recap-mode { overscroll-behavior-y: none; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem);
  line-height: 1.6;
  background: var(--sky-b);
  overflow-x: hidden;
}

/* ---------- Cerul ---------- */
.sky {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--sky-a) 0%, var(--sky-b) 100%);
}
.stars { position: absolute; inset: 0; opacity: var(--night); will-change: transform; }
.star {
  position: absolute; border-radius: 50%;
  background: #FFF8E1;
  box-shadow: 0 0 6px 1px rgba(255, 248, 225, .7);
  animation: twinkle 3s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .25; } to { opacity: 1; } }
.clouds { position: absolute; inset: 0; opacity: calc(1 - var(--night) * .7); }
.cloud { position: absolute; left: 0; top: 0; will-change: transform; }
.cloud svg { display: block; width: 100%; height: auto; }

/* ---------- Scena fixă ---------- */
.stage { position: fixed; inset: 0; z-index: 2; pointer-events: none; transition: opacity .8s ease, visibility .8s; }
html.recap-mode .stage { opacity: 0; visibility: hidden; }
.stage > * { pointer-events: none; }
.scenery { position: absolute; inset: 0; overflow: hidden; }
.scenery > * { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; }

.moon { width: clamp(44px, 7vw, 64px); height: auto; filter: drop-shadow(0 0 14px rgba(255, 243, 200, .7)); }
.shooting {
  width: 140px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0));
  box-shadow: 0 0 8px rgba(255, 255, 255, .8);
  transform-origin: 0 50%;
}
.count-stars { inset: 0; width: 100%; height: 100%; }
.count-stars span {
  position: absolute; left: 0; top: 0;
  font-family: var(--hand); font-weight: 700; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  color: #FFE9A8; text-shadow: 0 0 10px rgba(255, 233, 168, .8);
}
.village { width: min(600px, 112vw); height: auto; left: 50%; top: auto; bottom: -2px; transform-origin: 50% 100%; overflow: visible; }
.rise-hearts, .feathers, .burst, .love-hearts, .nas-hearts, .name-letters,
.bokeh, .balloons, .confetti, .notes { inset: 0; width: 100%; height: 100%; }
/* containere ale căror elemente se afișează individual */
.rise-hearts, .feathers, .burst, .love-hearts, .nas-hearts, .name-letters,
.balloons, .confetti, .notes, .count-stars { opacity: 1; }
.rise-hearts > *, .feathers > *, .burst > *, .love-hearts > *, .nas-hearts > *,
.name-letters > *, .balloons > *, .confetti > *, .notes > *, .count-stars > * { opacity: 0; visibility: hidden; }
.rise-hearts > *, .feathers > *, .burst > *, .love-hearts > *, .nas-hearts > *,
.name-letters > *, .bokeh > *, .balloons > *, .confetti > *, .notes > * { position: absolute; left: 0; top: 0; }
.heart { width: 26px; height: auto; }
.feather { width: 22px; height: auto; }
.name-letters span {
  font-family: var(--hand); font-weight: 700; font-size: clamp(2.2rem, 1.8rem + 1.6vw, 3.2rem); line-height: 1;
  color: #FFE29A; text-shadow: 0 0 14px rgba(255, 226, 154, .9), 0 0 2px #fff;
}
.flash {
  inset: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 50% calc(var(--fy) + var(--fh) * .45), #fff 0%, rgba(255, 252, 240, .95) 30%, rgba(255, 246, 225, 0) 75%);
}
.burst span, .halo-sparks span {
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  background: #F2D27E;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.halo-sparks { inset: 0; width: 100%; height: 100%; }
.halo-sparks span { position: absolute; left: 0; top: 0; animation: twinkle 1.4s ease-in-out infinite alternate; }
.dove { width: clamp(70px, 12vw, 110px); height: auto; filter: drop-shadow(0 8px 10px rgba(59, 53, 82, .15)); }
.dove-wing { transform-origin: 62px 38px; animation: dove-flap .35s ease-in-out infinite alternate; }
@keyframes dove-flap { from { transform: rotate(-6deg); } to { transform: scaleY(-.6) rotate(4deg); } }
.church { width: min(230px, 56vw); height: auto; top: auto; bottom: 0; filter: drop-shadow(0 -6px 20px rgba(255, 255, 255, .5)); }
.rays {
  width: 520px; height: 520px; margin: -260px 0 0 -260px;
  background: repeating-conic-gradient(rgba(255, 236, 170, .55) 0deg 7deg, rgba(255, 236, 170, 0) 7deg 20deg);
  -webkit-mask: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .6) 30%, transparent 68%);
          mask: radial-gradient(circle, #000 0%, rgba(0, 0, 0, .6) 30%, transparent 68%);
  border-radius: 50%;
}
.garland { left: 0; top: 0; width: 100%; height: 90px; }
.garland svg { display: block; width: 100%; height: 90px; }
.bulb {
  position: absolute; width: 12px; height: 16px; margin: -2px 0 0 -6px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: #7A7392;
  transition: background .3s ease, box-shadow .3s ease;
}
.bulb.on { background: var(--c); box-shadow: 0 0 12px 3px var(--c); }
.garland.party .bulb.on { animation: blink .9s ease-in-out infinite alternate; animation-delay: var(--d); }
@keyframes blink { from { opacity: 1; } to { opacity: .35; box-shadow: 0 0 4px 1px var(--c); } }
.balloon { width: clamp(46px, 7vw, 64px); height: auto; }
.bokeh span {
  width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  border-radius: 50%;
  background: radial-gradient(circle, var(--c) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: .7;
  animation: pulse 2.6s ease-in-out infinite alternate; animation-delay: var(--d);
}
@keyframes pulse { from { transform: scale(.8); opacity: .35; } to { transform: scale(1.15); opacity: .8; } }
.confetti i { display: block; width: 8px; height: 13px; border-radius: 2px; }
.notes span {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); line-height: 1;
  color: #fff; text-shadow: 0 0 10px rgba(255, 255, 255, .8);
}

/* ---------- Leea ---------- */
.figure {
  position: absolute; z-index: 3;
  left: var(--fx); top: var(--fy); width: var(--fw);
  padding: 0; border: 0; background: none; cursor: pointer;
  pointer-events: auto !important;
  -webkit-tap-highlight-color: transparent;
}
.figure:focus-visible { outline: 3px dashed var(--gold); outline-offset: 4px; border-radius: 30%; }
.figure-enter, .figure-float, .figure-tilt { display: block; }
.figure-enter { opacity: 0; }
.figure.arrived .figure-enter { animation: descend 1.8s cubic-bezier(.2, .9, .3, 1) forwards; }
@keyframes descend {
  0%   { opacity: 0; transform: translateY(-45vh) scale(.55) rotate(-8deg); }
  55%  { opacity: 1; }
  80%  { transform: translateY(10px) scale(1.02) rotate(2deg); }
  100% { opacity: 1; transform: none; }
}
.figure-float { animation: bob 3.2s ease-in-out infinite; }
.figure-tilt { transform-origin: 50% 80%; }
.figure svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 10px 14px rgba(59, 53, 82, .18)); }
.figure.dance .figure-float { animation: dance .45s ease-in-out infinite alternate; }
@keyframes dance { from { transform: translateY(0) rotate(-7deg); } to { transform: translateY(-10px) rotate(7deg); } }
.figure svg { transform-origin: 50% 85%; }
.figure.rock svg { animation: rock 2.4s ease-in-out infinite; }
.figure.fuss svg { animation: rock .55s ease-in-out infinite; }
@keyframes rock { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.figure.peek .figure-float { animation: wiggle .7s ease-in-out 1, bob 3.2s ease-in-out .7s infinite; }
.figure.wiggle .figure-float { animation: wiggle .6s ease-in-out, bob 3.2s ease-in-out .6s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }

.angel-g, .baby-g, .cradle-g, .halo-g, .halo-glow { transform-box: view-box; }
.angel-g, .baby-g { transform-origin: 80px 105px; }
.baby-g, .cradle-g { opacity: 0; }
.halo-glow { transform-origin: 80px 20px; }

.wing { transform-origin: 74px 98px; animation: flap .5s ease-in-out infinite alternate; }
.figure.hurry .wing { animation-duration: .22s; }
@keyframes flap { from { transform: rotate(10deg); } to { transform: rotate(-14deg); } }

.figure.waving .arm-wave { transform-box: fill-box; transform-origin: 50% 90%; animation: wave .5s ease-in-out 4 alternate; }
@keyframes wave { from { transform: rotate(-25deg); } to { transform: rotate(-80deg); } }

.halo { animation: halo 4s ease-in-out infinite; }
@keyframes halo { 0%, 100% { stroke: #D9B45A; } 50% { stroke: #F2D27E; } }

.front-cloud { position: absolute; z-index: 3; left: 0; top: 0; width: calc(var(--fw) * 1.7); opacity: 0; will-change: transform; filter: drop-shadow(0 10px 16px rgba(30, 30, 70, .25)); }
.front-cloud svg { display: block; width: 100%; height: auto; }

/* ---------- Textul poveștii: un singur balon vizibil ---------- */
.lines {
  position: absolute; z-index: 4;
  left: calc(50% - var(--lw) / 2); width: var(--lw);
  top: calc(var(--fy) + var(--fh) + 14px);
}
.line {
  position: absolute; left: 0; right: 0; top: 0;
  padding: .9rem 1.2rem 1rem;
  background: #fff;
  border-radius: 1.75rem;
  box-shadow: 0 14px 30px -12px rgba(59, 53, 82, .35);
  font-family: var(--hand);
  font-weight: 600;
  font-size: clamp(2.15rem, 1.75rem + 1.3vw, 2.8rem);
  line-height: 1.08;
  text-align: center;
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
}
.line::after {
  content: ""; position: absolute; top: -9px; left: 50%; margin-left: -10px;
  border: 10px solid transparent; border-bottom-color: #fff; border-top: 0;
}
.line.live { pointer-events: auto; }
.line p { margin: 0; }
/* efectul de scris de mână: fiecare literă apare pe rând */
.ch { opacity: 0; }
.ch.on { opacity: 1; animation: ink .45s ease-out; }
@keyframes ink {
  from { opacity: 0; color: #9C8FCF; text-shadow: 0 0 8px rgba(156, 143, 207, .9); }
  to { opacity: 1; }
}
.line .link, .line .countdown { transition: opacity .5s ease; }
.line:not(.written) .link, .line:not(.written) .countdown { opacity: 0; }

.quill {
  position: absolute; z-index: 5; left: 0; top: 0;
  width: 34px; height: 34px;
  opacity: 0; transition: opacity .3s ease;
  filter: drop-shadow(0 3px 4px rgba(59, 53, 82, .25));
}
.quill.on { opacity: 1; }

.fact {
  display: block; margin: .35em 0;
  font-family: var(--display); font-weight: 600;
  font-size: .5em; line-height: 1.35;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 24;
}
.line .link { font-size: .48em; }
/* numele părinților și nașilor, scoase în evidență în poveste */
.hl {
  font-family: var(--display); font-weight: 650;
  font-size: .78em; line-height: 1.2;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72;
  color: var(--ink);
  white-space: nowrap;
}
.hl-block { display: block; margin: .3em 0 .2em; font-size: .86em; white-space: normal; }
.who {
  display: grid; grid-template-rows: auto auto; grid-auto-flow: column; grid-auto-columns: 1fr;
  column-gap: .6em; align-items: start;
  margin-top: .4em; padding-top: .4em; border-top: 1px solid #EEE6F6;
}
.who-role { display: block; font-size: .62em; color: var(--ink-soft); }
.who .hl-block { margin: 0; font-size: .74em; text-wrap: balance; }

.link {
  display: inline-block; margin-top: .2rem;
  font-family: var(--display); font-style: italic;
  color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--gold);
  text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.link:hover { color: var(--ink-soft); }
.link:focus-visible, .btn:focus-visible, .skip:focus-visible { outline: 3px dashed var(--gold); outline-offset: 3px; }
.link[hidden] { display: none; }

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: .25rem; margin-top: .6rem; }
.countdown > div { display: flex; flex-direction: column; align-items: center; }
.cd-num {
  font-family: var(--display);
  font-size: clamp(1.7rem, 1.3rem + 2vw, 2.4rem); font-weight: 600; line-height: 1.1;
  font-variant-numeric: tabular-nums;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144;
}
.cd-lbl { font-size: .62em; color: var(--ink-soft); }

/* ---------- „Mai departe” ---------- */
.next {
  position: absolute; z-index: 6; left: 50%; bottom: max(14px, env(safe-area-inset-bottom));
  transform: translate(-50%, 8px);
  display: inline-flex; align-items: center; gap: .4rem;
  min-width: 48px; min-height: 48px; padding: 0 .9rem;
  font: inherit; font-size: 1rem; font-weight: 600; color: var(--ink); white-space: nowrap;
  background: rgba(255, 255, 255, .85); border: 0; border-radius: 999px;
  box-shadow: 0 10px 24px -12px rgba(59, 53, 82, .5);
  cursor: pointer; pointer-events: none !important;
  opacity: 0; transition: opacity .5s ease, transform .5s ease;
  -webkit-tap-highlight-color: transparent;
}
.next.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto !important; }
.next-arrow { width: 22px; height: 22px; animation: nudge 1.4s ease-in-out infinite; }
.next-label { display: none; }
.next.cta { padding: 0 1.3rem; background: var(--ink); color: #fff; }
.next.cta .next-label { display: inline; }
.next.cta .next-arrow { display: none; }
.next:focus-visible { outline: 3px dashed var(--gold); outline-offset: 3px; }
@keyframes nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }

/* ---------- Rezumat ---------- */
.recap {
  position: relative; z-index: 3;
  display: none;
  min-height: 100vh; min-height: 100svh;
  flex-direction: column; align-items: center; gap: 4.5rem;
  padding: 4.5rem 1.1rem 3rem;
}
html.recap-mode .recap { display: flex; animation: rise .8s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.card {
  position: relative; width: 100%; max-width: 30rem;
  padding: 2.5rem 1.75rem 2.25rem;
  background: var(--paper);
  border-radius: 2.5rem;
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .55);
  text-align: center;
}
.card::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: -50px; height: 110px;
  background:
    radial-gradient(circle at 12% 78px, var(--paper) 30px, transparent 31px),
    radial-gradient(circle at 31% 62px, var(--paper) 40px, transparent 41px),
    radial-gradient(circle at 50% 52px, var(--paper) 48px, transparent 49px),
    radial-gradient(circle at 69% 62px, var(--paper) 40px, transparent 41px),
    radial-gradient(circle at 88% 78px, var(--paper) 30px, transparent 31px);
}
.card > * { position: relative; }
.card-pre { margin: 0; font-family: var(--hand); font-size: 1.8rem; color: var(--ink-soft); line-height: 1; }
.card-name {
  margin: 0 0 1rem; font-weight: 600; line-height: 1;
  font-size: clamp(3.6rem, 2.6rem + 6vw, 5.5rem);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.card-block { padding: 1.1rem 0; border-top: 1px solid #EEE6F6; }
.card-block h2 {
  margin: 0 0 .35rem; font-family: var(--hand); font-weight: 700;
  font-size: 1.7rem; line-height: 1.1; color: var(--ink-soft);
}
.card-block p { margin: 0; }
/* nașii și părinții: cele mai vizibile nume de pe cartonaș, după Leea */
.people { padding: 1.6rem 0 1.4rem; }
.people p { display: flex; flex-direction: column; align-items: center; margin: 0; }
.people p + p { margin-top: 1.1rem; }
.people p + p::before {
  content: ""; width: 14px; height: 13px; margin-bottom: 1rem;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21C5 15 1 11 1 6.5 1 3 3.6 1 6.5 1c2.1 0 4.1 1.2 5.5 3 1.4-1.8 3.4-3 5.5-3C20.4 1 23 3 23 6.5 23 11 19 15 12 21Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21C5 15 1 11 1 6.5 1 3 3.6 1 6.5 1c2.1 0 4.1 1.2 5.5 3 1.4-1.8 3.4-3 5.5-3C20.4 1 23 3 23 6.5 23 11 19 15 12 21Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.role { font-family: var(--hand); font-size: 1.6rem; line-height: 1.1; color: var(--ink-soft); }
.names {
  font-weight: 600;
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.25rem);
  line-height: 1.15;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 96;
  color: var(--ink);
}
.deadline { margin: .5rem 0 0; font-style: italic; color: var(--ink-soft); }
.deadline[hidden] { display: none; }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.25rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .7rem 1.4rem;
  font: inherit; font-size: 1rem; font-weight: 500; color: var(--ink);
  background: #fff; border: 2px solid var(--lilac); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.btn:hover { border-color: var(--ink-soft); }
.btn-main { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-main:hover { background: #4D4669; }
.btn[hidden] { display: none; }

.skip {
  position: fixed; z-index: 6;
  right: max(.75rem, env(safe-area-inset-right)); bottom: max(.75rem, env(safe-area-inset-bottom));
  padding: .45rem .9rem;
  font-size: .85rem; color: var(--ink); text-decoration: none;
  background: rgba(255, 255, 255, .75);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity .4s ease;
}
.skip.gone { opacity: 0; pointer-events: none; }
.skip[hidden] { display: none; }

.btn-quiet { margin-top: 1rem; }

/* ---------- Formularul de confirmare ---------- */
.rsvp-title {
  margin: 0 0 .25rem; font-family: var(--hand); font-weight: 700;
  font-size: clamp(2.2rem, 1.8rem + 1.5vw, 2.8rem); line-height: 1; color: var(--ink);
}
.rsvp { display: grid; gap: 1.1rem; margin-top: 1.25rem; text-align: left; }
.rsvp[hidden], .thanks[hidden], .contact[hidden] { display: none; }
.field { display: grid; gap: .35rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span:not(.stepper), .field legend { font-family: var(--hand); font-size: 1.45rem; line-height: 1.1; color: var(--ink-soft); padding: 0; }
.field em { font-style: normal; font-size: .8em; }
.rsvp input[type=text], .rsvp textarea, .stepper input {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .75rem .9rem; min-height: 48px;
  background: #fff; border: 2px solid #E6DCF4; border-radius: 1rem;
  transition: border-color .2s ease;
}
.rsvp textarea { resize: vertical; min-height: 88px; }
.rsvp input:focus, .rsvp textarea:focus { outline: none; border-color: var(--ink-soft); }
.rsvp input[aria-invalid=true] { border-color: #C9637A; }
.choice { gap: .5rem; }
.choice label { display: flex; align-items: center; gap: .65rem; min-height: 48px; padding: .4rem .9rem; border: 2px solid #E6DCF4; border-radius: 1rem; cursor: pointer; }
.choice label:has(input:checked) { border-color: var(--ink); background: #F8F4FD; }
.choice input { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; }
.counts { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.counts[hidden] { display: none; }
.stepper { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: .35rem; }
.stepper input { text-align: center; padding: .6rem .2rem; font-weight: 600; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper button {
  width: 44px; height: 44px; font: inherit; font-size: 1.4rem; line-height: 1; color: var(--ink);
  background: #F3EEFA; border: 0; border-radius: 50%; cursor: pointer;
}
.stepper button:focus-visible { outline: 3px dashed var(--gold); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; min-height: 1.2em; font-size: .95rem; color: #A34A60; text-align: center; }
.form-msg:empty { display: none; }
.rsvp .btn-main { width: 100%; }
.rsvp .btn-main[disabled] { opacity: .6; cursor: progress; }
.thanks { padding: 1.5rem 0 .5rem; }
.thanks-title { margin: 0; font-family: var(--hand); font-weight: 700; font-size: 2.2rem; line-height: 1.1; }
.thanks-text { margin: .5rem 0 1rem; }
button.link { background: none; border: 0; padding: 0; cursor: pointer; font-size: 1rem; }
.contact { margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid #EEE6F6; }
.contact p { margin: 0 0 .6rem; color: var(--ink-soft); font-size: .95rem; }
.contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.contact .btn { min-height: 44px; padding: .5rem 1.1rem; font-size: .95rem; }

/* scântei la atingere */
.spark {
  position: fixed; z-index: 30; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  background: #F2D27E;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: spark .8s ease-out forwards;
}
@keyframes spark {
  from { transform: translate(0, 0) scale(1) rotate(0); opacity: 1; }
  to { transform: translate(var(--dx), var(--dy)) scale(.2) rotate(140deg); opacity: 0; }
}

/* ---------- Mișcare redusă ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .figure-enter { opacity: 1; }
  .ch { opacity: 1; }
}
