/* ============================================================
   Mohit & Antika — Save the Date
   Pichwai / peacock-inspired mobile-first invitation
   ============================================================ */

:root {
  --ivory:        #fbf4e8;
  --ivory-warm:   #f6e8d6;
  --blush:        #f3d9d2;
  --blush-deep:   #ebc3c6;
  --rose:         #d99a9a;
  --lotus:        #c97388;
  --plum:         #6c2a3d;
  --plum-deep:    #4a1a2a;
  --ink:          #3a1623;
  --gold:         #b48848;
  --gold-soft:    #d4ad6a;
  --gold-bright:  #e8cc8a;
  --sage:         #8a9a7a;
  --peacock:      #0f6473;
  --peacock-deep: #0a4956;
  --night:        #14060b;
}

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

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100svh;
  background: var(--ivory);
  color: var(--ink);
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  overscroll-behavior: none;
  color-scheme: only light;
}
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body.locked { overflow: hidden; touch-action: none; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ===================== INTRO ===================== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #f1cfd3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: opacity 1100ms cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}
.intro.fade-out { opacity: 0; pointer-events: none; }
.intro.gone { display: none; }

.facade {
  position: absolute;
  inset: 0;
  transform-origin: 50% 60%;
  transition: transform 3200ms cubic-bezier(0.2, 0.6, 0.2, 1);
}
.intro.opening .facade { transform: scale(1.14); }

.wall {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(201, 115, 136, 0.07) 0 2px, transparent 2px 18px),
    repeating-linear-gradient(45deg, rgba(201, 115, 136, 0.07) 0 2px, transparent 2px 18px),
    radial-gradient(ellipse 90% 70% at 50% 45%, #f8dfe3 0%, #efc3cc 50%, #de9fb1 100%);
}
.wall::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(201, 115, 136, 0.28) 0 2px, transparent 2.6px),
    radial-gradient(circle, rgba(180, 136, 72, 0.22) 0 1.4px, transparent 2px);
  background-size: 46px 46px, 31px 37px;
  background-position: 0 0, 15px 9px;
  opacity: 0.7;
}

