:root {
  --bg-primary: #12081f;
  --bg-secondary: #09030f;
  --gold-accent: #d6a85c;
  --text-soft: #f5f1ea;
  --card-border: rgba(214, 168, 92, 0.32);
  --card-bg: rgba(255, 255, 255, 0.05);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(214, 168, 92, 0.16), transparent 30%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  color: var(--text-soft);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.loader-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background:
    radial-gradient(circle at top, rgba(214, 168, 92, 0.18), transparent 35%),
    linear-gradient(180deg, #12081f 0%, #09030f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.loader-box {
  width: 100%;
  max-width: 420px;
  text-align: center;
  color: #f5f1ea;
}

.loader-title {
  font-size: 1.5rem;
  letter-spacing: 1px;
  margin-bottom: 24px;
  color: #f5f1ea;
  text-shadow: 0 0 18px rgba(214, 168, 92, 0.5);
}

.loader-bar {
  width: 100%;
  height: 18px;
  border: 2px solid rgba(214, 168, 92, 0.8);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(214, 168, 92, 0.25);
}

.loader-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #d6a85c, #fff1b8);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.loader-tip {
  margin-top: 18px;
  font-size: 0.95rem;
  color: rgba(245, 241, 234, 0.78);
}

.app-wrapper {
  min-height: 100vh;
  display: none;
  width: 100%;
}

.app-wrapper.is-ready {
  display: flex;
}

