/* =========================================================
   Shubhangi & Naman · A little shagun
   ========================================================= */
:root {
  --m950: #1a030a;
  --m900: #2a0610;
  --m800: #3d0a17;
  --m700: #5a0f22;
  --m600: #7a1430;
  --red: #a3162f;
  --gold: #d9a441;
  --gold-lt: #f6d98b;
  --gold-dk: #9c6b1e;
  --cream: #fff4dc;
  --ink: #fdf0d5;
  --marigold: #f39c12;
  --haldi: #f7c21b;
  --henna: #6e3412;
  --rani: #d63384;
  --emerald: #0f5d4a;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --display: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --script: "Great Vibes", "Segoe Script", cursive;
  --deva: "Tiro Devanagari Hindi", "Noto Serif Devanagari", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--m900);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
body.locked { overflow: hidden; height: 100vh; height: 100svh; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }

#petals, #fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#petals { z-index: 110; }
#fx { z-index: 120; }

.deva { font-family: var(--deva); color: var(--gold-lt); letter-spacing: .05em; font-size: 1.05rem; }
.kicker { font-family: var(--display); text-transform: uppercase; letter-spacing: .35em; font-size: .72rem; opacity: .85; margin-top: .6rem; }
.script { font-family: var(--script); }

.gold-text, .names span:not(.amp), .gate-names span {
  background: linear-gradient(180deg, #fff3c4 0%, #f6d98b 35%, #d9a441 65%, #b07a22 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  background: linear-gradient(135deg, #fbe7a6, #d9a441 50%, #b8862b);
  color: var(--m900); text-decoration: none;
  padding: .8em 1.6em; border-radius: 999px;
  font-family: var(--display); font-weight: 700; letter-spacing: .06em; font-size: .9rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.6);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.96); }
.btn.small { padding: .62em 1.15em; font-size: .78rem; }
.btn.ghost { background: transparent; color: var(--gold-lt); box-shadow: inset 0 0 0 1.5px var(--gold); }

/* ---------- ornaments ---------- */
.orn { display: flex; align-items: center; justify-content: center; gap: .8rem; color: var(--gold); margin: 1rem auto; }
.orn::before, .orn::after { content: ""; width: 70px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.orn::after { transform: scaleX(-1); }

.toran { position: absolute; top: 0; left: 0; right: 0; height: clamp(84px, 13vw, 150px); pointer-events: none; z-index: 3; }
.toran svg { width: 100%; height: 100%; display: block; overflow: visible; }
.toran .strand { transform-box: fill-box; transform-origin: top center; animation: sway 4s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-2.5deg); } to { transform: rotate(2.5deg); } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   GATE
   ========================================================= */
