:root {
  --ivory: #f6f0e4;
  --champagne: #e5d3b0;
  --gold: #b8943f;
  --gold-bright: #d4b56a;
  --gold-line: rgba(184, 148, 63, 0.26);
  --ink: #2a2216;
  --ink-soft: rgba(42, 34, 22, 0.62);
  --empty: rgba(42, 34, 22, 0.32);
  --paper: #f8f2e7;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --serif: "Cormorant Garamond", "Noto Serif SC", "Songti SC", Georgia, serif;
  --label: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --shell: min(100% - 2.2rem, 72rem);
  --foil: linear-gradient(
    115deg,
    #8f6f2a 0%,
    #d8bc74 28%,
    #f0e2b8 48%,
    #c9a84c 68%,
    #8f6f2a 100%
  );
}

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

html {
  scroll-behavior: auto;
  overflow-x: hidden;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--ink);
  background: var(--ivory);
}

/* 微信爬虫首图：移出视口，不影响版面 */
.share-crawl {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

body:not(.is-opened) {
  overflow: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none !important;
  z-index: 0;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* Ambient hearts — viewport layer, motion driven in JS */
.gold-dust {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100dvh;
  z-index: 40;
  pointer-events: none;
  overflow: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.gold-dust i {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--s, 18px);
  height: var(--s, 18px);
  opacity: 0;
  mix-blend-mode: multiply;
  will-change: transform, opacity;
}

.gold-dust i span {
  display: block;
  width: 100%;
  height: 100%;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 0 5px rgba(212, 168, 160, 0.16));
  animation: balloon-sway var(--sway, 2.8s) ease-in-out infinite alternate;
  animation-delay: var(--sway-delay, 0s);
}

.gold-dust i.is-candy span {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23c98982' fill-opacity='.78' d='M12 21S3 13.5 3 8.6C3 5.7 5.3 3.6 8 3.6c1.6 0 3 .8 4 2.1 1-1.3 2.4-2.1 4-2.1 2.7 0 5 2.1 5 5C21 13.5 12 21 12 21z'/%3E%3Cellipse fill='%23fff' opacity='.28' cx='9.1' cy='8.2' rx='2.1' ry='1.35' transform='rotate(-28 9.1 8.2)'/%3E%3C/svg%3E");
}

.gold-dust i.is-spark span {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d4a8a2' fill-opacity='.75' d='M11.2 20.6S3.2 13.6 3.2 9C3.2 6.3 5.3 4.4 7.8 4.4c1.5 0 2.8.8 3.7 2 .9-1.2 2.2-2 3.7-2 2.5 0 4.6 1.9 4.6 4.6 0 4.6-8 11.6-8.6 11.6z'/%3E%3Cpath fill='%23d4b56a' fill-opacity='.55' d='M19.2 3.2l.45 1.35h1.4l-1.12.82.42 1.36L19.2 5.9l-1.15.83.42-1.36-1.12-.82h1.4z'/%3E%3Cpath fill='%23d4b56a' fill-opacity='.45' d='M21.4 8.1l.28.82h.86l-.7.5.27.83-.71-.52-.7.52.26-.83-.69-.5h.86z'/%3E%3C/svg%3E");
}

.gold-dust i.is-wobble span {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg transform='rotate(-18 12 12)'%3E%3Cpath fill='%23c98982' fill-opacity='.76' d='M13.4 20.2C6.8 16.2 2.6 11.6 3.6 8.1 4.4 5.6 7 4.5 9.2 5.3c1.3.5 2.1 1.6 2.5 3 0.7-1.8 2.5-3.4 4.8-2.8 2.6.7 3.8 3.2 2.7 5.7-1.5 3.8-3.8 6.6-5.8 9z'/%3E%3Cellipse fill='%23fff' opacity='.24' cx='9.4' cy='8.4' rx='1.8' ry='1.1' transform='rotate(-32 9.4 8.4)'/%3E%3C/g%3E%3C/svg%3E");
}

.gold-dust i.is-tail span {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d4a8a2' fill-opacity='.74' d='M12.4 18.8S4.2 12.6 4.2 8.4C4.2 5.8 6.2 4.2 8.5 4.4c1.4.1 2.5 1 3.2 2.2.7-1.3 2.1-2.2 3.7-2.1 2.4.2 4.1 2.2 3.8 4.7-.4 3.8-4.4 7.3-6.8 9.6z'/%3E%3Cpath fill='none' stroke='%23c98982' stroke-opacity='.45' stroke-width='1.5' stroke-linecap='round' d='M12.5 18.6c.6 1.1 1.8 1.8 2.2 3.1'/%3E%3Cellipse fill='%23fff' opacity='.24' cx='9.2' cy='8' rx='1.7' ry='1.05' transform='rotate(-26 9.2 8)'/%3E%3C/svg%3E");
}

@keyframes balloon-sway {
  from {
    transform: translateX(-0.35rem) rotate(-6deg);
  }
  to {
    transform: translateX(0.4rem) rotate(7deg);
  }
}

/* Animated flourish */
.flourish {
  display: block;
  width: min(82vw, 22rem);
  margin: 0 auto;
  color: var(--gold);
  overflow: visible;
}

.flourish .stroke {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.flourish .leaf path,
.flourish .dot {
  opacity: 0;
}

.flourish.is-drawn .stroke--core {
  animation: flourish-draw 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* 藤蔓自中心向两端生长 */
.flourish.is-drawn .stroke--vine {
  animation: flourish-draw 2.2s cubic-bezier(0.32, 0.06, 0.28, 1) 0.2s forwards;
}

/* 叶片跟着笔尖依次展开 */
.flourish.is-drawn .leaf path {
  animation: flourish-fade 0.45s ease forwards;
  animation-delay: calc(0.5s + var(--i, 0) * 0.19s);
}

.flourish.is-drawn .dot {
  animation: flourish-fade 0.7s ease forwards;
  animation-delay: 0.9s;
}

@keyframes flourish-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes flourish-fade {
  to { opacity: 1; }
}

.couple .flourish {
  margin: 2.4rem auto 0;
}

/* Corner ornaments */
.corners {
  position: absolute;
  inset: 0.9rem;
  pointer-events: none;
  color: rgba(184, 148, 63, 0.62);
}

.corners .corner {
  position: absolute;
  width: 4rem;
  height: 4rem;
}

.corner--tl { top: 0; left: 0; }
.corner--tr { top: 0; right: 0; transform: scaleX(-1); }
.corner--br { bottom: 0; right: 0; transform: scale(-1, -1); }
.corner--bl { bottom: 0; left: 0; transform: scaleY(-1); }

.back {
  position: fixed;
  top: max(0.85rem, env(safe-area-inset-top));
  left: 1rem;
  z-index: 50;
  font-family: "Cinzel", serif;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.back:hover {
  color: var(--ink);
  border-color: var(--gold);
}

/* Seal / open */
.seal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(216, 188, 116, 0.28), transparent 60%),
    linear-gradient(165deg, #2a2216 0%, #1a1510 100%);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.seal.is-opening,
.seal.is-gone,
body.is-opened .seal {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.seal.is-waiting .seal-open {
  pointer-events: none;
}

.seal.is-waiting .seal-sub {
  letter-spacing: 0.22em;
}

.seal-open {
  appearance: none;
  border: 0;
  background: transparent;
  color: #f6f0e4;
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  position: relative;
  padding: 2.5rem;
}

.seal-ring {
  position: absolute;
  width: 7.5rem;
  height: 7.5rem;
  border: 1px solid rgba(212, 181, 106, 0.55);
  border-radius: 50%;
  animation: seal-pulse 2.4s ease-in-out infinite;
}

.seal-text {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  background: var(--foil);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: foil-shift 6s ease-in-out infinite;
}

.seal-sub {
  font-family: "Cinzel", serif;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(246, 240, 228, 0.55);
}

.music-btn {
  position: fixed;
  top: max(0.75rem, env(safe-area-inset-top));
  right: 1rem;
  z-index: 90;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid rgba(184, 148, 63, 0.45);
  background: rgba(246, 240, 228, 0.72);
  backdrop-filter: blur(8px);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.music-icon {
  width: 0.88rem;
  height: 0.88rem;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  position: relative;
  background:
    radial-gradient(circle, var(--ivory) 17%, transparent 18%),
    repeating-radial-gradient(circle, rgba(184, 148, 63, 0.5) 0 1px, transparent 1px 2.4px);
}

.music-icon::before {
  content: "";
  position: absolute;
  inset: 36%;
  border-radius: 50%;
  background: var(--gold);
}

.music-btn.is-on .music-icon {
  animation: music-spin 1.6s linear infinite;
}

.music-btn.is-off .music-icon {
  opacity: 0.42;
}

.music-btn.is-off .music-icon::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 50%;
  height: 1.5px;
  background: var(--gold);
  transform: rotate(-38deg);
}

.music-btn.is-missing {
  animation: shake 0.35s ease;
}

.dots {
  position: fixed;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: grid;
  gap: 0.45rem;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(184, 148, 63, 0.28);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.dot.is-active {
  background: var(--gold);
  transform: scale(1.35);
}

.scroller {
  position: relative;
  min-height: 100dvh;
  background: linear-gradient(180deg, #f4ecde 0%, #f8f2e7 50%, #efe5d2 100%);
  overflow-x: hidden;
}

.screen {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4.2rem 1.4rem 3.4rem;
}

/* Cover — full-bleed poster */
.cover {
  min-height: 100dvh;
  justify-content: flex-end;
  align-items: stretch;
  padding: 0;
  background: #1c1812;
}

.poster {
  position: relative;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 40%, rgba(216, 188, 116, 0.22), transparent 65%),
    linear-gradient(160deg, #3a3226 0%, #1c1812 55%, #2a2216 100%);
}

.poster-img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.poster.has-image .poster-img {
  display: block;
}

.poster.has-image .poster-slot {
  display: none;
}

.poster-slot {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.55rem;
  text-align: center;
  pointer-events: none;
}

.poster-slot-title {
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(232, 211, 176, 0.78);
}

.poster-slot-hint {
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(232, 211, 176, 0.4);
}

.poster-hero {
  position: absolute;
  inset: 0;
}

.cover-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(28, 24, 18, 0.15) 0%, rgba(28, 24, 18, 0.2) 35%, rgba(28, 24, 18, 0.82) 78%, rgba(28, 24, 18, 0.94) 100%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(184, 148, 63, 0.22), transparent 60%);
  pointer-events: none;
}

.cover-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 100dvh;
  text-align: center;
  padding: 4.5rem 1.6rem 3.2rem;
  color: #f6f0e4;
}

.cover-content .eyebrow {
  color: var(--gold-bright);
}

.cover-content .lede {
  color: rgba(246, 240, 228, 0.72);
}

.cover-content .scroll-cue {
  color: rgba(246, 240, 228, 0.7);
}

.cover-bg {
  display: none;
}

.ornament {
  width: min(46vw, 11rem);
  height: 1px;
  background: var(--foil);
  background-size: 200% 100%;
  animation: foil-shift 6s linear infinite;
  position: relative;
}

.ornament.top {
  margin-bottom: 2rem;
}

.ornament.bottom {
  margin-top: 2.4rem;
}

.ornament::before,
.ornament::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  border: 1px solid var(--gold-bright);
  transform: translateY(-50%) rotate(45deg);
}

.ornament::before {
  left: -10px;
}

.ornament::after {
  right: -10px;
}

.eyebrow {
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.brand {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(4.2rem, 22vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  background: var(--foil);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: foil-shift 7s ease-in-out infinite;
}

.lede {
  margin-top: 1.25rem;
  max-width: 16rem;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.55;
}

.scroll-cue {
  margin-top: 2.75rem;
  background: none;
  border: none;
  cursor: pointer;
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  font-family: "Cinzel", serif;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.scroll-cue i {
  width: 1px;
  height: 2.2rem;
  background: linear-gradient(180deg, var(--gold-bright), transparent);
  position: relative;
  animation: cue-pulse 1.8s ease-in-out infinite;
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--gold-bright);
  border-bottom: 1px solid var(--gold-bright);
  transform: translateX(-50%) rotate(45deg);
}

/* Photo interlude + divider */
.interlude,
.divider {
  width: 100%;
  justify-content: flex-start;
  padding-top: 4.5rem;
  padding-bottom: 3.4rem;
}

.photo-card {
  margin: 0;
  width: min(100%, 24rem);
}

.photo-matte {
  padding: 0.65rem;
  background: rgba(255, 253, 248, 0.85);
  border: 1px solid var(--gold-line);
  box-shadow: 0 18px 40px rgba(42, 34, 22, 0.14);
}

.photo-matte img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(184, 148, 63, 0.42);
}

.photo-caption {
  margin-top: 1.5rem;
}

.photo-quote {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  line-height: 1.8;
  color: var(--ink);
}

.photo-sub {
  margin-top: 0.65rem;
  font-family: "Cinzel", serif;
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}

@media (max-width: 720px) {
  .interlude--wide {
    padding-left: 0;
    padding-right: 0;
  }

  .interlude--wide .photo-card {
    width: 100%;
  }

  .interlude--wide .photo-matte {
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .interlude--wide .photo-matte img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: center 42%;
    border: 0;
  }

  .interlude--wide .photo-caption {
    padding: 0 1.4rem;
  }
}

.interlude--polaroid {
  overflow: visible;
}

.polaroid-board {
  margin: 0;
  width: min(100%, 22.5rem);
}

.polaroid-stage {
  position: relative;
  width: 100%;
  height: 24.2rem;
}

.polaroid {
  position: absolute;
  appearance: none;
  -webkit-appearance: none;
  display: block;
  margin: 0;
  border: 0;
  background:
    linear-gradient(180deg, #fffdf8 0%, #f7f0e4 100%);
  padding: 0.4rem 0.4rem 1.55rem;
  box-shadow:
    0 0 0 1px rgba(184, 148, 63, 0.22),
    0 14px 28px rgba(42, 34, 22, 0.14);
  transform: rotate(var(--r, 0deg));
  transform-origin: 50% 70%;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.55s ease;
}

.polaroid img {
  display: block;
  width: 100%;
  object-fit: cover;
  background: #e8dcc8;
}

.polaroid--wide {
  width: 63%;
  left: 4%;
  top: 14%;
  z-index: 1;
  --r: -6.5deg;
}

.polaroid--wide img {
  aspect-ratio: 4 / 3;
  object-position: 42% 58%;
}

.polaroid--back {
  width: 47%;
  right: 3%;
  top: 4%;
  z-index: 2;
  --r: 6.5deg;
}

.polaroid--front {
  width: 54%;
  left: 23%;
  top: 28%;
  z-index: 3;
  --r: -2deg;
}

.polaroid--back img,
.polaroid--front img {
  aspect-ratio: 3 / 4;
  object-position: center 26%;
}

.polaroid-board.visible .polaroid {
  animation: polaroid-settle 2.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.polaroid-board.visible .polaroid--wide { animation-delay: 0.2s; }
.polaroid-board.visible .polaroid--back { animation-delay: 1.25s; }
.polaroid-board.visible .polaroid--front { animation-delay: 2.35s; }

.polaroid-board.is-shuffled .polaroid {
  animation: none;
  opacity: 1;
}

.polaroid.is-up {
  transform: rotate(var(--r, 0deg)) translateY(-0.5rem) scale(1.05);
  box-shadow:
    0 0 0 1px rgba(184, 148, 63, 0.34),
    0 22px 42px rgba(42, 34, 22, 0.22);
}

@keyframes polaroid-settle {
  from {
    opacity: 0;
    transform: rotate(calc(var(--r, 0deg) * 1.8)) translateY(1.1rem) scale(0.96);
  }
  to {
    opacity: 1;
    transform: rotate(var(--r, 0deg)) translateY(0) scale(1);
  }
}

.interlude--polaroid .photo-caption {
  margin-top: 1.8rem;
}

.divider-word {
  margin-top: 1.6rem;
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--ink);
}

.divider-en {
  margin-top: 0.6rem;
  font-family: "Cinzel", serif;
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Shared content screens */
.couple,
.when,
.contact,
.timeline,
.rsvp {
  width: 100%;
  justify-content: flex-start;
  padding-top: 4.5rem;
  padding-bottom: 3.4rem;
}

.invite-line {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
  letter-spacing: 0.12em;
}

.rsvp-points {
  list-style: none;
  width: min(100%, 18rem);
  margin: 0 auto 0.5rem;
  text-align: left;
}

.rsvp-points li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.2rem;
  border-bottom: 1px solid rgba(184, 148, 63, 0.22);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.rsvp-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 6px;
  height: 6px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: min(100%, 30rem);
  margin: clamp(2rem, 5vw, 3.2rem) auto 0;
  background: var(--gold-line);
  border: 1px solid var(--gold-line);
}

.countdown div {
  background: rgba(255, 253, 248, 0.82);
  padding: 1rem 0.5rem;
  text-align: center;
}

.countdown strong {
  display: block;
  font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-variant-numeric: tabular-nums;
}

.countdown span {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.flow {
  list-style: none;
  width: min(100%, 20rem);
  display: grid;
  gap: 0;
  text-align: left;
}

.flow li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(184, 148, 63, 0.22);
}

.flow li:first-child {
  border-top: 1px solid rgba(184, 148, 63, 0.22);
}

.flow-time {
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.flow-title {
  font-size: 1.2rem;
  letter-spacing: 0.12em;
}

.action-row {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

.action-btn {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(184, 148, 63, 0.55);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-family: "Cinzel", serif;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.75rem 1.1rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.action-btn.solid,
.action-btn:hover {
  background: linear-gradient(120deg, #b8943f, #d4b56a);
  color: #fffaf0;
  border-color: transparent;
}

.action-btn.ghost:hover {
  background: rgba(184, 148, 63, 0.12);
  color: var(--ink);
}

.action-btn.is-empty {
  animation: shake 0.35s ease;
}

.action-btn.is-copied,
.action-btn.ghost.is-copied {
  background: linear-gradient(120deg, #b8943f, #d4b56a);
  color: #fffaf0;
  border-color: transparent;
}

.action-btn.is-fail {
  color: #9a3b32;
  border-color: rgba(154, 59, 50, 0.45);
}

.rsvp-form {
  width: min(100%, 20rem);
  display: grid;
  gap: 0.75rem;
  text-align: left;
}

.rsvp-form label {
  display: grid;
  gap: 0.4rem;
}

.rsvp-form label span {
  font-family: "Cinzel", serif;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(184, 148, 63, 0.4);
  background: transparent;
  padding: 0.55rem 0.1rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  color: var(--ink);
  outline: none;
  border-radius: 0;
}

.rsvp-form textarea {
  resize: vertical;
  min-height: 4rem;
}

.rsvp-form .action-btn {
  margin-top: 0.5rem;
  justify-self: center;
}

.section-label {
  font-family: "Cinzel", serif;
  font-size: 0.64rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
}

.display {
  font-weight: 400;
  font-size: clamp(2.6rem, 12vw, 3.4rem);
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  margin-bottom: 2rem;
  color: var(--ink);
}

.names {
  min-width: 12rem;
}

.role {
  font-family: "Cinzel", serif;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.45rem;
}

.name {
  font-size: clamp(2rem, 9vw, 2.6rem);
  font-weight: 500;
  letter-spacing: 0.12em;
}

.ampersand {
  font-family: "Great Vibes", cursive;
  font-size: 2.8rem;
  background: var(--foil);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0.55rem 0 0.7rem;
  animation: foil-shift 6s ease-in-out infinite;
  line-height: 1;
}

.note,
.map-hint {
  margin-top: 1.8rem;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--empty);
}

.info-block {
  width: min(100%, 18rem);
  margin-bottom: 1.15rem;
}

.info-block .key {
  font-family: "Cinzel", serif;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.info-block .value {
  font-size: 1.55rem;
  letter-spacing: 0.08em;
  line-height: 1.35;
}

.value.address {
  font-size: 1.25rem;
}

.gold-rule {
  width: 3.5rem;
  height: 1px;
  background: var(--foil);
  background-size: 200% 100%;
  margin: 0.35rem auto 1.35rem;
  animation: foil-shift 5s linear infinite;
}

.empty {
  color: var(--empty);
  border-bottom: 1px dashed rgba(184, 148, 63, 0.45);
  display: inline-block;
  min-width: 7rem;
  padding: 0 0.35rem 0.15rem;
}

.closing {
  margin-top: 2.4rem;
}

.script {
  font-family: "Great Vibes", cursive;
  font-size: 2.4rem;
  background: var(--foil);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: foil-shift 6s ease-in-out infinite;
}

.thanks {
  margin-top: 0.55rem;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink-soft);
}

.home {
  margin-top: 2.4rem;
  font-family: "Cinzel", serif;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
  border-bottom: 1px solid rgba(184, 148, 63, 0.35);
  padding-bottom: 0.2rem;
}

/* Last screen — double doors into the site */
.continue {
  --door-open: 3.2s;
  justify-content: stretch;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

.continue-hit {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  width: 100%;
  text-decoration: none;
  color: #f6f0e4;
  overflow: hidden;
  perspective: 1180px;
  perspective-origin: 50% 46%;
  transform-style: preserve-3d;
  -webkit-tap-highlight-color: transparent;
}

.continue-world {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 42% 32% at 50% 46%, rgba(240, 226, 184, 0.38), transparent 68%),
    radial-gradient(ellipse 80% 70% at 50% 50%, #4a3a22 0%, #1c1812 74%);
}

.continue.is-opening .continue-world {
  animation: continue-world-bloom var(--door-open) cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.continue-light {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  mix-blend-mode: screen;
}

.continue-light-bloom,
.continue-light-shaft,
.continue-light-veils,
.continue-light-filaments,
.continue-light-beam,
.continue-light-dust {
  position: absolute;
  pointer-events: none;
  opacity: 0;
}

.continue-light-bloom {
  left: 46%;
  top: 39%;
  width: min(78vw, 34rem);
  height: min(96vh, 48rem);
  transform: translate(-50%, -50%) scale(0.28);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 252, 242, 0.72) 0%,
    rgba(255, 236, 186, 0.38) 28%,
    rgba(240, 214, 150, 0.12) 52%,
    transparent 72%
  );
  filter: blur(28px);
}

.continue-light-shaft {
  left: 47%;
  top: 48%;
  width: 2.4rem;
  height: 128%;
  transform: translate(-50%, -50%) rotate(-8deg) scaleX(0.2);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 244, 214, 0.16) 36%,
    rgba(255, 252, 242, 0.55) 50%,
    rgba(255, 236, 186, 0.16) 64%,
    transparent 100%
  );
  filter: blur(18px);
}

.continue-light-veils,
.continue-light-filaments {
  left: 46%;
  top: 38%;
  width: 165vmax;
  height: 165vmax;
  transform: translate(-50%, -50%);
  -webkit-mask-image: radial-gradient(ellipse 44% 58% at 44% 42%, #000 8%, transparent 68%);
  mask-image: radial-gradient(ellipse 44% 58% at 44% 42%, #000 8%, transparent 68%);
}

.continue-light-veils {
  background: repeating-conic-gradient(
    from -20deg,
    transparent 0deg 8.4deg,
    rgba(255, 244, 214, 0.05) 8.7deg,
    rgba(255, 250, 235, 0.12) 9.1deg,
    rgba(255, 244, 214, 0.04) 9.5deg,
    transparent 9.8deg 17deg
  );
  filter: blur(10px);
}

.continue-light-filaments {
  background: repeating-conic-gradient(
    from -14deg,
    transparent 0deg 5.15deg,
    rgba(255, 248, 230, 0.04) 5.28deg,
    rgba(255, 252, 242, 0.28) 5.42deg,
    rgba(255, 236, 186, 0.08) 5.55deg,
    transparent 5.7deg 10.4deg
  );
  filter: blur(0.8px);
}

.continue-light-beam {
  left: 47%;
  top: 38%;
  width: 92vmax;
  height: calc(var(--w, 0.3) * 0.9rem);
  margin-top: calc(var(--w, 0.3) * -0.45rem);
  transform: rotate(var(--r, 0deg));
  transform-origin: 0 50%;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 252, 242, calc(var(--l, 0.5) * 0.55)) 0%,
    rgba(255, 244, 214, calc(var(--l, 0.5) * 0.22)) 28%,
    rgba(255, 236, 186, calc(var(--l, 0.5) * 0.08)) 58%,
    transparent 82%
  );
  filter: blur(calc(2px + var(--w, 0.3) * 5px));
}

.continue-light-dust {
  inset: 0;
  background-image:
    radial-gradient(1.1px 1.1px at 48% 38%, rgba(255, 252, 240, 0.7), transparent),
    radial-gradient(0.9px 0.9px at 53% 46%, rgba(255, 236, 190, 0.55), transparent),
    radial-gradient(1.2px 1.2px at 46% 58%, rgba(255, 250, 235, 0.5), transparent),
    radial-gradient(0.8px 0.8px at 57% 33%, rgba(255, 244, 214, 0.55), transparent),
    radial-gradient(0.9px 0.9px at 42% 48%, rgba(255, 252, 242, 0.45), transparent),
    radial-gradient(1px 1px at 61% 62%, rgba(255, 236, 186, 0.45), transparent),
    radial-gradient(0.8px 0.8px at 39% 28%, rgba(255, 248, 230, 0.4), transparent),
    radial-gradient(1.1px 1.1px at 55% 72%, rgba(255, 250, 235, 0.4), transparent),
    radial-gradient(0.9px 0.9px at 50% 22%, rgba(255, 252, 240, 0.5), transparent),
    radial-gradient(1px 1px at 36% 64%, rgba(255, 236, 186, 0.4), transparent);
  filter: blur(0.4px);
}

.continue.is-opening .continue-light-bloom {
  animation: continue-light-bloom var(--door-open) cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.continue.is-opening .continue-light-shaft {
  animation: continue-light-shaft var(--door-open) cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.continue.is-opening .continue-light-veils {
  animation: continue-light-veils 3.4s ease-in-out forwards;
}

.continue.is-opening .continue-light-filaments {
  animation: continue-light-filaments 3.15s ease-in-out forwards;
}

.continue.is-opening .continue-light-beam {
  animation: continue-light-beam var(--dur, var(--door-open)) cubic-bezier(0.22, 0.61, 0.36, 1) var(--d, 0s) both;
}

.continue.is-opening .continue-light-dust {
  animation: continue-light-dust var(--door-open) ease-out forwards;
}

.continue-flare {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse 62% 46% at 50% 42%, rgba(255, 248, 230, 0.42), transparent 72%),
    radial-gradient(ellipse 92% 72% at 50% 50%, rgba(255, 236, 186, 0.12), transparent 78%);
  mix-blend-mode: screen;
}

.continue.is-opening .continue-flare {
  animation: continue-flare var(--door-open) cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.continue-doors {
  position: absolute;
  inset: 0;
  z-index: 2;
  transform-style: preserve-3d;
}

.continue-door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform var(--door-open) cubic-bezier(0.45, 0.02, 0.18, 1);
}

.continue-door--left {
  left: 0;
  transform-origin: left center;
  transform: translateZ(0);
}

.continue-door--right {
  right: 0;
  transform-origin: right center;
  transform: translateZ(0);
}

.continue-door-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #1c1812;
}

.continue-door-face::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(28, 24, 18, 0.12), rgba(28, 24, 18, 0.58) 78%);
  transition: opacity 1.1s ease;
}

.continue-door-face::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 36%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.continue-door--left .continue-door-face::before {
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 236, 186, 0.12) 48%, rgba(255, 250, 235, 0.55));
  box-shadow: 10px 0 28px rgba(255, 236, 186, 0.28);
}

.continue-door--right .continue-door-face::before {
  left: 0;
  background: linear-gradient(270deg, transparent, rgba(255, 236, 186, 0.12) 48%, rgba(255, 250, 235, 0.55));
  box-shadow: -10px 0 28px rgba(255, 236, 186, 0.28);
}

.continue.is-opening .continue-door-face::before {
  opacity: 1;
}

.continue.is-opening .continue-door-face::after {
  opacity: 0.28;
}

.continue-door--left .continue-door-face {
  box-shadow: inset -14px 0 32px rgba(0, 0, 0, 0.42);
  transition: box-shadow var(--door-open) cubic-bezier(0.45, 0.02, 0.18, 1);
}

.continue-door--right .continue-door-face {
  box-shadow: inset 14px 0 32px rgba(0, 0, 0, 0.42);
  transition: box-shadow var(--door-open) cubic-bezier(0.45, 0.02, 0.18, 1);
}

.continue.is-opening .continue-door--left .continue-door-face {
  box-shadow:
    inset -22px 0 36px rgba(255, 236, 186, 0.32),
    inset -6px 0 14px rgba(255, 250, 235, 0.55);
}

.continue.is-opening .continue-door--right .continue-door-face {
  box-shadow:
    inset 22px 0 36px rgba(255, 236, 186, 0.32),
    inset 6px 0 14px rgba(255, 250, 235, 0.55);
}

.continue-door .poster-img {
  position: absolute;
  top: 0;
  height: 100%;
  width: 200%;
  max-width: none;
  object-fit: cover;
  object-position: center 42%;
}

.continue-door--left .poster-img { left: 0; }
.continue-door--right .poster-img { right: 0; }

.continue.in-view:not(.is-opening) .poster.has-image .poster-img {
  animation: continue-ken 22s ease-in-out infinite alternate;
}

.continue-seam {
  position: absolute;
  top: 7%;
  bottom: 7%;
  left: 50%;
  z-index: 3;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    transparent,
    rgba(212, 181, 106, 0.8) 16%,
    #f0e2b8 50%,
    rgba(212, 181, 106, 0.8) 84%,
    transparent
  );
  box-shadow: 0 0 16px rgba(212, 181, 106, 0.5);
  pointer-events: none;
}

.continue-content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: min(24rem, 92%);
  margin-top: -8vh;
  padding: 1.6rem 1.4rem 1.8rem;
  transform: translateZ(72px);
  transform-style: preserve-3d;
}

.continue-content .script {
  display: inline-block;
  margin: 0;
  padding: 0.16em 0.55em 0.28em 0.22em;
  font-size: clamp(2.2rem, 10vw, 2.85rem);
  line-height: 1.45;
  overflow: visible;
  filter: drop-shadow(0 10px 18px rgba(12, 8, 4, 0.45));
}

.continue-names {
  margin-top: 0.15rem;
  font-size: 1.02rem;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: rgba(246, 240, 228, 0.88);
  text-shadow: 0 8px 22px rgba(8, 6, 4, 0.55);
}

.continue-cue {
  position: relative;
  display: grid;
  justify-items: center;
  margin-top: 1.85rem;
}

.continue-press-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 13.5rem;
  min-height: 7.4rem;
}

