/* =====================================================================
   DEEPAVALI — components & sections. Tokens live in tokens.css.
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--c-night);
  color: var(--text);
  font-family: var(--f-serif);
  font-size: var(--t-md);
  font-weight: 500;
  line-height: var(--lh-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-gated { overflow: hidden; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: var(--c-gold-light); }
button, input { font: inherit; color: inherit; }
::selection { background: var(--c-saffron); color: var(--c-night); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.deva { font-family: var(--f-deva); font-weight: 400; letter-spacing: 0.02em; }
.deva-inline { font-family: var(--f-deva-text); font-style: normal; color: var(--c-marigold); letter-spacing: 0; text-transform: none; }
em { font-style: italic; color: var(--c-gold-light); }
strong { color: var(--c-gold-light); font-weight: 500; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.narrow { max-width: var(--measure); margin-inline: auto; }
.center { text-align: center; }

/* ---------- Typography components ---------- */
.eyebrow {
  font-family: var(--f-display);
  font-size: var(--t-xs);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--c-marigold);
  margin: 0 0 var(--s-4);
}
.eyebrow .deva-inline { letter-spacing: 0.04em; font-size: 1.1em; }
.section-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--t-2xl);
  line-height: 1.1;
  margin: 0 0 var(--s-5);
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.section-title em { font-family: var(--f-serif); font-weight: 500; font-size: 1.08em; letter-spacing: 0; }
.section-title .deva { color: var(--c-marigold); font-size: 0.9em; }
.lede.narrow { margin-inline: auto; }
.lede { font-size: var(--t-lg); color: var(--text-soft); line-height: 1.5; text-wrap: pretty; margin: 0 0 var(--s-4); }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 0.85em; --pad-x: 1.6em;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: var(--pad-y) var(--pad-x);
  min-height: 44px;
  border-radius: var(--r-pill);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--t-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--d-fast) var(--ease-out), box-shadow var(--d-base) var(--ease-out), background-color var(--d-base), color var(--d-base);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn--gold {
  background: var(--gold-gradient);
  background-size: 220% 100%;
  background-position: 30% 0;
  color: #2a1204;
  box-shadow: var(--glow-2);
  transition: background-position var(--d-slow) var(--ease-out), transform var(--d-fast) var(--ease-out), box-shadow var(--d-base);
}
.btn--gold:hover { background-position: 90% 0; box-shadow: var(--glow-3); }
.btn--ghost { background: rgba(255, 244, 220, 0.04); border-color: var(--line-strong); color: var(--c-gold-light); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(245, 199, 106, 0.12); border-color: var(--c-gold); }
.btn--sm { --pad-y: 0.6em; --pad-x: 1.2em; font-size: var(--t-xs); }
.btn--lg { --pad-y: 1.1em; --pad-x: 2.4em; font-size: var(--t-md); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.chip {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.45em 1.1em;
  border-radius: var(--r-pill);
  border: var(--b-hair);
  background: var(--surface);
  backdrop-filter: blur(8px);
  font-family: var(--f-display);
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold-light);
}
.chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c-marigold); box-shadow: 0 0 10px var(--c-saffron); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

/* ---------- Diya (shared component) ---------- */
.diya { display: inline-block; width: 64px; aspect-ratio: 1; position: relative; }
.diya svg { width: 100%; height: 100%; overflow: visible; }
.diya--md { width: 88px; }
.diya--xl { width: min(240px, 52vw); }
.diya .d-halo { opacity: 0; transform-origin: 60px 52px; transform: scale(0.4); transition: opacity var(--d-slow) var(--ease-out), transform var(--d-slow) var(--ease-out); }
.diya .d-flame { opacity: 0; transform-origin: 60px 64px; transform: scale(0.1); transition: opacity var(--d-base) var(--ease-out), transform var(--d-base) var(--ease-spring); }
.diya.is-lit .d-halo { opacity: 1; transform: scale(1); animation: halo 3.2s ease-in-out infinite; }
.diya.is-lit .d-flame { opacity: 1; transform: scale(1); }
.diya.is-lit .d-flame-inner { transform-origin: 60px 64px; animation: flicker 1.6s ease-in-out infinite; animation-delay: var(--fd, 0s); }
@keyframes flicker {
  0%, 100% { transform: scale(1, 1) skewX(0deg); }
  20% { transform: scale(0.96, 1.05) skewX(2deg); }
  45% { transform: scale(1.03, 0.95) skewX(-2deg); }
  70% { transform: scale(0.98, 1.06) skewX(1deg); }
}
@keyframes halo { 50% { opacity: 0.78; transform: scale(0.94); } }

