:root {
  --bg: #f8f1e5;
  --paper: #fff9f1;
  --paper-strong: rgba(255, 250, 244, 0.96);
  --paper-shadow: rgba(104, 73, 39, 0.16);
  --line: rgba(187, 150, 98, 0.26);
  --line-strong: rgba(176, 133, 74, 0.52);
  --text: #6d5335;
  --text-strong: #513519;
  --muted: rgba(109, 83, 53, 0.72);
  --accent: #c99649;
  --accent-soft: #e8d2a9;
  --accent-strong: #b27a2f;
  --shadow: 0 18px 42px rgba(133, 102, 65, 0.18);
  --book-height: min(44rem, calc(100svh - 11rem));
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  font-size: 16px;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.86), transparent 24%),
    radial-gradient(circle at 82% 12%, rgba(241, 219, 181, 0.42), transparent 18%),
    radial-gradient(circle at bottom right, rgba(229, 206, 165, 0.4), transparent 26%),
    linear-gradient(180deg, #fbf6ee 0%, #f3eadc 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    radial-gradient(rgba(214, 180, 124, 0.16) 1px, transparent 1px),
    radial-gradient(rgba(214, 180, 124, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: 0 0, 11px 11px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 82%);
}

body.modal-open {
  overflow: hidden;
}

img,
iframe {
  display: block;
  max-width: 100%;
  border: 0;
  -webkit-user-drag: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.app-shell {
  min-height: 100vh;
  padding:
    max(1.5rem, env(safe-area-inset-top))
    1rem
    max(2rem, env(safe-area-inset-bottom));
}

.invitation-book {
  position: relative;
  width: min(100%, 29rem);
  margin: 0 auto;
}

.book-ornament {
  position: absolute;
  top: 1rem;
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.72), transparent 35%),
    radial-gradient(circle at 70% 70%, rgba(241, 208, 146, 0.62), transparent 45%),
    linear-gradient(135deg, rgba(207, 167, 103, 0.26), rgba(255, 255, 255, 0));
  filter: blur(0.2px);
  pointer-events: none;
}

.book-ornament--left {
  left: -1.1rem;
}

.book-ornament--right {
  right: -1.1rem;
  top: 10rem;
}

.book-stage {
  position: relative;
  min-height: max(36rem, var(--book-height));
  perspective: 2600px;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}

.book-stage::before {
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: 1.25rem;
  width: 1rem;
  border-radius: 999px;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(173, 132, 74, 0.18), rgba(173, 132, 74, 0.55), rgba(173, 132, 74, 0.14));
  opacity: 0.85;
  pointer-events: none;
  box-shadow: 0 0 24px rgba(136, 96, 49, 0.14);
}

.book-stage::after {
  position: absolute;
  right: 1rem;
  bottom: 0.3rem;
  left: 1rem;
  height: 2.8rem;
  border-radius: 999px;
  content: "";
  background: radial-gradient(circle, rgba(129, 88, 45, 0.22), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}

.book-page {
  --page-translate: 2.1rem;
  --page-rotate: -12deg;
  --page-scale: 0.994;
  position: absolute;
  inset: 0;
  padding: 0.85rem 0.35rem 0.85rem 0;
  opacity: 1;
  pointer-events: auto;
  transform-origin: left center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transform: translateX(var(--page-translate)) rotateY(var(--page-rotate)) scale(var(--page-scale));
  transition:
    transform 320ms cubic-bezier(0.2, 0.72, 0.2, 1),
    filter 180ms ease,
    opacity 180ms ease;
}

.book-stage.is-dragging {
  cursor: grabbing;
}

.book-stage.is-dragging .book-page {
  transition: none;
}

.book-page[data-page-state="active"] {
  --page-translate: 0rem;
  --page-rotate: 0deg;
  --page-scale: 1;
  opacity: 1;
  pointer-events: auto;
  filter: none;
}

.book-page[data-page-state="turned"] {
  --page-translate: -1.55rem;
  --page-rotate: -88deg;
  --page-scale: 0.992;
  opacity: 0.74;
  pointer-events: none;
  filter: saturate(0.92) brightness(0.96);
}

.book-page[data-page-state="next"] {
  --page-translate: 1.45rem;
  --page-rotate: -10deg;
  --page-scale: 0.998;
  opacity: 0.98;
  pointer-events: none;
  filter: saturate(0.95) brightness(0.99);
}

.book-page[data-page-state="far"] {
  --page-translate: 2.1rem;
  --page-rotate: -12deg;
  --page-scale: 0.994;
  opacity: 0.82;
  pointer-events: none;
  filter: saturate(0.9) brightness(0.97);
}

.book-page__frame {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  padding: 1.45rem 1.3rem 1.35rem 1.5rem;
  background-color: rgba(255, 250, 244, 0.98);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 236, 219, 0.45)),
    linear-gradient(135deg, rgba(255, 247, 236, 0.98), rgba(255, 250, 244, 0.9));
  border: 1px solid var(--line);
  border-radius: 2rem 1rem 1rem 2rem;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.52),
    inset 0 0 0 0.55rem rgba(248, 237, 221, 0.4),
    var(--shadow);
  overflow: hidden;
}

