/* ब्रह्माण्ड शक्ति — "Temple at midnight" */
@font-face { font-family: Mukta; src: url(/fonts/mukta-devanagari-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: Mukta; src: url(/fonts/mukta-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Mukta; src: url(/fonts/mukta-devanagari-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: Mukta; src: url(/fonts/mukta-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: Mukta; src: url(/fonts/mukta-devanagari-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: Mukta; src: url(/fonts/mukta-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: Mukta; src: url(/fonts/mukta-devanagari-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: Mukta; src: url(/fonts/mukta-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: Tiro; src: url(/fonts/tiro-devanagari-hindi-devanagari-400-normal.woff2) format('woff2'); font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: Tiro; src: url(/fonts/tiro-devanagari-hindi-latin-400-normal.woff2) format('woff2'); font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --bg: #0d0820; --bg2: #160d33; --card: rgba(36, 22, 74, 0.62); --card-solid: #21153f; --line: rgba(246, 217, 143, 0.18);
  --gold: #f6d98f; --gold2: #d4a94f; --saffron: #f08a24; --rose: #e0567a; --text: #f4ecdf; --muted: #c4b6a2; --dim: #9c8f84;
  --ok: #4cc38a; --err: #ff7b72; --radius: 18px; --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --display: Tiro, 'Noto Serif Devanagari', serif; --body: Mukta, system-ui, sans-serif;
  --tabs-h: 64px; --top-h: 60px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; min-height: 100dvh; overflow-x: hidden; }
#bg { position: fixed; inset: 0; z-index: -1; background:
  radial-gradient(1200px 600px at 80% -10%, rgba(212, 169, 79, 0.16), transparent 60%),
  radial-gradient(900px 600px at -10% 30%, rgba(120, 60, 200, 0.22), transparent 60%),
  radial-gradient(800px 500px at 50% 110%, rgba(240, 138, 36, 0.12), transparent 60%),
  linear-gradient(180deg, #0d0820, #120a2b 50%, #0b0619); }
#bg::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.5), transparent), radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,.4), transparent), radial-gradient(1.5px 1.5px at 40% 70%, rgba(246,217,143,.5), transparent), radial-gradient(1px 1px at 85% 60%, rgba(255,255,255,.35), transparent), radial-gradient(1px 1px at 10% 85%, rgba(255,255,255,.35), transparent); background-size: 600px 600px; animation: twinkle 8s ease-in-out infinite alternate; opacity: .7; }
@keyframes twinkle { to { opacity: .35; } }
a { color: var(--gold); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* header */
.top { position: sticky; top: 0; z-index: 30; height: var(--top-h); display: flex; align-items: center; gap: 14px; padding: 0 16px; padding-top: env(safe-area-inset-top); background: rgba(13, 8, 32, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; }
.brand b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.15rem; color: var(--gold); line-height: 1.1; }
.brand small { display: block; font-size: .72rem; color: var(--muted); line-height: 1.2; }
.desk { display: none; gap: 4px; margin-left: 18px; }
.desk a { color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 999px; font-size: .95rem; }
.desk a.on, .desk a:hover { color: var(--gold); background: rgba(246, 217, 143, 0.08); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--gold); text-decoration: none; cursor: pointer; font-size: .8rem; font-weight: 700; }
.signin { text-decoration: none; padding: 7px 14px; border-radius: 999px; background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #2a1a05; font-weight: 600; font-size: .9rem; }
@media (min-width: 900px) { .desk { display: flex; } }

/* main */
main { max-width: 1100px; margin: 0 auto; padding: 20px 16px calc(var(--tabs-h) + 28px + env(safe-area-inset-bottom)); outline: none; }
main.full { max-width: none; padding: 0; }
.page-in { animation: pagein .38s ease both; }
@keyframes pagein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.boot { min-height: 60vh; display: grid; place-items: center; }
.om { font-family: var(--display); font-size: 4rem; color: var(--gold); animation: breathe 2.4s ease-in-out infinite; text-shadow: 0 0 30px rgba(246, 217, 143, .5); }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .7; } }

/* tabs (mobile) */
.tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; height: calc(var(--tabs-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(6, 1fr); background: rgba(13, 8, 32, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--dim); text-decoration: none; font-size: .7rem; -webkit-tap-highlight-color: transparent; }
.tabs a svg { width: 22px; height: 22px; }
.tabs a.on { color: var(--gold); }
.tabs a.on svg { filter: drop-shadow(0 0 6px rgba(246, 217, 143, .6)); }
@media (min-width: 900px) { .tabs { display: none; } main { padding-bottom: 40px; } }
body.immersive .tabs, body.immersive .top, body.immersive .foot { display: none; }

/* footer */
.foot { max-width: 1100px; margin: 0 auto; padding: 18px 16px calc(var(--tabs-h) + 24px + env(safe-area-inset-bottom)); color: var(--dim); font-size: .82rem; text-align: center; border-top: 1px solid var(--line); }
.foot p { margin: 4px 0; }
.foot a { color: var(--muted); }
@media (min-width: 900px) { .foot { padding-bottom: 30px; } }
main + .foot { margin-top: -10px; }

/* common */
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--gold); line-height: 1.25; margin: 0; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
.muted { color: var(--muted); }
.dim { color: var(--dim); font-size: .88rem; }
.eyebrow { color: var(--saffron); font-size: .82rem; letter-spacing: .12em; font-weight: 600; }
.head { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 20px; }
.head p { margin: 0; color: var(--muted); max-width: 680px; }
.section { margin: 34px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.more { color: var(--gold); text-decoration: none; font-size: .92rem; white-space: nowrap; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s; position: relative; overflow: hidden; }
.tile:hover { transform: translateY(-3px); border-color: rgba(246, 217, 143, .5); box-shadow: var(--shadow); }
.tile:active { transform: scale(.98); }
.tile .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(246, 217, 143, .1); color: var(--gold); font-family: var(--display); font-size: 1.4rem; }
.tile b { font-size: 1.08rem; color: var(--gold); font-weight: 600; }
.tile small { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 600; text-decoration: none; background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #2a1a05; box-shadow: 0 6px 24px rgba(212, 169, 79, .25); transition: transform .15s, filter .15s; -webkit-tap-highlight-color: transparent; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--gold); border: 1px solid rgba(246, 217, 143, .5); box-shadow: none; }
.btn.sm { min-height: 38px; padding: 0 16px; font-size: .92rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(246, 217, 143, .1); color: var(--gold); font-size: .82rem; border: 1px solid var(--line); }
.chip.ai { background: rgba(224, 86, 122, .12); color: #ffb3c4; border-color: rgba(224, 86, 122, .35); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: var(--muted); font-weight: 500; }
.input, .field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(10, 6, 24, .6); color: var(--text); font-size: 1rem; }
.field textarea { min-height: 100px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(246, 217, 143, .15); }
.err { color: var(--err); font-size: .92rem; }
.note { color: var(--dim); font-size: .82rem; text-align: center; margin: 24px auto 0; max-width: 720px; }
.skel { border-radius: var(--radius); background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; animation: shim 1.4s linear infinite; min-height: 120px; }
@keyframes shim { to { background-position: -200% 0; } }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } }

/* toasts */
#toasts { position: fixed; left: 50%; bottom: calc(var(--tabs-h) + 16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 440px); pointer-events: none; }
.toast { background: var(--card-solid); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); animation: pagein .25s ease both; pointer-events: auto; }
.toast.error { border-color: rgba(255, 123, 114, .5); }

/* modal */
.modal-bg { position: fixed; inset: 0; z-index: 70; background: rgba(5, 2, 14, .7); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: pagein .2s ease both; }
.modal { width: min(100%, 460px); max-height: 90dvh; overflow: auto; background: var(--card-solid); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); }

/* home */
.hero { display: grid; gap: 26px; align-items: center; text-align: center; padding-top: 6px; }
.hero-video { position: relative; width: min(68vw, 300px); aspect-ratio: 9/16; margin: 0 auto; }
.hero-video .aura { position: absolute; inset: -10% -18%; border-radius: 40%; background: radial-gradient(circle, rgba(246, 217, 143, .5), rgba(212, 169, 79, .12) 45%, transparent 70%); animation: breathe 6s ease-in-out infinite; }
.hero-video video { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 28px; border: 2px solid rgba(246, 217, 143, .6); box-shadow: 0 0 60px rgba(246, 217, 143, .25); background: #2a1f3d; display: block; }
.hero-text { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.greet { margin: 0; color: var(--muted); }
.hero h1 { text-shadow: 0 0 30px rgba(246, 217, 143, .35); }
.lead { margin: 0; max-width: 540px; color: var(--muted); }
@media (min-width: 900px) { .hero { grid-template-columns: 1fr 1.15fr; text-align: left; } .hero-text { align-items: flex-start; } .hero-video { width: 330px; } }
.wisdom { text-align: center; display: flex; flex-direction: column; gap: 10px; }
.shloka { font-family: var(--display); font-size: 1.3rem; line-height: 1.85; color: var(--gold); white-space: pre-line; margin: 0; }
.meaning { margin: 0; line-height: 1.75; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.mv { scroll-snap-align: start; aspect-ratio: 3/4; border-radius: 16px; position: relative; overflow: hidden; text-decoration: none; color: var(--text); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; transition: transform .2s; }
.mv:hover { transform: translateY(-3px); }
.mv .yantra { position: absolute; inset: 0; opacity: .55; }
.mv .n { position: absolute; top: 10px; left: 12px; font-family: var(--display); color: var(--gold); opacity: .9; }
.mv strong { position: relative; font-family: var(--display); font-weight: 400; font-size: 1.15rem; color: #fff6e3; line-height: 1.2; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.mv small { position: relative; font-size: .72rem; color: #e8dccb; opacity: .85; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { text-align: center; padding: 14px 8px; }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.8rem; color: var(--gold); line-height: 1.1; }
.stat span { font-size: .78rem; color: var(--muted); }

/* library / reader */
.list { display: flex; flex-direction: column; gap: 10px; }
.li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.li:hover { border-color: rgba(246, 217, 143, .45); }
.li .num { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(246, 217, 143, .1); color: var(--gold); font-family: var(--display); }
.li .t { flex: 1; min-width: 0; }
.li .t b { display: block; font-weight: 600; color: var(--gold); }
.li .t small { color: var(--muted); }
.reader { max-width: 760px; margin: 0 auto; }
.verse { padding: 18px 4px; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.verse .sa { font-family: var(--display); font-size: var(--sa-size, 1.25rem); line-height: 1.9; color: #fbe9c0; white-space: pre-line; margin: 0; }
.verse .hi { margin: 10px 0 0; color: var(--text); line-height: 1.75; }
.verse .vn { float: right; margin-left: 10px; color: var(--dim); font-size: .8rem; }
.verse .tag { margin-top: 6px; }
.preface { font-family: var(--display); color: var(--muted); white-space: pre-line; padding: 14px; border-radius: 14px; background: rgba(246, 217, 143, .05); border: 1px dashed var(--line); margin-bottom: 8px; }
.pager { display: flex; justify-content: space-between; gap: 10px; margin: 24px 0; }
.toolbar { position: sticky; top: calc(var(--top-h) + 6px); z-index: 5; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 8px 10px; border-radius: 14px; background: rgba(22, 13, 51, .92); border: 1px solid var(--line); margin-bottom: 8px; }

/* mahavidya */
.mv-hero { border-radius: 24px; padding: 28px 22px; position: relative; overflow: hidden; border: 1px solid var(--line); }
.mv-hero .yantra { position: absolute; right: -60px; top: -60px; width: 300px; opacity: .35; }
.acc { border-radius: 14px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.acc + .acc { margin-top: 10px; }
.acc summary { list-style: none; cursor: pointer; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--gold); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '⌄'; transition: transform .2s; }
.acc[open] summary::after { transform: rotate(180deg); }
.acc .body { padding: 0 18px 16px; line-height: 1.8; }
.mantra-box { text-align: center; padding: 18px; border-radius: 16px; background: rgba(246, 217, 143, .06); border: 1px solid var(--line); }
.mantra-box .m { font-family: var(--display); font-size: 1.5rem; color: var(--gold); }

/* talk */
.talk { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; background: radial-gradient(800px 500px at 50% 20%, rgba(246, 217, 143, .14), transparent 60%), linear-gradient(180deg, #120a2b, #0b0619); }
.talk-top { display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 12px 8px; }
.talk-top select { min-height: 40px; border-radius: 999px; padding: 0 12px; background: rgba(10, 6, 24, .6); border: 1px solid var(--line); }
.talk-top .sp { flex: 1; }
.stage { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 12px; }
.avatar { position: relative; width: min(46vw, 210px); aspect-ratio: 1; }
.avatar .halo { position: absolute; inset: -14%; border-radius: 50%; background: radial-gradient(circle, rgba(246, 217, 143, .55), rgba(212, 169, 79, .15) 45%, transparent 70%); animation: breathe 5s ease-in-out infinite; }
.avatar img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 2px solid rgba(246, 217, 143, .65); box-shadow: 0 0 50px rgba(246, 217, 143, .3); transition: transform .3s; }
.avatar.speaking .halo { animation-duration: 1.6s; }
.avatar.speaking img { transform: scale(1.03); }
.avatar.listening img { box-shadow: 0 0 0 6px rgba(76, 195, 138, .35), 0 0 50px rgba(76, 195, 138, .3); }
.wave { display: flex; gap: 4px; height: 22px; align-items: center; }
.wave i { width: 4px; border-radius: 2px; background: var(--gold); height: 6px; transition: height .12s; }
.state { color: var(--muted); font-size: .92rem; min-height: 1.4em; }
.msgs { flex: 1; overflow-y: auto; padding: 8px 14px 12px; display: flex; flex-direction: column; gap: 10px; max-width: 760px; width: 100%; margin: 0 auto; }
.msg { max-width: 88%; padding: 12px 16px; border-radius: 18px; line-height: 1.7; white-space: pre-wrap; animation: pagein .3s ease both; }
.msg.u { align-self: flex-end; background: rgba(246, 217, 143, .14); border: 1px solid var(--line); border-bottom-right-radius: 6px; }
.msg.a { align-self: flex-start; background: rgba(36, 22, 74, .8); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.s { align-self: center; color: var(--muted); font-size: .88rem; background: none; }
.composer { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); max-width: 760px; width: 100%; margin: 0 auto; }
.composer textarea { flex: 1; min-height: 48px; max-height: 140px; resize: none; border-radius: 24px; padding: 12px 16px; background: rgba(10, 6, 24, .7); border: 1px solid var(--line); color: var(--text); font-size: 1rem; }
.round { flex: none; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: rgba(246, 217, 143, .1); color: var(--gold); display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.round.primary { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #2a1a05; border: 0; }
.round.live { background: var(--ok); color: #062014; border: 0; animation: pulse 1.4s ease-in-out infinite; }
.round.rec { background: var(--rose); color: #fff; border: 0; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.35); } 50% { box-shadow: 0 0 0 10px transparent; } }
.round svg { width: 22px; height: 22px; }
.darshan { position: fixed; inset: 0; z-index: 60; background: #000; display: grid; place-items: center; }
.darshan video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.darshan .skip { position: absolute; right: 16px; bottom: calc(24px + env(safe-area-inset-bottom)); }
.darshan .cap { position: absolute; left: 0; right: 0; bottom: calc(80px + env(safe-area-inset-bottom)); text-align: center; font-family: var(--display); color: var(--gold); font-size: 1.3rem; text-shadow: 0 2px 12px #000; }

/* puja */
.puja-player { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; background: linear-gradient(180deg, #1a0d08, #0d0820); }
.scene { position: relative; height: 38vh; min-height: 220px; overflow: hidden; display: grid; place-items: center; }
.scene .glow { position: absolute; inset: 0; background: radial-gradient(400px 260px at 50% 60%, rgba(240, 138, 36, .45), transparent 70%); animation: flicker 3s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { opacity: .85; } 40% { opacity: 1; } 60% { opacity: .7; } }
.scene .art { position: relative; width: min(70vw, 300px); }
.scene .maa { position: absolute; right: 14px; bottom: 12px; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(246, 217, 143, .7); box-shadow: 0 0 20px rgba(246, 217, 143, .4); }
.scene .maa.speaking { animation: breathe 1.4s ease-in-out infinite; }
.step-body { flex: 1; overflow-y: auto; padding: 14px 18px; max-width: 760px; width: 100%; margin: 0 auto; }
.step-body .say { line-height: 1.8; white-space: pre-line; }
.step-body .mantra { margin-top: 12px; padding: 14px; border-radius: 14px; background: rgba(246, 217, 143, .07); border: 1px solid var(--line); font-family: var(--display); font-size: 1.25rem; color: var(--gold); white-space: pre-line; text-align: center; line-height: 1.9; }
.step-body .mantra .cur { color: #fff; text-shadow: 0 0 12px rgba(246, 217, 143, .8); }
.puja-ctrl { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(13, 8, 32, .9); }
.prog { height: 4px; background: rgba(255,255,255,.08); }
.prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--saffron), var(--gold)); transition: width .4s; }
.mala { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 14px; }
.mala .count { font-family: var(--display); font-size: 3rem; color: var(--gold); line-height: 1; }
.bead { width: 120px; height: 120px; border-radius: 50%; border: 0; cursor: pointer; background: radial-gradient(circle at 35% 30%, #ffe7a8, #c98a2a 60%, #6b3e0f); box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 30px rgba(240, 138, 36, .3); color: #2a1a05; font-weight: 700; font-size: 1rem; -webkit-tap-highlight-color: transparent; }
.bead:active { transform: scale(.94); }

/* kundli */
.tabsw { display: inline-flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.tabsw button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; color: var(--muted); font-weight: 600; cursor: pointer; }
.tabsw button.on { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #2a1a05; }
.form { display: flex; flex-direction: column; gap: 12px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.place { position: relative; }
.suggest { position: absolute; top: 100%; left: 0; right: 0; z-index: 10; list-style: none; margin: 4px 0 0; padding: 4px; background: var(--card-solid); border: 1px solid var(--line); border-radius: 12px; max-height: 260px; overflow: auto; box-shadow: var(--shadow); }
.suggest button { width: 100%; text-align: left; border: 0; background: none; padding: 10px; border-radius: 8px; cursor: pointer; }
.suggest button:hover { background: rgba(246, 217, 143, .1); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.facts div { padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.facts span { display: block; font-size: .78rem; color: var(--muted); }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.chart svg { width: 100%; height: auto; display: block; border-radius: 14px; background: rgba(246, 217, 143, .05); }
.chart figcaption { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 6px; }
.tbl-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 500; font-size: .8rem; }
td small { display: block; color: var(--dim); white-space: normal; min-width: 120px; }
.zero td:last-child { color: var(--err); font-weight: 700; }
.dasha { border-radius: 12px; border: 1px solid var(--line); background: var(--card); overflow: hidden; }
.dasha + .dasha { margin-top: 6px; }
.dasha > button { width: 100%; display: flex; gap: 10px; align-items: center; padding: 10px 14px; border: 0; background: none; cursor: pointer; text-align: left; }
.dasha > button span { margin-left: auto; color: var(--muted); font-size: .85rem; }
.dasha.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.dasha ul { list-style: none; margin: 0; padding: 0 14px 10px; font-size: .88rem; }
.dasha li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.dasha li.on { color: var(--gold); font-weight: 700; }
.score { display: flex; align-items: center; gap: 16px; }
.score b { font-family: var(--display); font-weight: 400; font-size: 2.6rem; color: var(--gold); line-height: 1; }
.maa-box { border-radius: 18px; padding: 16px; background: linear-gradient(135deg, rgba(246, 217, 143, .08), rgba(224, 86, 122, .06)); border: 1px solid rgba(246, 217, 143, .35); display: flex; flex-direction: column; gap: 12px; }
.maa-box .who { display: flex; gap: 10px; align-items: center; color: var(--gold); font-weight: 600; }
.maa-box .who img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid var(--gold); }
.maa-box p { margin: 0; line-height: 1.8; white-space: pre-wrap; }
.maa-box .q { align-self: flex-end; background: rgba(246, 217, 143, .12); padding: 8px 12px; border-radius: 14px; }
.ask { display: flex; gap: 8px; }
.ask input { flex: 1; min-width: 0; min-height: 46px; border-radius: 999px; padding: 0 16px; background: rgba(10, 6, 24, .6); border: 1px solid var(--line); color: var(--text); }

/* videos */
.yt { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--line); cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.yt .play { position: absolute; inset: 0; display: grid; place-items: center; }
.yt .play span { width: 64px; height: 64px; border-radius: 50%; background: rgba(13, 8, 32, .75); display: grid; place-items: center; color: var(--gold); font-size: 1.6rem; border: 1px solid var(--gold); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.darshan { animation: dfade .45s ease both; }
.darshan.out { animation: dout .4s ease forwards; }
@keyframes dout { to { opacity: 0; } }
@keyframes dfade { from { opacity: 0; } }
.darshan-btn { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 2; border: 1px solid rgba(246, 217, 143, .7); background: rgba(13, 7, 16, .62); color: var(--gold); font: 600 .95rem var(--body, inherit); padding: 8px 18px; border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); cursor: pointer; box-shadow: 0 0 24px rgba(246, 217, 143, .25); white-space: nowrap; }
.darshan-btn:hover { background: rgba(58, 16, 32, .8); }
.darshan-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
