/* 自托管精简拉丁手写体与衬线体（仅 126KB，国内微信/手机零外部依赖秒开） */
@font-face {
  font-family: "Great Vibes";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/GreatVibes_normal_400.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/CormorantGaramond_normal_400.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/CormorantGaramond_normal_500.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/CormorantGaramond_italic_400.woff2") format("woff2");
}

:root {
  --paper-ivory: #f8f2e7;
  --paper-parchment: #efe7d8;
  --paper-card: #fffdf8;
  --ink-primary: #2c221e;
  --ink-secondary: #584a42;
  --ink-muted: #8a7b71;
  --crimson: #b8292f;
  --crimson-deep: #8c1d22;
  --gold: #d8a84e;
  --sage: #6e8568;
  --font-script: "Great Vibes", "Snell Roundhand", "Brush Script MT", cursive;
  --font-editorial: "Noto Serif CJK SC", "Songti SC", "STSong", "SimSun", "Cormorant Garamond", Georgia, serif;
  --font-hand: "HanziPen SC", "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", serif;
  --font-num: "Cormorant Garamond", "Didot", "Baskerville", Georgia, serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--paper-ivory);
  color: var(--ink-primary);
  font-family: var(--font-editorial);
  -webkit-font-smoothing: antialiased;
  touch-action: none;
}

/* ── 全端自适应承载壳（手机全面屏无黑边纸面延展，桌面端画廊居中展陈） ── */
#viewport-shell {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--paper-ivory);
  background-image:
    radial-gradient(circle at 50% 45%, rgba(255, 252, 245, 0.72), rgba(235, 224, 206, 0.55)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='bg'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23bg)' opacity='0.045'/%3E%3C/svg%3E");
  overflow: hidden;
}

#stage-frame {
  position: relative;
  width: 1080px;
  height: 1920px;
  transform-origin: center center;
  flex: 0 0 auto;
}

@media (min-aspect-ratio: 3/4) {
  #stage-frame {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(72, 52, 38, 0.20), 0 0 0 1px rgba(140, 114, 92, 0.18);
  }
}

#stage {
  position: relative;
  width: 1080px;
  height: 1920px;
  overflow: hidden;
  background: var(--paper-ivory);
}

#backdrop-light-canvas {
  position: absolute;
  inset: 0;
  width: 1080px;
  height: 1920px;
  z-index: 15;
  pointer-events: none;
  mix-blend-mode: multiply;
}

#world-camera-layer {
  position: absolute;
  left: 0;
  top: 0;
  width: 5800px;
  height: 11000px;
  transform-origin: 0 0;
  will-change: transform;
  z-index: 5;
  background-color: var(--paper-ivory);
  background-image:
    radial-gradient(circle at 14% 12%, rgba(255, 249, 236, 0.8), transparent 22%),
    radial-gradient(circle at 40% 20%, rgba(242, 226, 204, 0.34), transparent 24%),
    radial-gradient(circle at 72% 48%, rgba(238, 224, 202, 0.42), transparent 26%),
    radial-gradient(circle at 50% 88%, rgba(255, 246, 228, 0.65), transparent 25%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.84' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='0.048'/%3E%3C/svg%3E");
}

#thread-canvas {
  position: absolute;
  inset: 0;
  width: 1080px;
  height: 1920px;
  z-index: 20;
  pointer-events: none;
}

#vignette-layer {
  position: absolute;
  inset: 0;
  z-index: 25;
  pointer-events: none;
  background: radial-gradient(
    ellipse 86% 88% at 50% 48%,
    rgba(255, 252, 246, 0) 62%,
    rgba(186, 162, 134, 0.17) 100%
  );
}

#fx-canvas {
  position: absolute;
  inset: 0;
  width: 1080px;
  height: 1920px;
  z-index: 30;
  pointer-events: none;
}

#fade-curtain {
  position: absolute;
  inset: 0;
  background: #f8f2e7;
  opacity: 0;
  z-index: 35;
  pointer-events: none;
}

/* ── 开场封套（解锁音频） ── */
#opening-cover {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 38%, rgba(250, 244, 234, 0.92), rgba(240, 230, 214, 0.96));
  backdrop-filter: blur(8px);
  transition: opacity 0.85s ease, visibility 0.85s ease;
}