.book-page[data-page-state="turned"] .book-page__frame {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.38),
    inset 0 0 0 0.45rem rgba(241, 228, 209, 0.26),
    0 14px 26px rgba(111, 80, 46, 0.12);
}

.book-page[data-page-state="next"] .book-page__frame,
.book-page[data-page-state="far"] .book-page__frame {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.44),
    inset 0 0 0 0.48rem rgba(247, 235, 216, 0.28),
    0 18px 30px rgba(111, 80, 46, 0.12);
}

.book-page__frame::before {
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: 0.95rem;
  width: 0.14rem;
  border-radius: 999px;
  content: "";
  background: linear-gradient(180deg, rgba(174, 126, 59, 0.1), rgba(174, 126, 59, 0.42), rgba(174, 126, 59, 0.1));
}

.book-page__frame::after {
  position: absolute;
  inset: 0.55rem;
  border: 1px solid rgba(194, 156, 103, 0.14);
  border-radius: 1.5rem 0.72rem 0.72rem 1.5rem;
  content: "";
  pointer-events: none;
}

.book-page__eyebrow,
.page-heading__kicker,
.modal-card__eyebrow,
.time-callout__label,
.highlight-card__label,
.stay-summary__label,
.lodging-note__label {
  margin: 0;
  color: var(--accent-strong);
  font-family: "Baskerville", "Times New Roman", serif;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.page-heading {
  display: grid;
  gap: 0.4rem;
}

.page-heading h2,
.closing-title {
  margin: 0;
  color: var(--text-strong);
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.page-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.75;
}

.book-page--cover .book-page__frame {
  justify-content: flex-start;
  padding-top: 1.7rem;
  background:
    #fff,
    radial-gradient(circle at top right, rgba(243, 221, 188, 0.42), transparent 32%),
    radial-gradient(circle at bottom left, rgba(238, 214, 180, 0.38), transparent 30%),
    linear-gradient(180deg, rgba(255, 250, 244, 0.98), rgba(250, 241, 230, 0.94));
  text-align: center;
}

.cover-script {
  margin: 0.35rem 0 0;
  color: var(--accent-strong);
  font-family: "Snell Roundhand", "Apple Chancery", "URW Chancery L", cursive;
  font-size: 2rem;
}

h1 {
  margin: 0.15rem 0 0;
  color: var(--text-strong);
  font-size: 2.4rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.cover-date {
  margin: 0.35rem 0 0;
  color: rgba(93, 63, 29, 0.86);
  font-size: 1.45rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.cover-lunar {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.1em;
}

.cover-copy {
  margin: 0;
  /* max-width: 16rem; */
  font-size: 1.02rem;
  line-height: 1.86;
}

.cover-illustration {
  position: relative;
  flex: 1;
  min-height: 12rem;
  margin-top: 0.4rem;
}

.cover-illustration img:first-child {
  position: absolute;
  right: 0.1rem;
  bottom: 0;
  width: min(74%, 15.8rem);
  mix-blend-mode: multiply;
  opacity: 0.92;
}

.cover-illustration img:last-child {
  position: absolute;
  right: 0.6rem;
  bottom: 1rem;
  width: 3.35rem;
  mix-blend-mode: multiply;
}

.memory-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: auto;
}

.page-sprites,
.details-scene,
.schedule-scene,
.stay-scene,
.closing-scene {
  position: relative;
  pointer-events: none;
}

.page-sprite,
.details-scene img,
.schedule-scene img,
.stay-scene img,
.closing-scene img {
  position: absolute;
  display: block;
  max-width: 100%;
  mix-blend-mode: multiply;
}

.page-sprites--memories {
  min-height: 2.8rem;
}

.page-sprite--memory-stars {
  top: -0.3rem;
  right: 3.2rem;
  width: 3rem;
}

.page-sprite--memory-planet {
  top: -0.65rem;
  right: 0.15rem;
  width: 3rem;
}

.page-sprite--memory-hanger {
  top: -0.1rem;
  left: 0.6rem;
  width: 2rem;
}

.memory-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  background: rgba(255, 252, 248, 0.72);
  border: 1px solid rgba(187, 150, 98, 0.22);
  border-radius: 1.35rem;
  box-shadow: 0 10px 24px rgba(149, 111, 63, 0.08);
}

.memory-card__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(231, 214, 187, 0.84), rgba(248, 242, 233, 0.96)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(233, 213, 182, 0.28));
  overflow: hidden;
}

