:root {
  --bg-0: #06070b;
  --bg-1: #111320;
  --bg-2: #1c2030;
  --paper: #f8f3ea;
  --paper-2: #efe5d2;
  --ink: #1d2430;
  --ink-soft: #555b68;
  --white: #ffffff;
  --gold: #d7b35d;
  --gold-2: #f2df9c;
  --gold-deep: #9f7e2d;
  --line: rgba(255, 255, 255, 0.12);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.34);
  --shadow-md: 0 16px 36px rgba(0, 0, 0, 0.22);
  --schedule-bg-image: url("https://i.pinimg.com/originals/15/22/2c/15222c0459f5c379e90928bf4bf4dc0a.jpg?nii=t");
  --cover-bg-image: url("https://i.pinimg.com/736x/b5/ce/4b/b5ce4bc29fde7aa975559ced4ebcb577.jpg");
  --footer-bg-image: url("https://i.pinimg.com/736x/5d/8f/3d/5d8f3df50234816aaec6a73e45766e04.jpg");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Cormorant Garamond", serif;
  color: var(--ink);
  background:
    radial-gradient(900px 460px at 20% 10%, rgba(215, 179, 93, 0.18), transparent 55%),
    radial-gradient(780px 420px at 100% 0%, rgba(110, 125, 255, 0.14), transparent 50%),
    radial-gradient(700px 540px at 0% 100%, rgba(255, 145, 190, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 48%, var(--bg-2) 100%);
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.04) 1px, transparent 0);
  background-size: 100% 100%, 24px 24px;
  opacity: 0.38;
  mix-blend-mode: screen;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.24));
}

.page {
  position: relative;
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 0;
}

.card {
  position: relative;
  width: 100%;
  margin: 0 auto;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  transform-style: preserve-3d;
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background:
    linear-gradient(180deg, rgba(7, 10, 16, 0.58), rgba(7, 10, 16, 0.86)),
    radial-gradient(1400px 700px at 50% 0%, rgba(213, 179, 93, 0.16), transparent 60%),
    linear-gradient(135deg, #090b12, #131826 52%, #090b12);
  color: var(--white);
  perspective: 1800px;
}

.hero-stage {
  position: relative;
  width: min(100%, 520px);
  min-height: 86vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 18px 12px;
  transform-style: preserve-3d;
  transform: rotateX(var(--hero-rx, 0deg)) rotateY(var(--hero-ry, 0deg));
  transform-origin: center center;
  transition: transform 180ms linear;
}

.pigeon-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.pigeon {
  position: absolute;
  left: 50%;
  top: 54%;
  width: var(--size, 30px);
  height: var(--size, 30px);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
  transform-origin: center center;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.28));
}

.pigeon svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.pigeon path {
  fill: rgba(240, 246, 255, 0.98);
}

.hero-screen-opening .pigeon {
  animation: pigeonFly var(--duration, 1800ms) cubic-bezier(0.18, 0.82, 0.2, 1) forwards;
  animation-delay: var(--delay, 0ms);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 460px);
  text-align: center;
  transform: none;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  flex: 0 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.hero-kicker {
  margin: 0 0 12px;
  font-family: "Great Vibes", cursive;
  font-size: clamp(30px, 4vw, 54px);
  color: rgba(242, 223, 156, 0.95);
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
}

.hero-title,
h2 {
  margin: 0;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-title {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  font-size: clamp(32px, 5.7vw, 74px);
  letter-spacing: 0.03em;
  white-space: normal;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  overflow-wrap: normal;
  transform: none;
  text-align: center;
}

.hero-title span {
  display: block;
  white-space: nowrap;
}

.hero-title span + span {
  margin-top: 0.08em;
}

.hero-title span:last-child {
  font-size: 0.88em;
  letter-spacing: 0.03em;
}

.hero-subtitle {
  max-width: 520px;
  margin: 18px auto 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(14px, 1.9vw, 18px);
  line-height: 1.8;
  color: rgba(240, 244, 255, 0.9);
}

.hero-grid,
.hero-orb {
  position: absolute;
  pointer-events: none;
}

.hero-grid {
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, black 0%, rgba(0, 0, 0, 0.65) 62%, transparent 100%);
  opacity: 0.4;
  transform: translateZ(-40px);
}

.hero-orb {
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.9;
  transform-style: preserve-3d;
}