.pilaster {
  position: absolute;
  top: 6vh;
  bottom: 0;
  width: 18px;
  width: 22px;
  background: linear-gradient(90deg, #d9a3b0 0%, #fbeee8 45%, #f3d6d0 60%, #c98a9c 100%);
  box-shadow: inset 0 0 0 1px rgba(180, 136, 72, 0.6);
  opacity: 0.95;
}
.pilaster::before, .pilaster::after {
  content: '';
  position: absolute;
  left: -14px; right: -14px;
  height: 14px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-radius: 3px;
}
.pilaster::before { top: 0; }
.pilaster::after { bottom: 0; }
.pilaster.l { left: clamp(10px, 6vw, 70px); }
.pilaster.r { right: clamp(10px, 6vw, 70px); }

.diya {
  position: absolute;
  top: 52%;
  width: 26px;
  height: 14px;
  background: linear-gradient(180deg, #d4ad6a, #8a5f26);
  border-radius: 0 0 14px 14px / 0 0 10px 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.diya.l { left: calc(clamp(10px, 6vw, 70px) + 32px); }
.diya.r { right: calc(clamp(10px, 6vw, 70px) + 32px); }
.diya i {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 8px;
  height: 16px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 70%, #fff5c2 0%, #ffb648 45%, rgba(255, 120, 40, 0) 75%);
  border-radius: 50% 50% 40% 40%;
  filter: blur(0.4px);
  animation: flicker 1400ms ease-in-out infinite alternate;
  box-shadow: 0 0 22px 8px rgba(255, 170, 70, 0.28);
}
.diya.r i { animation-delay: -700ms; }
@keyframes flicker {
  0%   { transform: translateX(-50%) scale(1) rotate(-2deg); opacity: 0.9; }
  50%  { transform: translateX(-52%) scale(1.08, 1.15) rotate(2deg); opacity: 1; }
  100% { transform: translateX(-48%) scale(0.95, 1.05) rotate(-1deg); opacity: 0.85; }
}

.portal-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(72vw, 360px, 54svh);
  aspect-ratio: 5 / 8;
  transform: translate(-50%, -58%);
}
.portal {
  position: absolute;
  inset: 0;
  clip-path: url(#archClip);
  background: #2a0d18;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.5);
}
.courtyard {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% 30%, #fff3ea 0%, #f9dfe3 40%, #efc4cc 75%, #e3a9b8 100%);
}
.courtyard-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.bloom {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 50% 45%, rgba(255, 246, 225, 0.95) 0%, rgba(255, 230, 200, 0.55) 25%, transparent 60%);
  opacity: 0;
  transition: opacity 1600ms ease 500ms;
  pointer-events: none;
}
.intro.opening .bloom { opacity: 1; }

.doors {
  position: absolute;
  inset: 0;
  perspective: 900px;
  perspective-origin: 50% 55%;
}
.door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  transition: transform 2300ms cubic-bezier(0.62, 0, 0.26, 1);
}
.door.l { left: 0;  transform-origin: 0% 50%; }
.door.r { right: 0; transform-origin: 100% 50%; transition-delay: 120ms; }
.intro.opening .door.l { transform: rotateY(-104deg); }
.intro.opening .door.r { transform: rotateY(104deg); }

.panel {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06), transparent 60%),
    linear-gradient(180deg, #7d3350 0%, #5c2239 55%, #46162a 100%);
  box-shadow:
    inset 0 0 0 3px var(--gold),
    inset 0 0 0 5px #3b1222,
    inset 0 0 0 6px var(--gold-soft),
    inset 0 0 60px rgba(0, 0, 0, 0.45);
}
.panel::before {
  content: '';
  position: absolute;
  inset: 12px;
  background-image:
    radial-gradient(circle, rgba(232, 204, 138, 0.55) 0 1px, transparent 1.6px);
  background-size: 14px 14px;
  opacity: 0.55;
  pointer-events: none;
}
.door.l .panel { box-shadow: inset 0 0 0 3px var(--gold), inset 0 0 0 5px #3b1222, inset 0 0 0 6px var(--gold-soft), inset 40px 0 60px rgba(0,0,0,0.35); }
.door.r .panel { box-shadow: inset 0 0 0 3px var(--gold), inset 0 0 0 5px #3b1222, inset 0 0 0 6px var(--gold-soft), inset -40px 0 60px rgba(0,0,0,0.35); }

.emblem {
  position: absolute;
  left: 50%;
  top: 33%;
  width: 60%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.45));
}
.emblem svg { width: 100%; height: auto; display: block; }
.lower {
  position: absolute;
  left: 50%;
  top: 74%;
  width: 46%;
  transform: translate(-50%, -50%);
  opacity: 0.95;
}
.lower svg { width: 100%; height: auto; display: block; }
.knob {
  position: absolute;
  top: 52%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff2c8, #c99a4c 55%, #7a5620);
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.door.l .knob { right: 11px; }
.door.r .knob { left: 11px; }

.arch-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 0 12px rgba(232, 204, 138, 0.25));
}
.threshold {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -14px;
  height: 14px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 60%, #6a4a1c);
  border-radius: 2px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}

.intro-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, transparent 30%, rgba(108, 42, 61, 0.38) 100%);
  transition: opacity 900ms ease;
}
.intro.opening .intro-veil { opacity: 0; }