.memory-card__photo::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.6), transparent 18%),
    linear-gradient(135deg, rgba(182, 141, 84, 0.14), transparent 55%);
}

.memory-card__photo img {
  position: absolute;
  left: 0;
  top: 0;
}

.memory-card__photo span {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  left: 0.8rem;
  color: rgba(81, 53, 25, 0.85);
  font-size: 0.95rem;
  line-height: 1.55;
  text-align: center;
}

.memory-card__photo--warm {
  background:
    linear-gradient(135deg, rgba(238, 206, 173, 0.82), rgba(250, 239, 228, 0.96)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(214, 181, 142, 0.22));
}

.memory-card h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: 1.15rem;
  font-weight: 500;
}

.memory-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.76;
}

.memory-cosmos {
  position: relative;
  flex: 1;
  min-height: 18.5rem;
  margin-top: auto;
  overflow: hidden;
}

.memory-cosmos::before,
.memory-cosmos::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.memory-cosmos::before {
  inset: 0.4rem 0 0.2rem;
  background:
    radial-gradient(circle at 14% 26%, rgba(255, 249, 235, 0.98) 0 0.14rem, transparent 0.17rem),
    radial-gradient(circle at 24% 72%, rgba(238, 211, 163, 0.9) 0 0.18rem, transparent 0.22rem),
    radial-gradient(circle at 44% 18%, rgba(255, 255, 255, 0.94) 0 0.12rem, transparent 0.16rem),
    radial-gradient(circle at 57% 68%, rgba(233, 199, 137, 0.78) 0 0.16rem, transparent 0.2rem),
    radial-gradient(circle at 74% 24%, rgba(255, 248, 229, 0.96) 0 0.15rem, transparent 0.18rem),
    radial-gradient(circle at 88% 56%, rgba(241, 210, 160, 0.82) 0 0.19rem, transparent 0.24rem),
    radial-gradient(circle at 78% 84%, rgba(255, 255, 255, 0.88) 0 0.11rem, transparent 0.15rem),
    radial-gradient(circle at 38% 88%, rgba(231, 194, 136, 0.74) 0 0.13rem, transparent 0.18rem);
  opacity: 0.92;
  animation: memory-twinkle 5.8s ease-in-out infinite alternate;
}

.memory-cosmos::after {
  inset: 3rem 2.2rem 0.4rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 221, 184, 0.44), transparent 62%);
  filter: blur(10px);
}

.memory-cosmos__orbit {
  position: absolute;
  border: 1px solid rgba(191, 153, 99, 0.26);
  border-radius: 50%;
  pointer-events: none;
}

.memory-cosmos__orbit--outer {
  inset: 4.4rem 0.35rem 1.35rem;
  transform: rotate(-10deg);
}

.memory-cosmos__orbit--inner {
  inset: 5.9rem 2.8rem 2.2rem;
  border-style: dashed;
  border-color: rgba(191, 153, 99, 0.2);
  transform: rotate(14deg);
}

.memory-planet {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.65rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.86), transparent 32%),
    linear-gradient(145deg, rgba(255, 252, 247, 0.94), rgba(240, 220, 190, 0.9));
  box-shadow:
    inset 0 0 0 1px rgba(255, 250, 241, 0.78),
    0 16px 28px rgba(154, 113, 63, 0.14);
  transform-origin: center;
}