/* ---------- Gate ---------- */
.gate {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 60%, #1a0b22 0%, #07040f 60%, #030208 100%);
  transition: opacity var(--d-cinema) var(--ease-in-out), visibility 0s linear var(--d-cinema);
}
.gate.is-open { opacity: 0; visibility: hidden; pointer-events: none; }
.gate__inner { position: relative; z-index: 2; text-align: center; padding: var(--gutter); display: grid; justify-items: center; gap: var(--s-4); }
.gate__for { font-family: var(--f-serif); font-style: italic; font-size: var(--t-xl); color: var(--c-gold-light); margin: 0; line-height: 1.25; text-wrap: balance; }
.gate__for small { display: block; font-size: 0.6em; color: var(--text-soft); font-style: normal; font-family: var(--f-display); letter-spacing: 0.2em; text-transform: uppercase; margin-top: 0.6em; }
.gate__diya:focus-visible { outline: none; box-shadow: 0 0 0 1px rgba(255, 182, 39, 0.35), 0 0 60px rgba(255, 150, 40, 0.18); }
.gate__diya { background: none; border: 0; padding: var(--s-4); cursor: pointer; border-radius: 50%; animation: float 4s ease-in-out infinite; }
.gate__diya:hover .d-clay { filter: brightness(1.2); }
@keyframes float { 50% { transform: translateY(-8px); } }
.gate__hint { margin: 0; display: grid; gap: 0.2em; color: var(--text-soft); }
.gate__hint .deva { font-size: var(--t-xl); color: var(--c-marigold); }
.gate__hint span:last-child { font-family: var(--f-display); font-size: var(--t-xs); letter-spacing: var(--track-label); text-transform: uppercase; }
.gate__quiet { margin-top: var(--s-5); background: none; border: 0; color: var(--text-faint); font-family: var(--f-ui); font-size: var(--t-xs); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: var(--s-3); }
.gate__bloom {
  position: absolute; left: 50%; top: 50%; width: 30vmax; height: 30vmax; margin: -15vmax 0 0 -15vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 150, 0.95) 0%, rgba(255, 150, 50, 0.55) 30%, rgba(255, 100, 30, 0) 70%);
  opacity: 0; transform: scale(0.1); pointer-events: none;
}
.gate.is-lighting .gate__bloom { animation: bloom 2.4s var(--ease-in-out) forwards; }
.gate.is-lighting .gate__hint, .gate.is-lighting .gate__quiet, .gate.is-lighting .gate__for { opacity: 0; transition: opacity var(--d-slow); }
@keyframes bloom { 0% { opacity: 0; transform: scale(0.1); } 45% { opacity: 1; } 100% { opacity: 0; transform: scale(5); } }