.tap-prompt {
  position: absolute;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 5vh);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--plum-deep);
  text-align: center;
  pointer-events: none;
  animation: breathe 2600ms ease-in-out infinite;
  transition: opacity 500ms ease, transform 700ms ease;
  white-space: nowrap;
}
.intro.opening .tap-prompt { opacity: 0; transform: translate(-50%, 8px); animation: none; }
.tap-prompt .flourish { display: flex; align-items: center; gap: 10px; opacity: 0.9; }
.tap-prompt .flourish .line { width: 38px; height: 1px; background: linear-gradient(90deg, transparent, rgba(180, 136, 72, 0.95), transparent); }
.tap-prompt .flourish .glyph { font-size: 12px; color: var(--gold-soft); line-height: 1; }
.tap-prompt .prompt-label {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: clamp(15px, 4.2vw, 19px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  padding-left: 0.42em;
  color: var(--plum-deep);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6), 0 2px 16px rgba(255, 240, 242, 0.9);
}
.tap-prompt .prompt-sub {
  font-style: italic;
  font-size: clamp(12px, 3.1vw, 14px);
  letter-spacing: 0.18em;
  color: var(--plum);
}
.tap-prompt .prompt-tag {
  margin-top: 2px;
  font-family: 'Cinzel', serif;
  font-size: clamp(10px, 2.6vw, 12px);
  letter-spacing: 0.22em;
  color: var(--gold);
}
@keyframes breathe {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.88; }
  50%      { transform: translate(-50%, -4px); opacity: 1; }
}

/* ===================== CARD ===================== */
.card {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(env(safe-area-inset-top) + 26px) 18px calc(env(safe-area-inset-bottom) + 30px);
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 1200ms ease, transform 1600ms cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
  overflow: hidden;
}
.card.in { opacity: 1; transform: scale(1); }
@media (min-width: 520px) { .card { padding-top: calc(env(safe-area-inset-top) + 44px); } }

