:root {
  --gold: #c9a227;
  --gold-2: #f3e2b0;
  --gold-3: #8f6a1a;
  --burgundy: #7a1f38;
  --burgundy-2: #9b2f4d;
  --forest: #0a1f16;
  --forest-2: #123226;
  --forest-3: #1b4634;
  --navy: #0a1f16;
  --navy-2: #123226;
  --white: #fffaf2;
  --ink: #fff8ee;
  --muted: rgba(255, 248, 238, 0.72);
  --dim: rgba(255, 248, 238, 0.46);
  --bg: #0a1f16;
  --card: rgba(18, 50, 38, 0.72);
  --line: rgba(201, 162, 39, 0.38);
  --cream: #f7f1e8;
  --cream-ink: #1a1630;
  --serif: "Cormorant Garamond", Georgia, serif;
  --cinzel: "Cinzel", "Times New Roman", serif;
  --script: "Great Vibes", cursive;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --safe-t: env(safe-area-inset-top);
  --safe-b: env(safe-area-inset-bottom);
  --tab-h: 72px;
  --tab-clear: calc(var(--tab-h) + var(--safe-b) + 20px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.45;
  overflow: hidden;
  min-height: 100%;
  min-height: 100dvh;
  min-height: 100svh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
}

button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }

#app {
  width: 100%;
  height: 100%;
  height: 100dvh;
  height: 100svh;
  max-height: 100%;
  max-width: 480px;
  min-width: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg);
  overflow: hidden;
}

#stage {
  flex: 1 1 auto;
  position: relative;
  min-height: 0;
}
.view {
  position: absolute;
  inset: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.5s ease, visibility 0.45s;
  pointer-events: none;
}
.view::-webkit-scrollbar { display: none; }
.view.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  z-index: 1;
}

.stack { padding: calc(18px + var(--safe-t)) 20px var(--tab-clear); }
.wordmark, .kicker {
  font-family: var(--cinzel);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.kicker.soft { letter-spacing: 0.22em; color: var(--gold); font-size: 10px; }
.fine, .sub {
  color: var(--muted);
  font-size: 17px;
}
.sub { font-style: italic; color: var(--gold-2); }
h1.display, .display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 12vw, 58px);
  line-height: 0.92;
  letter-spacing: 0.02em;
}
.gold-rule {
  width: 72px;
  height: 1px;
  margin: 16px auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border: 0;
}
.ornament { color: var(--gold); text-align: center; letter-spacing: 0.4em; font-size: 12px; }

.btn-gold, .btn-line, .btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
  padding: 14px 18px;
  font-family: var(--cinzel);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-gold {
  border: 0;
  color: #1c140c;
  background: linear-gradient(180deg, #f6e2b6 0%, #e0bc72 42%, #b8873d 100%);
  box-shadow: 0 10px 28px rgba(110, 29, 50, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.btn-line {
  background: transparent;
  color: var(--gold-2);
  border: 1px solid rgba(215, 181, 106, 0.55);
}
.btn-text {
  min-height: 44px;
  background: transparent;
  border: 0;
  color: var(--gold-2);
  width: auto;
}
.btn-gold:active, .btn-line:active { transform: translateY(1px) scale(0.99); }
.btn-gold[aria-disabled="true"] { opacity: 0.42; filter: saturate(0.6); }
.arr { letter-spacing: 0; font-family: var(--serif); font-size: 16px; }

.back, .back-flow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  color: inherit;
  font-family: var(--cinzel);
  letter-spacing: 0.16em;
  font-size: 10px;
  text-transform: uppercase;
  min-height: 44px;
  padding: 8px 4px;
}
.back { position: absolute; z-index: 3; top: calc(8px + var(--safe-t)); left: 12px; }
.back svg, .ico { width: 18px; height: 18px; }

.card {
  background:
    linear-gradient(165deg, rgba(255, 248, 238, 0.05), transparent 42%),
    linear-gradient(180deg, rgba(122, 31, 56, 0.14), transparent 48%),
    rgba(14, 42, 30, 0.88);
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 238, 0.08),
    0 18px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.field span, .label {
  font-family: var(--cinzel);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.field input, .field textarea, .bare {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(215, 181, 106, 0.35);
  background: #16130e;
  color: var(--ink);
  padding: 14px 14px;
  font-family: var(--sans);
  font-size: 16px;
  outline: none;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .bare:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(215, 181, 106, 0.16);
}

#ribbon {
  width: 100%;
  flex: 0 0 auto;
  border: 0;
  border-top: 1px solid rgba(215, 181, 106, 0.35);
  background: linear-gradient(90deg, #0c2418, #6e1d32);
  color: var(--gold-2);
  font-family: var(--cinzel);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 30;
}
#ribbon[hidden] { display: none !important; }
#ribbon.done { background: linear-gradient(90deg, #6e1d32, #9a6f1f); color: #fff6e4; }

#tabbar {
  display: flex;
  width: 100%;
  min-width: 0;
  flex: 0 0 auto;
  background: rgba(12, 36, 24, 0.98);
  border-top: 1px solid rgba(110, 29, 50, 0.45);
  padding: 6px 0 calc(8px + var(--safe-b));
  position: relative;
  z-index: 30;
  box-shadow: 0 -10px 28px rgba(12, 36, 24, 0.45);
}
.tab[data-tab="donation"] { font-size: 8px; letter-spacing: 0; }
#app.no-tab #tabbar, #app.no-tab #ribbon { display: none; }
.tab {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  background: none;
  border: 0;
  color: rgba(246, 241, 231, 0.42);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0 6px;
}
.tab svg { width: 20px; height: 20px; }
.tab.on { color: var(--gold-2); }
.tab.on::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22%;
  right: 22%;
  height: 2px;
  border-radius: 99px;
  background: var(--burgundy-2);
}
.tab.hint::after {
  content: "";
  position: absolute;
  top: 4px;
  right: calc(50% - 16px);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.install {
  position: absolute;
  z-index: 6;
  left: 12px;
  right: 12px;
  top: calc(10px + var(--safe-t));
  background: rgba(20, 16, 10, 0.94);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.install[hidden] { display: none; }
.install p { font-size: 16px; }
.install-actions { display: flex; gap: 8px; }
.install-actions .btn-gold { width: auto; flex: 1; min-height: 44px; }
.install-actions .btn-text { color: var(--dim); }

.toast {
  position: absolute;
  z-index: 60;
  left: 50%;
  bottom: calc(var(--tab-h) + var(--safe-b) + 16px);
  transform: translateX(-50%) translateY(8px);
  background: #f3e2b8;
  color: #1c140c;
  font-family: var(--sans);
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.music-dock {
  position: absolute;
  top: calc(14px + var(--safe-t));
  right: 14px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 6px;
}
.music-dock[hidden] { display: none !important; }
.music-btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(215, 181, 106, 0.45);
  border-radius: 50%;
  background: rgba(12, 36, 24, 0.72);
  color: var(--gold-2);
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}
.music-btn.music-skip {
  width: 38px;
  height: 38px;
  opacity: 0.92;
}
.music-btn:active { transform: scale(0.96); }
.music-btn svg { width: 20px; height: 20px; grid-area: 1 / 1; }
.music-btn.music-skip svg { width: 18px; height: 18px; }
.music-btn .music-off { display: none; }
.music-btn.is-off {
  background: rgba(110, 29, 50, 0.55);
  color: rgba(255, 248, 238, 0.75);
}
.music-btn.is-off .music-on { display: none; }
.music-btn.is-off .music-off { display: block; }
#app.no-tab .music-dock { top: calc(18px + var(--safe-t)); }
.admin-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--gold-2);
  font-family: var(--sans);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sheet[hidden], .lb[hidden] { display: none; }
.sheet, .lb {
  position: absolute;
  inset: 0;
  z-index: 70;
}
.sheet-bg, .lb-bg {
  position: absolute;
  inset: 0;
  background: rgba(5, 14, 10, 0.72);
}
.sheet-card {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(88dvh, 88%);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #10271c;
  color: var(--ink);
  border-radius: 24px 24px 0 0;
  border: 1px solid var(--line);
  padding: 10px 18px calc(28px + var(--safe-b));
  box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.45);
  animation: sheetUp 0.35s ease;
}
#app.sheet-open #tabbar,
#app.sheet-open #ribbon {
  visibility: hidden;
  pointer-events: none;
}
.sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: 99px;
  background: rgba(215, 181, 106, 0.45);
  margin: 6px auto 14px;
}
.lb-frame {
  position: absolute;
  inset: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.lb-frame img, .lb-frame video {
  max-height: 74dvh;
  max-width: 100%;
  border-radius: 18px;
  object-fit: contain;
}
.lb-close {
  position: absolute;
  top: calc(12px + var(--safe-t));
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.45);
  color: var(--gold-2);
}

