html{background:#111827}
:root{
  --bg:#111827;--bg2:#1f2937;--bg3:#374151;
  --border:#374151;--border2:#4b5563;
  --text:#f9fafb;--text2:#d1d5db;--muted:#9ca3af;
  --ok:#10b981;--bad:#ef4444;--gold:#f59e0b;
  --radius:12px;--radius-lg:18px;
}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;background:var(--bg);color:var(--text);min-height:100vh;-webkit-font-smoothing:antialiased}
.screen{display:none!important}
.screen.active{display:block!important;animation:fadeIn .18s ease}
@keyframes fadeIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
#splash{flex-direction:column;align-items:center;justify-content:center;min-height:100vh;padding:2rem}
#splash.active{display:flex!important}

/* SPLASH */
.splash-logo{font-size:2rem;font-weight:800;letter-spacing:-0.5px;color:var(--text);margin-bottom:.25rem}
.splash-logo span{color:var(--gold)}
.splash-sub{color:var(--muted);font-size:.9rem;margin-bottom:2.5rem;text-align:center}
.ucards{display:flex;gap:1rem;flex-wrap:wrap;justify-content:center;margin-bottom:2rem;max-width:900px}
.ucard{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.5rem;width:195px;cursor:pointer;transition:transform .2s,box-shadow .2s,border-color .2s;text-align:center}
.ucard:hover{transform:translateY(-4px);box-shadow:0 12px 32px rgba(0,0,0,.4);border-color:var(--border2)}
.ucard img{width:88px;height:88px;border-radius:50%;object-fit:cover;border:3px solid;display:block;margin:0 auto .85rem}
.ucard h2{font-size:1.2rem;font-weight:700;margin-bottom:.2rem}
.ucard p{font-size:.72rem;color:var(--muted);margin-bottom:.6rem;line-height:1.4}
.ucard .ustats{font-size:.72rem;color:var(--muted);margin-bottom:.75rem}
.streak-badge{display:inline-flex;align-items:center;gap:.3rem;background:rgba(245,158,11,.1);border:1px solid rgba(245,158,11,.25);border-radius:20px;padding:.2rem .65rem;font-size:.72rem;font-weight:600;color:var(--gold)}
.ucard button{width:100%;padding:.55rem;border:none;border-radius:8px;font-size:.85rem;font-weight:600;cursor:pointer;color:#fff;transition:opacity .15s}
.ucard button:hover{opacity:.88}

/* LEADERBOARD */
.splash-lb{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.25rem;max-width:480px;width:100%}
.lb-title{font-size:.8rem;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:1px;margin-bottom:.85rem}
.lbrow{display:flex;align-items:center;gap:.65rem;padding:.45rem 0;border-bottom:1px solid var(--border)}
.lbrow:last-child{border-bottom:none}
.lbrow img{width:28px;height:28px;border-radius:50%;object-fit:cover}
.lbrow .n{font-weight:600;flex:1;font-size:.88rem}
.lbrow .t{color:var(--muted);font-size:.76rem}
.lbrow .s{font-weight:700;color:var(--gold);font-size:.9rem}

/* NAV */
nav{position:sticky;top:0;z-index:100;background:rgba(17,24,39,.95);backdrop-filter:blur(12px);border-bottom:1px solid var(--border);padding:.7rem 1.25rem;display:flex;align-items:center;gap:.75rem}
.nlogo{font-size:1rem;font-weight:800;letter-spacing:-0.3px;color:var(--text);flex:1;cursor:pointer}
.nlogo span{color:var(--gold)}
.nuser{display:flex;align-items:center;gap:.45rem;font-weight:600;font-size:.82rem}
.nuser img{width:26px;height:26px;border-radius:50%;object-fit:cover;border:2px solid}
.ntimer{background:var(--bg3);border-radius:6px;padding:.22rem .6rem;font-size:.78rem;font-weight:600;color:var(--muted);font-variant-numeric:tabular-nums}
.nbk{background:transparent;border:1px solid var(--border2);color:var(--muted);border-radius:7px;padding:.28rem .65rem;cursor:pointer;font-size:.78rem;transition:all .15s}
.nbk:hover{color:var(--text);border-color:var(--text)}

/* DASHBOARD */
.wrap{padding:1.5rem;max-width:1040px;margin:0 auto}
.dash-greeting{font-size:1.5rem;font-weight:700;letter-spacing:-0.3px;margin-bottom:.15rem}
.dash-sub{color:var(--muted);font-size:.86rem;margin-bottom:1.5rem}
.stats-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:.75rem;margin-bottom:1.75rem}
.stat{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);padding:.9rem 1rem;text-align:center}
.stat .n{font-size:1.6rem;font-weight:800;letter-spacing:-0.5px}
.stat .l{font-size:.7rem;color:var(--muted);margin-top:.1rem;text-transform:uppercase;letter-spacing:.5px}
.subjects-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:.85rem}
.scard{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.2rem;cursor:pointer;transition:all .2s;position:relative;overflow:hidden}
.scard::before{content:'';position:absolute;top:0;left:0;right:0;height:3px}
.scard:hover{border-color:var(--border2);transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,.35)}
.scard .icon{font-size:1.75rem;margin-bottom:.5rem;display:block}
.scard .stitle{font-size:1rem;font-weight:700;margin-bottom:.15rem;letter-spacing:-0.2px}
.scard .sdesc{font-size:.72rem;color:var(--muted);margin-bottom:.75rem;line-height:1.4}
.bar{height:3px;background:var(--bg3);border-radius:2px;overflow:hidden;margin-bottom:.3rem}
.fill{height:100%;border-radius:2px;transition:width .6s ease}
.stxt{font-size:.7rem;color:var(--muted)}