.audio-toggle {
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 1000;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(214, 168, 92, 0.65);
  background: linear-gradient(180deg, rgba(214, 168, 92, 0.25), rgba(214, 168, 92, 0.08));
  color: #f5f1ea;
  box-shadow: 0 0 18px rgba(214, 168, 92, 0.22);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.audio-toggle.is-visible {
  display: inline-flex;
}

.audio-toggle.is-playing {
  border-color: rgba(255, 241, 184, 0.95);
  box-shadow:
    0 0 18px rgba(214, 168, 92, 0.45),
    0 0 32px rgba(216, 154, 158, 0.2);
}

.audio-toggle:focus {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(214, 168, 92, 0.25),
    0 0 22px rgba(214, 168, 92, 0.35);
}

.cover-screen,
.main-menu-screen {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  padding: 32px 16px;
  display: none;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top, rgba(214, 168, 92, 0.2), transparent 32%),
    radial-gradient(circle at bottom, rgba(216, 154, 158, 0.16), transparent 35%),
    linear-gradient(180deg, #12081f 0%, #08030d 100%);
  color: #f5f1ea;
}

.cover-screen.is-active,
.main-menu-screen.is-active {
  display: flex;
}

.cover-bg-glow {
  position: absolute;
  inset: auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(214, 168, 92, 0.14);
  filter: blur(48px);
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.cover-shell {
  position: relative;
  z-index: 2;
  width: min(100%, 560px);
  padding: 28px 24px;
  border-radius: 28px;
  border: 1px solid rgba(214, 168, 92, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  box-shadow:
    0 22px 64px rgba(0, 0, 0, 0.34),
    inset 0 0 22px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  text-align: center;
  animation: softAppear 0.9s ease both;
}

.cover-kicker {
  margin: 0 0 10px;
  color: rgba(255, 241, 184, 0.74);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cover-date {
  margin: 0 0 18px;
  color: #d6a85c;
  font-size: 1rem;
}

.cover-couple-title {
  margin: 0 0 24px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  color: #fff4d1;
  text-shadow:
    0 0 16px rgba(214, 168, 92, 0.42),
    0 0 28px rgba(216, 154, 158, 0.16);
}

.cover-name {
  font-size: clamp(2.4rem, 11vw, 4.4rem);
  line-height: 1;
  font-weight: 600;
}

.cover-ampersand {
  font-size: clamp(1.8rem, 7vw, 2.8rem);
  line-height: 1;
  color: rgba(255, 241, 184, 0.88);
}

.cover-guest-card,
.cover-address-card {
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(214, 168, 92, 0.22);
  background: rgba(9, 3, 15, 0.42);
}

.cover-label {
  margin: 0 0 8px;
  color: rgba(255, 241, 184, 0.76);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cover-guest-name {
  margin: 0;
  color: #fff1b8;
  font-size: 1.24rem;
  line-height: 1.45;
}

.cover-address {
  margin: 0;
  color: rgba(245, 241, 234, 0.82);
  line-height: 1.7;
}

.cover-enter-btn {
  width: 100%;
  min-height: 56px;
  margin-top: 6px;
  padding: 14px 18px;
  border: 1px solid rgba(214, 168, 92, 0.56);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(214, 168, 92, 0.28), rgba(214, 168, 92, 0.12));
  color: #fff7de;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.cover-enter-btn:hover,
.cover-enter-btn:focus {
  outline: none;
  border-color: rgba(255, 241, 184, 0.95);
  box-shadow:
    0 0 20px rgba(214, 168, 92, 0.24),
    0 14px 34px rgba(0, 0, 0, 0.22);
}

.menu-bg-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(214, 168, 92, 0.16);
  filter: blur(40px);
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

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

.ambient-beam {
  position: absolute;
  display: block;
  border-radius: 999px;
  opacity: 0.5;
  filter: blur(20px);
  animation: ambientFloat 8s ease-in-out infinite;
}

.ambient-beam-one {
  width: 160px;
  height: 44px;
  top: 14%;
  left: 4%;
  background: linear-gradient(90deg, rgba(214, 168, 92, 0), rgba(214, 168, 92, 0.26), rgba(214, 168, 92, 0));
  transform: rotate(-18deg);
}

.ambient-beam-two {
  width: 220px;
  height: 54px;
  right: -48px;
  bottom: 18%;
  background: linear-gradient(90deg, rgba(216, 154, 158, 0), rgba(216, 154, 158, 0.22), rgba(216, 154, 158, 0));
  transform: rotate(24deg);
  animation-delay: 1.5s;
}

.ambient-beam-three {
  width: 120px;
  height: 34px;
  left: 10%;
  bottom: 10%;
  background: linear-gradient(90deg, rgba(255, 241, 184, 0), rgba(255, 241, 184, 0.18), rgba(255, 241, 184, 0));
  transform: rotate(14deg);
  animation-delay: 2.5s;
}

@keyframes ambientFloat {
  0%,
  100% {
    margin-top: 0;
  }

  50% {
    margin-top: -18px;
  }
}

.floating-petals {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.floating-petals span {
  position: absolute;
  top: -10%;
  color: rgba(255, 241, 184, 0.55);
  font-size: 1rem;
  animation: petalFall 9s linear infinite;
}

.floating-petals span:nth-child(1) {
  left: 12%;
  animation-delay: 0s;
}

.floating-petals span:nth-child(2) {
  left: 32%;
  animation-delay: 2s;
  font-size: 1.2rem;
}

.floating-petals span:nth-child(3) {
  left: 54%;
  animation-delay: 4s;
}

.floating-petals span:nth-child(4) {
  left: 76%;
  animation-delay: 1s;
  font-size: 1.1rem;
}

.floating-petals span:nth-child(5) {
  left: 90%;
  animation-delay: 5s;
}

@keyframes petalFall {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  100% {
    transform: translateY(110vh) rotate(240deg);
    opacity: 0;
  }
}

.menu-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 620px;
  text-align: center;
}

.wedding-emblem {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 18px;
  border: 1px solid rgba(214, 168, 92, 0.5);
  border-radius: 999px;
  color: #d6a85c;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  letter-spacing: 1px;
  box-shadow: 0 0 18px rgba(214, 168, 92, 0.16);
}

.couple-title {
  margin: 0;
  font-size: clamp(2.2rem, 10vw, 4rem);
  line-height: 1;
  color: #f5f1ea;
  text-shadow:
    0 0 14px rgba(214, 168, 92, 0.5),
    0 0 32px rgba(216, 154, 158, 0.25);
}

.guest-greeting {
  margin: 14px 0 24px;
  color: rgba(245, 241, 234, 0.78);
  font-size: 1rem;
}

.menu-panel {
  position: relative;
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(214, 168, 92, 0.42);
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.35),
    inset 0 0 20px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
}

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

.menu-panel::before,
.menu-panel::after {
  content: "\2726";
  position: absolute;
  color: #d6a85c;
  font-size: 1rem;
  top: 10px;
}

.menu-panel::before {
  left: 14px;
}

.menu-panel::after {
  right: 14px;
}

.menu-panel::before,
.menu-panel::after {
  text-shadow: 0 0 14px rgba(214, 168, 92, 0.8);
}

.menu-panel .corner-decoration {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: rgba(214, 168, 92, 0.75);
  pointer-events: none;
}

.menu-panel .corner-top-left {
  top: 12px;
  left: 12px;
  border-top: 2px solid;
  border-left: 2px solid;
  border-radius: 8px 0 0 0;
}

.menu-panel .corner-top-right {
  top: 12px;
  right: 12px;
  border-top: 2px solid;
  border-right: 2px solid;
  border-radius: 0 8px 0 0;
}

.menu-panel .corner-bottom-left {
  bottom: 12px;
  left: 12px;
  border-bottom: 2px solid;
  border-left: 2px solid;
  border-radius: 0 0 0 8px;
}

.menu-panel .corner-bottom-right {
  bottom: 12px;
  right: 12px;
  border-bottom: 2px solid;
  border-right: 2px solid;
  border-radius: 0 0 8px 0;
}

.game-menu-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 0;
  margin-bottom: 0;
  padding: 16px 14px;
  border: 1px solid rgba(214, 168, 92, 0.55);
  border-radius: 20px;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at top, rgba(255, 241, 184, 0.14), transparent 46%),
    linear-gradient(180deg, rgba(214, 168, 92, 0.22), rgba(214, 168, 92, 0.08));
  color: #f5f1ea;
  font-weight: 600;
  letter-spacing: 0.3px;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  gap: 10px;
  box-shadow: 0 0 16px rgba(214, 168, 92, 0.12);
  opacity: 1;
  will-change: transform, opacity;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.main-menu-screen.is-menu-animated .game-menu-btn {
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  animation: menuButtonEnter 0.56s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--menu-delay, 0ms);
}

.game-menu-btn:hover,
.game-menu-btn:focus {
  transform: translateY(-2px);
  border-color: rgba(255, 231, 178, 0.9);
  box-shadow: 0 0 24px rgba(214, 168, 92, 0.35);
  outline: none;
}

.game-menu-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 241, 184, 0.22), transparent);
  transform: skewX(-20deg);
  animation: buttonShimmer 4s ease-in-out infinite;
}

@keyframes menuButtonEnter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes buttonShimmer {
  0%,
  60% {
    left: -120%;
  }

  100% {
    left: 140%;
  }
}

.game-menu-btn.is-clicking {
  transform: scale(0.96);
  border-color: rgba(255, 241, 184, 1);
  box-shadow:
    0 0 18px rgba(214, 168, 92, 0.65),
    0 0 34px rgba(216, 154, 158, 0.28);
}

.menu-btn-text {
  display: block;
  max-width: 100%;
  font-size: 0.92rem;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
}

.menu-card-wide {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  min-height: 112px;
  grid-template-rows: none;
  grid-template-columns: 40px 1fr;
  justify-items: start;
  align-items: center;
  text-align: left;
  padding: 18px 20px;
}

.menu-card-wide .menu-btn-text {
  text-align: left;
}

.menu-card-couple {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 241, 184, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(92, 52, 82, 0.5), rgba(214, 168, 92, 0.1));
}