.continue-glow {
  position: absolute;
  width: 13.5rem;
  height: 13.5rem;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(232, 211, 150, 0.38) 0%, rgba(212, 181, 106, 0.16) 42%, transparent 70%);
}

.continue.in-view:not(.is-opening) .continue-glow {
  animation: continue-glow 3.2s ease-in-out infinite;
}

.continue-pulse,
.continue-pulse--lag {
  position: absolute;
  width: 10.8rem;
  height: 10.8rem;
  border-radius: 50%;
  border: 1.5px solid rgba(240, 226, 184, 0.72);
  box-shadow:
    0 0 22px rgba(212, 181, 106, 0.42),
    inset 0 0 18px rgba(212, 181, 106, 0.14);
  pointer-events: none;
}

.continue.in-view:not(.is-opening) .continue-pulse {
  animation: continue-ring 2.6s ease-out infinite;
}

.continue.in-view:not(.is-opening) .continue-pulse--lag {
  animation: continue-ring 2.6s ease-out 1.3s infinite;
}

.continue.in-view:not(.is-opening) .continue-content {
  animation: continue-hover 5.6s ease-in-out infinite;
}

.continue-press {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.28rem;
  font-family: "Cormorant Garamond", "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(1.08rem, 4.6vw, 1.28rem);
  line-height: 1.45;
  letter-spacing: 0.18em;
  text-align: center;
  background: var(--foil);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 16px rgba(12, 8, 4, 0.5));
}