/* SUBJECT PAGE */
.shdr{display:flex;align-items:flex-start;gap:.9rem;margin-bottom:1.35rem}
.shdr .ico{font-size:2rem;margin-top:2px}
.shdr h1{font-size:1.35rem;font-weight:700;letter-spacing:-0.3px;margin-bottom:.1rem}
.shdr p{font-size:.76rem;color:var(--muted)}
.tabs{display:flex;gap:.3rem;flex-wrap:wrap;margin-bottom:1.25rem}
.tab{padding:.38rem .9rem;border-radius:6px;border:1px solid var(--border);background:transparent;color:var(--muted);font-size:.8rem;font-weight:600;cursor:pointer;transition:all .15s;font-family:inherit}
.tab:hover{color:var(--text);border-color:var(--border2);background:var(--bg2)}
.tab.on{color:#fff;border-color:transparent}
.panel{display:none}.panel.on{display:block}

/* NOTES */
.nblock{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);border-left:3px solid;padding:1.1rem;margin-bottom:.75rem}
.nblock h3{font-size:.9rem;font-weight:700;margin-bottom:.6rem}
.nblock li{list-style:none;padding:.28rem 0 .28rem 1.1rem;position:relative;font-size:.83rem;line-height:1.55;color:var(--text2)}
.nblock li::before{content:'–';position:absolute;left:0;color:var(--muted);font-size:.85rem}

/* FLASHCARDS */
.fcwrap{perspective:1000px;max-width:540px;margin:0 auto 1.1rem}
.fc{position:relative;height:230px;transform-style:preserve-3d;transition:transform .45s;cursor:pointer}
.fc.flip{transform:rotateY(180deg)}
.fcf,.fcb{position:absolute;inset:0;border-radius:var(--radius-lg);padding:1.6rem;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;backface-visibility:hidden;border:1px solid var(--border)}
.fcf{background:var(--bg2)}
.fcb{background:var(--bg3);transform:rotateY(180deg)}
.fctag{font-size:.65rem;text-transform:uppercase;letter-spacing:1.5px;color:var(--muted);margin-bottom:.7rem;font-weight:600}
.fctxt{font-size:.97rem;font-weight:500;line-height:1.6;color:var(--text)}
.fcbtn{display:flex;justify-content:center;gap:.4rem;flex-wrap:wrap;margin-bottom:.6rem}
.fccnt{text-align:center;color:var(--muted);font-size:.78rem;margin-bottom:.6rem}