.memory-planet::before {
  position: absolute;
  inset: -0.35rem;
  border: 1px solid rgba(210, 179, 129, 0.22);
  border-radius: 50%;
  content: "";
}

.memory-planet--zy {
  top: 1.9rem;
  left: 0.3rem;
  width: clamp(8.6rem, 35vw, 10.4rem);
  animation: memory-orbit-zy 13.5s ease-in-out infinite;
}

.memory-planet--zxd {
  right: 0.2rem;
  bottom: 0.85rem;
  width: clamp(9rem, 37vw, 11rem);
  animation: memory-orbit-zxd 13.5s ease-in-out infinite;
}

.memory-planet__surface {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0.2rem;
  width: 100%;
  aspect-ratio: 1;
  padding: 0.38rem;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.52), transparent 36%),
    linear-gradient(180deg, rgba(255, 246, 229, 0.84), rgba(235, 206, 165, 0.46));
  border: 1px solid rgba(194, 155, 101, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.memory-planet__surface img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.8rem;
  filter: saturate(0.92) contrast(1.04);
}

.memory-planet figcaption {
  position: relative;
  z-index: 1;
  padding: 0.18rem 0.72rem;
  color: var(--text-strong);
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  background: rgba(255, 248, 237, 0.88);
  border: 1px solid rgba(194, 155, 101, 0.2);
  border-radius: 999px;
}

.memory-cosmos__trail,
.memory-cosmos__moon {
  position: absolute;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.memory-cosmos__trail {
  top: 0.95rem;
  left: 48%;
  width: 4.1rem;
  transform: translateX(-50%);
  opacity: 0.76;
}

.memory-cosmos__moon {
  top: 2.55rem;
  right: 2rem;
  width: 2.8rem;
  opacity: 0.68;
}

@keyframes memory-orbit-zy {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  25% {
    transform: translate3d(0.95rem, -0.55rem, 0) scale(1.02);
  }

  50% {
    transform: translate3d(2.1rem, 0.2rem, 0) scale(0.97);
  }

  75% {
    transform: translate3d(0.85rem, 0.95rem, 0) scale(1.01);
  }
}

@keyframes memory-orbit-zxd {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  25% {
    transform: translate3d(-0.8rem, 0.8rem, 0) scale(0.97);
  }

  50% {
    transform: translate3d(-2rem, -0.2rem, 0) scale(1.03);
  }

  75% {
    transform: translate3d(-0.95rem, -0.9rem, 0) scale(0.99);
  }
}

@keyframes memory-twinkle {
  from {
    opacity: 0.72;
    transform: translateY(0);
  }

  to {
    opacity: 1;
    transform: translateY(-0.18rem);
  }
}

.time-callout {
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem 1.15rem;
  margin-top: 0.3rem;
  border: 1px solid rgba(186, 140, 74, 0.22);
  border-radius: 1.45rem;
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.96), rgba(245, 232, 213, 0.78));
  box-shadow: 0 14px 28px rgba(156, 118, 68, 0.1);
}

.time-callout__date {
  margin: 0;
  color: var(--text-strong);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.25;
}

.time-callout__hour {
  margin: 0;
  color: var(--accent-strong);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.28;
}

.time-callout__subline {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.venue-card {
  display: grid;
  gap: 0.7rem;
  margin-top: auto;
  padding: 1rem 1.1rem;
  color: inherit;
  text-align: left;
  border: 1px solid rgba(186, 140, 74, 0.24);
  border-radius: 1.45rem;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(245, 234, 217, 0.78));
  box-shadow: 0 12px 24px rgba(156, 118, 68, 0.08);
}

.venue-card__eyebrow {
  color: var(--accent-strong);
  font-size: 0.88rem;
  letter-spacing: 0.12em;
}

.venue-card strong {
  color: var(--text-strong);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.55;
}

