/* =========================================================
   Shreeka — Mataji Darshan (mobile only)
   ========================================================= */

:root {
  --gold: #f7c548;
  --gold-deep: #d98a00;
  --maroon: #8a2a10;
  --ink: #3b1206;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: 'Baloo Bhai 2', 'Noto Sans Gujarati', 'Shruti', 'Gujarati Sangam MN', system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: #2a0a03;
  color: #fff;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
button {
  font: inherit; color: inherit; background: none; border: 0; padding: 0;
  cursor: pointer; touch-action: manipulation;
  -webkit-user-select: none; user-select: none;
}
button:focus-visible { outline: 3px solid #fff3b0; outline-offset: 3px; }
svg { display: block; }
[hidden] { display: none !important; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Device gating ---------- */
.desktop-only, .rotate-hint { display: none; }

@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  body { overflow: auto; }
  .app { display: none; }
  .desktop-only { display: flex; }
}
@media (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  .rotate-hint { display: flex; }
}

/* ---------- App shell & screens ---------- */
.app {
  position: fixed; inset: 0;
  max-width: 520px; margin: 0 auto;
  overflow: hidden;
  background: #2a0a03;
}
.screen {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .5s ease, visibility 0s linear .5s;
}
.screen.is-active { opacity: 1; visibility: visible; transition: opacity .5s ease; }

/* ---------- Top bar ---------- */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 7;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: calc(var(--safe-t) + 10px) 12px 10px;
}
.topbar--home { justify-content: flex-end; z-index: 5; }
.topbar__group { display: flex; gap: 8px; }
.icon-btn {
  position: relative;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(60, 12, 2, .4);
  box-shadow: inset 0 0 0 1px rgba(255, 220, 140, .4);
  color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.icon-btn:active { transform: scale(.92); }
.icon-btn svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.icon-btn .ico-off,
.icon-btn.is-muted .ico-on { display: none; }
.icon-btn.is-muted .ico-off { display: block; }

/* =========================================================
   HOME — looping video, title and the btn01 call-to-action
   ========================================================= */
.screen--home {
  overflow: hidden;
  background: #f0a020 url('../img/vid01-poster.jpg') center / cover no-repeat;
}
.home__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
  pointer-events: none;
}
.home__video::-webkit-media-controls,
.home__video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.home__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(60, 12, 0, .28), rgba(60, 12, 0, 0) 12%),
    linear-gradient(to top, rgba(50, 6, 0, .55), rgba(50, 6, 0, 0) 22%);
}

/* title sits in the clear band between the video's toran and the murti */
.home__title {
  position: absolute; left: 0; right: 0; top: 12.5%; z-index: 2;
  padding: 0 18px; text-align: center;
  animation: dropIn .9s cubic-bezier(.2, .8, .2, 1) .2s both;
}
.home__kicker {
  display: inline-block; padding: 1px 26px 0;
  background: linear-gradient(90deg, rgba(122, 20, 4, 0), rgba(122, 20, 4, .88) 22%, rgba(122, 20, 4, .88) 78%, rgba(122, 20, 4, 0));
  color: #ffe08a; font-weight: 700; line-height: 1.6;
  font-size: clamp(15px, 4.4vw, 20px);
}
.home__heading {
  margin-top: 6px;
  font-weight: 800; line-height: 1.22;
  font-size: clamp(24px, min(8.2vw, 4.4vh), 38px);
  color: #7a1404;
  text-shadow: 0 0 2px #fff8de, 0 0 10px rgba(255, 248, 222, .95), 0 2px 18px rgba(255, 232, 170, .9);
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

.home__bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  padding-bottom: calc(var(--safe-b) + 10px);
  animation: riseIn .9s cubic-bezier(.2, .8, .2, 1) .5s both;
}