.hero-orb-a {
  width: 280px;
  height: 280px;
  left: 10%;
  top: 10%;
  background: radial-gradient(circle, rgba(215, 179, 93, 0.32), rgba(215, 179, 93, 0.02) 66%, transparent 70%);
  transform: translateZ(-120px);
}

.hero-orb-b {
  width: 280px;
  height: 280px;
  right: 10%;
  bottom: 10%;
  background: radial-gradient(circle, rgba(116, 140, 255, 0.24), rgba(116, 140, 255, 0.02) 68%, transparent 72%);
  transform: translateZ(-80px);
}

.envelope-btn {
  position: relative;
  z-index: 2;
  border: 0;
  background: transparent;
  cursor: pointer;
  perspective: 1600px;
  padding: 10px;
  margin-top: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  line-height: 0;
}

.envelope-scene {
  display: block;
  transform-style: preserve-3d;
  animation: envelopeFloat 3.2s ease-in-out infinite;
  transition: transform 900ms cubic-bezier(0.2, 0.7, 0.1, 1), filter 600ms ease;
  filter: drop-shadow(0 26px 42px rgba(0, 0, 0, 0.26));
  pointer-events: none;
}

.envelope {
  position: relative;
  width: min(86vw, 360px);
  height: min(52vw, 214px);
  display: block;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0 50%, rgba(235, 232, 228, 0.95) 50% 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 18px 42px rgba(0, 0, 0, 0.18);
  transform-style: preserve-3d;
  pointer-events: none;
}

.envelope::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 49.6%, rgba(215, 179, 93, 0.26) 50%, transparent 50.4%),
    linear-gradient(225deg, transparent 49.6%, rgba(215, 179, 93, 0.26) 50%, transparent 50.4%);
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
}

.envelope::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 18px;
  border: 1px solid rgba(159, 126, 45, 0.22);
  z-index: 0;
  pointer-events: none;
}

.envelope-flap {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 56%;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(180deg, rgba(245, 244, 241, 0.98), rgba(224, 220, 214, 0.98));
  transform-origin: top center;
  transition: transform 1200ms cubic-bezier(0.2, 0.7, 0.1, 1);
  z-index: 3;
  pointer-events: none;
}

.envelope-paper {
  position: absolute;
  left: 50%;
  top: 38%;
  width: 82%;
  height: 84%;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
  border: 1px solid rgba(159, 126, 45, 0.24);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  transform: translate(-50%, 126%);
  transition: transform 2300ms cubic-bezier(0.2, 0.7, 0.1, 1), opacity 900ms ease;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}

.paper-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #b48628;
  font-family: "Great Vibes", cursive;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 0.92;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease 600ms, transform 800ms ease 600ms;
  padding: 12px 14px;
  pointer-events: none;
}

.paper-content span {
  display: block;
}

.paper-content .amp {
  font-size: 0.82em;
  line-height: 0.8;
  margin: 2px 0;
}

.seal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, #f5efe0, #b79b5a 62%, #8b6d29 100%);
  color: rgba(255, 255, 255, 0.9);
  font-family: "Great Vibes", cursive;
  font-size: 56px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 14px 28px rgba(0, 0, 0, 0.22);
  transition: opacity 500ms ease, transform 500ms ease;
  z-index: 4;
}

.hint {
  margin: 12px 0 0;
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(29, 36, 48, 0.72);
  transition: opacity 500ms ease, transform 500ms ease;
  pointer-events: none;
}

.hero.opening .envelope-flap {
  transform: rotateX(180deg);
}

.hero.opening .envelope-paper {
  transform: translate(-50%, -54px);
  opacity: 1;
}

.hero.opening .paper-content {
  opacity: 1;
  transform: translateY(0);
}

.hero.opening .seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
}

.hero.opening .envelope-scene {
  animation: none;
  transform: scale(1.05) translateY(-12px);
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.3));
}

.hero.opening .hint {
  opacity: 0;
  transform: translateY(8px);
}

.hero.opened {
  opacity: 0;
  transform: translateY(-34px) scale(0.985);
  transition: opacity 900ms ease, transform 900ms ease;
}

.cover-photo {
  padding: 0;
  min-height: 760px;
  background:
    linear-gradient(rgba(12, 14, 22, 0.24), rgba(12, 14, 22, 0.52)),
    var(--cover-bg-image) center/cover no-repeat;
}

