:root {
  --ink: #3c2a27;
  --muted: #78625c;
  --paper: #fff7ef;
  --paper-soft: #f8e8e6;
  --blush: #e8c7cd;
  --blush-deep: #cda2a8;
  --wine: #5a1225;
  --wine-soft: #7f2636;
  --gold: #b98b4d;
  --sage: #7b876d;
  --shadow: rgba(62, 27, 32, 0.22);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, #211817 0%, #141211 58%, #251a19 100%);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea {
  font: inherit;
}

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

.phone-stage {
  position: relative;
  width: min(100vw, 430px);
  height: min(100vh, 932px);
  min-height: 720px;
  overflow: hidden;
  background: #f5dddf;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.intro-screen,
.invite-screen {
  position: absolute;
  inset: 0;
}

.intro-screen {
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 28px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 251, 247, 0.78), rgba(255, 255, 255, 0) 24%),
    linear-gradient(180deg, #f6e1e4 0%, #e5c1c8 56%, #c9939b 100%);
  transition:
    opacity 720ms ease 1280ms,
    transform 860ms ease 1280ms,
    visibility 0ms linear 2050ms;
}

.intro-screen::before,
.intro-screen::after {
  content: "";
  position: absolute;
  inset: 18px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.intro-screen::after {
  inset: 28px;
  border-color: rgba(113, 45, 53, 0.12);
}

.phone-stage.is-open .intro-screen {
  opacity: 0;
  transform: scale(1.045) translateY(-24px);
  visibility: hidden;
}

.intro-glow,
.floating-petal {
  display: none;
}

.envelope-wrap {
  position: relative;
  width: min(84vw, 340px);
  height: min(78vh, 680px);
  min-height: 500px;
  filter: drop-shadow(0 30px 34px rgba(82, 34, 41, 0.28));
}

.envelope {
  position: absolute;
  inset: 0;
  perspective: 1400px;
}

.envelope-base,
.envelope-flap,
.envelope-paper {
  position: absolute;
  inset: 0;
  border-radius: 8px;
}

.envelope-base {
  overflow: hidden;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.42), transparent 28%),
    linear-gradient(158deg, #f7e4e8 0%, #e8c4ca 54%, #c78c96 100%);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow:
    inset 0 0 0 1px rgba(105, 45, 55, 0.08),
    inset 0 -36px 70px rgba(92, 37, 47, 0.14);
}

.envelope-base::before,
.envelope-base::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.envelope-base::before {
  opacity: 0.5;
  background:
    linear-gradient(30deg, transparent 49.55%, rgba(255, 255, 255, 0.46) 49.8% 50.2%, transparent 50.45%),
    linear-gradient(150deg, transparent 49.55%, rgba(114, 48, 58, 0.18) 49.8% 50.2%, transparent 50.45%);
}

.envelope-base::after {
  inset: 10% 12%;
  opacity: 0.46;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(255, 255, 255, 0.7) 0 2px, transparent 2.8px),
    radial-gradient(ellipse at 35% 36%, rgba(255, 255, 255, 0.48) 0 2px, transparent 2.8px),
    radial-gradient(ellipse at 23% 52%, rgba(104, 69, 67, 0.16) 0 1.6px, transparent 2.4px),
    radial-gradient(ellipse at 76% 24%, rgba(255, 255, 255, 0.58) 0 2px, transparent 2.8px),
    radial-gradient(ellipse at 67% 42%, rgba(104, 69, 67, 0.12) 0 1.7px, transparent 2.5px),
    linear-gradient(72deg, transparent 0 45%, rgba(255, 255, 255, 0.32) 45.5% 46.2%, transparent 46.8%),
    linear-gradient(108deg, transparent 0 54%, rgba(104, 69, 67, 0.12) 54.4% 55%, transparent 55.7%);
  background-size: 70px 92px, 86px 112px, 64px 96px, 84px 104px, 78px 106px, 95px 140px, 98px 142px;
  background-position: left top, 8px 70px, 4px 150px, right 4px top, right 18px top 100px, left center, right center;
  background-repeat: no-repeat;
}

