:root {
  color-scheme: light;
  --paper: #f8f4ec;
  --paper-soft: #fffdf8;
  --ink: #302b29;
  --muted: #756b63;
  --wine: #7a1f2b;
  --wine-deep: #4d1019;
  --gold: #bfa16b;
  --line: rgba(122, 31, 43, 0.18);
  --shadow: 0 24px 70px rgba(63, 42, 32, 0.16);
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(191, 161, 107, 0.11), transparent 26rem),
    linear-gradient(135deg, rgba(122, 31, 43, 0.035) 0 1px, transparent 1px 24px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.62), rgba(248, 244, 236, 0.8)),
    var(--paper);
  color: var(--ink);
  min-width: 320px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  mix-blend-mode: multiply;
  background-image:
    linear-gradient(rgba(100, 72, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 72, 42, 0.032) 1px, transparent 1px);
  background-size: 5px 7px, 9px 5px;
  z-index: 1;
}

img {
  display: block;
  max-width: 100%;
}

figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.page {
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.section {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 72px 22px;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 0 18px max(22px, env(safe-area-inset-bottom));
  color: #fff;
  isolation: isolate;
  background: #211915;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(25, 18, 16, 0.02) 0%, rgba(25, 18, 16, 0.1) 38%, rgba(25, 18, 16, 0.72) 100%),
    linear-gradient(90deg, rgba(25, 18, 16, 0.2), transparent 40%, rgba(25, 18, 16, 0.12));
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}

.cover-card {
  position: relative;
  width: min(100%, 420px);
  padding: 16px 16px 16px;
  border: 1px solid rgba(255, 244, 229, 0.64);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 250, 243, 0.91)),
    var(--paper-soft);
  text-align: center;
  color: var(--ink);
  box-shadow: 0 24px 74px rgba(18, 10, 8, 0.36);
  backdrop-filter: blur(8px);
}

.cover-card::before,
.cover-card::after {
  content: "";
  position: absolute;
  inset: 9px;
  pointer-events: none;
  border: 1px solid rgba(191, 161, 107, 0.42);
}

.cover-card::after {
  inset: 14px;
  border-color: rgba(181, 18, 32, 0.12);
}

.cover-top {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.2em;
}

.seal {
  display: inline-grid;
  place-items: center;
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  margin-bottom: 9px;
  border: 1px solid rgba(181, 18, 32, 0.72);
  background: #b51220;
  color: #fff7ec;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: 0 12px 28px rgba(181, 18, 32, 0.2);
}

.eyebrow {
  margin: 0 0 12px;
  font: 12px/1.3 "Inter", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 244, 229, 0.82);
}

.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(38px, 10.4vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 500;
  color: #b51220;
}

.cover-names {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: 0.08em;
}

.cover-names span {
  color: var(--gold);
  font-size: 15px;
  margin: 0 6px;
}

.cover-line {
  position: relative;
  z-index: 1;
  margin: 11px auto 0;
  width: min(100%, 330px);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
  letter-spacing: 0.03em;
}

.cover-info {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 11px auto 0;
  width: min(100%, 330px);
}

.cover-info div {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 12px;
  padding: 8px 11px;
  border: 1px solid rgba(181, 18, 32, 0.16);
  background: rgba(255, 255, 255, 0.42);
  text-align: left;
}

.cover-info span {
  color: #b51220;
  font-size: 15px;
  letter-spacing: 0.12em;
}

.cover-info strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.48;
  font-weight: 500;
}

.cover-host {
  position: relative;
  z-index: 1;
  margin: 11px 0 0;
  color: var(--wine);
  font-size: 16px;
  letter-spacing: 0.16em;
}

.scroll-hint {
  margin-top: 34px;
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent);
}

.music-toggle {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 76px;
  height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(122, 31, 43, 0.28);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.84);
  color: var(--wine);
  backdrop-filter: blur(12px);
  cursor: pointer;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
  font: 13px/1 "Inter", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.08em;
}

.music-toggle.is-playing {
  border-color: rgba(181, 18, 32, 0.56);
  background: rgba(122, 31, 43, 0.88);
  color: #fffaf3;
}

.invitation {
  text-align: center;
  padding-bottom: 46px;
}

.red-mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 22px;
  border: 1px solid rgba(178, 18, 32, 0.54);
  color: #b51220;
  font-size: 28px;
  background: rgba(255, 253, 248, 0.58);
}

