/* invitație nuntă — tipografie de tipar, o singură culoare de accent */
:root {
  --paper: #f7f4eb;
  --paper-2: #efeadc;
  --ink: #1b241d;
  --ink-2: #3d4b40;
  --muted: #616b58;
  --line: rgba(27, 36, 29, 0.16);
  --line-strong: rgba(27, 36, 29, 0.32);
  --accent: #3e5b49;
  --accent-soft: #e2e8db;
  --field: rgba(27, 36, 29, 0.03);
  --danger: #a5442f;
  --shadow: 0 1px 2px rgba(27, 36, 29, 0.04), 0 18px 40px -28px rgba(27, 36, 29, 0.35);
  color-scheme: light;
}

[data-theme='dark'] {
  --paper: #111610;
  --paper-2: #161d15;
  --ink: #efeade;
  --ink-2: #c6cfc2;
  --muted: #97a292;
  --line: rgba(239, 234, 224, 0.16);
  --line-strong: rgba(239, 234, 224, 0.3);
  --accent: #b3c9ab;
  --accent-soft: rgba(179, 201, 171, 0.12);
  --field: rgba(239, 234, 224, 0.05);
  --danger: #e6a08c;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 48px -30px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}



*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper-2);
  color: var(--ink);
  font-family: 'Karla', ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* fundal: o singură textură foarte discretă, fără imagini */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 50% 0%, rgba(62, 91, 73, 0.08), transparent 60%);
  z-index: 0;
}

.shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  padding: clamp(12px, 3vw, 40px);
}

.frame {
  position: relative;
  width: 100%;
  max-width: 620px;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: clamp(28px, 7vw, 64px) clamp(22px, 6vw, 56px) clamp(24px, 5vw, 48px);
}

.frame::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--line);
  pointer-events: none;
}

/* ---------------------------------- top ---------------------------------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
}

.monogram {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--ink-2);
}

.monogram span {
  color: var(--accent);
}

.theme {
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0.8;
  transition: border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.theme:hover,
.theme:focus-visible {
  border-color: var(--line-strong);
  color: var(--accent);
  opacity: 1;
}

.theme .icon-moon {
  display: none;
}

[data-theme='dark'] .theme .icon-sun {
  display: none;
}

[data-theme='dark'] .theme .icon-moon {
  display: block;
}

/* --------------------------------- names --------------------------------- */

main {
  display: block;
}

.kicker {
  margin: clamp(20px, 6vw, 40px) 0 0;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  text-align: center;
}

.names {
  margin: 0.15em 0 0.2em;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-optical-sizing: auto;
  font-size: clamp(52px, 15vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.015em;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--ink);
}

.names .amp {
  font-size: 0.38em;
  font-style: italic;
  color: var(--accent);
  margin: 0.22em 0 0.16em;
  line-height: 1;
}

.names--small {
  font-size: clamp(40px, 11vw, 66px);
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.14em;
}

.names--small .amp {
  font-size: 0.5em;
  margin: 0;
}