/* btn01.png button — the pill numbers are where the red centre sits inside the image */
.cta {
  --pill-l: 12.6%; --pill-r: 12%; --pill-y: 29.6%;
  position: relative; display: block;
  width: min(96vw, 460px);
  -webkit-touch-callout: none;
  transition: transform .15s ease;
}
.cta:active { transform: scale(.95); }
.cta__body { position: relative; display: block; animation: ctaPulse 1.8s ease-in-out infinite; }
.cta__bg {
  position: relative; z-index: 1;
  display: block; width: 100%; height: auto;
  pointer-events: none; -webkit-user-drag: none;
  filter: drop-shadow(0 6px 14px rgba(80, 10, 0, .5));
}
.cta__glow {
  position: absolute; left: 4%; right: 4%; top: 14%; bottom: 14%; z-index: 0;
  border-radius: 999px;
  background: radial-gradient(closest-side, rgba(255, 236, 140, .95), rgba(255, 170, 0, .5) 55%, rgba(255, 140, 0, 0));
  filter: blur(8px);
  animation: ctaGlow 1.8s ease-in-out infinite;
}
.cta__ring, .cta__shine, .cta__label {
  position: absolute; left: var(--pill-l); right: var(--pill-r); top: var(--pill-y); bottom: var(--pill-y);
  border-radius: 999px; pointer-events: none;
}
.cta__ring {
  z-index: 2;
  box-shadow: 0 0 0 3px rgba(255, 226, 120, .95), 0 0 18px 4px rgba(255, 200, 60, .7);
  animation: ctaRing 2.4s ease-out infinite;
}
.cta__ring--2 { animation-delay: 1.2s; }
.cta__shine { z-index: 2; overflow: hidden; }
.cta__shine::after {
  content: ''; position: absolute; top: -20%; bottom: -20%; left: 0; width: 30%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .6) 50%, rgba(255, 255, 255, 0));
  transform: translateX(-120%) skewX(-20deg);
  animation: shine 2.8s ease-in-out infinite;
}
.cta__label {
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 11%;
  text-align: center; line-height: 1.25;
}
.cta__small {
  font-size: min(3.5vw, 16px); font-weight: 600; color: #ffeab0;
  text-shadow: 0 1px 2px rgba(110, 0, 0, .6);
}
.cta__big {
  display: inline-flex; align-items: center; gap: .22em;
  margin-top: .06em;
  font-size: min(6vw, 28px); font-weight: 800; color: #fff; line-height: 1.15;
  text-shadow: 0 2px 0 rgba(120, 10, 0, .65), 0 0 12px rgba(255, 200, 80, .45);
}
.cta__big svg {
  width: .78em; height: .78em;
  fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 1px 0 rgba(120, 10, 0, .6));
  animation: nudge .8s ease-in-out infinite alternate;
}
.cta__spark {
  position: absolute; left: var(--x); top: var(--y); z-index: 3;
  width: 24px; height: 24px; margin: -12px 0 0 -12px;
  background: radial-gradient(circle, #fff 0 18%, #fff3b0 35%, rgba(255, 220, 100, 0) 70%);
  -webkit-clip-path: polygon(50% 0, 54% 46%, 100% 50%, 54% 54%, 50% 100%, 46% 54%, 0 50%, 46% 46%);
          clip-path: polygon(50% 0, 54% 46%, 100% 50%, 54% 54%, 50% 100%, 46% 54%, 0 50%, 46% 46%);
  opacity: 0;
  animation: sparkTwinkle 3s ease-in-out var(--t) infinite;
  pointer-events: none;
}
@keyframes ctaPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes ctaGlow { 0%, 100% { opacity: .5; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes ctaRing { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.16, 1.9); opacity: 0; } }
@keyframes shine { 0% { transform: translateX(-120%) skewX(-20deg); } 60%, 100% { transform: translateX(380%) skewX(-20deg); } }
@keyframes nudge { from { transform: translateX(0); } to { transform: translateX(5px); } }
@keyframes sparkTwinkle {
  0%, 70%, 100% { opacity: 0; transform: scale(.2); }
  80% { opacity: 1; transform: scale(1.25); }
  90% { opacity: .6; transform: scale(.8); }
}

/* "turn sound on" hint — tapping it unmutes, hidden once sound is on */
.audio-hint {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: -10px; padding: 6px 14px; border-radius: 999px;
  background: rgba(60, 10, 0, .38);
  color: #fff3c4; font-weight: 600; font-size: clamp(13px, 3.7vw, 15px);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .9);
  transition: opacity .4s ease, transform .4s ease;
}
.audio-hint svg {
  flex: none; width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  animation: glowPulse 1.2s ease-in-out infinite alternate;
}
.screen--home.is-audible .audio-hint { opacity: 0; transform: translateY(8px); pointer-events: none; }

/* ---------- "Speaker is off" prompt ---------- */
.sound-prompt {
  position: absolute; inset: 0; z-index: 4;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0 14px calc(var(--safe-b) + 18px);
}
.sound-prompt__backdrop {
  position: absolute; inset: 0;
  background: rgba(30, 5, 0, .55);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  animation: fadeIn .3s ease both;
}
.sound-prompt__card {
  position: relative; width: min(100%, 380px);
  padding: 40px 20px 12px; border-radius: 22px;
  text-align: center; color: var(--ink);
  background: radial-gradient(120% 90% at 50% 0%, #fffaf0, #ffeec4 70%, #ffe2a0);
  box-shadow: 0 0 0 3px var(--gold), 0 0 0 6px #7a2e0c, 0 18px 40px rgba(0, 0, 0, .5);
  animation: promptUp .5s cubic-bezier(.25, 1.3, .5, 1) both;
}
.sound-prompt__icon {
  position: absolute; left: 50%; top: -33px;
  width: 66px; height: 66px; margin-left: -33px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 40% 35%, #fff2b0, #f4b400 60%, #b97a00);
  box-shadow: 0 0 0 3px #7a2e0c, 0 0 22px rgba(255, 200, 80, .85);
  color: #7a1e0a;
  animation: iconShake 1.4s ease-in-out infinite;
}
.sound-prompt__icon svg {
  width: 34px; height: 34px;
  fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.sound-prompt__wave { animation: wave 1.2s ease-in-out infinite; }
.sound-prompt__wave--2 { animation-delay: .3s; }
.sound-prompt__title { font-size: 23px; font-weight: 800; line-height: 1.25; color: #8a1e0a; }
.sound-prompt__text { margin: 6px 0 14px; font-size: 16px; font-weight: 500; line-height: 1.45; }
.sound-prompt__on {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 11px 18px 12px; border-radius: 999px;
  background: linear-gradient(180deg, #ff6b3d, #e3261b 55%, #a8100c);
  color: #fff; font-weight: 800; font-size: 19px;
  text-shadow: 0 1px 0 rgba(110, 0, 0, .6);
  box-shadow: 0 0 0 3px var(--gold), 0 6px 16px rgba(160, 20, 0, .45);
  animation: ctaPulse 1.6s ease-in-out infinite;
}
.sound-prompt__on svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.sound-prompt__skip {
  margin-top: 8px; padding: 8px 12px;
  font-weight: 600; font-size: 15px; color: #8a1e0a;
  text-decoration: underline; text-underline-offset: 3px;
}
@keyframes promptUp { from { opacity: 0; transform: translateY(60px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes wave { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
@keyframes iconShake {
  0%, 50%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(-12deg); }
  20% { transform: rotate(10deg); }
  30% { transform: rotate(-6deg); }
  40% { transform: rotate(4deg); }
}

/* speaker button in the top bar lights up while the prompt is open */
.is-prompting .topbar--home .js-sound {
  background: linear-gradient(180deg, #ffe27a, #f0a400);
  color: #5a1a06;
  box-shadow: 0 0 0 2px #fff6c8, 0 0 20px 6px rgba(255, 200, 60, .9);
  animation: speakerBounce 1s ease-in-out infinite;
}
.is-prompting .topbar--home .js-sound::before,
.is-prompting .topbar--home .js-sound::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(255, 220, 100, .95);
  animation: speakerRing 1.6s ease-out infinite;
  pointer-events: none;
}
.is-prompting .topbar--home .js-sound::after { animation-delay: .8s; }
.sound-wrap { position: relative; display: block; }
.sound-tip {
  position: absolute; top: calc(100% + 12px); left: 50%;
  display: block; white-space: nowrap; cursor: pointer;
  padding: 4px 12px 3px; border-radius: 999px;
  background: linear-gradient(#fff1a8, #f4b400);
  color: #5a1a06; font-weight: 800; font-size: 14px; line-height: 1.4;
  box-shadow: 0 0 0 2px #7a2e0c, 0 4px 12px rgba(0, 0, 0, .35);
  transform: translateX(-50%);
}
.sound-tip::before {
  content: ''; position: absolute; bottom: 100%; left: 50%; margin-left: -7px;
  border: 7px solid transparent; border-bottom-color: #7a2e0c;
}
.sound-tip { animation: tipBob .8s ease-in-out infinite alternate; }
@keyframes speakerBounce { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
@keyframes speakerRing { from { transform: scale(1); opacity: 1; } to { transform: scale(2.1); opacity: 0; } }
@keyframes tipBob { from { transform: translate(-50%, 0); } to { transform: translate(-50%, 5px); } }

/* shared flame flicker (SVG + CSS flames) */
.flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 1.6s ease-in-out infinite; }
@keyframes flicker {
  0%, 100% { transform: scale(1, 1) skewX(0deg); }
  20% { transform: scale(.95, 1.08) skewX(2deg); }
  40% { transform: scale(1.04, .94) skewX(-2deg); }
  60% { transform: scale(.98, 1.05) skewX(1deg); }
  80% { transform: scale(1.02, .97) skewX(-1.5deg); }
}
@keyframes glowPulse {
  from { opacity: .6; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1.08); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Share button: same btn01 artwork, calmer motion ---------- */
.cta--share { width: min(88vw, 400px); margin: -14px auto 0; }
.cta--share .cta__body { animation: ctaPulseSoft 2.6s ease-in-out infinite; }
.cta--share .cta__small { font-size: min(3.3vw, 15px); }
.cta--share .cta__big { font-size: min(5.4vw, 25px); }
@keyframes ctaPulseSoft { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }

/* =========================================================
   DARSHAN
   ========================================================= */
.screen--darshan { overflow: hidden; background: #1a0602; }
.darshan__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 47% 22%;
  transform-origin: 47% 30%;
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; pointer-events: none;
}
.darshan__img { transition: transform 1.3s ease, filter 1.3s ease; }
.screen--darshan:not(.is-revealed) .darshan__img { transform: scale(1.12); filter: brightness(1.7) saturate(.6); }
.is-ready .darshan__img { animation: breathe 16s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.045); } }

.darshan__glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(70% 45% at 48% 38%, rgba(255, 175, 70, .4), rgba(255, 140, 0, 0) 70%);
  mix-blend-mode: screen;
  opacity: 0; transition: opacity 1.2s ease;
}
.is-aarti .darshan__glow { opacity: 1; }

/* mala01.png toran across the top — drops in once the darshan is ready */
.mala {
  position: absolute; top: 0; left: 0; z-index: 3;
  width: 100%; height: auto;
  pointer-events: none; -webkit-user-drag: none;
  transform-origin: 50% 0;
  filter: drop-shadow(0 4px 6px rgba(40, 6, 0, .45));
  opacity: 0; transform: translateY(-40%);
}
.is-ready .mala {
  animation: malaIn 1s cubic-bezier(.3, 1.25, .5, 1) both, malaSway 6s ease-in-out 1s infinite alternate;
}
@keyframes malaIn { from { opacity: 0; transform: translateY(-40%); } to { opacity: 1; transform: none; } }
@keyframes malaSway { from { transform: rotate(-.4deg); } to { transform: rotate(.4deg); } }

/* ---------- Actions row ---------- */
.actions-wrap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  padding: 70px 10px calc(var(--safe-b) + 12px);
  background: linear-gradient(to top, rgba(45, 8, 0, .94) 0%, rgba(45, 8, 0, .72) 50%, rgba(45, 8, 0, 0) 100%);
  transform: translateY(105%);
  transition: transform .7s cubic-bezier(.2, .9, .25, 1.08);
}
.is-ready .actions-wrap { transform: none; }
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 12px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; }
.act__circle {
  position: relative;
  width: min(19vw, 76px); height: min(19vw, 76px);
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 30%, #fffdf5 0%, #fff0c9 55%, #f8d27a 100%);
  box-shadow: 0 0 0 3px var(--gold), 0 0 0 5px #7a2e0c, 0 6px 16px rgba(0, 0, 0, .5);
  transition: transform .15s ease, box-shadow .3s ease;
}
.act:active .act__circle { transform: scale(.9); }
.act__img {
  width: 70%; height: 70%; object-fit: contain;
  pointer-events: none; -webkit-user-drag: none;
  filter: drop-shadow(0 3px 3px rgba(90, 40, 0, .35));
}
.act__circle::after {
  content: ''; position: absolute; inset: -9px; border-radius: 50%;
  border: 2.5px dashed rgba(255, 220, 100, .95);
  opacity: 0; transition: opacity .3s;
}
.act.is-active .act__circle {
  box-shadow: 0 0 0 3px var(--gold), 0 0 0 5px #7a2e0c, 0 0 26px 8px rgba(255, 170, 40, .8);
}
.act.is-active .act__circle::after { opacity: 1; animation: spin 5s linear infinite; }
.act__label {
  font-size: clamp(12px, 3.5vw, 14.5px); font-weight: 700; line-height: 1.15;
  text-align: center; text-shadow: 0 1px 3px rgba(0, 0, 0, .95);
}
.act__done {
  position: absolute; top: -4px; right: -4px;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: #2e7d32; box-shadow: 0 0 0 2px #fff;
  transform: scale(0); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.act__done svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.act.is-done .act__done { transform: scale(1); }

/* entrance + one-time attention pulse */
.act { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.is-ready .act { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * .09s); }
.is-ready .act__circle { animation: actHint 1.1s ease-in-out calc(1.2s + var(--i) * .2s) 2; }
@keyframes actHint {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); box-shadow: 0 0 0 3px var(--gold), 0 0 0 5px #7a2e0c, 0 0 24px 6px rgba(255, 200, 80, .85); }
}

/* toast sits just above the action row */
.toast {
  position: absolute; left: 50%; bottom: calc(100% - 62px);
  width: max-content; max-width: 94%; padding: 8px 18px; border-radius: 999px;
  background: rgba(60, 12, 2, .85);
  border: 1.5px solid rgba(247, 197, 72, .85);
  color: #ffe9a8; font-weight: 700; font-size: 15px; line-height: 1.3; text-align: center;
  opacity: 0; transform: translate(-50%, 12px);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Effects ---------- */
.fx-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.fx-layer--pile { z-index: 2; }
.fx-layer--fall { z-index: 6; }

/* falling petals */
.petal {
  position: absolute; left: 0; top: 0; width: 0; height: 0;
  animation-name: petalFall;
  animation-timing-function: cubic-bezier(.35, .15, .65, 1);
  animation-fill-mode: both;
  will-change: transform;
}
.petal--stay { animation-timing-function: cubic-bezier(.25, .35, .4, 1); }
.petal::before {
  content: ''; position: absolute; left: -7px; top: -8px; width: 14px; height: 16px;
  animation: petalSway var(--sw, 1.2s) ease-in-out infinite alternate;
}
.petal--rose::before {
  border-radius: 60% 0 60% 60%;
  background: radial-gradient(circle at 35% 35%, #ff6b81, #d1002c 55%, #7c001a);
}
.petal--marigold::before {
  width: 13px; height: 13px; border-radius: 50%;
  background: radial-gradient(circle, #fff099 0 22%, #ffb300 45%, #f07800 75%, #c94f00);
}
.petal--jasmine::before {
  width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle, #ffe680 0 18%, #ffffff 26%, #f2efe4 100%);
}
.petal.is-landed::before { animation: none; transform: rotate(var(--r)) scale(var(--s)); }
@keyframes petalFall {
  from { transform: translate3d(var(--x0), -30px, 0); }
  to   { transform: translate3d(var(--x1), var(--y1), 0); }
}
@keyframes petalSway {
  from { transform: translateX(-10px) rotate(0deg) scale(var(--s)); }
  to   { transform: translateX(10px) rotate(var(--r)) scale(var(--s)); }
}

.sparkle {
  position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px;
  background: radial-gradient(circle, #fff 0 20%, #ffe680 45%, rgba(255, 200, 0, 0) 72%);
  -webkit-clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
          clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  animation: twinkle 1.1s ease-out both;
}
@keyframes twinkle {
  0%   { transform: scale(0) rotate(0deg); opacity: 0; }
  40%  { transform: scale(calc(var(--s) * 1.4)) rotate(45deg); opacity: 1; }
  100% { transform: scale(0) rotate(90deg); opacity: 0; }
}

/* bells — two small bells hang from the mala, left and right of the top bar */
.fx-bell { position: absolute; top: 0; left: 0; right: 0; z-index: 6; height: 0; pointer-events: none; }
.fx-bell__item {
  --w: min(13.5vw, 52px);
  position: absolute; top: 0;
  width: var(--w); margin-left: calc(var(--w) / -2);
  transform: translateY(-110%);
  transition: transform .45s cubic-bezier(.3, 1.35, .5, 1);
}
/* left: just right of the back button · right: in the gap between the sound and share buttons */
.fx-bell__item--l { left: 66px; }
.fx-bell__item--r { left: calc(100% - 56px); }
.fx-bell.is-show .fx-bell__item { transform: translateY(0); }
.fx-bell.is-show .fx-bell__item--r { transition-delay: .06s; }
.fx-bell__swing { display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; }
/* swings for as long as bell.mp3 plays; the two bells mirror each other */
.fx-bell.is-ring .fx-bell__swing { animation: bellSwing .8s ease-in-out infinite; }
.fx-bell.is-ring .fx-bell__item--r .fx-bell__swing { animation-direction: reverse; }
.fx-bell__chain {
  /* full-bell.png has its own chain; this only bridges the notch area on iPhones */
  width: 2px; height: var(--safe-t);
  background: repeating-linear-gradient(to bottom, #ffe9a0 0 5px, #a87400 5px 7px);
}
.fx-bell__img {
  display: block; width: 100%; height: auto;
  pointer-events: none; -webkit-user-drag: none;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5));
}
@keyframes bellSwing {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(9deg); }
  75% { transform: rotate(-9deg); }
}

/* prasad thali */
.fx-prasad {
  --w: min(50vw, 230px);
  position: absolute; left: 50%; top: 47%; z-index: 4;
  width: var(--w); margin-left: calc(var(--w) / -2);
  opacity: 0; pointer-events: none;
}
.fx-prasad svg { position: relative; width: 100%; height: auto; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .5)); }
.fx-prasad__glow {
  position: absolute; inset: -55% -35%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 220, 120, .75), rgba(255, 170, 40, .25) 55%, rgba(255, 150, 0, 0));
  animation: glowPulse 1.1s ease-in-out infinite alternate;
}
.fx-prasad.is-on { animation: prasadOffer 4.4s cubic-bezier(.3, .7, .3, 1) forwards; }
@keyframes prasadOffer {
  0%   { opacity: 0; transform: translateY(55vh) scale(.85); }
  24%  { opacity: 1; transform: translateY(0) scale(1); }
  66%  { opacity: 1; transform: translateY(-1.5vh) scale(1.04); }
  100% { opacity: 0; transform: translateY(-12vh) scale(.55); }
}

/* aarti thali — circles clockwise in front of the murti.
   --aarti-half is set from JS so the motion matches the aarti rhythm. */
.fx-aarti {
  position: absolute; left: 48%; top: 41%; z-index: 4;
  width: 0; height: 0;
  opacity: 0; transition: opacity .6s ease;
  pointer-events: none;
}
.is-aarti .fx-aarti { opacity: 1; }
.fx-aarti__x, .fx-aarti__y { animation-play-state: paused; }
.fx-aarti__x { animation: aartiX var(--aarti-half, 1.04s) ease-in-out infinite alternate; }
.fx-aarti__y {
  animation: aartiY var(--aarti-half, 1.04s) ease-in-out infinite alternate;
  animation-delay: calc(var(--aarti-half, 1.04s) * -1.5);
}
.is-aarti .fx-aarti__x, .is-aarti .fx-aarti__y { animation-play-state: running; }
.fx-aarti__plate {
  --w: min(36vw, 150px);
  position: absolute; width: var(--w); left: calc(var(--w) / -2); top: calc(var(--w) * -.45);
}
.fx-aarti__plate svg { position: relative; width: 100%; height: auto; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
.fx-aarti__glow {
  position: absolute; left: 50%; top: 40%;
  width: 320px; height: 320px; margin: -160px 0 0 -160px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 205, 100, .6), rgba(255, 150, 30, .2) 50%, rgba(255, 120, 0, 0));
  mix-blend-mode: screen;
  animation: glowPulse .9s ease-in-out infinite alternate;
}
@keyframes aartiX {
  from { transform: translateX(calc(min(27vw, 130px) * -1)); }
  to   { transform: translateX(min(27vw, 130px)); }
}
@keyframes aartiY {
  from { transform: translateY(calc(min(11vh, 90px) * -1)); }
  to   { transform: translateY(min(11vh, 90px)); }
}

/* ---------- Temple-door intro (vid02) ---------- */
.intro {
  position: absolute; inset: 0; z-index: 10; overflow: hidden;
  background: #2a1004 url('../img/vid02-poster.jpg') center / cover no-repeat;
}
.intro__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
  transform-origin: 50% 40%;
  transition: transform 1s cubic-bezier(.55, 0, .8, .35), opacity .8s ease .2s;
  pointer-events: none;
}
.intro__video::-webkit-media-controls,
.intro__video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.intro__flash {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(65% 50% at 50% 40%, #fffdf2 0%, rgba(255, 236, 190, .85) 45%, rgba(255, 210, 130, 0) 85%);
}
/* at the end: zoom into the sanctum light and dissolve into the murti */
.intro.is-ending { background: none; pointer-events: none; }
.intro.is-ending .intro__video { transform: scale(1.8); opacity: 0; }
.intro.is-ending .intro__flash { animation: introFlash 1s ease forwards; }
@keyframes introFlash { 0% { opacity: 0; } 40% { opacity: 1; } 100% { opacity: 0; } }
.intro__tap {
  position: absolute; left: 50%; bottom: calc(var(--safe-b) + 7vh); z-index: 2;
  padding: 12px 22px; border-radius: 999px;
  background: linear-gradient(#fff1a8, #f4b400);
  color: #5a1a06; font-weight: 800; font-size: 17px; white-space: nowrap;
  box-shadow: 0 0 0 3px #7a2a0c, 0 0 26px rgba(255, 200, 80, .85);
  transform: translateX(-50%);
  display: none;
  animation: tapPulse 1.4s ease-in-out infinite;
}
.intro.is-waiting .intro__tap { display: block; }
@keyframes tapPulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.06); }
}