/* ---------- Top bar & sound ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-3) var(--gutter);
  padding-top: max(var(--s-3), env(safe-area-inset-top));
  transition: background-color var(--d-base), backdrop-filter var(--d-base), transform var(--d-base) var(--ease-out);
}
.topbar.is-solid { background: rgba(7, 4, 15, 0.72); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.topbar__mark { display: flex; align-items: baseline; gap: 0.5em; text-decoration: none; color: var(--c-gold-light); }
.topbar__mark .deva { font-size: 1.4rem; color: var(--c-marigold); }
.topbar__mark span:last-child { font-family: var(--f-display); font-size: var(--t-xs); letter-spacing: 0.2em; }
.topbar__nav { display: flex; gap: var(--s-5); }
.topbar__nav a { font-family: var(--f-display); font-size: var(--t-xs); letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; color: var(--text-soft); padding: var(--s-2) 0; transition: color var(--d-fast); }
.topbar__nav a:hover { color: var(--c-gold-light); }
@media (max-width: 860px) { .topbar__nav { display: none; } }
.sound {
  display: inline-flex; align-items: center; gap: 0.6em;
  min-height: 40px; padding: 0.4em 1em;
  border-radius: var(--r-pill); border: var(--b-hair); background: var(--surface); backdrop-filter: blur(8px);
  font-family: var(--f-display); font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-gold-light);
  cursor: pointer;
}
.sound__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.sound__bars i { width: 3px; height: 30%; background: var(--c-marigold); border-radius: 2px; }
.sound[aria-pressed='true'] .sound__bars i { animation: bars 1s ease-in-out infinite; }
.sound[aria-pressed='true'] .sound__bars i:nth-child(2) { animation-delay: -0.3s; }
.sound[aria-pressed='true'] .sound__bars i:nth-child(3) { animation-delay: -0.6s; }
.sound[aria-pressed='true'] .sound__bars i:nth-child(4) { animation-delay: -0.15s; }
@keyframes bars { 0%, 100% { height: 25%; } 50% { height: 100%; } }

/* ---------- Sky overlay (sparkler + fireworks) ---------- */
.sky { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 40; pointer-events: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  overflow: hidden; isolation: isolate;
  cursor: crosshair;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; background: var(--c-night) url('../media/hero-poster.jpg') center / cover; }
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 42% at 50% 44%, rgba(7, 4, 15, 0.6) 0%, rgba(7, 4, 15, 0.2) 70%, rgba(7, 4, 15, 0) 100%),
    linear-gradient(to bottom, rgba(7, 4, 15, 0.5) 0%, rgba(7, 4, 15, 0) 22%, rgba(7, 4, 15, 0) 70%, var(--c-night) 100%);
}
.hero__content { padding: var(--s-8) var(--gutter) min(22vh, 12rem); display: grid; justify-items: center; gap: var(--s-3); max-width: 64rem; }
.hero__dear { font-family: var(--f-serif); font-style: italic; font-size: var(--t-xl); color: var(--c-gold-light); margin: 0; text-shadow: 0 2px 12px #000; }
.hero__deva { margin: 0; font-size: clamp(1.3rem, 3vw, 2rem); color: var(--c-marigold); text-shadow: 0 0 20px rgba(255, 150, 40, 0.7); }
.hero__title { margin: 0; font-family: var(--f-display); font-weight: 700; line-height: 0.92; text-transform: uppercase; letter-spacing: 0.02em; }
.hero__line { display: block; font-size: calc(var(--t-hero) * 0.62); }
.hero__line--big { font-size: var(--t-hero); }
.hero__line .ch {
  display: inline-block;
  background: var(--gold-gradient);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(255, 160, 50, 0.45));
  animation: shine 7s linear infinite;
  animation-delay: calc(var(--i) * -0.12s);
  opacity: 0; transform: translateY(0.4em) scale(0.9);
}
.is-revealed .hero__line .ch { opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-spring); transition-delay: calc(0.35s + var(--i) * 0.07s); }
@keyframes shine { from { background-position: 150% 0; } to { background-position: -150% 0; } }
.hero__tag { margin: var(--s-3) 0 0; font-style: italic; font-size: var(--t-xl); color: var(--c-cream); text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9); max-width: 34ch; text-wrap: balance; line-height: 1.25; }
.hero__from { margin: 0; text-shadow: 0 1px 3px #000, 0 0 14px #000, 0 0 24px rgba(0,0,0,0.8); font-family: var(--f-display); font-size: var(--t-sm); letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-gold); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-4); }
.hero [data-fade] { opacity: 0; transform: translateY(14px); }
.hero.is-revealed [data-fade] { opacity: 1; transform: none; transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: var(--delay, 1.2s); }
.hero__hint { position: absolute; right: var(--gutter); bottom: var(--s-5); margin: 0; font-family: var(--f-display); font-size: var(--t-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); }
@media (hover: none) { .hero__hint { display: none; } }
.motion-toggle { position: absolute; left: var(--gutter); bottom: var(--s-5); min-height: 36px; padding: 0.3em 0.9em; border-radius: var(--r-pill); border: var(--b-hair); background: var(--surface); color: var(--text-faint); font-family: var(--f-display); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; }
.motion-toggle:hover { color: var(--c-gold-light); }
.scroll-cue { position: absolute; left: 50%; bottom: var(--s-5); width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid var(--line-strong); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--c-marigold); animation: cue 1.8s var(--ease-in-out) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: var(--s-9) 0; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity var(--d-slow) var(--ease-out), transform var(--d-slow) var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Meaning */
.meaning { background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(74, 16, 36, 0.45), transparent 70%); }
.avali { display: flex; justify-content: center; gap: clamp(2px, 1.2vw, 14px); margin: var(--s-5) 0 var(--s-6); flex-wrap: nowrap; }
.avali .diya { width: clamp(30px, 8vw, 72px); }
.many { list-style: none; padding: 0; margin: var(--s-7) auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--s-4); }
.many li { padding: var(--s-5); border-radius: var(--r-md); background: linear-gradient(160deg, rgba(42, 15, 58, 0.55), rgba(18, 10, 36, 0.4)); border: var(--b-hair); display: grid; gap: var(--s-2); }
.many b { font-family: var(--f-display); font-weight: 600; font-size: var(--t-sm); letter-spacing: 0.08em; color: var(--c-gold-light); }
.many span { color: var(--text-soft); font-size: var(--t-md); line-height: 1.4; }