#opening-cover.is-opened {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cover-card {
  width: min(370px, 90vw);
  padding: 40px 28px 34px;
  text-align: center;
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid rgba(184, 41, 47, 0.22);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(72, 50, 36, 0.14);
}

.cover-eyebrow {
  font-family: var(--font-num);
  font-size: 13px;
  letter-spacing: 0.34em;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.cover-names {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--ink-primary);
  margin-bottom: 10px;
}

.cover-date {
  font-family: var(--font-num);
  font-size: 16px;
  letter-spacing: 0.2em;
  color: var(--crimson);
  margin-bottom: 22px;
}

.cover-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.cover-line {
  width: 68px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(184, 41, 47, 0.45), transparent);
}

.cover-heart {
  color: var(--crimson);
  font-size: 14px;
}

.cover-poem {
  font-size: 14px;
  letter-spacing: 0.22em;
  color: var(--ink-secondary);
  margin-bottom: 28px;
}

.wax-seal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 224px;
  padding: 13px 26px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #c23036, #962025);
  color: #fffdf8;
  font-family: var(--font-editorial);
  font-size: 15px;
  letter-spacing: 0.16em;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(164, 34, 40, 0.30);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.wax-seal-btn:disabled {
  opacity: 0.72;
  cursor: wait;
}

.wax-seal-btn:not(:disabled):active {
  transform: scale(0.97);
}