#sparks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9;
}

/* Opening */
.open-view {
  text-align: center;
  padding: 24px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --cinzel: "Cinzel", "Times New Roman", serif;
  --script: "Cormorant Garamond", Georgia, serif;
  --sans: "Cinzel", "Times New Roman", serif;
  font-family: var(--serif);
  background:
    radial-gradient(circle at 50% 28%, rgba(212, 175, 55, 0.18), transparent 42%),
    radial-gradient(circle at 18% 78%, rgba(31, 79, 54, 0.55), transparent 46%),
    radial-gradient(circle at 82% 80%, rgba(110, 29, 50, 0.34), transparent 42%),
    var(--forest);
}
.open-view.is-on {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.open-view .kicker,
.open-view .mono,
.open-view .btn-gold { font-family: var(--cinzel); }
.heart-wrap {
  position: relative;
  width: 250px;
  height: 230px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.vow-silk {
  position: absolute;
  inset: -18px;
  border-radius: 46% 54% 48% 52% / 42% 40% 60% 58%;
  background:
    conic-gradient(from 40deg,
      rgba(212, 175, 55, 0.0),
      rgba(212, 175, 55, 0.28),
      rgba(143, 39, 68, 0.34),
      rgba(31, 79, 54, 0.4),
      rgba(244, 228, 176, 0.22),
      rgba(212, 175, 55, 0.0));
  filter: blur(18px) saturate(1.15);
  animation: vowSilk 9s ease-in-out infinite;
  z-index: 0;
}
.love-filament {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: visible;
  pointer-events: none;
}
.love-filament .filament {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 18 140;
  animation: filamentWeave 5.6s linear infinite;
}
.love-filament .f1 {
  stroke: rgba(212, 175, 55, 0.85);
  stroke-width: 1.4;
}
.love-filament .f2 {
  stroke: rgba(143, 39, 68, 0.75);
  stroke-width: 1.2;
  animation-duration: 7.2s;
  animation-direction: reverse;
}
.love-filament .f3 {
  stroke: rgba(244, 228, 176, 0.7);
  stroke-width: 1;
  animation-duration: 4.4s;
}
.heart-orbit,
.heart-orbit.delay {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, 0.35);
  animation: loveOrbit 16s linear infinite;
  z-index: 1;
}
.heart-orbit::before,
.heart-orbit.delay::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid transparent;
  animation: orbitToLove 7s ease-in-out infinite;
  pointer-events: none;
}
.heart-orbit.delay {
  inset: 28px;
  border-style: solid;
  border-color: rgba(143, 39, 68, 0.35);
  animation-duration: 22s;
  animation-direction: reverse;
}
.heart-orbit.delay::before { animation-duration: 9s; animation-direction: reverse; }
.heart {
  position: relative;
  width: 168px;
  height: 152px;
  z-index: 2;
  filter: drop-shadow(0 14px 28px rgba(110, 29, 50, 0.45));
  animation: heartBloom 4.8s ease-in-out infinite;
}
.heart img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  clip-path: path("M84 140 C20 92 4 58 28 30 C46 10 70 16 84 36 C98 16 122 10 140 30 C164 58 148 92 84 140 Z");
}
.heart-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 228, 176, 0.55), rgba(31, 79, 54, 0) 70%);
  filter: blur(6px);
  z-index: 1;
  animation: breathe 4.8s ease-in-out infinite;
}
.mono { font-family: var(--cinzel); letter-spacing: 0.42em; font-size: 13px; color: var(--gold); margin-top: 8px; }
.lead { font-style: italic; font-size: 22px; line-height: 1.35; max-width: 18ch; margin: 18px 0 22px; color: var(--white); }
.open-view .rise { opacity: 0; }
.open-view.is-on .rise { animation: fadeRise 0.9s ease forwards; }
.open-view.is-on .d1 { animation-delay: 0.25s; }
.open-view.is-on .d2 { animation-delay: 0.55s; }
.open-view.is-on .d3 { animation-delay: 0.95s; }
.open-view.is-on .d4 { animation-delay: 1.45s; }
.open-view .btn-gold { max-width: 280px; }

