
@font-face{font-family:"TQ Digits";src:local("Kalpurush"),local("Kalpurush Regular");unicode-range:U+09E6-09EF;font-display:swap}
@font-face{font-family:"TQ Text";src:local("Bangla Shiligiri");font-display:swap}
/* Layout: one phone-width app shell; teal surfaces carry corner watermarks (bottom-left + top-right) */
:root{
  --brand:#1C949B; --brand-ink:#0F6E73; --brand-soft:#E0F2F3; --on-brand:#FFFFFF;
  --navy:#13233F; --bg:#EEF1F4; --surface:#FFFFFF; --line:#DCE2E8;
  --ink:#13233F; --muted:#5A6A80; --red:#C9423F; --red-soft:#FBE7E6; --gold:#B87B0E; --gold-soft:#FBF1DC;
  --font-ui:"TQ Digits","Noto Serif Bengali","TQ Text","Hind Siliguri","Noto Sans Bengali",sans-serif;
  --font-num:"TQ Digits","Noto Serif Bengali","Hind Siliguri",serif;
  --font-ar:"Amiri","Noto Naskh Arabic",serif;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --brand:#1C949B; --brand-ink:#7FD3D8; --brand-soft:#143A3D; --on-brand:#FFFFFF;
  --navy:#0A1424; --bg:#0D1626; --surface:#16233A; --line:#26364F;
  --ink:#E8EEF5; --muted:#9AA9BD; --red:#EE6B67; --red-soft:#3A1E22; --gold:#E9B44C; --gold-soft:#3A2E14; color-scheme:dark}}
:root[data-theme="dark"]{
  --brand:#1C949B; --brand-ink:#7FD3D8; --brand-soft:#143A3D; --on-brand:#FFFFFF;
  --navy:#0A1424; --bg:#0D1626; --surface:#16233A; --line:#26364F;
  --ink:#E8EEF5; --muted:#9AA9BD; --red:#EE6B67; --red-soft:#3A1E22; --gold:#E9B44C; --gold-soft:#3A2E14; color-scheme:dark}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html,body{height:100%}
.sr-file{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;clip:rect(0 0 0 0)}
.av-group{display:flex;flex-direction:column;gap:8px}
.av-group > span{font-size:13px;font-weight:600;color:var(--muted)}
.av-pick svg.av{width:100%;height:100%;border-radius:12px}
.avatar.svgav{background:var(--brand-soft)}
.avatar svg.av{width:100%;height:100%;display:block}
.hdr-pills{display:flex;align-items:center;gap:4px;flex:none}
.hdr-pills .pill{padding:4px 8px;font-size:14px;gap:4px;border-color:transparent}
.hdr-pills .pill svg.i{width:17px;height:17px}
.greet{white-space:nowrap;font-size:12.5px;line-height:1.2;color:var(--muted);display:block;margin-bottom:2px}
.hdr{align-items:flex-start}
.hdr .pill{margin-top:-4px}
body{background:var(--bg);color:var(--ink);font-family:var(--font-ui);font-size:16px;line-height:1.6}
.num{font-family:var(--font-num);font-variant-numeric:tabular-nums;letter-spacing:.01em}
.shell{max-width:440px;margin:0 auto;min-height:100%;display:flex;flex-direction:column;background:var(--bg)}
.screen{flex:1;display:flex;flex-direction:column;gap:16px;padding-block:20px 24px;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
h1,h2{margin:0;line-height:1.3;text-wrap:balance}
h1{font-size:22px;font-weight:700} h2{font-size:18px;font-weight:700}
p{margin:0}
.muted{color:var(--muted);font-size:14px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:16px}
.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}
.pill{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;background:var(--surface);border:1px solid var(--line);font-weight:600;font-size:15px}
.pill.gold svg{color:var(--gold)}.pill.fire svg{color:#E0652B}
.tag{font-size:12px;font-weight:600;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:1px 8px}
svg.i{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.btn{appearance:none;border:0;border-radius:16px;min-height:52px;padding:0 20px;font:inherit;font-size:17px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;text-decoration:none}
.btn-primary{background:var(--brand-ink);color:#fff}
:root:not([data-theme="light"]) .btn-primary{color:#fff}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .btn-primary{background:var(--brand);}}
:root[data-theme="dark"] .btn-primary{background:var(--brand)}
.btn-ghost{background:var(--surface);color:var(--ink);border:1px solid var(--line)}
.btn-sm{width:auto;min-height:44px;padding:0 14px;font-size:15px}
.btn:disabled{opacity:.45;cursor:not-allowed}
.link{appearance:none;border:0;background:none;color:var(--brand-ink);font:inherit;font-weight:600;cursor:pointer;padding:4px}
:focus-visible{outline:3px solid var(--brand);outline-offset:2px}
/* teal surface + corner watermarks */
.wm{position:relative;overflow:hidden;background:var(--brand);color:var(--on-brand);border-radius:20px}
.wm::before,.wm::after{content:"";position:absolute;width:220px;height:220px;border-radius:50%;border:24px solid rgba(255,255,255,.11);pointer-events:none}
.wm::before{left:-120px;bottom:-120px}.wm::after{right:-120px;top:-120px}
.wm > *{position:relative}
.hero{padding:20px;display:flex;flex-direction:column;gap:12px}
.hero .eyebrow{font-size:13px;letter-spacing:.03em;opacity:.92}
.hero .btn{background:#fff;color:var(--brand-ink)}
.bar{height:10px;border-radius:999px;background:var(--bg);overflow:hidden}.bar>i{display:block;height:100%;border-radius:999px;background:var(--gold)}
.bar.brand>i{background:var(--brand)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.path{appearance:none;font:inherit;color:inherit;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:14px;display:flex;flex-direction:column;gap:6px;cursor:pointer}
.ic{width:40px;height:40px;border-radius:12px;background:var(--brand-soft);color:var(--brand-ink);display:grid;place-items:center;flex:none}
.ic.gold{background:var(--gold-soft);color:var(--gold)}
.mini{height:6px;border-radius:999px;background:var(--bg);overflow:hidden}.mini>i{display:block;height:100%;background:var(--brand)}
.note{font-size:13px;color:var(--muted);text-align:center}
.ad{display:flex;gap:12px;align-items:center}
.ad .thumb{width:64px;height:64px;border-radius:14px;background:var(--navy);color:#fff;display:grid;place-items:center;font-weight:700;font-size:13px;text-align:center;line-height:1.2;flex:none}
/* tabs */
.tabs{position:sticky;bottom:0;display:grid;grid-template-columns:repeat(4,1fr);background:var(--surface);border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom,0px)}
.tab{appearance:none;border:0;background:none;font:inherit;color:var(--muted);font-size:13px;display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px 0 8px;cursor:pointer}
.tab[aria-current="page"]{color:var(--brand-ink);font-weight:600}
/* quiz */
.qtop{display:flex;align-items:center;gap:12px}
.icon-btn{appearance:none;border:1px solid var(--line);background:var(--surface);color:var(--ink);width:44px;height:44px;border-radius:14px;display:grid;place-items:center;cursor:pointer;flex:none}
.segs{flex:1;display:flex;gap:4px}.segs i{flex:1;height:8px;border-radius:999px;background:var(--line)}
.segs i.ok{background:var(--brand)}.segs i.no{background:var(--red)}.segs i.now{background:var(--navy)}
:root[data-theme="dark"] .segs i.now{background:var(--ink)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .segs i.now{background:var(--ink)}}
.tbar{height:6px;border-radius:999px;background:var(--line);overflow:hidden}
.tbar>i{display:block;height:100%;width:100%;background:var(--brand);transform-origin:left;transition:transform 1s linear,background .3s}
.tbar.low>i{background:var(--red)}
.qmeta{display:flex;justify-content:space-between;font-size:14px;color:var(--muted)}
.qcard{padding:20px}.qcard .qt{font-size:20px;font-weight:600;line-height:1.5}
.opts{display:flex;flex-direction:column;gap:10px;margin-top:auto}
.opt{appearance:none;font:inherit;font-size:17px;color:var(--ink);text-align:left;background:var(--surface);border:1.5px solid var(--line);border-radius:16px;min-height:56px;padding:12px 16px;display:flex;align-items:center;gap:12px;cursor:pointer;transition:background .15s,border-color .15s}
.opt .k{width:30px;height:30px;border-radius:10px;background:var(--bg);display:grid;place-items:center;font-weight:700;font-size:15px;flex:none}
.opt:hover:not(:disabled){border-color:var(--brand)}
.opt.right{background:var(--brand-soft);border-color:var(--brand)}.opt.right .k{background:var(--brand);color:#fff}
.opt.wrong{background:var(--red-soft);border-color:var(--red)}.opt.wrong .k{background:var(--red);color:#fff}
.opt:disabled{cursor:default}
.explain{display:flex;flex-direction:column;gap:8px}
.verdict{font-weight:700;font-size:17px}.verdict.ok{color:var(--brand-ink)}.verdict.no{color:var(--red)}
.ref{font-size:14px;color:var(--muted)}
.ayah{font-family:var(--font-ar);font-size:22px;direction:rtl;text-align:right;line-height:1.9}
.toast{position:fixed;left:50%;top:calc(16px + env(safe-area-inset-top,0px));transform:translateX(-50%);background:var(--navy);color:#fff;padding:10px 18px;border-radius:999px;font-weight:600;display:flex;gap:8px;align-items:center;z-index:20;box-shadow:0 6px 20px rgba(0,0,0,.18);animation:pop .2s ease-out;width:max-content;max-width:calc(100% - 32px);border-radius:18px;text-align:center;line-height:1.4}
.toast svg{color:#F2C14E}
@keyframes pop{from{transform:translate(-50%,-8px);opacity:0}to{transform:translate(-50%,0);opacity:1}}
/* result */
.score{padding:24px 16px;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}
.score .big{font-size:56px;font-weight:700;line-height:1}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;width:100%}
.stat{background:var(--bg);border-radius:14px;padding:10px 6px;text-align:center;color:var(--ink)}.stat b{display:block;font-size:22px}.stat > span{font-size:13px;color:var(--muted)}
.wm .stat{background:rgba(255,255,255,.14);color:#fff}.wm .stat > span{color:rgba(255,255,255,.85)}
.share{background:var(--navy);color:#fff;border-radius:20px;padding:20px;display:flex;flex-direction:column;gap:6px}
.share .brandname{font-size:13px;opacity:.75}.share .line{font-size:20px;font-weight:700}
/* sponsor player */
.player{background:var(--navy);color:#fff;border-radius:20px;height:min(46vh,380px);min-height:260px;display:flex;flex-direction:column;justify-content:space-between;padding:18px}
.btn-next{animation:nextPulse 2s ease-in-out .6s infinite}
.btn-next svg.i{animation:offerNudge 1.2s ease-in-out infinite}
@keyframes nextPulse{0%,100%{box-shadow:0 0 0 0 rgba(28,148,155,.45)}50%{box-shadow:0 0 0 9px rgba(28,148,155,0)}}
.actions{display:flex;flex-direction:column;gap:10px;margin-top:auto}
.btn-offer{background:var(--gold);color:#fff;text-decoration:none;animation:offerPulse 1.8s ease-in-out infinite}
.btn-offer svg.i{animation:offerNudge 1.8s ease-in-out infinite}
@keyframes offerPulse{0%,100%{transform:scale(1);box-shadow:0 0 0 0 rgba(201,138,18,.45)}50%{transform:scale(1.03);box-shadow:0 0 0 10px rgba(201,138,18,0)}}
@keyframes offerNudge{0%,100%{transform:translateX(0)}50%{transform:translateX(5px)}}
.player .lbl{font-size:12px;letter-spacing:.06em;opacity:.7}
.player .prod{font-size:24px;font-weight:700;line-height:1.3}
.player .offer{background:#fff;color:#13233F;display:inline-block;border-radius:12px;padding:8px 12px;font-weight:700}
.bottle{align-self:center;width:72px;height:120px;position:relative;transform:scale(.85)}
.bottle i{position:absolute;left:30px;top:0;width:30px;height:30px;border-radius:6px;background:#C9A24B}
.bottle b{position:absolute;left:0;top:26px;width:90px;height:124px;border-radius:28px;background:#1C949B;border:3px solid #C9A24B}
.vbar{height:6px;background:rgba(255,255,255,.2);border-radius:999px;overflow:hidden}.vbar i{display:block;height:100%;background:#F2C14E;width:0}
/* challenge levels */
.lvl{display:flex;flex-direction:column;gap:10px}
.set{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.set .dot{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:var(--bg);color:var(--muted);flex:none}
.set.done .dot{background:var(--brand);color:#fff}.set.open{border-color:var(--brand)}.set.open .dot{background:var(--brand-soft);color:var(--brand-ink)}
.set.lock{opacity:.55}
.set .grow{flex:1;min-width:0}
/* leaderboard */
.lb ol{list-style:none;margin:0;padding:0}
.lb li{display:flex;align-items:center;gap:12px;padding:12px 4px;border-bottom:1px solid var(--line)}
.lb li:last-child{border-bottom:0}
.lb .rk{width:28px;text-align:center;font-weight:700;color:var(--muted)}
.av{width:36px;height:36px;border-radius:12px;background:var(--brand-soft);color:var(--brand-ink);display:grid;place-items:center;font-weight:700;flex:none}
.lb .nm{flex:1;min-width:0}
.lb li.me{background:var(--brand-soft);border-radius:14px;padding-inline:8px;border-bottom-color:transparent}
.zone{font-size:13px;color:var(--brand-ink);font-weight:600;padding:6px 4px}
.badges{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.badge{appearance:none;font:inherit;color:var(--ink);border:1px solid transparent;cursor:pointer;background:var(--surface);border-radius:16px;padding:14px 6px 12px;text-align:center;font-size:14px;font-weight:600;display:flex;flex-direction:column;align-items:center;gap:8px}
.badge[aria-expanded="true"]{border-color:var(--brand)}
.badge .ic{border-radius:50%;width:52px;height:52px}.badge.off{opacity:.45}
.ring{width:52px;height:52px;border-radius:50%;background:var(--gold-soft);color:var(--gold);display:grid;place-items:center;font-size:24px;font-weight:700;line-height:1}
.reward{display:inline-flex;align-items:center;gap:3px;background:var(--gold-soft);color:var(--gold);font-weight:700;border-radius:999px;padding:0 10px;white-space:nowrap}
.binfo{display:flex;flex-direction:column;gap:6px}
/* avatar */
.avatar{display:grid;place-items:center;overflow:hidden;flex:none;background:var(--brand);color:#fff;font-weight:700}
.avatar img{width:100%;height:100%;object-fit:cover;display:block}
.avatar svg.i{width:55%;height:55%}
.av-picks{display:flex;gap:10px;flex-wrap:wrap}
.av-pick{appearance:none;border:2px solid var(--line);background:var(--surface);border-radius:14px;width:52px;height:52px;padding:0;cursor:pointer;display:grid;place-items:center;color:var(--brand-ink)}
.av-pick[aria-pressed="true"]{border-color:var(--brand)}
.motive{font-size:14px;color:var(--brand-ink);font-weight:500;line-height:1.5}
.motive.top{color:var(--gold)}
.seg{display:flex;gap:6px;flex-wrap:wrap}
.seg button{appearance:none;font:inherit;font-size:13px;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:999px;padding:4px 12px;cursor:pointer}
.seg button[aria-pressed="true"]{background:var(--brand-ink);border-color:var(--brand-ink);color:#fff}
.zone.down{color:var(--red)}
.pstats .stat{padding:14px 6px}.pstats .stat b{font-size:28px;line-height:1.2;margin-bottom:4px}
.switch{appearance:none;width:48px;height:28px;border-radius:999px;background:var(--line);position:relative;cursor:pointer;border:0;flex:none}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;transition:left .15s}
.switch[aria-checked="true"]{background:var(--brand)}.switch[aria-checked="true"]::after{left:23px}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* ---- live app additions ---- */
html,body{margin:0}
body{-webkit-tap-highlight-color:transparent}
.auth{flex:1;display:flex;flex-direction:column;gap:16px;padding-block:28px 24px;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.auth .wm{padding:24px 20px;display:flex;flex-direction:column;gap:6px}
.auth .wm h1{font-size:26px;color:#fff}
.seg2{display:grid;grid-template-columns:1fr 1fr;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:4px;gap:4px}
.seg2 button{appearance:none;border:0;background:none;font:inherit;font-weight:600;color:var(--muted);padding:10px;border-radius:10px;cursor:pointer}
.seg2 button[aria-pressed="true"]{background:var(--brand-ink);color:#fff}
.field{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:14px}
.field input,.field select{font:inherit;font-weight:400;font-size:16px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--ink);width:100%}
.field input:focus,.field select:focus{outline:2px solid var(--brand);border-color:var(--brand)}
.form-err{color:var(--red);font-size:14px;min-height:1.4em;margin:0}
.or{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px}.or::before,.or::after{content:"";flex:1;height:1px;background:var(--line)}
#gbtn{display:flex;justify-content:center;min-height:44px}
.loading{flex:1;display:grid;place-items:center;color:var(--muted)}
.spin{width:34px;height:34px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--brand);animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.player video{width:100%;height:100%;object-fit:cover;border-radius:14px;position:absolute;inset:0}
.player{position:relative;overflow:hidden}
.player .over{position:relative;display:flex;flex-direction:column;justify-content:space-between;height:100%;gap:10px}
.empty{color:var(--muted);text-align:center;padding:24px 8px}
.goal-list{display:flex;flex-direction:column;gap:8px}
.goal-item{appearance:none;font:inherit;color:inherit;text-align:left;display:flex;align-items:center;gap:12px;background:var(--surface);border:1.5px solid var(--line);border-radius:16px;padding:10px 12px;cursor:pointer}
.goal-item[aria-pressed="true"]{border-color:var(--brand)}
.goal-item .grow{flex:1;min-width:0}

/* ---- first screen: knowledge check without an account ---- */
.btn-trial{background:#fff;color:var(--brand-ink);margin-top:10px;animation:nextPulse 2.2s ease-in-out .8s infinite}
.trial-sub{font-size:13.5px;opacity:.95;text-align:center}
/* ---- install card ---- */
.install{display:flex;flex-direction:column;gap:12px;border-color:var(--brand)}
.ios-steps{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:8px;font-size:15px}
.ios-ic{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:7px;background:var(--brand-soft);color:#0A7AFF;vertical-align:middle}
.ios-ic svg.i{width:17px;height:17px}
.kbd-hint{display:none;margin:0;text-align:center;font-size:13px;color:var(--muted)}
.nav-brand{display:none}
/* ---- computer layout: left menu, keyboard hints ---- */
@media (min-width: 900px){
  .shell{max-width:1040px;display:grid;grid-template-columns:230px minmax(0,1fr);align-items:start;gap:0 28px;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
  .shell.nonav{grid-template-columns:minmax(0,1fr)}
  .shell > main{max-width:640px;width:100%;justify-self:center;min-height:100vh}
  .tabs{order:-1;position:sticky;top:0;align-self:start;height:100vh;display:flex;flex-direction:column;gap:4px;padding:20px 0;background:transparent;border:0}
  .tabs[hidden]{display:none!important}
  .nav-brand{display:flex;align-items:center;gap:10px;padding:0 12px 18px;font-size:17px;color:var(--ink)}
  .nav-brand img{border-radius:10px}
  .tab{flex-direction:row;justify-content:flex-start;gap:12px;font-size:16px;padding:12px 14px;border-radius:14px;text-align:left}
  .tab:hover{background:var(--surface)}
  .tab[aria-current="page"]{background:var(--brand-soft)}
  .tab svg.i{width:22px;height:22px}
  @media (pointer: fine){ .kbd-hint{display:block} }
}
