:root {
  color-scheme: light;
  --ink: #2d2422;
  --muted: #7b6760;
  --paper: #fff8ef;
  --paper-deep: #f4dfce;
  --blush: #d79585;
  --wine: #612d38;
  --olive: #6e7650;
  --gold: #b9833d;
  --soft-gold: #e6c783;
  --shadow: 0 26px 70px rgba(61, 36, 29, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f7ece3;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  font-family: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 248, 239, 0.75), rgba(244, 219, 205, 0.6)),
    url("assets/wedding-paper-bg.png") center / cover fixed;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.invite-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.seal-screen,
.reveal-stage {
  min-height: 100vh;
  min-height: 100svh;
}

.seal-screen {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 16%, rgba(255, 255, 255, 0.86), transparent 30%),
    radial-gradient(circle at 78% 32%, rgba(214, 170, 131, 0.42), transparent 18%),
    linear-gradient(140deg, rgba(255, 246, 235, 0.96), rgba(225, 183, 164, 0.88));
  transition: opacity 2400ms ease, visibility 2400ms ease, transform 2400ms ease;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(3px);
  opacity: 0.48;
}

.ambient-one {
  width: 44vmin;
  height: 44vmin;
  left: -12vmin;
  bottom: 8vmin;
  background: rgba(185, 131, 61, 0.3);
}

.ambient-two {
  width: 36vmin;
  height: 36vmin;
  right: -10vmin;
  top: 12vmin;
  background: rgba(97, 45, 56, 0.18);
}

.envelope {
  position: absolute;
  width: min(78vw, 560px);
  aspect-ratio: 1.45 / 1;
  transform: translateY(-24px);
  filter: drop-shadow(0 34px 52px rgba(67, 41, 35, 0.22));
}

.envelope-body,
.envelope-flap {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(150, 105, 85, 0.22);
  background: linear-gradient(135deg, #fffaf3, #ecd0bf);
}

.envelope-body {
  clip-path: polygon(0 18%, 50% 58%, 100% 18%, 100% 100%, 0 100%);
}

.envelope-flap {
  transform-origin: top;
  clip-path: polygon(0 0, 100% 0, 50% 64%);
  background: linear-gradient(180deg, #fffaf4, #e7c2b0);
  transition: transform 2800ms cubic-bezier(0.18, 0.8, 0.18, 1);
}

.wax-shadow {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 98px;
  height: 98px;
  border-radius: 999px;
  background: rgba(159, 123, 63, 0.2);
  transform: translate(-50%, -50%);
  filter: blur(12px);
}

.seal-button {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(128px, 29vw, 178px);
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #b18835;
  background:
    radial-gradient(circle at 30% 22%, #ffffff 0 18%, transparent 34%),
    radial-gradient(circle at 68% 78%, rgba(232, 206, 143, 0.28), transparent 34%),
    radial-gradient(circle at 50% 50%, #fffefb 0 48%, #f8f0d8 67%, #d7ad55 100%);
  box-shadow:
    inset 0 5px 20px rgba(255, 255, 255, 0.92),
    inset 0 -10px 18px rgba(175, 132, 45, 0.12),
    0 0 0 1px rgba(185, 131, 61, 0.48),
    0 0 0 7px rgba(255, 255, 255, 0.36),
    0 0 34px rgba(225, 181, 86, 0.42),
    0 26px 46px rgba(118, 82, 43, 0.2);
  transition: transform 320ms ease, box-shadow 320ms ease;
}

.seal-button::before {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(187, 142, 48, 0.58);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 9px rgba(255, 255, 255, 0.46),
    inset 0 0 0 11px rgba(210, 171, 82, 0.16);
}

.seal-button::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 244, 198, 0.9) 0 3px, transparent 4px),
    radial-gradient(circle at 90% 52%, rgba(255, 244, 198, 0.85) 0 2px, transparent 3px),
    radial-gradient(circle at 14% 74%, rgba(255, 244, 198, 0.8) 0 2px, transparent 3px);
  animation: jewelOrbit 6s linear infinite;
  pointer-events: none;
}

.seal-button:focus-visible,
.primary-action:focus-visible,
.ghost-action:focus-visible {
  outline: 3px solid rgba(97, 45, 56, 0.42);
  outline-offset: 5px;
}

.seal-button:hover {
  transform: translateY(-4px) scale(1.035);
  box-shadow:
    inset 0 4px 18px rgba(255, 255, 255, 0.82),
    inset 0 -10px 18px rgba(175, 132, 45, 0.14),
    0 0 0 1px rgba(185, 131, 61, 0.52),
    0 0 0 8px rgba(255, 255, 255, 0.42),
    0 0 46px rgba(225, 181, 86, 0.58),
    0 32px 54px rgba(118, 82, 43, 0.26);
}

.seal-mark {
  position: absolute;
  inset: 26px 30px 38px;
  display: block;
  font-family: "Great Vibes", "Parisienne", cursive;
  font-size: clamp(3rem, 8vw, 4.35rem);
  letter-spacing: 0;
  line-height: 0.72;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95),
    0 2px 8px rgba(162, 116, 31, 0.28),
    0 0 18px rgba(255, 236, 174, 0.58);
}

