*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;background:#110E1C}
:root{--bg:#110E1C;--card:#1C172E;--card2:#241E3A;--field:#14111F;--line:#30294A;--text:#F8F0E3;--muted:#C4BAD4;--faint:#9C92B0;--sf:#FFB547;--sf2:#FF8A1F;--ok:#8BE0A0;--bad:#FF9090;--tip:#FFD27A;--r:16px;color-scheme:dark}
body{margin:0;min-height:100vh;background:var(--bg);color:var(--text);font:16px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans","Noto Sans Devanagari","Nirmala UI",sans-serif;overflow-x:hidden;-webkit-tap-highlight-color:transparent}
html[lang="hi"] body{line-height:1.7}
body::before{content:"";position:fixed;left:0;right:0;top:0;height:340px;background:radial-gradient(60% 100% at 50% 0%,rgba(255,150,40,.15),rgba(255,150,40,0) 70%);pointer-events:none;z-index:0}
a{color:var(--sf)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.offscreen{position:fixed;top:0;left:0;width:1px;height:1px;opacity:0;pointer-events:none}

header.top{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:calc(10px + env(safe-area-inset-top)) max(14px,calc((100% - 532px) / 2)) 10px;background:rgba(17,14,28,.9);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid rgba(48,41,74,.7)}
.brand{display:flex;align-items:center;gap:8px;color:var(--text);text-decoration:none;font-weight:700;font-size:19px;min-width:0}
.brand svg{width:28px;height:28px;flex:none}
.pill{display:inline-flex;align-items:center;gap:6px;padding:4px 10px 4px 6px;border-radius:999px;background:rgba(255,181,71,.12);color:var(--sf);font-size:14px;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
.pill svg{width:22px;height:22px;flex:none}
body.bare .pill{visibility:hidden}

.wrap{position:relative;z-index:1;max-width:560px;margin:0 auto;padding:0 14px calc(96px + env(safe-area-inset-bottom))}
body.bare .wrap{padding-bottom:calc(32px + env(safe-area-inset-bottom))}
.view{display:none}
.view.active{display:block;animation:fade .25s ease}
h1{font-size:23px;line-height:1.3;margin:20px 0 6px;font-weight:700}
h2{font-size:17px;line-height:1.35;margin:0;font-weight:650}
p{margin:6px 0}
.muted{color:var(--muted)}
.faint{color:var(--faint)}
.small{font-size:14px}
.center{text-align:center}
.card{position:relative;background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:14px;margin:12px 0;min-width:0}
.row{display:flex;align-items:center;gap:10px;min-width:0}
.row>*{min-width:0}
.between{justify-content:space-between}
.wrapline{flex-wrap:wrap}
.grow{flex:1 1 160px}

.btn{-webkit-appearance:none;appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;border-radius:12px;border:1px solid var(--line);background:var(--card2);color:var(--text);font:inherit;font-weight:650;font-size:15px;line-height:1.3;cursor:pointer;text-decoration:none;text-align:center;max-width:100%;touch-action:manipulation;user-select:none;-webkit-user-select:none}
.btn.primary{background:linear-gradient(180deg,#FFC566,#FF9A2E);border-color:transparent;color:#2B1400}
.btn.ghost{background:transparent}
.btn.block{display:flex;width:100%;margin-top:10px}
.btn.sm{min-height:38px;padding:8px 12px;font-size:14px}
.btn.danger{background:transparent;color:var(--bad);border-color:rgba(255,144,144,.4)}
.btn:active{transform:scale(.98)}
.btn[aria-pressed="true"]{background:rgba(255,181,71,.16);border-color:rgba(255,181,71,.65);color:#FFD9A0}
.btn .ic,.chip .ic{width:18px;height:18px;flex:none}
.btn-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.btn-row>.btn{flex:1 1 150px}
.link{-webkit-appearance:none;appearance:none;background:none;border:0;padding:8px 0;color:var(--sf);font:inherit;font-weight:650;cursor:pointer;text-decoration:underline;text-underline-offset:3px;text-align:left;max-width:100%}
:focus-visible{outline:2px solid var(--sf);outline-offset:2px}

.ic{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}

.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.chip{-webkit-appearance:none;appearance:none;display:inline-flex;align-items:center;gap:6px;min-height:42px;padding:8px 13px;border-radius:999px;border:1px solid var(--line);background:var(--card2);color:var(--text);font:inherit;font-size:15px;line-height:1.3;cursor:pointer;max-width:100%;text-align:left;touch-action:manipulation}
.chip[aria-pressed="true"]{background:rgba(255,181,71,.16);border-color:rgba(255,181,71,.65);color:#FFD9A0}
.chips.sm .chip{min-height:38px;font-size:14px;padding:6px 11px}

label.lbl{display:block;font-size:14px;color:var(--muted);margin:12px 0 6px}
textarea,input[type="text"],input[type="time"]{display:block;width:100%;max-width:100%;font:inherit;font-size:16px;color:var(--text);background:var(--field);border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin-top:8px}
textarea{resize:vertical;min-height:88px;line-height:1.5}
input[type="time"]{max-width:180px;min-height:44px}
textarea::placeholder,input::placeholder{color:#7F7695}

.step-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px}
.locked{display:flex;align-items:center;gap:8px;color:var(--faint);font-size:15px;padding:10px 12px;border:1px dashed var(--line);border-radius:12px;margin-top:10px}
.lit{display:flex;align-items:center;gap:8px;color:var(--sf);font-weight:650;margin-top:10px}
.lit svg{width:22px;height:22px}
.okline{display:flex;align-items:center;gap:8px;color:var(--ok);font-weight:650;margin-top:8px}
.hint{font-size:14px;color:var(--muted);min-height:1.4em}
.hint.ok{color:var(--ok)}
.tip{font-size:14px;color:var(--tip);background:rgba(255,210,122,.08);border:1px solid rgba(255,210,122,.3);border-radius:12px;padding:8px 12px;margin:8px 0}
.tip .link{padding:2px 0}

.wish{margin:10px 0;padding:10px 14px;border-left:3px solid var(--sf);background:rgba(255,181,71,.07);border-radius:0 12px 12px 0;font-size:17px;overflow-wrap:anywhere}
.wish.big{font-size:19px;font-weight:600}

.clarity{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 2px}
.cl{display:inline-flex;align-items:center;gap:4px;font-size:13px;padding:4px 10px;border-radius:999px;border:1px solid var(--line);color:var(--faint)}
.cl.ok{color:var(--ok);border-color:rgba(139,224,160,.45);background:rgba(139,224,160,.08)}
.cl .ic{width:14px;height:14px}

.meter-row{display:flex;align-items:center;gap:10px;margin:12px 0 4px}
.meter{flex:1 1 auto;height:12px;border-radius:999px;background:#2C2545;overflow:hidden;min-width:40px}
.meter i{display:block;height:100%;width:0;background:linear-gradient(90deg,#FF7A1A,#FFC163,#FFF1C6);transition:width .08s linear}
.count{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap;font-size:15px}

.weather{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.wbtn{-webkit-appearance:none;appearance:none;display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 4px;border-radius:12px;border:1px solid var(--line);background:var(--card2);color:var(--text);font:inherit;font-size:14px;cursor:pointer;min-width:0;touch-action:manipulation}
.wbtn .ic{width:26px;height:26px}
.wbtn[aria-pressed="true"]{border-color:rgba(255,181,71,.65);background:rgba(255,181,71,.13);color:#FFD9A0}
.reply{font-size:15px;margin-top:10px}
@media (min-width:420px){.weather{grid-template-columns:repeat(4,minmax(0,1fr))}}

.diya-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:4px;margin:12px 0 10px}
.diya-grid svg{display:block;width:100%;max-width:30px;height:auto;justify-self:center}
.dy-off{--fo:transparent;--fi:transparent;--bw:#3A3253;--rm:#4A4166}
.dy-on{filter:drop-shadow(0 0 3px rgba(255,170,60,.7))}
.dy-new{animation:pop .7s ease-out}
.who{font-weight:650;color:#FFD9A0;margin:4px 0 8px}
.gufa{border-top:1px solid var(--line);padding-top:10px;margin-top:6px}
.gufa-bar{display:flex;gap:4px;height:8px;margin:8px 0 4px}
.gufa-bar i{display:block;height:100%;border-radius:999px;background:#2C2545;overflow:hidden;position:relative}
.gufa-bar i:nth-child(1){flex:7}.gufa-bar i:nth-child(2){flex:14}.gufa-bar i:nth-child(3){flex:14}.gufa-bar i:nth-child(4){flex:5}
.gufa-bar b{position:absolute;left:0;top:0;bottom:0;width:0;background:linear-gradient(90deg,#FF9A2E,#FFC163);border-radius:999px}
.stage{color:var(--sf);font-weight:650;text-align:right}
.full{color:#FFD9A0;font-weight:650}

.hero{display:flex;justify-content:center;margin:16px 0 4px}
.hero-diya{width:150px;height:150px;overflow:visible}
.hero.sm .hero-diya{width:112px;height:112px}
.hero-diya .flame{transform-box:view-box;transform-origin:60px 64px;animation:flick 1.8s ease-in-out infinite}
.hero-diya .glow{transform-box:view-box;transform-origin:60px 46px;animation:glow 2.6s ease-in-out infinite}

.ring-wrap{position:relative;width:68px;height:68px;margin:6px auto 10px}
.ring{width:68px;height:68px;transform:rotate(-90deg)}
.ring circle{fill:none;stroke-width:4}
.ring .bg{stroke:#2C2545}
.ring .fg{stroke:var(--sf);stroke-linecap:round;stroke-dasharray:125.7;stroke-dashoffset:0}
.ring-wrap.run .fg{animation:ring 10s linear forwards}
.ring-wrap span{position:absolute;left:0;top:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:21px;font-variant-numeric:tabular-nums}
.big{font-size:19px;font-weight:650}
ol.steps{margin:14px 0;padding:0;list-style:none;counter-reset:s}
ol.steps li{counter-increment:s;display:flex;gap:12px;align-items:flex-start;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:12px 14px;margin:8px 0;font-weight:600}
ol.steps li::before{content:counter(s);flex:none;width:28px;height:28px;border-radius:50%;background:rgba(255,181,71,.18);color:var(--sf);display:flex;align-items:center;justify-content:center;font-weight:700}
.lang-list{display:flex;flex-direction:column;gap:10px;margin:18px 0}
.lang-list .btn{min-height:54px;font-size:18px}

.install-card{padding-right:46px}
.x{position:absolute;top:6px;right:6px;width:40px;height:40px;border:0;border-radius:10px;background:transparent;color:var(--muted);font-size:24px;line-height:1;cursor:pointer}

.hl{font-size:18px;line-height:1.85;margin:2px 0 8px;overflow-wrap:anywhere}
.hl .neg{color:var(--bad);text-decoration:line-through;text-decoration-thickness:2px}
.hl .word{color:var(--tip);text-decoration:underline;text-decoration-style:wavy;text-underline-offset:5px}
.legend{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:13px;color:var(--muted)}
.legend .neg{color:var(--bad);text-decoration:line-through}
.legend .word{color:var(--tip);text-decoration:underline;text-decoration-style:wavy;text-underline-offset:3px}
.sugg{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border-radius:12px;background:rgba(139,224,160,.07);border:1px solid rgba(139,224,160,.3);margin:10px 0 0}
.sugg p{margin:0;flex:1 1 200px;font-size:17px;font-weight:600;overflow-wrap:anywhere}
.sugg .acts{display:flex;flex-wrap:wrap;gap:6px}
.card.ok{border-color:rgba(139,224,160,.4)}
.support{border-color:rgba(255,144,144,.5);background:#25172A}
.support .btn-row>.btn{flex:1 1 200px}

.pv{display:flex;align-items:center;gap:12px;padding:12px;border-radius:12px;background:var(--field);margin-top:8px}
.pv svg{width:46px;height:46px;flex:none;filter:drop-shadow(0 0 6px rgba(255,170,60,.6))}
.pv p{margin:0;font-size:17px;font-weight:650;overflow-wrap:anywhere;min-width:0}
.rcv-msg{font-size:23px;font-weight:700;text-align:center;line-height:1.35;margin:10px 0 6px;overflow-wrap:anywhere}
details.what{margin:18px 0 8px;color:var(--muted)}
details.what summary{cursor:pointer;color:var(--sf);font-weight:650;padding:6px 0}

.links{display:flex;flex-wrap:wrap;gap:4px 20px}
.about{font-size:14px;color:var(--faint);margin:16px 0 8px;overflow-wrap:anywhere}
.ver{font-size:13px;color:var(--faint);margin:6px 0 0}
.bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;background:#2A2140;border:1px solid var(--line);border-radius:12px;padding:8px 12px;margin:10px 0}

nav.tabs{position:fixed;left:0;right:0;bottom:0;z-index:6;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:rgba(20,16,33,.97);border-top:1px solid var(--line);padding:6px 4px calc(6px + env(safe-area-inset-bottom))}
nav.tabs a{display:flex;flex-direction:column;align-items:center;gap:2px;padding:4px 2px;color:var(--faint);text-decoration:none;font-size:12px;font-weight:600;min-width:0;border-radius:10px}
nav.tabs a span{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
nav.tabs a .ic{width:23px;height:23px}
nav.tabs a.on{color:var(--sf)}
body.bare nav.tabs{display:none}
@media (min-width:600px){nav.tabs{left:50%;right:auto;width:560px;transform:translateX(-50%);border:1px solid var(--line);border-bottom:0;border-radius:16px 16px 0 0}}

#toast{position:fixed;left:16px;right:16px;bottom:calc(88px + env(safe-area-inset-bottom));margin:0 auto;max-width:420px;background:#F8F0E3;color:#1C172E;padding:10px 16px;border-radius:12px;font-weight:650;text-align:center;opacity:0;transform:translateY(16px);transition:opacity .25s,transform .25s;pointer-events:none;z-index:20}
#toast.show{opacity:1;transform:none}

@keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes pop{0%{transform:scale(.5)}60%{transform:scale(1.18)}100%{transform:scale(1)}}
@keyframes flick{0%,100%{transform:rotate(-2deg) scale(1,1)}30%{transform:rotate(2deg) scale(.97,1.05)}60%{transform:rotate(-1deg) scale(1.03,.97)}}
@keyframes glow{0%,100%{opacity:.8;transform:scale(1)}50%{opacity:1;transform:scale(1.07)}}
@keyframes ring{to{stroke-dashoffset:125.7}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