.continue.in-view:not(.is-opening) .continue-press {
  animation: foil-shift 6s ease-in-out infinite;
}

.continue-line {
  display: block;
}

.continue-click {
  display: none;
}

.continue-sub {
  margin-top: 1.15rem;
  font-family: "Cinzel", serif;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: rgba(246, 240, 228, 0.52);
  text-shadow: 0 6px 16px rgba(8, 6, 4, 0.5);
}

.continue.is-opening .continue-door--left {
  transform: rotateY(-108deg);
}

.continue.is-opening .continue-door--right {
  transform: rotateY(108deg);
}

.continue.is-opening .continue-seam {
  animation: continue-seam-flare 0.72s ease forwards;
}

.continue.is-opening .continue-content {
  pointer-events: none;
  animation: continue-float-away 0.55s ease forwards;
}

.continue.is-opening .poster.has-image .poster-img {
  animation: none;
}

body.is-doors-opening .music-btn,
body.is-doors-opening .dots,
body.is-doors-opening .back,
body.is-doors-opening .invite-live {
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

@keyframes continue-ken {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.16) translate3d(0, -2.2%, 0); }
}

@keyframes continue-ring {
  0% {
    transform: scale(0.86);
    opacity: 0.92;
  }
  100% {
    transform: scale(1.38);
    opacity: 0;
  }
}