.seal-letter {
  position: absolute;
  color: #b18835;
}

.seal-letter-u {
  top: -2px;
  left: 8px;
}

.seal-letter-r {
  right: 8px;
  bottom: 6px;
}

.seal-submark {
  position: absolute;
  bottom: 33px;
  left: 50%;
  color: rgba(153, 112, 36, 0.86);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(0.48rem, 1.25vw, 0.62rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.seal-spark {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--soft-gold);
  clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%);
  filter: drop-shadow(0 0 8px rgba(245, 218, 147, 0.9));
  animation: twinkle 2.8s ease-in-out infinite;
}

.spark-one {
  top: 14%;
  right: 19%;
}

.spark-two {
  bottom: 22%;
  left: 16%;
  animation-delay: 0.55s;
}

.spark-three {
  top: 38%;
  left: 10%;
  transform: scale(0.72);
  animation-delay: 1.1s;
}

.seal-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, 0.42), transparent 48%);
  transform: translateX(-42%) rotate(8deg);
  animation: glint 3s ease-in-out infinite;
}

.seal-copy {
  position: absolute;
  bottom: max(34px, env(safe-area-inset-bottom));
  left: 50%;
  width: min(88vw, 520px);
  text-align: center;
  transform: translateX(-50%);
}

.overline {
  margin: 0 0 10px;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wine);
}

.seal-copy h1 {
  margin: 0;
  font-family: "Parisienne", "Great Vibes", cursive;
  font-size: clamp(3.4rem, 12vw, 7.2rem);
  font-weight: 400;
  line-height: 0.88;
}

.reveal-stage {
  position: relative;
  display: grid;
  place-items: center;
  height: 100vh;
  height: 100svh;
  padding: clamp(12px, 3vw, 28px);
  overflow: hidden;
}

.reveal-stage::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(255, 249, 241, 0.22), rgba(255, 249, 241, 0.36)),
    url("assets/wedding-paper-bg.png") center / cover;
}

.reveal-stage::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 42%, transparent 0 28%, rgba(60, 35, 31, 0.12) 100%);
}

.curtain {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 51vw;
  background:
    linear-gradient(90deg, rgba(255, 248, 239, 0.96), rgba(231, 191, 176, 0.94)),
    repeating-linear-gradient(90deg, transparent 0 26px, rgba(103, 50, 59, 0.05) 26px 28px);
  transition: transform 3000ms cubic-bezier(0.78, 0, 0.15, 1);
}

.curtain-left {
  left: 0;
  transform: translateX(0);
}

.curtain-right {
  right: 0;
  transform: translateX(0);
}

.frame {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(82vw, 560px);
  min-height: 168px;
  padding: 32px;
  border: 1px solid rgba(214, 173, 102, 0.62);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 253, 247, 0.92), rgba(248, 229, 211, 0.88)),
    radial-gradient(circle at 20% 20%, rgba(230, 199, 131, 0.26), transparent 30%);
  box-shadow:
    0 26px 70px rgba(61, 36, 29, 0.2),
    inset 0 0 0 8px rgba(255, 255, 255, 0.25);
  opacity: 0;
  transform: translate(-50%, calc(-50% + 34px)) scale(0.95);
  pointer-events: none;
}

.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(185, 131, 61, 0.85), transparent);
}

.frame::before {
  top: 24px;
}

.frame::after {
  bottom: 24px;
}