#butterflies {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  overflow: hidden;
}
.butterfly {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  color: var(--gold-2);
  opacity: 0;
  will-change: transform, opacity;
  filter: drop-shadow(0 4px 8px rgba(12, 36, 24, 0.45));
}
.butterfly svg { width: 100%; height: 100%; display: block; }
.butterfly .wing-l,
.butterfly .wing-r {
  transform-origin: center;
  animation: wingBeat 0.42s ease-in-out infinite alternate;
}
.butterfly .wing-r { animation-delay: 0.12s; }

/* Home */
.home-view {
  position: relative;
  isolation: isolate;
  background: var(--forest);
  --serif: "Cormorant Garamond", Georgia, serif;
  --cinzel: "Cinzel", "Times New Roman", serif;
  --script: "Cormorant Garamond", Georgia, serif;
  --sans: "Cinzel", "Times New Roman", serif;
  font-family: var(--serif);
}
.home-view::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    url("../5.jpg") center 22% / cover no-repeat;
  filter: blur(1.2px) saturate(1.02) brightness(0.84);
  transform: scale(1.04);
}
.home-view::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 31, 22, 0.45) 0%, rgba(10, 31, 22, 0.1) 28%, rgba(10, 31, 22, 0.48) 60%, rgba(10, 31, 22, 0.94) 100%),
    linear-gradient(90deg, rgba(10, 31, 22, 0.58) 0%, transparent 50%),
    radial-gradient(90% 55% at 12% 88%, rgba(122, 31, 56, 0.42), transparent 55%),
    radial-gradient(70% 40% at 88% 18%, rgba(201, 162, 39, 0.12), transparent 50%);
}
.home-view .btn-gold,
.home-view .kicker,
.home-view .place .kicker {
  font-family: var(--cinzel);
}
.home-view .hero-title .amp {
  font-family: var(--serif);
  font-style: italic;
}
.home-view.is-on {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: auto;
}
.home-copy {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: calc(72px + var(--safe-t)) 22px var(--tab-clear);
  text-align: left;
}
.hero-title {
  margin: 18px 0 14px;
  font-weight: 500;
  font-size: clamp(48px, 14vw, 72px);
  line-height: 0.88;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow:
    0 2px 0 rgba(7, 20, 39, 0.55),
    0 12px 36px rgba(0, 0, 0, 0.72),
    0 0 28px rgba(7, 20, 39, 0.55);
}
.hero-title span { display: block; }
.hero-title .amp {
  font-family: var(--serif);
  font-style: italic;
  text-transform: none;
  font-size: 54px;
  line-height: 0.7;
  color: var(--gold-2);
  margin: 4px 0 2px;
}
.hero-title .queen {
  font-size: 0.72em;
  letter-spacing: 0.08em;
  color: var(--gold-2);
  margin-top: 4px;
}
.lede {
  font-size: 20px;
  font-style: italic;
  max-width: 20ch;
  margin-bottom: 14px;
  color: var(--white);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.75);
}
.home-copy .kicker { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75); }
.home-copy .btn-gold { margin-top: 16px; }
#for-guest { margin-top: 10px; text-shadow: 0 2px 10px #000; }
.place p, .place .kicker { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7); }
.place {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.place-ring { width: 48px; height: 48px; flex: none; transform: rotate(-90deg); }
.place-ring .track { fill: none; stroke: rgba(243, 226, 184, 0.2); stroke-width: 2; }
.place-ring .value {
  fill: none;
  stroke: #f0d7a0;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 100.5;
  stroke-dashoffset: 100.5;
  transition: stroke-dashoffset 0.7s ease;
}
.place p { font-size: 16px; }
.place .kicker { letter-spacing: 0.22em; font-size: 10px; margin-bottom: 2px; }

/* Invitation */
.invite-view {
  background:
    radial-gradient(900px 320px at 0% 0%, rgba(255, 255, 255, 0.65), transparent 46%),
    radial-gradient(700px 420px at 100% 100%, rgba(198, 160, 100, 0.22), transparent 42%),
    var(--cream);
  color: var(--cream-ink);
}
.invite-inner {
  min-height: 100%;
  padding: calc(64px + var(--safe-t)) 28px 36px;
  text-align: center;
  position: relative;
}
.invite-view .kicker { color: #8a6230; }
.invite-kicker {
  font-family: var(--cinzel);
  letter-spacing: 0.2em;
  font-size: 12px;
  line-height: 1.7;
  margin: 28px 0 26px;
}
.invite-names { font-weight: 500; font-style: italic; font-size: clamp(36px, 9vw, 46px); line-height: 1.05; }
.invite-names .script {
  display: block;
  font-family: var(--script);
  font-style: normal;
  font-size: 42px;
  color: #8a6230;
  margin: 6px 0;
}
.invite-body { font-style: italic; font-size: 20px; margin: 22px auto; max-width: 26ch; }
.invite-view .field input { background: rgba(255, 255, 255, 0.55); color: var(--cream-ink); border-color: rgba(138, 98, 48, 0.35); }
.invite-view .btn-gold { margin-top: 18px; }
.hashtags { margin-top: 28px; display: flex; flex-direction: column; gap: 4px; font-family: var(--sans); font-size: 13px; letter-spacing: 0.08em; color: #8a6230; }
.flora { position: absolute; width: 140px; height: 190px; color: #b08948; pointer-events: none; }
.flora.tl { top: 36px; left: 0; }
.flora.br { bottom: 0; right: 0; transform: rotate(180deg); }
.invite-view .back { color: #6a4c22; }

/* Story */
.chapter-list { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.chapter {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  text-align: left;
  color: inherit;
  border-radius: 18px;
  border: 1px solid rgba(201, 162, 39, 0.3);
  background:
    linear-gradient(165deg, rgba(255, 248, 238, 0.05), transparent 42%),
    linear-gradient(180deg, rgba(122, 31, 56, 0.16), transparent 50%),
    rgba(12, 38, 28, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 248, 238, 0.07), 0 14px 32px rgba(0, 0, 0, 0.22);
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.chapter:hover {
  transform: translateY(-2px);
  border-color: rgba(243, 226, 176, 0.5);
}
.chapter img { width: 102px; height: 128px; object-fit: cover; border-radius: 12px; }
.chapter > span { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.chapter .num { font-family: var(--cinzel); color: var(--gold); font-size: 12px; letter-spacing: 0.18em; }
.chapter h3 { font-size: 26px; font-weight: 500; letter-spacing: 0.04em; line-height: 1; margin-top: 2px; }
.chapter .sub, .chapter .blurb, .chapter .more { display: block; }
.chapter .blurb { margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.25; }
.chapter .more { display: none; margin-top: 8px; font-size: 16px; font-style: italic; color: var(--gold-2); }
.chapter.is-open .more { display: block; }
.chapter.is-read { box-shadow: inset 0 0 0 1px rgba(240, 215, 160, 0.4); }
.chapter-tools { margin-top: 18px; }

/* Author */
.author-view.is-on {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.author-inner { padding: 72px 26px 32px; text-align: center; }
.author-small {
  font-family: var(--cinzel);
  letter-spacing: 0.22em;
  font-size: 13px;
  line-height: 1.55;
}
.author-trust {
  margin: 10px 0 6px;
  font-size: clamp(46px, 14vw, 68px);
  line-height: 0.84;
  color: var(--gold-2);
  font-weight: 500;
}
.book {
  width: min(280px, 78%);
  height: 150px;
  margin: 8px auto 18px;
  position: relative;
}
.book-glow {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 10%;
  bottom: -8%;
  background: radial-gradient(circle, rgba(255, 214, 130, 0.7), transparent 70%);
  filter: blur(8px);
}
.page {
  position: absolute;
  bottom: 14%;
  width: 47%;
  height: 72%;
  background: linear-gradient(180deg, #fff1cf, #d7ae68 70%, #a88345);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
}
.page.left {
  left: 3%;
  transform: perspective(400px) rotateY(18deg);
  transform-origin: right center;
  border-radius: 3px 2px 4px 6px;
  filter: brightness(0.86);
}
.page.right {
  right: 3%;
  transform: perspective(400px) rotateY(-10deg);
  transform-origin: left center;
  border-radius: 2px 6px 8px 3px;
}
.page.right::before, .page.left::before {
  content: "";
  position: absolute;
  inset: 14px 12px;
  border-top: 1px solid rgba(90, 60, 20, 0.25);
  border-bottom: 1px solid rgba(90, 60, 20, 0.18);
  height: 46%;
}
.spine {
  position: absolute;
  left: 50%;
  bottom: 14%;
  width: 8px;
  height: 72%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #6a4c22, #f0d7a0, #6a4c22);
}
.today { font-style: italic; font-size: 18px; color: var(--muted); margin: 8px 0 16px; }
.together {
  font-family: var(--cinzel);
  letter-spacing: 0.14em;
  font-size: 13px;
  line-height: 1.55;
  color: var(--gold-2);
}

/* Journey */
.timeline { list-style: none; margin: 18px 0 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: 12px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 29px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: linear-gradient(var(--gold), transparent);
}
.t-card {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  align-items: start;
  padding: 14px 14px 14px 10px;
}
.t-card .node { color: var(--gold-2); padding-top: 2px; }
.t-card .node svg { width: 22px; height: 22px; }
.year { font-family: var(--cinzel); letter-spacing: 0.16em; color: var(--gold); font-size: 12px; }
.t-card h3 { font-size: 22px; font-weight: 500; letter-spacing: 0.04em; }
.t-card p { color: var(--muted); font-size: 16px; }
.t-card .btn-gold { margin-top: 12px; grid-column: 2; }

/* Countdown */
.count-view .fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: blur(1.4px) brightness(0.78);
  transform: scale(1.04);
}
.count-view .veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(12, 36, 24, 0.15), rgba(12, 36, 24, 0.72) 62%, rgba(12, 36, 24, 0.9)),
    linear-gradient(180deg, rgba(110, 29, 50, 0.22), rgba(12, 36, 24, 0.5));
}
.count-inner .display,
.count-inner .month-line,
.count-inner .fine {
  color: var(--white);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
}
.count-view.is-on { display: block; }
.count-inner {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 72px 24px 28px;
  gap: 4px;
}
.ticks { margin: 12px 0 8px; }
.tick b {
  display: block;
  font-size: clamp(52px, 16vw, 72px);
  font-weight: 500;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.tick span {
  font-family: var(--cinzel);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--gold-2);
}
.month-line {
  margin-top: 16px;
  font-family: var(--cinzel);
  letter-spacing: 0.28em;
  font-size: 14px;
}
.count-inner .fine { margin: 8px 0 18px; }
.count-inner .btn-gold { max-width: 280px; }
#intro-line { margin-top: 14px; font-style: italic; }

/* Events — editorial ceremony cards */
.event-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 22px;
}
.event {
  position: relative;
  width: 100%;
  overflow: hidden;
  text-align: left;
  color: inherit;
  border-radius: 22px;
  border: 1px solid rgba(201, 162, 39, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 248, 238, 0.04), transparent 30%),
    linear-gradient(160deg, rgba(122, 31, 56, 0.22), transparent 55%),
    rgba(12, 38, 28, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 238, 0.1),
    0 22px 48px rgba(0, 0, 0, 0.32);
  transition: transform 0.45s cubic-bezier(.22,.68,.35,1), border-color 0.35s ease, box-shadow 0.45s ease;
}
.event::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, transparent, var(--burgundy-2), var(--gold), transparent);
  z-index: 3;
}
.event:hover {
  transform: translateY(-4px);
  border-color: rgba(243, 226, 176, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 238, 0.14),
    0 28px 56px rgba(122, 31, 56, 0.28);
}
.event-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}
.event-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 35%, rgba(10, 31, 22, 0.88) 100%),
    linear-gradient(90deg, rgba(122, 31, 56, 0.18), transparent 50%);
  pointer-events: none;
}
.event-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.2s cubic-bezier(.22,.68,.35,1);
}
.event:hover .event-media img { transform: scale(1.1); }
.event-seal {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(243, 226, 176, 0.55);
  background: rgba(10, 31, 22, 0.55);
  color: var(--gold-2);
  font-family: var(--cinzel);
  font-size: 11px;
  letter-spacing: 0.12em;
  backdrop-filter: blur(8px);
}
.event-body {
  position: relative;
  padding: 16px 18px 18px;
}
.event h3 {
  font-size: 20px;
  letter-spacing: 0.12em;
  font-family: var(--cinzel);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--white);
}
.event-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
  font-style: italic;
}
.event .rsvp {
  margin-top: 14px;
  background: transparent;
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 999px;
  color: var(--gold-2);
  font-family: var(--cinzel);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 14px;
  min-height: 40px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.event .rsvp:hover {
  background: rgba(122, 31, 56, 0.35);
  border-color: rgba(243, 226, 176, 0.55);
}
.event .rsvp.held {
  color: #1c140c;
  background: linear-gradient(180deg, #f3e2b0, #c9a227);
  border-color: transparent;
}

/* Gallery */
.filters { display: flex; gap: 8px; margin: 16px 0; }
.chip {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--cinzel);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  min-height: 36px;
  padding: 0 12px;
}
.chip.on { background: var(--gold-2); color: #1c140c; border-color: transparent; }
.gallery-grid { columns: 2; column-gap: 8px; }
.shot, .sealed {
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  border: 1px solid rgba(201, 162, 39, 0.28);
  background: rgba(10, 31, 22, 0.9);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  transition: transform 0.4s ease, border-color 0.35s ease;
}
.shot:hover, .sealed:hover {
  transform: translateY(-3px);
  border-color: rgba(243, 226, 176, 0.5);
}
  break-inside: avoid;
  color: inherit;
  text-align: left;
}
.shot img, .shot video, .sealed img { width: 100%; height: auto; display: block; }
.shot figcaption, .shot span, .sealed span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 10px 8px;
  font-family: var(--sans);
  font-size: 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}
