/* Deepmala (दीपमाला): Diwali on an indigo night. Gold, marigold and clay; Rozha One over Mukta, Kalam for the
   handwritten slip. Opening: five unlit diyas on a stone parapet; each one lit warms the night (--lit 0..1);
   the fifth sets off a phuljhari that writes the title. Then: chitthi -> evening cards -> ladi countdown ->
   mithai-box slip -> taash deck -> passes -> reply -> footer. */

:root {
  --night: #0d0b2b;
  --night-2: #141040;
  --indigo: #1a1650;
  --indigo-2: #26206b;
  --line: #3a3466;
  --gold: #e9b44c;
  --gold-2: #f6d58b;
  --marigold: #f08a1c;
  --sindoor: #c2352b;
  --ivory: #fbf1de;
  --ivory-2: #f2e3c4;
  --ink: #241a12;
  --muted: #b9b2d8;
  --felt: #0f3b2e;

  --f-display: "Rozha One", "Tiro Devanagari Hindi", Georgia, serif;
  --f-body: "Mukta", "Noto Sans Devanagari", system-ui, sans-serif;
  --f-hand: "Kalam", "Mukta", cursive;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --fx-music-bg: #1a1650;
  --fx-music-ring: #e9b44c;
  --fx-music-ink: #f6d58b;
  --fx-bg: #fbf1de;
}

html { scroll-behavior: smooth; }
html.shut, html.shut body { overflow: hidden; }
body {
  background: var(--night);
  color: var(--ivory);
  font: 400 18px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { background: var(--gold); color: var(--night); }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 4px; }
[lang="hi"] { font-family: var(--f-display); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 13px/1 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.kicker::before, .kicker::after { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.kicker[lang="hi"] { font: 400 20px/1 var(--f-display); letter-spacing: .04em; text-transform: none; }
.sec__title {
  margin: 14px 0 0; font: 400 clamp(34px, 9.4vw, 62px)/1.05 var(--f-display); color: var(--gold-2);
  text-wrap: balance;
}
.sec__title em { font-style: normal; color: var(--marigold); }
.sec__dek { margin: 14px auto 0; max-width: 30em; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px;
  border: 1.5px solid var(--gold); border-radius: 999px; color: var(--gold-2); text-decoration: none;
  font: 600 15px/1.1 var(--f-body); letter-spacing: .04em; transition: background .25s, color .25s, transform .25s;
}
.btn:hover { background: rgba(233, 180, 76, .12); }
.btn:active { transform: scale(.97); }
.btn--solid { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--night); border-color: transparent; }
.btn--solid:hover { background: linear-gradient(180deg, #fff0c4, var(--gold-2)); }
.btn--wide { width: 100%; max-width: 360px; }

/* =================================================================== OPENING */

.gate {
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: grid; grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(130% 60% at 50% 104%, rgba(240, 138, 28, calc(.06 + var(--lit) * .42)), transparent 62%),
    radial-gradient(80% 40% at 50% 0%, rgba(38, 32, 107, .9), transparent 70%),
    linear-gradient(180deg, #07061c, var(--night-2) 52%, #231a52);
  transition: background .8s;
}
.sky { position: absolute; inset: 0 0 30% 0; z-index: -1; pointer-events: none; }
.sky i {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%;
  background: #fff8e0; opacity: .5; animation: twinkle var(--t) ease-in-out var(--d) infinite alternate;
}
@keyframes twinkle { to { opacity: .1; scale: .6; } }

.gate__toran { position: relative; z-index: 2; width: min(100%, 980px); margin: 0 auto; height: clamp(44px, 12vw, 96px); }
.toran { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45)); }

.kandil { position: absolute; top: clamp(18px, 4vw, 40px); z-index: 1; width: clamp(46px, 13vw, 92px); transform-origin: 50% 0; animation: swing 5.5s ease-in-out infinite alternate; }
.kandil--l { left: clamp(6px, 4vw, 12%); }
.kandil--r { right: clamp(6px, 4vw, 12%); animation-duration: 6.4s; animation-delay: -2s; }
.kandil__svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 calc(6px + var(--lit, 0) * 18px) rgba(255, 170, 60, calc(.25 + var(--lit, 0) * .5))); }
@keyframes swing { from { rotate: -4deg; } to { rotate: 4deg; } }