.frame small {
  margin-bottom: 12px;
  color: #8a7042;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(0.7rem, 2vw, 0.86rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.frame span {
  text-align: center;
  font-family: "Parisienne", "Great Vibes", cursive;
  font-size: clamp(3.3rem, 10vw, 6rem);
  line-height: 0.86;
  color: var(--wine);
  text-shadow: 0 8px 28px rgba(97, 45, 56, 0.12);
}

.invite-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 500px, calc(92svh * 0.65));
  height: min(92svh, 770px);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(142, 126, 98, 0.36);
  border-radius: 2px;
  background:
    linear-gradient(90deg, rgba(244, 249, 242, 0.78), rgba(255, 250, 243, 0.92) 24%, rgba(255, 250, 243, 0.97) 76%, rgba(238, 243, 233, 0.74)),
    url("assets/wedding-paper-bg.png") center / cover;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(42px) scale(0.985);
}

.invite-card::before,
.invite-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
}

.invite-card::before {
  border: 1px solid rgba(120, 129, 94, 0.35);
}

.invite-card::after {
  inset: 22px;
  border: 1px solid rgba(185, 131, 61, 0.22);
}

.invite-content {
  display: flex;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: clamp(2px, 0.52svh, 5px);
  padding: clamp(23px, 4.1svh, 38px) clamp(24px, 4.2vw, 44px);
  text-align: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 252, 246, 0.94), rgba(255, 252, 246, 0.82) 58%, rgba(255, 252, 246, 0.42));
}

.invite-content h2 {
  margin: 2px 0 0;
  color: #7f6440;
  font-family: "Great Vibes", "Parisienne", cursive;
  font-size: clamp(3rem, 5.55svh, 4.35rem);
  font-weight: 400;
  line-height: 0.9;
}

.bismillah {
  margin: 0 0 clamp(2px, 0.7svh, 7px);
  color: #9a7b49;
  font-family: "Amiri", "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.8svh, 1.72rem);
  font-weight: 700;
  line-height: 1.05;
}

.request,
.and,
.subvenue,
.host-line,
.family-line,
.address,
.welcome {
  margin: 0;
}

.request,
.family-line,
.address,
.welcome {
  color: #3d4756;
  font-size: clamp(0.64rem, 1.13svh, 0.74rem);
  line-height: 1.12;
}

.grandchild-line {
  margin-bottom: clamp(4px, 0.9svh, 8px);
}

.host-line {
  color: #2f3b54;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(0.7rem, 1.38svh, 0.84rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.12;
  text-transform: uppercase;
}

.family-line,
.address {
  color: #5e6671;
  font-style: italic;
}

.event-title,
.venue {
  margin: 1px 0;
  color: #2f3b54;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(0.96rem, 2svh, 1.24rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.and {
  color: #928b86;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(0.64rem, 1.25svh, 0.76rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.date-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  width: min(100%, 330px);
  margin: clamp(5px, 1.08svh, 9px) auto clamp(4px, 0.9svh, 8px);
  padding: 2px 0;
  border-top: 1px solid rgba(117, 126, 93, 0.46);
  border-bottom: 1px solid rgba(117, 126, 93, 0.46);
  font-family: "Cinzel", Georgia, serif;
  color: #2f3b54;
  text-transform: uppercase;
}

.date-row span {
  font-size: clamp(0.72rem, 1.6svh, 0.88rem);
  line-height: 1.12;
}

.date-row strong {
  color: #2d3549;
  font-size: clamp(1.78rem, 4.2svh, 2.55rem);
  font-weight: 400;
  line-height: 0.9;
}

.subvenue {
  color: #5e6671;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(0.72rem, 1.55svh, 0.86rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.time-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: min(100%, 320px);
  margin: clamp(5px, 1svh, 9px) auto clamp(3px, 0.65svh, 5px);
}

.time-row div {
  border-top: 1px solid rgba(185, 131, 61, 0.28);
  border-bottom: 1px solid rgba(185, 131, 61, 0.28);
  padding: 3px 4px;
}

.time-row span,
.welcome {
  display: block;
  color: #8a7042;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(0.58rem, 1.18svh, 0.72rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.time-row strong {
  color: #2f3b54;
  font-size: clamp(0.8rem, 1.55svh, 0.94rem);
  font-weight: 600;
}

.welcome-block {
  display: grid;
  gap: 1px;
  width: min(100%, 340px);
  margin: 1px auto 0;
}

