*{box-sizing:border-box;margin:0;padding:0}
:root{--ease:cubic-bezier(.2,.8,.2,1);--std:cubic-bezier(.4,0,.2,1);--disp:"Cinzel","Trajan Pro",Georgia,serif;--body:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;--r:22px}
html[data-theme=dark]{color-scheme:dark;--page:#06080f;--page-tx:#eceef4;--page-mu:#9aa0b2;--page-line:#232838;--frame:#161a26;
  --bg:#0a0d17;--card:#131829;--card2:#181e33;--line:#262d47;--track:#232b45;--tx:#f1f3fa;--mu:#a6aec7;--acc:#ff7a1a;--acc-tx:#ff9a4d;--on-acc:#1c0c00;--acc-soft:rgba(255,122,26,.16);--gold:#e8bf5a;--gold-tx:#f0cd72;--gold-soft:rgba(232,191,90,.14);--pill:#1b2136;--g1:#7cf3ff;--g2:#8b5cff;--ghost:#8d96b8;--shadow:rgba(0,0,0,.45)}
html[data-theme=light]{color-scheme:light;--page:#ebe8e1;--page-tx:#15171f;--page-mu:#555b6b;--page-line:#d2cdc2;--frame:#cfcabf;
  --bg:#f6f3ed;--card:#ffffff;--card2:#fbf9f5;--line:#e3dccd;--track:#e6dfd0;--tx:#141726;--mu:#585e72;--acc:#ff7a1a;--acc-tx:#ad4500;--on-acc:#1c0c00;--acc-soft:rgba(255,122,26,.14);--gold:#c99a2e;--gold-tx:#7f5a00;--gold-soft:rgba(201,154,46,.16);--pill:#efe9dd;--g1:#19b8cc;--g2:#6a3df0;--ghost:#6d7388;--shadow:rgba(60,50,30,.25)}
body{font-family:var(--body);font-size:16px;line-height:1.5;background:var(--page);color:var(--page-tx);min-height:100vh;transition:background .3s}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
button:focus-visible,a:focus-visible{outline:3px solid #7aa2ff;outline-offset:2px}
a{color:inherit}
.vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- desktop stage ---------- */
header.top{max-width:1100px;margin:0 auto;padding:22px 20px 6px;display:flex;align-items:center;gap:10px}
header.top svg{width:32px;height:32px}
header.top b{font-family:var(--disp);font-size:21px;font-weight:700;letter-spacing:.06em}
header.top span{color:var(--page-mu);font-size:14px;margin-left:6px}
.stage{max-width:1100px;margin:0 auto;padding:14px 16px 56px;display:flex;gap:40px;justify-content:center;align-items:flex-start}
.index{width:230px;flex:none;position:sticky;top:16px}
.index h2{font-family:var(--disp);font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:var(--page-mu);margin:14px 0 6px}
.index h2:first-child{margin-top:0}
.index ul{list-style:none;display:flex;flex-direction:column;gap:2px}
.index a{display:block;text-decoration:none;font-size:14px;padding:6px 10px;border-radius:10px;color:var(--page-tx)}
.index a:hover{background:var(--page-line)}
.index a[aria-current=page]{background:var(--acc);color:var(--on-acc);font-weight:600}
.icontile{width:96px;height:96px;border-radius:24px;background:linear-gradient(160deg,#141a2e,#0a0d17);display:grid;place-items:center;box-shadow:0 18px 40px -14px rgba(255,122,26,.45),inset 0 0 0 1px rgba(255,255,255,.06);margin-bottom:18px}
.icontile svg{width:60px;height:60px}

/* ---------- phone ---------- */
.phone{width:390px;flex:none;height:844px;border-radius:46px;background:var(--bg);color:var(--tx);overflow:hidden;box-shadow:0 0 0 8px var(--frame),0 30px 60px -20px var(--shadow);display:flex;flex-direction:column;position:relative;transition:background .3s,color .3s}
.sbar{display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:600;padding:14px 28px 4px;flex:none;font-variant-numeric:tabular-nums}
.sbar i{display:inline-block;width:22px;height:11px;border-radius:3px;border:1.5px solid currentColor;position:relative;opacity:.8}
.sbar i:after{content:"";position:absolute;inset:1.5px;right:5px;background:currentColor;border-radius:1px}
.appbar{display:flex;align-items:center;gap:10px;padding:6px 16px 8px;flex:none}
.appbar svg.lg{width:28px;height:28px;flex:none}
.appbar .nm{font-family:var(--disp);font-weight:700;font-size:17px;letter-spacing:.06em}
.appbar .sp{flex:1}
.lvchip{font-family:var(--disp);font-weight:700;font-size:12px;letter-spacing:.06em;color:var(--gold-tx);background:var(--gold-soft);border-radius:99px;padding:4px 10px;white-space:nowrap}
.iconbtn{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;border:1px solid var(--line);flex:none}
.iconbtn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.scrollarea{flex:1;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
.screen{display:none;padding:4px 16px 28px;animation:enter .32s var(--ease)}
.screen.on{display:block}
@keyframes enter{from{opacity:0;transform:translateY(6px)}}
.tabbar{flex:none;display:grid;grid-template-columns:repeat(5,1fr);border-top:1px solid var(--line);background:var(--bg);padding:6px 6px 22px}
.tabbar a{display:flex;flex-direction:column;align-items:center;gap:2px;text-decoration:none;font-size:11px;font-weight:600;color:var(--mu);padding:6px 0;border-radius:12px;min-height:44px}
.tabbar svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tabbar a[aria-current=page]{color:var(--acc-tx)}
html.nobar .tabbar{display:none}

/* full-length capture mode for QA screenshots */
html.full .phone{height:auto}
html.full .scrollarea{overflow:visible}

@media (max-width:899px){.index{display:none}.stage{padding-top:10px}}
@media (max-width:899px) and (min-width:441px){.index{display:block;position:static;width:100%;max-width:560px}.index ul{flex-direction:row;flex-wrap:wrap;gap:4px}.index h2{margin:8px 0 4px}.stage{flex-direction:column;align-items:center;gap:22px}.icontile{display:none}}
@media (max-width:440px){
  header.top,.index{display:none}
  .stage{padding:0;display:block}
  .phone{width:100%;height:100vh;height:100dvh;border-radius:0;box-shadow:none}
  html.full .phone{height:auto}
  .sbar .scr{display:inline-flex}
  html.idx .index{display:block;position:fixed;inset:0;z-index:60;width:auto;background:var(--page);overflow:auto;padding:22px 20px 40px}
  html.idx .index .icontile{display:none}
  html.idx .index a{font-size:17px;padding:11px 12px}
  html.idx .index .idx-close{display:block}
}
.scr{display:none;align-items:center;gap:6px;font:600 12px var(--body);color:var(--on-acc);background:var(--acc);border:0;border-radius:999px;padding:5px 12px;cursor:pointer}
.idx-close{display:none;margin:0 0 14px auto;font:600 14px var(--body);color:var(--page-tx);background:none;border:1px solid var(--page-line);border-radius:999px;padding:8px 16px;cursor:pointer}

/* ---------- type + primitives ---------- */
h1{font-family:var(--disp);font-size:24px;font-weight:700;letter-spacing:.03em;line-height:1.2;margin:6px 0 4px}
h2{font-family:var(--disp);font-size:15px;font-weight:700;letter-spacing:.08em;line-height:1.3}
h3{font-size:16px;font-weight:600;line-height:1.3}
p{line-height:1.5}
.mu{color:var(--mu)}
.small{font-size:13px}
.xs{font-size:12px}
.num{font-variant-numeric:tabular-nums}
.sc{font-family:var(--disp);font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase}
.row{display:flex;align-items:center;gap:12px;min-width:0}
.between{justify-content:space-between}
.grow{flex:1;min-width:0}
.wrap{flex-wrap:wrap}
.stack{display:flex;flex-direction:column;gap:10px}
.mt8{margin-top:8px}.mt12{margin-top:12px}.mt16{margin-top:16px}.mt20{margin-top:20px}.mb8{margin-bottom:8px}.mb12{margin-bottom:12px}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:14px}
.lede{font-size:15px;color:var(--mu);margin-bottom:14px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 20px;border-radius:99px;font-weight:700;font-size:15px;text-decoration:none;white-space:nowrap;transition:transform .12s var(--std)}
.btn:active{transform:scale(.98)}
.btn.pri{background:var(--acc);color:var(--on-acc)}
.btn.sec{border:1px solid var(--line);background:var(--card)}
.btn.ghost{color:var(--mu);font-weight:600}
.btn.full{width:100%}
.btn[disabled],.btn[aria-disabled=true]{opacity:.45;cursor:not-allowed}
.btnrow{display:flex;gap:10px;margin-top:16px}
.btnrow .btn{flex:1;padding:0 12px}
.tag{display:inline-block;font-family:var(--disp);font-size:11px;font-weight:700;letter-spacing:.08em;color:var(--gold-tx);background:var(--gold-soft);padding:2px 8px;border-radius:99px;white-space:nowrap}
.tag.acc{color:var(--acc-tx);background:var(--acc-soft)}
.tag.plain{color:var(--mu);background:var(--pill)}
.bar{height:10px;border-radius:99px;background:var(--track);overflow:hidden}
.bar>div{height:100%;border-radius:99px;background:var(--acc);transition:width .5s var(--ease)}
.chip{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 14px;border-radius:99px;border:1px solid var(--line);background:var(--card);font-size:14px;font-weight:600}
.chip[aria-pressed=true]{background:var(--acc);border-color:var(--acc);color:var(--on-acc)}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.back{display:inline-flex;align-items:center;gap:4px;font-size:14px;font-weight:600;color:var(--mu);min-height:44px;text-decoration:none}
.back svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.note{font-size:12px;color:var(--mu);margin-top:14px}
.preview{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--mu);border:1px dashed var(--line);border-radius:99px;padding:2px 9px}
.divide>*+*{border-top:1px solid var(--line)}
.li{display:flex;align-items:center;gap:12px;padding:12px 0;min-height:56px}
.li:first-child{padding-top:2px}.li:last-child{padding-bottom:2px}

/* switch */
.sw::before{content:"";position:absolute;inset:-8px -4px}
.sw{width:50px;height:30px;border-radius:99px;background:var(--track);position:relative;flex:none;transition:background .18s var(--std);border:1px solid var(--line)}
.sw:after{content:"";position:absolute;left:3px;top:3px;width:22px;height:22px;border-radius:99px;background:var(--tx);opacity:.85;transition:transform .18s var(--std)}
.sw[aria-checked=true]{background:var(--acc);border-color:var(--acc)}
.sw[aria-checked=true]:after{transform:translateX(20px);background:var(--on-acc);opacity:1}
.swrow{display:flex;align-items:center;gap:12px;min-height:44px}
.seg{display:flex;background:var(--pill);border-radius:99px;padding:3px;gap:2px}
.seg button{flex:1;min-height:40px;border-radius:99px;font-size:14px;font-weight:600;color:var(--mu);padding:0 10px}
.seg button[aria-pressed=true]{background:var(--card);color:var(--tx);box-shadow:0 1px 4px var(--shadow)}

/* radar */
.radar{display:block;overflow:visible}
.radar .grid{fill:none;stroke:var(--line);stroke-width:1}
.radar .ghost{fill:none;stroke:var(--ghost);stroke-width:1.6;stroke-dasharray:4 3;stroke-linejoin:round}
.radar .shape{fill:url(#rfill);stroke:var(--acc);stroke-width:2.2;stroke-linejoin:round;filter:url(#glow)}
.radar .pt{fill:var(--acc)}
.radar .lab{font:600 9.5px var(--body);fill:var(--mu);letter-spacing:.04em}
.radar .lab.f{fill:var(--acc-tx)}
.radar .val{font:700 10px var(--body);fill:var(--tx)}
.radar .core{fill:var(--bg);stroke:var(--gold);stroke-width:1.6}
.radar .lvn{font:700 19px var(--disp);fill:var(--gold-tx)}
.radar .lvt{font:600 6.5px var(--disp);fill:var(--mu);letter-spacing:.14em}
.radar.draw .shape{animation:grow 1s var(--ease) both}
@keyframes grow{from{transform:scale(.2);opacity:0}}
.radar .shape{transform-origin:120px 120px}
.legend{display:flex;gap:14px;justify-content:center;font-size:12px;color:var(--mu)}
.legend i{display:inline-block;width:16px;height:0;border-top:2px solid var(--acc);vertical-align:middle;margin-right:6px}
.legend i.g{border-top:2px dashed var(--ghost)}

/* stat list */
.stl{display:grid;grid-template-columns:1fr 1fr;gap:6px 18px;font-size:14px}
.stl div{display:flex;justify-content:space-between;gap:8px;padding:3px 0;border-bottom:1px solid var(--line)}
.stl b{font-variant-numeric:tabular-nums}
.stl .f span{color:var(--acc-tx);font-weight:600}
.focus{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.fslot{min-height:72px;border-radius:16px;border:1px solid var(--line);background:var(--card2);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:6px;text-align:center}
.fslot b{font-family:var(--disp);font-size:14px;letter-spacing:.04em}
.fslot.on{border-color:var(--acc);background:var(--acc-soft)}
.fslot.empty{border-style:dashed;color:var(--mu)}
.picker{display:none;margin-top:10px}
.picker.open{display:block}

/* habits (Today) */
.xphead{display:flex;align-items:flex-end;justify-content:space-between;gap:10px}
.xpbig{font-family:var(--disp);font-size:34px;font-weight:700;line-height:1.1;font-variant-numeric:tabular-nums}
.hab{position:relative;padding:14px;transition:box-shadow .4s var(--ease),border-color .4s var(--ease)}
.hab .top{display:flex;gap:12px;align-items:center}
.h-name{font-weight:650;font-size:17px;line-height:1.25}
.h-sub{font-size:13px;color:var(--mu);margin-top:2px;line-height:1.4}
.h-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;padding-top:10px;border-top:1px solid var(--line);font-size:13px;color:var(--mu)}
.h-meta .swrow{min-height:44px;gap:8px}
.h-meta a{font-weight:600;color:var(--acc-tx);text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.hab.done{border-color:color-mix(in srgb,var(--acc) 55%,var(--line))}
.hab.bad .h-name::after{content:"bad-day version";display:inline-block;margin-left:8px;vertical-align:2px;font-size:11px;font-weight:700;color:var(--gold-tx);background:var(--gold-soft);padding:1px 7px;border-radius:99px}
.chk{flex:none;width:68px;height:68px;border-radius:50%;position:relative;display:grid;place-items:center;color:var(--tx);touch-action:none;-webkit-user-select:none;user-select:none}
.chk .ring{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}
.chk .ring circle{fill:none;stroke-width:5}
.chk .ring .bg{stroke:color-mix(in srgb,var(--mu) 45%,var(--track))}
.chk .ring .fg{stroke:var(--acc);stroke-linecap:round;stroke-dasharray:195;stroke-dashoffset:195}
.chk.holding .ring .fg{transition:stroke-dashoffset .6s linear;stroke-dashoffset:0}
.chk .in{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:var(--card2);border:1px solid var(--line);transition:background .2s var(--std),transform .15s var(--std)}
.chk.holding .in{transform:scale(.94)}
.chk .in svg{width:26px;height:26px;overflow:visible}
.chk .in path{fill:none;stroke:currentColor;stroke-width:3.4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:24;stroke-dashoffset:24;transition:stroke-dashoffset .32s var(--ease) .05s}
.chk .hint{position:absolute;bottom:-2px;left:50%;transform:translateX(-50%);font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--mu);background:var(--card);padding:0 4px;border-radius:6px}
.chk[aria-pressed=true] .in{background:var(--acc);border-color:var(--acc);color:var(--on-acc)}
.chk[aria-pressed=true] .in path{stroke-dashoffset:0}
.chk[aria-pressed=true] .ring .fg{stroke-dashoffset:0}
.chk[aria-pressed=true] .hint{display:none}
.chk.pop .in{animation:pop .42s var(--ease)}
@keyframes pop{35%{transform:scale(.86)}70%{transform:scale(1.08)}}
.floater{position:absolute;right:18px;top:-8px;font-weight:700;font-size:14px;color:var(--acc-tx);pointer-events:none;animation:float .9s var(--ease) forwards}
@keyframes float{0%{opacity:0;transform:translateY(8px)}20%{opacity:1}100%{opacity:0;transform:translateY(-22px)}}
.perfect{display:none;text-align:center;padding:14px;border-radius:var(--r);background:linear-gradient(135deg,var(--gold-soft),var(--acc-soft));border:1px solid color-mix(in srgb,var(--gold) 50%,transparent);margin-bottom:12px}
.perfect b{font-family:var(--disp);font-size:18px;letter-spacing:.06em;color:var(--gold-tx)}
.allday.glow .perfect{display:block;animation:enter .5s var(--ease)}
.allday.glow .hab{box-shadow:0 0 0 1px var(--gold),0 0 26px -6px var(--gold)}
.toast{position:absolute;left:16px;right:16px;bottom:86px;background:var(--tx);color:var(--bg);border-radius:16px;padding:10px 10px 10px 16px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:14px;font-weight:600;transform:translateY(20px);opacity:0;pointer-events:none;transition:all .25s var(--ease);z-index:5}
.toast.show{transform:none;opacity:1;pointer-events:auto}
.toast button{color:var(--acc);font-weight:800;min-height:40px;padding:0 12px}
html[data-theme=light] .toast button{color:#ffb070}

/* history grid */
.hgrid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.hgrid .d{aspect-ratio:1;border-radius:8px;background:var(--track);position:relative}
.hgrid .d.F{background:var(--acc)}
.hgrid .d.B{background:color-mix(in srgb,var(--acc) 38%,var(--track))}
.hgrid .d.B::after{content:"";position:absolute;inset:34%;border-radius:50%;background:var(--acc)}
.hgrid .d.P{background:transparent;border:1.5px dashed var(--line)}
.hgrid .wk{font-size:11px;color:var(--mu);text-align:center;font-weight:600}
.hkey{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;color:var(--mu);margin-top:10px}
.hkey span{display:inline-flex;align-items:center;gap:6px}
.hkey i{width:12px;height:12px;border-radius:4px;display:inline-block;background:var(--track);position:relative}
.hkey i.F{background:var(--acc)}
.hkey i.B{background:color-mix(in srgb,var(--acc) 38%,var(--track))}
.hkey i.B::after{content:"";position:absolute;inset:3.5px;border-radius:50%;background:var(--acc)}
.hkey i.P{background:transparent;border:1.5px dashed var(--line)}
.kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.kpi{background:var(--card2);border:1px solid var(--line);border-radius:16px;padding:10px;text-align:center}
.kpi b{display:block;font-family:var(--disp);font-size:22px;line-height:1.2;font-variant-numeric:tabular-nums}
.kpi span{font-size:12px;color:var(--mu)}

/* tier path */
.path{display:flex;align-items:flex-start;position:relative;margin-top:6px}
.path::before{content:"";position:absolute;left:14px;right:14px;top:13px;height:3px;background:var(--track);border-radius:3px}
.path .st{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;position:relative;text-align:center;min-width:0}
.path .dot{width:28px;height:28px;border-radius:50%;background:var(--card2);border:2px solid var(--line);display:grid;place-items:center;font-size:11px;font-weight:800}
.path .st.done .dot{background:var(--acc-soft);border-color:var(--acc)}
.path .st.now .dot{background:var(--acc);border-color:var(--acc);color:var(--on-acc);box-shadow:0 0 0 5px var(--acc-soft)}
.path .st.up .dot{border-color:var(--acc);border-style:dashed}
.path .st.goal .dot{border-color:var(--gold);color:var(--gold-tx)}
.path .st b{font-size:13px;font-variant-numeric:tabular-nums}
.path .st span{font-size:11px;color:var(--mu);line-height:1.2}

/* offers */
.hero{text-align:center;padding:18px 6px 4px}
.hero svg{width:120px;height:120px;margin:0 auto 6px;display:block}
.facts{display:flex;flex-direction:column;gap:8px}
.fact{display:flex;align-items:center;gap:10px;font-size:15px}
.fact svg{width:22px;height:22px;flex:none;fill:none;stroke:var(--acc-tx);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.opts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.opts .chip{justify-content:center;padding:0 6px}
.msg{display:none;margin-top:12px;padding:12px;border-radius:16px;background:var(--pill);font-size:14px}
.msg.show{display:block}

/* queue */
.cap{display:flex;align-items:center;gap:12px}
.pips{display:flex;gap:6px}
.pips i{width:30px;height:10px;border-radius:99px;background:var(--track)}
.pips i.on{background:var(--acc)}
.qn{width:30px;height:30px;border-radius:50%;flex:none;display:grid;place-items:center;font-family:var(--disp);font-weight:700;font-size:13px;background:var(--pill);color:var(--mu)}
.lvchip{text-decoration:none}
.xpcount{display:flex;flex-direction:column;align-items:flex-end;text-align:right;text-decoration:none;color:inherit;min-height:44px;justify-content:flex-end}
.xpcount .xs{margin-top:2px}
.xplink{display:inline-flex;align-items:center;min-height:44px;font-size:13px;font-weight:600;color:var(--acc-tx);text-decoration:none}
.pico{width:40px;height:40px;border-radius:12px;flex:none;display:grid;place-items:center;background:var(--acc-soft);color:var(--acc-tx)}
.pico svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pico.lg{width:56px;height:56px;border-radius:16px}.pico.lg svg{width:30px;height:30px}
.pico.xl{width:72px;height:72px;border-radius:20px;margin:0 auto}.pico.xl svg{width:38px;height:38px;margin:0}
.pausehero{text-align:center;padding:20px 14px}.pausehero .pico{margin:0 auto}
.dotok{width:8px;height:8px;border-radius:50%;background:var(--acc);flex:none}
.held .li{min-height:44px}
.modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.mode{display:flex;flex-direction:column;align-items:center;gap:4px;padding:14px 6px;border-radius:var(--r);border:1px solid var(--line);background:var(--card);color:inherit;font:inherit;cursor:pointer;min-height:44px}
.mode[aria-pressed="true"]{border-color:var(--acc);background:var(--acc-soft)}
.mode b{font-size:14px}
.xpt b{font-family:var(--disp);font-variant-numeric:tabular-nums}
.ladder .you{color:var(--tx)}
.dayb{font-family:var(--disp);font-size:12px;font-weight:700;color:var(--acc-tx);background:var(--acc-soft);padding:3px 8px;border-radius:99px;white-space:nowrap;flex:none}
.logoopt .tile{width:84px;height:84px;border-radius:22px;background:var(--card2);border:1px solid var(--line);display:grid;place-items:center;flex:none}
.logoopt .tile svg{width:60px;height:60px}
.logoopt.pick{border-color:var(--acc)}
.logoopt h3{font-size:15px}
.mini{display:inline-flex;align-items:center;gap:6px;font-family:var(--disp);font-weight:700;font-size:15px}
.mini svg{width:28px;height:28px}
.qn.up{background:var(--acc);color:var(--on-acc)}
.next{border:1px solid color-mix(in srgb,var(--acc) 50%,var(--line));background:linear-gradient(160deg,var(--acc-soft),transparent 70%)}

/* quests */
.qhead{display:flex;align-items:center;gap:10px;justify-content:space-between}
.cl{list-style:none;margin-top:8px}
.cl li+li{border-top:1px solid var(--line)}
.cb{display:flex;align-items:center;gap:12px;width:100%;text-align:left;min-height:48px;padding:6px 0;font-size:15px}
.cb .box{width:24px;height:24px;border-radius:8px;border:2px solid var(--line);flex:none;display:grid;place-items:center}
.cb .box svg{width:14px;height:14px;fill:none;stroke:var(--on-acc);stroke-width:3.4;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.cb[aria-checked=true] .box{background:var(--acc);border-color:var(--acc)}
.cb[aria-checked=true] .box svg{opacity:1}
.cb[aria-checked=true] .t{color:var(--mu);text-decoration:line-through;text-decoration-color:color-mix(in srgb,var(--mu) 60%,transparent)}
.cb .when{margin-left:auto;font-size:12px;color:var(--mu);white-space:nowrap;padding-left:8px}
.qbar{height:6px;border-radius:9px;background:var(--track);margin-top:10px;overflow:hidden}
.qbar div{height:100%;background:linear-gradient(90deg,var(--g1),var(--g2));border-radius:9px;transition:width .4s var(--ease)}

/* quiz */
.qprog{display:flex;gap:5px;margin:4px 0 18px}
.qprog i{flex:1;height:5px;border-radius:9px;background:var(--track)}
.qprog i.on{background:var(--acc)}
.qq{font-size:22px;font-weight:650;line-height:1.3;margin-bottom:18px;min-height:86px}
.scale{display:flex;flex-direction:column;gap:8px}
.scale button{display:flex;align-items:center;gap:12px;min-height:54px;padding:0 16px;border-radius:16px;border:1px solid var(--line);background:var(--card);font-size:16px;font-weight:600;text-align:left}
.scale button b{width:28px;height:28px;border-radius:50%;background:var(--pill);display:grid;place-items:center;font-size:13px;flex:none}
.scale button[aria-pressed=true]{border-color:var(--acc);background:var(--acc-soft)}
.scale button[aria-pressed=true] b{background:var(--acc);color:var(--on-acc)}
.rgroup{margin-top:18px}
.ritem{padding:12px 0;border-top:1px solid var(--line)}
.ritem p{font-size:15px;margin-bottom:8px}
.r5{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
.r5 button{min-height:44px;border-radius:12px;border:1px solid var(--line);background:var(--card);font-weight:700;font-variant-numeric:tabular-nums}
.r5 button[aria-pressed=true]{background:var(--acc);border-color:var(--acc);color:var(--on-acc)}
.skip{font-size:13px;font-weight:600;color:var(--mu);min-height:40px;margin-top:4px;padding:0 2px}
.skip[aria-pressed=true]{color:var(--acc-tx)}
.r5key{display:flex;justify-content:space-between;font-size:12px;color:var(--mu);margin-top:4px}
.stickyfoot{position:sticky;bottom:0;padding:12px 0 4px;background:linear-gradient(transparent,var(--bg) 30%)}
.delta{font-size:12px;font-weight:700;color:var(--acc-tx);margin-left:4px}

/* badges */
.bgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.bdg{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;font-size:11.5px;line-height:1.25;color:var(--mu)}
.coin{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 35% 30%,#ffe9b0,var(--gold) 60%,#9c7420);box-shadow:inset 0 0 0 3px rgba(255,255,255,.25),0 6px 14px -6px var(--gold)}
.coin svg{width:26px;height:26px;fill:none;stroke:#3a2800;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.coin.lock{background:var(--pill);box-shadow:inset 0 0 0 2px var(--line)}
.coin.lock svg{stroke:var(--mu)}
.bgrid.hidden{display:none}
.avatar{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;font-family:var(--disp);font-weight:700;font-size:26px;background:linear-gradient(160deg,var(--acc),#c2410c);color:var(--on-acc);flex:none}

@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