@keyframes continue-glow {
  0%, 100% { opacity: 0.72; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes continue-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

@keyframes continue-hover {
  0%, 100% { transform: translateZ(72px) translateY(0); }
  50% { transform: translateZ(72px) translateY(-7px); }
}

@keyframes continue-float-away {
  0% {
    opacity: 1;
    transform: translateZ(72px);
  }
  100% {
    opacity: 0;
    transform: translateZ(120px) scale(0.98);
  }
}

@keyframes continue-world-bloom {
  0% { filter: brightness(1); }
  22% { filter: brightness(1.35); }
  52% { filter: brightness(1.7); }
  100% {
    filter: none;
    background: #fbf7ee;
  }
}

@keyframes continue-light-bloom {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.22); }
  16% { opacity: 0.72; transform: translate(-42%, -56%) scale(0.74); }
  48% { opacity: 0.5; transform: translate(-58%, -46%) scale(1.18); }
  100% { opacity: 0.16; transform: translate(-36%, -62%) scale(2.05); }
}

@keyframes continue-light-shaft {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(-8deg) scaleX(0.12) scaleY(0.9); }
  14% { opacity: 0.7; transform: translate(-50%, -50%) rotate(-6deg) scaleX(0.55) scaleY(1); }
  42% { opacity: 0.42; transform: translate(-50%, -50%) rotate(-10deg) scaleX(0.92) scaleY(1.04); }
  68% { opacity: 0.55; transform: translate(-50%, -50%) rotate(-5deg) scaleX(1.12) scaleY(1.05); }
  100% { opacity: 0.08; transform: translate(-50%, -50%) rotate(-12deg) scaleX(2.05) scaleY(1.08); }
}

