@font-face { font-family: "Corm"; src: url("shared/fonts/cormorant-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Corm"; src: url("shared/fonts/cormorant-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Corm"; src: url("shared/fonts/cormorant-500i.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("shared/fonts/jost-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("shared/fonts/jost-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jost"; src: url("shared/fonts/jost-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Parisienne"; src: url("shared/fonts/parisienne-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Tiro"; src: url("shared/fonts/tiro-hindi.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Deva"; src: url("shared/fonts/noto-sans-deva-full-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Kalam"; src: url("shared/fonts/kalam-400.woff2") format("woff2"); font-display: swap; }

:root {
  --ivory: #FFF8EE;
  --cream: #FBEFDF;
  --beige: #F4E6D2;
  --peach: #FCE3CC;
  --maroon: #6B1730;
  --maroon-2: #8A2340;
  --rani: #C2185B;
  --marigold: #EE9A1D;
  --gold: #C9A050;
  --gold-2: #EBCB7C;
  --ink: #3B1F24;
  --muted: #6E5650;
  --line: #EBD9C2;
  --night: #101B45;
  --night-2: #1A2A63;
  --vh: 1vh;
  --w-gold: var(--marigold);
  --w-line: var(--line);
  --w-ink: var(--ink);
}
@supports (height: 1svh) { :root { --vh: 1svh; } }

html.gated, html.gated body, html.sheet-open, html.sheet-open body { overflow: hidden; }
body { background: var(--ivory); color: var(--ink); font: 400 17px/1.65 "Jost", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
[lang="hi"], [lang="sa"] { font-family: "Tiro", "Deva", serif; }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 22px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1.5px solid transparent;
  border-radius: 999px; font: 600 14.5px/1.1 "Jost", sans-serif; letter-spacing: .03em; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: transform .15s ease, background .2s ease; }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-gold { background: var(--gold-2); color: #3A2205; }
.btn-maroon { background: var(--maroon); color: #FFF4E6; }
.btn-ghost { border-color: currentColor; background: transparent; color: inherit; }
.btn-line { border-color: var(--maroon); background: transparent; color: var(--maroon); }

/* ---------- section heads ---------- */
.sec-head { max-width: 560px; margin: 0 auto 28px; padding: 0 22px; text-align: center; }
.sec-hindi { font: 400 26px/1.3 "Tiro", serif; color: var(--rani); }
.sec-head h2 { margin-top: 2px; font: 600 clamp(32px, 9vw, 44px)/1.1 "Corm", Georgia, serif; color: var(--maroon); }
.sec-note { margin-top: 8px; font: italic 500 18px/1.4 "Corm", serif; color: var(--muted); }
.kicker { font: 600 12px/1.3 "Jost", sans-serif; letter-spacing: .24em; text-transform: uppercase; color: var(--marigold); }

/* ---------- opening: knock on the haveli doors, the diyas light up and the doors swing open ---------- */
.gate { display: none; }
.js .gate { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 70; display: block; overflow: hidden; background: #2B0E08; color: #FBE9CF;
  text-align: center; transition: opacity 1s ease, visibility 1s; }
/* on wide screens the painting sits in the middle of a blurred copy of itself */
.js .gate::before { content: ""; position: absolute; inset: -40px; background: url("img/haveli.webp") center / cover; filter: blur(28px) brightness(.45); }
/* the scene keeps the painting's 2:3 shape at full height, so every layer is placed in percentages of the painting */
.haveli { position: absolute; top: 0; left: 50%; height: 100%; aspect-ratio: 2 / 3; transform: translateX(-50%); perspective: 1600px; }
.haveli > * { position: absolute; }
.haveli-bg { top: 0; left: 0; width: 100%; height: 100%; }
.haveli-light, .haveli-door, .knock { left: 20.801%; top: 19.987%; width: 29.199%; height: 57.682%; }
.haveli-light, .knock { width: 58.398%; }
.haveli-light { opacity: 0; transition: opacity .6s ease;
  background: radial-gradient(ellipse 75% 65% at 50% 62%, #FFF9EA 0%, #FFE6A8 32%, #F5B65A 66%, #A85C1E 100%); }
.haveli-door { background: url("img/haveli-door-l.webp") 0 0 / 100% 100%; transform-origin: 0 50%;
  transition: transform 1.9s cubic-bezier(.55, .06, .3, 1), filter 1.9s ease; }
.haveli-door-r { left: 50%; background-image: url("img/haveli-door-r.webp"); transform-origin: 100% 50%; }
.haveli-toran { left: 19.043%; top: 18.49%; width: 61.914%; height: 24.479%; }
.haveli-dusk, .haveli-flames { top: 0; left: 0; width: 100%; height: 100%; }
.haveli-dusk { background: rgba(20, 6, 3, .42); transition: opacity 1.2s ease; }
.haveli-flames i { position: absolute; left: var(--x); top: 80.9%; width: 1.15%; aspect-ratio: 1 / 2.4; opacity: 0; transform: translate(-50%, -100%) scale(0);
  transform-origin: 50% 100%; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 74%, #FFFEF4 0 20%, #FFE38E 40%, #FFA62B 66%, rgba(255, 120, 20, 0) 72%);
  filter: drop-shadow(0 0 3px rgba(255, 200, 90, .95)) drop-shadow(0 0 9px rgba(255, 150, 40, .7));
  transition: transform .4s cubic-bezier(.3, 1.6, .5, 1) calc(var(--i) * 110ms), opacity .2s ease calc(var(--i) * 110ms); }
.haveli-bloom { left: 50%; top: 56%; width: 30%; aspect-ratio: 1; border-radius: 50%; opacity: 0; transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle, #FFF9EC 0%, rgba(255, 246, 225, .95) 38%, rgba(255, 228, 170, 0) 70%); }
.knocker { left: var(--x); top: 55%; width: 8%; aspect-ratio: 1; border: 2px solid rgba(255, 214, 130, .8); border-radius: 50%;
  transform: translate(-50%, -50%); pointer-events: none; animation: knock-hint 2.2s ease-out infinite; }
@keyframes knock-hint { 0% { opacity: .95; scale: .7; } 80%, 100% { opacity: 0; scale: 1.7; } }
.knock { padding: 0; border: 0; border-radius: 4px; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.knock:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 4px; }
.gate-inner, .gate-call { left: 50%; transform: translateX(-50%); pointer-events: none; transition: opacity .4s ease; }
/* a column of centred lines, so a line wider than the doors (the names) spills out evenly on both sides */
.gate-inner { top: 27.5%; display: flex; flex-direction: column; align-items: center; width: min(96vw, 92%); text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
.gate-mantra { font: 400 min(18px, 2.3vh) "Tiro", serif; color: var(--gold-2); letter-spacing: .04em; }
.gate-guest { margin-top: 1.4vh; font: 400 min(24px, 5.6vw, 3.1vh)/1.4 "Parisienne", cursive; color: var(--gold-2); }
.gate-kicker { margin-top: .9vh; font: 500 min(12.5px, 1.6vh) "Jost", sans-serif; letter-spacing: .24em; text-transform: uppercase; color: rgba(251, 233, 207, .85); }
.gate-names { margin: .5vh 0 0; font: 400 min(56px, 10.6vw, 6.6vh)/1.3 "Parisienne", cursive; color: #FFF1DC; white-space: nowrap; }
.gate-names span { font: italic 500 .5em "Corm", serif; color: var(--gold-2); }
.gate-call { top: 61%; width: min(90vw, 58%); text-shadow: 0 2px 10px rgba(0, 0, 0, .75); }
.gate-cta { font: 600 min(14px, 1.8vh) "Jost", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.gate-hint { margin-top: .6vh; font: 400 min(15px, 1.9vh) "Tiro", serif; color: rgba(251, 233, 207, .82); }
.gate.knocking .knocker, .gate.knocking .gate-inner, .gate.knocking .gate-call { opacity: 0; animation: none; }
.gate.knocking .haveli-door-l { animation: knock-l .5s ease-out; }
.gate.knocking .haveli-door-r { animation: knock-r .5s ease-out; }
@keyframes knock-l { 0%, 35%, 75%, 100% { rotate: y 0deg; } 15%, 55% { rotate: y 2deg; } }
@keyframes knock-r { 0%, 35%, 75%, 100% { rotate: y 0deg; } 15%, 55% { rotate: y -2deg; } }
.gate.lit .haveli-dusk { opacity: 0; }
.gate.lit .haveli-flames i { opacity: 1; transform: translate(-50%, -100%) scale(1); animation: flame-dance 1.3s ease-in-out infinite alternate; }
@keyframes flame-dance { 50% { scale: .9 1.1; } 100% { scale: 1.05 .94; } }
.gate.open .haveli-light { opacity: 1; }
.gate.open .haveli-door-l { transform: rotateY(86deg); filter: brightness(.4); }
.gate.open .haveli-door-r { transform: rotateY(-86deg); filter: brightness(.4); }
.gate.open .haveli-bloom { opacity: 1; transform: translate(-50%, -50%) scale(9); transition: transform 2s cubic-bezier(.5, 0, .7, .4) .6s, opacity .5s ease .6s; }
.gate.leaving { opacity: 0; visibility: hidden; }

/* ---------- music dock: play/pause with the current song, and skip ---------- */
.song-dock { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; z-index: 55; display: flex; gap: 6px; transition: opacity .5s; }
.song-btn, .song-next { min-height: 42px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 248, 238, .94); color: var(--maroon);
  box-shadow: 0 6px 18px rgba(59, 31, 36, .16); cursor: pointer; }
.song-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px 0 12px; font: 600 13.5px "Jost", sans-serif; }
.song-btn svg { width: 18px; height: 18px; fill: currentColor; }
.song-btn .m-off { fill: none; }
.song-now { max-width: 128px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.near-top .song-now { display: none; }
.song-next { display: grid; place-items: center; width: 42px; padding: 0; }
.song-next svg { width: 16px; height: 16px; }
html.gated .song-dock, html.gated .tabbar { opacity: 0; pointer-events: none; }

/* ---------- on the day: a maroon strip above the hero (right padding keeps it clear of the music buttons) ---------- */
.today { padding: calc(14px + env(safe-area-inset-top, 0px)) 112px 16px 18px; background: var(--maroon); color: #FFF1DC; }
.today-title { display: flex; align-items: center; gap: 9px; font: 600 17px/1.3 "Jost", sans-serif; }
.today-title i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #FFB347; animation: livePulse 1.8s ease-out infinite; }
.today-place { margin-top: 3px; font-size: 14px; line-height: 1.4; color: rgba(255, 241, 220, .82); }
.today-status { margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: rgba(255, 241, 220, .12); font: 500 15px/1.45 "Jost", sans-serif; }
.today-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.today-actions .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(255, 179, 71, .7); } 70%, 100% { box-shadow: 0 0 0 9px rgba(255, 179, 71, 0); } }
.today:not([hidden]) + .hero { padding-top: 20px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: calc(20px + env(safe-area-inset-top, 0px)); text-align: center;
  background: linear-gradient(180deg, var(--ivory) 0%, #FDF0E0 40%, #FBE6CF 100%); }
.hero-text { position: relative; z-index: 2; padding: 0 20px; }
.ganesha-btn { position: relative; display: block; margin: 0 auto; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ganesha-btn::before { content: ""; position: absolute; left: 50%; top: 50%; width: 130px; height: 130px; margin: -65px 0 0 -65px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 90, .6), rgba(255, 170, 60, 0) 68%); opacity: 0; transform: scale(.4); pointer-events: none; }
.ganesha-btn.ring::before { animation: blessing-halo 1.6s ease-out; }
.ganesha-btn.ring .hero-ganesha { animation: blessing 1.6s ease-out; }
.ganesha-btn:focus-visible { outline: 2px solid var(--marigold); outline-offset: 4px; border-radius: 12px; }
@keyframes blessing-halo { 15% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes blessing { 15% { filter: drop-shadow(0 0 10px rgba(255, 196, 80, .95)) brightness(1.08); transform: scale(1.06); }
  60% { filter: drop-shadow(0 0 6px rgba(255, 196, 80, .6)); transform: none; } }
.hero-ganesha { position: relative; width: auto; height: 92px; margin: 0 auto; }
/* tells guests Ganesha can be tapped, once the names are written; on his left, clear of the music buttons; gone after the first tap */
.ganesha-hint { position: absolute; right: 100%; top: 38%; display: flex; align-items: center; gap: 6px; margin-right: 10px; white-space: nowrap;
  font: italic 500 17px/1 "Corm", serif; color: var(--marigold); opacity: 0; transform: translateX(6px); pointer-events: none;
  transition: opacity .7s ease, transform .7s ease; }
.ganesha-hint svg { width: 18px; height: 18px; fill: currentColor; transform-origin: 50% 15%; }
.ganesha-btn.hinting .ganesha-hint { opacity: 1; transform: none; }
.ganesha-btn.hinting .ganesha-hint svg { animation: bell-swing 3.2s ease-in-out infinite; }
.ganesha-btn.hinting::before { animation: ganesha-breathe 3.2s ease-in-out infinite; }
@keyframes bell-swing { 0%, 55%, 100% { rotate: 0deg; } 62% { rotate: 18deg; } 70% { rotate: -15deg; } 78% { rotate: 9deg; } 86% { rotate: -4deg; } }
@keyframes ganesha-breathe { 0%, 100% { opacity: 0; transform: scale(.7); } 50% { opacity: .5; transform: scale(1.05); } }
.sparks { position: absolute; top: 0; left: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; }
.mantra { margin-top: 4px; font: 400 16px "Tiro", serif; color: var(--maroon-2); }
.hindi-title { margin-top: 10px; font: 400 clamp(40px, 12vw, 58px)/1.1 "Tiro", serif; color: var(--rani); }
.hero-names { margin-top: 2px; font: 400 clamp(38px, 11.2vw, 66px)/1.25 "Parisienne", cursive; color: var(--maroon); white-space: nowrap; }
.hero-names span { display: inline; }
.hero-names em { padding: 0 .35em 0 .25em; font: italic 500 .45em "Corm", serif; color: var(--marigold); }
/* once the doors open the names are redrawn as SVG text: a gold pen traces each word, then the ink fills in */
.hero-names .ink { display: block; width: auto; height: 1.25em; margin: 0 auto; overflow: visible; }
.hero-names.inked > span, .hero-names.inked > em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.ink text { font: 400 100px "Parisienne", cursive; fill: transparent; stroke: url(#inkGold); stroke-width: 1.5; stroke-linejoin: round;
  stroke-dasharray: 1600; stroke-dashoffset: 1600; }
.ink .ink-amp { font: italic 500 45px "Corm", serif; }
.ink.go .ink-w1 { animation: ink-draw 1.8s cubic-bezier(.45, .1, .35, 1) forwards, ink-fill 1s ease 1.4s forwards; }
.ink.go .ink-amp { animation: ink-draw .8s ease 1.3s forwards, ink-amp-fill .6s ease 1.8s forwards; }
.ink.go .ink-w2 { animation: ink-draw 1.8s cubic-bezier(.45, .1, .35, 1) 1.6s forwards, ink-fill 1s ease 3s forwards; }
@keyframes ink-draw { to { stroke-dashoffset: 0; } }
@keyframes ink-fill { to { fill: var(--maroon); stroke-width: .7; } }
@keyframes ink-amp-fill { to { fill: var(--marigold); stroke-width: .4; } }
.hero-dates { margin-top: 14px; font: 500 16.5px/1.6 "Jost", sans-serif; color: var(--ink); }
.hero-dates span { display: block; }
.hero-dates b { font-weight: 600; color: var(--rani); }
.hero-city { margin-top: 4px; font: 600 12.5px "Jost", sans-serif; letter-spacing: .32em; text-transform: uppercase; color: var(--marigold); }
.hero-art { position: relative; z-index: 1; width: min(100%, 560px); margin: -40px auto 0; cursor: pointer; }
.hero-art img { width: 100%; height: auto; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%); mask-image: linear-gradient(180deg, transparent 0%, #000 22%); }
.hero-art figcaption { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: rgba(255, 248, 238, .85);
  color: var(--maroon); font: 500 13px "Jost", sans-serif; white-space: nowrap; }
.butterflies { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.bfly { position: absolute; top: 0; left: 0; width: 36px; height: 30px; pointer-events: auto; cursor: pointer; will-change: transform; }
.bfly svg { width: 100%; height: 100%; overflow: visible; }
.bfly .wl, .bfly .wr { transform-box: fill-box; animation: flap .22s ease-in-out infinite alternate; }
.bfly .wl { transform-origin: 100% 50%; }
.bfly .wr { transform-origin: 0% 50%; }
.bfly.startled .wl, .bfly.startled .wr { animation-duration: .1s; }
@keyframes flap { to { transform: scaleX(.2); } }

/* ---------- countdown + scratch ---------- */
.muhurat { padding: 56px 0 60px; background: var(--maroon); color: #FFF1DC; text-align: center;
  background-image: radial-gradient(circle at 12px 12px, rgba(235, 203, 124, .16) 1.6px, transparent 2.4px); background-size: 24px 24px; }
.muhurat .kicker { color: var(--gold-2); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 380px; margin: 16px auto 0; }
.countdown div { padding: 14px 0 10px; border: 1px solid rgba(235, 203, 124, .45); border-radius: 16px; background: rgba(255, 255, 255, .06); }
.countdown b { display: block; font: 600 34px/1 "Corm", serif; color: var(--gold-2); font-variant-numeric: lining-nums tabular-nums; }
.countdown span { display: block; margin-top: 6px; font: 600 10px/1.3 "Jost", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 241, 220, .8); }
.countdown span i { display: block; font: 400 12px "Tiro", serif; font-style: normal; letter-spacing: 0; text-transform: none; color: rgba(255, 241, 220, .6); }
.countdown p { grid-column: 1 / -1; margin-top: 8px; font: italic 500 19px "Corm", serif; color: rgba(255, 241, 220, .9); }
.countdown.done div { display: none; }
.scratch { max-width: 360px; margin: 28px auto 0; padding: 26px 18px; border-radius: 22px; background: var(--ivory); color: var(--ink);
  box-shadow: 0 0 0 1px var(--gold), 0 0 0 7px rgba(235, 203, 124, .22); font-family: "Jost", sans-serif; }
.scratch-kicker { font: 600 11.5px "Jost", sans-serif; letter-spacing: .24em; text-transform: uppercase; color: var(--marigold); }
.scratch-big { margin-top: 4px; font: 600 32px/1.15 "Corm", serif; color: var(--maroon); }
.scratch-sub { margin-top: 4px; color: var(--muted); }

/* ---------- invitation: a scroll unrolling over a Purani Dilli gali ---------- */
/* the painted scroll's rod sits 27% down the 2:3 scene, so the real scroll starts there (1.5 - .405 = 1.095 scene widths up) */
.invite { --gw: min(100vw, 560px); position: relative; overflow: hidden; padding: 0 0 64px; text-align: center;
  background: linear-gradient(180deg, #F2DCBA, var(--ivory) 75%); }
.gali { position: relative; width: var(--gw); margin: 0 auto; overflow: hidden; }
.gali-bg { display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent); mask-image: linear-gradient(180deg, #000 88%, transparent); }
.birds svg { position: absolute; top: 9%; left: 0; width: 22px; height: 10px; color: #3E2C22; opacity: 0;
  animation: fly 16s linear infinite, wingbeat .45s ease-in-out infinite alternate; }
.birds svg:nth-child(2) { top: 12.5%; width: 16px; animation-delay: 1.1s, .2s; }
.birds svg:nth-child(3) { top: 7%; width: 18px; animation-delay: 2s, .1s; }
@keyframes fly { 0% { opacity: 0; transform: translate(-30px, 0); } 5%, 50% { opacity: .85; } 58%, 100% { opacity: 0; transform: translate(calc(var(--gw) + 30px), -50px); } }
@keyframes wingbeat { to { scale: 1 .35; } }
.rickshaw { position: absolute; left: 0; bottom: 8%; z-index: 3; width: 42%; height: auto; transform: translateX(-105%);
  filter: drop-shadow(0 6px 6px rgba(40, 20, 10, .35)); }
/* one pass across the gali while the scroll unrolls, then it stays gone */
.invite.open .rickshaw { animation: ride 3.6s cubic-bezier(.3, .15, .5, 1) .1s forwards, bump .3s ease-in-out 12 alternate; }
@keyframes ride { from { transform: translateX(-105%); } to { transform: translateX(245%); } }
@keyframes bump { to { translate: 0 -1.5px; } }
.scroll { position: relative; z-index: 2; width: min(88%, 480px); margin: calc(var(--gw) * -1.095) auto 0; transition: transform .8s cubic-bezier(.3, .7, .2, 1); }
.rod { position: absolute; left: -10px; right: -10px; z-index: 1; height: 16px; border-radius: 8px;
  background: linear-gradient(180deg, #F0C47E, #B0712F 55%, #6B3D12); box-shadow: 0 4px 8px rgba(59, 31, 36, .35); }
.rod::before, .rod::after { content: ""; position: absolute; top: -4px; width: 14px; height: 24px; border-radius: 7px;
  background: radial-gradient(circle at 40% 35%, #FFE7A6, #C8922E 60%, #6E420F); }
.rod::before { left: -10px; }
.rod::after { right: -10px; }
.rod-top { top: -8px; }
.rod-bottom { top: calc(100% - 8px); transition: top 1.7s cubic-bezier(.45, .05, .25, 1) .8s; }
.paper { position: relative; padding: 30px 16px 34px; clip-path: inset(0); transition: clip-path 1.7s cubic-bezier(.45, .05, .25, 1) .8s;
  background: radial-gradient(130% 50% at 50% 0, rgba(255, 255, 255, .6), transparent 70%),
    linear-gradient(90deg, rgba(166, 112, 52, .22), transparent 7%, transparent 93%, rgba(166, 112, 52, .22)), #F8EDD8; }
.paper-inner { padding: 22px 10px 18px; border: 1px solid rgba(201, 138, 43, .5); outline: 1px solid rgba(201, 138, 43, .25); outline-offset: 5px; }
.js .invite:not(.open) .scroll { transform: scaleX(.32); }
.js .invite:not(.open) .rod-bottom { top: -8px; }
.js .invite:not(.open) .paper { clip-path: inset(0 0 100% 0); }
@media (min-width: 600px) {
  .invite { padding-top: 40px; }
  .gali { border-radius: 28px 28px 0 0; }
}
.shloka { font: 600 15px/1.9 "Deva", sans-serif; color: var(--maroon-2); }
.divider { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 18px auto; }
.divider i { width: 70px; height: 1px; background: var(--gold); }
.divider span { width: 10px; height: 10px; transform: rotate(45deg); background: var(--marigold); }
.invite-text { max-width: 30ch; margin: 0 auto; font: italic 500 21px/1.5 "Corm", serif; color: var(--ink); text-wrap: balance; }
.couple-lines { display: grid; gap: 10px; margin-top: 26px; }
.couple-lines h3 { font: 400 clamp(24px, 7.4vw, 34px)/1.35 "Parisienne", cursive; color: var(--maroon); white-space: nowrap; }
.couple-lines p { margin-top: 6px; font-size: 16.5px; line-height: 1.5; text-wrap: balance; }
.couple-lines small { display: block; font: 600 11px "Jost", sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--marigold); }
.with { font: italic 500 34px/1 "Corm", serif; color: var(--rani); }

/* ---------- groom & bride ---------- */
.duo { padding: 64px 0; background: var(--cream); }
.duo-grid { display: grid; gap: 22px; max-width: 900px; margin: 0 auto; padding: 0 20px; }
.person { padding: 26px 20px 22px; border: 1px solid var(--line); border-radius: 28px; background: var(--ivory); text-align: center; }
.avatar { position: relative; display: block; width: 184px; height: 184px; margin: 0 auto; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.avatar .flip-inner { display: block; }
.avatar .flip-face { overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 5px var(--ivory), 0 0 0 7px var(--marigold); background: var(--peach); }
.avatar .flip-front img { width: 100%; height: 100%; object-fit: cover; }
.avatar .flip-back { background: radial-gradient(circle at 50% 40%, #FFF3E2, var(--peach)); }
.avatar .flip-back img { width: 100%; height: 100%; object-fit: cover; }
.flip-hint { position: absolute; right: 4px; bottom: 6px; width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--maroon); color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .2); }
.role { margin-top: 18px; font: 600 12px "Jost", sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--rani); }
.role span { font: 400 15px "Tiro", serif; letter-spacing: 0; }
.person h3 { margin-top: 2px; font: 600 30px/1.2 "Corm", serif; color: var(--maroon); }
.intro { max-width: 36ch; margin: 8px auto 0; color: var(--muted); font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.chips li { padding: 5px 11px; border-radius: 999px; background: color-mix(in srgb, var(--marigold) 15%, #fff); color: var(--maroon); font: 500 12.5px "Jost", sans-serif; }
.socials { display: flex; justify-content: center; gap: 12px; margin-top: 14px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--maroon); background: #fff; }
.socials svg { width: 20px; height: 20px; }
.knot { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--rani); }
.knot span { width: 60px; height: 2px; background: repeating-linear-gradient(90deg, #D7263D 0 6px, #F2B705 6px 12px); border-radius: 2px; }
.knot i { font: italic 500 34px/1 "Corm", serif; }

/* ---------- story: Delhi Metro line ---------- */
.story { padding: 64px 0 40px; }
.line-map { position: relative; max-width: 560px; margin: 0 auto; padding: 4px 18px 0 70px; }
.track { position: absolute; left: 36px; top: 0; bottom: 60px; width: 8px; border-radius: 8px; background: #EADFCB; }
.track-fill { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--p, 0) * 100%); border-radius: 8px;
  background: linear-gradient(180deg, #A9743A, #F2B705 11.1%, #1E63B5 22.2%, #0F7A5A 33.3%, #00A3AD 44.4%, #E5007D 55.6%, #7B2D8E 66.7%, #C2185B 77.8%, #F58220 88.9%, #E2231A); }
.train { position: absolute; left: 12px; top: 0; z-index: 2; width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(59, 31, 36, .3));
  transform: translateY(var(--ty, 0px)); will-change: transform; }
.stations { margin: 0; padding: 0; list-style: none; }
.station { position: relative; padding-bottom: 40px; }
.station::before { content: ""; position: absolute; left: -45px; top: 12px; width: 24px; height: 24px; border: 5px solid var(--c); border-radius: 50%; background: #fff;
  transition: background .3s, transform .3s; }
.station.reached::before { background: var(--c); transform: scale(1.12); }
.sign { display: inline-grid; min-width: 180px; padding: 8px 16px 9px; border-radius: 10px; background: #fff; box-shadow: 0 4px 14px rgba(59, 31, 36, .12);
  border-top: 6px solid var(--c); }
.sign span { font: 600 16px/1.3 "Deva", sans-serif; color: #222; }
.sign b { font: 600 17px/1.2 "Jost", sans-serif; color: #222; letter-spacing: .02em; }
.st-when { margin-top: 10px; font: 600 11.5px "Jost", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 72%, #000); }
.station > figure { margin: 14px 0 10px; overflow: hidden; border-radius: 18px; box-shadow: 0 10px 24px rgba(59, 31, 36, .12); }
.station > figure img { width: 100%; height: auto; }   /* never cropped: on laptops a height cap cut faces off the tall paintings */
/* the real photos from each chapter, as a swipeable row of polaroids */
.st-label { margin: 16px 0 -6px; font: 400 18px/1.2 "Kalam", cursive; color: color-mix(in srgb, var(--c) 75%, #000); }
.st-photos { display: flex; gap: 12px; margin: 12px -18px 0 0; padding: 6px 18px 12px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.st-photos::-webkit-scrollbar { display: none; }
.st-photos figure { flex: none; width: 104px; margin: 0; padding: 5px 5px 16px; border-radius: 3px; background: #fff; box-shadow: 0 6px 14px rgba(59, 31, 36, .18);
  transform: rotate(-2.5deg); scroll-snap-align: start; cursor: zoom-in; }
.st-photos figure:nth-child(even) { transform: rotate(2deg); }
.st-photos img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.station > p { color: var(--muted); font-size: 16.5px; }
/* the middle of the story stays folded until the guest asks for it */
.announce { margin-top: 14px; padding: 16px; border-radius: 16px; background: #141414; color: #FF9E1B; box-shadow: inset 0 0 0 2px #2A2A2A; }
.announce p { font: 500 15.5px/1.5 "Jost", sans-serif; }
.announce p[lang="hi"] { font: 600 16px/1.5 "Deva", sans-serif; }
.announce-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 12px; padding: 0 16px; border: 1px solid #FF9E1B; border-radius: 999px;
  background: transparent; color: #FF9E1B; font: 600 14px "Jost", sans-serif; cursor: pointer; }
.announce-btn svg { width: 18px; height: 18px; }

/* ---------- celebrations: night (engagement) / day (wedding) ---------- */
.celebrations { position: relative; overflow: hidden; padding: 70px 0 0; background: var(--night); color: #F5EEE2; text-align: center; transition: background-color 1s, color 1s; }
.celebrations .sky, .sun { transition: opacity 1s ease; }
.celebrations[data-mode="day"] { background: var(--beige); color: var(--ink); }
.celebrations[data-mode="day"] .sky { opacity: 0; }
.celebrations[data-mode="day"] .sun { opacity: 1; }
.celebrations > :not(.sky):not(.sun) { position: relative; }
.celebrations .sec-head h2 { color: inherit; }
.celebrations[data-mode="night"] .sec-hindi { color: var(--gold-2); }
.sky { position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none; overflow: hidden; }
.sky i { position: absolute; border-radius: 50%; background: #FFF4D0; opacity: .25; animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: 1; } }
.sun { position: absolute; top: -120px; right: -120px; width: 320px; height: 320px; border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(243, 176, 84, .6), rgba(243, 176, 84, 0) 70%); }
.switch-wrap { padding: 0 16px; }
.switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-width: 440px; margin: 0 auto 30px; padding: 6px; border: 1px solid rgba(235, 203, 124, .35);
  border-radius: 24px; background: rgba(255, 255, 255, .06); }
.switch button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; padding: 0 8px; border: 0; border-radius: 18px; background: transparent;
  color: inherit; text-align: left; cursor: pointer; transition: background .4s, color .4s; }
.switch svg { width: 24px; height: 24px; flex: none; }
.switch span { display: grid; font: 600 18px/1.2 "Corm", serif; }
.switch small { font: 500 12px "Jost", sans-serif; opacity: .8; }
.switch [aria-selected="true"] { background: var(--gold-2); color: #2E1B04; }
[data-mode="day"] .switch { border-color: rgba(107, 23, 48, .2); background: rgba(107, 23, 48, .05); }
[data-mode="day"] .switch [aria-selected="true"] { background: var(--maroon); color: #FFF4E6; }
.panel { max-width: 480px; margin: 0 auto; padding: 0 20px; animation: panelIn .6s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } }
/* each event opens like the camera flying through a jharokha into the scene */
.p-scene { position: relative; margin: 0 0 22px; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 24px; background: #0B1433;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .3); animation: windowIn 1.1s cubic-bezier(.2, .7, .2, 1); }
.p-scene img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.p-scene figcaption { position: absolute; top: 0; left: 0; right: 0; padding: 26px 16px 0; color: #FFF4E2; text-shadow: 0 2px 12px rgba(0, 0, 0, .4); }
#p-wed .p-scene figcaption { color: var(--maroon); text-shadow: 0 1px 12px rgba(255, 238, 218, .9); }
@keyframes windowIn { from { clip-path: inset(16% 24% 30% 24% round 160px 160px 14px 14px); transform: scale(1.08); } to { clip-path: inset(0 round 24px); transform: none; } }
.p-date { font: 600 12.5px "Jost", sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); }
[data-mode="day"] .p-date { color: var(--rani); }
.panel h3 { margin-top: 8px; font: 600 clamp(32px, 9vw, 42px)/1.1 "Corm", serif; }
.p-hindi { margin: 2px 0 18px; font: 400 22px "Tiro", serif; opacity: .85; }
.steps { max-width: 360px; margin: 0 auto 20px; padding: 0; list-style: none; text-align: left; }
.steps li { display: grid; grid-template-columns: 30px 82px 1fr; align-items: center; gap: 10px; padding: 12px 2px; border-bottom: 1px solid rgba(235, 203, 124, .25); }
.steps svg { width: 26px; height: 26px; color: var(--gold-2); }
.steps b { font: 600 20px "Corm", serif; color: var(--gold-2); white-space: nowrap; }
[data-mode="day"] .steps li { border-color: rgba(107, 23, 48, .15); }
[data-mode="day"] .steps svg, [data-mode="day"] .steps b { color: var(--rani); }
.p-venue { display: flex; gap: 12px; max-width: 400px; margin: 0 auto; padding: 16px; border: 1px solid rgba(235, 203, 124, .3); border-radius: 18px;
  background: rgba(255, 255, 255, .06); text-align: left; }
[data-mode="day"] .p-venue { border-color: rgba(107, 23, 48, .15); background: #fff; }
.p-venue svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--gold-2); }
[data-mode="day"] .p-venue svg { color: var(--rani); }
.p-venue b { display: block; font: 600 16.5px/1.4 "Jost", sans-serif; text-wrap: balance; }
.p-venue span { display: block; margin-top: 2px; font-size: 15px; line-height: 1.5; opacity: .85; }
.p-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 400px; margin: 20px auto 0; }
.p-actions .btn { width: 100%; padding: 0 10px; font-size: 14px; }
.cele-skyline { display: block; width: min(100%, 900px); height: auto; margin: 40px auto 0; opacity: .95; }
[data-mode="night"] .cele-skyline { filter: brightness(.55) saturate(.7); }

/* ---------- fun zone ---------- */
.fun { padding: 64px 0 60px; }
.game-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 720px; margin: 0 auto; padding: 0 16px; }
.game-card { position: relative; display: grid; justify-items: center; align-content: start; gap: 4px; min-height: 190px; padding: 14px 10px 16px; overflow: hidden;
  border: 0; border-radius: 22px; background: color-mix(in srgb, var(--g) 12%, #fff); color: var(--ink); text-align: center; cursor: pointer;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--g) 30%, transparent); transition: transform .2s ease; }
.game-card:active { transform: scale(.97); }
.game-card img { width: auto; height: 104px; object-fit: contain; }
.game-card b { margin-top: 4px; font: 600 16px/1.25 "Jost", sans-serif; color: var(--g); }
.game-card small { font-size: 13px; color: var(--muted); }
.game-wide { grid-column: 1 / -1; min-height: 0; grid-template-columns: 90px 1fr; grid-template-rows: auto auto; justify-items: start; align-items: center; text-align: left; }
.game-wide img { grid-row: span 2; height: 80px; }
.emoji-art { display: grid; place-items: center; height: 104px; font-size: 46px; }
.wheel-art { display: block; width: 96px; height: 96px; margin: 4px 0; border-radius: 50%;
  background: conic-gradient(#C2185B 0 45deg, #EE9A1D 0 90deg, #1E63B5 0 135deg, #0F7A5A 0 180deg, #7B2D8E 0 225deg, #E2231A 0 270deg, #F2B705 0 315deg, #6B1730 0);
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--gold); animation: spinSlow 12s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* game sheet */
.sheet { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; background: rgba(28, 10, 14, .55); }
.sheet-panel { display: flex; flex-direction: column; width: min(100%, 560px); max-height: 94vh; border-radius: 26px 26px 0 0; background: var(--ivory);
  animation: sheetUp .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 12px 22px; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font: 600 24px/1.2 "Corm", serif; color: var(--maroon); }
.sheet-close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--cream); color: var(--maroon); cursor: pointer; }
.sheet-close svg { width: 20px; height: 20px; }
.sheet-body { overflow-y: auto; padding: 18px 20px calc(24px + env(safe-area-inset-bottom, 0px)); -webkit-overflow-scrolling: touch; }

.g-progress { height: 6px; margin-bottom: 16px; overflow: hidden; border-radius: 6px; background: var(--line); }
.g-progress i { display: block; height: 100%; background: var(--rani); transition: width .3s; }
.g-q { font: 600 22px/1.3 "Corm", serif; color: var(--ink); }
.g-options { display: grid; gap: 10px; margin-top: 16px; }
.g-opt { min-height: 52px; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); font: 500 16px/1.3 "Jost", sans-serif;
  text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.g-opt.right { border-color: #1E8E5A; background: #E3F5EC; }
.g-opt.wrong { border-color: #C62828; background: #FDECEC; }
.g-meta { margin-top: 10px; color: var(--muted); font-size: 14px; }
.g-result { padding: 10px 0; text-align: center; }
.g-result .big { font: 600 54px/1 "Corm", serif; color: var(--rani); }
.g-result h3 { margin-top: 8px; font: 600 26px "Corm", serif; color: var(--maroon); }
.g-result p { margin-top: 6px; color: var(--muted); }
.g-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }

.poll { padding: 16px 0; border-bottom: 1px solid var(--line); }
.poll:last-child { border-bottom: 0; }
.poll-q { font: 600 19px/1.35 "Corm", serif; }
.poll-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.poll-btn { position: relative; display: grid; justify-items: center; gap: 4px; padding: 10px 6px 12px; overflow: hidden; border: 1.5px solid var(--line); border-radius: 18px;
  background: #fff; color: var(--ink); font: 600 15px "Jost", sans-serif; cursor: pointer; }
.poll-btn img { position: relative; z-index: 1; width: auto; height: 74px; }
.poll-btn span { position: relative; z-index: 1; }
.poll-btn .bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 0; background: color-mix(in srgb, var(--rani) 16%, transparent); transition: height .6s ease; }
.poll-btn.mine { border-color: var(--rani); }
.poll-btn .pct { position: relative; z-index: 1; font: 600 18px "Corm", serif; color: var(--rani); }
.poll-note { margin-top: 8px; color: var(--muted); font-size: 14px; }

.mem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mem-card { aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: pointer; perspective: 600px; }
.mem-card .flip-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .45s ease; }
.mem-card.flipped .flip-inner { transform: rotateY(180deg); }
.mem-card .flip-face { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 14px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.mem-card .flip-back { transform: rotateY(180deg); padding: 8%; }
.mem-card .flip-front { background: var(--maroon); background-image: radial-gradient(circle at 50% 50%, rgba(235, 203, 124, .35) 0 18%, transparent 19%),
  repeating-conic-gradient(rgba(235, 203, 124, .14) 0 15deg, transparent 0 30deg); }
.mem-card .flip-back { overflow: hidden; background: #FBF2E4; box-shadow: inset 0 0 0 2px var(--line); }
.mem-card .flip-back img { width: 100%; height: 100%; object-fit: contain; }
.mem-card.matched .flip-back { box-shadow: inset 0 0 0 3px #1E8E5A; }
.mem-stats { display: flex; justify-content: space-between; margin-bottom: 12px; color: var(--muted); font-size: 15px; }

.emoji-q { padding: 18px 0 6px; font-size: 64px; line-height: 1.1; text-align: center; letter-spacing: .08em; }

.dash-wrap { position: relative; overflow: hidden; border-radius: 18px; background: linear-gradient(#FFE8CC, #FFF6EA); touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.dash-wrap canvas { display: block; width: 100%; height: auto; }
.dash-hud { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; justify-content: space-between; font: 600 15px "Jost", sans-serif; color: var(--maroon); pointer-events: none; }
.dash-overlay { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: grid; place-items: center; align-content: center; gap: 10px; padding: 16px;
  background: rgba(255, 248, 238, .82); text-align: center; }
.dash-overlay h3 { font: 600 26px/1.2 "Corm", serif; color: var(--maroon); }
.dash-overlay p { color: var(--muted); font-size: 15px; }
.dash-help { margin-top: 10px; color: var(--muted); font-size: 14px; text-align: center; }

/* leaderboards under the quiz and Baraat Dash results */
.board { max-width: 380px; margin: 20px auto 0; padding: 14px 16px 10px; border-radius: 18px; background: var(--cream); }
.board h4 { font: 600 20px/1.2 "Corm", serif; color: var(--maroon); text-align: center; }
.board-form { display: flex; gap: 8px; margin-top: 12px; }
.board-form input { flex: 1; min-width: 0; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink);
  font: 400 15px "Jost", sans-serif; }
.board-form input:focus { outline: none; border-color: var(--marigold); box-shadow: 0 0 0 3px rgba(238, 154, 29, .2); }
.board-form .btn { min-height: 46px; padding: 0 16px; }
.board-note { margin-top: 8px; color: var(--muted); font-size: 14px; text-align: center; }
.board-list { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: rank; }
.board-list li { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px dashed var(--line); counter-increment: rank; }
.board-list li:last-child { border-bottom: 0; }
.board-list li::before { content: counter(rank); flex: none; width: 22px; font: 600 15px "Jost", sans-serif; color: var(--marigold); }
.board-list li span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.board-list li b { font: 600 15px "Jost", sans-serif; color: var(--maroon); }
.board-list li.me { border-radius: 10px; background: #FFF6D8; }
.board-list li.empty { justify-content: center; color: var(--muted); }
.board-list li.empty::before { content: none; }

/* shaadi selfie frame */
.selfie-canvas { display: block; width: min(100%, 340px); height: auto; margin: 4px auto 0; border-radius: 14px; box-shadow: 0 12px 28px rgba(59, 31, 36, .22); }
.selfie-note { text-align: center; }

.wheel-box { position: relative; width: min(84vw, 340px); aspect-ratio: 1; margin: 6px auto 0; }
.wheel { position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 50%; box-shadow: 0 0 0 6px #fff, 0 0 0 9px var(--gold), 0 14px 30px rgba(59, 31, 36, .2);
  transition: transform 4.2s cubic-bezier(.12, .7, .1, 1); }
.wheel span { position: absolute; left: 50%; top: 50%; width: 46%; transform-origin: 0 50%; padding-left: 26%; color: #fff; font: 600 11px/1.15 "Jost", sans-serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.wheel-pin { position: absolute; left: 50%; top: -14px; z-index: 2; width: 0; height: 0; margin-left: -14px; border-left: 14px solid transparent; border-right: 14px solid transparent;
  border-top: 26px solid var(--maroon); filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .25)); }
.wheel-hub { position: absolute; left: 50%; top: 50%; z-index: 2; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: var(--ivory);
  box-shadow: 0 0 0 4px var(--gold); display: grid; place-items: center; font: 400 22px "Tiro", serif; color: var(--rani); }
.wheel-result { min-height: 64px; margin-top: 18px; font: 600 21px/1.35 "Corm", serif; color: var(--maroon); text-align: center; }

.dec-text { font: 400 19px/2.1 "Jost", sans-serif; }
.dec-blank { display: inline-block; min-width: 92px; min-height: 36px; margin: 0 2px; padding: 0 12px; border: 1.5px dashed var(--rani); border-radius: 10px; background: #fff;
  color: var(--rani); font: 600 16px/34px "Jost", sans-serif; vertical-align: middle; cursor: pointer; }
.dec-blank.active { border-style: solid; background: color-mix(in srgb, var(--rani) 10%, #fff); }
.dec-blank.done { border: 1.5px solid #1E8E5A; background: #E3F5EC; color: #145A3A; cursor: default; }
.dec-blank.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.dec-tray { display: flex; flex-wrap: wrap; gap: 8px; min-height: 52px; margin-top: 16px; }
.dec-tray button { min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font: 500 15px "Jost", sans-serif; cursor: pointer; }
.dec-tray .btn { border: 0; background: var(--maroon); color: #fff; }
.sq-art { margin: 6px 0 12px; overflow: hidden; border-radius: 16px; }
.sq-art img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.sq-placed { display: grid; gap: 6px; margin: 12px 0 14px; padding: 0 0 0 28px; list-style: none; counter-reset: sq; }
.sq-placed li { position: relative; padding: 9px 12px; border-radius: 12px; background: #E3F5EC; color: #145A3A; font: 500 15px/1.3 "Jost", sans-serif; counter-increment: sq; }
.sq-placed li::before { content: counter(sq); position: absolute; top: 50%; left: -28px; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%;
  background: #1E8E5A; color: #fff; font: 600 12px/20px "Jost", sans-serif; text-align: center; }
.sq-pool { display: grid; gap: 8px; }
.sq-card { min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink);
  font: 500 15.5px/1.3 "Jost", sans-serif; text-align: left; cursor: pointer; }
.sq-card.shake { border-color: #C62828; animation: shake .35s; }

/* ---------- blessings ---------- */
.blessings { padding: 64px 0 50px; background: var(--cream); }
.wall { columns: 2; column-gap: 12px; max-width: 900px; margin: 0 auto; padding: 0 16px; }
.note { position: relative; display: inline-block; width: 100%; break-inside: avoid; margin: 0 0 14px; padding: 28px 14px 12px; border-radius: 6px 6px 16px 6px;
  background: var(--nb, #FFF6D8); box-shadow: 0 6px 14px rgba(59, 31, 36, .1); transform: rotate(var(--r, 0deg)); }
.note::before { content: ""; position: absolute; left: 50%; top: 7px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFD27A, #E8860F); box-shadow: 0 2px 4px rgba(0, 0, 0, .2); }
.note blockquote { margin: 0; font: 400 17px/1.45 "Kalam", cursive; color: #3A2A20; }
.note figcaption { margin-top: 8px; font: 600 13px "Jost", sans-serif; color: var(--maroon); }
.note figcaption small { display: block; font-weight: 400; color: var(--muted); }
.note .tag { position: absolute; right: 8px; top: 6px; font: 600 10px "Jost", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); opacity: .7; }
.note.fresh { animation: pop .6s ease; }
.wall-empty { column-span: all; padding: 10px 0 18px; color: var(--muted); text-align: center; font: italic 500 19px "Corm", serif; }
@keyframes pop { from { transform: scale(.9) rotate(var(--r, 0deg)); opacity: 0; } }
.bless-form { display: grid; gap: 10px; max-width: 560px; margin: 18px auto 0; padding: 0 16px; }
.bless-row { display: grid; gap: 10px; }
.bless-form input, .bless-form textarea, .upload-name input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px;
  background: #fff; color: var(--ink); font: 400 17px/1.4 "Jost", sans-serif; }
.bless-form textarea { resize: vertical; }
.bless-form input:focus, .bless-form textarea:focus, .upload-name input:focus { outline: none; border-color: var(--marigold); box-shadow: 0 0 0 3px rgba(238, 154, 29, .2); }
.form-note { min-height: 24px; color: var(--muted); font-size: 15px; text-align: center; }

/* ---------- guest photos ---------- */
.uploads { padding: 50px 16px 60px; background: var(--cream); }
.upload-card { max-width: 520px; margin: 0 auto; padding: 28px 20px 22px; border: 2px dashed color-mix(in srgb, var(--marigold) 60%, transparent); border-radius: 26px;
  background: var(--ivory); text-align: center; }
.upload-icon { width: 46px; height: 46px; color: var(--marigold); }
.upload-card h2 { margin-top: 6px; font: 600 28px/1.2 "Corm", serif; color: var(--maroon); }
.upload-card > p { margin-top: 6px; color: var(--muted); }
.upload-name { display: block; margin-top: 16px; }
.upload-btn { margin-top: 12px; }
.selfie-pitch { margin: 22px 0 10px; padding-top: 18px; border-top: 1px dashed var(--line); color: var(--muted); }
.upload-list { margin: 14px 0 0; padding: 0; list-style: none; text-align: left; }
.upload-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.upload-list li span:last-child { flex: none; color: var(--muted); }
.upload-list li.ok span:last-child { color: #1E8E5A; }
.upload-list li.err span:last-child { color: #C62828; }

/* ---------- memories ---------- */
.memories { padding: 64px 0 60px; overflow: hidden; }
.moments-label { --c: var(--maroon); max-width: 900px; margin: 26px auto -2px; padding: 0 22px; font-size: 20px; }
/* swipeable rows like the story strips, but photos keep their own shape (clamped between 2:3 and 4:3) */
.moment-strip { max-width: 900px; margin: 8px auto 0; padding: 8px 18px 16px; }
.moment-strip figure { width: min-content; padding: 6px 6px 8px; }
.moment-strip img { width: auto; height: 180px; min-width: 120px; max-width: 240px; aspect-ratio: auto; }
.moment-strip figcaption { margin-top: 6px; font: 400 14px/1.25 "Kalam", cursive; color: #4A3A30; text-align: center; }

/* ---------- swagatakanshi + footer ---------- */
.swagat { padding: 60px 22px; text-align: center; background: var(--ivory); }
.swagat h2 { margin-top: 2px; font: 600 clamp(26px, 7vw, 34px)/1.2 "Corm", serif; color: var(--maroon); }
.family-art { display: block; width: 100%; max-width: 640px; height: auto; margin: 22px auto 8px; border-radius: 18px; box-shadow: 0 10px 24px rgba(59, 31, 36, .12); }
.names { margin: 18px 0 0; padding: 0; list-style: none; }
.names li { padding: 6px 0; font: 500 20px/1.4 "Corm", serif; color: var(--ink); }
.names li + li::before { content: ""; display: block; width: 26px; height: 1px; margin: 0 auto 10px; background: var(--gold); }
.foot { position: relative; background: var(--maroon); color: #FFF1DC; text-align: center; }
.foot-art { display: block; box-sizing: border-box; width: 100%; height: auto; max-height: 560px; padding: 6px 14px 18px; object-fit: contain;
  transform: translateY(-1px); background: var(--ivory); }
.foot-body { padding: 26px 22px calc(110px + env(safe-area-inset-bottom, 0px)); }
.foot-names { font: 400 clamp(34px, 9.6vw, 44px)/1.3 "Parisienne", cursive; color: var(--gold-2); white-space: nowrap; }
.foot-names em { font: italic 500 .5em "Corm", serif; color: #FFF1DC; }
.foot-date { margin-top: 4px; font: 600 12px "Jost", sans-serif; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 241, 220, .8); }
.foot-line { max-width: 30ch; margin: 14px auto 20px; font: italic 500 20px/1.5 "Corm", serif; }
.foot-sign { margin-top: 18px; font: 400 16px "Kalam", cursive; color: var(--gold-2); }

/* ---------- bottom tab bar ---------- */
.tabbar { position: fixed; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr);
  width: min(94vw, 480px); padding: 6px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255, 248, 238, .95);
  box-shadow: 0 10px 30px rgba(59, 31, 36, .22); transform: translateX(-50%); transition: opacity .5s; }
.tabbar a { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 52px; border-radius: 18px; color: var(--muted);
  font: 600 11.5px/1 "Jost", sans-serif; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.tabbar svg { width: 22px; height: 22px; }
.tabbar a.active { background: var(--cream); color: var(--maroon); }

@media (min-width: 760px) {
  .duo-grid { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .knot { flex-direction: column; }
  .knot span { width: 2px; height: 60px; background: repeating-linear-gradient(180deg, #D7263D 0 6px, #F2B705 6px 12px); }
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .game-wide { grid-column: span 3; }
  .wall { columns: 3; }
  .moment-strip img { height: 220px; min-width: 147px; max-width: 293px; }
  .bless-row { grid-template-columns: 1fr 1fr; }
  .sheet { align-items: center; }
  .sheet-panel { border-radius: 26px; }
}

@media (min-width: 900px) {
  .hero { display: grid; grid-template-columns: 1fr minmax(0, 520px); align-items: center; gap: 4vw; min-height: 100vh; padding: 30px 6vw 0; }
  .hero-text { padding: 0 0 70px; }
  .hero-art { align-self: end; margin: 0; }
  .hero-art img {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%), linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(180deg, transparent 0%, #000 22%), linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
    mask-composite: intersect;
  }
}

@media (prefers-reduced-motion: reduce) {
  .knocker, .haveli-flames i, .gate-cta, .ganesha-hint svg, .ganesha-btn::before, .wheel-art, .bfly .wl, .bfly .wr { animation: none !important; }
  .wheel { transition-duration: .01s; }
}