/* ---------- Story (scrollytelling) ---------- */
.story { position: relative; }
.story__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.story__scenes { position: absolute; inset: 0; }
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease-in-out); }
.scene svg { width: 100%; height: 100%; }
.scene .kb { transform-origin: 50% 60%; transform: scale(1.08); transition: transform 9s var(--ease-out); }
.scene.is-active { opacity: 1; }
.scene.is-active .kb { transform: scale(1); }
.scene .twinkle { animation: tw 3s ease-in-out infinite; }
@keyframes tw { 50% { opacity: 0.2; } }
.scene .drift { animation: drift 12s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translateX(40px); } }
.scene .bob { animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.scene .glowpulse { animation: gp 2.6s ease-in-out infinite; }
@keyframes gp { 50% { opacity: 0.55; } }
.scene .leap { stroke-dasharray: 2400; stroke-dashoffset: 2400; }
.scene.is-active .leap { animation: leap 3.2s var(--ease-out) 0.4s forwards; }
@keyframes leap { to { stroke-dashoffset: 0; } }
.scene .arrow { transform: translateX(-120%); }
.scene.is-active .arrow { animation: arrow 1.4s var(--ease-in-out) 0.6s forwards; }
@keyframes arrow { to { transform: translateX(0); } }
.scene .stone { opacity: 0; transform: translateY(30px); }
.scene.is-active .stone { animation: stone 0.9s var(--ease-spring) forwards; animation-delay: calc(0.3s + var(--i) * 0.16s); }
@keyframes stone { to { opacity: 1; transform: none; } }
.scene .lamp { opacity: 0; }
.scene.is-active .lamp { animation: lamp 0.8s var(--ease-out) forwards; animation-delay: calc(0.6s + var(--i) * 0.035s); }
@keyframes lamp { 0% { opacity: 0; } 60% { opacity: 1; } 100% { opacity: 0.9; } }
.scene .vimana { transform: translate(260px, -160px) scale(0.7); opacity: 0; }
.scene.is-active .vimana { animation: vimana 4s var(--ease-out) 0.3s forwards; }
@keyframes vimana { to { transform: none; opacity: 1; } }
.story__dots { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; z-index: 2; }
.story__dots li { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--c-gold); transition: background-color var(--d-base), transform var(--d-base); }
.story__dots li.is-on { background: var(--c-marigold); transform: scale(1.4); box-shadow: 0 0 10px var(--c-saffron); }
.story__steps { position: relative; z-index: 3; margin-top: -100vh; margin-top: -100svh; }
.step { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: var(--s-8) var(--gutter); }
.step:first-child { padding-top: 30vh; }
.step:last-child { min-height: 130vh; }
.step__card {
  max-width: 30rem; padding: var(--s-6);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(18, 10, 36, 0.88), rgba(7, 4, 15, 0.78));
  border: var(--b-hair);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.step__card h3 { font-family: var(--f-display); font-weight: 600; font-size: var(--t-xl); line-height: 1.15; margin: 0 0 var(--s-4); color: var(--c-gold-light); }