/* --- the hero, hidden until the sparkler writes it --- */
.hero {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 20px 12px; text-align: center; max-width: 820px; margin: 0 auto; width: 100%;
}
.hero__to { font: 400 20px/1.2 var(--f-hand); color: var(--gold-2); margin-bottom: 6px; }
.hero__greet { font: 600 13px/1 var(--f-body); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.hero__deva {
  margin-top: 10px; font-size: clamp(44px, 14vw, 92px); line-height: 1.15; color: var(--gold-2);
  text-shadow: 0 0 calc(var(--lit) * 30px) rgba(255, 190, 80, .55);
  opacity: calc(.18 + var(--lit) * .82); transition: opacity .6s;
}
.hero__title-wrap { position: relative; width: 100%; margin-top: 6px; }
.hero__title {
  margin: 0; font: 400 clamp(38px, 11.5vw, 84px)/1.04 var(--f-display); color: var(--ivory); text-wrap: balance;
  text-shadow: 0 0 22px rgba(255, 200, 110, .35);
  clip-path: inset(-20% calc((1 - var(--wr, 0)) * 100%) -20% 0);
}
.sparks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }
.hero__hosts { margin-top: 14px; font-size: 19px; color: var(--ivory-2); }
.hero__hosts span { display: block; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.hero__when { margin-top: 12px; font: 600 17px/1.35 var(--f-body); color: var(--gold-2); }
.hero__where { margin-top: 2px; font-size: 16px; color: var(--muted); max-width: 26em; }
.hero__down {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 18px; min-height: 44px;
  font: 600 12px/1 var(--f-body); letter-spacing: .24em; text-transform: uppercase; text-decoration: none; color: var(--gold);
}
.hero__down i { width: 12px; height: 12px; border-right: 1.5px solid; border-bottom: 1.5px solid; rotate: 45deg; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { translate: 0 6px; } }

.hero > :is(.hero__hosts, .hero__when, .hero__where, .hero__down) { opacity: 0; translate: 0 12px; }
.gate[data-phase="open"] .hero > :is(.hero__hosts, .hero__when, .hero__where, .hero__down) {
  opacity: 1; translate: 0 0; transition: opacity 1s var(--ease), translate 1s var(--ease);
}
.gate[data-phase="open"] .hero__when { transition-delay: .2s !important; }
.gate[data-phase="open"] .hero__where { transition-delay: .35s !important; }
.gate[data-phase="open"] .hero__down { transition-delay: .7s !important; }
.gate[data-phase="open"] { --wr: 1; }
.gate.instant * { transition: none !important; }

/* --- the prompt, over the hero until the diyas are lit --- */
.gate__prompt {
  position: absolute; left: 0; right: 0; bottom: calc(clamp(150px, 34vw, 240px) + 12px); z-index: 3;
  text-align: center; pointer-events: none; transition: opacity .5s;
}
.prompt__deva { font-size: clamp(26px, 7vw, 38px); color: var(--gold-2); line-height: 1.2; }
.prompt__line { font-size: 17px; color: var(--ivory-2); }
.prompt__count { margin-top: 4px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.prompt__count b { color: var(--gold); font-weight: 700; }
.gate:not([data-phase="idle"]) .gate__prompt { opacity: 0; }

/* --- the parapet and the diyas --- */
.ledge { position: relative; z-index: 2; height: clamp(150px, 34vw, 240px); }
.ledge__stone {
  position: absolute; left: 0; right: 0; top: 58%; height: 26px; z-index: 1;
  background: linear-gradient(180deg, #4b3b6e, #2a2150 40%, #1a1438);
  box-shadow: 0 -1px 0 rgba(246, 213, 139, calc(.1 + var(--lit) * .35)), 0 14px 30px rgba(0, 0, 0, .5);
}
.ledge__floor {
  position: absolute; left: 50%; top: calc(58% + 26px); bottom: 0; width: max(100%, 640px); max-width: 1200px; translate: -50% 0; z-index: 0;
  opacity: calc(.35 + var(--lit) * .6); transition: opacity .8s;
  -webkit-mask: linear-gradient(180deg, #000 40%, transparent); mask: linear-gradient(180deg, #000 40%, transparent);
}
.floor__svg { display: block; width: 100%; height: 100%; }
.diyas {
  position: absolute; left: 0; right: 0; bottom: calc(42% - 4px); z-index: 2;
  display: flex; justify-content: center; gap: clamp(2px, 1.6vw, 28px); padding: 0 8px;
}
.diya {
  position: relative; width: clamp(60px, 17vw, 116px); aspect-ratio: 1; padding: 0; border: 0; background: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent; border-radius: 50%;
}
.diya__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.diya__glow { opacity: 0; transition: opacity .9s ease; }
.diya__flame { transform-box: fill-box; transform-origin: 50% 100%; opacity: 0; transform: scale(.1, .05); transition: opacity .25s, transform .6s cubic-bezier(.3, 1.6, .5, 1); }
.diya__oil { opacity: .45; transition: opacity .8s; }
.diya.is-lit .diya__glow { opacity: 1; }
.diya.is-lit .diya__flame { opacity: 1; transform: none; animation: flicker 1.6s ease-in-out .6s infinite alternate; }
.diya.is-lit:nth-child(2n) .diya__flame { animation-duration: 1.3s; }
.diya.is-lit:nth-child(3n) .diya__flame { animation-duration: 1.9s; }
.diya.is-lit .diya__oil { opacity: 1; }
@keyframes flicker {
  0% { transform: scale(1, 1) skewX(0); }
  30% { transform: scale(.94, 1.06) skewX(2deg); }
  60% { transform: scale(1.04, .96) skewX(-2.5deg); }
  100% { transform: scale(.97, 1.04) skewX(1deg); }
}
.diya--still .diya__flame { transition: none; }
.gate[data-phase="idle"] .diya.is-next::after {
  content: ""; position: absolute; left: 50%; top: 26%; width: 34%; aspect-ratio: 1; translate: -50% 0;
  border-radius: 50%; border: 1.5px solid var(--gold-2); opacity: 0; animation: beckon 1.8s ease-out infinite;
}
@keyframes beckon { 0% { opacity: .9; scale: .5; } 100% { opacity: 0; scale: 1.8; } }
.gate:not([data-phase="idle"]) .diya { cursor: default; }

.gate__skip {
  position: absolute; left: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 5; min-height: 36px;
  padding: 8px 14px; border: 1px solid rgba(246, 213, 139, .45); border-radius: 999px; background: rgba(13, 11, 43, .6);
  font: 600 12px/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); cursor: pointer;
}
.gate__skip::before { content: ""; position: absolute; inset: -6px; }
.gate[data-phase="open"] .gate__skip, .gate[data-phase="sparkler"] .gate__skip { display: none; }
html:not(.js) .gate { --lit: 1; --wr: 1; }
html:not(.js) :is(.gate__prompt, .gate__skip) { display: none; }
html:not(.js) .hero > * { opacity: 1 !important; translate: none !important; }

/* =================================================================== SECTIONS */

.sec { position: relative; padding: clamp(72px, 14vw, 128px) 16px; text-align: center; }
.sec__head { max-width: 640px; margin: 0 auto clamp(36px, 7vw, 56px); }

/* --- the chitthi --- */
.sec--note { background: linear-gradient(180deg, #231a52, var(--night) 60%); }
.chitthi {
  position: relative; max-width: 560px; margin: 0 auto; padding: clamp(36px, 8vw, 56px) clamp(22px, 6vw, 48px);
  background:
    radial-gradient(circle at 50% 0, rgba(240, 138, 28, .12), transparent 60%),
    var(--ivory);
  color: var(--ink); border-radius: 4px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), inset 0 0 0 6px var(--ivory), inset 0 0 0 7.5px var(--gold);
}
.chitthi .kicker { color: var(--sindoor); }
.chitthi .sec__title { color: var(--indigo); }
.chitthi .sec__title em { color: var(--sindoor); }
.chitthi__msg { margin-top: 20px; font-size: 20px; line-height: 1.55; color: #3d2f22; text-wrap: pretty; }
.chitthi__sign { margin-top: 24px; font: 400 18px/1.4 var(--f-body); color: #6b5640; }
.chitthi__sign span { font: 700 24px/1.3 var(--f-hand); color: var(--indigo); }
.chitthi__corner {
  position: absolute; width: 54px; height: 54px; pointer-events: none;
  background:
    radial-gradient(circle at 30% 30%, var(--marigold) 0 5px, transparent 6px),
    radial-gradient(circle at 30% 30%, transparent 0 11px, var(--gold) 11.5px 12.5px, transparent 13px);
}
.chitthi__corner--tl { left: 4px; top: 4px; }
.chitthi__corner--br { right: 4px; bottom: 4px; rotate: 180deg; }

/* --- the evening --- */
.sec--night { background: var(--night); }
.evs { display: grid; gap: 22px; max-width: 760px; margin: 0 auto; }
.ev {
  display: grid; grid-template-columns: 88px 1fr; text-align: left; overflow: hidden; border-radius: 16px;
  background: linear-gradient(160deg, var(--indigo-2), var(--indigo) 60%);
  box-shadow: 0 0 0 1px rgba(233, 180, 76, .5), 0 24px 50px -24px rgba(0, 0, 0, .8);
  transition-delay: calc(var(--i) * .12s);
}
.ev__date {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 18px 6px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--night);
}
.ev__wd, .ev__mon { font: 700 12px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; }
.ev__day { font: 400 46px/1 var(--f-display); }
.ev__body { padding: 20px 18px 22px; min-width: 0; }
.ev__hi { font-size: 22px; color: var(--marigold); line-height: 1.2; }
.ev__name { margin: 2px 0 12px; font: 400 clamp(26px, 7vw, 36px)/1.1 var(--f-display); color: var(--gold-2); }
.ev__rows { margin: 0; display: grid; gap: 10px; }
.ev__rows div { display: grid; gap: 1px; }
.ev__rows dt { font: 600 11px/1.2 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.ev__rows dd { margin: 0; font-size: 17px; line-height: 1.45; color: var(--ivory); overflow-wrap: anywhere; }
.ev__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ev__links .btn { min-height: 44px; padding: 8px 14px; font-size: 14px; }
@media (max-width: 400px) {
  .ev { grid-template-columns: 1fr; }
  .ev__date { flex-direction: row; gap: 10px; padding: 12px; }
  .ev__day { font-size: 34px; }
}

/* --- the ladi and the countdown --- */
.sec--count { background: radial-gradient(90% 60% at 50% 40%, #1d1756, var(--night) 70%); padding-top: 120px; }
.ladi { position: absolute; left: 0; right: 0; top: 24px; height: 70px; max-width: 1100px; margin: 0 auto; }
.ladi svg { position: absolute; inset: 0; width: 100%; height: 60px; }
.ladi i {
  position: absolute; left: var(--x); top: var(--y); width: 10px; height: 15px; margin-left: -5px;
  border-radius: 50% 50% 46% 46% / 40% 40% 60% 60%; background: var(--c);
  box-shadow: 0 0 10px 2px var(--c); animation: chase 2.7s ease-in-out var(--d) infinite;
}
.ladi i::before { content: ""; position: absolute; left: 2px; top: -4px; width: 6px; height: 5px; background: #2b2550; border-radius: 1px; }
@keyframes chase { 0%, 100% { opacity: 1; } 50% { opacity: .25; box-shadow: none; } }
.count-wrap { max-width: 640px; margin: 0 auto; }
.count { display: flex; justify-content: center; gap: clamp(8px, 3vw, 22px); margin-top: 30px; }
.count span {
  display: grid; justify-items: center; gap: 6px; width: clamp(70px, 20vw, 112px); padding: 16px 4px 12px;
  border-radius: 14px; border: 1px solid rgba(233, 180, 76, .4); background: rgba(26, 22, 80, .7);
  font: 600 11px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.count b { font: 400 clamp(34px, 10vw, 56px)/1 var(--f-display); color: var(--gold-2); letter-spacing: 0; }
.count__done { margin-top: 24px; font: 400 26px/1.3 var(--f-display); color: var(--gold-2); }
.count__date { margin-top: 22px; color: var(--ivory-2); }

/* --- the mithai box and its slip --- */
.sec--bring { background: var(--night); }
.box { position: relative; max-width: 520px; margin: 0 auto; padding-top: 70px; }
.box__lid {
  position: absolute; left: 50%; top: 0; width: 82%; height: 92px; translate: -50% 0; rotate: -4deg; z-index: 0;
  display: grid; place-items: center; border-radius: 8px;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(246, 213, 139, .22) 14px 15px),
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(246, 213, 139, .22) 14px 15px),
    linear-gradient(180deg, #d63a6e, #a3184a);
  box-shadow: inset 0 0 0 4px #a3184a, inset 0 0 0 5.5px var(--gold), 0 18px 30px -12px rgba(0, 0, 0, .6);
}
.box__lid span { font: 400 30px/1 var(--f-display); color: var(--gold-2); translate: 0 -14px; }
.box__slip {
  position: relative; z-index: 1; padding: 34px 24px 30px; rotate: 1.2deg;
  background: linear-gradient(180deg, #fffaf0, var(--ivory)); color: var(--ink); border-radius: 3px;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .7);
}
.box__slip::before { content: ""; position: absolute; left: 50%; top: -10px; width: 70px; height: 22px; translate: -50% 0; rotate: -3deg; background: rgba(246, 213, 139, .75); }
.box__slip .kicker { color: var(--sindoor); }
.box__bring { margin-top: 14px; font: 700 clamp(24px, 6.6vw, 32px)/1.3 var(--f-hand); color: var(--indigo); text-wrap: balance; }
.box__dress { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: 16px; }
.box__dress span { font: 600 11px/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: #8a6d4c; }
.box__dress em { font-style: normal; padding: 6px 12px; border-radius: 999px; background: var(--indigo); color: var(--gold-2); }

/* --- taash on the felt --- */
.sec--taash {
  background:
    radial-gradient(70% 60% at 50% 55%, rgba(255, 255, 255, .07), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 .1 0 0 0 0 .05 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    var(--felt);
  box-shadow: inset 0 0 0 10px #4a2a14, inset 0 0 0 12px var(--gold), inset 0 30px 60px rgba(0, 0, 0, .4);
}
.sec--taash .sec__dek { color: #cfe3d8; }
.deck { position: relative; display: flex; justify-content: center; height: clamp(190px, 52vw, 280px); max-width: 640px; margin: 60px auto 0; perspective: 1200px; }
.card {
  --w: clamp(96px, 27vw, 150px);
  position: absolute; left: 50%; top: 0; width: var(--w); aspect-ratio: 5 / 7; margin-left: calc(var(--w) / -2);
  padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 50% 120%;
  rotate: calc((var(--i) - 2) * 11deg); translate: calc((var(--i) - 2) * 22%) calc(((var(--i) - 2) * (var(--i) - 2)) * 3px);
  transition: rotate .5s var(--ease), translate .5s var(--ease), scale .5s var(--ease), z-index 0s .25s;
  -webkit-tap-highlight-color: transparent;
}
.card:hover { translate: calc((var(--i) - 2) * 22%) calc(((var(--i) - 2) * (var(--i) - 2)) * 3px - 10px); }
.card__in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.card__back, .card__face { position: absolute; inset: 0; border-radius: 8px; -webkit-backface-visibility: hidden; backface-visibility: hidden; overflow: hidden; box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .7); }
.card__back-svg { display: block; width: 100%; height: 100%; }
.card__face {
  transform: rotateY(180deg); background: #fffdf6; color: #161616;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 8px; text-align: center;
  box-shadow: inset 0 0 0 1px #e4d8bd, 0 10px 22px -8px rgba(0, 0, 0, .7);
}
.card__face--red { color: #b3202a; }
.card__corner { position: absolute; left: 7px; top: 6px; display: grid; justify-items: center; font: 400 18px/1 var(--f-display); }
.card__corner i { font-style: normal; font-size: 14px; }
.card__pip { font-size: clamp(30px, 9vw, 46px); line-height: 1; }
.card__luck { margin-top: 6px; font: 700 clamp(11px, 3.1vw, 14px)/1.3 var(--f-hand); color: #2a2340; }
.card.is-drawn { z-index: 6; rotate: 0deg; translate: 0 6px; scale: 1.3; transition: rotate .6s var(--ease), translate .6s var(--ease), scale .6s var(--ease), z-index 0s; }
.card.is-drawn .card__in { transform: rotateY(180deg); }
.deck.has-drawn .card:not(.is-drawn) { scale: .9; filter: brightness(.7); }
.deck__hint { margin-top: 40px; font: 400 17px/1.4 var(--f-hand); color: #cfe3d8; }
@media (min-width: 700px) { .card.is-drawn { scale: 1.25; } }

/* --- passes --- */
.sec--passes { background: linear-gradient(180deg, var(--night), #1b1450); }
.passes { list-style: none; margin: 0 auto 28px; padding: 0; max-width: 560px; display: grid; gap: 12px; }
.pass {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 14px; padding: 16px 18px; text-align: left;
  border-radius: 12px; background: var(--ivory); color: var(--ink);
  -webkit-mask: radial-gradient(circle 9px at 0 50%, transparent 98%, #000) , radial-gradient(circle 9px at 100% 50%, transparent 98%, #000);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.pass__name { font: 700 18px/1.25 var(--f-body); grid-column: 1; }
.pass__note { grid-column: 1; font-size: 15px; color: #6b5640; }
.pass__price { grid-column: 2; grid-row: 1 / span 2; font: 400 26px/1 var(--f-display); color: var(--sindoor); }

/* --- gallery --- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; max-width: 900px; margin: 0 auto; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }

/* --- reply --- */
.sec--reply { background: radial-gradient(90% 70% at 50% 100%, rgba(240, 138, 28, .25), transparent 70%), var(--night); padding-bottom: 96px; }
.reply { max-width: 560px; margin: 0 auto; }
.reply__diyas { display: flex; justify-content: center; gap: 4px; margin-bottom: 18px; }
.reply__diyas .diya { width: 72px; cursor: default; }
.reply__ask { margin-top: 12px; color: var(--ivory-2); }
.reply__btns { display: grid; justify-items: center; gap: 12px; margin-top: 28px; }
.reply__tag { margin-top: 26px; font: 400 24px/1 var(--f-display); color: var(--gold); }

/* --- footer --- */
.foot {
  padding: 56px 16px calc(96px + env(safe-area-inset-bottom)); text-align: center; color: var(--muted);
  border-top: 1px solid var(--line); background: #08071d; font-size: 15px;
}
.foot__greet { font: 600 12px/1 var(--f-body); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.foot__title { margin-top: 10px; font: 400 30px/1.15 var(--f-display); color: var(--gold-2); }
.foot__date { margin-top: 6px; letter-spacing: .3em; }
.foot__cal { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.foot__cal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold-2); }
.foot__music, .foot__credit { margin-top: 8px; font-size: 14px; }
.up { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; color: var(--gold); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }

/* =================================================================== OG CARD */

.ogcard {
  flex-direction: column; align-items: center; color: var(--ivory); text-align: center;
  background:
    radial-gradient(90% 60% at 50% 105%, rgba(240, 138, 28, .5), transparent 65%),
    linear-gradient(180deg, #07061c, var(--night-2) 55%, #231a52);
}
.og__sky { position: absolute; inset: 0; background-image: radial-gradient(1.6px 1.6px at 12% 30%, #fff8e0, transparent), radial-gradient(1.4px 1.4px at 82% 22%, #fff8e0, transparent), radial-gradient(1.2px 1.2px at 64% 40%, #fff8e0, transparent), radial-gradient(1.6px 1.6px at 30% 16%, #fff8e0, transparent), radial-gradient(1.2px 1.2px at 92% 44%, #fff8e0, transparent); opacity: .7; }
.og__toran { position: relative; width: 1240px; margin-top: -4px; }
.og__text { position: relative; margin-top: 18px; }
.og__greet { font: 600 22px/1 var(--f-body); letter-spacing: .34em; text-transform: uppercase; color: var(--gold); }
.og__deva { margin-top: 10px; font-size: 64px; line-height: 1.2; color: var(--gold-2); }
.og__title { margin-top: 4px; font: 400 100px/1 var(--f-display); color: var(--ivory); text-shadow: 0 0 30px rgba(255, 200, 110, .45); }
.og__date { margin-top: 20px; font: 600 32px/1.2 var(--f-body); color: var(--gold-2); }
.og__venue { margin-top: 6px; font: 400 24px/1.2 var(--f-body); color: var(--muted); }
.og__diyas { position: absolute; bottom: -6px; left: 0; right: 0; display: flex; justify-content: center; gap: 30px; }
.og__diyas .diya { width: 120px; }

/* =================================================================== WIDE SCREENS */

@media (min-width: 900px) {
  .sec { padding-inline: 32px; }
  .hero__deva { font-size: 96px; }
}

/* reduced motion: core.css stops the animations; make sure the lit end state still reads */
@media (prefers-reduced-motion: reduce) {
  .diya.is-lit .diya__flame { transform: none; }
  .sky i { opacity: .4; }
}