@keyframes continue-light-veils {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(10deg) scale(0.9); }
  18% { opacity: 0.55; transform: translate(-50%, -50%) rotate(2deg) scale(1); }
  48% { opacity: 0.28; transform: translate(-50%, -50%) rotate(-8deg) scale(1.04); }
  72% { opacity: 0.4; transform: translate(-50%, -50%) rotate(-14deg) scale(1.07); }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(-22deg) scale(1.12); }
}

@keyframes continue-light-filaments {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(-16deg) scale(0.92); }
  14% { opacity: 0.82; transform: translate(-50%, -50%) rotate(-7deg) scale(1); }
  36% { opacity: 0.48; transform: translate(-50%, -50%) rotate(2deg) scale(1.03); }
  58% { opacity: 0.78; transform: translate(-50%, -50%) rotate(9deg) scale(1.05); }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(18deg) scale(1.1); }
}

@keyframes continue-light-beam {
  0% { opacity: 0; transform: rotate(var(--r, 0deg)) scaleX(0.32); }
  14% { opacity: calc(var(--l, 0.5) * 0.4); transform: rotate(calc(var(--r, 0deg) + var(--drift, 2deg) * 0.15)) scaleX(0.72); }
  26% { opacity: calc(var(--l, 0.5) * 0.95); transform: rotate(calc(var(--r, 0deg) + var(--drift, 2deg) * 0.35)) scaleX(calc(var(--s, 1) * 0.94)); }
  42% { opacity: calc(var(--l, 0.5) * 0.52); transform: rotate(calc(var(--r, 0deg) + var(--drift, 2deg) * 0.55)) scaleX(var(--s, 1)); }
  58% { opacity: calc(var(--l, 0.5) * 0.88); transform: rotate(calc(var(--r, 0deg) + var(--drift, 2deg) * 0.75)) scaleX(calc(var(--s, 1) * 1.03)); }
  78% { opacity: calc(var(--l, 0.5) * 0.4); transform: rotate(calc(var(--r, 0deg) + var(--drift, 2deg))) scaleX(calc(var(--s, 1) * 1.06)); }
  100% { opacity: 0; transform: rotate(calc(var(--r, 0deg) + var(--drift, 2deg) * 1.2)) scaleX(calc(var(--s, 1) * 1.1)); }
}