.cover-overlay {
  width: 100%;
  min-height: 760px;
  display: grid;
  place-items: center;
  position: relative;
  text-align: center;
  padding: 24px;
}

.cover-names {
  display: inline-block;
  max-width: min(86%, 420px);
  padding: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  font-family: "Great Vibes", cursive;
  color: #fff;
  font-size: clamp(58px, 8.2vw, 96px);
  line-height: 0.92;
  text-shadow:
    0 12px 28px rgba(0, 0, 0, 0.48);
  transform: translateZ(20px);
}

.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  gap: 4px;
  opacity: 0.85;
}

.scroll-indicator span {
  width: 16px;
  height: 16px;
  border-right: 2px solid rgba(255, 255, 255, 0.9);
  border-bottom: 2px solid rgba(255, 255, 255, 0.9);
  transform: rotate(45deg);
  animation: scrollArrow 1.8s infinite ease-in-out;
}

.scroll-indicator span:last-child {
  animation-delay: 0.2s;
}

.section,
.countdown,
.schedule-section,
.gift-section,
.chat-section,
.footer-card {
  background: var(--paper);
  color: var(--ink);
}

.section {
  padding: 76px 24px;
}

.section h2,
.countdown h2,
.footer-card h2 {
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.12;
  text-align: center;
}

.ornament {
  margin: 0 0 12px;
  color: var(--gold-deep);
  font-size: 28px;
  text-align: center;
}

.lead,
.address,
.place,
.footer-card p {
  margin: 12px auto 0;
  max-width: 82%;
  font-size: clamp(17px, 2.2vw, 24px);
  line-height: 1.82;
  color: #2a2f39;
  text-align: center;
}

.place {
  margin-top: 6px;
  margin-bottom: 2px;
  line-height: 1.35;
}

.address {
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.45;
}

.month-line {
  border-bottom: 1px solid rgba(29, 36, 48, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin: 20px auto 26px;
  max-width: 88%;
  padding-bottom: 8px;
}

.script {
  font-family: "Great Vibes", cursive;
  font-size: clamp(42px, 5vw, 66px);
}

.year {
  font-size: clamp(30px, 4vw, 48px);
  font-style: italic;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px 10px;
  font-size: clamp(15px, 2vw, 22px);
  color: #2e3340;
  max-width: 88%;
  margin: 0 auto;
}

.date-section h2 {
  max-width: 92%;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(22px, 3.5vw, 40px);
  line-height: 1.08;
  letter-spacing: 0.08em;
}

.location-title {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-inline: 0;
  text-align: center;
  white-space: normal;
  font-size: clamp(9px, 1.05vw, 13px);
  line-height: 1.02;
  letter-spacing: 0;
}

.location-title span {
  display: block;
  text-align: center;
  white-space: nowrap;
  line-height: 1;
  width: 100%;
}

.location-title span:first-child {
  font-size: 0.6em;
  letter-spacing: 0;
  white-space: nowrap;
}

.location-title span + span {
  margin-top: 0.14em;
}

.location-title span:last-child {
  font-size: 0.82em;
  letter-spacing: 0.005em;
}

.date-section .month-line {
  margin: 14px auto 18px;
  max-width: 92%;
}

.date-section .calendar {
  max-width: 92%;
  gap: 10px 8px;
  font-size: clamp(14px, 1.8vw, 20px);
}

.day {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.special {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 56px;
  margin: 0 auto;
  z-index: 1;
}

.special::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 56px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 60'%3E%3Cpath d='M32 55c-.9 0-1.8-.3-2.5-1C20.2 46.7 6 36.2 6 21.5 6 12.9 12.9 6 21.5 6c4.1 0 8.1 1.6 10.9 4.4L32 10.9l-.4-.5C28.8 7.6 24.8 6 20.7 6 12.1 6 5.2 12.9 5.2 21.5c0 14.8 14.2 25.2 23.5 32.5.8.7 1.8 1 2.8 1s2-.3 2.8-1C43.6 46.7 57.8 36.2 57.8 21.5 57.8 12.9 50.9 6 42.3 6c-4.1 0-8.1 1.6-10.9 4.4l-.4.5-.4-.5C27.8 7.6 23.8 6 19.7 6' fill='none' stroke='%23c9a33d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  z-index: -1;
}

.map {
  display: block;
  margin: 22px auto 0;
  width: 100%;
  max-width: 760px;
  height: 320px;
  border: 0;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

.gold-btn,
.link-btn {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  border: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-2));
  color: #fff;
  letter-spacing: 0.08em;
  text-decoration: none;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(159, 126, 45, 0.25);
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
  min-width: 220px;
  text-align: center;
}