#gate { position: fixed; inset: 0; z-index: 100; perspective: 1800px; overflow: hidden; background: #0c0106; transition: background 1.2s ease; }
#gate.open { background: transparent; pointer-events: none; }
#gate.gone { opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s .8s; }
.door {
  position: absolute; top: 0; bottom: 0; width: 50.1%; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(246,217,139,.10), transparent 60%),
    repeating-linear-gradient(45deg, rgba(217,164,65,.11) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(-45deg, rgba(217,164,65,.11) 0 1px, transparent 1px 24px),
    linear-gradient(90deg, #430a19, #6b1028 50%, #430a19);
  background-size: 100vw 100%;
  transition: transform 1.8s cubic-bezier(.6,.04,.25,1);
  will-change: transform;
}
.door.l { left: 0; transform-origin: left center; background-position: left top; }
.door.r { right: 0; transform-origin: right center; background-position: right top; }
#gate.open .door.l { transform: rotateY(-95deg); }
#gate.open .door.r { transform: rotateY(95deg); }
/* card border: each half draws its three outer sides so together they form one frame */
.door::before, .door::after { content: ""; position: absolute; pointer-events: none; z-index: 3; border: 0 solid rgba(217,164,65,.75); }
.door::before { top: 14px; bottom: 14px; border-top-width: 1.5px; border-bottom-width: 1.5px; }
.door::after { top: 21px; bottom: 21px; border-color: rgba(217,164,65,.38); border-top-width: 1px; border-bottom-width: 1px; }
.door.l::before { left: 14px; right: 0; border-left-width: 1.5px; }
.door.l::after { left: 21px; right: 0; border-left-width: 1px; }
.door.r::before { right: 14px; left: 0; border-right-width: 1.5px; }
.door.r::after { right: 21px; left: 0; border-right-width: 1px; }
/* closed, the card is seamless; a soft edge shadow appears only as the halves swing open */
.door.l, .door.r { box-shadow: none; }
#gate.open .door.l { box-shadow: inset -10px 0 18px -6px rgba(0,0,0,.6); }
#gate.open .door.r { box-shadow: inset 10px 0 18px -6px rgba(0,0,0,.6); }
/* both halves hold the same full-width face, each showing only its side */
.half-inner { position: absolute; top: 0; bottom: 0; width: 100vw; }
.door.l .half-inner { left: 0; }
.door.r .half-inner { right: 0; }

.gate-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 120px 20px 40px; pointer-events: none;
}
.gate-names { font-family: var(--script); font-weight: 400; font-size: clamp(2.6rem, 11vw, 4.6rem); line-height: 1.15; margin: .3rem 0 0; text-shadow: 0 2px 30px rgba(246,217,139,.25); }
.gate-names em { font-style: normal; color: var(--gold-lt); font-size: .7em; }
.gate-names span { display: inline-block; padding: .2em .18em .28em; margin: -.2em -.1em -.28em; }
#gate { cursor: pointer; -webkit-tap-highlight-color: transparent; }
#gate:focus-visible { outline: none; }
#gate .tap-hint { margin-top: 3.2rem; font-size: .85rem; letter-spacing: .35em; }
#gate .tap-hint::before, #gate .tap-hint::after { content: "✦"; margin: 0 .8em; color: var(--gold); letter-spacing: 0; }
.tap-hint { margin-top: 1.4rem; font-family: var(--display); letter-spacing: .25em; text-transform: uppercase; font-size: .7rem; color: var(--gold-lt); animation: blink 2s ease-in-out infinite; }
.tap-hint.dark { color: var(--gold-lt); }
@keyframes blink { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- floating UI ---------- */

#dots { position: fixed; right: 10px; top: 50%; transform: translateY(-50%); z-index: 130; display: flex; flex-direction: column; gap: 9px; opacity: 0; pointer-events: none; transition: opacity .6s; }
#dots.show { opacity: 1; pointer-events: auto; }
#dots a { display: block; width: 5px; height: 5px; border-radius: 50%; background: rgba(246,217,139,.3); box-shadow: 0 0 0 .5px rgba(0,0,0,.25); transition: transform .3s, background .3s; position: relative; }
#dots a.on { background: var(--gold-lt); transform: scale(1.4); box-shadow: 0 0 6px rgba(246,217,139,.8); }
#dots a::after { content: attr(data-label); position: absolute; right: 18px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-family: var(--display); font-size: .65rem; letter-spacing: .12em; color: var(--gold-lt); background: rgba(26,3,10,.75); padding: 3px 8px; border-radius: 6px; opacity: 0; transition: opacity .3s; pointer-events: none; }
#dots a:hover::after, #dots a.on::after { opacity: 1; }
#dots a.on::after { opacity: 0; }
#dots a:hover::after { opacity: 1; }

/* =========================================================
   SECTIONS (shared)
   ========================================================= */
section { position: relative; }
.chapter {
  min-height: 100vh; min-height: 100svh;
  padding: clamp(110px, 16vw, 170px) 20px 80px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.chapter::before {
  content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217,164,65,.7), transparent);
}
.chapter-head { position: relative; z-index: 2; max-width: 560px; }
.chapter-no { font-family: var(--display); letter-spacing: .4em; font-size: .72rem; text-transform: uppercase; opacity: .8; }
.chapter h2 { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 9vw, 3.6rem); line-height: 1.05; margin: .35em 0 .35em; letter-spacing: .04em; }
.chapter h2 .hi { display: block; font-family: var(--deva); font-weight: 400; font-size: .52em; letter-spacing: 0; opacity: .85; margin-bottom: .1em; }
.lede { max-width: 36ch; margin: 0 auto 1.8rem; font-size: 1.18rem; font-style: italic; line-height: 1.5; }
.status { position: relative; z-index: 2; min-height: 1.6em; margin-top: 1.2rem; font-family: var(--display); font-size: .9rem; letter-spacing: .06em; max-width: 34ch; }
.status.pop { animation: statusPop .5s ease; }
@keyframes statusPop { 0% { transform: scale(.9); opacity: .4; } 60% { transform: scale(1.06); } 100% { transform: none; opacity: 1; } }