.menu-card-event {
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 241, 184, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(72, 46, 94, 0.56), rgba(214, 168, 92, 0.08));
}

.menu-card-map {
  background:
    radial-gradient(circle at 24% 78%, rgba(255, 241, 184, 0.12), transparent 32%),
    linear-gradient(145deg, rgba(37, 74, 82, 0.5), rgba(214, 168, 92, 0.08));
}

.menu-card-gallery {
  background:
    radial-gradient(circle at 82% 22%, rgba(255, 241, 184, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(98, 52, 70, 0.56), rgba(214, 168, 92, 0.08));
}

.menu-card-rsvp {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 241, 184, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(79, 60, 32, 0.56), rgba(214, 168, 92, 0.1));
}

.menu-card-guestbook {
  background:
    radial-gradient(circle at 80% 80%, rgba(255, 241, 184, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(78, 47, 94, 0.54), rgba(214, 168, 92, 0.08));
}

.menu-card-gift {
  background:
    radial-gradient(circle at 12% 24%, rgba(255, 241, 184, 0.18), transparent 32%),
    linear-gradient(145deg, rgba(102, 74, 28, 0.62), rgba(214, 168, 92, 0.12));
}

.menu-ripple {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 241, 184, 0.35);
  transform: scale(0);
  animation: menuRipple 0.65s ease-out forwards;
  pointer-events: none;
}

@keyframes menuRipple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.menu-click-sparkle {
  position: fixed;
  z-index: 999;
  pointer-events: none;
  color: rgba(255, 241, 184, 0.9);
  font-size: 0.8rem;
  animation: menuSparkleBurst 0.75s ease-out forwards;
}

@keyframes menuSparkleBurst {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.5) rotate(0deg);
  }

  25% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(var(--spark-x), var(--spark-y)) scale(1.35) rotate(120deg);
  }
}

.game-menu-btn[disabled] {
  opacity: 0.85;
}

.menu-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 1.25rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.wedding-emblem,
.couple-title,
.guest-greeting,
.menu-panel {
  animation: softAppear 0.8s ease both;
}

.menu-panel {
  animation-delay: 0.15s;
}

@keyframes softAppear {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.screen-sparkle {
  position: fixed;
  z-index: 3;
  pointer-events: none;
  color: rgba(255, 241, 184, 0.65);
  font-size: 0.85rem;
  animation: sparkleFade 1.6s ease forwards;
}

@keyframes sparkleFade {
  0% {
    opacity: 0;
    transform: scale(0.6) rotate(0deg);
  }

  25% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: scale(1.4) rotate(90deg);
  }
}

.quest-section {
  display: none;
  min-height: 100vh;
  width: 100%;
  padding: 28px 16px 104px;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top, rgba(214, 168, 92, 0.16), transparent 34%),
    linear-gradient(180deg, #12081f 0%, #08030d 100%);
  color: #f5f1ea;
}

.quest-section.is-active {
  display: flex;
  animation: sectionBackdropFade 0.32s ease both;
}

.couple-section-shell,
.event-section-shell,
.map-section-shell,
.gallery-section-shell,
.rsvp-section-shell,
.guestbook-section-shell,
.gift-section-shell {
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

@keyframes sectionBackdropFade {
  from {
    opacity: 0.01;
  }

  to {
    opacity: 1;
  }
}

.couple-section-shell {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.couple-section-hero {
  text-align: center;
  margin-bottom: 24px;
}

.section-kicker {
  margin: 0 0 10px;
  color: rgba(214, 168, 92, 0.9);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.quest-section.is-section-animated .section-kicker {
  animation: sectionKickerEnter 0.5s ease both;
}

.couple-section-title {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.1rem);
  line-height: 1.05;
  color: #fff1b8;
  text-shadow: 0 0 18px rgba(214, 168, 92, 0.28);
}

.quest-section.is-section-animated .couple-section-title,
.quest-section.is-section-animated .event-section-title,
.quest-section.is-section-animated .map-section-title,
.quest-section.is-section-animated .gallery-section-title,
.quest-section.is-section-animated .rsvp-section-title,
.quest-section.is-section-animated .guestbook-section-title,
.quest-section.is-section-animated .gift-section-title {
  animation:
    sectionTitleEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) both,
    titleDrift 5.8s ease-in-out 0.8s infinite;
}

.quest-section.is-section-animated .couple-section-intro,
.quest-section.is-section-animated .event-section-intro,
.quest-section.is-section-animated .map-section-intro,
.quest-section.is-section-animated .gallery-section-intro,
.quest-section.is-section-animated .rsvp-section-intro,
.quest-section.is-section-animated .guestbook-section-intro,
.quest-section.is-section-animated .gift-section-intro {
  animation: sectionCopyEnter 0.7s ease 0.12s both;
}

.quest-section.is-section-animated .couple-portrait-frame,
.quest-section.is-section-animated .profile-card,
.quest-section.is-section-animated .timeline-item,
.quest-section.is-section-animated .countdown-panel,
.quest-section.is-section-animated .event-card,
.quest-section.is-section-animated .map-frame,
.quest-section.is-section-animated .gallery-item,
.quest-section.is-section-animated .rsvp-form-card,
.quest-section.is-section-animated .guestbook-form-card,
.quest-section.is-section-animated .guestbook-list-card,
.quest-section.is-section-animated .gift-account-card,
.quest-section.is-section-animated .gift-qr-card {
  animation:
    sectionCardEnter 0.72s cubic-bezier(0.22, 1, 0.36, 1) both,
    subtleFloat 7.2s ease-in-out 0.95s infinite;
}

.quest-section.is-section-animated .profile-card:nth-child(1),
.quest-section.is-section-animated .timeline-item:nth-child(1),
.quest-section.is-section-animated .event-card:nth-child(1),
.quest-section.is-section-animated .gallery-item:nth-child(1),
.quest-section.is-section-animated .gift-account-card:nth-child(1) {
  animation-delay: 0.14s, 1s;
}

.quest-section.is-section-animated .profile-card:nth-child(2),
.quest-section.is-section-animated .timeline-item:nth-child(2),
.quest-section.is-section-animated .event-card:nth-child(2),
.quest-section.is-section-animated .gallery-item:nth-child(2),
.quest-section.is-section-animated .gift-account-card:nth-child(2) {
  animation-delay: 0.22s, 1.08s;
}

.quest-section.is-section-animated .timeline-item:nth-child(3),
.quest-section.is-section-animated .event-card:nth-child(3),
.quest-section.is-section-animated .gallery-item:nth-child(3) {
  animation-delay: 0.3s, 1.16s;
}

.quest-section.is-section-animated .gallery-item:nth-child(4) {
  animation-delay: 0.38s, 1.24s;
}

.quest-section.is-section-animated .countdown-panel,
.quest-section.is-section-animated .map-frame,
.quest-section.is-section-animated .rsvp-form-card,
.quest-section.is-section-animated .guestbook-form-card,
.quest-section.is-section-animated .guestbook-list-card,
.quest-section.is-section-animated .gift-qr-card,
.quest-section.is-section-animated .couple-portrait-frame {
  animation-delay: 0.18s, 1s;
}

.couple-section-intro {
  max-width: 620px;
  margin: 14px auto 0;
  color: rgba(245, 241, 234, 0.82);
  line-height: 1.75;
}

.couple-portrait {
  margin-bottom: 20px;
}

.couple-portrait-frame {
  position: relative;
  min-height: 260px;
  padding: 28px 24px 24px;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(214, 168, 92, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(214, 168, 92, 0.42);
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.35),
    inset 0 0 24px rgba(255, 255, 255, 0.04);
}

.portrait-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 168, 92, 0.22), transparent 68%);
  filter: blur(8px);
}