.welcome-names {
  color: #5e6671;
  font-size: clamp(0.58rem, 1svh, 0.68rem);
}

.actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(6px, 1.1svh, 10px);
  font-family: "Cinzel", Georgia, serif;
}

.primary-action,
.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 40px;
  padding: 10px 15px;
  border-radius: 999px;
  font-size: clamp(0.72rem, 1.4svh, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

button.primary-action {
  border: 0;
  cursor: pointer;
  font-family: "Cinzel", Georgia, serif;
}

.primary-action {
  color: #fff9f2;
  background: linear-gradient(135deg, #7b2e3d, #a86c45);
  box-shadow: 0 10px 24px rgba(97, 45, 56, 0.22);
}

.ghost-action {
  color: var(--wine);
  border: 1px solid rgba(151, 112, 54, 0.42);
  background: rgba(255, 255, 255, 0.44);
}

.music-toggle {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 4;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(151, 112, 54, 0.42);
  border-radius: 999px;
  color: var(--wine);
  background: rgba(255, 250, 243, 0.74);
  box-shadow: 0 12px 28px rgba(61, 36, 29, 0.16);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  backdrop-filter: blur(8px);
  animation: volumeFloat 2.4s ease-in-out infinite;
}

.music-credit {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 1;
  margin: 0;
  color: rgba(79, 55, 46, 0.46);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.68rem;
  opacity: 0;
  transition: opacity 800ms ease 8.9s;
}

.invite-shell[data-state="open"] .music-credit {
  opacity: 1;
}

.rsvp-dialog {
  width: min(92vw, 420px);
  max-height: min(88vh, 760px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(151, 112, 54, 0.38);
  border-radius: 16px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(252, 241, 231, 0.98)),
    url("assets/wedding-paper-bg.png") center / cover;
  box-shadow: 0 24px 80px rgba(45, 36, 34, 0.34);
}

.rsvp-dialog::backdrop {
  background: rgba(41, 27, 27, 0.44);
  backdrop-filter: blur(5px);
}

.rsvp-form {
  position: relative;
  display: grid;
  gap: 13px;
  max-height: min(88vh, 760px);
  overflow-y: auto;
  padding: 24px;
  border-radius: 16px;
  scrollbar-color: rgba(123, 46, 61, 0.72) rgba(255, 249, 241, 0.62);
  scrollbar-width: thin;
}

.rsvp-form::-webkit-scrollbar {
  width: 10px;
}

.rsvp-form::-webkit-scrollbar-track {
  margin: 14px 0;
  border-radius: 999px;
  background: rgba(247, 232, 218, 0.58);
}

.rsvp-form::-webkit-scrollbar-thumb {
  border: 3px solid rgba(255, 249, 241, 0.84);
  border-radius: 999px;
  background: linear-gradient(180deg, #8d4051, #b78754);
}

.rsvp-form::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #743244, #9b6b3f);
}

.rsvp-form h3 {
  margin: 0 0 3px;
  color: #6b4059;
  font-family: "Parisienne", "Great Vibes", cursive;
  font-size: clamp(3.1rem, 12vw, 4.4rem);
  font-weight: 400;
  line-height: 0.85;
  text-align: center;
}

.dialog-kicker,
.rsvp-form label > span,
.rsvp-form legend {
  color: #8a7042;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dialog-kicker {
  margin: 0;
  text-align: center;
}

.rsvp-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(151, 112, 54, 0.28);
  border-radius: 999px;
  color: var(--wine);
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.rsvp-form label,
.rsvp-form fieldset {
  display: grid;
  gap: 7px;
  margin: 0;
  min-width: 0;
  border: 0;
  padding: 0;
}

.rsvp-form input[type="text"],
.rsvp-form input:not([type]),
.rsvp-form textarea {
  width: 100%;
}

.rsvp-form input,
.rsvp-form textarea {
  border: 1px solid rgba(151, 112, 54, 0.34);
  border-radius: 10px;
  padding: 12px 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  font: 500 1rem "Cormorant Garamond", Georgia, serif;
}

.rsvp-form textarea {
  resize: vertical;
}

.rsvp-form input:focus,
.rsvp-form textarea:focus {
  outline: 3px solid rgba(181, 137, 73, 0.24);
  border-color: rgba(97, 45, 56, 0.52);
}

.choice {
  display: inline-flex !important;
  grid-template-columns: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid rgba(151, 112, 54, 0.34);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  text-align: center;
}

.choice input {
  position: absolute;
  opacity: 0;
}

fieldset {
  grid-template-columns: 1fr 1fr;
  column-gap: 9px;
}

fieldset legend {
  grid-column: 1 / -1;
}

.choice:has(input:checked) {
  border-color: rgba(97, 45, 56, 0.66);
  color: var(--wine);
  background: rgba(238, 220, 238, 0.72);
  box-shadow: inset 0 0 0 1px rgba(97, 45, 56, 0.16);
}

.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100%;
  line-height: 1.05;
  text-align: center;
}

.extra-guest {
  padding: 13px;
  border: 1px dashed rgba(151, 112, 54, 0.44);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.42);
}