.venue-card span:last-child {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.venue-card__map {
  margin: 0;
  overflow: hidden;
  border-radius: 1.1rem;
  border: 1px solid rgba(186, 140, 74, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.venue-card__map img {
  width: 100%;
  aspect-ratio: 1494 / 1052;
  object-fit: cover;
}

.venue-card__note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.72;
}

.details-scene {
  flex: 1;
  min-height: 7rem;
  margin-top: auto;
}

.details-scene__building {
  right: 0.2rem;
  bottom: -0.4rem;
  width: min(70%, 12rem);
}

.details-scene__stars {
  top: 0.35rem;
  left: 0.25rem;
  width: 4.25rem;
}

.highlight-card {
  display: grid;
  gap: 0.55rem;
  padding: 1.15rem;
  margin-top: 0.2rem;
  border: 1px solid rgba(186, 140, 74, 0.22);
  border-radius: 1.55rem;
  background:
    linear-gradient(135deg, rgba(255, 252, 247, 0.98), rgba(247, 236, 219, 0.86));
  box-shadow: 0 12px 28px rgba(156, 118, 68, 0.08);
}

.highlight-card__visual {
  position: relative;
  min-height: 4rem;
}

.highlight-card__polaroids {
  position: absolute;
  top: -0.15rem;
  right: 0.2rem;
  width: 5.8rem;
  mix-blend-mode: multiply;
}

.highlight-card__camera {
  position: absolute;
  top: 0.95rem;
  left: 0.2rem;
  width: 2.2rem;
  mix-blend-mode: multiply;
}

.highlight-card h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.highlight-card p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.78;
}

.schedule-block {
  display: grid;
  gap: 0.65rem;
  margin-top: auto;
}

.schedule-row {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 1.1rem;
  background: rgba(255, 251, 246, 0.82);
  border: 1px solid rgba(186, 140, 74, 0.16);
}

.schedule-row time {
  color: var(--accent-strong);
  font-family: "Baskerville", "Times New Roman", serif;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0.06em;
}

.schedule-row p {
  margin: 0;
  color: var(--text-strong);
  font-size: 1.08rem;
  font-weight: 500;
}

.schedule-note {
  margin: 0.2rem 0 0;
  color: var(--accent-strong);
  font-size: 0.94rem;
  line-height: 1.72;
  text-align: center;
}

.schedule-scene {
  flex: 1;
  min-height: 4.8rem;
  margin-top: 0.2rem;
}

.schedule-scene__prince {
  left: -0.1rem;
  bottom: -0.85rem;
  width: 7rem;
}

.schedule-scene__stars {
  right: 0.5rem;
  bottom: -0.15rem;
  width: 3.6rem;
}

.stay-summary {
  display: grid;
  gap: 0.85rem;
  margin-top: auto;
  padding: 1.2rem;
  border-radius: 1.55rem;
  border: 1px solid rgba(186, 140, 74, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(247, 236, 219, 0.86));
  box-shadow: 0 12px 28px rgba(156, 118, 68, 0.08);
}

.stay-summary__dates {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.6rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
}

.stay-summary__dates span {
  display: grid;
  place-items: center;
  min-height: 4.6rem;
  padding: 0.9rem 0.75rem;
  color: var(--text-strong);
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
  background: rgba(255, 255, 255, 0.62);
  border-radius: 1rem;
  border: 1px solid rgba(186, 140, 74, 0.18);
}

.stay-summary__dates span:nth-child(2) {
  position: relative;
  min-height: 0;
  padding: 0;
  background: none;
  border: 0;
}

.stay-summary__dates span:nth-child(2)::before {
  width: 100%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, rgba(186, 140, 74, 0), rgba(186, 140, 74, 0.72), rgba(186, 140, 74, 0));
}

.stay-summary__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.82;
}

.stay-scene {
  flex: 1;
  min-height: 6rem;
}

.stay-scene__hotel {
  right: 0.2rem;
  bottom: -0.55rem;
  width: min(72%, 11.5rem);
}

.stay-scene__moon {
  top: 0.1rem;
  left: 0.1rem;
  width: 3rem;
}

.closing-copy,
.closing-sign {
  margin: 0;
  font-size: 1rem;
  line-height: 1.92;
}

.closing-copy {
  max-width: 17.2rem;
}

.closing-sign {
  margin-top: auto;
  color: var(--accent-strong);
  font-size: 1.05rem;
}

.closing-scene {
  flex: 1;
  min-height: 9rem;
  margin-top: 0.6rem;
}

.closing-scene__moon {
  left: 0.5rem;
  bottom: 0.3rem;
  width: 4.3rem;
}

.closing-scene__floral {
  right: -0.15rem;
  bottom: -0.55rem;
  width: 9rem;
}

.closing-scene__stars {
  top: 0;
  right: 2.6rem;
  width: 3.8rem;
}