.envelope-paper {
  inset: 12% 9% auto;
  height: 58%;
  z-index: 1;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  opacity: 0;
  transform: translateY(26%);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0)),
    url("assets/wedding-paper-section.png") center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(185, 139, 77, 0.24);
  transition:
    opacity 420ms ease 260ms,
    transform 1050ms cubic-bezier(0.2, 0.74, 0.16, 1) 260ms;
}

.envelope-paper span {
  color: var(--wine-soft);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
}

.envelope-paper strong {
  color: var(--wine);
  font-family: "Great Vibes", cursive;
  font-size: 3.35rem;
  font-weight: 400;
  line-height: 0.9;
}

.phone-stage.is-open .envelope-paper {
  opacity: 1;
  transform: translateY(-30%);
}

.envelope-flap {
  backface-visibility: hidden;
}

.flap-top {
  z-index: 6;
  clip-path: polygon(0 0, 100% 0, 50% 56%);
  transform-origin: top center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), transparent 42%),
    linear-gradient(116deg, #f2d7dc, #bf7e89);
  transition: transform 1120ms cubic-bezier(0.18, 0.77, 0.18, 1);
}

.phone-stage.is-open .flap-top {
  transform: rotateX(164deg);
}

.flap-left {
  z-index: 3;
  clip-path: polygon(0 0, 53% 50%, 0 100%);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.48), transparent 62%),
    linear-gradient(160deg, #e9c4cb, #cb929c);
}