.cover-hint {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

/* ── 右上角音乐唱片按钮 & 底部克制交互栏 ── */
.hidden {
  display: none !important;
}

.hud-icon-btn {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: 14px;
  z-index: 50;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(140, 112, 92, 0.28);
  background: rgba(255, 252, 246, 0.78);
  backdrop-filter: blur(8px);
  color: var(--crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(68, 48, 36, 0.10);
}

.hud-icon-btn.is-playing svg {
  animation: spinVinyl 6s linear infinite;
}

.hud-icon-btn .mute-slash {
  display: none;
  position: absolute;
  width: 24px;
  height: 1.8px;
  background: var(--ink-muted);
  transform: rotate(-45deg);
}

.hud-icon-btn.is-muted {
  color: var(--ink-muted);
}

.hud-icon-btn.is-muted .mute-slash {
  display: block;
}

@keyframes spinVinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hud-bar {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 50;
  width: min(460px, calc(100vw - 20px));
  padding: 8px 12px 10px;
  border-radius: 16px;
  background: rgba(255, 252, 246, 0.80);
  border: 1px solid rgba(140, 112, 92, 0.20);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(68, 48, 36, 0.12);
}

.hud-chapters {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.hud-chapters::-webkit-scrollbar {
  display: none;
}

.chap-btn {
  flex: 1 0 auto;
  border: none;
  background: transparent;
  padding: 3px 6px;
  border-radius: 999px;
  font-family: var(--font-editorial);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chap-btn.active {
  background: rgba(184, 41, 47, 0.12);
  color: var(--crimson);
  font-weight: 500;
}

.hud-controls-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-pill-btn {
  border: 1px solid rgba(140, 112, 92, 0.28);
  background: rgba(255, 253, 249, 0.9);
  color: var(--ink-primary);
  font-family: var(--font-editorial);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.hud-pill-btn.primary {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #fffdf8;
}

.hud-scrub-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

#timeline-slider {
  flex: 1;
  accent-color: var(--crimson);
  height: 4px;
  cursor: pointer;
}

.hud-time {
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--ink-secondary);
  white-space: nowrap;
}

/* ── 真实赴约回执弹窗 ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(44, 34, 30, 0.48);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-paper {
  position: relative;
  width: min(400px, 92vw);
  padding: 30px 24px 26px;
  background: var(--paper-card);
  border: 1px solid rgba(184, 41, 47, 0.24);
  border-radius: 14px;
  box-shadow: 0 28px 70px rgba(32, 22, 16, 0.28);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 24px;
  color: var(--ink-muted);
  cursor: pointer;
}

.modal-script {
  font-family: var(--font-script);
  font-size: 38px;
  color: var(--crimson);
  text-align: center;
  line-height: 1.1;
}

.modal-sub {
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  margin: 6px 0 20px;
}

.m-field {
  display: block;
  margin-bottom: 14px;
}

.m-field span {
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-secondary);
  margin-bottom: 6px;
}

.m-field input,
.m-field select,
.m-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(130, 108, 92, 0.34);
  border-radius: 8px;
  background: #fffdf9;
  font-family: var(--font-editorial);
  font-size: 14px;
  color: var(--ink-primary);
  outline: none;
}

.m-field input:focus,
.m-field select:focus,
.m-field textarea:focus {
  border-color: var(--crimson);
}

.modal-submit-btn {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: var(--crimson);
  color: #fffdf8;
  font-family: var(--font-editorial);
  font-size: 15px;
  letter-spacing: 0.18em;
  cursor: pointer;
}

.rsvp-done {
  text-align: center;
  padding: 12px 0 4px;
}

.done-wax {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d33a40, #8f1d22);
  color: #fffdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 8px 20px rgba(150, 28, 34, 0.28);
}

.done-title {
  font-size: 18px;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}

.done-meta {
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-secondary);
  margin-bottom: 18px;
  white-space: pre-line;
}

.done-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* ── 以下与 1080×1920 电影舞台世界坐标样式完全一致 ── */
.act-box { position: absolute; }
.script-heading { font-family: var(--font-script); font-weight: 400; text-align: center; line-height: 1.15; color: var(--ink-primary); }
.script-heading.crimson { color: var(--crimson); }
.poem-block { text-align: center; font-family: var(--font-editorial); font-weight: 400; font-size: 31px; line-height: 2.05; letter-spacing: 0.14em; color: var(--ink-secondary); }
.poem-line { opacity: 0; transform: translateY(20px); }
.sprite-canvas { display: block; pointer-events: none; }

#act-1 { left: 260px; top: 180px; width: 1080px; height: 1920px; }
.macro-fingers-wrap { position: absolute; left: 160px; top: 660px; width: 760px; height: 560px; z-index: 8; }
.fairy-lights-wrap { position: absolute; left: 0; top: 0; width: 1080px; height: 250px; transform-origin: top center; }
.hero-title { position: absolute; top: 248px; left: 0; width: 1080px; font-size: 122px; }
.hero-couple-names { position: absolute; top: 422px; left: 0; width: 1080px; text-align: center; font-size: 34px; font-weight: 500; letter-spacing: 0.22em; color: var(--ink-primary); }
.hero-date-line { position: absolute; top: 482px; left: 0; width: 1080px; text-align: center; font-family: var(--font-num); font-size: 33px; letter-spacing: 0.16em; color: var(--ink-secondary); }
.hero-toast-wrap { position: absolute; top: 560px; left: 110px; width: 860px; height: 860px; }
.hero-happy { position: absolute; top: 1448px; left: 0; width: 1080px; font-size: 92px; }
.hero-fun-note { position: absolute; top: 1595px; left: 0; width: 1080px; text-align: center; font-family: var(--font-hand); font-size: 35px; letter-spacing: 0.16em; color: var(--ink-secondary); }
#mid-ribbon-bow { position: absolute; left: 1220px; top: 1320px; width: 560px; height: 150px; transform-origin: center center; }

#act-2 { left: 1660px; top: 790px; width: 1080px; height: 1720px; }
.inv-title { position: absolute; top: 176px; left: 0; width: 1080px; font-size: 112px; }
.inv-poem { position: absolute; top: 356px; left: 0; width: 1080px; }
.inv-names-row { position: absolute; top: 660px; left: 60px; width: 960px; height: 150px; display: flex; align-items: center; justify-content: center; gap: 16px; }
.inv-role-name { font-family: var(--font-hand); font-size: 40px; letter-spacing: 0.1em; color: var(--ink-primary); white-space: nowrap; }
.inv-role-label { color: var(--crimson); font-family: var(--font-editorial); font-size: 31px; font-weight: 500; }
.inv-en-sub { position: absolute; top: 868px; left: 0; width: 1080px; text-align: center; font-family: var(--font-num); font-style: italic; font-size: 29px; letter-spacing: 0.06em; color: var(--ink-muted); }
.lovebirds-flight-wrap { position: absolute; left: 0; top: 0; width: 540px; height: 398px; z-index: 10; }

#act-3 { left: 260px; top: 2440px; width: 1080px; height: 1920px; }
.dinner-couple-wrap { position: absolute; top: 320px; left: 235px; width: 610px; height: 750px; display: flex; align-items: flex-end; justify-content: center; z-index: 2; }
.dinner-couple-img { width: 595px; height: auto; display: block; filter: drop-shadow(0 16px 26px rgba(56, 40, 30, 0.16)); }
.dinner-table-wrap { position: absolute; top: 775px; left: 50px; width: 980px; height: 551px; z-index: 4; }
.dinner-caption { position: absolute; top: 1365px; left: 0; width: 1080px; text-align: center; font-family: var(--font-num); font-size: 31px; letter-spacing: 0.24em; color: var(--ink-muted); }
.dinner-whisper { position: absolute; top: 1445px; left: 0; width: 1080px; text-align: center; font-family: var(--font-editorial); font-size: 28px; letter-spacing: 0.16em; color: var(--ink-secondary); }

#act-4 { left: 1660px; top: 2900px; width: 1080px; height: 2960px; }
.walk-poem { position: absolute; top: 150px; left: 0; width: 1080px; }
.hero-watercolor-frame { position: absolute; top: 500px; left: 0; width: 1080px; height: 1210px; overflow: hidden; clip-path: url(#torn-bottom-clip); }
#watercolor-reveal-canvas { width: 1080px; height: 1210px; display: block; transform-origin: center 35%; }
.hero-portrait-top-fade { position: absolute; top: 0; left: 0; width: 100%; height: 180px; background: linear-gradient(to bottom, #f8f2e7 0%, rgba(248, 242, 231, 0.5) 48%, rgba(248, 242, 231, 0) 100%); pointer-events: none; z-index: 4; }
.botanical-accent { position: absolute; pointer-events: none; z-index: 9; }
.thread-poem { position: absolute; top: 1800px; left: 0; width: 1080px; }
.champagne-area { position: absolute; top: 2070px; left: 0; width: 1080px; height: 460px; }
.champagne-sprite-wrap { position: absolute; left: 42px; top: -18px; width: 470px; height: 470px; }
.champagne-our-wedding { position: absolute; left: 256px; top: 86px; font-family: var(--font-script); font-size: 54px; line-height: 1.05; color: var(--ink-primary); transform: rotate(-10deg); text-shadow: 0 2px 12px rgba(248, 242, 231, 0.95); }
.monogram-stamp { position: absolute; right: 102px; top: 180px; display: flex; align-items: center; gap: 24px; font-family: var(--font-num); color: var(--ink-secondary); }
.monogram-letters { font-size: 40px; letter-spacing: 0.14em; color: var(--ink-primary); }
.monogram-slash { width: 2px; height: 62px; background: rgba(88, 74, 66, 0.45); transform: rotate(22deg); }
.monogram-date { font-size: 34px; letter-spacing: 0.12em; margin-top: 22px; }

#act-5 { left: 3060px; top: 3560px; width: 2140px; height: 2980px; background: var(--paper-parchment); border-radius: 26px; box-shadow: inset 0 0 90px rgba(154, 132, 108, 0.18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='pn'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.76' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23pn)' opacity='0.055'/%3E%3C/svg%3E"); }
.polaroid-hang { position: absolute; width: 890px; transform-origin: 50% 0%; }
.polaroid-clip { position: absolute; left: 50%; top: -42px; transform: translateX(-50%); z-index: 6; }
.polaroid-sheet { position: relative; width: 890px; padding: 22px 22px 92px; background: #fffdf9; border-radius: 5px; box-shadow: 0 26px 54px rgba(72, 54, 38, 0.16), 0 4px 12px rgba(72, 54, 38, 0.08); }
.polaroid-photo-box { position: relative; width: 846px; height: 476px; overflow: hidden; background: #e9e3d9; }
.polaroid-photo-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.polaroid-dev-veil { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, #c7b6a1, #7d6d5d); opacity: 0; pointer-events: none; }
.polaroid-hand-note { position: absolute; left: 30px; bottom: 24px; font-family: var(--font-hand); font-size: 31px; letter-spacing: 0.12em; color: var(--ink-secondary); }
.polaroid-date-mini { position: absolute; right: 30px; bottom: 28px; font-family: var(--font-num); font-size: 24px; letter-spacing: 0.14em; color: var(--ink-muted); }
.polaroid-corner-heart { position: absolute; right: -38px; bottom: -58px; width: 220px; height: 200px; z-index: 8; }
.story-caption-block { position: absolute; left: 230px; top: 2560px; width: 1080px; }

#act-6 { left: 1660px; top: 5980px; width: 1080px; height: 2740px; }
.time-title { position: absolute; top: 116px; left: 0; width: 1080px; font-size: 112px; }
.time-subtitle { position: absolute; top: 278px; left: 0; width: 1080px; text-align: center; font-size: 32px; line-height: 1.9; letter-spacing: 0.12em; color: var(--ink-secondary); }
.desk-calendar-stage { position: absolute; top: 430px; left: 200px; width: 680px; height: 680px; display: flex; align-items: center; justify-content: center; }
.cal-heart-circle-wrap { position: absolute; left: 140px; top: 274px; width: 380px; height: 340px; z-index: 6; pointer-events: none; }
.cal-pencil-note { position: absolute; right: 26px; top: 626px; font-family: var(--font-hand); font-size: 30px; color: var(--crimson); letter-spacing: 0.08em; transform: rotate(-3deg); white-space: nowrap; }
.schedule-stage { position: absolute; top: 1460px; left: 0; width: 1080px; height: 980px; perspective: 1400px; }
.schedule-left { position: absolute; left: 34px; top: 80px; width: 560px; height: 760px; }
.schedule-curve-wrap { position: absolute; left: 16px; top: 22px; width: 210px; height: 680px; }
.schedule-item { position: absolute; left: 170px; width: 400px; opacity: 0; }
.schedule-item[data-idx="0"] { top: 34px; }
.schedule-item[data-idx="1"] { top: 296px; }
.schedule-item[data-idx="2"] { top: 598px; }
.sched-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.sched-time { font-family: var(--font-num); font-size: 37px; font-weight: 500; letter-spacing: 0.08em; color: var(--crimson); }
.sched-text { font-family: var(--font-editorial); font-size: 27px; letter-spacing: 0.05em; color: var(--ink-primary); white-space: nowrap; }
.schedule-popup-wrap { position: absolute; right: 8px; top: 48px; width: 495px; height: 850px; transform-origin: bottom center; transform-style: preserve-3d; }
.schedule-couple-img { width: 486px; height: auto; display: block; filter: drop-shadow(0 18px 28px rgba(68, 52, 42, 0.16)); }
.schedule-ground-shadow { position: absolute; left: 50%; bottom: 14px; width: 390px; height: 36px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse, rgba(64, 48, 36, 0.24), transparent 72%); z-index: -1; }

#act-7a { left: 260px; top: 6640px; width: 1080px; height: 1920px; }
.address-title { position: absolute; top: 375px; left: 0; width: 1080px; font-size: 112px; }
.origami-map-stage { position: absolute; top: 560px; left: 90px; width: 900px; height: 506px; perspective: 1600px; }
.origami-map-frame { position: relative; width: 900px; height: 506px; transform-style: preserve-3d; border-radius: 6px; }
.map-fold-half { position: absolute; left: 0; width: 900px; height: 253px; transform-style: preserve-3d; }
.map-fold-half.top { top: 0; transform-origin: bottom center; }
.map-fold-half.bottom { top: 253px; transform-origin: top center; }
.map-quad { position: absolute; top: 0; width: 450px; height: 253px; overflow: hidden; backface-visibility: hidden; background-repeat: no-repeat; background-size: 900px 506px; border: 1px solid rgba(116, 94, 74, 0.16); box-shadow: 0 14px 32px rgba(72, 54, 40, 0.12); }
.map-quad.tl { left: 0; background-position: 0 0; transform-origin: right center; }
.map-quad.tr { left: 450px; background-position: -450px 0; transform-origin: left center; }
.map-quad.bl { left: 0; background-position: 0 -253px; transform-origin: right center; }
.map-quad.br { left: 450px; background-position: -450px -253px; transform-origin: left center; }
.map-crease-shade { position: absolute; inset: 0; pointer-events: none; }
.map-live-overlay { position: absolute; inset: 0; z-index: 6; }
.map-pin-callout { position: absolute; left: 50%; top: 25%; transform: translate(-50%, -100%); background: rgba(255, 253, 249, 0.96); border: 1.5px solid rgba(184, 41, 47, 0.48); border-radius: 999px; padding: 9px 24px; font-size: 23px; font-weight: 500; letter-spacing: 0.1em; color: var(--crimson-deep); box-shadow: 0 10px 22px rgba(72, 54, 40, 0.14); white-space: nowrap; text-decoration: none; cursor: pointer; }
.map-street-tag { position: absolute; font-size: 18px; letter-spacing: 0.12em; color: rgba(74, 62, 54, 0.74); background: rgba(250, 245, 236, 0.8); padding: 3px 10px; border-radius: 4px; pointer-events: none; }
.venue-text-block { position: absolute; top: 1135px; left: 0; width: 1080px; text-align: center; }
.venue-name { font-size: 39px; font-weight: 500; letter-spacing: 0.18em; color: var(--ink-primary); margin-bottom: 14px; }
.venue-hall { font-size: 30px; letter-spacing: 0.14em; color: var(--ink-secondary); }

#act-7b { left: 3640px; top: 6660px; width: 2140px; height: 1920px; }
.finale-bouquet-card { position: absolute; left: 110px; top: 340px; width: 860px; height: 1140px; background: var(--paper-card); padding: 20px; box-shadow: 0 28px 64px rgba(72, 54, 40, 0.16); border-radius: 5px; }
.finale-bouquet-inner { position: relative; width: 100%; height: 100%; overflow: hidden; background: #ebe5dc; }
.finale-bouquet-img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.finale-party-stage { position: absolute; left: 1140px; top: 410px; width: 900px; height: 1120px; }
.finale-party-card { position: relative; width: 880px; height: 495px; margin: 0 auto; background: var(--paper-card); padding: 18px; box-shadow: 0 24px 52px rgba(72, 54, 40, 0.14); border-radius: 5px; }
.finale-party-inner { width: 100%; height: 100%; overflow: hidden; }
.finale-party-img { width: 100%; height: 100%; object-fit: cover; }
.finale-heart-overlay { position: absolute; right: -38px; bottom: -66px; width: 220px; height: 200px; z-index: 8; }
.vow-poem { margin-top: 120px; width: 900px; }

#act-8 { left: 2060px; top: 8820px; width: 1080px; height: 1920px; }
.rsvp-card { position: absolute; top: 170px; left: 140px; width: 800px; padding: 44px 52px; background: rgba(255, 253, 249, 0.88); border: 1.5px solid rgba(120, 98, 82, 0.24); border-radius: 8px; box-shadow: 0 18px 42px rgba(72, 54, 40, 0.08); cursor: pointer; }
.rsvp-field { height: 78px; border: 1.5px solid rgba(110, 92, 78, 0.34); border-radius: 4px; background: #fffdf9; margin-bottom: 24px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.rsvp-label { font-size: 25px; letter-spacing: 0.1em; color: var(--ink-muted); }
.rsvp-label::before { content: "* "; color: var(--crimson); }
.rsvp-handwriting { font-family: var(--font-hand); font-size: 33px; color: var(--ink-primary); letter-spacing: 0.1em; }
.rsvp-submit { height: 78px; border-radius: 4px; background: #3b312d; color: #faf5ec; display: flex; align-items: center; justify-content: center; font-size: 29px; letter-spacing: 0.24em; }
.envelope-sprite-wrap { position: absolute; top: 630px; left: 250px; width: 580px; height: 580px; }
.closing-poem { position: absolute; top: 1245px; left: 0; width: 1080px; font-size: 33px; }
.thanks-heading { position: absolute; top: 1435px; left: 0; width: 1080px; font-size: 142px; }
.closing-date-sign { position: absolute; top: 1645px; left: 0; width: 1080px; text-align: center; font-family: var(--font-num); font-size: 29px; letter-spacing: 0.28em; color: var(--ink-muted); }