.rsvp-badge,
.book-button,
.ghost-button,
.submit-button,
.submit-button--link {
  appearance: none;
  border: 0;
  border-radius: 999px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.rsvp-badge,
.submit-button,
.submit-button--link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.82rem 1.35rem;
  color: #fffdf9;
  background: linear-gradient(180deg, #dfbd71, #c88e38);
  box-shadow:
    inset 0 0 0 1px rgba(255, 247, 229, 0.42),
    0 12px 24px rgba(167, 116, 47, 0.2);
}

.rsvp-badge {
  width: fit-content;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.rsvp-badge__flower {
  width: 1.15rem;
  mix-blend-mode: screen;
}

.rsvp-badge:hover,
.submit-button:hover,
.submit-button--link:hover,
.book-button:hover,
.ghost-button:hover {
  transform: translateY(-0.08rem);
}

.book-controls {
  display: grid;
  grid-template-columns: 2.9rem minmax(0, 1fr) 2.9rem;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1rem;
}

.book-controls::after {
  display: block;
  width: 2.9rem;
  height: 2.9rem;
  content: "";
}

.bgm-toggle {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  color: var(--accent-strong);
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(247, 236, 219, 0.92));
  border: 1px solid rgba(186, 140, 74, 0.24);
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    0 10px 20px rgba(148, 108, 63, 0.12);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

.bgm-toggle__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bgm-toggle__icon svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.bgm-toggle__wave {
  transition: opacity 180ms ease;
}

.bgm-toggle__slash {
  position: absolute;
  top: 50%;
  left: -0.02rem;
  width: 1.45rem;
  height: 0.13rem;
  background: currentColor;
  border-radius: 999px;
  transform: translateY(-50%) rotate(-42deg) scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.bgm-toggle[data-bgm-state="paused"] .bgm-toggle__slash {
  transform: translateY(-50%) rotate(-42deg) scaleX(1);
}

.bgm-toggle[data-bgm-state="paused"] .bgm-toggle__wave:last-of-type {
  opacity: 0.32;
}

.bgm-toggle:hover {
  transform: translateY(-0.08rem);
}

.book-button,
.ghost-button {
  padding: 0.72rem 1rem;
  color: var(--text-strong);
  background: rgba(255, 251, 245, 0.86);
  border: 1px solid rgba(186, 140, 74, 0.2);
  box-shadow: 0 10px 20px rgba(148, 108, 63, 0.06);
}

.book-button[disabled] {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

.book-progress {
  display: grid;
  grid-column: 2;
  gap: 0.35rem;
  justify-items: center;
}

.book-progress__status {
  margin: 0;
  color: var(--text-strong);
  font-family: "Baskerville", "Times New Roman", serif;
  font-size: 1rem;
  letter-spacing: 0.18em;
}

.book-progress__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.book-dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.book-dot {
  width: 0.65rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(186, 140, 74, 0.28);
  transition: width 180ms ease, background 180ms ease, transform 180ms ease;
}

.book-dot.is-active {
  width: 1.9rem;
  background: linear-gradient(90deg, #d7ae62, #ba7e33);
  transform: translateY(-1px);
}

.modal-shell {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(54, 36, 14, 0.34);
  backdrop-filter: blur(8px);
  z-index: 20;
}

.modal-card {
  position: relative;
  width: min(100%, 30rem);
  max-height: min(44rem, calc(100svh - 2.4rem));
  padding: 1.35rem 1.2rem 1.2rem;
  overflow: auto;
  border-radius: 1.65rem;
  border: 1px solid rgba(186, 140, 74, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.98), rgba(249, 239, 225, 0.94));
  box-shadow: 0 28px 60px rgba(57, 37, 13, 0.22);
}

.modal-card__close {
  position: absolute;
  top: 0.95rem;
  right: 0.95rem;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  color: var(--text-strong);
  border: 1px solid rgba(186, 140, 74, 0.18);
  border-radius: 999px;
  background: rgba(255, 251, 246, 0.92);
}

.modal-card__header {
  display: grid;
  gap: 0.45rem;
  padding-right: 2.5rem;
}

.modal-card__header h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 1.65rem;
  font-weight: 500;
}

.modal-card__intro {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.72;
}

.rsvp-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.form-feedback {
  margin: 1rem 0 0;
  padding: 0.8rem 0.95rem;
  color: #8b3a24;
  border-radius: 1rem;
  background: rgba(241, 194, 176, 0.28);
}

.rsvp-form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.form-field,
.form-group {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.form-field span,
.form-group legend {
  color: var(--text-strong);
  font-size: 0.95rem;
}

.form-group {
  padding: 0;
  border: 0;
}

.choice-row,
.count-grid {
  display: grid;
  gap: 0.75rem;
}

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

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

.choice-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  gap: 0.45rem;
  color: var(--text);
  border-radius: 999px;
  border: 1px solid rgba(186, 140, 74, 0.22);
  background: rgba(255, 251, 246, 0.82);
}

.choice-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-pill:has(input:checked) {
  color: var(--text-strong);
  border-color: rgba(186, 140, 74, 0.42);
  background: rgba(245, 233, 212, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.88rem 0.95rem;
  color: var(--text-strong);
  border: 1px solid rgba(186, 140, 74, 0.2);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.72);
  resize: vertical;
}

.lodging-note {
  display: grid;
  gap: 0.4rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(248, 237, 221, 0.78);
  border: 1px solid rgba(186, 140, 74, 0.16);
}

.lodging-note p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.68;
}

.submit-button,
.ghost-button {
  min-height: 3rem;
  padding-right: 1.2rem;
  padding-left: 1.2rem;
}

.success-panel {
  display: grid;
  gap: 0.75rem;
  place-items: center;
  margin-top: 1rem;
  padding: 1.4rem 1.1rem;
  text-align: center;
  border-radius: 1.2rem;
  background: rgba(252, 247, 239, 0.86);
}

.success-panel__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: #fffdf9;
  border-radius: 999px;
  background: linear-gradient(180deg, #dfbd71, #c88e38);
}

.success-panel h3,
.success-panel p {
  margin: 0;
}

.submit-button--compact {
  min-width: 8rem;
}

.rsvp-badge:focus-visible,
.bgm-toggle:focus-visible,
.book-button:focus-visible,
.ghost-button:focus-visible,
.submit-button:focus-visible,
.submit-button--link:focus-visible,
.modal-card__close:focus-visible,
.book-dot:focus-visible,
.venue-card:focus-visible,
.form-field input:focus,
.form-field textarea:focus,
.choice-pill:has(input:focus-visible) {
  outline: 2px solid rgba(186, 140, 74, 0.58);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .book-stage {
    min-height: max(35rem, calc(100svh - 12rem));
  }

  .book-page__frame {
    padding-right: 1.1rem;
    padding-left: 1.3rem;
  }

}

@media (max-width: 480px) {
  .app-shell {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  h1 {
    font-size: 2.05rem;
  }

  .page-heading h2,
  .closing-title {
    font-size: 1.7rem;
  }

  .memory-cosmos {
    min-height: 17.4rem;
  }

  .memory-cosmos__orbit--outer {
    inset: 4.6rem 0 1.2rem;
  }

  .memory-cosmos__orbit--inner {
    inset: 6rem 2.2rem 2rem;
  }

  .memory-planet--zy {
    left: 0;
    width: clamp(8rem, 40vw, 9.3rem);
  }

  .memory-planet--zxd {
    right: 0;
    width: clamp(8.4rem, 42vw, 9.8rem);
  }

  .count-grid {
    grid-template-columns: 1fr;
  }

  .schedule-row {
    grid-template-columns: 4.5rem minmax(0, 1fr);
  }

  .schedule-row time {
    font-size: 1.3rem;
  }

  .stay-summary__dates {
    grid-template-columns: 1fr;
  }

  .stay-summary__dates span:nth-child(2) {
    min-height: 1.6rem;
  }

  .stay-summary__dates span:nth-child(2)::before {
    width: 2px;
    height: 100%;
  }

  .book-controls {
    width: 100%;
  }

  .submit-button,
  .submit-button--link,
  .ghost-button {
    width: 100%;
  }

  .rsvp-form__actions,
  .choice-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .highlight-card__polaroids {
    width: 4.9rem;
  }

  .schedule-scene__prince {
    width: 6.2rem;
  }
}

@media (max-width: 360px) {
  .memory-cosmos {
    min-height: 15.8rem;
  }

  .memory-cosmos__orbit--inner {
    inset: 5.7rem 1.4rem 1.9rem;
  }

  .memory-planet {
    gap: 0.45rem;
    padding: 0.5rem;
  }

  .memory-planet figcaption {
    font-size: 0.82rem;
  }
}

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