.link-btn {
  display: block;
  width: fit-content;
  margin: 28px auto 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 15px 40px;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)) padding-box,
    linear-gradient(90deg, #8f6f1f 0%, #caa34a 52%, #e8d08a 100%) border-box;
  color: #f8f2e4;
  box-shadow:
    0 10px 22px rgba(141, 108, 27, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
  letter-spacing: 0.14em;
  background-clip: padding-box, border-box;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.gold-btn:hover,
.link-btn:hover,
.gold-btn:focus-visible,
.link-btn:focus-visible {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 16px 34px rgba(141, 108, 27, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  filter: saturate(1.08) brightness(1.03);
}

.link-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.28) 50%, transparent 100%);
  transform: translateX(-120%);
  transition: transform 700ms ease;
}

.link-btn:hover::after,
.link-btn:focus-visible::after {
  transform: translateX(120%);
}

.countdown {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(248, 243, 234, 0.96), rgba(241, 233, 220, 0.96)),
    url("https://images.unsplash.com/photo-1520854221256-17451cc331bf?auto=format&fit=crop&w=1400&q=80") center/cover;
  padding-top: 76px;
  padding-bottom: 62px;
}

.countdown::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(252, 250, 246, 0.96));
  pointer-events: none;
}

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

.countdown h2 {
  font-size: clamp(28px, 3.8vw, 46px);
  letter-spacing: 0.09em;
  max-width: 92%;
  margin: 0 auto 26px;
  color: var(--ink);
}

.countdown h2 span {
  display: block;
}

.timer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 78%;
  margin: 0 auto;
  text-align: center;
}

.timer div {
  padding: 14px 8px 12px;
  border-radius: 22px;
  background: rgba(255, 252, 246, 0.88);
  border: 1px solid rgba(159, 126, 45, 0.18);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.06);
}

.timer b {
  display: block;
  font-size: clamp(24px, 3.8vw, 42px);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  min-width: 2.2ch;
  margin: 0 auto;
  text-align: center;
  color: var(--ink);
}