.section-kicker {
  margin: 0 0 16px;
  color: var(--gold);
  font: 12px/1.4 "Inter", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.title-cn {
  margin: 0;
  color: var(--wine);
  font-size: clamp(30px, 9vw, 54px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: 0;
}

.names-line {
  margin: 22px auto 0;
  width: min(280px, 64vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.invite-text {
  width: min(100%, 560px);
  margin: 38px auto 0;
  color: var(--ink);
  font-size: clamp(17px, 4.45vw, 22px);
  line-height: 2.05;
  letter-spacing: 0.03em;
}

.invite-text p {
  margin: 0 0 16px;
}

.host {
  margin-top: 34px;
  color: var(--wine);
  font-size: 18px;
  letter-spacing: 0.12em;
}

.gallery {
  width: min(100%, 1040px);
  padding-top: 22px;
}

.photo-frame {
  overflow: hidden;
  background: #e8dfd2;
  box-shadow: var(--shadow);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-frame.tall {
  aspect-ratio: 3 / 4.55;
}

.photo-frame.wide {
  aspect-ratio: 16 / 10;
}

.photo-ceremony {
  position: relative;
  width: min(100%, 520px);
  margin: 0 auto;
}

.photo-note {
  position: relative;
  display: grid;
  gap: 8px;
  width: calc(100% - 34px);
  margin: -38px auto 0;
  padding: 18px 18px 20px;
  border: 1px solid rgba(122, 31, 43, 0.18);
  background: rgba(255, 253, 248, 0.9);
  text-align: center;
  box-shadow: 0 18px 48px rgba(88, 56, 42, 0.1);
}

.photo-note span {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.14em;
}

.photo-note strong {
  color: var(--wine);
  font-size: 26px;
  line-height: 1.1;
  font-weight: 500;
}

.caption-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}

.details {
  padding-top: 40px;
}

.calendar {
  position: relative;
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 34px 26px 36px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.68);
  box-shadow: 0 18px 58px rgba(88, 56, 42, 0.08);
}

.calendar::before,
.calendar::after {
  content: "";
  position: absolute;
  top: 18px;
  width: 44px;
  height: 1px;
  background: var(--gold);
}

.calendar::before {
  left: 22px;
}

.calendar::after {
  right: 22px;
}

.calendar-month {
  color: var(--gold);
  font: 13px/1 "Inter", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.26em;
  text-align: center;
}

.calendar-day {
  margin: 16px 0 10px;
  color: var(--wine);
  font-size: clamp(76px, 25vw, 128px);
  line-height: 0.88;
  text-align: center;
  font-weight: 500;
}

.calendar-meta {
  text-align: center;
  color: var(--ink);
  font-size: 17px;
  letter-spacing: 0.08em;
}

.venue {
  margin: 34px auto 0;
  text-align: center;
  color: var(--ink);
}

.venue h2 {
  margin: 0 0 12px;
  color: var(--wine);
  font-size: 26px;
  font-weight: 500;
}

.venue p {
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
}

.cta-band {
  text-align: center;
  padding-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid var(--wine);
  background: var(--wine);
  color: #fffaf3;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--wine-deep);
}

.button.secondary {
  background: transparent;
  color: var(--wine);
}

.footer {
  padding: 34px 22px 48px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.simple-page {
  min-height: 100svh;
  display: flex;
  justify-content: center;
  padding: 56px 18px;
}

.panel {
  width: min(100%, 560px);
  margin: auto;
  padding: 34px 24px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.76);
  box-shadow: var(--shadow);
}

.panel h1 {
  margin: 0;
  color: var(--wine);
  font-size: clamp(30px, 9vw, 46px);
  line-height: 1.1;
  font-weight: 500;
}

.panel-subtitle {
  margin: 16px 0 28px;
  color: var(--muted);
  line-height: 1.8;
}

.form-grid {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--wine);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(122, 31, 43, 0.24);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  padding: 0 14px;
  border-radius: 0;
  outline: none;
}

.field input:focus {
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(122, 31, 43, 0.09);
}

.form-message {
  min-height: 24px;
  color: var(--wine);
  line-height: 1.6;
}

.success {
  display: none;
  padding: 28px 0 8px;
  color: var(--wine);
  font-size: 22px;
  line-height: 1.7;
}

.success.is-visible {
  display: block;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.stat {
  border: 1px solid var(--line);
  padding: 18px 14px;
  text-align: center;
}

.stat strong {
  display: block;
  color: var(--wine);
  font-size: 34px;
  line-height: 1;
  font-weight: 500;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.guest-list {
  display: grid;
  gap: 10px;
}

.guest-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(122, 31, 43, 0.12);
}

.guest-row strong {
  color: var(--ink);
  font-weight: 500;
}

.guest-row span,
.guest-row small {
  color: var(--muted);
}

.guest-row small {
  display: block;
  margin-top: 6px;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 720px) {
  .panel {
    padding: 44px 40px;
  }
}

@media (max-width: 430px) {
  .section {
    padding: 58px 18px;
  }

  .hero-copy {
    padding: 0 20px 54px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .calendar {
    padding-inline: 18px;
  }

  .caption-row {
    font-size: 11px;
    letter-spacing: 0.12em;
  }
}

/* Approved red-gold dynamic invitation layout. */
body.invite-home {
  display: grid;
  justify-content: center;
  min-height: 100%;
  background: #1b0708;
  color: #fff2d5;
}

body.invite-home::before {
  display: none;
}

.heart-invite {
  position: relative;
  width: min(100vw, 430px);
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background: #a41018;
  box-shadow: 0 20px 90px rgba(0, 0, 0, 0.42);
}

.heart-cover,
.rsvp-panel {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.heart-cover {
  color: #fff2d5;
  background:
    radial-gradient(circle at 75% 18%, rgba(255, 215, 132, 0.14), transparent 10rem),
    radial-gradient(circle at 18% 76%, rgba(255, 176, 68, 0.12), transparent 9rem),
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent 22%),
    linear-gradient(180deg, #b8161d 0%, #9f1118 50%, #7b090e 100%);
}

.heart-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.2;
  background:
    repeating-linear-gradient(105deg, rgba(255, 242, 207, 0.08) 0 1px, transparent 1px 8px),
    radial-gradient(circle at 20% 15%, rgba(255, 238, 188, 0.24), transparent 2px),
    radial-gradient(circle at 68% 64%, rgba(255, 238, 188, 0.18), transparent 2px);
  background-size: auto, 74px 88px, 92px 106px;
  mix-blend-mode: screen;
}

.heart-cover::after {
  content: "love";
  position: absolute;
  left: -18px;
  top: 455px;
  z-index: -1;
  color: rgba(88, 6, 9, 0.23);
  font: italic 96px/1 Georgia, serif;
  letter-spacing: 0.04em;
  transform: rotate(-8deg);
}

.heart-topline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 18px 21px 0;
  color: rgba(255, 237, 188, 0.7);
  font: 12px/1.1 Georgia, "Times New Roman", serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.heart-topline span:nth-child(2) {
  color: rgba(255, 237, 188, 0.52);
  font-size: 11px;
  letter-spacing: 0.22em;
}

.heart-music {
  position: absolute;
  top: 46px;
  right: 19px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 224, 154, 0.36);
  border-radius: 99px;
  color: #ffe8ab;
  background: rgba(72, 5, 8, 0.52);
  box-shadow: 0 12px 28px rgba(45, 4, 5, 0.28);
  backdrop-filter: blur(6px);
  font-size: 13px;
}

.heart-music b {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #a41018;
  background: #ffe8ab;
  font-family: Arial, sans-serif;
  font-size: 13px;
  animation: heartSpin 6s linear infinite;
}

.heart-music.is-playing b {
  animation-duration: 1.4s;
}

.heart-photo {
  position: relative;
  width: min(82vw, 348px);
  margin: 38px auto 0;
  filter: drop-shadow(0 24px 30px rgba(53, 2, 4, 0.28));
  animation: heartIn 1000ms cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

.heart-crawler-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.heart-photo svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  transform-origin: 50% 50%;
  animation: heartPhotoBreath 8s ease-in-out infinite 1.2s;
}

.heart-photo image {
  transform-origin: 50% 50%;
}

.heart-edge {
  stroke-linejoin: round;
  stroke-linecap: round;
}

.heart-edge {
  fill: none;
  stroke: rgba(255, 231, 169, 0.96);
  stroke-width: 3.8;
  stroke-dasharray: 1150;
  stroke-dashoffset: 1150;
  animation: drawHeart 1500ms ease forwards 180ms;
}

.heart-copy {
  position: relative;
  z-index: 2;
  width: min(100% - 52px, 342px);
  margin: 32px auto 0;
  text-align: center;
}

.heart-names {
  margin: 0;
  color: rgba(255, 235, 187, 0.9);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  animation: heartRise 820ms ease both 520ms;
}

.heart-names em {
  margin: 0 8px;
  color: #e6c37a;
  font-style: normal;
}

.heart-title {
  margin: 24px 0 0;
  color: #ffe4a7;
  text-shadow: 0 2px 8px rgba(59, 4, 6, 0.28);
  font-size: 34px;
  line-height: 1.42;
  font-weight: 500;
  letter-spacing: 0.08em;
  animation: heartRise 850ms ease both 760ms;
}

.heart-title strong {
  display: block;
  color: #fff3c8;
  font-weight: 500;
  font-size: 38px;
}

.heart-divider {
  display: block;
  width: 84px;
  height: 1px;
  margin: 24px auto 0;
  background: linear-gradient(90deg, transparent, rgba(255, 227, 160, 0.88), transparent);
  animation: heartWiden 820ms ease both 980ms;
}

.heart-invite-line {
  margin: 18px 0 0;
  color: rgba(255, 241, 205, 0.88);
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.08em;
  animation: heartRise 850ms ease both 1040ms;
}

.heart-meta {
  margin: 14px 0 0;
  color: rgba(255, 241, 205, 0.84);
  font-size: 17px;
  line-height: 1.95;
  letter-spacing: 0.05em;
  animation: heartRise 850ms ease both 1140ms;
}

.heart-meta b {
  color: #fff0bd;
  font-weight: 500;
}

.heart-hosts {
  margin: 14px 0 0;
  color: rgba(255, 238, 190, 0.92);
  font-size: 16px;
  letter-spacing: 0.14em;
  animation: heartRise 850ms ease both 1280ms;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: max(34px, env(safe-area-inset-bottom));
  z-index: 3;
  display: block;
  width: 34px;
  height: 38px;
  color: rgba(255, 242, 206, 0.92);
  transform: translateX(-50%);
  filter: drop-shadow(0 2px 8px rgba(70, 4, 7, 0.36));
  animation:
    heartRise 700ms ease both 650ms,
    cueFloat 1.7s ease-in-out infinite 1.2s;
}

.scroll-cue::before,
.scroll-cue::after {
  content: "︿";
  position: absolute;
  left: 50%;
  width: auto;
  height: auto;
  border: 0;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  line-height: 1;
  transform: translateX(-50%);
  transform-origin: center;
}

.scroll-cue::before {
  top: 0;
  opacity: 0.82;
  font-size: 26px;
}

.scroll-cue::after {
  top: 13px;
  opacity: 0.42;
  font-size: 22px;
}

.heart-glow {
  position: absolute;
  right: 32px;
  bottom: 132px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 238, 139, 0.9), rgba(255, 139, 42, 0.4) 34%, transparent 68%);
  filter: blur(0.4px);
  opacity: 0.8;
  animation: heartComet 4.2s ease-in-out infinite;
}

.heart-sparkles,
.heart-petals {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.heart-sparkles i,
.heart-petals i {
  position: absolute;
  display: block;
  opacity: 0;
  transform: translate3d(0, 0, 0);
}

.heart-sparkles i {
  left: var(--x, 50%);
  top: var(--y, -6%);
  width: var(--s, 5px);
  height: var(--s, 5px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff9d4, #e8b84c 62%, rgba(219, 130, 28, 0.25));
  box-shadow: 0 0 10px rgba(255, 225, 119, 0.72);
  animation: heartGoldFall var(--d, 6s) linear infinite;
  animation-delay: var(--delay, 0s);
}

.heart-petals i {
  left: var(--x, 50%);
  top: -10%;
  width: var(--w, 8px);
  height: calc(var(--w, 8px) * 1.35);
  border-radius: 70% 30% 70% 30%;
  background: linear-gradient(135deg, #ffe39d, #c8892b);
  box-shadow: 0 0 9px rgba(255, 226, 146, 0.54);
  animation: heartPetalFall var(--d, 7s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.rsvp-panel {
  display: grid;
  align-items: center;
  padding: 58px 22px max(62px, env(safe-area-inset-bottom));
  color: #fff2d5;
  background:
    radial-gradient(circle at 50% 7%, rgba(255, 226, 158, 0.16), transparent 13rem),
    linear-gradient(180deg, #8f0d13 0%, #67070b 100%);
}

.rsvp-panel::before {
  content: "囍";
  position: absolute;
  right: -18px;
  top: 40px;
  color: rgba(255, 238, 190, 0.07);
  font-size: 170px;
  line-height: 1;
}

.rsvp-card {
  position: relative;
  z-index: 1;
  width: min(100%, 356px);
  margin: 0 auto;
  padding: 34px 24px 28px;
  border: 1px solid rgba(255, 224, 154, 0.46);
  background: rgba(86, 5, 8, 0.28);
  box-shadow: 0 22px 60px rgba(43, 4, 5, 0.25);
  text-align: center;
}

.rsvp-card::before {
  content: "";
  position: absolute;
  inset: 9px;
  pointer-events: none;
  border: 1px solid rgba(255, 244, 210, 0.22);
}

.rsvp-seal {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 16px;
  color: #a41018;
  background: #fff2d5;
  font-size: 27px;
  line-height: 1;
}

.rsvp-kicker {
  margin: 0;
  color: rgba(255, 233, 183, 0.78);
  font-size: 13px;
  letter-spacing: 0.28em;
}

.rsvp-card h2 {
  margin: 12px 0 0;
  color: #fff3c8;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.rsvp-note {
  margin: 16px auto 24px;
  max-width: 260px;
  color: rgba(255, 242, 213, 0.82);
  font-size: 15px;
  line-height: 1.8;
}

.rsvp-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.rsvp-form[hidden],
form[hidden] {
  display: none !important;
}

.rsvp-field {
  display: grid;
  gap: 8px;
  text-align: left;
}

.rsvp-field span {
  color: rgba(255, 238, 190, 0.92);
  font-size: 14px;
  letter-spacing: 0.12em;
}

.rsvp-field input {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(255, 224, 154, 0.36);
  border-radius: 0;
  padding: 0 13px;
  color: #fff8e8;
  background: rgba(45, 3, 5, 0.2);
  outline: none;
}

.rsvp-field input::placeholder {
  color: rgba(255, 238, 203, 0.45);
}

.rsvp-field input:focus {
  border-color: rgba(255, 232, 171, 0.78);
  box-shadow: 0 0 0 3px rgba(255, 224, 154, 0.12);
}

.rsvp-message {
  min-height: 20px;
  margin: 0;
  color: #ffe4a7;
  font-size: 13px;
  text-align: center;
}

.rsvp-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border: 1px solid rgba(255, 238, 190, 0.72);
  border-radius: 0;
  color: #7a090e;
  background: #fff0bd;
  font-size: 17px;
  letter-spacing: 0.16em;
}

.rsvp-success {
  position: relative;
  z-index: 1;
  display: none;
  margin-top: 22px;
  padding: 18px 14px;
  color: #fff3c8;
  border: 1px solid rgba(255, 224, 154, 0.36);
  background: rgba(45, 3, 5, 0.18);
  font-size: 17px;
  line-height: 1.7;
}

.rsvp-success.is-visible {
  display: block;
}

@keyframes heartRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heartIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes drawHeart {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes heartPhotoBreath {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
}

@keyframes heartWiden {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes heartSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes heartGoldFall {
  0% {
    opacity: 0;
    transform: translate3d(0, -20px, 0) scale(0.4);
  }
  14% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--dx, 18px), 420px, 0) scale(1.05);
  }
}

@keyframes heartPetalFall {
  0% {
    opacity: 0;
    transform: translate3d(0, -24px, 0) rotate(0deg);
  }
  18% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--dx, -32px), 620px, 0) rotate(230deg);
  }
}

@keyframes heartComet {
  0%, 100% {
    opacity: 0.2;
    transform: translate3d(0, 0, 0) scale(0.72);
  }
  45% {
    opacity: 0.92;
    transform: translate3d(-18px, -20px, 0) scale(1);
  }
}

@keyframes cueFloat {
  0%, 100% {
    opacity: 0.5;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 0.86;
    transform: translateX(-50%) translateY(-8px);
  }
}

@keyframes cueFade {
  to {
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-height: 760px) {
  .heart-photo {
    width: min(76vw, 316px);
    margin-top: 26px;
  }

  .heart-copy {
    margin-top: 22px;
  }

  .heart-title {
    margin-top: 18px;
    font-size: 29px;
  }

  .heart-title strong {
    font-size: 33px;
  }

  .heart-meta {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.85;
  }
}

@media (prefers-reduced-motion: reduce) {
  .heart-cover *,
  .heart-cover *::before,
  .heart-cover *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