/* ---------- Blessing ---------- */
.blessing {
  position: absolute; inset: 0; z-index: 12;
  display: grid; place-items: center; padding: 24px;
  background: rgba(35, 6, 0, .55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  animation: fadeIn .4s ease both;
}
.blessing__card {
  position: relative; width: min(100%, 360px);
  padding: 30px 22px 18px; border-radius: 22px;
  text-align: center; color: var(--ink);
  background: radial-gradient(120% 90% at 50% 0%, #fffaf0, #ffeec4 70%, #ffe2a0);
  box-shadow: 0 0 0 3px var(--gold), 0 0 0 6px #7a2e0c, 0 20px 50px rgba(0, 0, 0, .5);
  animation: popIn .5s cubic-bezier(.3, 1.4, .5, 1) both;
}
.blessing__om {
  width: 66px; height: 66px; margin: -64px auto 10px; border-radius: 50%;
  display: grid; place-items: center; padding-top: 4px;
  font-size: 34px; font-weight: 800; color: #7a1e0a;
  background: radial-gradient(circle at 40% 35%, #fff2b0, #f4b400 60%, #b97a00);
  box-shadow: 0 0 0 3px #7a2e0c, 0 0 22px rgba(255, 200, 80, .8);
}
.blessing__title { font-size: 24px; font-weight: 800; line-height: 1.25; color: #8a1e0a; }
.blessing__text { margin: 8px 0 4px; font-size: 17px; font-weight: 500; line-height: 1.45; }
.blessing__jay { margin-bottom: 16px; font-size: 18px; font-weight: 700; color: #b35a00; }
.blessing .cta--share { width: 100%; margin: 0 0 2px; }
.blessing .cta--share .cta__small { font-size: min(3vw, 14px); }
.blessing .cta--share .cta__big { font-size: min(4.8vw, 22px); }
.blessing__close {
  margin-top: 10px; padding: 8px 18px;
  font-weight: 600; color: #8a1e0a;
  text-decoration: underline; text-underline-offset: 3px;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }

/* =========================================================
   Desktop notice & rotate hint
   ========================================================= */
.desktop-only {
  min-height: 100vh; align-items: center; justify-content: center; padding: 40px 20px;
  background: radial-gradient(120% 80% at 50% 0%, #ffe07a 0%, #ffb21f 35%, #f58a0c 70%, #d4550a 100%);
}
.desk {
  width: min(100%, 460px); padding: 34px 32px 30px; border-radius: 24px;
  text-align: center; color: var(--ink);
  background: radial-gradient(120% 90% at 50% 0%, #fffaf0, #ffeec4 75%, #ffe2a0);
  box-shadow: 0 0 0 3px var(--gold), 0 0 0 7px #8a2a10, 0 24px 60px rgba(90, 20, 0, .4);
}
.desk__img {
  width: 150px; height: 150px; margin: 0 auto 14px; border-radius: 50%;
  background: #5a1a06 url('../../vc-content/mataji/mataji.PNG') no-repeat;
  background-size: 147% auto; background-position: 40% 13.6%;
  box-shadow: 0 0 0 4px #fff, 0 0 0 9px var(--gold), 0 8px 24px rgba(90, 20, 0, .4);
}
.desk__kicker { color: #b35a00; font-weight: 700; font-size: 20px; }
.desk__title { margin: 4px 0 8px; font-size: 26px; font-weight: 800; line-height: 1.25; color: #8a1e0a; }
.desk__text { font-size: 17px; line-height: 1.5; }
.desk__qr {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin-top: 20px; font-size: 15px; font-weight: 600; color: #6b2a0c;
}
#qr { padding: 10px; background: #fff8e8; border-radius: 12px; box-shadow: 0 0 0 2px var(--gold); }
#qr img, #qr canvas { display: block; }

.rotate-hint {
  position: fixed; inset: 0; z-index: 100;
  flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: #3e1206; color: var(--gold); font-size: 18px; font-weight: 700; text-align: center; padding: 20px;
}
.rotate-hint svg {
  width: 54px; height: 54px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round;
  animation: rotateHint 2s ease-in-out infinite;
}
@keyframes rotateHint { 0%, 30% { transform: rotate(90deg); } 60%, 100% { transform: rotate(0deg); } }

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .home__title, .home__bottom, .cta__body, .cta__glow, .cta__shine::after, .cta__big svg,
  .audio-hint svg, .is-ready .mala, .is-ready .darshan__img, .is-ready .act__circle, .intro__tap { animation: none; }
  .is-ready .mala { opacity: 1; transform: none; }
  .darshan__img { transition: none; }
  .sound-prompt__icon, .sound-prompt__on, .is-prompting .topbar--home .js-sound, .sound-tip { animation: none; }
  .cta__ring, .cta__spark, .is-prompting .topbar--home .js-sound::before, .is-prompting .topbar--home .js-sound::after { display: none; }
}