.flap-right {
  z-index: 3;
  clip-path: polygon(100% 0, 47% 50%, 100% 100%);
  background:
    linear-gradient(270deg, rgba(255, 255, 255, 0.4), transparent 58%),
    linear-gradient(25deg, #c28691, #edcbd1);
}

.flap-bottom {
  z-index: 5;
  clip-path: polygon(0 100%, 50% 43%, 100% 100%);
  background:
    linear-gradient(180deg, transparent, rgba(82, 35, 47, 0.2)),
    linear-gradient(27deg, #d29aa3, #f2d1d6);
}

.wax-seal {
  position: absolute;
  left: 50%;
  top: 49%;
  z-index: 9;
  width: 74px;
  height: 74px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #f4cf8e;
  cursor: pointer;
  background:
    radial-gradient(circle at 31% 24%, rgba(255, 226, 185, 0.4), transparent 21%),
    radial-gradient(circle at 72% 76%, #35101d, transparent 48%),
    linear-gradient(135deg, #8d2638 0%, #5b1427 58%, #2f0c17 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 226, 171, 0.22),
    inset 0 0 0 9px rgba(47, 12, 23, 0.18),
    0 0 0 5px rgba(103, 26, 43, 0.22),
    0 15px 26px rgba(55, 16, 27, 0.38);
  transform: translate(-50%, -50%);
  transition:
    transform 300ms ease,
    opacity 350ms ease 720ms,
    box-shadow 350ms ease;
}

.wax-seal::before,
.wax-seal::after {
  content: "";
  position: absolute;
  border-radius: inherit;
}

.wax-seal::before {
  inset: 8px;
  border: 1px solid rgba(244, 207, 142, 0.58);
}

.wax-seal::after {
  inset: -8px;
  opacity: 0;
  border: 1px solid rgba(244, 207, 142, 0.64);
  animation: sealPulse 1.8s ease-in-out infinite;
}

.seal-letters {
  position: relative;
  font-family: "Great Vibes", cursive;
  font-size: 2rem;
  line-height: 1;
  transform: rotate(-8deg);
}

.wax-seal:hover,
.wax-seal:focus-visible {
  outline: none;
  transform: translate(-50%, -50%) scale(1.055);
}

.phone-stage.is-open .wax-seal {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1.38);
  box-shadow:
    inset 0 0 0 2px rgba(255, 226, 171, 0.22),
    0 0 0 18px rgba(185, 139, 77, 0.18),
    0 0 54px rgba(185, 139, 77, 0.55);
}

@keyframes sealPulse {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.88);
  }

  52% {
    opacity: 1;
    transform: scale(1.12);
  }
}

.invite-screen {
  z-index: 2;
  overflow-y: auto;
  padding: 0 0 14px;
  opacity: 0;
  visibility: hidden;
  background: linear-gradient(180deg, #f6dfe2 0%, #fdf1ed 34%, #f3d9dd 100%);
  scrollbar-width: none;
  scroll-behavior: smooth;
  transition:
    opacity 680ms ease 1450ms,
    visibility 0ms linear 1450ms;
}

.invite-screen::-webkit-scrollbar {
  display: none;
}

.phone-stage.is-open .invite-screen {
  opacity: 1;
  visibility: visible;
}

.music-toggle {
  position: fixed;
  right: max(14px, calc((100vw - 430px) / 2 + 14px));
  bottom: max(14px, calc((100vh - 932px) / 2 + 16px));
  z-index: 15;
  width: 40px;
  height: 40px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  background:
    radial-gradient(circle at 30% 19%, rgba(255, 255, 255, 0.42), transparent 21%),
    linear-gradient(145deg, #8b2639, #4b1020);
  box-shadow: 0 13px 24px rgba(77, 22, 39, 0.28);
}

.music-toggle::before,
.music-toggle::after {
  content: "";
  position: absolute;
  background: #f4cf8e;
}

.music-toggle::before {
  width: 3px;
  height: 17px;
  border-radius: 2px;
  transform: translate(1px, -2px);
}

.music-toggle::after {
  width: 10px;
  height: 8px;
  border-radius: 50%;
  transform: translate(-5px, 8px) rotate(-18deg);
}

.music-toggle span {
  width: 0;
  height: 0;
  margin-left: 14px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #f4cf8e;
}

.music-toggle.is-playing {
  animation: musicBeat 1.08s ease-in-out infinite;
}

.music-toggle.is-playing::before,
.music-toggle.is-playing::after {
  width: 4px;
  height: 15px;
  border-radius: 3px;
  transform: translateX(-4px);
}

.music-toggle.is-playing::after {
  transform: translateX(5px);
}

.music-toggle.is-playing span {
  display: none;
}

.language-toggle {
  position: fixed;
  right: max(14px, calc((100vw - 430px) / 2 + 14px));
  bottom: max(64px, calc((100vh - 932px) / 2 + 66px));
  z-index: 15;
  width: 40px;
  height: 40px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #f4cf8e;
  background:
    radial-gradient(circle at 30% 19%, rgba(255, 255, 255, 0.38), transparent 21%),
    linear-gradient(145deg, #7b2135, #3f0e1c);
  box-shadow: 0 13px 24px rgba(77, 22, 39, 0.25);
}

.language-toggle:focus-visible {
  outline: 3px solid rgba(244, 207, 142, 0.4);
  outline-offset: 3px;
}

.language-globe {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1.7px solid currentColor;
  border-radius: 50%;
  opacity: 0.72;
}

.language-globe::before,
.language-globe::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-color: currentColor;
  transform: translate(-50%, -50%);
}

.language-globe::before {
  width: 1px;
  height: 18px;
  border-left: 1.5px solid currentColor;
}

.language-globe::after {
  width: 17px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
}

.language-toggle span:last-child {
  position: relative;
  z-index: 1;
  margin-top: 2px;
  color: #fff8f1;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(63, 14, 28, 0.75);
}

@keyframes musicBeat {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.09);
  }
}

.paper-panel {
  position: relative;
  width: 100%;
  min-height: min(820px, calc(100svh - 18px));
  margin: 0 auto 10px;
  overflow: hidden;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 74px 34px 62px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 250, 246, 0.42), rgba(255, 244, 239, 0.16)),
    url("assets/wedding-paper-section.png") center top / 100% 100% no-repeat;
  box-shadow: none;
}

.paper-panel::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(185, 139, 77, 0.24);
}

.paper-panel > * {
  position: relative;
  z-index: 1;
}

.schedule-panel {
  background:
    linear-gradient(180deg, rgba(255, 250, 246, 0.72), rgba(255, 244, 239, 0.46)),
    #fff7ef;
}

.schedule-panel::before {
  z-index: 2;
}