.portrait-monogram {
  position: relative;
  z-index: 1;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 241, 184, 0.55);
  background: rgba(255, 255, 255, 0.06);
  color: #fff1b8;
  font-size: 1.9rem;
  font-weight: 700;
  box-shadow:
    0 0 22px rgba(214, 168, 92, 0.22),
    inset 0 0 18px rgba(255, 255, 255, 0.04);
}

.portrait-caption {
  position: relative;
  z-index: 1;
  margin: 16px 0 0;
  color: rgba(245, 241, 234, 0.78);
}

.portrait-mark {
  position: absolute;
  width: 32px;
  height: 32px;
  border-color: rgba(214, 168, 92, 0.8);
}

.portrait-mark-top-left {
  top: 16px;
  left: 16px;
  border-top: 2px solid;
  border-left: 2px solid;
  border-radius: 10px 0 0 0;
}

.portrait-mark-top-right {
  top: 16px;
  right: 16px;
  border-top: 2px solid;
  border-right: 2px solid;
  border-radius: 0 10px 0 0;
}

.portrait-mark-bottom-left {
  bottom: 16px;
  left: 16px;
  border-bottom: 2px solid;
  border-left: 2px solid;
  border-radius: 0 0 0 10px;
}

.portrait-mark-bottom-right {
  right: 16px;
  bottom: 16px;
  border-right: 2px solid;
  border-bottom: 2px solid;
  border-radius: 0 0 10px 0;
}

.profile-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