.extra-guest input {
  width: 18px;
  height: 18px;
}

.extra-guest span {
  display: inline;
  margin-left: 7px;
  color: #513f4a;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}

.extra-guest small {
  color: var(--muted);
  font-style: italic;
  line-height: 1.35;
}

.submit-rsvp {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  color: #fff9f2;
  background: linear-gradient(135deg, #7b2e3d, #a86c45);
  cursor: pointer;
  font-family: "Cinzel", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rsvp-message {
  min-height: 1.2em;
  margin: 0;
  color: var(--wine);
  text-align: center;
}

.invite-shell[data-state="opening"] .seal-screen,
.invite-shell[data-state="open"] .seal-screen {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
}

.invite-shell[data-state="opening"] .envelope-flap,
.invite-shell[data-state="open"] .envelope-flap {
  transform: rotateX(180deg);
}

.invite-shell[data-state="opening"] .curtain-left,
.invite-shell[data-state="open"] .curtain-left {
  transform: translateX(-102%);
}

.invite-shell[data-state="opening"] .curtain-right,
.invite-shell[data-state="open"] .curtain-right {
  transform: translateX(102%);
}

.invite-shell[data-state="opening"] .frame-one {
  animation: framePulse 2400ms 1000ms cubic-bezier(0.2, 0.84, 0.2, 1) both;
}

.invite-shell[data-state="opening"] .frame-two {
  animation: framePulse 2400ms 3100ms cubic-bezier(0.2, 0.84, 0.2, 1) both;
}

.invite-shell[data-state="opening"] .frame-three {
  animation: framePulse 2500ms 5200ms cubic-bezier(0.2, 0.84, 0.2, 1) both;
}

.invite-shell[data-state="opening"] .invite-card {
  animation: cardReveal 1700ms 7800ms cubic-bezier(0.2, 0.82, 0.18, 1) both;
}

.invite-shell[data-state="open"] .invite-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes glint {
  0%,
  55%,
  100% {
    opacity: 0;
    transform: translateX(-44%) rotate(8deg);
  }
  70% {
    opacity: 1;
  }
  82% {
    opacity: 0;
    transform: translateX(46%) rotate(8deg);
  }
}

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

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.75) rotate(0deg);
  }
  48% {
    opacity: 1;
    transform: scale(1.25) rotate(45deg);
  }
}

@keyframes volumeFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 12px 28px rgba(61, 36, 29, 0.16);
  }
  45% {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 16px 32px rgba(185, 131, 61, 0.22);
  }
}

@keyframes framePulse {
  0% {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 42px)) scale(0.94);
  }
  22%,
  68% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, calc(-50% - 24px)) scale(1.03);
  }
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(42px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 760px) {
  body {
    background-attachment: scroll;
  }

  .seal-screen {
    padding: 18px;
  }

  .envelope {
    width: min(92vw, 420px);
    transform: translateY(-54px);
  }

  .seal-button {
    transform: translateY(-28px);
  }

  .seal-button:hover {
    transform: translateY(-31px) scale(1.02);
  }

  .invite-card {
    width: min(94vw, calc(94svh * 0.64));
    height: min(96svh, calc(94vw / 0.56));
  }

  .invite-content {
    padding: 21px;
  }

  .actions {
    gap: 8px;
  }

  .primary-action,
  .ghost-action {
    min-width: 104px;
    padding-inline: 12px;
  }

  .music-credit {
    display: none;
  }
}

@media (max-height: 640px) {
  .invite-content {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .bismillah {
    margin-bottom: 4px;
  }

  .actions {
    margin-top: 8px;
  }
}

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