.timer span {
  display: block;
  margin-top: 6px;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #474d5b;
  text-transform: uppercase;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  margin: 18px auto 22px;
  padding: 14px 12px 12px;
  max-width: 92%;
  border-radius: 20px;
  background: rgba(255, 252, 246, 0.64);
  border: 1px solid rgba(159, 126, 45, 0.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.timeline strong {
  display: block;
  font-size: clamp(34px, 4.7vw, 56px);
  font-style: italic;
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
}

.timeline span {
  display: block;
  margin-top: 6px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(14px, 1.9vw, 21px);
  letter-spacing: 0.08em;
  font-weight: 600;
  color: #2a2f39;
  text-transform: uppercase;
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
}

.event-icon {
  display: block;
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  padding: 9px;
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.92);
  border: 1px solid rgba(159, 126, 45, 0.26);
  fill: none;
  stroke: #8b6821;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.98;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

.schedule-section {
  position: relative;
  background: var(--paper);
  background-image: var(--schedule-bg-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.schedule-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(252, 250, 246, 0.96)),
    rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.schedule-section > * {
  position: relative;
  z-index: 1;
}

.gift-card {
  margin: 26px auto 0;
  max-width: 720px;
  border: 1px solid rgba(159, 126, 45, 0.32);
  border-radius: 22px;
  padding: 24px 18px 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.card-number {
  font-family: "Manrope", sans-serif;
  font-size: clamp(18px, 4.6vw, 34px);
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.08em;
  line-height: 1.2;
  white-space: nowrap;
  overflow-wrap: normal;
  text-align: center;
}

.owner {
  font-family: "Manrope", sans-serif;
  font-size: clamp(13px, 1.8vw, 18px);
  color: #5c5d62;
  margin: 8px auto 0;
  width: 100%;
  text-align: center;
}

.link-btn {
  min-width: 220px;
}

.gift-section .gold-btn {
  display: block;
  width: fit-content;
  min-width: 0;
  margin: 20px auto 0;
  padding: 13px 28px;
  letter-spacing: 0.1em;
  font-size: 14px;
}

.gift-section h2,
.chat-section h2 {
  margin-bottom: 18px;
}

.chat-section h2 {
  display: block;
  width: 100%;
  max-width: 92%;
  margin: 0 auto 18px;
  font-size: clamp(24px, 3.6vw, 42px);
  letter-spacing: 0.04em;
  text-align: center;
  white-space: normal;
  line-height: 1.08;
}

.chat-section h2 span {
  display: block;
  white-space: nowrap;
  line-height: 1.02;
}

.chat-section h2 span + span {
  margin-top: 0.06em;
}

.chat-section h2 span:last-child {
  font-size: 0.9em;
  letter-spacing: 0.03em;
}

.gift-section .lead,
.chat-section .lead {
  max-width: 84%;
  margin-top: 0;
}

.chat-section {
  padding-top: 34px;
  padding-bottom: 92px;
}

.chat-section .gold-btn {
  margin-top: 26px;
}

.footer-card {
  position: relative;
  min-height: 700px;
  display: grid;
  place-items: center;
  padding: 120px 24px 110px;
  background: var(--paper);
  background-image: var(--footer-bg-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

.footer-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(252, 250, 246, 0.96)),
    rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.footer-card > * {
  position: relative;
  z-index: 1;
}

.footer-card h2 {
  font-size: clamp(42px, 5.4vw, 66px);
  letter-spacing: 0.1em;
  margin-bottom: 22px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.26);
}

.footer-card p {
  max-width: 86%;
  font-size: clamp(18px, 2.5vw, 30px);
  line-height: 1.65;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.24);
}

.footer-actions {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 16px;
}

.attend-btn {
  min-width: 240px;
  letter-spacing: 0.12em;
  transition: transform 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
}

.attend-btn.attending {
  pointer-events: none;
  opacity: 0.95;
  transform: scale(1.02);
}

.footer-card.confirmed .attend-btn {
  background: linear-gradient(90deg, #8f6f1f, #caa34a, #e8d08a);
  box-shadow: 0 16px 32px rgba(141, 108, 27, 0.28);
}

.rsvp-particle-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.rsvp-particle {
  position: absolute;
  left: var(--x, 50%);
  bottom: 120px;
  width: var(--size, 10px);
  height: var(--size, 10px);
  opacity: 0;
  transform: translate(-50%, 0) scale(0.4);
  animation: rsvpBurst var(--dur, 1200ms) ease-out forwards;
  animation-delay: var(--delay, 0ms);
}

.rsvp-particle::before,
.rsvp-particle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
}

.rsvp-particle::before {
  background: radial-gradient(circle, rgba(242, 223, 156, 1), rgba(215, 179, 93, 0.15) 55%, transparent 72%);
  box-shadow: 0 0 18px rgba(215, 179, 93, 0.35);
}

.rsvp-particle::after {
  background:
    linear-gradient(45deg, transparent 42%, rgba(242, 223, 156, 1) 42%, rgba(242, 223, 156, 1) 58%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, rgba(242, 223, 156, 1) 42%, rgba(242, 223, 156, 1) 58%, transparent 58%);
  transform: rotate(0deg);
  opacity: 0.9;
}

@keyframes rsvpBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.4);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx, 0px)), var(--dy, -180px)) scale(1.2);
  }
}

.footer-card::after {
  content: "*";
  display: block;
  margin-top: 26px;
  color: var(--gold);
  font-size: 36px;
  text-align: center;
}

.hidden {
  display: none;
}

.music-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-2));
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
  z-index: 50;
}

.music-toggle.paused {
  opacity: 0.75;
}

#invitationContent {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  transition: opacity 1100ms ease, transform 1100ms ease;
}

#invitationContent.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes envelopeFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes scrollArrow {
  0% {
    opacity: 0.18;
    transform: rotate(45deg) translate(-2px, -2px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.18;
    transform: rotate(45deg) translate(2px, 2px);
  }
}

@keyframes pigeonFly {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }
  10% {
    opacity: 1;
  }
  45% {
    opacity: 1;
    transform: translate(calc(-50% + var(--mx, 0px)), calc(-50% + var(--my, -120px))) scale(0.78) rotate(calc(var(--rot, 0deg) * 0.5));
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1) rotate(var(--rot, 0deg));
  }
}