.schedule-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 246, 0.08), rgba(255, 244, 239, 0.18)),
    url("assets/wedding-paper-section.png") center top / 100% 100% no-repeat;
  transform: translateY(22px);
  transition: opacity 760ms ease, transform 960ms ease;
}

.schedule-panel.is-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.schedule-panel > * {
  z-index: 3;
}

.cover-panel {
  min-height: 100%;
  margin: 0 0 10px;
  padding: 178px 36px 54px;
  justify-content: flex-start;
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.04), rgba(255, 246, 236, 0.1)),
    url("assets/wedding-arch-cover.png") center / cover no-repeat;
}

.cover-panel::before {
  border-color: rgba(185, 139, 77, 0.18);
}

.paper-border,
.corner-floral,
.scene-window,
.curtain,
.flower-bed,
.center-seal,
.couple-portraits {
  display: none;
}

.eyebrow {
  margin: 0;
  color: var(--wine-soft);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.06rem;
  font-weight: 600;
  padding-bottom: 20px;
}

.date-mark {
  margin: 4px 0 20px;
  color: #7f5c47;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
}

.cover-panel h1 {
  margin: 0;
  color: #704128;
  font-family: "Great Vibes", cursive;
  font-size: 4.85rem;
  font-weight: 400;
  line-height: 0.92;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.78);
}

.cover-panel h1 span {
  display: block;
  margin: -1px 0 -6px;
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  padding: 0px 0 30px 0;
}

.cover-panel .eyebrow {
  color: #8b644d;
  font-size: 1.2rem;
}

.scroll-cue {
  margin: 96px 0 0;
  color: #7b5741;
  font-family: "Great Vibes", cursive;
  font-size: 1.9rem;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.66);
}

.panel-copy {
  padding: 0;
}

.panel-copy h2,
.guest-panel h2,
.highlight-panel blockquote,
.rsvp-panel h2 {
  margin: 0;
  color: var(--wine);
  font-family: "Great Vibes", cursive;
  font-size: 3.35rem;
  font-weight: 400;
  line-height: 1;
}

.venue-panel h2 {
  max-width: 320px;
  margin: 12px auto 0;
  color: var(--wine);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.05rem;
  font-weight: 700;
  line-height: 1.12;
}

.panel-copy p,
.guest-panel p,
.venue-copy,
.form-intro {
  max-width: 320px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.72;
}

.arabic-paragraph {
  color: #654643 !important;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.04rem !important;
  line-height: 1.72 !important;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: min(338px, 100%);
  margin: 24px auto 0;
  border-top: 1px solid rgba(185, 139, 77, 0.38);
  border-bottom: 1px solid rgba(185, 139, 77, 0.38);
}

.countdown-grid div {
  min-width: 0;
  padding: 14px 3px 12px;
}

.countdown-grid div + div {
  border-left: 1px solid rgba(185, 139, 77, 0.22);
}

.countdown-grid strong {
  display: block;
  color: var(--wine);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.84rem;
  font-weight: 700;
  line-height: 1;
}

.countdown-grid span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline {
  position: relative;
  width: min(316px, 100%);
  margin: 28px auto 0;
  padding: 4px 0;
}

.schedule-panel .timeline {
  padding-bottom: 31px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 50%;
  width: 1px;
  background: rgba(111, 75, 68, 0.24);
}

.schedule-panel .timeline::before {
  bottom: 42px;
}