.step__card p { margin: 0 0 var(--s-3); color: var(--text-soft); font-size: var(--t-md); }
.step__final { font-size: var(--t-lg) !important; color: var(--c-cream) !important; margin-top: var(--s-4) !important; }
@media (max-width: 720px) {
  .story__scenes { inset: 0 0 26% 0; }
  .story__stage { background: #07040f; }
  .step__card p { font-size: 1.05rem; }
  .step__card h3 { font-size: 1.45rem; }
  .step { align-items: flex-end; padding-bottom: 6vh; }
  .step__card { padding: var(--s-5); background: linear-gradient(160deg, rgba(18, 10, 36, 0.92), rgba(7, 4, 15, 0.88)); }
  .story__dots { right: 10px; }
}

/* ---------- Five days ---------- */
.days { background: linear-gradient(to bottom, var(--c-night), #0d0619 50%, var(--c-night)); }
.days__list { list-style: none; padding: 0; margin: var(--s-6) auto 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-4); }
@media (max-width: 1000px) {
  .days__list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78vw, 19rem); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s-4); width: 100%; padding-inline: var(--gutter); scrollbar-width: none; }
  .days__list::-webkit-scrollbar { display: none; }
}
.day {
  scroll-snap-align: center;
  position: relative; padding: var(--s-5); border-radius: var(--r-lg);
  background: linear-gradient(170deg, color-mix(in srgb, var(--accent) 22%, transparent), rgba(18, 10, 36, 0.6) 55%);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  display: grid; gap: var(--s-3); align-content: start;
  transition: transform var(--d-base) var(--ease-out), box-shadow var(--d-base);
}
.day:hover { transform: translateY(-6px); box-shadow: 0 16px 40px color-mix(in srgb, var(--accent) 25%, transparent); }
.day.is-today { box-shadow: 0 0 0 1px var(--c-gold), 0 0 50px rgba(255, 170, 60, 0.35); }
.day__badge { position: absolute; top: var(--s-4); right: var(--s-4); font-family: var(--f-display); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; padding: 0.3em 0.8em; border-radius: var(--r-pill); background: var(--c-marigold); color: #2a1204; }
.day__icon { width: 64px; height: 64px; }
.day__n { font-family: var(--f-display); font-size: var(--t-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin: 0; filter: brightness(1.4); }
.day h3 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: var(--t-lg); line-height: 1.15; color: var(--c-gold-light); }
.day .deva-inline { font-size: var(--t-md); }
.day p { margin: 0; color: var(--text-soft); font-size: var(--t-md); line-height: 1.45; }

/* ---------- 108 diyas ---------- */
.light { background: radial-gradient(ellipse 70% 60% at 50% 60%, rgba(74, 16, 36, 0.5), transparent 70%); }
.light__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); margin-block: var(--s-5); padding: var(--s-3) var(--s-4); border-radius: var(--r-pill); border: var(--b-hair); background: var(--surface); position: sticky; top: 70px; z-index: 5; backdrop-filter: blur(10px); }
.light__count { margin: 0; font-family: var(--f-display); font-size: var(--t-sm); letter-spacing: 0.1em; color: var(--text-soft); padding-left: var(--s-3); }
.light__count b { color: var(--c-marigold); font-size: 1.4em; }
.light__actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }
@media (max-width: 640px) {
  .light__bar { position: static; border-radius: var(--r-lg); justify-content: center; text-align: center; }
  .light__count { padding-left: 0; }
}
.courtyard { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(2px, 1vw, 10px); padding: var(--s-5); border-radius: var(--r-lg); background: radial-gradient(ellipse at center, #2a120c 0%, #160809 60%, #0b0508 100%); border: var(--b-hair); box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.7); }
@media (max-width: 640px) { .courtyard { grid-template-columns: repeat(9, 1fr); padding: var(--s-3); } }
.courtyard button { background: none; border: 0; padding: 0; cursor: pointer; border-radius: 50%; -webkit-tap-highlight-color: transparent; aspect-ratio: 1; min-width: 0; }
.courtyard .diya { width: 100%; }
.courtyard button:hover .diya:not(.is-lit) .d-clay { filter: brightness(1.35); }
.light__done { text-align: center; font-size: var(--t-xl); font-style: italic; color: var(--c-gold-light); margin-top: var(--s-6); animation: rise 1s var(--ease-out); }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }

/* ---------- Rangoli ---------- */
.rangoli { background: linear-gradient(to bottom, var(--c-night), #12060a 40%, var(--c-night)); }
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--s-6); align-items: start; margin-top: var(--s-6); }
@media (max-width: 900px) { .studio { grid-template-columns: 1fr; } }
.studio__floor { position: relative; aspect-ratio: 1; width: 100%; max-width: 680px; margin-inline: auto; border-radius: 50%; padding: 3%; background: radial-gradient(circle, #5a2a17 0%, #3a1a10 55%, #1d0c08 100%); box-shadow: 0 0 0 1px var(--line), 0 0 80px rgba(255, 140, 50, 0.18), inset 0 0 60px rgba(0, 0, 0, 0.6); }
.studio__floor canvas { width: 100%; height: 100%; border-radius: 50%; touch-action: none; cursor: crosshair; }
.studio__tools { display: grid; gap: var(--s-5); padding: var(--s-5); border-radius: var(--r-lg); border: var(--b-hair); background: var(--surface); }
.studio__tools fieldset { border: 0; padding: 0; margin: 0; }
.studio__tools legend, .range { font-family: var(--f-display); font-size: var(--t-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); margin-bottom: var(--s-3); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches button { width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.15); background: var(--sw); cursor: pointer; box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.3); transition: transform var(--d-fast) var(--ease-spring); }
.swatches button[aria-pressed='true'] { transform: scale(1.18); border-color: var(--c-cream); box-shadow: 0 0 14px var(--sw); }
.seg { display: flex; border-radius: var(--r-pill); border: var(--b-hair); overflow: hidden; }
.seg button { flex: 1; min-height: 40px; background: transparent; border: 0; cursor: pointer; font-family: var(--f-display); font-size: var(--t-xs); letter-spacing: 0.08em; color: var(--text-soft); }
.seg button + button { border-left: var(--b-hair); }
.seg button[aria-pressed='true'] { background: rgba(245, 199, 106, 0.2); color: var(--c-gold-light); }
.range { display: grid; gap: var(--s-2); }
.range input { accent-color: var(--c-marigold); width: 100%; }
.studio__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* ---------- Wishes ---------- */
.wishes { min-height: 100vh; overflow: hidden; display: grid; align-items: center; background: linear-gradient(to bottom, var(--c-night) 0%, #120830 45%, #2a0f3a 80%, #4a1838 100%); }
.wishes__sky { position: absolute; inset: 0; pointer-events: none; }
.wishes__sky::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 10% 20%, #fff8 50%, transparent), radial-gradient(1px 1px at 30% 70%, #fff6 50%, transparent), radial-gradient(1.5px 1.5px at 55% 15%, #fff9 50%, transparent), radial-gradient(1px 1px at 75% 40%, #fff6 50%, transparent), radial-gradient(1px 1px at 88% 12%, #fff8 50%, transparent), radial-gradient(1px 1px at 20% 45%, #fff5 50%, transparent), radial-gradient(1.5px 1.5px at 65% 60%, #fff6 50%, transparent), radial-gradient(1px 1px at 42% 32%, #fff7 50%, transparent); background-size: 420px 420px; opacity: 0.8; }
.wishes__content { position: relative; z-index: 2; }
.wish-form { display: flex; gap: var(--s-3); max-width: 34rem; margin: var(--s-5) auto 0; flex-wrap: wrap; justify-content: center; }
.wish-form input, .send__form input:not([type='radio']) { flex: 1 1 16rem; min-height: 50px; padding: 0 1.2em; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: rgba(7, 4, 15, 0.6); font-family: var(--f-serif); font-size: var(--t-md); color: var(--c-cream); }
.wish-form input::placeholder, .send__form input::placeholder { color: var(--text-faint); font-style: italic; }
.wish-form input:focus, .send__form input:focus { outline: none; border-color: var(--c-marigold); box-shadow: 0 0 0 3px rgba(255, 182, 39, 0.25); }
.wish-status { min-height: 1.6em; margin-top: var(--s-4); font-style: italic; color: var(--c-gold-light); }
.lantern { position: absolute; bottom: -120px; left: var(--x); width: var(--w, 46px); z-index: 1; pointer-events: none; animation: lantern-rise var(--dur, 18s) linear forwards; }
.lantern__body { position: relative; width: 100%; aspect-ratio: 0.78; border-radius: 30% 30% 22% 22% / 18% 18% 12% 12%; background: radial-gradient(ellipse 60% 55% at 50% 72%, #fff3c4 0%, #ffc56a 30%, #ff8a2a 65%, #c2410c 100%); box-shadow: 0 0 30px 8px rgba(255, 140, 40, 0.55), 0 0 90px 30px rgba(255, 110, 30, 0.22); animation: sway var(--sway, 5s) ease-in-out infinite alternate; }
.lantern__body::after { content: ''; position: absolute; left: 30%; right: 30%; bottom: 6%; height: 10%; border-radius: 50%; background: #fffbe6; filter: blur(2px); animation: pulse 1.3s infinite; }
.lantern__wish { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 10px; width: max-content; max-width: 220px; text-align: center; font-style: italic; font-size: var(--t-md); line-height: 1.25; color: var(--c-gold-light); text-shadow: 0 0 10px rgba(255, 150, 40, 0.8), 0 1px 4px #000; animation: wish-fade var(--dur, 18s) linear forwards; }
@keyframes lantern-rise { 0% { transform: translateY(0) scale(1); opacity: 0; } 5% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(calc(-100vh - 300px)) scale(0.45); opacity: 0; } }
@keyframes sway { from { transform: translateX(-12px) rotate(-3deg); } to { transform: translateX(12px) rotate(3deg); } }
@keyframes wish-fade { 0%, 45% { opacity: 1; } 65%, 100% { opacity: 0; } }

/* ---------- Mithai ---------- */
.mithai { background: radial-gradient(ellipse 60% 50% at 50% 60%, rgba(215, 38, 61, 0.14), transparent 70%); }
.mithai__wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s-6); align-items: center; margin-top: var(--s-6); }
@media (max-width: 860px) { .mithai__wrap { grid-template-columns: 1fr; } }
.box { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); padding: var(--s-5); border-radius: var(--r-md); background: linear-gradient(135deg, #b8862f, #ffe6a8 30%, #c4882a 60%, #ffe6a8); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), inset 0 0 0 6px rgba(120, 60, 10, 0.4); position: relative; }
.box::before { content: ''; position: absolute; inset: 14px; border-radius: 10px; background: repeating-linear-gradient(45deg, #8a1730 0 10px, #7a1228 10px 20px); box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5); }
.sweet { position: relative; aspect-ratio: 1; border: 0; padding: 12%; cursor: pointer; border-radius: 12px; background: radial-gradient(circle at 50% 55%, rgba(255, 255, 255, 0.92), rgba(240, 220, 200, 0.9) 60%, rgba(200, 170, 140, 0.9)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5), inset 0 -6px 14px rgba(120, 80, 40, 0.3); transition: transform var(--d-base) var(--ease-spring); }
.sweet::before { content: ''; position: absolute; inset: 6%; border-radius: 10px; background: repeating-conic-gradient(from 0deg, rgba(200, 160, 120, 0.25) 0 10deg, transparent 10deg 20deg); -webkit-mask: radial-gradient(circle, transparent 55%, #000 57%); mask: radial-gradient(circle, transparent 55%, #000 57%); }
.sweet svg { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 6px 6px rgba(60, 20, 0, 0.35)); transition: transform var(--d-base) var(--ease-spring), opacity var(--d-base); }
.sweet:hover svg { transform: translateY(-6px) scale(1.06) rotate(-3deg); }
.sweet.is-taken svg { transform: scale(0.2) translateY(-40px); opacity: 0; }
.sweet.is-taken { cursor: default; }
.fortune { padding: var(--s-6); border-radius: var(--r-lg); border: var(--b-hair); background: var(--surface); min-height: 15rem; display: grid; align-content: center; gap: var(--s-3); }
.fortune__name { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: var(--t-xl); color: var(--c-gold-light); line-height: 1.15; }
.fortune__name .deva-inline { display: block; font-size: 0.7em; margin-top: 0.2em; }
.fortune__desc { margin: 0; color: var(--text-soft); }
.fortune__blessing { margin: var(--s-3) 0 0; padding-top: var(--s-4); border-top: var(--b-hair); font-style: italic; font-size: var(--t-lg); color: var(--c-cream); line-height: 1.35; }
.fortune.is-new { animation: rise 0.6s var(--ease-out); }

/* ---------- Film ---------- */
.film { background: radial-gradient(ellipse 50% 60% at 70% 50%, rgba(20, 163, 168, 0.12), transparent 70%); }
.film__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: var(--s-7); align-items: center; }
@media (max-width: 820px) { .film__grid { grid-template-columns: 1fr; text-align: center; } }
.film__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
@media (max-width: 820px) { .film__actions { justify-content: center; } }
.film__note { margin-top: var(--s-4); font-size: var(--t-sm); color: var(--text-faint); font-style: italic; }
.phone { width: min(100%, 22rem); margin-inline: auto; padding: 12px; border-radius: 42px; background: linear-gradient(145deg, #2a2030, #0d0812); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 80px rgba(255, 150, 40, 0.15); }
.phone video { width: 100%; aspect-ratio: 9 / 16; border-radius: 32px; background: #000; object-fit: cover; }

/* ---------- Finale ---------- */
.finale { min-height: 100vh; display: grid; align-items: center; background: linear-gradient(to bottom, var(--c-night), #0a0520 50%, #1a0b2e 100%); cursor: crosshair; }
.finale__content { position: relative; z-index: 2; }
.finale__hint { margin-top: var(--s-5); color: var(--text-faint); font-style: italic; }

/* ---------- Send ---------- */
.send { background: radial-gradient(ellipse 70% 60% at 30% 50%, rgba(74, 16, 36, 0.4), transparent 70%); }
.send__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-7); align-items: center; }
@media (max-width: 860px) { .send__grid { grid-template-columns: 1fr; } }
.send__form { display: grid; gap: var(--s-4); padding: var(--s-6); border-radius: var(--r-lg); border: var(--b-hair); background: var(--surface); }
.send__form > label { display: grid; gap: var(--s-2); font-family: var(--f-display); font-size: var(--t-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); }
.send__form input:not([type='radio']) { flex: none; width: 100%; text-transform: none; letter-spacing: 0; border-radius: var(--r-md); }
.send__form fieldset { border: 0; padding: 0; margin: 0; }
.send__form legend { font-family: var(--f-display); font-size: var(--t-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); margin-bottom: var(--s-2); }
.msg-options { display: grid; gap: var(--s-2); }
.msg-options label { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); border: var(--b-hair); cursor: pointer; font-family: var(--f-serif); font-size: var(--t-md); letter-spacing: 0; text-transform: none; color: var(--text-soft); font-style: italic; line-height: 1.35; transition: border-color var(--d-fast), background-color var(--d-fast); }
.msg-options label:has(input:checked) { border-color: var(--c-gold); background: rgba(245, 199, 106, 0.08); color: var(--c-cream); }
.msg-options input { accent-color: var(--c-marigold); margin-top: 0.3em; }
.send__link { display: block; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: rgba(7, 4, 15, 0.6); font-family: var(--f-ui); font-size: var(--t-xs); color: var(--c-gold); word-break: break-all; }
.send__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* ---------- Footer & toast ---------- */
.footer { text-align: center; padding: var(--s-8) var(--gutter) var(--s-7); border-top: var(--b-hair); color: var(--text-faint); background: linear-gradient(to bottom, var(--c-night), #12060a); }
.footer__diya { display: flex; justify-content: center; }
.footer__deva { font-size: var(--t-2xl); color: var(--c-marigold); margin: var(--s-2) 0; text-shadow: var(--text-glow); }
.footer p { margin: var(--s-2) 0; }
.footer__small { font-size: var(--t-sm); font-style: italic; }
.footer__by { font-family: var(--f-display); letter-spacing: 0.16em; text-transform: uppercase; font-size: var(--t-sm); color: var(--c-gold-light); }
.footer__by b { color: var(--c-marigold); font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 90; transform: translate(-50%, 30px); opacity: 0; padding: 0.8em 1.4em; border-radius: var(--r-pill); background: var(--surface-strong); border: 1px solid var(--line-strong); color: var(--c-gold-light); font-family: var(--f-display); font-size: var(--t-xs); letter-spacing: 0.12em; text-transform: uppercase; pointer-events: none; transition: opacity var(--d-base), transform var(--d-base) var(--ease-out); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