.date {
  margin: 0;
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.rule {
  display: flex;
  justify-content: center;
  color: var(--accent);
  opacity: 0.65;
  margin: clamp(20px, 5vw, 30px) 0;
}

.rule--end {
  margin-top: clamp(28px, 6vw, 44px);
}

.sprig {
  max-width: 100%;
}

/* -------------------------------- content -------------------------------- */

.greeting {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(21px, 5vw, 25px);
  font-weight: 400;
  margin: 0 0 0.35em;
}

.intro {
  margin: 0 0 1.9em;
  color: var(--ink-2);
  max-width: 34em;
}

.details {
  margin: 0 0 clamp(22px, 5vw, 32px);
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.detail {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.detail dt {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail dd {
  margin: 0;
  font-size: 16.5px;
  color: var(--ink);
}

.detail.is-pending dd {
  color: var(--muted);
  font-style: italic;
}

.venue {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.venue-address {
  font-size: 14.5px;
  color: var(--muted);
}

.venue-map {
  color: var(--accent);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.schedule {
  margin: 0 0 clamp(22px, 5vw, 32px);
  border-top: 1px solid var(--line);
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}

.schedule-row span:last-child {
  color: var(--muted);
}

.countdown {
  margin: 0 0 clamp(28px, 6vw, 40px);
  text-align: center;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.countdown-num {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 1.35em;
  color: var(--accent);
  margin-right: 0.15em;
}

/* --------------------------------- rsvp ---------------------------------- */

.rsvp {
  margin-top: clamp(30px, 7vw, 48px);
  padding-top: clamp(24px, 5vw, 36px);
  border-top: 1px solid var(--line-strong);
}

.rsvp h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(24px, 6vw, 30px);
  margin: 0 0 0.3em;
  letter-spacing: -0.01em;
}

.sub {
  margin: 0 0 1.4em;
  color: var(--ink-2);
  font-size: 15.5px;
}

.summary {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  margin: 0 0 1.4em;
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  font-size: 15px;
}

.summary-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.summary strong {
  font-weight: 600;
}

.summary-people {
  color: var(--ink-2);
}

.summary-edit {
  color: var(--muted);
  font-size: 13.5px;
}

.choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 0;
  padding: 0;
  margin: 0 0 1.4em;
}

.choice-opt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  font-size: 15.5px;
  text-align: center;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.choice-opt + .choice-opt {
  border-left: 0;
}

.choice-opt input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.choice-opt:has(input:checked) {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

.choice-opt:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.members {
  margin: 0 0 1.4em;
  border-top: 1px solid var(--line);
}

.members-hint {
  margin: 0.9em 0 1.1em;
  font-size: 14px;
  color: var(--muted);
}

.member {
  padding: 0 0 1.1em;
  margin: 0 0 1.1em;
  border-bottom: 1px solid var(--line);
}

.member-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.remove-person {
  margin-left: auto;
  font-family: inherit;
  font-size: 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  padding: 4px 2px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.remove-person:hover,
.remove-person:focus-visible {
  color: var(--danger);
}

.member-no {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 13px;
  font-style: italic;
  color: var(--accent);
  width: 18px;
}

.member-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.member-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.mini-field {
  display: grid;
  gap: 5px;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.field {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 12px 12px;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.field--mirror {
  background: transparent;
  border-style: dashed;
  color: var(--ink-2);
  cursor: default;
}

.field::placeholder {
  color: var(--muted);
  opacity: 1;
}

.field:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--paper);
}

select.field {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 49%, var(--muted) 50%), linear-gradient(-45deg, transparent 49%, var(--muted) 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.field-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}

.field-label .opt {
  text-transform: none;
  letter-spacing: 0;
  font-size: 12.5px;
}

textarea.field {
  resize: vertical;
  min-height: 84px;
  line-height: 1.5;
}

.submit {
  width: 100%;
  margin-top: 1.5em;
  min-height: 54px;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--paper);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.12s ease;
}

.submit:hover {
  opacity: 0.9;
}

.submit:active {
  transform: translateY(1px);
}

.submit[disabled] {
  opacity: 0.55;
  cursor: progress;
}

.form-status {
  margin: 0.9em 0 0;
  min-height: 1.2em;
  font-size: 14.5px;
  color: var(--muted);
}

.form-status.is-error {
  color: #a5442f;
}

[data-theme='dark'] .form-status.is-error {
  color: #e6a08c;
}

.form-status.is-ok {
  color: var(--accent);
  line-height: 1.5;
}

.status-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95em;
  letter-spacing: 0.14em;
  padding: 2px 7px;
  border: 1px solid currentColor;
  border-radius: 2px;
  white-space: nowrap;
}

.status-code-line {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-2);
}

.status-hint {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.add-person {
  width: 100%;
  margin: 2px 0 0;
  padding: 11px 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--accent);
  background: transparent;
  border: 1px dashed var(--line-strong);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.add-person:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.field-wide {
  margin-bottom: 14px;
}

.sent-note {
  margin: 0 0 1.2em;
  padding: 12px 14px;
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  font-size: 14.5px;
  color: var(--ink-2);
}

/* -------------------------------- closing -------------------------------- */

.closing {
  margin: 0;
  text-align: center;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 17px;
  color: var(--ink-2);
}

.closing-names {
  display: inline-block;
  margin-top: 0.25em;
  font-size: 21px;
  color: var(--ink);
}

.ics {
  margin: 18px 0 0;
  text-align: center;
  font-size: 14px;
}

.ics a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact {
  margin: 14px 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.contact a {
  color: var(--accent);
}

.foot {
  margin-top: clamp(28px, 6vw, 44px);
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

/* --------------------------------- misc ---------------------------------- */

.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;
}

a {
  color: var(--accent);
}

/* pagina de start / 404 */
.landing {
  text-align: center;
  padding-top: clamp(18px, 4vw, 28px);
  padding-bottom: clamp(32px, 7vw, 56px);
  display: flex;
  flex-direction: column;
  min-height: min(560px, 86svh);
}

.landing .top {
  justify-content: flex-end;
  margin-bottom: clamp(20px, 6vw, 44px);
}

.landing .monogram {
  font-size: 22px;
  margin: 0 0 0.6em;
}

.landing-copy {
  margin: 0 auto;
  max-width: 30em;
  color: var(--ink-2);
  font-size: 16px;
}

.landing-note {
  margin: 1em auto 0;
  color: var(--muted);
  font-size: 14px;
}

.landing .foot {
  margin-top: auto;
}

.landing .names {
  margin-bottom: 0.35em;
}

/* intrare, o singură secvență */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .kicker,
  .names,
  .date {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  }
  .names {
    animation-delay: 0.08s;
  }
  .date {
    animation-delay: 0.16s;
  }
  .rule {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) 0.24s both;
  }
}

@media (max-width: 420px) {
  .detail {
    grid-template-columns: 78px 1fr;
    gap: 12px;
  }
  .member-row {
    grid-template-columns: 1fr;
  }
  .frame::after {
    inset: 6px;
  }
}

/* -------------------------------- munți ---------------------------------- */

.mountains {
  margin-top: clamp(34px, 7vw, 52px);
  padding-top: clamp(22px, 5vw, 32px);
  border-top: 1px solid var(--line);
}

.mountains h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(21px, 5.4vw, 26px);
  margin: 0 0 0.25em;
  letter-spacing: -0.01em;
}

.mountains-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.mountain {
  display: block;
  padding: 14px 16px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.mountain-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.mountain-name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
}

.mountain-name:hover,
.mountain-name:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.mountain-meta {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

.mountain-note {
  display: block;
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

.mountains-foot {
  margin: 14px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

@media (min-width: 620px) {
  .mountains-list {
    grid-template-columns: 1fr 1fr;
  }
}

/* -------------------------------- disco ---------------------------------- */

.disco {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  pointer-events: none;
  z-index: 40;
  overflow: hidden;
  --wire: clamp(28px, 8vh, 96px);
}

body {
  transition: padding-bottom 0.45s ease;
}

.disco-rig {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* în repaus firul e strâns: globul atârnă chiar sub marginea de sus, fără să fie tăiat */
  transform: translateY(calc(var(--wire) * -1 + 12px));
  /* prima coborâre e lentă, ca globul să apară treptat */
  transition: transform 10s cubic-bezier(0.45, 0.05, 0.35, 1);
  will-change: transform;
}

.disco.is-hidden .disco-rig {
  transform: translateY(-165%);
}

/* după ce a coborât, mișcările redevin rapide */
.disco.is-settled .disco-rig,
.disco.is-on .disco-rig {
  transition-duration: 1.15s;
  transition-timing-function: cubic-bezier(0.18, 1.32, 0.36, 1);
}

.disco.is-on .disco-rig {
  transform: translateY(0);
}

/* la „nu pot veni" globul se retrage încet în tavan, după ce luminile s-au stins */
.disco.is-away .disco-rig {
  transform: translateY(-165%);
  transition-duration: 3s;
  transition-delay: 0.35s;
  transition-timing-function: cubic-bezier(0.45, 0, 0.35, 1);
}

.disco-wire {
  width: 1px;
  height: var(--wire);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.45));
}

.disco-ball {
  position: relative;
  width: clamp(84px, 22vw, 120px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #eef2ef, #98a29d 55%, #333a36 100%);
  box-shadow:
    0 0 22px rgba(255, 255, 255, 0.3),
    0 0 70px rgba(196, 222, 208, 0.2),
    inset 0 -12px 22px rgba(0, 0, 0, 0.4);
  transform-origin: 50% 0;
}

.disco-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}

.disco-cap {
  position: absolute;
  top: -5%;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 11%;
  border-radius: 2px 2px 3px 3px;
  background: linear-gradient(to bottom, #e4eae6, #9aa4a0 45%, #4d5652);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.disco-ball {
  animation: disco-swing 44s ease-in-out infinite;
}

.disco.is-on .disco-ball {
  animation-duration: 7s;
}

.disco-beams {
  position: absolute;
  inset: -25%;
  opacity: 0;
  transition: opacity 1s ease 0.35s;
  background: repeating-conic-gradient(
    from 0deg at 50% -12%,
    rgba(255, 255, 255, 0.13) 0deg 5deg,
    rgba(255, 255, 255, 0) 5deg 44deg,
    rgba(255, 150, 230, 0.12) 44deg 49deg,
    rgba(255, 255, 255, 0) 49deg 90deg
  );
  mix-blend-mode: screen;
  filter: blur(2px);
}

.disco.is-on .disco-beams,
.disco.is-hiding .disco-beams {
  animation: disco-spin 26s linear infinite;
}

.disco.is-on .disco-beams {
  opacity: 0.7;
}

/* stingerea pornește din starea curentă: razele continuă să se rotească cât se estompează */
.disco.is-hiding .disco-beams {
  opacity: 0;
  transition: opacity 1.1s ease;
}

.disco-lights {
  position: absolute;
  inset: -10%;
  opacity: 0;
  transition: opacity 1.2s ease 0.5s;
  background:
    radial-gradient(closest-side circle at 18% 14%, rgba(255, 62, 176, 0.42), rgba(255, 62, 176, 0) 72%),
    radial-gradient(closest-side circle at 82% 10%, rgba(72, 214, 255, 0.38), rgba(72, 214, 255, 0) 70%),
    radial-gradient(closest-side circle at 50% 96%, rgba(255, 196, 88, 0.32), rgba(255, 196, 88, 0) 72%),
    radial-gradient(closest-side circle at 8% 78%, rgba(150, 108, 255, 0.3), rgba(150, 108, 255, 0) 70%);
  mix-blend-mode: screen;
  filter: blur(10px) saturate(1.15);
}

.disco.is-on .disco-lights,
.disco.is-hiding .disco-lights {
  animation: disco-hue 14s linear infinite;
}

.disco.is-on .disco-lights {
  opacity: 0.62;
}

.disco.is-hiding .disco-lights {
  opacity: 0;
  transition: opacity 1.2s ease;
}

.dancer-stage {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(96px, 22vh, 168px);
  z-index: 41;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.9s ease 0.25s;
  /* podeaua luminată pe care stau dansatorii */
  background:
    radial-gradient(ellipse 42% 100% at 50% 100%, rgba(186, 208, 192, 0.16), rgba(186, 208, 192, 0) 72%),
    linear-gradient(to top, rgba(8, 12, 9, 0.55), rgba(8, 12, 9, 0) 85%);
}

body.disco-on .dancer-stage {
  opacity: 1;
}

.dancer-gif {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 4px);
  width: clamp(104px, 27vw, 156px);
  height: auto;
  opacity: 0;
  transform: translate(-50%, 115%);
  transition:
    transform 0.95s cubic-bezier(0.2, 1.18, 0.4, 1),
    opacity 0.7s ease;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
  will-change: transform;
}

body.disco-on .dancer-gif {
  opacity: 0.98;
  transform: translate(-50%, 0);
}

body.disco-on {
  padding-bottom: clamp(96px, 24vw, 150px);
}

/* „nu pot veni" — inimioare care urcă de jos */
.farewell {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 41;
  pointer-events: none;
  overflow: hidden;
}

.farewell-heart {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: clamp(26px, 7vw, 38px);
  color: #d9537a;
  opacity: 0;
  filter: drop-shadow(0 6px 16px rgba(217, 83, 122, 0.35));
  transform: translate(-50%, 12vh);
}

.farewell-heart svg {
  display: block;
  width: 100%;
  height: auto;
}

.farewell-heart--b {
  width: clamp(18px, 5vw, 26px);
  color: #e59aae;
  left: 41%;
}

.farewell.is-rising .farewell-heart--a {
  animation: heart-float 9s cubic-bezier(0.28, 0.12, 0.62, 1) forwards;
}

.farewell.is-rising .farewell-heart--b {
  animation: heart-float 10.5s cubic-bezier(0.28, 0.12, 0.62, 1) 1.4s forwards;
}

@keyframes heart-float {
  0% {
    transform: translate(-50%, 12vh) scale(0.85) rotate(-6deg);
    opacity: 0;
  }
  8% {
    opacity: 0.95;
  }
  50% {
    transform: translate(calc(-50% + 18px), -40vh) scale(1) rotate(6deg);
  }
  82% {
    opacity: 0.7;
  }
  100% {
    transform: translate(calc(-50% - 14px), -108vh) scale(1.06) rotate(-4deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .farewell {
    display: none;
  }
}

@keyframes disco-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes disco-swing {
  0%,
  100% {
    transform: rotate(-2.2deg);
  }
  50% {
    transform: rotate(2.2deg);
  }
}

@keyframes disco-hue {
  to {
    filter: blur(10px) saturate(1.15) hue-rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .disco-rig {
    transition: none;
  }
  .disco.is-on .disco-ball,
  .disco.is-on .disco-beams,
  .disco.is-on .disco-lights {
    animation: none;
  }
}

@media print {
  .disco {
    display: none !important;
  }
}

@media print {
  body::before,
  .theme,
  .rsvp form,
  .ics,
  .foot {
    display: none !important;
  }
  .frame {
    box-shadow: none;
    max-width: none;
  }
  body {
    background: #fff;
  }
}