.timeline-flower {
  position: absolute;
  left: 50%;
  top: var(--schedule-flower-y, 30px);
  z-index: 5;
  width: 31px;
  height: 24px;
  background:
    radial-gradient(circle at 50% 54%, #8f2d42 0 4px, transparent 4.5px),
    radial-gradient(ellipse at 38% 42%, #d99aa4 0 5px, transparent 5.6px),
    radial-gradient(ellipse at 62% 42%, #c87988 0 5px, transparent 5.6px),
    radial-gradient(ellipse at 49% 27%, #efc4ca 0 4px, transparent 4.7px),
    radial-gradient(ellipse at 29% 64%, #9a6f5d 0 3px, transparent 3.7px),
    radial-gradient(ellipse at 71% 64%, #7b876d 0 3px, transparent 3.7px);
  filter: drop-shadow(0 3px 5px rgba(90, 18, 37, 0.14));
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: top 460ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.timeline-flower::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff8f1;
  transform: translate(-50%, -36%);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 52px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(90, 18, 37, 0.48);
  background: var(--paper);
  transform: translate(-50%, -50%) rotate(45deg);
}

.timeline-item time {
  padding-right: 28px;
  color: var(--wine);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.28rem;
  font-weight: 600;
  text-align: right;
}

.timeline-item span {
  padding-left: 28px;
  color: var(--muted);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  text-align: left;
}

.venue-art {
  position: relative;
  height: 210px;
  margin: 30px auto 8px;
  overflow: hidden;
  width: min(318px, 100%);
  border: 1px solid rgba(185, 139, 77, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 248, 241, 0.04), rgba(61, 29, 27, 0.22)),
    url("assets/wedding-arch-cover.png") center 79% / 142% auto no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.34),
    0 16px 28px rgba(90, 18, 37, 0.12);
}

.venue-art::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  width: 36px;
  height: 36px;
  border-radius: 50% 50% 50% 0;
  background:
    radial-gradient(circle at 50% 50%, #fff7ef 0 5px, transparent 6px),
    linear-gradient(145deg, #842235, #4b1020);
  box-shadow:
    inset 0 0 0 1px rgba(244, 207, 142, 0.24),
    0 8px 18px rgba(77, 22, 39, 0.22);
  transform: translate(-50%, -50%) rotate(-45deg);
}

.venue-art::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 248, 241, 0.38);
  border-radius: 5px;
  pointer-events: none;
}

.venue-art > *,
.hall-roof,
.hall,
.hall span {
  display: none;
}

.map-card {
  display: none;
}

.map-link,
.primary-button,
.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  color: #fff8f1;
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 226, 185, 0.26), transparent 20%),
    linear-gradient(135deg, #7d2133, #4d1020);
  box-shadow:
    inset 0 0 0 1px rgba(244, 207, 142, 0.18),
    0 13px 23px rgba(90, 18, 37, 0.22);
  font-size: 0.86rem;
  font-weight: 800;
}

.map-link {
  width: min(100%, 264px);
  margin: 18px auto 0;
  padding: 0 24px;
}

.guest-panel h2 {
  font-size: 3.25rem;
}

.guest-panel h3 {
  margin: 0;
  color: var(--wine);
  font-family: "Great Vibes", cursive;
  font-size: 2.28rem;
  font-weight: 400;
  line-height: 1;
}

.divider-seal {
  width: 52px;
  height: 52px;
  margin: 28px auto 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #f4cf8e;
  font-family: "Great Vibes", cursive;
  font-size: 1.5rem;
  background:
    radial-gradient(circle at 31% 24%, rgba(255, 226, 185, 0.36), transparent 21%),
    linear-gradient(145deg, #842235, #4b1020);
  box-shadow:
    inset 0 0 0 1px rgba(244, 207, 142, 0.22),
    0 13px 22px rgba(77, 22, 39, 0.25);
}

.gift-card {
  width: min(100%, 324px);
  margin: 22px auto 0;
  padding: 18px 18px 16px;
  border: 1px solid rgba(185, 139, 77, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.86), rgba(248, 232, 230, 0.54)),
    rgba(255, 247, 239, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 18px 34px rgba(65, 34, 38, 0.1);
}

.gift-card h3 {
  text-align: center;
}

.guest-panel .gift-card p {
  max-width: none;
  margin: 10px 0 0;
}

.gift-arabic {
  color: var(--wine);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.9;
}

.gift-english {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.62;
}

.wish-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid rgba(90, 18, 37, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.wish-account span {
  display: block;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wish-account strong {
  display: block;
  margin-top: 4px;
  color: var(--wine);
  font-size: 1.15rem;
  line-height: 1;
}

.copy-account {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #f4cf8e;
  background: linear-gradient(145deg, #842235, #4b1020);
  box-shadow: 0 10px 18px rgba(77, 22, 39, 0.24);
  cursor: pointer;
}

.copy-account:focus-visible {
  outline: 3px solid rgba(185, 139, 77, 0.42);
  outline-offset: 3px;
}

.copy-icon {
  position: relative;
  width: 16px;
  height: 18px;
}

.copy-icon::before,
.copy-icon::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 13px;
  border: 1.8px solid currentColor;
  border-radius: 3px;
}

.copy-icon::before {
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.08);
}

.copy-icon::after {
  top: 0;
  left: 0;
}

.copy-status {
  min-height: 18px;
  color: var(--wine-soft);
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
}

body[data-language="ar"] .panel-copy p,
body[data-language="ar"] .guest-panel p,
body[data-language="ar"] .venue-copy,
body[data-language="ar"] .form-intro,
body[data-language="ar"] .invite-count,
body[data-language="ar"] .form-status {
  direction: rtl;
}

body[data-language="ar"] .rsvp-form {
  text-align: right;
}

body[data-language="ar"] .wish-account {
  direction: ltr;
  text-align: left;
}

.highlight-panel blockquote {
  max-width: 316px;
  margin: 14px auto 24px;
  font-size: 2.35rem;
  line-height: 1.16;
}

.primary-button {
  width: min(100%, 264px);
  margin: 0 auto;
  padding: 0 24px;
}

.rsvp-panel {
  justify-content: flex-start;
  padding-top: 74px;
}

.rsvp-panel h2 {
  font-size: 2.55rem;
  line-height: 1.05;
}

.form-intro {
  text-align: center;
}

.invite-count {
  margin: 10px auto 0;
  color: var(--wine-soft);
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
}

.rsvp-form {
  display: grid;
  gap: 14px;
  width: min(100%, 338px);
  margin: 24px auto 0;
  text-align: left;
}

.rsvp-form fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.rsvp-form legend,
.rsvp-form > label {
  color: var(--wine);
  font-size: 0.78rem;
  font-weight: 800;
}

.rsvp-form fieldset label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 29px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.rsvp-form input[type="radio"] {
  width: 14px;
  height: 14px;
  accent-color: var(--wine);
}

.rsvp-form > label {
  display: grid;
  gap: 6px;
}

.rsvp-form input[type="text"],
.rsvp-form input[type="number"],
.rsvp-form textarea {
  width: 100%;
  border: 1px solid rgba(120, 98, 92, 0.28);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
  outline: none;
}

.rsvp-form input:focus,
.rsvp-form textarea:focus {
  border-color: rgba(90, 18, 37, 0.66);
  box-shadow: 0 0 0 4px rgba(90, 18, 37, 0.1);
}

.rsvp-form input[readonly] {
  color: var(--wine);
  background: rgba(90, 18, 37, 0.08);
  font-weight: 800;
}

.rsvp-form textarea {
  min-height: 84px;
  resize: vertical;
}

.submit-button {
  width: 100%;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--wine-soft);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 480px) {
  body {
    display: block;
    overflow: hidden;
    background: #f5dddf;
  }

  .phone-stage {
    width: 100vw;
    height: 100svh;
    min-height: 100svh;
    box-shadow: none;
  }

  .envelope-wrap {
    width: calc(100vw - 52px);
    height: calc(100svh - 86px);
    min-height: 500px;
  }

  .paper-panel {
    min-height: calc(100svh - 10px);
  }
}

@media (max-width: 380px) {
  .paper-panel {
    padding-right: 26px;
    padding-left: 26px;
  }

  .cover-panel {
    padding-top: 158px;
  }

  .cover-panel h1 {
    font-size: 4.2rem;
  }

  .panel-copy h2,
  .guest-panel h2 {
    font-size: 2.9rem;
  }

  .highlight-panel blockquote,
  .rsvp-panel h2 {
    font-size: 2.18rem;
  }

  .countdown-grid strong {
    font-size: 1.52rem;
  }
}

@media (max-height: 760px) {
  .cover-panel {
    padding-top: 138px;
  }

  .scroll-cue {
    margin-top: 56px;
  }

  .paper-panel {
    padding-top: 110px;
    padding-bottom: 44px;
  }
}

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