@keyframes continue-light-dust {
  0% { opacity: 0; transform: translate3d(-6px, 12px, 0); }
  22% { opacity: 0.7; transform: translate3d(4px, -4px, 0); }
  62% { opacity: 0.45; transform: translate3d(12px, -16px, 0); }
  100% { opacity: 0; transform: translate3d(22px, -34px, 0); }
}

@keyframes continue-flare {
  0% { opacity: 0; }
  16% { opacity: 0.42; }
  34% { opacity: 0.58; }
  52% { opacity: 0.28; }
  70% { opacity: 0.4; }
  100% { opacity: 0; }
}

@keyframes continue-seam-flare {
  0% {
    opacity: 1;
    width: 1px;
    box-shadow: 0 0 16px rgba(212, 181, 106, 0.5);
  }
  28% {
    opacity: 0.9;
    width: 4px;
    background: #fff8ea;
    box-shadow: 0 0 28px 8px rgba(255, 236, 186, 0.55);
  }
  100% {
    opacity: 0;
    width: 14px;
    box-shadow: 0 0 36px 12px rgba(255, 248, 230, 0.12);
  }
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(1.1rem);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.32s; }
.delay-4 { transition-delay: 0.44s; }

@keyframes foil-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes cue-pulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.85); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

@keyframes seal-pulse {
  0%, 100% { transform: scale(1); opacity: 0.55; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes music-spin {
  to { transform: rotate(360deg); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

.kicker {
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.strip {
  width: min(100%, 72rem);
  margin-top: 1.4rem;
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  background: rgba(255, 253, 248, 0.6);
  text-align: center;
}

.strip-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.strip-item {
  padding: clamp(1.5rem, 3.5vw, 2.5rem) 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.strip-item + .strip-item { border-top: 1px solid var(--gold-line); }

.strip-item strong {
  display: block;
  margin-top: 0.6rem;
  font-weight: 400;
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  letter-spacing: 0.08em;
}

.strip-item span {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.mini-cal,
.venue-map {
  width: min(100%, 16.5rem);
  height: 13.4rem;
  box-sizing: border-box;
}

.mini-cal {
  margin-top: 0.7rem;
  padding: 0.75rem 0.7rem 0.8rem;
  background: rgba(255, 253, 248, 0.12);
  border: 1px solid rgba(184, 148, 63, 0.14);
  border-radius: 0.7rem;
  backdrop-filter: blur(3px);
  box-shadow:
    0 16px 32px -18px rgba(42, 34, 22, 0.42),
    0 6px 14px -8px rgba(184, 148, 63, 0.18);
}

.cal-title {
  font-family: var(--label);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.cal-week,
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-top: 0.55rem;
}

.cal-week span,
.cal-days span {
  display: grid;
  place-items: center;
  margin-top: 0;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.cal-days span {
  position: relative;
  height: 1.55rem;
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0;
  color: var(--ink-soft);
}

.cal-days .is-heart {
  color: #9d1c1c;
  z-index: 1;
  overflow: visible;
}

.cal-days .is-heart svg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.78rem;
  height: 1.62rem;
  fill: none;
  stroke: #9d1c1c;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
  transform: translate(-50%, -50%);
  animation: heart-beat 1.35s ease-in-out infinite;
}

.cal-days .is-heart b {
  position: relative;
  font-weight: 500;
  font-size: 0.78rem;
  line-height: 1;
  color: var(--ink);
}

@keyframes heart-beat {
  0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  16% { transform: translate(-50%, -50%) scale(1.12) rotate(-5deg); }
  32% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  48% { transform: translate(-50%, -50%) scale(1.07) rotate(4deg); }
  64% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
}

.venue-map {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  display: block;
  margin-top: 0.7rem;
  overflow: hidden;
  padding: 0;
  border-radius: 0.7rem;
  border: 1px solid #cfd4dc;
  background-color: #e8eaed;
  background-image: url("../assets/venue-map.jpg?v=20260816d");
  background-size: cover;
  background-position: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  user-select: none;
  color: inherit;
  font: inherit;
  text-align: left;
}

.venue-map .map-pin,
.venue-map em {
  pointer-events: none;
}

.map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #e53935;
  transform: translate(-50%, -88%) rotate(-45deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.map-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}

.venue-map em {
  position: absolute;
  left: 0.5rem;
  bottom: 0.45rem;
  padding: 0.2rem 0.55rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-style: normal;
  letter-spacing: 0.04em;
  color: #202124;
  background: #fff;
  border-radius: 0.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}

.strip-map strong {
  margin-top: 0.7rem;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.venue-addr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  max-width: 100%;
  margin-top: 0.35rem;
}

.venue-addr [data-field="address"] {
  display: inline;
  margin-top: 0;
}

.copy-addr {
  appearance: none;
  flex: none;
  border: 0;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  background: none;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  touch-action: manipulation;
}

.copy-addr.is-copied {
  color: #fffaf0;
  background: linear-gradient(120deg, #b8943f, #d4b56a);
  text-decoration: none;
}

.copy-addr.is-fail {
  color: #9a3b32;
  text-decoration: none;
}

.flow-day {
  width: 100%;
}

.flow-day-head {
  text-align: center;
  margin-bottom: clamp(1.6rem, 4vw, 3.2rem);
}

.flow-day-head .section-label { margin-bottom: 0.6rem; }

.flow-day-head h2 {
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  color: #5a2e2c;
}

.flow-day-note {
  margin-top: 0.85rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(184, 148, 63, 0.88);
}

.flow-day-note span {
  display: inline-block;
  margin: 0 0.35rem;
  font-size: 0.58rem;
}

.flow-day-rule {
  display: block;
  position: relative;
  width: 5.6rem;
  height: 1px;
  margin: 1.15rem auto 0;
  background: rgba(184, 148, 63, 0.42);
}

.flow-day-rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border: 1px solid var(--gold);
  background: var(--paper);
  transform: translate(-50%, -50%) rotate(45deg);
}

.flow-day-list {
  list-style: none;
  position: relative;
  width: min(100%, 38rem);
  margin: 0 auto;
  padding: 0.4rem 0 0.2rem;
  text-align: initial;
}

.flow-day-list::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.4rem;
  bottom: 1.4rem;
  width: 1px;
  background: rgba(184, 148, 63, 0.55);
  transform: translateX(-50%);
}

.flow-day-list li {
  position: relative;
  width: 50%;
  padding: 0 1.35rem 2.65rem;
  box-sizing: border-box;
}

.flow-day-list li:nth-child(odd) {
  text-align: right;
  padding-right: 1.85rem;
}

.flow-day-list li:nth-child(even) {
  margin-left: 50%;
  text-align: left;
  padding-left: 1.85rem;
}

.flow-day-list li::before {
  content: "";
  position: absolute;
  top: 0.62rem;
  width: 0.52rem;
  height: 0.52rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--paper);
  box-sizing: border-box;
  z-index: 1;
}

.flow-day-list li:nth-child(odd)::before { right: 0; transform: translateX(50%); }
.flow-day-list li:nth-child(even)::before { left: 0; transform: translateX(-50%); }

.flow-day-list li.is-now::before,
.flow-day-list li:hover::before {
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(184, 148, 63, 0.18);
}

.flow-day-list:hover li.is-now:not(:hover)::before {
  background: var(--paper);
  box-shadow: none;
}

.flow-day-list li::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0.35rem;
  width: 200%;
  z-index: 0;
}

.flow-day-list li:nth-child(odd)::after { left: 0; }
.flow-day-list li:nth-child(even)::after { left: -100%; }

.flow-day-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.flow-day-list li:nth-child(odd) .flow-day-card { align-items: flex-end; }
.flow-day-list li:nth-child(even) .flow-day-card { align-items: flex-start; }

.flow-day-time {
  margin: 0 0 0.7rem;
  padding-bottom: 0.28rem;
  border-bottom: 1px solid rgba(184, 148, 63, 0.5);
  color: #5a2e2c;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3.6vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
}

.flow-day-time small {
  margin-left: 0.28rem;
  font-family: var(--label);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--gold);
  vertical-align: 0.28em;
}

.flow-day-card h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #5a2e2c;
}

.flow-day-card h3 span {
  display: inline-block;
  margin-left: 0.15rem;
  font-family: var(--label);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--gold);
  vertical-align: 0.12em;
}

.flow-day-desc {
  margin: 0.45rem 0 0;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(184, 148, 63, 0.92);
}

.flow-day-list li:last-child { padding-bottom: 0.4rem; }

.auto-hint {
  display: none;
}

@media (min-width: 768px) {
  .strip-grid { grid-template-columns: repeat(3, 1fr); }
  .strip-item + .strip-item { border-left: 1px solid var(--gold-line); border-top: 0; }
}

@media (max-width: 720px) {
  .flow-day-head { margin-bottom: 1.45rem; }
  .flow-day-head h2 { font-size: 1.85rem; }
  .flow-day-note { font-size: 0.7rem; }
  .flow-day-list li { padding-bottom: 1.55rem; }
  .flow-day-list li:nth-child(odd) { padding-right: 1.1rem; }
  .flow-day-list li:nth-child(even) { padding-left: 1.1rem; }
  .flow-day-time { font-size: 1.28rem; margin-bottom: 0.45rem; padding-bottom: 0.18rem; }
  .flow-day-card h3 { font-size: 0.92rem; letter-spacing: 0.08em; }
  .flow-day-card h3 span { display: block; margin: 0.12rem 0 0; font-size: 0.52rem; }
  .flow-day-desc {
    margin-top: 0.28rem;
    font-size: 0.64rem;
    letter-spacing: 0;
    white-space: nowrap;
  }
}

@media (min-width: 721px) {
  .continue-touch { display: none; }
  .continue-click { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  .music-btn.is-on .music-icon,
  .cal-days .is-heart svg,
  .continue.in-view .poster.has-image .poster-img,
  .continue.in-view .continue-press,
  .continue.in-view .continue-pulse,
  .continue.in-view .continue-pulse--lag,
  .continue.in-view .continue-glow,
  .continue.is-opening .continue-world,
  .continue.is-opening .continue-light-bloom,
  .continue.is-opening .continue-light-shaft,
  .continue.is-opening .continue-light-veils,
  .continue.is-opening .continue-light-filaments,
  .continue.is-opening .continue-light-beam,
  .continue.is-opening .continue-light-dust,
  .continue.is-opening .continue-flare,
  .continue.is-opening .continue-seam,
  .continue.in-view .continue-content,
  .continue.is-opening .continue-content {
    animation: none;
  }

  .continue-door {
    transition: none;
  }

  .gold-dust {
    display: none;
  }

  .flourish .stroke {
    stroke-dashoffset: 0;
    animation: none;
  }

  .flourish .leaf path,
  .flourish .dot {
    opacity: 1;
    animation: none;
  }

  .polaroid-board.visible .polaroid {
    animation: none;
    opacity: 1;
    transform: rotate(var(--r, 0deg));
  }

  .polaroid.is-up {
    transform: rotate(var(--r, 0deg)) translateY(-0.5rem) scale(1.05);
  }
}
