/* A quiet, five-section navigation with progressive disclosure. */
#prototype-bar:empty{display:none}#topbar{display:block;padding:26px 0 24px}.home-brand-row{display:flex;align-items:center;justify-content:space-between;gap:16px}.home-brand-row>div{display:flex;align-items:center;gap:15px}.home-wordmark{font-size:22px;letter-spacing:5px;font-weight:400;color:#c4d7b9}.home-location-row{display:flex;align-items:center;justify-content:space-between;margin-top:20px;gap:16px}.home-location-row button{display:flex;align-items:center;gap:9px;background:none;text-align:left;font-size:14px}.home-location-row small{display:block;font-size:10px;color:#91aaa0;margin-top:4px}.home-location-row .icon{width:17px;color:#b6d8ac}.home-location-row time{font-size:18px;font-variant-numeric:tabular-nums;color:#c8d8ce}.home-clean{max-width:780px;margin:auto;display:grid;gap:18px}.home-prayer{padding:26px;border-radius:25px;background:radial-gradient(ellipse at 95% 0,#526b4c75,transparent 65%),linear-gradient(120deg,#294b3d,#1a352d);border:1px solid #b1d5a844;box-shadow:0 10px 30px #00000015}.home-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.home-card-top h2{font-size:17px;font-weight:500}.home-prayer h2{font-size:23px;font-weight:500}.home-prayer-time{font-size:54px;line-height:1.3;font-weight:400;letter-spacing:-2px;font-variant-numeric:tabular-nums}.home-prayer p{font-size:15px;color:#d0dfd2;line-height:1.6}.home-prayer progress{display:block;width:100%;height:8px;margin:16px 0 10px;accent-color:#bad7a6;border:0;border-radius:8px;overflow:hidden}.home-prayer small{font-size:10px;color:#a7c0ad}.home-setup{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.home-person{display:grid;grid-template-columns:64px 1fr auto;gap:16px 13px;border:1px solid #a6c7a32b;border-radius:24px;padding:22px;background:linear-gradient(135deg,#1b372e,#122b24)}.home-avatar{width:58px;height:65px;display:grid;place-items:center;border-radius:20px;background:#294e3a;color:#c0ddb1}.home-avatar .icon{width:32px;height:32px}.home-person-main{align-self:center;min-width:0}.home-name{font-size:23px;background:none;text-align:left;word-break:break-word}.home-person-main p{font-size:11px;color:#adc2b1;margin-top:5px}.home-coins{background:none;text-align:right;align-self:center}.home-coins small{display:block;color:#afc4b2;font-size:11px}.home-coins strong{display:flex;align-items:center;justify-content:flex-end;gap:6px;font-size:24px;font-weight:500;margin-top:5px}.home-coins .icon{width:18px;color:#d2ce98}.home-stat{background:none;text-align:center;border-top:1px solid #b8d8b722;padding-top:14px}.home-stat small{display:block;color:#a6bdae;font-size:10px}.home-stat strong{display:block;font-size:23px;font-weight:400;margin-top:6px}.home-tip{padding:18px 22px;border:1px solid #c4d4b52b;border-radius:20px;background:#b4cfb211}.home-tip strong{font-size:13px;font-weight:500;color:#d5e2cd}.home-tip p{font-size:13px;line-height:1.65;color:#adc2b0;margin-top:5px}.home-shortcuts{padding:6px 4px}.home-shortcut-grid{display:flex;gap:10px;justify-content:space-around}.home-shortcut-grid button{background:none;font-size:12px;display:flex;flex-direction:column;align-items:center;gap:9px;flex:1;min-height:88px}.home-shortcut-grid button>span{width:54px;height:54px;border:1px solid #b1ce8c44;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 25% 15%,#40623d,#152d25 75%);color:#c1d9a6;box-shadow:0 3px 15px #bad78b0a}.home-shortcut-grid .icon{width:26px;height:26px}.home-program{padding:22px;border:1px solid #a6c7a32b;border-radius:24px;background:#173028}.home-task{display:grid;width:100%;grid-template-columns:20px minmax(0,1fr) auto;gap:5px 8px;align-items:center;background:none;text-align:left;padding:13px 0;border-bottom:1px solid #bed8bd12;font-size:13px}.home-task>span:last-of-type{font-size:11px;color:#acc5af}.home-task-dot{color:#9ab59c;font-size:23px}.home-task-dot.done{color:#bdd9a9;font-size:15px}.home-task progress{grid-column:2/-1;height:4px;width:100%;accent-color:#a6ca9a;margin-top:3px}.home-task:last-child{border-bottom:0}.home-options{padding:18px;border:1px solid #d2ecac22;border-radius:16px;margin:20px 0}.home-options label{display:flex;gap:10px;align-items:center;min-height:42px}.flow-back{min-height:44px;background:none;color:#b8cdb6;font-size:13px;margin-bottom:14px}.flow-folder,.flow-profile{max-width:850px;margin:auto}.flow-list{display:grid;gap:12px;margin-top:28px}.flow-row{display:flex;gap:16px;align-items:center;padding:21px 20px;background:linear-gradient(110deg,#1c382e,#142c25);border:1px solid #a4c6a224;border-radius:20px;text-align:left;min-height:88px}.flow-row>span:nth-child(2){flex:1}.flow-row strong{font-size:17px;font-weight:500}.flow-row small{display:block;font-size:12px;color:#a5bdae;margin-top:6px;line-height:1.5}.flow-row>span:last-child{color:#98b398;font-size:25px}.flow-icon{width:43px;height:43px;background:#c9ddb510;border-radius:14px;display:grid;place-items:center;color:#b9d5a2}.flow-icon .icon{width:23px;height:23px}.flow-details{margin-top:16px;border:1px solid #a5c5a227;border-radius:18px;background:#173028;padding:0 20px}.flow-details summary{padding:20px 0;cursor:pointer;font-size:15px}.flow-details[open]{padding-bottom:18px}.flow-details .fine{font-size:12px}.flow-profile .setting-row{font-size:15px;min-height:64px}.flow-profile .setting-row small{font-size:12px}.flow-profile .profile-card{padding:25px}.flow-profile .large-avatar{float:left;margin-right:18px;width:56px;height:56px}.flow-profile .settings-list{clear:both;padding-top:12px}.home-clean button:focus-visible,.flow-row:focus-visible,.flow-back:focus-visible{outline:2px solid #cee7b2;outline-offset:4px}.home-clean .text-btn{min-height:36px;font-size:12px}#bottom-nav button{min-height:48px}.home-clean input[type=checkbox]{accent-color:#b5d39c}
@media(min-width:1000px){.home-clean{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);max-width:1100px}.home-clean>#home-prayer-live{grid-column:1;grid-row:1}.home-person{grid-column:2;grid-row:1}.home-tip{grid-column:1/-1}.home-shortcuts{grid-column:1}.home-program{grid-column:2;grid-row:3/5}.home-person{grid-template-columns:1fr auto;padding:22px 18px}.home-avatar{width:50px}.home-stat{min-width:0}.home-person-main p{line-height:1.5}}
@media(max-width:700px){.workspace{padding-left:18px;padding-right:18px}#topbar{padding:20px 0}.home-wordmark{font-size:21px}.home-brand-row .icon-button{width:40px;height:40px;background:none}.home-clean{gap:14px}.home-prayer{padding:21px;border-radius:22px}.home-prayer-time{font-size:49px}.home-person{padding:18px;gap:15px 9px;grid-template-columns:1fr auto}.home-avatar{width:49px;height:59px}.home-name{font-size:21px}.home-coins strong{font-size:22px}.home-stat small{font-size:10px}.home-program{padding:18px}.home-card-top h2{font-size:16px}.home-tip{padding:16px 18px}.flow-row{padding:18px 16px}.flow-row strong{font-size:16px}.flow-list{margin-top:23px}#bottom-nav button{font-size:10px;min-width:0;flex:1}#bottom-nav .nav-icon-wrap{padding:4px 10px}.flow-folder h1,.flow-profile h1{font-size:29px}.subtitle{font-size:13px;line-height:1.6}.fine{font-size:12px}.flow-back{margin-bottom:10px}}
.home-stats{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.home-stats .home-stat{min-height:60px}.home-location-row>button{min-height:44px}.home-person .home-stat small{line-height:1.5}
/* Seven bottom tabs: compact so labels fit at 360px */
#bottom-nav{padding-left:2px;padding-right:2px}
#bottom-nav button{font-size:9.5px;gap:3px;padding:0 1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:0}
#bottom-nav .nav-icon-wrap{padding:4px 7px}
/* Eight languages: keep the header on one line at 360px */
.language-control select{max-width:104px;text-overflow:ellipsis}
@media(max-width:430px){.home-brand-row>div{gap:8px}.home-wordmark{letter-spacing:3px;font-size:19px}}

.safar-nudge{display:grid;grid-template-columns:76px 1fr;gap:14px;align-items:center;padding:16px 18px;border-radius:22px;background:rgba(196,215,185,.08);border:1px solid rgba(196,215,185,.18)}
.safar-nudge-art{width:76px;height:76px;overflow:hidden}.safar-nudge-art svg,.safar-nudge-art .safar-character{width:100%;height:100%}
.safar-nudge small{letter-spacing:3px;opacity:.7;font-size:10px}.safar-nudge h3{margin:2px 0 4px;font-size:17px}.safar-nudge p{margin:0 0 8px;font-size:14px;line-height:1.45;opacity:.9}
.safar-gift{height:6px;border-radius:6px;background:rgba(255,255,255,.12);overflow:hidden}.safar-gift i{display:block;height:100%;background:#c4d7b9;border-radius:6px}
@media(min-width:1000px){.safar-nudge{grid-column:1}}

/* Minimal home: corners hold place/time/date, the centre holds prayer times, lots of air */
.home-clean{display:block;max-width:560px;margin:0 auto;padding-top:6vh}
.home-prayer{background:rgba(20,40,36,.72);border:1px solid rgba(196,215,185,.14);border-radius:26px;padding:8px 6px 14px;backdrop-filter:blur(8px)}
.home-times{list-style:none;margin:0;padding:6px 14px}.home-times li{display:flex;justify-content:space-between;align-items:center;padding:13px 6px;font-size:18px;border-bottom:1px solid rgba(255,255,255,.06)}.home-times li:last-child{border-bottom:0}.home-times li b{font-weight:600;font-variant-numeric:tabular-nums}.home-times li.is-sun{opacity:.55;font-size:15px}
.home-times li.is-next{background:rgba(196,215,185,.14);border-radius:14px;border-bottom-color:transparent}
.home-next{display:flex;justify-content:space-between;align-items:center;margin:8px 8px 0;padding:14px 16px;border-radius:16px;background:#4aa377;color:#06241a;font-weight:700;font-size:18px}.home-next strong{font-variant-numeric:tabular-nums}
.home-prayer progress{display:block;width:calc(100% - 28px);margin:12px 14px 0}
.home-location-row time{display:flex;flex-direction:column;align-items:flex-end;font-size:24px;line-height:1.1}.home-location-row time small{font-size:12px;opacity:.7;margin-top:3px}
@media(min-width:1000px){.home-clean{max-width:520px}}
/* Qada + shop */
.qada-total{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0 10px}.qada-total>div{padding:16px;border-radius:18px;background:rgba(196,215,185,.08);border:1px solid rgba(196,215,185,.14)}.qada-total small{display:block;opacity:.7;font-size:12px}.qada-total strong{font-size:34px;line-height:1.2}
.qada progress{width:100%;height:8px;margin:4px 0 18px}
.qada-list{display:grid;gap:10px}.qada-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-radius:18px;background:rgba(20,40,36,.7);border:1px solid rgba(196,215,185,.12)}.qada-row strong{display:block;font-size:17px}.qada-row small{opacity:.7}.qada-row .primary{white-space:nowrap;padding:10px 14px;min-height:44px}
.qada-form{display:grid;gap:14px}.qada-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.qada-fields .field[hidden]{display:none}
.shop-step{margin:12px 0}.shop-step-top{display:flex;justify-content:space-between;gap:10px;align-items:baseline;margin-bottom:6px}.shop-step small{opacity:.7;display:block;margin-top:5px}
.shop-free{font-size:13px;opacity:.85;margin:10px 0 0}.shop-price{margin:8px 0 4px}.shop-price strong{font-size:22px}.shop-price small{opacity:.7}
.shop-cur{max-width:220px;margin:16px 0}
.shop-product .quiet{margin-top:10px}
/* Opening splash: a glowing road draws toward the horizon light, flares, and Safar appears out of the light */
.splash{position:fixed;inset:0;margin:0;padding:0;border:0;width:100%;height:100%;max-width:none;max-height:none;color:inherit;z-index:200;display:grid;place-items:center;background:#02100d;overflow:hidden;transition:opacity .5s ease}
.splash.out{opacity:0;pointer-events:none}
.splash-art{position:absolute;inset:0;animation:sp-art var(--total) linear both}
.splash-art svg{width:100%;height:100%;display:block}
.pa-reveal{transform-box:fill-box;transform-origin:50% 100%;transform:scaleY(0);animation:sp-reveal var(--total) cubic-bezier(.4,.1,.25,1) both}
.pa-sun{opacity:0;animation:sp-sun var(--total) ease-out both}
.pa-rail{animation:sp-rail 1.6s ease-in-out infinite alternate}
.splash-flare{position:absolute;inset:0;background:radial-gradient(circle at 50% 42%,#fff7d0 0,#ffd25a99 18%,#ffd25a22 45%,transparent 70%);opacity:0;animation:sp-flare var(--total) ease-in-out both;pointer-events:none}
.splash-safar{position:relative;display:grid;place-items:center;opacity:0;animation:sp-safar var(--total) cubic-bezier(.2,.8,.25,1) both}
.splash-bird{width:min(54vw,230px);filter:drop-shadow(0 0 26px #ffd25a88)}
.splash-safar strong{margin-top:14px;font:500 22px Georgia,serif;letter-spacing:9px;color:#ffe9a0}
@keyframes sp-reveal{0%{transform:scaleY(0)}58%,100%{transform:scaleY(1)}}
@keyframes sp-sun{0%{opacity:0}20%{opacity:.5}58%{opacity:1}100%{opacity:1}}
@keyframes sp-rail{from{opacity:.55}to{opacity:1}}
@keyframes sp-art{0%,64%{opacity:1}84%,100%{opacity:0}}
@keyframes sp-flare{0%,50%{opacity:0}66%{opacity:1}92%,100%{opacity:0}}
@keyframes sp-safar{0%,62%{opacity:0;transform:translateY(-9vh) scale(.12);filter:brightness(4) blur(14px)}74%{opacity:.9;transform:translateY(-3vh) scale(.6);filter:brightness(2.2) blur(5px)}88%,100%{opacity:1;transform:none;filter:none}}
@media(prefers-reduced-motion:reduce){.pa-reveal{animation:none;transform:none}.pa-sun{animation:none;opacity:1}.pa-rail{animation:none}.splash-art{animation:none;opacity:0}.splash-flare{animation:none}.splash-safar{animation:none;opacity:1;transform:none;filter:none}}
/* нижняя навигация: Практики слева, Ещё по центру, Трекер справа; Главная в шапке */
#bottom-nav{display:grid!important;grid-template-columns:1fr auto 1fr;align-items:end;padding-left:22px;padding-right:22px}
#bottom-nav button:nth-child(1){justify-self:start}#bottom-nav button:nth-child(2){justify-self:center}#bottom-nav button:nth-child(3){justify-self:end}
#bottom-nav button{min-width:72px;font-size:11px}
@media(min-width:701px){#bottom-nav{display:none!important}}
.avatar.home-btn{display:grid;place-items:center;color:#e2e9c9;background:#314838}.avatar.home-btn svg{width:20px;height:20px}.avatar.home-btn.active{background:#3f6048;box-shadow:0 0 0 2px #cde8ac55}
/* обои: ночью и днём разные, под тёмной вуалью для читаемости */
body[data-wall]{background-color:#0b1b1a;background-repeat:no-repeat;background-size:cover;background-position:center bottom;background-attachment:fixed}
body[data-wall=night]{background-image:linear-gradient(rgba(4,14,12,.74),rgba(4,14,12,.9)),url(wallpapers/musafir-night-bg.jpg)}
body[data-wall=day]{background-image:linear-gradient(rgba(8,30,26,.62),rgba(8,30,26,.86)),url(wallpapers/musafir-day-bg.jpg)}
/* главная: сверху трекер дня, времена намазов компактно ниже */
.home-track{margin:6px 0 18px}.ht-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.ht-head h1{margin:2px 0 8px;font-size:34px}.home-track>progress{width:100%;height:8px;margin:0 0 16px;accent-color:#cde8ac}
.home-prayer.compact{margin-top:6px}.home-prayer.compact .home-next{display:flex;justify-content:space-between;align-items:baseline;gap:10px}.home-fold{margin-top:10px}.home-fold summary{cursor:pointer;color:#9fb8a6;font-size:13px}.home-setup.compact{display:flex;flex-wrap:wrap;gap:8px}
/* names learning counter */
.nl-count{text-align:center}.nl-name{display:grid;gap:6px;justify-items:center;padding:18px 0 10px}
.nl-tap{width:min(64vw,260px);aspect-ratio:1;border-radius:50%;margin:14px auto;display:grid;place-content:center;gap:2px;border:2px solid var(--lime,#d2ecac);background:radial-gradient(circle at 50% 38%,#1f5b4d,#0f2f29);color:var(--ink,#f4f1e4);box-shadow:0 0 38px #d2ecac26;transition:transform .08s}
.nl-tap:active{transform:scale(.95)}.nl-tap b{font-size:64px;line-height:1}.nl-tap small{opacity:.75}
.about-p{margin:.6em 0;line-height:1.55;font-size:15px}