.card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--ivory);
  background-image:
    radial-gradient(ellipse 55% 40% at 12% 18%, rgba(236, 184, 194, 0.55), transparent 70%),
    radial-gradient(ellipse 50% 35% at 90% 12%, rgba(240, 200, 190, 0.55), transparent 70%),
    radial-gradient(ellipse 60% 45% at 85% 85%, rgba(233, 180, 192, 0.5), transparent 70%),
    radial-gradient(ellipse 50% 40% at 8% 88%, rgba(246, 214, 200, 0.6), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(251, 244, 232, 0.9), rgba(246, 232, 214, 0.9));
}
.card-bg .sprig {
  position: absolute;
  width: clamp(190px, 52vw, 340px);
  height: auto;
  opacity: 0.9;
}
.card-bg .sprig.tl { left: -6%; top: -3%; }
.card-bg .sprig.br { right: -6%; bottom: -3%; transform: rotate(180deg); }
.card-bg .sprig.tr { right: -10%; top: -6%; transform: scaleX(-1); width: clamp(150px, 40vw, 260px); opacity: 0.7; }
.card-bg .sprig.bl { left: -10%; bottom: -6%; transform: scaleY(-1); width: clamp(150px, 40vw, 260px); opacity: 0.7; }
.gold-dust {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(201, 160, 80, 0.95) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(226, 194, 124, 0.9) 0 0.8px, transparent 1.4px);
  background-size: 23px 29px, 37px 31px;
  background-position: 0 0, 11px 7px;
  -webkit-mask-image:
    radial-gradient(ellipse 30% 22% at 86% 18%, #000, transparent 100%),
    radial-gradient(ellipse 28% 20% at 10% 86%, #000, transparent 100%);
  mask-image:
    radial-gradient(ellipse 30% 22% at 86% 18%, #000, transparent 100%),
    radial-gradient(ellipse 28% 20% at 10% 86%, #000, transparent 100%);
  opacity: 0.45;
}

.card-header, .jharoka-wrap, .card-footer { position: relative; z-index: 1; }
.jharoka-wrap, .jharoka-wrap * { user-select: none; -webkit-user-select: none; }

.card-header { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; }
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  opacity: 0;
  animation: rise 1100ms 220ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.eyebrow .rule { width: clamp(28px, 9vw, 44px); height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.eyebrow .diamond { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }

.title {
  margin: 12px 0 0;
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: clamp(13px, 3.8vw, 16px);
  letter-spacing: 0.48em;
  text-transform: uppercase;
  color: var(--plum);
  padding-left: 0.48em;
  opacity: 0;
  animation: rise 1100ms 360ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.couple {
  margin: 6px 0 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--plum-deep);
  line-height: 1;
  opacity: 0;
  animation: rise 1200ms 520ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  font-size: clamp(38px, 11.5vw, 58px);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.18em;
  flex-wrap: wrap;
}
.couple .amp { color: var(--gold); font-weight: 400; font-size: 0.78em; }

/* ---- jharoka ---- */
.jharoka-wrap {
  position: relative;
  width: min(92vw, 440px);
  aspect-ratio: 600 / 820;
  margin: clamp(8px, 1.6vh, 16px) auto 0;
  opacity: 0;
  animation: rise 1400ms 700ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.jharoka-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 16px 28px rgba(74, 26, 42, 0.18));
  overflow: visible;
}
/* inner opening — kept in sync with app.js (OPENING constants) */
.jharoka-inner, .petal-layer {
  position: absolute;
  left: 27.5%;
  top: 25%;
  width: 45%;
  height: 62.8%;
}
.jharoka-inner { z-index: 2; }
.petal-layer {
  z-index: 5;
  touch-action: none;
  cursor: grab;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
}
.petal-layer:active { cursor: grabbing; }
.card.revealed .petal-layer { pointer-events: none; cursor: default; }

.petal {
  position: absolute;
  width: 34px;
  height: 54px;
  margin: -17px 0 0 -27px;
  transform-origin: 50% 50%;
  pointer-events: none;
  will-change: transform;
  filter: drop-shadow(0 3px 4px rgba(108, 42, 61, 0.22));
}
.petal svg { width: 100%; height: 100%; display: block; animation: petalIdle var(--idle, 4s) ease-in-out infinite alternate; }
.petal.loose svg { animation: none; }
.petal.settled { filter: drop-shadow(0 2px 3px rgba(108, 42, 61, 0.18)); opacity: 0.94; }
@keyframes petalIdle {
  from { transform: rotate(-4deg) translateY(0); }
  to   { transform: rotate(4deg) translateY(-2px); }
}

/* ---- date block (behind the petals) ---- */
.date-block {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16% 8% 12%;
  color: var(--plum-deep);
  text-align: center;
  gap: 2px;
}
.date-block .glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 50% 55%, rgba(212, 173, 106, 0.45) 0%, rgba(212, 173, 106, 0.18) 40%, transparent 75%);
  opacity: 0;
  transition: opacity 1100ms ease;
}
.card.revealed .date-block .glow { opacity: 1; animation: glowPulse 4200ms ease-in-out 700ms infinite; }
@keyframes glowPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.date-block > * { position: relative; }

.date-block .preamble {
  font-style: italic;
  font-size: clamp(10px, 2.7vw, 12px);
  letter-spacing: 0.18em;
  color: var(--plum);
  opacity: 0.78;
  margin-bottom: 4px;
}
.date-block .day {
  font-weight: 500;
  font-size: clamp(48px, 16.5vw, 78px);
  line-height: 0.95;
  color: var(--plum-deep);
  letter-spacing: -0.01em;
}
.date-block.tba .day { font-size: clamp(16px, 4.6vw, 22px); font-style: italic; line-height: 1.2; }
.date-block .month-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.date-block .month-row .bar { width: clamp(16px, 5vw, 24px); height: 1px; background: var(--gold); opacity: 0.75; }
.date-block .month {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: clamp(10px, 3vw, 13px);
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--plum);
  padding-left: 0.36em;
}
.date-block .year { font-size: clamp(11px, 3vw, 13px); letter-spacing: 0.3em; color: var(--plum); margin-top: 2px; }
.date-block .sep { display: flex; gap: 4px; margin: clamp(8px, 2vw, 12px) 0 clamp(6px, 1.6vw, 9px); }
.date-block .sep .dot { width: 3px; height: 3px; background: var(--gold); border-radius: 50%; opacity: 0.75; }
.date-block .venue { font-weight: 500; font-style: italic; font-size: clamp(13px, 3.8vw, 16px); color: var(--plum-deep); line-height: 1.15; }
.date-block .loc { font-size: clamp(10px, 2.8vw, 12px); letter-spacing: 0.22em; text-transform: uppercase; color: var(--plum); opacity: 0.78; margin-top: 3px; }
.date-block .loc:empty, .date-block .year:empty { display: none; }