/* QUIZ */
.qhdr{display:flex;align-items:center;gap:.9rem;margin-bottom:1rem}
.qbar{flex:1;height:3px;background:var(--bg3);border-radius:2px;overflow:hidden}
.qfill{height:100%;border-radius:2px;transition:width .4s}
.qsc{font-weight:700;color:var(--muted);font-size:.82rem;white-space:nowrap;font-variant-numeric:tabular-nums}
.qcard{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.4rem;margin-bottom:.85rem}
.qq{font-size:.97rem;font-weight:600;line-height:1.65;margin-bottom:1rem;color:var(--text)}
.qopts{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
.opt{padding:.8rem .9rem;border-radius:var(--radius);border:1px solid var(--border);background:var(--bg);color:var(--text2);font-size:.84rem;font-weight:500;cursor:pointer;transition:all .15s;text-align:left;font-family:inherit}
.opt:hover:not(:disabled){border-color:var(--border2);background:var(--bg2);color:var(--text)}
.opt.ok{background:rgba(16,185,129,.1);border-color:var(--ok);color:#6ee7b7}
.opt.bad{background:rgba(239,68,68,.08);border-color:var(--bad);color:#fca5a5}
.opt:disabled{cursor:default}
.qfb{padding:.9rem 1.1rem;border-radius:var(--radius);font-weight:600;display:none;align-items:center;gap:.75rem;margin-top:.5rem;border:1px solid}
.qfb.show{display:flex}
.qfb.ok{background:rgba(16,185,129,.06);border-color:rgba(16,185,129,.3)}
.qfb.bad{background:rgba(239,68,68,.06);border-color:rgba(239,68,68,.25)}
.fbimg{width:44px;height:44px;border-radius:50%;object-fit:cover;flex-shrink:0;border:2px solid}
.fbimg.ok{border-color:var(--ok)}.fbimg.bad{border-color:var(--bad)}
.fbtxt{font-size:.84rem;line-height:1.4;color:var(--text)}
.fbexp{font-size:.77rem;color:var(--muted);margin-top:.2rem;font-weight:400;line-height:1.5}
.qres{text-align:center;padding:2.5rem 1rem}
.qbig{font-size:3.5rem;font-weight:800;margin-bottom:.3rem;letter-spacing:-1px}
.rmsg{font-size:1rem;color:var(--muted);margin-bottom:1rem;line-height:1.5}
.rimg{width:96px;height:96px;border-radius:50%;object-fit:cover;margin:0 auto .85rem;display:block;border:3px solid var(--gold)}

/* SORT */
.sgame{max-width:680px;margin:0 auto}
.sinstr{text-align:center;color:var(--muted);font-size:.82rem;margin-bottom:1rem}
.spool{display:flex;flex-wrap:wrap;gap:.4rem;justify-content:center;margin-bottom:1.1rem;min-height:40px;padding:.5rem;background:var(--bg);border-radius:var(--radius);border:1px solid var(--border)}
.chip{background:var(--bg2);border:1px solid var(--border2);border-radius:6px;padding:.3rem .75rem;font-size:.78rem;font-weight:500;cursor:grab;user-select:none;color:var(--text2);transition:border-color .15s}
.chip:hover{border-color:var(--text);color:var(--text)}
.chip:active{cursor:grabbing}
.chip.drag{opacity:.35}
.sbuckets{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:.65rem;margin-bottom:1rem}
.sbucket{background:var(--bg);border:1px dashed var(--border2);border-radius:var(--radius);min-height:80px;padding:.7rem;text-align:center;transition:all .18s}
.sbucket.over{border-color:var(--gold);background:rgba(245,158,11,.05)}
.sbucket h4{font-size:.7rem;text-transform:uppercase;letter-spacing:.8px;color:var(--muted);margin-bottom:.4rem;font-weight:600}
.bchips{display:flex;flex-wrap:wrap;gap:.25rem;justify-content:center}
.sfb{text-align:center;padding:.7rem;border-radius:var(--radius);font-weight:600;display:none;margin-top:.35rem;font-size:.85rem}
.sfb.show{display:block}
.sfb.ok{background:rgba(16,185,129,.1);color:#6ee7b7;border:1px solid rgba(16,185,129,.3)}
.sfb.bad{background:rgba(239,68,68,.08);color:#fca5a5;border:1px solid rgba(239,68,68,.2)}

/* SHOOTOUT */
.shoot-wrap{max-width:680px;margin:0 auto}
.shoot-header{text-align:center;margin-bottom:1.5rem}
.shoot-header h2{font-size:1.25rem;font-weight:700;margin-bottom:.3rem;letter-spacing:-0.3px}
.shoot-header p{color:var(--muted);font-size:.82rem;line-height:1.5}
.stopwatch{font-size:3.5rem;font-weight:800;font-family:'SF Mono',Monaco,monospace;text-align:center;letter-spacing:2px;margin:.75rem 0;transition:color .3s}
.stopwatch.running{color:var(--ok)}
.stopwatch.stopped{color:var(--bad)}
.stopwatch.win{color:var(--gold)}
.sw-status{text-align:center;font-size:.82rem;font-weight:600;margin-bottom:1rem;min-height:1.2em;color:var(--muted)}
.shoot-q-dots{display:flex;justify-content:center;gap:.5rem;margin-bottom:1rem}
.qdot{width:10px;height:10px;border-radius:50%;background:var(--bg3);transition:all .3s}
.qdot.done{background:var(--ok)}
.qdot.current{background:var(--gold);animation:pulse .6s ease infinite alternate}
.qdot.fail{background:var(--bad)}
@keyframes pulse{0%{transform:scale(1)}100%{transform:scale(1.3)}}
.shoot-q-box{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.35rem;margin-bottom:.85rem}
.shoot-q-box .qq{font-size:.97rem;font-weight:600;line-height:1.65;margin-bottom:1rem}
.shoot-targets{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
.stgt{padding:.75rem .9rem;border-radius:var(--radius);border:1px solid var(--border);background:var(--bg);color:var(--text2);font-size:.86rem;font-weight:500;cursor:pointer;transition:all .15s;text-align:center;font-family:inherit}
.stgt:hover:not(:disabled){border-color:var(--border2);background:var(--bg2);color:var(--text);transform:scale(1.02)}
.stgt.hit{background:rgba(16,185,129,.12);border-color:var(--ok);color:#6ee7b7}
.stgt.miss{background:rgba(239,68,68,.1);border-color:var(--bad);color:#fca5a5}
.stgt:disabled{cursor:default}
.penalty-overlay{position:fixed;inset:0;background:rgba(239,68,68,.12);z-index:500;display:flex;flex-direction:column;align-items:center;justify-content:center;backdrop-filter:blur(4px)}
.penalty-count{font-size:5rem;font-weight:800;color:var(--bad);font-family:monospace}
.penalty-msg{font-size:1rem;font-weight:600;color:var(--bad);margin-top:.5rem}
.shoot-pb{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);padding:.9rem;margin-bottom:.75rem}
.shoot-pb h4{font-size:.72rem;text-transform:uppercase;letter-spacing:.8px;color:var(--muted);margin-bottom:.55rem;font-weight:600}
.pb-row{display:flex;align-items:center;gap:.55rem;padding:.28rem 0;font-size:.82rem}
.pb-rank{font-weight:700;color:var(--gold);width:1.2rem}
.pb-name{flex:1;font-weight:600}
.pb-time{font-family:monospace;font-weight:700;font-size:.85rem}
.pb-you{color:var(--ok)}
.shoot-result{text-align:center;padding:2rem 1rem}
.shoot-result .big{font-size:3rem;font-weight:800;font-family:monospace;margin-bottom:.5rem;color:var(--gold)}
.shoot-result .rimg{width:90px;height:90px;border-radius:50%;object-fit:cover;margin:0 auto .75rem;display:block;border:3px solid var(--gold)}

/* BUTTONS */
.btn{padding:.6rem 1.2rem;border-radius:8px;border:none;font-size:.84rem;font-weight:600;cursor:pointer;transition:all .15s;font-family:inherit}
.btn:hover{opacity:.88;transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.bp{color:#fff}
.bs{background:var(--bg2);color:var(--text2);border:1px solid var(--border2)}
.bs:hover{color:var(--text)}
.bok{background:var(--ok);color:#fff}

/* CONFETTI */
.conf{position:fixed;width:7px;height:7px;border-radius:1px;pointer-events:none;z-index:9999;animation:fall 2s linear forwards}
@keyframes fall{0%{transform:translateY(-50px) rotate(0);opacity:1}100%{transform:translateY(100vh) rotate(480deg);opacity:0}}

/* SUBJECT ACCENT COLOURS */
.s-englit::before{background:#e11d48}.s-englit .fill{background:#e11d48}
.s-englang::before{background:#f97316}.s-englang .fill{background:#f97316}
.s-bio::before{background:#10b981}.s-bio .fill{background:#10b981}
.s-chem::before{background:#3b82f6}.s-chem .fill{background:#3b82f6}
.s-phys::before{background:#f59e0b}.s-phys .fill{background:#f59e0b}
.s-hist::before{background:#8b5cf6}.s-hist .fill{background:#8b5cf6}
.s-maths::before{background:#06b6d4}.s-maths .fill{background:#06b6d4}
.s-pe::before{background:#f97316}.s-pe .fill{background:#f97316}
.s-geography::before{background:#0891b2}.s-geography .fill{background:#0891b2}
.s-hsc::before{background:#ec4899}.s-hsc .fill{background:#ec4899}
.s-food::before{background:#d97706}.s-food .fill{background:#d97706}
.s-french::before{background:#3b82f6}.s-french .fill{background:#3b82f6}
.s-german::before{background:#dc2626}.s-german .fill{background:#dc2626}
.s-art::before{background:#8b5cf6}.s-art .fill{background:#8b5cf6}

@keyframes shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}
.shake{animation:shake .3s ease}
@media(max-width:560px){.qopts,.shoot-targets{grid-template-columns:1fr}.ucards{flex-direction:column;align-items:center}.subjects-grid{grid-template-columns:1fr}}

/* EXAM */
.exam-overview{max-width:700px;margin:0 auto;padding:1rem}
.exam-overview h2{text-align:center;margin-bottom:1.5rem;font-size:1.25rem;font-weight:700}
.exam-start-card{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius-lg);padding:2rem;text-align:center;max-width:480px;margin:0 auto}
.exam-start-card h3{font-size:1.1rem;font-weight:700;margin-bottom:.5rem}
.exam-start-card p{color:var(--muted);font-size:.85rem;margin-bottom:1.25rem;line-height:1.5}
.exam-hdr{text-align:center;margin-bottom:1rem;position:sticky;top:0;background:var(--bg);z-index:10;padding:.5rem 0;border-bottom:1px solid var(--border)}
.exam-hdr h2{font-size:1rem;font-weight:700;margin-bottom:.25rem}
.exam-timer-display{font-size:1.5rem;font-weight:800;color:var(--gold);margin:.2rem 0;font-variant-numeric:tabular-nums}
.exam-progress-info{color:var(--muted);font-size:.78rem;margin-bottom:.35rem}
.exam-progress-bar-wrap{height:4px;background:var(--bg3);border-radius:2px;overflow:hidden;max-width:400px;margin:0 auto}
.exam-progress-fill{height:100%;background:var(--ok);transition:width .3s}
.eq-nav-container{display:flex;flex-wrap:wrap;gap:.3rem;margin-bottom:.85rem;max-width:700px;margin-left:auto;margin-right:auto}
.eq-nav-btn{padding:.3rem .6rem;background:var(--bg3);border:1px solid var(--border);border-radius:5px;font-size:.75rem;cursor:pointer;font-family:inherit;color:var(--muted);transition:all .15s}
.eq-nav-btn.on{background:var(--ok);color:#fff;border-color:var(--ok)}
.eq-nav-btn.answered{background:var(--bg2);border-color:var(--ok);color:var(--ok)}
.exam-q-card{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.4rem;margin:.5rem auto;max-width:700px}
.exam-q-meta{color:var(--muted);font-size:.72rem;margin-bottom:.5rem;text-transform:uppercase;letter-spacing:.5px;font-weight:600}
.exam-q-card h3{font-size:.97rem;font-weight:600;line-height:1.6;margin-bottom:1rem}
.eq-opts{display:flex;flex-direction:column;gap:.45rem}
.eq-opt-btn{display:flex;align-items:center;gap:.75rem;padding:.7rem 1rem;background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);cursor:pointer;text-align:left;font-size:.86rem;font-family:inherit;transition:all .15s;width:100%;color:var(--text2)}
.eq-opt-btn:hover{border-color:var(--border2);background:var(--bg2);color:var(--text)}
.eq-opt-btn.sel{border-color:var(--ok);background:rgba(16,185,129,.08);color:var(--text)}
.eq-opt-letter{width:26px;height:26px;background:var(--bg3);border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.78rem;flex-shrink:0}
.eq-opt-btn.sel .eq-opt-letter{background:var(--ok);color:#fff}
.exam-submit-card{background:var(--bg2);border:1px solid var(--ok);border-radius:var(--radius);padding:1.25rem;text-align:center;max-width:500px;margin:1rem auto}
.exam-submit-card h3{color:var(--ok);margin-bottom:.4rem;font-size:.95rem}
.results-panel{max-width:600px;margin:0 auto;padding:.5rem}
.results-grade{border-radius:var(--radius-lg);padding:1.75rem;margin-bottom:1rem;text-align:center}
.rg-num{font-size:4.5rem;font-weight:900;line-height:1;color:#fff}
.rg-label{font-size:1rem;color:rgba(255,255,255,.85);margin-top:.15rem}
.rg-pct{font-size:.88rem;color:rgba(255,255,255,.7);margin-top:.1rem}
.results-desc{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);padding:1rem;margin-bottom:.65rem}
.results-desc h3{font-size:.95rem;font-weight:700;margin-bottom:.3rem}
.results-desc p{font-size:.84rem;color:var(--text2);line-height:1.55}
.topic-strong,.topic-weak{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);padding:1rem;margin-bottom:.65rem}
.topic-strong h4,.topic-weak h4{font-size:.72rem;text-transform:uppercase;letter-spacing:.8px;color:var(--muted);margin-bottom:.6rem;font-weight:600}
.topic-bar{display:flex;align-items:center;gap:.65rem;margin:.35rem 0;font-size:.82rem}
.tb-label{min-width:100px;flex-shrink:0;color:var(--text2)}
.tb-track{flex:1;height:6px;background:var(--bg3);border-radius:3px;overflow:hidden}
.tb-fill{height:100%;border-radius:3px;transition:width .5s}
.tb-pct{min-width:36px;text-align:right;color:var(--muted);font-size:.78rem}
.results-share{display:flex;gap:.5rem;flex-wrap:wrap;justify-content:center;margin-top:.85rem}
.btn-primary{padding:.6rem 1.3rem;border-radius:8px;border:none;font-size:.84rem;font-weight:600;cursor:pointer;background:var(--ok);color:#fff;font-family:inherit;transition:opacity .15s}
.btn-primary:hover{opacity:.85}
.btn-secondary{padding:.6rem 1.3rem;border-radius:8px;border:1px solid var(--border2);font-size:.84rem;font-weight:600;cursor:pointer;background:var(--bg2);color:var(--text2);font-family:inherit;transition:all .15s}
.btn-secondary:hover{color:var(--text);border-color:var(--text)}


/* TIMED RECALL */
.tr-wrap{max-width:580px;margin:0 auto}
.tr-header{text-align:center;margin-bottom:1.25rem}
.tr-header h2{font-size:1.2rem;font-weight:700;margin-bottom:.25rem}
.tr-header p{color:var(--muted);font-size:.82rem;line-height:1.5}
.tr-clock{font-size:3rem;font-weight:800;font-family:'SF Mono',Monaco,monospace;text-align:center;color:var(--ok);margin:.5rem 0;letter-spacing:2px}
.tr-clock.warn{color:var(--gold)}
.tr-clock.danger{color:var(--bad)}
.tr-card{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.5rem;text-align:center;margin-bottom:1rem}
.tr-keyword{font-size:1.4rem;font-weight:800;letter-spacing:-0.3px;margin-bottom:.5rem}
.tr-hint{font-size:.78rem;color:var(--muted);margin-bottom:1rem}
.tr-input{width:100%;padding:.75rem 1rem;border-radius:var(--radius);border:1px solid var(--border2);background:var(--bg3);color:var(--text);font-size:.95rem;font-family:inherit;outline:none;transition:border-color .15s}
.tr-input:focus{border-color:var(--ok)}
.tr-input.correct{border-color:var(--ok);background:rgba(16,185,129,.08)}
.tr-input.wrong{border-color:var(--bad);background:rgba(239,68,68,.06)}
.tr-dots{display:flex;justify-content:center;gap:.4rem;margin:.75rem 0}
.tr-dot{width:9px;height:9px;border-radius:50%;background:var(--bg3);transition:all .3s}
.tr-dot.done{background:var(--ok)}
.tr-dot.current{background:var(--gold)}
.tr-dot.wrong{background:var(--bad)}
.tr-result{text-align:center;padding:2rem 1rem}
.tr-score{font-size:3rem;font-weight:800;margin-bottom:.25rem}
.tr-answer-reveal{background:var(--bg3);border-radius:var(--radius);padding:.65rem .9rem;margin:.4rem 0;text-align:left;font-size:.83rem}
.tr-answer-reveal .tr-k{font-weight:700;color:var(--text)}
.tr-answer-reveal .tr-v{color:var(--muted);margin-top:.15rem;font-size:.78rem;line-height:1.4}

/* GAP FILL */
.gf-wrap{max-width:680px;margin:0 auto}
.gf-header{text-align:center;margin-bottom:1.25rem}
.gf-header h2{font-size:1.2rem;font-weight:700;margin-bottom:.25rem}
.gf-header p{color:var(--muted);font-size:.82rem;line-height:1.5}
.gf-progress{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem}
.gf-pbar{flex:1;height:3px;background:var(--bg3);border-radius:2px;overflow:hidden}
.gf-pfill{height:100%;border-radius:2px;transition:width .4s}
.gf-ptext{font-size:.78rem;font-weight:600;color:var(--muted);white-space:nowrap}
.gf-card{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.4rem;margin-bottom:.85rem}
.gf-sentence{font-size:1rem;font-weight:500;line-height:1.8;margin-bottom:1rem;color:var(--text)}
.gf-blank{display:inline-block;border-bottom:2px solid var(--ok);min-width:100px;padding:0 4px;text-align:center;font-weight:700;color:var(--ok)}
.gf-options{display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:.75rem}
.gf-opt{padding:.4rem .85rem;border-radius:6px;border:1px solid var(--border2);background:var(--bg);color:var(--text2);font-size:.83rem;font-weight:500;cursor:pointer;transition:all .15s;font-family:inherit}
.gf-opt:hover{border-color:var(--border2);background:var(--bg2);color:var(--text)}
.gf-opt.used{opacity:.3;pointer-events:none;text-decoration:line-through}
.gf-feedback{padding:.7rem 1rem;border-radius:var(--radius);font-size:.84rem;font-weight:600;margin-bottom:.5rem;display:none}
.gf-feedback.show{display:block}
.gf-feedback.ok{background:rgba(16,185,129,.08);border:1px solid rgba(16,185,129,.3);color:#6ee7b7}
.gf-feedback.bad{background:rgba(239,68,68,.06);border:1px solid rgba(239,68,68,.2);color:#fca5a5}
.gf-result{text-align:center;padding:2rem 1rem}

/* EXPLAIN IT BACK */
.eib-wrap{max-width:640px;margin:0 auto}
.eib-header{text-align:center;margin-bottom:1.25rem}
.eib-header h2{font-size:1.2rem;font-weight:700;margin-bottom:.25rem}
.eib-header p{color:var(--muted);font-size:.82rem;line-height:1.5}
.eib-topic{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.4rem;margin-bottom:.85rem}
.eib-topic-label{font-size:.7rem;text-transform:uppercase;letter-spacing:1px;color:var(--muted);font-weight:600;margin-bottom:.35rem}
.eib-topic-title{font-size:1.1rem;font-weight:700;margin-bottom:.75rem}
.eib-keywords{display:flex;flex-wrap:wrap;gap:.35rem;margin-bottom:.85rem}
.eib-kw{padding:.25rem .65rem;border-radius:5px;background:var(--bg3);border:1px solid var(--border2);font-size:.75rem;font-weight:600;color:var(--muted);transition:all .3s}
.eib-kw.found{background:rgba(16,185,129,.12);border-color:var(--ok);color:var(--ok)}
.eib-textarea{width:100%;min-height:120px;padding:.85rem 1rem;border-radius:var(--radius);border:1px solid var(--border2);background:var(--bg3);color:var(--text);font-size:.88rem;font-family:inherit;line-height:1.6;outline:none;resize:vertical;transition:border-color .15s}
.eib-textarea:focus{border-color:var(--ok)}
.eib-kw-count{font-size:.78rem;color:var(--muted);margin:.5rem 0;text-align:right}
.eib-result{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);padding:1rem;margin-top:.75rem}
.eib-result h4{font-size:.8rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px;color:var(--muted);margin-bottom:.5rem}
.eib-dots{display:flex;justify-content:center;gap:.4rem;margin-bottom:.75rem}

/* ── PROGRESS SCREEN ── */
.prog-wrap{max-width:680px;margin:0 auto;padding:1rem 1rem 4rem;}
.prog-hero{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.5rem;margin-bottom:1.25rem;display:flex;align-items:center;gap:1.25rem;}
.prog-avatar{width:64px;height:64px;border-radius:50%;border:3px solid;object-fit:cover;flex-shrink:0;}
.prog-hero-info h2{margin:0 0 .25rem;font-size:1.3rem;}
.prog-hero-stats{display:flex;gap:1rem;flex-wrap:wrap;margin-top:.5rem;}
.prog-stat{text-align:center;}
.prog-stat .pn{font-size:1.4rem;font-weight:800;line-height:1;}
.prog-stat .pl{font-size:.68rem;text-transform:uppercase;letter-spacing:.6px;color:var(--muted);}
.prog-section-title{font-size:.72rem;text-transform:uppercase;letter-spacing:.8px;color:var(--muted);font-weight:700;margin:1.25rem 0 .6rem;}
.prog-subject-grid{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;}
.prog-subj-card{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);padding:.85rem;cursor:pointer;transition:border-color .2s;}
.prog-subj-card:hover{border-color:var(--muted);}
.prog-subj-head{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem;}
.prog-subj-icon{font-size:1.2rem;}
.prog-subj-name{font-size:.82rem;font-weight:700;flex:1;}
.prog-subj-bar{height:5px;background:var(--border);border-radius:99px;margin-bottom:.35rem;overflow:hidden;}
.prog-subj-fill{height:100%;border-radius:99px;transition:width .5s ease;}
.prog-subj-meta{font-size:.7rem;color:var(--muted);display:flex;justify-content:space-between;}
.prog-exam-list{display:flex;flex-direction:column;gap:.5rem;}
.prog-exam-row{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);padding:.75rem 1rem;display:flex;align-items:center;gap:.85rem;}
.prog-exam-grade{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.1rem;font-weight:800;color:#fff;flex-shrink:0;}
.prog-exam-info{flex:1;}
.prog-exam-sub{font-size:.84rem;font-weight:700;}
.prog-exam-date{font-size:.7rem;color:var(--muted);}
.prog-exam-pct{font-size:1rem;font-weight:800;}
.prog-trend{display:flex;align-items:center;gap:.3rem;font-size:.72rem;font-weight:600;}
.prog-trend.up{color:var(--ok);}
.prog-trend.dn{color:var(--bad);}
.prog-trend.eq{color:var(--muted);}
.prog-streak-row{display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem;margin-bottom:1.25rem;}
.prog-friend{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);padding:.7rem .5rem;text-align:center;}
.prog-friend img{width:40px;height:40px;border-radius:50%;border:2px solid;object-fit:cover;margin-bottom:.3rem;}
.prog-friend .fn{font-size:.72rem;font-weight:700;}
.prog-friend .fs{font-size:.85rem;font-weight:800;}
.prog-empty{text-align:center;padding:1.5rem;color:var(--muted);font-size:.85rem;}
.prog-improve-chart{background:var(--bg2);border:1px solid var(--border);border-radius:var(--radius);padding:.85rem;margin-bottom:.5rem;}
.prog-chart-title{font-size:.75rem;font-weight:700;margin-bottom:.6rem;}
.prog-bars{display:flex;align-items:flex-end;gap:3px;height:60px;}
.prog-bar-col{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;}
.prog-bar-fill{width:100%;border-radius:3px 3px 0 0;min-height:2px;transition:height .4s ease;}
.prog-bar-lbl{font-size:.55rem;color:var(--muted);white-space:nowrap;}