.sealed { min-height: 180px; }
.sealed img { filter: grayscale(0.4) blur(1.5px) brightness(0.55); height: 220px; object-fit: cover; }
.sealed .lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 12px;
  font-size: 15px;
}
.empty-note { color: var(--muted); font-style: italic; margin: 12px 0; }
.yours { position: absolute; top: 8px; left: 8px; font-family: var(--cinzel); font-size: 9px; letter-spacing: 0.14em; background: rgba(8, 7, 5, 0.7); color: var(--gold-2); border-radius: 99px; padding: 4px 7px; }

/* Teams */
.banner { position: relative; height: 168px; margin: 0 0 8px; overflow: hidden; }
.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: blur(0.8px) brightness(0.82);
  transform: scale(1.03);
}
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 10%, var(--navy) 96%),
    linear-gradient(90deg, rgba(110, 29, 50, 0.28), transparent 55%);
}
.team-head { padding: 0 20px; }
.team-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding: 16px 20px var(--tab-clear); }
.team-card {
  text-align: center;
  padding: 16px 10px 12px;
  color: inherit;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.team-card svg { width: 28px; height: 28px; color: var(--gold-2); }
.team-card h3 { font-family: var(--cinzel); font-size: 12px; letter-spacing: 0.04em; font-weight: 500; line-height: 1.3; }
.team-card .tiny { font-family: var(--script); font-size: 20px; color: var(--gold-2); line-height: 1; }
.team-card .join {
  margin-top: auto;
  background: none;
  border: 0;
  color: var(--gold);
  font-family: var(--cinzel);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  min-height: 36px;
}

/* Dashboard */
.team-pill {
  display: inline-block;
  margin: 8px 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 16px;
}
.team-pill b { font-weight: 500; display: block; font-size: 18px; }
a.chat-link { text-decoration: none; margin-top: 14px; max-width: 420px; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.dash-tile {
  min-height: 118px;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 12px;
}
.dash-tile svg { width: 26px; height: 26px; color: var(--gold-2); }
.dash-tile span { font-family: var(--sans); font-size: 14px; }
.dash-tile.wide { grid-column: 1 / -1; min-height: 74px; flex-direction: row; }
.check, .announce, .doc-link, .cal-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(215, 181, 106, 0.16);
  color: inherit;
  padding: 12px 2px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.check i, .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  flex: none;
  margin-top: 2px;
}
.check.done i { background: var(--gold-2); box-shadow: inset 0 0 0 3px #1c140c; }
.chat-log { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 12px; max-height: 280px; overflow: auto; }
.bubble { background: #1b1712; border-radius: 14px; padding: 10px 12px; }
.bubble b { font-family: var(--sans); font-size: 13px; color: var(--gold-2); font-weight: 500; }
.bubble p { font-size: 16px; }
.roles { display: flex; flex-direction: column; gap: 8px; }
.role {
  text-align: left;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  padding: 12px;
}
.role.on { border-color: var(--gold-2); background: rgba(243, 226, 184, 0.08); }

/* Registry */
.registry-top { text-align: center; }
.cameo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  margin: 8px auto 12px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}
.registry-top h1 {
  font-family: var(--cinzel);
  font-size: clamp(34px, 10vw, 48px);
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--white);
}
.center-note { text-align: center; font-style: italic; margin: 12px auto 10px; max-width: 34ch; color: var(--muted); }
.donation-note {
  text-align: center;
  font-size: 15px;
  color: var(--gold-2);
  max-width: 34ch;
  margin: 0 auto 8px;
}
.donation-note.is-done { color: var(--ink); }
.section-label {
  font-family: var(--cinzel);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin: 22px 0 10px;
}
.accounts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.account-card {
  padding: 18px;
  text-align: left;
  border-color: rgba(201, 162, 39, 0.36);
  background:
    linear-gradient(165deg, rgba(255, 248, 238, 0.06), transparent 40%),
    linear-gradient(180deg, rgba(122, 31, 56, 0.22), transparent 48%),
    rgba(12, 38, 28, 0.92);
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.account-card:hover {
  transform: translateY(-3px);
  border-color: rgba(243, 226, 176, 0.55);
}
.account-card .account-num {
  display: block;
  margin: 6px 0 8px;
  font-size: clamp(24px, 6vw, 30px);
  color: var(--gold-2);
}
.account-card p { color: var(--muted); margin-bottom: 12px; }
.account-card .btn-gold { min-height: 46px; }
.intl-block {
  margin-top: 18px;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
  padding-top: 4px;
}
.intl-block summary {
  font-family: var(--cinzel);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
}
.intl-block summary::-webkit-details-marker { display: none; }
.intl-block[open] summary { color: var(--gold-2); }
.intl-block .accounts { margin-top: 4px; }
.candle-row { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 8px 0 18px; }
.candle { width: 54px; display: flex; flex-direction: column; align-items: center; }
.flame {
  width: 16px;
  height: 22px;
  border-radius: 50% 50% 45% 45%;
  background: radial-gradient(circle at 50% 70%, #fff6d2, #f0b429 42%, transparent 74%);
  opacity: 0.15;
  filter: blur(0.2px);
}
.candle.lit .flame { opacity: 1; animation: flicker 1.15s ease-in-out infinite; }
.wax {
  width: 34px;
  height: 110px;
  border-radius: 6px 6px 14px 14px;
  border: 1px solid rgba(215, 181, 106, 0.4);
  background: #1a150f;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.wax-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(#f6e2b6, #c79645 55%, #8a6230);
  transition: height 0.8s ease;
}
#candle-copy { font-size: 16px; max-width: 24ch; }
.icon-row, .icon-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.icon-act {
  background: transparent;
  border: 0;
  color: var(--gold-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 78px;
  font-family: var(--cinzel);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.icon-act svg { width: 28px; height: 28px; }
.gifts { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.gift {
  width: 100%;
  text-align: left;
  color: inherit;
  padding: 14px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.gift b { font-weight: 500; font-size: 20px; display: block; }
.gift em { font-style: italic; color: var(--gold-2); }
.gift .sum { font-family: var(--cinzel); letter-spacing: 0.06em; color: var(--gold-2); font-size: 13px; }
.suggest-tag {
  font-family: var(--cinzel);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1c140c;
  background: var(--gold-2);
  border-radius: 99px;
  padding: 3px 6px;
}
.wall { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.blessing { padding: 12px 14px; }
.blessing b { font-weight: 500; }
.blessing span { display: block; color: var(--gold); font-family: var(--sans); font-size: 13px; margin-bottom: 4px; }

/* Live */
.player {
  position: relative;
  margin: 16px 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 220px;
  background: #000;
}
.player img, .player iframe, .player video { width: 100%; height: 280px; object-fit: cover; object-position: center 20%; border: 0; }
.play {
  position: absolute;
  left: 50%;
  top: 72%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1px solid rgba(243, 226, 184, 0.7);
  background: rgba(8, 7, 5, 0.35);
  color: var(--gold-2);
}
.play svg { width: 28px; height: 28px; margin-left: 4px; }
.live-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #f0d7a0;
  color: #1c140c;
  font-family: var(--cinzel);
  font-size: 10px;
  letter-spacing: 0.16em;
  border-radius: 99px;
  padding: 5px 8px;
}
.player-cap {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--cinzel);
  letter-spacing: 0.14em;
  font-size: 12px;
}

/* Info */
.info-view {
  background:
    radial-gradient(700px 280px at 0% 0%, rgba(212, 175, 55, 0.1), transparent 50%),
    radial-gradient(700px 320px at 100% 100%, rgba(110, 29, 50, 0.22), transparent 48%),
    var(--forest);
  color: var(--ink);
}
.info-view .info-row { color: inherit; }
.info-view .info-row svg { color: var(--gold); }
.info-view .info-row span span { color: var(--muted); }
.info-view .kicker { color: var(--gold-2) !important; }
.info-view .hashtags { color: var(--gold); }
.info-view .info-foot { color: var(--ink); }
.info-view .family { border-top-color: rgba(212, 175, 55, 0.16); }
.info-view .family summary { color: var(--gold); }
.info-view .family .hint { color: var(--muted); }
.info-view .family .field input,
.info-view .family .field textarea {
  background: rgba(12, 38, 28, 0.95);
  color: var(--ink);
  border-color: rgba(201, 162, 39, 0.32);
}
.info-view .btn-text { color: var(--gold-2); }
.info-view .hashtags {
  color: var(--gold);
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.info-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.info-row {
  width: 100%;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: center;
  text-align: left;
  background:
    linear-gradient(165deg, rgba(255, 248, 238, 0.05), transparent 45%),
    linear-gradient(90deg, rgba(122, 31, 56, 0.2), transparent 40%),
    rgba(12, 38, 28, 0.88);
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: inset 0 1px 0 rgba(255, 248, 238, 0.06), 0 12px 28px rgba(0, 0, 0, 0.2);
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.info-row:hover {
  transform: translateY(-2px);
  border-color: rgba(243, 226, 176, 0.5);
}
.info-row svg { width: 22px; height: 22px; color: var(--gold); }
.info-row b { display: block; font-weight: 500; font-size: 20px; color: var(--white); }
.info-row span { color: var(--muted); font-size: 15px; }
.info-foot { text-align: center; margin-top: 26px; font-style: italic; font-size: 22px; }
.family {
  margin-top: 22px;
  border-top: 1px solid rgba(212, 175, 55, 0.16);
  padding-top: 8px;
}
.family summary {
  font-family: var(--cinzel);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 12px 0;
  cursor: pointer;
}
.family .field { margin-bottom: 10px; }
.family .hint { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-bottom: 10px; }

/* Distinct rooms — same presidential palette, different light */
.room-story {
  background:
    radial-gradient(640px 280px at 100% 0%, rgba(201, 162, 39, 0.14), transparent 55%),
    radial-gradient(480px 240px at 0% 80%, rgba(122, 31, 56, 0.18), transparent 55%),
    var(--forest);
}
.room-events {
  background:
    radial-gradient(720px 320px at 8% 0%, rgba(122, 31, 56, 0.3), transparent 52%),
    radial-gradient(560px 280px at 100% 40%, rgba(201, 162, 39, 0.1), transparent 55%),
    var(--forest);
}
.room-gallery {
  background:
    radial-gradient(800px 360px at 50% 0%, rgba(201, 162, 39, 0.12), transparent 52%),
    radial-gradient(500px 280px at 0% 100%, rgba(27, 70, 52, 0.55), transparent 50%),
    var(--forest);
}
.room-gallery .chip.on {
  background: var(--burgundy);
  color: var(--white);
  border-color: transparent;
}
.room-teams .team-card {
  border-color: rgba(201, 162, 39, 0.28);
  transition: transform 0.4s ease, border-color 0.35s ease;
}
.room-teams .team-card:hover {
  transform: translateY(-3px);
  border-color: rgba(243, 226, 176, 0.5);
}
.room-teams .team-card .join { color: var(--gold-2); }

/* Page choreography */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(4px);
  transition:
    opacity 0.7s cubic-bezier(.22,.68,.35,1),
    transform 0.75s cubic-bezier(.22,.68,.35,1),
    filter 0.7s ease;
}
.view.is-on .reveal {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
.view.is-on .reveal:nth-child(1) { transition-delay: 0.05s; }
.view.is-on .reveal:nth-child(2) { transition-delay: 0.12s; }
.view.is-on .reveal:nth-child(3) { transition-delay: 0.2s; }
.view.is-on .reveal:nth-child(4) { transition-delay: 0.28s; }
.view.is-on .reveal:nth-child(5) { transition-delay: 0.36s; }
.view.is-on .reveal:nth-child(6) { transition-delay: 0.44s; }
.view.is-on .reveal:nth-child(7) { transition-delay: 0.52s; }
.view.is-on .reveal:nth-child(8) { transition-delay: 0.6s; }
.event-list .reveal:nth-child(1) { transition-delay: 0.18s; }
.event-list .reveal:nth-child(2) { transition-delay: 0.3s; }
.event-list .reveal:nth-child(3) { transition-delay: 0.42s; }

#page-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 35;
  opacity: 0;
  background:
    linear-gradient(105deg,
      transparent 20%,
      rgba(243, 226, 176, 0.14) 45%,
      rgba(122, 31, 56, 0.16) 55%,
      transparent 78%);
  mix-blend-mode: screen;
}
#page-veil.sweep {
  animation: pageVeil 0.85s cubic-bezier(.22,.68,.35,1) forwards;
}
@keyframes pageVeil {
  0% { opacity: 0; transform: translateX(-18%); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateX(18%); }
}

.view.is-on .stack > .kicker,
.view.is-on .stack > .display,
.view.is-on .stack > .fine,
.view.is-on .stack > .section-label,
.view.is-on .home-copy > *,
.view.is-on .team-head > *,
.view.is-on .registry-top > *,
.view.is-on .info-list > *,
.view.is-on .chapter-list > *,
.view.is-on .team-grid > *,
.view.is-on .accounts > *,
.view.is-on .gallery-grid > * {
  animation: chamberRise 0.85s cubic-bezier(.22,.68,.35,1) both;
}
.view.is-on .stack > .kicker { animation-delay: 0.04s; }
.view.is-on .stack > .display { animation-delay: 0.12s; }
.view.is-on .stack > .fine { animation-delay: 0.2s; }
.view.is-on .home-copy > *:nth-child(1) { animation-delay: 0.05s; }
.view.is-on .home-copy > *:nth-child(2) { animation-delay: 0.12s; }
.view.is-on .home-copy > *:nth-child(3) { animation-delay: 0.2s; }
.view.is-on .home-copy > *:nth-child(4) { animation-delay: 0.28s; }
.view.is-on .home-copy > *:nth-child(5) { animation-delay: 0.36s; }
.view.is-on .home-copy > *:nth-child(6) { animation-delay: 0.44s; }
.view.is-on .home-copy > *:nth-child(7) { animation-delay: 0.52s; }
.view.is-on .event-list > *:nth-child(1),
.view.is-on .chapter-list > *:nth-child(1),
.view.is-on .accounts > *:nth-child(1),
.view.is-on .team-grid > *:nth-child(1),
.view.is-on .info-list > *:nth-child(1) { animation-delay: 0.22s; }
.view.is-on .event-list > *:nth-child(2),
.view.is-on .chapter-list > *:nth-child(2),
.view.is-on .accounts > *:nth-child(2),
.view.is-on .team-grid > *:nth-child(2),
.view.is-on .info-list > *:nth-child(2) { animation-delay: 0.34s; }
.view.is-on .event-list > *:nth-child(3),
.view.is-on .chapter-list > *:nth-child(3),
.view.is-on .accounts > *:nth-child(3),
.view.is-on .team-grid > *:nth-child(3),
.view.is-on .info-list > *:nth-child(3) { animation-delay: 0.46s; }
.view.is-on .event-list > *:nth-child(4),
.view.is-on .chapter-list > *:nth-child(4),
.view.is-on .accounts > *:nth-child(4),
.view.is-on .team-grid > *:nth-child(4),
.view.is-on .info-list > *:nth-child(4) { animation-delay: 0.58s; }
.view.is-on .info-list > *:nth-child(5) { animation-delay: 0.66s; }
.view.is-on .info-list > *:nth-child(6) { animation-delay: 0.74s; }
@keyframes chamberRise {
  from { opacity: 0; transform: translateY(28px) scale(0.985); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
.checkline { display: flex; gap: 8px; align-items: center; font-size: 16px; margin: 8px 0 12px; }

.choice {
  width: 100%;
  text-align: left;
  margin-bottom: 8px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
}
.choice.on { border-color: var(--gold-2); }
.sheet-card h2 { font-size: 32px; font-weight: 500; line-height: 1; margin-bottom: 8px; }
.sheet-card .fine { margin-bottom: 12px; }
.row-gap { display: flex; flex-direction: column; gap: 10px; }
.account-num {
  font-family: var(--sans);
  font-size: 28px;
  letter-spacing: 0.08em;
  color: var(--gold-2);
}

@keyframes fadeRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.04); filter: brightness(1.08); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes loveOrbit { to { transform: rotate(360deg); } }
@keyframes orbitToLove {
  0%, 100% { border-radius: 50%; box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
  40% { border-radius: 48% 52% 42% 58% / 40% 36% 64% 60%; box-shadow: 0 0 18px rgba(143, 39, 68, 0.28); }
  70% { border-radius: 42% 58% 50% 50% / 58% 42% 58% 42%; box-shadow: 0 0 14px rgba(212, 175, 55, 0.22); }
}
@keyframes vowSilk {
  0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.7; }
  50% { transform: rotate(18deg) scale(1.08); opacity: 1; }
}
@keyframes filamentWeave {
  to { stroke-dashoffset: -320; }
}
@keyframes heartBloom {
  0%, 100% { transform: scale(1) rotate(-2deg); }
  50% { transform: scale(1.045) rotate(2deg); }
}
@keyframes wingBeat {
  from { transform: scaleX(1); }
  to { transform: scaleX(0.55); }
}
@keyframes butterflyFlight {
  0% { opacity: 0; transform: translate3d(var(--x0), var(--y0), 0) rotate(0deg) scale(0.6); }
  8% { opacity: 1; }
  28% { transform: translate3d(var(--x1), calc(var(--y1) - 18px), 0) rotate(22deg) scale(1.05); }
  48% { transform: translate3d(var(--x1), var(--y1), 0) rotate(8deg) scale(1); }
  72% { opacity: 1; transform: translate3d(calc(var(--x1) * 0.55 + var(--x2) * 0.45), calc(var(--y1) * 0.55 + var(--y2) * 0.45), 0) rotate(-4deg) scale(0.96); }
  88% { opacity: 0.9; }
  100% { opacity: 0; transform: translate3d(var(--x2), var(--y2), 0) rotate(-16deg) scale(0.78); }
}
@keyframes sheetUp {
  from { transform: translateY(16px); opacity: 0.6; }
  to { transform: none; opacity: 1; }
}
@keyframes flicker {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(0.92) translateY(1px); }
}

@media (min-width: 760px) {
  #app { max-width: none; }
  .hero-title { font-size: clamp(68px, 7vw, 108px); }
  .stack { padding: 40px 48px max(56px, var(--tab-clear)); }
  h1.display, .display { font-size: clamp(56px, 5vw, 84px); }
  .chapter-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .event-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .gallery-grid { columns: 3; column-gap: 14px; }
  .shot, .sealed { margin-bottom: 14px; }
  .stack > .btn-gold,
  .stack > .btn-line,
  .chapter-tools .btn-gold,
  .count-inner .btn-gold,
  .author-inner .btn-gold { max-width: 420px; }
  .invite-inner { max-width: 680px; margin: 0 auto; }
  .author-inner { max-width: 760px; margin: 0 auto; }
  .player img, .player iframe, .player video { height: min(58vh, 560px); }
  .sheet-card {
    left: 50%;
    right: auto;
    width: min(520px, calc(100% - 48px));
    bottom: 28px;
    border-radius: 24px;
    transform: translateX(-50%);
    animation: none;
  }
}

@media (min-width: 1080px) {
  :root {
    --tab-h: 0px;
    --tab-clear: 48px;
  }
  #app {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
  }
  #app.no-tab { grid-template-columns: minmax(0, 1fr); }
  #stage { grid-column: 2; grid-row: 1; }
  #app.no-tab #stage { grid-column: 1; }
  #ribbon { grid-column: 2; grid-row: 2; }
  #tabbar {
    grid-column: 1;
    grid-row: 1 / span 2;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    border-top: 0;
    border-right: 1px solid rgba(215, 181, 106, 0.22);
    padding: 36px 16px 24px;
  }
  #tabbar::before {
    content: "Divine\A" "Design '27";
    white-space: pre;
    font-family: var(--serif);
    font-size: 32px;
    line-height: 0.95;
    letter-spacing: 0.02em;
    color: var(--gold-2);
    padding: 8px 12px 28px;
  }
  .tab {
    flex: 0 0 auto;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    font-family: var(--cinzel);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 14px 14px;
    border-radius: 14px;
  }
  .tab svg { width: 20px; height: 20px; }
  .tab.on {
    background: rgba(110, 29, 50, 0.35);
    color: var(--gold-2);
  }
  .tab.on::before { display: none; }
  .tab.hint::after { top: 18px; right: 14px; }
  .install { left: 272px; right: auto; width: min(420px, 36vw); }
  .home-copy {
    max-width: min(780px, 48vw);
    padding: 96px 80px 56px;
    padding-top: max(96px, calc(64px + var(--safe-t)));
  }
  .home-view::before { background-position: 62% 18%; filter: blur(0.8px) saturate(1.05) brightness(0.9); }
  .tab[data-tab="donation"] { font-size: 12px; letter-spacing: 0.08em; }
  .hero-title { font-size: clamp(64px, 6.4vw, 96px); }
  .stack { padding: 48px 72px max(72px, var(--tab-clear)); }
  .event-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .gallery-grid { columns: 4; column-gap: 16px; }
  .timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .timeline::before { display: none; }
  .team-head,
  .team-grid,
  #view-story .stack,
  #view-events .stack,
  #view-journey .stack,
  #view-gallery .stack,
  #view-live .stack,
  #view-dashboard .stack,
  #view-registry .stack,
  .info-view .stack {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }
  .team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 20px 72px 56px; gap: 14px; }
  .banner { height: 340px; }
  .dash-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dash-tile.wide { grid-column: span 2; }
  .info-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
  #view-registry .accounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #view-registry #intl-accounts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .place { opacity: 0.88; transform: scale(0.96); transform-origin: left center; }
  .ticks { display: flex; gap: 56px; align-items: flex-start; justify-content: center; margin: 28px 0 12px; }
  .tick b { font-size: clamp(72px, 7vw, 112px); }
  .count-inner { padding-top: 48px; }
  .author-trust { font-size: clamp(72px, 7vw, 104px); }
  .book { width: 420px; height: 200px; }
  .open-view .lead { font-size: 28px; }
  .heart-wrap { width: 320px; height: 290px; }
  .heart { width: 210px; height: 190px; }
  .heart img {
    clip-path: path("M105 176 C24 116 4 72 34 36 C58 10 88 18 105 44 C122 18 152 10 176 36 C206 72 186 116 105 176 Z");
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .open-view .rise,
  .reveal,
  .view.is-on .stack > .kicker,
  .view.is-on .stack > .display,
  .view.is-on .stack > .fine,
  .view.is-on .home-copy > *,
  .view.is-on .event-list > *,
  .view.is-on .chapter-list > *,
  .view.is-on .accounts > *,
  .view.is-on .team-grid > *,
  .view.is-on .info-list > * { opacity: 1; transform: none; filter: none; }
  .view { transform: none; }
  .heart { filter: drop-shadow(0 14px 28px rgba(110, 29, 50, 0.45)); }
  #page-veil { display: none; }
}