@media (max-width: 900px) {
  .card {
    border-radius: 28px;
  }

  .hero-stage {
    min-height: 84vh;
  }

  .hero-orb-a {
    width: 220px;
    height: 220px;
  }

  .hero-orb-b {
    width: 220px;
    height: 220px;
  }
}

@media (max-width: 500px) {
  .page {
    width: min(100%, 100vw);
    padding-top: 0;
  }

  .card {
    width: 100%;
    border-radius: 0;
  }

  .hero {
    min-height: 100vh;
    padding: 16px 10px;
  }

  .hero-stage {
    min-height: 86vh;
    gap: 12px;
    padding: 12px 10px;
  }

  .hero-badge {
    letter-spacing: 0.18em;
    font-size: 11px;
    padding: 9px 14px;
  }

  .hero-title,
  .section h2,
  .countdown h2,
  .footer-card h2 {
    font-size: 24px;
  }

  .hero-title {
    font-size: clamp(20px, 6.5vw, 32px);
    letter-spacing: 0.01em;
    line-height: 1.02;
    max-width: 100%;
    transform: none;
  }

  .hero-title span {
    white-space: nowrap;
  }

  .hero-title span:last-child {
    font-size: 0.88em;
    letter-spacing: 0.015em;
  }

  .chat-section h2 {
    font-size: clamp(20px, 6vw, 28px);
    letter-spacing: 0.02em;
    max-width: 94%;
  }

  .chat-section h2 span:last-child {
    font-size: 0.88em;
    letter-spacing: 0.015em;
  }

  .hero-subtitle {
    max-width: 92%;
    font-size: 12px;
    line-height: 1.65;
  }

  .hero-subtitle {
    font-size: 13px;
    line-height: 1.7;
  }

  .envelope {
    width: 280px;
    height: 170px;
  }

  .envelope-btn {
    padding: 14px 16px 12px;
  }

  .envelope-scene {
    animation: none;
  }

  .paper-content {
    font-size: 42px;
  }

  .seal {
    width: 74px;
    height: 74px;
    font-size: 50px;
  }

  .cover-photo,
  .cover-overlay {
    min-height: 620px;
  }

  .cover-names {
    max-width: 88%;
    padding: 0;
    font-size: 58px;
  }

  .lead,
  .address,
  .place,
  .footer-card p {
    font-size: 17px;
    line-height: 1.72;
    max-width: 92%;
  }

  .place {
    margin-top: 4px;
    margin-bottom: 1px;
    line-height: 1.3;
  }

  .address {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.35;
  }

  .section {
    padding: 58px 16px;
  }

  .calendar {
    font-size: 15px;
    max-width: 100%;
    gap: 10px 6px;
  }

  .date-section h2 {
    font-size: 20px;
    letter-spacing: 0.05em;
    line-height: 1.1;
  }

  .location-title {
    width: 100%;
    max-width: 92%;
    padding-inline: 0;
    font-size: clamp(8px, 3vw, 11px);
  }

  .location-title span:first-child {
    font-size: 0.58em;
    letter-spacing: 0;
  }

  .location-title span:last-child {
    font-size: 0.78em;
    letter-spacing: 0.004em;
  }

  .date-section .script {
    font-size: 24px;
  }

  .date-section .year {
    font-size: 20px;
  }

  .timer {
    max-width: 94%;
    gap: 8px;
  }

  .timer div {
    padding: 12px 6px 10px;
    border-radius: 18px;
  }

  .timer b {
    font-size: 20px;
  }

  .timeline strong {
    font-size: 42px;
  }

  .timeline span {
    font-size: 15px;
    letter-spacing: 0.07em;
  }

  .event-icon {
    width: 36px;
    height: 36px;
    padding: 7px;
  }

  .gift-card {
    max-width: 100%;
    padding: 20px 14px 20px;
  }

  .card-number {
    font-size: clamp(16px, 5.2vw, 24px);
    letter-spacing: 0.06em;
  }

  .gift-section .gold-btn {
    padding: 12px 22px;
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .gold-btn,
  .link-btn {
    font-size: 13px;
    padding: 13px 22px;
    min-width: 190px;
  }

  .card-number {
    font-size: 20px;
    letter-spacing: 0.08em;
  }

  .footer-card {
    min-height: 620px;
    padding-top: 92px;
    padding-bottom: 90px;
  }
}