.date-block .preamble, .date-block .day, .date-block .month-row, .date-block .year,
.date-block .sep, .date-block .venue, .date-block .loc { opacity: 0; animation-fill-mode: both; }

.card.revealed .date-block .preamble  { animation: pkPreamble 900ms  200ms cubic-bezier(0.16,1,0.3,1) both; }
.card.revealed .date-block .day       { animation: pkDay      1300ms 370ms cubic-bezier(0.16,1,0.3,1) both; }
.card.revealed .date-block .month-row { animation: pkSlice    900ms  620ms cubic-bezier(0.16,1,0.3,1) both; }
.card.revealed .date-block .year      { animation: pkYear     800ms  790ms cubic-bezier(0.16,1,0.3,1) both; }
.card.revealed .date-block .sep       { animation: pkSep      680ms  910ms ease both; }
.card.revealed .date-block .venue     { animation: pkRise     900ms 1030ms cubic-bezier(0.16,1,0.3,1) both; }
.card.revealed .date-block .loc       { animation: pkLoc      800ms 1190ms cubic-bezier(0.16,1,0.3,1) both; }

@keyframes pkPreamble { from { opacity: 0; transform: translateY(10px); letter-spacing: 0.4em; } to { opacity: 0.78; transform: translateY(0); letter-spacing: 0.18em; } }
@keyframes pkDay {
  0%   { opacity: 0; filter: blur(22px); transform: scale(1.22) translateY(10px); }
  60%  { opacity: 1; filter: blur(0);    transform: scale(1.04) translateY(0); }
  82%  { transform: scale(0.98); }
  100% { opacity: 1; filter: blur(0);    transform: scale(1); }
}
@keyframes pkSlice { from { opacity: 0; clip-path: inset(0 50% 0 50%); transform: translateY(5px); } to { opacity: 1; clip-path: inset(0 0% 0 0%); transform: translateY(0); } }
@keyframes pkYear { from { opacity: 0; transform: translateY(8px); letter-spacing: 0.1em; } to { opacity: 1; transform: translateY(0); letter-spacing: 0.3em; } }
@keyframes pkSep { from { opacity: 0; transform: scale(0); } 78% { transform: scale(1.3); } to { opacity: 1; transform: scale(1); } }
@keyframes pkRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pkLoc { from { opacity: 0; transform: translateY(8px); letter-spacing: 0.06em; } to { opacity: 0.78; transform: translateY(0); letter-spacing: 0.22em; } }

/* ---- reveal hint ---- */
.reveal-hint {
  position: absolute;
  left: 50%;
  bottom: -26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  white-space: nowrap;
  animation: breatheHint 3400ms ease-in-out infinite;
}
.reveal-hint span { font-style: italic; font-size: 13px; letter-spacing: 0.22em; color: var(--plum); opacity: 0.78; }
.reveal-hint::before { content: '❀'; color: var(--gold-soft); font-size: 11px; opacity: 0.7; animation: spinOrnament 8s linear infinite; }
@keyframes spinOrnament { to { transform: rotate(360deg); } }
@keyframes breatheHint { 0%, 100% { opacity: 0.6; transform: translate(-50%, 0); } 50% { opacity: 1; transform: translate(-50%, -3px); } }
.card.revealed .reveal-hint { opacity: 0; transition: opacity 600ms ease; animation: none; }