.scroll-hint { position: relative; z-index: 2; display: inline-flex; flex-direction: column; align-items: center; gap: .4rem; margin-top: 2rem; color: var(--gold-lt); text-decoration: none; font-family: var(--display); letter-spacing: .25em; text-transform: uppercase; font-size: .7rem; }
.scroll-hint span { font-size: 1.3rem; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

/* =========================================================
   HERO
   ========================================================= */
#hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 130px 20px 140px; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(246,217,139,.16), transparent 55%),
    radial-gradient(ellipse at 50% 40%, #7a1430 0%, #3d0a17 58%, #1a030a 100%);
}
.hero-mandala { position: absolute; left: 50%; top: 46%; width: min(135vw, 920px); aspect-ratio: 1; transform: translate(-50%, -50%); opacity: .16; pointer-events: none; }
.hero-mandala svg { width: 100%; height: 100%; animation: spin 140s linear infinite; }
.hero-inner { position: relative; z-index: 2; }
#hero .hero-inner > * { opacity: 0; transform: translateY(24px); transition: opacity 1.1s ease, transform 1.1s ease; }
#hero.in .hero-inner > * { opacity: 1; transform: none; }
#hero.in .hero-inner > *:nth-child(2) { transition-delay: 0.15s; }
#hero.in .hero-inner > *:nth-child(3) { transition-delay: 0.3s; }
#hero.in .hero-inner > *:nth-child(4) { transition-delay: 0.6s; }
#hero.in .hero-inner > *:nth-child(5) { transition-delay: 0.85s; }
#hero.in .hero-inner > *:nth-child(6) { transition-delay: 1s; }
#hero.in .hero-inner > *:nth-child(7) { transition-delay: 1.15s; }
#hero.in .hero-inner > *:nth-child(8) { transition-delay: 1.3s; }
.names { font-family: var(--script); font-weight: 400; line-height: .95; margin: .5rem 0 0; display: flex; flex-direction: column; align-items: center; }
/* The gold gradient only paints inside each word's box, so give the script's tall
   swashes (S, N, the g's tail) room inside it; negative margins keep the spacing. */
.names .n1, .names .n2 { display: inline-block; font-size: clamp(3.6rem, 17vw, 8rem); line-height: 1; padding: .22em .25em .3em; margin: -.24em 0 -.28em; filter: drop-shadow(0 4px 24px rgba(246,217,139,.25)); }
.names .amp { font-family: var(--script); font-size: clamp(2rem, 8vw, 3.4rem); color: var(--gold); margin: -.1em 0; }
.hero-line { max-width: 30ch; margin: 0 auto; font-style: italic; font-size: 1.2rem; opacity: .92; }
.date-chip { display: inline-block; margin-top: 1.2rem; padding: .45em 1.1em; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(217,164,65,.6); font-family: var(--display); font-size: .78rem; letter-spacing: .12em; color: var(--gold-lt); }

.diyas { position: absolute; bottom: 5vh; left: 0; right: 0; display: flex; justify-content: center; gap: clamp(22px, 7vw, 70px); z-index: 2; pointer-events: none; }
.diya { position: relative; width: 44px; height: 20px; background: radial-gradient(ellipse at 50% 0%, #e88a3a, #9a4314 60%, #5a230a 100%); border-radius: 0 0 50% 50% / 0 0 100% 100%; box-shadow: 0 6px 14px rgba(0,0,0,.4); }
.diya::before { content: ""; position: absolute; top: -4px; left: -2px; right: -2px; height: 8px; border-radius: 50%; background: #4a1c06; box-shadow: inset 0 0 0 1.5px var(--gold); }
.diya::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 110px; height: 110px; transform: translate(-50%, 0); background: radial-gradient(circle, rgba(255,184,77,.35), transparent 65%); pointer-events: none; }
.diya i { position: absolute; left: 50%; bottom: 12px; width: 12px; height: 24px; margin-left: -6px; border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%; background: radial-gradient(circle at 50% 78%, #fff 0 14%, #ffe066 30%, #ff9f1c 58%, rgba(255,80,0,0) 74%); transform-origin: 50% 100%; animation: flick 1.6s ease-in-out infinite; filter: drop-shadow(0 0 8px #ffb347); }
.diya:nth-child(2) i { animation-delay: -.4s; } .diya:nth-child(3) i { animation-delay: -.9s; } .diya:nth-child(4) i { animation-delay: -.2s; } .diya:nth-child(5) i { animation-delay: -1.2s; }
@keyframes flick { 0%,100% { transform: scale(1) rotate(-2deg); } 25% { transform: scale(1.08, .94) rotate(2deg); } 50% { transform: scale(.94, 1.1) rotate(-1deg); } 75% { transform: scale(1.04) rotate(3deg); } }

/* =========================================================
   PROLOGUE · THE JODI (polaroid deck)
   ========================================================= */
#jodi {
  background:
    radial-gradient(circle at 20% 15%, rgba(255,179,198,.18), transparent 40%),
    radial-gradient(ellipse at 50% 55%, #8a1d4a 0%, #4f0d2b 58%, #24040f 100%);
}
.deck {
  --w: min(76vw, 300px);
  position: relative; z-index: 2; width: var(--w);
  height: calc((var(--w) - 24px) * 4 / 3 + 86px);
  margin-top: .4rem;
}
.polaroid {
  position: absolute; inset: 0; padding: 12px 12px 0; border-radius: 4px;
  background: linear-gradient(180deg, #fffdf6, #f7efdc);
  box-shadow: 0 14px 32px rgba(0,0,0,.42);
  transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .35s;
  cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.deck.single::before { content: ""; position: absolute; inset: 0; border-radius: 4px; background: #efe4cc; box-shadow: 0 10px 24px rgba(0,0,0,.35); transform: rotate(4deg) translate(6px, 4px); }
.deck.single .polaroid { cursor: pointer; touch-action: manipulation; }
.polaroid.wiggle { animation: polaroidWiggle .6s ease; }
@keyframes polaroidWiggle { 0%,100% { transform: rotate(-2deg); } 30% { transform: rotate(2deg) scale(1.03); } 60% { transform: rotate(-4deg) scale(1.02); } }
.polaroid.dragging { transition: none; cursor: grabbing; }
.polaroid::before { content: ""; position: absolute; top: -10px; left: 50%; width: 92px; height: 24px; margin-left: -46px; background: rgba(246,217,139,.75); transform: rotate(-3deg); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.polaroid img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #e9dcc0; pointer-events: none; -webkit-user-drag: none; }
.polaroid p { height: 74px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 6px; font-family: var(--script); font-size: 1.45rem; line-height: 1.1; color: #4a0b1b; }

/* =========================================================
   III · HALDI HIGHS
   ========================================================= */
#haldi {
  color: #4a1a06;
  background:
    radial-gradient(circle at 15% 85%, rgba(243,156,18,.35), transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.5), transparent 40%),
    linear-gradient(180deg, #fff6cf 0%, #ffe07a 55%, #ffc93c 100%);
}
#haldi .chapter-no, #haldi .status { color: #7a3a08; }
#haldi h2 { color: #6b2a04; }
#haldi .lede { color: #5a2606; }
#haldi .event-sub { color: #a0520a; }
#haldi #haldi .event-quote { color: #5a2606; }
#haldi .event-quote::before, #haldi .event-quote::after { color: #c9790a; }
.haldi-card {
  position: relative; z-index: 2;
  width: min(88vw, 400px); aspect-ratio: 4 / 3;
  border-radius: 22px; overflow: hidden; cursor: pointer; touch-action: manipulation;
  background: radial-gradient(circle at 50% 40%, #fffaf0, #fbe8c6);
  box-shadow: 0 0 0 6px rgba(255,255,255,.55), 0 0 0 8px #e3a92b, 0 18px 40px rgba(122,58,8,.35);
}
.haldi-card canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.haldi-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 1; color: #8a4a12; }
.haldi-face .script { font-size: clamp(2.3rem, 10vw, 3.2rem); line-height: 1; }
.haldi-face .heart { color: #e0532b; font-size: 1.3rem; margin: .1em 0; }
.haldi-face small { margin-top: .9rem; font-family: var(--display); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; opacity: .7; }
.haldi-done { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; font-family: var(--script); font-size: clamp(2.6rem, 12vw, 3.6rem); color: #fff; text-shadow: 0 2px 0 #c9790a, 0 4px 18px rgba(150,70,0,.6); opacity: 0; transform: scale(.6); transition: opacity .6s, transform .7s cubic-bezier(.3,1.6,.5,1); pointer-events: none; }
.haldi-card.done .haldi-done { opacity: 1; transform: none; }

/* =========================================================
   EVENT DETAILS (from the invitation cards)
   ========================================================= */
.hashtag { font-family: var(--display); font-weight: 700; letter-spacing: .06em; font-size: 1.05rem; color: var(--gold-lt); margin: .2rem 0 .6rem; }
.event { display: flex; flex-direction: column; align-items: center; gap: .45rem; margin: -.1rem auto 1.2rem; }
.event-sub { font-family: var(--display); font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-lt); }
.event-quote { max-width: 32ch; margin-top: .2rem; font-style: italic; font-size: 1.15rem; line-height: 1.45; }
.event-quote::before { content: "\201C"; color: var(--gold); margin-right: .1em; }
.event-quote::after { content: "\201D"; color: var(--gold); margin-left: .05em; }
.event + .lede { font-style: normal; font-size: 1.02rem; opacity: .85; }

/* =========================================================
   I · SHUBHARAMBH (ring exchange)
   ========================================================= */
#shubharambh {
  color: #5b2333;
  background:
    radial-gradient(circle at 12% 8%, rgba(255,182,193,.55), transparent 32%),
    radial-gradient(circle at 90% 14%, rgba(255,205,210,.6), transparent 30%),
    radial-gradient(ellipse at 50% 60%, #fffaf7 0%, #fde8e2 55%, #f6cfc6 100%);
}
#shubharambh .chapter-no, #shubharambh .status { color: #8e3b4f; }
#shubharambh h2 { color: #6b1d33; }
#shubharambh .event-sub { color: #a8546a; }
#shubharambh #shubharambh .event-quote::before, #shubharambh .event-quote::after { color: #c0687f; }
.rings-stage { position: relative; z-index: 2; width: min(90vw, 400px); }
#ringsSvg { width: 100%; height: auto; display: block; overflow: visible; cursor: pointer; touch-action: manipulation; filter: drop-shadow(0 8px 14px rgba(120,50,40,.25)); }
#ringsSvg .ring-glow { opacity: 0; transition: opacity 1s; }
#ringsSvg.joined .ring-glow { opacity: 1; animation: glowPulse 2.4s ease-in-out infinite; }
#ringsSvg .ring-sparkles path { opacity: 0; }
#ringsSvg.joined .ring-sparkles path { animation: sparkle 1.6s ease-in-out infinite; }
@keyframes glowPulse { 0%,100% { opacity: .65; } 50% { opacity: 1; } }
@keyframes sparkle { 0%,100% { opacity: 0; } 50% { opacity: 1; } }
.ring-btns { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 1rem; }
.ring-btns .btn.used { opacity: .45; pointer-events: none; }

/* =========================================================
   II · SANGEET NIGHT
   ========================================================= */
#sangeet {
  --hue: 300;
  background:
    radial-gradient(ellipse at 50% 100%, hsla(var(--hue), 80%, 55%, .25), transparent 60%),
    radial-gradient(ellipse at 50% 30%, #3e1360 0%, #1c0733 60%, #0d0219 100%);
  transition: background .2s;
}
.spot { position: absolute; top: -10%; width: 40vmax; height: 120%; opacity: .22; pointer-events: none; filter: blur(8px); transform-origin: 50% 0; mix-blend-mode: screen; }
.spot.s1 { left: -10%; background: linear-gradient(180deg, hsla(calc(var(--hue) + 0), 90%, 65%, .9), transparent 80%); clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%); animation: spotA 6s ease-in-out infinite alternate; }
.spot.s2 { left: 30%; background: linear-gradient(180deg, hsla(calc(var(--hue) + 120), 90%, 65%, .9), transparent 80%); clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%); animation: spotB 7s ease-in-out infinite alternate; }
.spot.s3 { right: -10%; background: linear-gradient(180deg, hsla(calc(var(--hue) + 240), 90%, 65%, .9), transparent 80%); clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%); animation: spotA 5s ease-in-out infinite alternate-reverse; }
@keyframes spotA { from { transform: rotate(-18deg); } to { transform: rotate(18deg); } }
@keyframes spotB { from { transform: rotate(14deg); } to { transform: rotate(-14deg); } }
#sangeet.flash .spot { opacity: .5; }

.dhol-wrap { position: relative; z-index: 2; padding: 30px 0; }
.dhol { position: relative; width: min(90vw, 400px); margin: 0 auto; }
.dhol-svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 18px 26px rgba(0,0,0,.5)); }
.dhol .head { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 2; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.dhol .head.dha { left: 0; }
.dhol .head.na { right: 0; }
.dhol .head:focus-visible { outline: 2px dashed rgba(246,217,139,.6); outline-offset: -6px; border-radius: 20px; }
.dhol-svg .flash { opacity: 0; }
.dhol-svg .flash.on { animation: headFlash .28s ease-out; }
@keyframes headFlash { from { opacity: .6; } to { opacity: 0; } }
.dhol-svg .tassel { transform-box: fill-box; transform-origin: 50% 0; animation: tassel 2.6s ease-in-out infinite alternate; }
.dhol-svg .tassel.t2 { animation-delay: -1.3s; }
.dhol.thump .dhol-body { animation: dholThump .18s ease-out; }
@keyframes tassel { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
@keyframes dholThump { 0% { transform: translateY(0); } 40% { transform: translateY(2px); } 100% { transform: translateY(0); } }
.note { position: absolute; z-index: 3; font-size: 1.6rem; color: var(--gold-lt); pointer-events: none; animation: noteUp 1.4s ease-out forwards; text-shadow: 0 0 10px rgba(246,217,139,.7); }
@keyframes noteUp { from { transform: translate(0, 0) rotate(0); opacity: 1; } to { transform: translate(var(--dx), -140px) rotate(var(--rot)); opacity: 0; } }

.beat-meter { position: relative; z-index: 2; width: min(80vw, 320px); height: 8px; border-radius: 8px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: .6rem; }
.beat-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--rani), var(--gold-lt)); border-radius: inherit; transition: width .2s; }
.dancers { position: relative; z-index: 2; display: flex; gap: 14px; font-size: 2.2rem; margin-top: 1rem; height: 0; opacity: 0; transition: opacity .6s, height .6s; }
.dancers.on { opacity: 1; height: 3rem; }
.dancers.on span { display: inline-block; animation: dance .5s ease-in-out infinite alternate; }
.dancers.on span:nth-child(2n) { animation-delay: .25s; }
@keyframes dance { from { transform: translateY(0) rotate(-8deg); } to { transform: translateY(-10px) rotate(8deg); } }

/* =========================================================
   IV · RECEPTION
   ========================================================= */
#reception { background: linear-gradient(180deg, #050a24 0%, #14123f 50%, #3b1550 85%, #5a1a3a 100%); justify-content: flex-start; cursor: pointer; touch-action: manipulation; min-height: 110vh; min-height: 110svh; padding-bottom: calc(clamp(150px, 25vw, 560px) * .85 + 12px); }
#sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
#reception .chapter-head, #reception .status { pointer-events: none; }
.skyline { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(150px, 25vw, 560px); z-index: 1; pointer-events: none; }
.skyline svg { width: 100%; height: 100%; display: block; }
.skyline .win { animation: winGlow 3s ease-in-out infinite alternate; }
.skyline .bulb { animation: twinkle 1.2s ease-in-out infinite alternate; }
@keyframes winGlow { from { opacity: .55; } to { opacity: 1; } }
@keyframes twinkle { from { opacity: .3; } to { opacity: 1; } }

/* =========================================================
   V · SAAT PHERE
   ========================================================= */
#phere {
  background:
    radial-gradient(circle at 50% 58%, rgba(255,140,40,.35), transparent 35%),
    radial-gradient(ellipse at 50% 50%, #8b1a1a 0%, #4a0a0a 60%, #220404 100%);
}
.phera-ring { --s: min(84vw, 340px); position: relative; z-index: 2; width: var(--s); height: var(--s); margin-top: .5rem; }
.ring-line { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(246,217,139,.45); }
.ring-line::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px solid rgba(246,217,139,.18); }
.pdiya {
  position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  transform: rotate(var(--a)) translateY(calc(var(--s) / -2)) rotate(calc(var(--a) * -1));
  display: grid; place-items: center; font-family: var(--display); font-size: .7rem; font-weight: 700;
  border-radius: 50%; background: #3a0a0a; color: rgba(246,217,139,.6); box-shadow: inset 0 0 0 1.5px rgba(246,217,139,.5);
  transition: background .5s, color .5s, box-shadow .5s;
}
.pdiya.lit { background: radial-gradient(circle, #fff3b0, #ffb703 55%, #e85d04); color: var(--m900); box-shadow: 0 0 18px 4px rgba(255,183,3,.7); }
.orbit { position: absolute; inset: 0; transition: transform 2.2s cubic-bezier(.55,.05,.45,.95); pointer-events: none; z-index: 3; }
.couple { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); display: flex; align-items: center; }
.couple .c { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--script); font-size: 1.25rem; color: #fff; box-shadow: 0 0 0 2px var(--gold-lt), 0 4px 10px rgba(0,0,0,.4); }
.couple .c.s { background: linear-gradient(135deg, #e0368a, #a3162f); }
.couple .c.n { background: linear-gradient(135deg, #f39c12, #b05a06); }
.couple .knot { width: 12px; height: 3px; background: var(--gold-lt); }
.agni { position: absolute; left: 50%; top: 50%; width: 120px; height: 140px; transform: translate(-50%, -54%); z-index: 2; touch-action: manipulation; }
.agni .kund { position: absolute; left: 50%; bottom: 0; width: 100px; height: 34px; transform: translateX(-50%); background: linear-gradient(180deg, #c0552a, #7a2a10); clip-path: polygon(0 0, 100% 0, 86% 100%, 14% 100%); box-shadow: inset 0 3px 0 var(--gold); }
.agni .kund::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gold); }
.agni .f { position: absolute; left: 50%; bottom: 26px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; transform-origin: 50% 100%; mix-blend-mode: screen; filter: blur(.6px); }
.agni .f1 { width: 70px; height: 100px; margin-left: -35px; background: radial-gradient(circle at 50% 80%, #ffd166 0 20%, #ff7b00 50%, rgba(220,40,0,0) 72%); animation: flame 1.1s ease-in-out infinite alternate; }
.agni .f2 { width: 50px; height: 84px; margin-left: -34px; background: radial-gradient(circle at 50% 80%, #ffe08a 0 20%, #ff9f1c 50%, rgba(220,60,0,0) 72%); animation: flame .9s ease-in-out infinite alternate-reverse; }
.agni .f3 { width: 50px; height: 80px; margin-left: -14px; background: radial-gradient(circle at 50% 80%, #ffe08a 0 20%, #ff9f1c 50%, rgba(220,60,0,0) 72%); animation: flame 1.3s ease-in-out infinite alternate; }
.agni .f4 { width: 30px; height: 56px; margin-left: -15px; background: radial-gradient(circle at 50% 80%, #fff 0 22%, #ffe066 45%, rgba(255,160,0,0) 72%); animation: flame .7s ease-in-out infinite alternate; }
.agni.roar .f { animation-duration: .25s; }
.agni::after { content: ""; position: absolute; left: 50%; top: 40%; width: 220px; height: 220px; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255,150,40,.35), transparent 65%); pointer-events: none; z-index: -1; }
@keyframes flame { 0% { transform: scale(1, 1) rotate(-3deg); } 50% { transform: scale(1.06, .92) rotate(2deg); } 100% { transform: scale(.94, 1.12) rotate(-1deg); } }
.vow-card { position: relative; z-index: 2; margin-top: 1.8rem; width: min(90vw, 440px); min-height: 132px; padding: 1.2rem 1.4rem; border-radius: 16px; background: rgba(26,3,10,.45); box-shadow: inset 0 0 0 1px rgba(217,164,65,.45); }
.vow-no { font-family: var(--display); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.vow-text { margin-top: .4rem; font-size: 1.25rem; font-style: italic; line-height: 1.4; }
.vow-text.swap { animation: vowIn .7s ease; }
@keyframes vowIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* =========================================================
   VI · OUR GIFT
   ========================================================= */
#gift {
  background:
    radial-gradient(circle at 50% 62%, rgba(246,217,139,.22), transparent 42%),
    radial-gradient(ellipse at 50% 55%, #6b0f24 0%, #3d0a17 55%, #1a030a 100%);
  padding-bottom: 100px;
}
.gift-stage { position: relative; z-index: 2; width: 100%; min-height: 470px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.rays { position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(246,217,139,.22) 0 8deg, transparent 8deg 20deg); -webkit-mask: radial-gradient(circle, #000 0 18%, transparent 62%); mask: radial-gradient(circle, #000 0 18%, transparent 62%); opacity: 0; transform: scale(.4); transition: opacity 1s, transform 1.4s ease; pointer-events: none; }
.gift-stage.opened .rays { opacity: 1; transform: scale(1); animation: spin 30s linear infinite; }

.giftbox { position: relative; width: 210px; height: 220px; animation: wiggle 3.2s ease-in-out infinite; transition: opacity .6s .5s, transform .6s .5s; touch-action: manipulation; }
.giftbox .base {
  position: absolute; left: 12px; right: 12px; bottom: 0; height: 145px; border-radius: 6px;
  background:
    linear-gradient(90deg, transparent calc(50% - 17px), #f6d98b calc(50% - 17px), #d9a441 50%, #f6d98b calc(50% + 17px), transparent calc(50% + 17px)),
    radial-gradient(circle at 25% 30%, rgba(246,217,139,.35) 0 3px, transparent 4px) 0 0 / 28px 28px,
    linear-gradient(180deg, #c2185b, #7e0c39);
  box-shadow: inset 0 -12px 22px rgba(0,0,0,.35), 0 22px 40px rgba(0,0,0,.45);
}
.giftbox .tag { position: absolute; right: -8px; bottom: 26px; transform: rotate(8deg); background: var(--cream); color: var(--m800); font-family: var(--script); font-size: 1.05rem; padding: 4px 12px 4px 18px; border-radius: 4px 10px 10px 4px; box-shadow: 0 4px 10px rgba(0,0,0,.3); white-space: nowrap; }
.giftbox .tag::before { content: ""; position: absolute; left: 6px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--m700); }
.giftbox .tag b { font-weight: 400; }
.giftbox .lid {
  position: absolute; left: 0; right: 0; top: 52px; height: 42px; border-radius: 6px; z-index: 2;
  background:
    linear-gradient(90deg, transparent calc(50% - 19px), #f6d98b calc(50% - 19px), #d9a441 50%, #f6d98b calc(50% + 19px), transparent calc(50% + 19px)),
    linear-gradient(180deg, #e91e63, #a0104a);
  box-shadow: 0 6px 12px rgba(0,0,0,.35);
  transition: transform 1s cubic-bezier(.3,.9,.3,1), opacity .8s .2s;
}
.giftbox .bow { position: absolute; left: 50%; top: -38px; width: 0; height: 0; }
.giftbox .bow::before, .giftbox .bow::after { content: ""; position: absolute; top: 0; width: 56px; height: 40px; border: 9px solid #e7b553; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.3); }
.giftbox .bow::before { right: 0; transform: rotate(-22deg); transform-origin: right bottom; }
.giftbox .bow::after { left: 0; transform: rotate(22deg); transform-origin: left bottom; }
@keyframes wiggle { 0%, 70%, 100% { transform: rotate(0); } 74% { transform: rotate(-5deg); } 78% { transform: rotate(5deg); } 82% { transform: rotate(-4deg); } 86% { transform: rotate(3deg); } 90% { transform: rotate(0); } }
.giftbox.shake { animation: shake .5s linear; }
@keyframes shake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-8px) rotate(-4deg); } 40% { transform: translateX(8px) rotate(4deg); } 60% { transform: translateX(-6px) rotate(-3deg); } 80% { transform: translateX(6px) rotate(3deg); } }
.gift-stage.opened .giftbox { animation: none; opacity: 0; transform: translateY(80px) scale(.8); pointer-events: none; }
.gift-stage.opened .giftbox .lid { transform: translate(-70px, -230px) rotate(-38deg); opacity: 0; }
.gift-stage.opened #giftHint { opacity: 0; }
.gift-stage.gone .giftbox, .gift-stage.gone #giftHint { display: none; }

/* ---------- the gift card ---------- */
.gc {
  --c1: #232f3e; --c2: #131a22; --accent: #ff9900; --txt: #fff;
  position: absolute; left: 50%; top: 50%;
  width: min(92vw, 420px); padding: 26px 22px 22px; border-radius: 20px;
  color: var(--txt); text-align: center; overflow: hidden;
  background:
    radial-gradient(circle at 110% -10%, rgba(255,255,255,.14), transparent 45%),
    linear-gradient(140deg, var(--c1), var(--c2));
  box-shadow: 0 0 0 1.5px rgba(246,217,139,.7), 0 0 0 6px rgba(246,217,139,.12), 0 30px 70px rgba(0,0,0,.6), 0 0 80px rgba(246,217,139,.25);
  opacity: 0; transform: translate(-50%, -20%) scale(.3) rotate(-8deg); pointer-events: none;
  transition: opacity .8s ease, transform 1.1s cubic-bezier(.2,1.3,.4,1);
}
.gc.show { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); pointer-events: auto; }
.gift-stage.gone .gc { position: relative; left: auto; top: auto; transform: none; transition: none; }
.gc[data-brand="myntra"] { --c1: #ff3f6c; --c2: #f2702a; --accent: #fff3c4; }
.gc[data-brand="other"] { --c1: #7a1430; --c2: #3d0a17; --accent: var(--gold-lt); }
.gc-mandala { position: absolute; right: -90px; bottom: -90px; width: 260px; height: 260px; opacity: .14; pointer-events: none; }
.gc-mandala svg { width: 100%; height: 100%; animation: spin 80s linear infinite; }
.gc-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.gc:not(.ready) .gc-inner { visibility: hidden; }
.gc-to { font-size: 1.05rem; font-style: italic; line-height: 1.2; }
.gc-to strong { display: block; font-family: var(--script); font-style: normal; font-weight: 400; font-size: 2rem; color: var(--gold-lt); padding: .12em .2em .2em; }
.gc[data-brand="myntra"] .gc-to strong { color: #fff; }
.gc-brand { display: flex; flex-direction: column; align-items: center; line-height: 1.05; margin-top: 14px; }
.gc-brand-name { font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 800; font-size: 1.65rem; letter-spacing: -.02em; }
.gc[data-brand="amazon"] .gc-brand-name { font-family: Arial, "Helvetica Neue", sans-serif; letter-spacing: -.03em; }
.gc[data-brand="amazon"] .gc-brand-name::after { content: ""; display: block; width: 62%; height: 9px; margin: 1px auto 0; border-bottom: 3px solid var(--accent); border-radius: 0 0 50% 50%; }
.gc[data-brand="myntra"] .gc-brand-name { font-family: var(--display); letter-spacing: .06em; }
.gc[data-brand="other"] .gc-brand-name { font-family: var(--display); font-size: 1.35rem; color: var(--gold-lt); }
.gc-brand-sub { font-family: var(--display); font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; opacity: .85; margin-top: 4px; padding-left: .3em; }
.gc-amount { margin-top: 14px; font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--accent); text-shadow: 0 2px 10px rgba(0,0,0,.25); white-space: nowrap; }
.gc-amount small { font-size: .55em; margin-right: 3px; vertical-align: .3em; }
.gc-code { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 18px; width: 100%; }
.gc-code .pin { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; margin-top: 6px; }
.gc-code .lbl { font-family: var(--display); font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; opacity: .8; }
.code-row { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 8px 8px 8px 16px; border-radius: 12px; background: rgba(255,255,255,.96); color: #1a1a1a; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.code-row .val { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-weight: 700; font-size: clamp(1rem, 4.6vw, 1.25rem); letter-spacing: .08em; word-break: break-all; text-align: center; }
.code-row .val.long { font-size: clamp(.82rem, 3.8vw, 1.1rem); letter-spacing: .03em; white-space: nowrap; }
.copy-btn { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #f1e6cc; color: #3d0a17; transition: transform .15s, background .2s; }
.copy-btn:active { transform: scale(.92); }
.copy-btn.done { background: #d8f2dc; color: #1b7a34; }
.gc-from { margin-top: 18px; padding-top: 12px; width: 100%; border-top: 1px dashed rgba(255,255,255,.3); font-size: 1rem; }
.gc-from b { font-weight: 600; }
#scratchCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; touch-action: none; cursor: grab; transition: opacity .8s ease; }
#scratchCanvas.gone { opacity: 0; pointer-events: none; }
.gc-hint { position: relative; z-index: 2; margin-top: 18px; font-family: var(--display); font-size: .78rem; letter-spacing: .12em; text-align: center; color: var(--gold-lt); opacity: 0; transition: opacity .6s; }
.gift-stage.gone .gc-hint { opacity: 1; animation: blink 2s ease-in-out infinite; }
.gift-stage.gone .gc-hint.done { animation: none; opacity: 1; }

/* =========================================================
   LETTER
   ========================================================= */
#letter { background: radial-gradient(ellipse at 50% 30%, #4a0c1c, #1a030a 80%); justify-content: flex-start; padding-top: 90px; }
.paper {
  position: relative; z-index: 2; width: min(92vw, 560px); padding: 46px 30px 36px; text-align: left;
  color: #4a2410; border-radius: 6px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,.6), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(201,140,60,.25), transparent 45%),
    linear-gradient(180deg, #fff8e6, #f6e3bd);
  box-shadow: 0 0 0 1px #d9a441, 0 0 0 8px #fff3d6, 0 0 0 9px #d9a441, 0 30px 60px rgba(0,0,0,.5);
}
.paper-orn { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #f6d98b, #b8862b); color: var(--m800); font-size: 1.4rem; box-shadow: 0 4px 10px rgba(0,0,0,.3); }
.letter-photo { width: min(62%, 240px); margin: 6px auto 26px; padding: 10px 10px 0; background: #fff; transform: rotate(-3deg); box-shadow: 0 10px 24px rgba(74,36,16,.3); position: relative; }
.letter-photo::before { content: ""; position: absolute; top: -9px; left: 50%; width: 80px; height: 20px; margin-left: -40px; background: rgba(214,51,132,.35); transform: rotate(4deg); }
.letter-photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.letter-photo figcaption { font-family: var(--script); font-size: 1.35rem; text-align: center; padding: .25em 0 .35em; color: var(--m700); }
#letterBody p { margin-bottom: 1em; font-size: 1.18rem; }
#letterBody p:first-child { font-family: var(--script); font-size: 2.1rem; line-height: 1.2; color: var(--m700); }
.sign { margin-top: 1.4rem; font-style: italic; }
.sign span { display: block; font-family: var(--script); font-style: normal; font-size: 2.2rem; color: var(--m700); line-height: 1.2; margin-top: .2rem; }
.foot { position: relative; z-index: 2; margin-top: 3rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; font-size: .95rem; opacity: .85; text-align: center; }

/* ---------- small screens ---------- */
@media (max-width: 420px) {
  body { font-size: 18px; }
  .lede { font-size: 1.08rem; }
  #dots { right: 5px; gap: 8px; }
  .gc { padding: 18px 16px 14px; }
  .gc-amount { font-size: 2.2rem; }
  .gc-brand-name { font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