.profile-card {
  padding: 22px 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(214, 168, 92, 0.34);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

.profile-role {
  margin: 0 0 8px;
  color: rgba(214, 168, 92, 0.9);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.profile-name {
  margin: 0 0 10px;
  color: #fff1b8;
  font-size: 1.45rem;
}

.profile-copy {
  margin: 0;
  color: rgba(245, 241, 234, 0.8);
  line-height: 1.7;
}

.story-timeline {
  padding: 22px 20px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(214, 168, 92, 0.34);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

.timeline-heading {
  text-align: center;
  margin-bottom: 18px;
}

.timeline-title {
  margin: 0 0 8px;
  color: #fff1b8;
  font-size: 1.3rem;
}

.timeline-copy {
  margin: 0;
  color: rgba(245, 241, 234, 0.76);
}

.timeline-list {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.timeline-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  background: rgba(214, 168, 92, 0.18);
  border: 1px solid rgba(214, 168, 92, 0.45);
  color: #fff1b8;
  font-weight: 700;
}

.timeline-body {
  padding-top: 2px;
}

.timeline-year {
  margin: 0 0 6px;
  color: #f5f1ea;
  font-weight: 600;
}

.timeline-text {
  margin: 0;
  color: rgba(245, 241, 234, 0.78);
  line-height: 1.7;
}

.event-section-shell {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
}

.event-section-hero {
  text-align: center;
  margin-bottom: 24px;
}

.event-section-title {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.1rem);
  line-height: 1.05;
  color: #fff1b8;
  text-shadow: 0 0 18px rgba(214, 168, 92, 0.28);
}

.event-section-intro {
  max-width: 640px;
  margin: 14px auto 0;
  color: rgba(245, 241, 234, 0.82);
  line-height: 1.75;
}

.countdown-panel {
  padding: 22px 20px;
  border-radius: 28px;
  margin-bottom: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(214, 168, 92, 0.36);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

.countdown-heading {
  text-align: center;
  margin-bottom: 18px;
}

.countdown-label {
  margin: 0 0 8px;
  color: #fff1b8;
  font-size: 1.15rem;
  font-weight: 600;
}

.countdown-subtitle {
  margin: 0;
  color: rgba(245, 241, 234, 0.74);
}

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

.countdown-card {
  min-height: 104px;
  padding: 16px 12px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(214, 168, 92, 0.28);
}

.countdown-value {
  color: #fff1b8;
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
  text-shadow: 0 0 14px rgba(214, 168, 92, 0.28);
}

.countdown-unit {
  margin-top: 8px;
  color: rgba(245, 241, 234, 0.75);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.event-grid {
  display: grid;
  gap: 16px;
}

.event-card {
  padding: 22px 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(214, 168, 92, 0.34);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

.event-label {
  margin: 0 0 8px;
  color: rgba(214, 168, 92, 0.9);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.event-card-title {
  margin: 0 0 10px;
  color: #fff1b8;
  font-size: 1.35rem;
}

.event-card-copy {
  margin: 0;
  color: rgba(245, 241, 234, 0.8);
  line-height: 1.7;
}

.map-section-shell {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.map-section-hero {
  text-align: center;
  margin-bottom: 24px;
}

.map-section-title {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.1rem);
  line-height: 1.05;
  color: #fff1b8;
  text-shadow: 0 0 18px rgba(214, 168, 92, 0.28);
}

.map-section-intro {
  max-width: 640px;
  margin: 14px auto 0;
  color: rgba(245, 241, 234, 0.82);
  line-height: 1.75;
}

.map-details-card {
  margin-bottom: 20px;
  padding: 22px 20px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(214, 168, 92, 0.34);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
  text-align: center;
}

.map-label {
  margin: 0 0 8px;
  color: rgba(214, 168, 92, 0.9);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.map-venue-title {
  margin: 0 0 10px;
  color: #fff1b8;
  font-size: 1.45rem;
}

.map-address {
  margin: 0 0 18px;
  color: rgba(245, 241, 234, 0.8);
  line-height: 1.75;
}

.map-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(214, 168, 92, 0.55);
  background: linear-gradient(180deg, rgba(214, 168, 92, 0.24), rgba(214, 168, 92, 0.08));
  color: #f5f1ea;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 0 18px rgba(214, 168, 92, 0.18);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.map-link-btn:hover,
.map-link-btn:focus {
  transform: translateY(-2px);
  border-color: rgba(255, 241, 184, 0.95);
  box-shadow: 0 0 22px rgba(214, 168, 92, 0.28);
  color: #f5f1ea;
  outline: none;
}

.map-frame {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(214, 168, 92, 0.34);
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.35),
    inset 0 0 20px rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.04);
}

.map-embed {
  display: block;
  width: 100%;
  min-height: 340px;
  border: 0;
}

.gallery-section-shell {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

.gallery-section-hero {
  text-align: center;
  margin-bottom: 24px;
}

.gallery-section-title {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.1rem);
  line-height: 1.05;
  color: #fff1b8;
  text-shadow: 0 0 18px rgba(214, 168, 92, 0.28);
}

.gallery-section-intro {
  max-width: 640px;
  margin: 14px auto 0;
  color: rgba(245, 241, 234, 0.82);
  line-height: 1.75;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gallery-item {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
}

.gallery-frame {
  display: block;
  aspect-ratio: 4 / 5;
  padding: 10px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(214, 168, 92, 0.34);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

.gallery-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  contain: paint;
}

.gallery-caption {
  display: block;
  margin-top: 10px;
  color: rgba(245, 241, 234, 0.82);
  font-size: 0.95rem;
  text-align: center;
}

.gallery-item:hover .gallery-frame,
.gallery-item:focus .gallery-frame {
  border-color: rgba(255, 241, 184, 0.85);
  box-shadow: 0 0 24px rgba(214, 168, 92, 0.22);
}

.gallery-item:focus {
  outline: none;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding:
    max(16px, env(safe-area-inset-top))
    16px
    max(16px, env(safe-area-inset-bottom));
  background: rgba(9, 3, 15, 0.84);
  backdrop-filter: blur(10px);
}

.gallery-lightbox.is-open {
  display: flex;
}

.gallery-lightbox-dialog {
  position: relative;
  width: min(100%, 860px);
  max-height: 92vh;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  padding: 56px 16px 14px;
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(214, 168, 92, 0.34);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
}

.gallery-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(214, 168, 92, 0.5);
  background: rgba(18, 8, 31, 0.72);
  color: #f5f1ea;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.gallery-lightbox-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 18px;
}

.gallery-lightbox-title {
  margin: 12px 0 0;
  text-align: center;
  color: rgba(245, 241, 234, 0.86);
}

body.is-lightbox-open {
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .gallery-lightbox {
    align-items: stretch;
    padding:
      max(10px, env(safe-area-inset-top))
      10px
      max(10px, env(safe-area-inset-bottom));
  }

  .gallery-lightbox-dialog {
    width: 100%;
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 64px 12px 12px;
    border-radius: 20px;
  }

  .gallery-lightbox-close {
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    background: rgba(10, 4, 20, 0.88);
  }

  .gallery-lightbox-image {
    max-height: calc(100vh - 150px);
    max-height: calc(100dvh - 150px);
  }

  .gallery-lightbox-title {
    margin-top: 10px;
    font-size: 0.95rem;
  }
}

.rsvp-section-shell {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 0 40px;
  animation: sectionEnter 0.45s ease both;
}

.guestbook-embedded-block {
  margin-top: 26px;
}

.guestbook-section-hero-embedded {
  margin-bottom: 18px;
}

.rsvp-section-hero {
  margin-bottom: 22px;
}

.rsvp-section-title {
  margin: 0 0 10px;
  font-size: clamp(2rem, 7vw, 3.2rem);
  line-height: 1.02;
  color: #fff1b8;
  text-shadow: 0 0 18px rgba(214, 168, 92, 0.28);
}

.rsvp-section-intro {
  max-width: 640px;
  margin: 0;
  color: rgba(245, 241, 234, 0.8);
  font-size: 0.98rem;
  line-height: 1.75;
}

.rsvp-feed-card {
  margin-bottom: 18px;
  padding: 18px 18px 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(214, 168, 92, 0.28);
  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.22),
    inset 0 0 18px rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.rsvp-feed-header {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.rsvp-feed-title {
  margin: 0;
  color: #fff1b8;
  font-size: 1rem;
}

.rsvp-feed-copy {
  margin: 0;
  color: rgba(245, 241, 234, 0.72);
  font-size: 0.9rem;
  line-height: 1.6;
}

.rsvp-feed-marquee {
  position: relative;
  overflow: hidden;
  padding-bottom: 4px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.rsvp-feed-track {
  display: flex;
  gap: 12px;
  align-items: center;
  width: max-content;
  flex-wrap: nowrap;
}

.rsvp-feed-track.has-marquee {
  will-change: transform;
  animation: rsvpMarquee var(--rsvp-marquee-duration, 24s) linear infinite;
}

.rsvp-feed-group {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  align-items: center;
  width: max-content;
}

.rsvp-feed-item,
.rsvp-feed-empty {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(214, 168, 92, 0.22);
  background: rgba(10, 4, 17, 0.82);
  color: rgba(245, 241, 234, 0.92);
  white-space: nowrap;
  line-height: 1.4;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.rsvp-feed-item strong {
  margin-right: 6px;
  color: #fff4d1;
  font-weight: 700;
}

.rsvp-feed-item.is-yes {
  border-color: rgba(171, 221, 164, 0.34);
}

.rsvp-feed-item.is-maybe {
  border-color: rgba(255, 222, 132, 0.34);
}

.rsvp-feed-item.is-no {
  border-color: rgba(255, 177, 177, 0.28);
}

@keyframes rsvpMarquee {
  from {
    transform: translateX(var(--rsvp-marquee-start, 0px));
  }

  to {
    transform: translateX(calc(var(--rsvp-marquee-end, 0px) * -1));
  }
}

.rsvp-form-card {
  padding: 20px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(214, 168, 92, 0.36);
  box-shadow:
    0 18px 52px rgba(0, 0, 0, 0.28),
    inset 0 0 22px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
}

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

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

.rsvp-label {
  color: rgba(255, 241, 184, 0.92);
  font-size: 0.9rem;
}

.rsvp-name-input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(214, 168, 92, 0.28);
  background: rgba(10, 4, 17, 0.82);
  color: #f5f1ea;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  line-height: 1.5;
  font-size: 1rem;
}

.rsvp-name-input::placeholder {
  color: rgba(245, 241, 234, 0.42);
}

.rsvp-name-input:focus {
  outline: none;
  border-color: rgba(255, 241, 184, 0.9);
  box-shadow:
    0 0 0 3px rgba(214, 168, 92, 0.18),
    0 0 22px rgba(214, 168, 92, 0.14);
}

.rsvp-attendance-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 12px;
}

.rsvp-attendance-btn {
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid rgba(214, 168, 92, 0.36);
  border-radius: 18px;
  background: rgba(10, 4, 17, 0.82);
  color: #f5f1ea;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.rsvp-attendance-btn:hover,
.rsvp-attendance-btn:focus {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(255, 241, 184, 0.92);
  box-shadow:
    0 0 0 3px rgba(214, 168, 92, 0.16),
    0 0 22px rgba(214, 168, 92, 0.12);
}

.rsvp-attendance-btn.is-selected {
  border-color: rgba(255, 241, 184, 0.96);
  background:
    radial-gradient(circle at top, rgba(255, 241, 184, 0.18), transparent 52%),
    linear-gradient(180deg, rgba(214, 168, 92, 0.3), rgba(214, 168, 92, 0.12));
  color: #fff7de;
  box-shadow:
    0 0 0 3px rgba(214, 168, 92, 0.14),
    0 12px 28px rgba(0, 0, 0, 0.2);
}

.rsvp-attendance-btn:disabled {
  opacity: 0.82;
}

.rsvp-attendance-btn.is-loading {
  border-color: rgba(255, 241, 184, 0.96);
  box-shadow:
    0 0 0 3px rgba(214, 168, 92, 0.14),
    0 12px 28px rgba(0, 0, 0, 0.2);
}

.rsvp-form-actions {
  display: grid;
  gap: 12px;
}

.rsvp-form-feedback {
  min-height: 24px;
  margin: 0;
  color: rgba(245, 241, 234, 0.68);
  font-size: 0.92rem;
  line-height: 1.55;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.rsvp-form-feedback.is-visible {
  opacity: 1;
}

.rsvp-form-feedback.is-success {
  color: #d8efc7;
}

.rsvp-form-feedback.is-error {
  color: #ffb9b9;
}

.guestbook-section-shell {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 0 40px;
  animation: sectionEnter 0.45s ease both;
}

.guestbook-section-hero {
  margin-bottom: 22px;
}

.guestbook-section-title {
  margin: 0 0 10px;
  font-size: clamp(2rem, 7vw, 3.2rem);
  line-height: 1.02;
  color: #fff1b8;
  text-shadow: 0 0 18px rgba(214, 168, 92, 0.28);
}

.guestbook-section-intro {
  max-width: 640px;
  margin: 0;
  color: rgba(245, 241, 234, 0.8);
  font-size: 0.98rem;
  line-height: 1.75;
}

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

.guestbook-form-card,
.guestbook-list-card {
  padding: 20px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(214, 168, 92, 0.36);
  box-shadow:
    0 18px 52px rgba(0, 0, 0, 0.28),
    inset 0 0 22px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
}

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

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

.guestbook-label {
  color: rgba(255, 241, 184, 0.92);
  font-size: 0.9rem;
}

.guestbook-input,
.guestbook-textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(214, 168, 92, 0.28);
  background: rgba(10, 4, 17, 0.82);
  color: #f5f1ea;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.guestbook-textarea {
  min-height: 164px;
  resize: vertical;
}

.guestbook-input::placeholder,
.guestbook-textarea::placeholder {
  color: rgba(245, 241, 234, 0.42);
}

.guestbook-input:focus,
.guestbook-textarea:focus {
  outline: none;
  border-color: rgba(255, 241, 184, 0.9);
  box-shadow:
    0 0 0 3px rgba(214, 168, 92, 0.18),
    0 0 22px rgba(214, 168, 92, 0.14);
}

.guestbook-form-actions {
  display: grid;
  gap: 12px;
}

.guestbook-submit-btn {
  min-height: 56px;
  padding: 14px 18px;
  border: 1px solid rgba(214, 168, 92, 0.56);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(214, 168, 92, 0.28), rgba(214, 168, 92, 0.12));
  color: #fff7de;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.guestbook-submit-btn:hover,
.guestbook-submit-btn:focus {
  outline: none;
  border-color: rgba(255, 241, 184, 0.95);
  box-shadow:
    0 0 20px rgba(214, 168, 92, 0.24),
    0 14px 34px rgba(0, 0, 0, 0.22);
}

.guestbook-submit-btn:disabled {
  opacity: 0.72;
}

.guestbook-submit-btn.is-loading {
  border-color: rgba(255, 241, 184, 0.92);
  box-shadow:
    0 0 20px rgba(214, 168, 92, 0.24),
    0 14px 34px rgba(0, 0, 0, 0.22);
}

.guestbook-form-feedback {
  min-height: 24px;
  margin: 0;
  color: rgba(245, 241, 234, 0.68);
  font-size: 0.92rem;
  line-height: 1.55;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.guestbook-form-feedback.is-visible {
  opacity: 1;
}

.guestbook-form-feedback.is-success {
  color: #d8efc7;
}

.guestbook-form-feedback.is-error {
  color: #ffb9b9;
}

.guestbook-list-header {
  margin-bottom: 16px;
}

.guestbook-list-title {
  margin: 0 0 8px;
  color: #fff1b8;
  font-size: 1.2rem;
}

.guestbook-list-copy {
  margin: 0;
  color: rgba(245, 241, 234, 0.72);
  font-size: 0.92rem;
}

.guestbook-messages {
  display: grid;
  gap: 14px;
}

.guestbook-message-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(214, 168, 92, 0.24);
  background: rgba(8, 3, 13, 0.5);
}

.guestbook-message-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.guestbook-message-name {
  margin: 0;
  color: #fff1b8;
  font-size: 1rem;
}

.guestbook-message-date {
  margin: 0;
  color: rgba(245, 241, 234, 0.56);
  font-size: 0.78rem;
  text-align: right;
}

.guestbook-message-text {
  margin: 0;
  color: rgba(245, 241, 234, 0.84);
  line-height: 1.7;
  white-space: pre-wrap;
}

.guestbook-empty-state {
  padding: 16px;
  border-radius: 18px;
  border: 1px dashed rgba(214, 168, 92, 0.26);
  color: rgba(245, 241, 234, 0.68);
  text-align: center;
  background: rgba(8, 3, 13, 0.4);
}

.gift-section-shell {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 0 40px;
  animation: sectionEnter 0.45s ease both;
}

.gift-section-hero {
  margin-bottom: 22px;
}

.gift-section-title {
  margin: 0 0 10px;
  font-size: clamp(2rem, 7vw, 3.2rem);
  line-height: 1.02;
  color: #fff1b8;
  text-shadow: 0 0 18px rgba(214, 168, 92, 0.28);
}

.gift-section-intro {
  max-width: 660px;
  margin: 0;
  color: rgba(245, 241, 234, 0.8);
  font-size: 0.98rem;
  line-height: 1.75;
}

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

.gift-card-group {
  display: grid;
  gap: 18px;
}

.gift-account-card,
.gift-qr-card {
  padding: 20px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(214, 168, 92, 0.36);
  box-shadow:
    0 18px 52px rgba(0, 0, 0, 0.28),
    inset 0 0 22px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
}

.gift-account-label {
  margin: 0 0 8px;
  color: rgba(255, 241, 184, 0.82);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gift-account-bank {
  margin: 0 0 8px;
  color: #fff1b8;
  font-size: 1.5rem;
}

.gift-account-name {
  margin: 0 0 10px;
  color: rgba(245, 241, 234, 0.76);
}

.gift-account-number {
  margin: 0 0 18px;
  color: #fef4d0;
  font-size: 1.25rem;
  line-height: 1.3;
  word-break: break-word;
}

.gift-copy-btn {
  min-height: 52px;
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(214, 168, 92, 0.56);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(214, 168, 92, 0.28), rgba(214, 168, 92, 0.12));
  color: #fff7de;
  font-size: 0.98rem;
  font-weight: 600;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.gift-copy-btn:hover,
.gift-copy-btn:focus {
  outline: none;
  border-color: rgba(255, 241, 184, 0.95);
  box-shadow:
    0 0 20px rgba(214, 168, 92, 0.24),
    0 14px 34px rgba(0, 0, 0, 0.22);
}

.gift-copy-btn.is-copied {
  border-color: rgba(180, 232, 166, 0.92);
  color: #f5ffeb;
}

.gift-qr-card {
  display: grid;
  gap: 16px;
  align-content: start;
}

.gift-qr-placeholder {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 18px;
  border-radius: 24px;
  border: 1px dashed rgba(214, 168, 92, 0.32);
  background:
    radial-gradient(circle at top, rgba(214, 168, 92, 0.1), transparent 42%),
    rgba(8, 3, 13, 0.5);
}

.gift-qr-grid {
  display: grid;
  grid-template-columns: repeat(6, 20px);
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  background: #f7efd4;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.gift-qr-grid span {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: rgba(30, 18, 8, 0.12);
}

.gift-qr-grid span.is-filled {
  background: #1e1208;
}

.gift-qr-copy {
  margin: 0;
  color: rgba(245, 241, 234, 0.72);
  line-height: 1.7;
}

.gift-copy-feedback {
  min-height: 24px;
  margin: 16px 0 0;
  color: rgba(245, 241, 234, 0.68);
  font-size: 0.92rem;
  line-height: 1.55;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gift-copy-feedback.is-visible {
  opacity: 1;
}

.gift-copy-feedback.is-success {
  color: #d8efc7;
}

.gift-copy-feedback.is-error {
  color: #ffb9b9;
}

.section-quick-nav {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 950;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(214, 168, 92, 0.28);
  background: rgba(9, 3, 15, 0.84);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.section-quick-nav.is-visible {
  display: inline-flex;
}

.section-nav-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(214, 168, 92, 0.34);
  background: rgba(255, 255, 255, 0.06);
  color: #fff1b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.12rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.section-nav-btn:hover,
.section-nav-btn:focus {
  outline: none;
  border-color: rgba(255, 241, 184, 0.92);
  box-shadow:
    0 0 18px rgba(214, 168, 92, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.section-nav-btn.is-active {
  background: linear-gradient(180deg, rgba(214, 168, 92, 0.28), rgba(214, 168, 92, 0.12));
  border-color: rgba(255, 241, 184, 0.92);
  color: #fff7de;
  box-shadow:
    0 0 18px rgba(214, 168, 92, 0.22),
    0 0 28px rgba(216, 154, 158, 0.1);
}

.section-card {
  width: 100%;
  max-width: 520px;
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(214, 168, 92, 0.42);
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.35),
    inset 0 0 20px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  text-align: center;
  animation: sectionEnter 0.45s ease both;
}

.section-card h2 {
  margin-bottom: 12px;
  color: #fff1b8;
  text-shadow: 0 0 16px rgba(214, 168, 92, 0.35);
}

.section-card p {
  color: rgba(245, 241, 234, 0.78);
}

.back-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(214, 168, 92, 0.55);
  background: rgba(214, 168, 92, 0.12);
  color: #f5f1ea;
  font-size: 0.9rem;
}

.back-menu-btn:hover,
.back-menu-btn:focus {
  border-color: rgba(255, 241, 184, 0.9);
  box-shadow: 0 0 18px rgba(214, 168, 92, 0.28);
  outline: none;
}

@keyframes sectionEnter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes sectionKickerEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
    letter-spacing: 0.18em;
  }

  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 0.08em;
  }
}

@keyframes sectionTitleEnter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    text-shadow: 0 0 0 rgba(214, 168, 92, 0);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    text-shadow: 0 0 18px rgba(214, 168, 92, 0.28);
  }
}

@keyframes sectionCopyEnter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sectionCardEnter {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes subtleFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes titleDrift {
  0%,
  100% {
    transform: translateY(0);
    text-shadow: 0 0 18px rgba(214, 168, 92, 0.28);
  }

  50% {
    transform: translateY(-4px);
    text-shadow:
      0 0 20px rgba(214, 168, 92, 0.34),
      0 0 32px rgba(255, 241, 184, 0.08);
  }
}

.is-transitioning {
  pointer-events: none;
}

@media (min-width: 768px) {
  .couple-section-shell {
    max-width: 920px;
  }

  .event-section-shell {
    max-width: 920px;
  }

  .map-section-shell {
    max-width: 920px;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .rsvp-attendance-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .guestbook-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: start;
  }

  .gift-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
    align-items: start;
  }

  .gift-card-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .couple-portrait-frame {
    min-height: 300px;
  }

  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .countdown-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .event-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .main-menu-screen {
    padding: 48px 24px;
  }

  .cover-screen {
    padding: 48px 24px;
  }

  .menu-panel {
    padding: 24px;
  }

  .game-menu-btn {
    min-height: 60px;
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-beam,
  .floating-petals span,
  .main-menu-screen.is-menu-animated .game-menu-btn,
  .game-menu-btn::after,
  .menu-ripple,
  .menu-click-sparkle,
  .wedding-emblem,
  .couple-title,
  .guest-greeting,
  .menu-panel,
  .screen-sparkle,
  .quest-section.is-active,
  .quest-section.is-section-animated .section-kicker,
  .quest-section.is-section-animated .couple-section-title,
  .quest-section.is-section-animated .event-section-title,
  .quest-section.is-section-animated .map-section-title,
  .quest-section.is-section-animated .gallery-section-title,
  .quest-section.is-section-animated .rsvp-section-title,
  .quest-section.is-section-animated .guestbook-section-title,
  .quest-section.is-section-animated .gift-section-title,
  .quest-section.is-section-animated .couple-section-intro,
  .quest-section.is-section-animated .event-section-intro,
  .quest-section.is-section-animated .map-section-intro,
  .quest-section.is-section-animated .gallery-section-intro,
  .quest-section.is-section-animated .rsvp-section-intro,
  .quest-section.is-section-animated .guestbook-section-intro,
  .quest-section.is-section-animated .gift-section-intro,
  .quest-section.is-section-animated .couple-portrait-frame,
  .quest-section.is-section-animated .profile-card,
  .quest-section.is-section-animated .timeline-item,
  .quest-section.is-section-animated .countdown-panel,
  .quest-section.is-section-animated .event-card,
  .quest-section.is-section-animated .map-frame,
  .quest-section.is-section-animated .gallery-item,
  .quest-section.is-section-animated .rsvp-form-card,
  .quest-section.is-section-animated .guestbook-form-card,
  .quest-section.is-section-animated .guestbook-list-card,
  .quest-section.is-section-animated .gift-account-card,
  .quest-section.is-section-animated .gift-qr-card {
    animation: none;
  }
}