/* ---- footer ---- */
.card-footer {
  margin-top: clamp(26px, 5vh, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: rise 1100ms 1000ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.formal { display: flex; align-items: center; gap: 12px; font-style: italic; font-size: clamp(13px, 3.6vw, 15px); letter-spacing: 0.06em; color: var(--plum-deep); text-align: center; }
.formal .ornament { color: var(--gold); font-size: 0.7em; opacity: 0.85; font-style: normal; }

.hashtag {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: clamp(13px, 3.8vw, 17px);
  letter-spacing: 0.14em;
  color: var(--plum);
  background: linear-gradient(90deg, var(--gold), #8a5f26 30%, var(--gold-bright) 50%, #8a5f26 70%, var(--gold));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.cta-wrap { margin-top: clamp(10px, 2.5vh, 18px); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #7c3149 0%, #4a1a2a 100%);
  color: var(--ivory);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: clamp(9px, 2.3vw, 11px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding-left: calc(18px + 0.24em);
  border: 1px solid rgba(212, 173, 106, 0.55);
  box-shadow: 0 6px 18px rgba(74, 26, 42, 0.32), inset 0 0 0 1px rgba(251, 244, 232, 0.08);
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transition: opacity 800ms ease, transform 900ms cubic-bezier(0.16,1,0.3,1), box-shadow 300ms ease;
  pointer-events: none;
  cursor: pointer;
  line-height: 1;
}
.cta.ghost { background: rgba(251, 244, 232, 0.6); color: var(--plum-deep); box-shadow: 0 4px 14px rgba(74, 26, 42, 0.14); transition-delay: 150ms; }
.cta.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.cta:active { transform: scale(0.97); }
.cta .gicon { width: 13px; height: 13px; flex: none; }
.cta:hover { box-shadow: 0 10px 26px rgba(74, 26, 42, 0.4), inset 0 0 0 1px rgba(251, 244, 232, 0.15); }

/* ---- music ---- */
#musicBtn {
  position: fixed;
  right: 14px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fbf4e3;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 9999;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
#musicBtn .bar { display: inline-block; width: 2px; height: 12px; background: currentColor; margin: 0 1px; border-radius: 1px; animation: musicBars 1s ease-in-out infinite; transform-origin: bottom; }
#musicBtn .bar:nth-child(2) { animation-delay: 0.18s; }
#musicBtn .bar:nth-child(3) { animation-delay: 0.36s; }
#musicBtn.is-paused .bar { animation-play-state: paused; transform: scaleY(0.5); }
@keyframes musicBars { 0%, 100% { transform: scaleY(0.45); } 50% { transform: scaleY(1); } }

@keyframes rise { 0% { opacity: 0; transform: translateY(14px); } 100% { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- intro extras: trees, arch finial, optional video ---- */
.tree {
  position: absolute;
  bottom: 4%;
  width: clamp(150px, 44vw, 380px);
  pointer-events: none;
  filter: drop-shadow(0 10px 20px rgba(74, 26, 42, 0.22));
}
.tree svg { width: 100%; height: auto; display: block; }
.tree.l { left: -9%; }
.tree.r { right: -9%; transform: scaleX(-1); }
.arch-finial { position: absolute; left: 50%; top: 0; width: 22%; transform: translate(-50%, -66%); pointer-events: none; }
.arch-finial svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 3px 6px rgba(74, 26, 42, 0.25)); }
.intro-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; pointer-events: none; background: #000; }
.intro.has-video { background: #000; }
.intro.has-video .intro-video { display: block; }
.intro.has-video .facade { display: none; }
.intro.has-video .tap-prompt { color: var(--ivory); }
.intro.has-video .tap-prompt .prompt-label { color: rgba(246, 232, 214, 0.97); text-shadow: 0 2px 12px rgba(10, 5, 8, 0.7); }
.intro.has-video .tap-prompt .prompt-sub { color: rgba(212, 173, 106, 0.9); }
.intro.has-video .intro-veil { background: radial-gradient(ellipse 75% 60% at 50% 50%, transparent 35%, rgba(10, 5, 8, 0.55) 100%); }

/* short, wide screens (laptops): lift the doors so the prompt never overlaps them */
@media (max-height: 720px) and (min-width: 600px) {
  .portal-wrap { width: min(72vw, 360px, 48svh); transform: translate(-50%, -64%); }
  .tap-prompt { bottom: calc(env(safe-area-inset-bottom) + 2vh); gap: 6px; }
  .tree { width: clamp(120px, 26vw, 300px); bottom: 0; }
}
