:root{--ink:#25253d;--green:#0877c9;--lime:#e2ff91;--bg:#f7f8fc;--line:#e7e8f1;--muted:#6d7188;--white:#fff;--violet:#0877c9;--violet-dark:#075fa1;--success:#187845;--soft-success:#eafaed;--warning:#a94914;--soft-warning:#fff2e7}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html{scroll-padding-top:20px}body{margin:0;font-family:ui-rounded,"SF Pro Rounded",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-size:1rem;line-height:1.5;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button,a,input,textarea,select{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.45;box-shadow:none!important;transform:none!important}button,a{transition:background .18s,box-shadow .18s,transform .18s,color .18s}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #0877c9;outline-offset:4px}button:not(:disabled):active{transform:translateY(2px)}.skip{position:fixed;top:-80px;left:12px;z-index:100;background:white;padding:12px}.skip:focus{top:12px}.hidden{display:none!important}.shell{max-width:1160px;margin:auto;padding:0 38px}.topbar{height:100px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;font-size:26px;font-weight:850;letter-spacing:-1.2px;line-height:1.1}.brand-light{font-weight:450}.brand small{display:block;font-size:10px;font-weight:650;letter-spacing:1.5px;color:var(--muted);margin-top:7px}.monogram{width:46px;height:46px;border-radius:16px;background:var(--violet);color:white;display:grid;place-items:center;font-size:32px;box-shadow:0 4px 0 #d9d8fa;position:relative}.monogram span{width:5px;height:5px;border-radius:50%;background:#c5ff86;position:absolute;right:7px;bottom:9px}.header-actions{display:flex;align-items:center;gap:18px}.header-session{font-size:12px;font-weight:650;letter-spacing:.6px;color:var(--muted)}.avatar{border:1px solid var(--line);border-radius:50%;height:42px;width:42px;background:white;display:grid;place-items:center;color:var(--muted)}svg{width:24px;height:24px;display:block;flex-shrink:0}.app-nav{display:flex;gap:8px;width:max-content;padding:6px;background:#eceef6;border-radius:20px;margin-bottom:32px}.app-nav a{display:flex;align-items:center;gap:10px;padding:11px 22px;text-decoration:none;border-radius:15px;font-weight:650;font-size:14px;color:var(--muted)}.app-nav a.active{background:white;color:var(--violet);box-shadow:0 3px 8px #22254d09}.app-nav a:hover{color:var(--violet)}main{padding:0 0 40px;min-height:calc(100vh - 250px);outline:none}main> :not(dialog){animation:enter .28s ease both}@keyframes enter{from{opacity:.7;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}h1{font-size:36px;line-height:1.18;letter-spacing:-1.3px;font-weight:780;margin:0 0 10px}h1 em{font-style:normal;color:var(--violet)}h2{font-size:23px;line-height:1.3;letter-spacing:-.6px;font-weight:750;margin:0 0 12px}h3{font-size:17px;font-weight:720;margin:0 0 10px}.eyebrow{font-size:12px;font-weight:750;letter-spacing:1.2px;text-transform:uppercase;color:var(--violet);margin:0 0 9px}.lead{margin:0 0 24px;color:var(--muted);font-size:16px}.heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.heading .lead{margin-bottom:0}.streak-pill{display:flex;align-items:center;gap:10px;padding:10px 16px;background:#fff0dd;border:1px solid #ffdec0;border-radius:18px;font-weight:750;color:#a64e16}.streak-pill svg{color:#e97721}.streak-pill small{display:block;font-size:12px;font-weight:550;color:#98683e}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:22px;align-items:start}.card{background:white;border:1px solid var(--line);border-radius:28px;padding:28px;box-shadow:0 5px 18px #2c305204}.card-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.card-title h2{font-size:21px;margin:0}.card-title>span{color:var(--muted);font-size:13px}.step-label{display:flex;align-items:center;gap:10px;font-weight:700;font-size:14px;margin-bottom:14px}.step-label b{display:grid;place-items:center;background:#eaf2f7;color:var(--violet);width:26px;height:26px;border-radius:9px;font-size:13px}.subject-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.subject{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px;padding:17px 8px;border:2px solid #eeeef5;border-radius:20px;background:#fff;cursor:pointer;position:relative;min-height:117px;transition:background .18s,border-color .18s,transform .18s}.subject:hover{transform:translateY(-2px)}.subject:has(input:checked){background:var(--tint);border-color:var(--color)}.subject .icon{width:44px;height:44px;border-radius:15px;background:var(--tint);color:var(--color);display:grid;place-items:center}.subject .icon svg{width:25px;height:25px}.subject strong{font-size:14px;font-weight:700;display:block}.subject small{display:none}.subject input{position:absolute;right:8px;top:8px;width:16px;height:16px;margin:0;accent-color:var(--color);cursor:pointer}.selected-count{font-size:13px;color:var(--muted);font-weight:500;margin-left:auto}.mode-tabs{display:flex;background:#f0f1f7;border-radius:14px;padding:5px;gap:4px;margin:0 0 12px}.mode-tabs button{flex:1;padding:10px 8px;border:0;background:transparent;color:var(--muted);font-size:14px;font-weight:650;border-radius:10px;min-height:42px}.mode-tabs button.active{background:white;color:var(--ink);box-shadow:0 2px 6px #2626530b}.mode-block{margin-top:24px}.mode-block .fine{margin:0;min-height:40px}.config-line{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;color:var(--muted);margin:20px 0 0;padding-top:18px;border-top:1px solid var(--line)}.config-line span{display:flex;align-items:center;gap:6px}.config-line svg{width:16px;height:16px}.primary,.secondary,.install{border:0;border-radius:16px;padding:14px 22px;min-height:52px;font-weight:750;font-size:15px;background:var(--violet);color:white;box-shadow:0 4px 0 var(--violet-dark);letter-spacing:.1px}.primary:hover,.install:hover{background:#086bb0}.primary:active{box-shadow:0 2px 0 var(--violet-dark)}.secondary{background:white;color:var(--ink);border:1px solid #dcdeea;box-shadow:0 3px 0 #e6e7f1}.secondary:hover{background:#f5f5fb}.full{width:100%;display:flex;align-items:center;justify-content:center;gap:10px}.primary.full{margin-top:22px}.link{border:0;background:none;color:var(--violet);padding:8px 0;font-weight:600;font-size:14px;text-decoration:none;min-height:40px}.link:hover{text-decoration:underline}.muted{color:var(--muted)}.fine{font-size:13px;color:var(--muted);line-height:1.55}.side-stack{display:flex;flex-direction:column;gap:20px}.week-row{display:flex;justify-content:space-between;gap:5px;margin-top:20px}.week-day{display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--muted);font-size:12px}.week-day b{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#f0f1f7;color:#9397ac;font-weight:650;border:2px solid transparent}.week-day.done b{background:#dff5e6;color:var(--success)}.week-day.today b{border-color:var(--violet);color:var(--violet)}.week-day.done.today b{border-color:var(--success)}.mini-stat{display:flex;align-items:center;justify-content:space-between;margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}.mini-stat span{font-size:13px;color:var(--muted)}.mini-stat strong{font-size:24px;letter-spacing:-.5px}.focus-card{border-radius:28px;padding:26px;background:#eaf7e9;border:1px solid #d9ead5}.focus-card .icon-orb{background:#c8efb9;color:#33773e}.focus-card h2{font-size:23px;margin:16px 0 10px}.focus-card p{font-size:14px;color:#557151;line-height:1.55;margin:0 0 18px}.focus-card .primary{background:#29894d;box-shadow:0 4px 0 #176335}.focus-card .eyebrow{color:#377542;margin-top:20px}.icon-orb{width:54px;height:54px;border-radius:18px;background:#eaf2f7;color:var(--violet);display:grid;place-items:center}.icon-orb svg{width:29px;height:29px}.section-line{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:28px 0 16px}.section-line h2{font-size:20px;margin:0}.bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.action-card{display:flex;align-items:center;gap:18px;text-align:left;color:var(--ink);border:1px solid var(--line);min-height:118px}.action-card:hover{box-shadow:0 8px 20px #4c4a7c09;transform:translateY(-2px)}.action-card h3{margin:0 0 6px}.action-card p{margin:0;color:var(--muted);font-size:14px}.action-card .icon-orb{flex-shrink:0}.action-card.game .icon-orb{background:#fff0d5;color:#ba7516}footer{display:flex;justify-content:space-between;gap:16px;font-size:12px;color:var(--muted);padding:20px 0 26px;border-top:1px solid var(--line)}footer a{text-decoration:none}.badge{border-radius:12px;padding:8px 12px;font-weight:650;font-size:13px;white-space:nowrap;background:#eaf2f7;color:var(--violet)}.resume{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 20px;background:#edecff;border:1px solid #dbd9ff;border-radius:22px;margin-bottom:22px}.resume p{font-size:14px;margin:0}.resume .secondary{font-size:14px;min-height:44px;padding:10px 18px}.progress-track{height:12px;border-radius:12px;background:#e9ebf3;overflow:hidden;position:relative}.progress-fill{height:100%;background:#65c947;border-radius:12px;position:relative;transition:width .35s ease}.progress-fill:after{content:'';position:absolute;left:7px;right:7px;top:3px;height:3px;border-radius:3px;background:#ffffff60}.in-session .topbar,.in-session .app-nav,.in-session footer{display:none}.in-session .shell{max-width:1000px}.in-session main{padding-top:max(26px,env(safe-area-inset-top));padding-bottom:130px;min-height:100vh}.session-top{display:flex;align-items:center;gap:18px;max-width:790px;margin:0 auto 30px}.session-top .progress-track{flex:1}.close-session{border:0;background:#eceef6;border-radius:14px;padding:10px;color:var(--muted);width:42px;height:42px;display:grid;place-items:center;flex-shrink:0}.session-top .question-count{font-size:14px;font-weight:700;color:var(--muted);white-space:nowrap}.question-layout{max-width:790px;margin:auto}.question-card{border:0;box-shadow:none;background:transparent;padding:0}.question-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 20px}.question-head .badge{background:var(--tint);color:var(--color);display:flex;gap:8px;align-items:center}.question-head .badge svg{width:19px;height:19px}.question-card h2{font-size:28px;letter-spacing:-.6px;line-height:1.45;margin:0 0 24px;font-weight:730}.question-card .formula{font-size:38px;font-weight:500;padding:24px;border-radius:24px;text-align:center;background:white;border:1px solid var(--line);margin-bottom:22px}.answer-surface{background:white;border:1px solid var(--line);border-radius:24px;padding:24px}.field-label{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700;margin:0 0 10px}.field-label svg{width:18px;height:18px;color:var(--muted)}input[type=text],textarea,select,input[type=number]{width:100%;font-size:17px;line-height:1.6;border:2px solid #e4e6f1;border-radius:15px;background:#fafbff;padding:13px 16px;color:var(--ink);outline-offset:2px;transition:border-color .15s}input[type=text]:focus,textarea:focus{border-color:#8d87f5;outline:none}input[readonly],textarea[readonly]{background:#f5f6fa;color:#64697b}textarea{min-height:200px;resize:vertical}textarea.math{font-family:ui-monospace,SFMono-Regular,monospace;min-height:115px;font-size:16px}.unit-field{display:flex;align-items:center;gap:14px}.unit-field input{flex:1;min-width:0}.unit-field>span{font-size:14px;font-weight:650;color:var(--muted)}.method-details{margin-top:20px;border-top:1px solid var(--line);padding-top:16px}.method-details summary{font-size:14px;font-weight:700;cursor:pointer;color:var(--ink);min-height:40px;display:flex;align-items:center;gap:8px;list-style:none}.method-details summary::-webkit-details-marker{display:none}.method-details summary:after{content:'+';margin-left:auto;font-size:22px;color:var(--muted)}.method-details[open] summary:after{content:'−'}.method-details summary svg{width:19px;height:19px;color:var(--violet)}.toolbar{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0 12px}.toolbar button{background:#f0f1f9;color:var(--ink);border:1px solid #e0e3f0;border-bottom:3px solid #d9dcec;min-width:41px;height:43px;padding:5px 10px;border-radius:11px;font-size:19px}.toolbar button:hover{background:#e9e7ff}.question-actions{position:fixed;bottom:0;left:0;right:0;z-index:45;background:#ffffffed;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border-top:1px solid var(--line);padding:20px max(24px,calc((100vw - 790px)/2)) calc(20px + env(safe-area-inset-bottom));display:flex;justify-content:space-between;align-items:center;gap:20px}.question-actions .primary{min-width:240px}.question-actions .secondary{min-width:130px}.question-index{margin:24px auto 0;border:1px solid var(--line);border-radius:20px;background:white;padding:15px 18px;max-width:790px}.question-index summary{font-size:14px;font-weight:650;cursor:pointer;min-height:32px}.navigator{display:grid;grid-template-columns:repeat(10,1fr);gap:8px;margin-top:14px}.navigator button{aspect-ratio:1;background:#f1f2f8;color:var(--muted);border:1px solid var(--line);border-radius:10px;font-size:14px;min-height:36px}.navigator button.current{background:var(--violet);color:white}.navigator button.done{background:#def3e4;border-color:#b0ddbd;color:var(--success)}.feedback{margin-top:22px;padding:22px 24px;border:1px solid #cce7d4;background:var(--soft-success);border-radius:24px;color:#285d3e;animation:feedback-in .25s ease}.feedback.wrong{background:var(--soft-warning);border-color:#f4d8c4;color:#924e27}.feedback.review{background:#eaf2f7;border-color:#d9d7ff;color:#514887}.feedback h3{display:flex;align-items:center;gap:10px;font-size:19px}.feedback h3 svg{width:25px;height:25px}.feedback p{margin:10px 0;font-size:15px}.feedback .fine{font-size:13px;color:inherit;opacity:.9}.feedback .reference{font-weight:700;background:#ffffff90;padding:12px 15px;border-radius:13px;margin:14px 0}.criteria{font-size:14px;padding-left:20px;line-height:1.65}.self-buttons{display:flex;gap:9px;flex-wrap:wrap;margin-top:16px}.self-buttons button{font-size:13px;min-height:44px;padding:9px 14px;box-shadow:none;border-radius:12px}.self-buttons button.selected{background:var(--violet);color:white;border-color:var(--violet)}@keyframes feedback-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.choices{display:grid;gap:13px;margin:24px 0}.choice{display:flex;align-items:center;gap:15px;text-align:left;padding:17px 20px;background:white;border:2px solid #e3e5ef;border-bottom:5px solid #e3e5ef;border-radius:19px;color:var(--ink);min-height:72px;font-weight:650}.choice b{border:1px solid #dddfea;background:#f7f8fc;border-radius:10px;padding:5px 9px;min-width:32px;text-align:center;color:#878ca2;font-size:13px}.choice:hover{background:#f6f5ff}.choice.selected{background:#eaf2f7;border-color:#aaa5f8;color:#504bd5}.choice.selected b{background:#dcd9ff;color:#5149d7;border-color:#c7c3f8}.choice.correct{background:#eafaed;border-color:#aadbb6;color:#237241;opacity:1!important}.choice.wrong{background:#fff0e5;border-color:#edc3a4;color:#a04b1f;opacity:1!important}.choice:disabled{opacity:.7}.jokers{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.jokers button{display:flex;align-items:center;gap:8px;padding:11px 15px;min-height:46px;background:white;border:1px solid var(--line);border-bottom:3px solid #dedfeb;border-radius:14px;font-size:13px;font-weight:650;color:var(--ink)}.jokers svg{width:19px;height:19px}.challenge-status{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff5df;border:1px solid #f5e4b8;border-radius:20px;padding:17px 20px;margin-bottom:24px}.challenge-status h3{margin:0;font-size:18px;color:#865710}.challenge-status .fine{margin:3px 0 0;color:#8e7651}.challenge-status svg{color:#cd8c1e;width:30px;height:30px}.challenge{margin-top:24px;background:white;border:1px solid var(--line);border-radius:22px;padding:20px}.challenge>h3,.challenge>.eyebrow{display:none}.ladder{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.ladder div{padding:7px;background:#f3f4fa;border-radius:10px;text-align:center;font-size:11px;color:var(--muted)}.ladder div span{display:block;font-size:12px}.ladder div.current{background:#eaf2f7;color:var(--violet);font-weight:700}.callout{background:#ecebff;color:#5a5297;font-size:14px;border-radius:17px;padding:16px 18px;margin:20px 0;line-height:1.6}.result-top{text-align:center;padding:32px;max-width:850px;margin:auto}.result-top .icon-orb{margin:0 auto 18px;width:76px;height:76px;border-radius:26px;background:#eafaed;color:#27874a}.result-top .icon-orb svg{width:40px;height:40px}.result-top h1{font-size:30px;margin-bottom:12px}.score-big{font-size:72px;font-weight:800;letter-spacing:-3px;line-height:1.15;color:var(--violet);margin:22px 0 8px}.result-label{font-weight:600;color:var(--muted);font-size:14px}.result-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:24px 0}.result-summary>div{background:#f6f7fb;border-radius:17px;padding:17px 10px}.result-summary strong{font-size:25px;display:block}.result-summary span{font-size:12px;color:var(--muted)}.results-list{display:flex;flex-direction:column;gap:14px;margin-top:20px}.results-list .card{box-shadow:none;padding:21px 24px;border-radius:22px}details summary{cursor:pointer;font-weight:650;line-height:1.5}details p{font-size:14px}.review-summary{display:flex;align-items:center;gap:13px}.review-summary .review-dot{height:34px;width:34px;border-radius:11px;background:#eaf2f7;color:var(--violet);display:grid;place-items:center;font-size:13px;flex-shrink:0}.review-summary .fine{display:block;font-size:12px}.answer-display{white-space:pre-wrap;overflow-wrap:anywhere}.row{display:flex;align-items:center;justify-content:space-between;gap:16px}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:24px}.stats-grid .card{padding:22px}.stats-grid .icon-orb{width:40px;height:40px;border-radius:13px;margin-bottom:14px}.stats-grid strong{font-size:36px;font-weight:780;letter-spacing:-1px;display:block}.stats-grid span{color:var(--muted);font-size:13px}.subject-progress{display:grid;grid-template-columns:1fr 1fr;gap:20px}.subject-progress .row{margin-bottom:15px}.subject-progress .progress-fill{background:var(--violet)}.empty{text-align:center;padding:45px 24px}.empty .icon-orb{margin:0 auto 20px}.empty p{max-width:420px;margin:10px auto 24px}.chips{display:flex;flex-wrap:wrap;gap:9px;margin:22px 0}.chip{background:white;border:1px solid var(--line);border-radius:14px;padding:11px 17px;font-size:14px;min-height:44px;font-weight:650;color:var(--muted)}.chip.active{background:var(--violet);color:white;border-color:var(--violet);box-shadow:0 3px 0 var(--violet-dark)}.topic-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.topic-card{display:flex;flex-direction:column;position:relative;overflow:hidden}.topic-card .primary{align-self:stretch;margin-top:auto}.topic-card h3{font-size:19px;margin-top:18px}.topic-card p{font-size:14px;color:var(--muted);margin:0 0 20px;min-height:42px}.topic-card .row{align-items:center}.topic-card .number-mark{margin:0}.number-mark{height:48px;width:48px;border-radius:16px;display:grid;place-items:center;background:#eaf2f7;color:var(--violet);flex-shrink:0}.mode-intro{display:grid;grid-template-columns:1fr 1fr;gap:22px}.mode-intro .card{padding:30px;display:flex;flex-direction:column}.mode-intro h2{font-size:28px;margin-top:22px}.mode-intro .primary{margin-top:auto}.mode-intro p{font-size:15px;margin:0 0 15px}.game-big{font-size:44px;line-height:1.2;letter-spacing:-1.2px;font-weight:800;margin:10px 0 24px;color:var(--violet)}.game-big small{font-size:15px;font-weight:550;letter-spacing:0;color:var(--muted)}.session-list{margin-top:24px}.session-row{padding:17px 0;border-bottom:1px solid var(--line);font-size:14px}.session-row:last-child{border-bottom:0}.session-row .fine{font-size:12px;margin-top:4px}.session-score{background:#eaf2f7;padding:7px 10px;border-radius:10px;color:var(--violet);font-weight:700}.fraction{display:inline-flex;flex-direction:column;vertical-align:middle;text-align:center;font-size:.8em;margin:0 6px;font-variant-numeric:tabular-nums}.fraction span:first-child{border-bottom:2px solid currentColor;padding:0 6px}.fraction span:last-child{padding:0 6px}.timer{font-variant-numeric:tabular-nums;font-size:12px;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:30px;padding:28px;max-width:550px;width:calc(100% - 32px);color:var(--ink);box-shadow:0 30px 100px #1e205333;max-height:85dvh;overflow:auto}dialog::backdrop{background:#25254166;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}dialog h2{font-size:23px;margin:14px 0 18px}dialog p{font-size:15px;color:var(--muted)}dialog .field-label{margin-top:18px}dialog>.secondary{margin-top:22px}.sheet-handle{width:36px;height:5px;border-radius:5px;background:#daddE8;margin:0 auto 20px}#toast{position:fixed;bottom:105px;left:50%;transform:translateX(-50%);background:#25253e;color:white;padding:14px 22px;border-radius:18px;z-index:80;display:none;max-width:calc(100% - 36px);width:max-content;font-size:14px;box-shadow:0 7px 25px #25253e25}#toast.visible{display:block}@media(max-width:950px){.shell{padding:0 28px}.workspace{grid-template-columns:minmax(0,1fr) 280px;gap:18px}.card{padding:23px}.subject-grid{gap:9px}.subject strong{font-size:13px}.subject{padding:15px 5px}.focus-card{padding:24px}.heading h1{font-size:32px}.app-nav a{padding:11px 18px}}@media(max-width:760px){.shell{padding:0 20px;max-width:600px}.topbar{height:84px}.brand{font-size:24px}.brand small{font-size:9px;letter-spacing:1px}.monogram{height:42px;width:42px;border-radius:14px;font-size:29px}.header-session{display:none}.header-actions{gap:10px}.avatar{width:38px;height:38px}.app-nav{position:fixed;bottom:0;left:0;right:0;width:auto;margin:0;z-index:50;border-radius:26px 26px 0 0;padding:10px 12px calc(10px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(4,1fr);background:#ffffffed;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);border:1px solid var(--line);box-shadow:0 -6px 30px #28264405}.app-nav a{flex-direction:column;gap:4px;padding:7px 4px;border-radius:15px;font-size:10px;line-height:1.5;text-align:center}.app-nav a svg{height:23px;width:23px}.app-nav a.active{background:#eaf2f7;box-shadow:none;color:var(--violet)}main{padding-bottom:28px;min-height:calc(100dvh - 210px)}footer{margin-bottom:100px;padding:17px 0 23px}.heading{gap:12px;margin:13px 0 22px;align-items:center}.heading h1{font-size:29px;letter-spacing:-.8px}.heading .lead{font-size:14px;max-width:250px;margin-top:6px}.heading .eyebrow{display:none}.streak-pill{flex-direction:column;gap:2px;padding:10px 12px;min-width:66px;border-radius:18px;font-size:17px}.streak-pill svg{width:21px;height:21px}.streak-pill small{font-size:10px;white-space:nowrap}.streak-pill .streak-number{display:flex;align-items:center;gap:4px}.workspace{display:flex;flex-direction:column;gap:20px}.workspace>.card,.side-stack{width:100%}.card{padding:21px;border-radius:25px}.card-title{margin-bottom:18px}.card-title h2{font-size:20px}.subject-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.subject{padding:14px 6px;min-height:101px;border-radius:17px;gap:9px}.subject .icon{width:36px;height:36px;border-radius:12px}.subject .icon svg{width:22px;height:22px}.subject strong{font-size:12px;letter-spacing:-.2px}.subject input{width:15px;height:15px;right:6px;top:6px}.step-label{font-size:13px;gap:8px}.step-label b{width:23px;height:23px;font-size:12px}.selected-count{font-size:12px}.mode-block{margin-top:19px}.mode-tabs button{font-size:12px;padding:8px 6px}.mode-tabs{margin-bottom:10px}.mode-block .fine{font-size:12px;min-height:0}.config-line{font-size:12px;padding-top:14px;margin-top:17px}.primary.full{margin-top:17px}.primary,.secondary{font-size:14px;min-height:50px;padding:13px 18px;border-radius:15px}.side-stack{display:grid;grid-template-columns:1fr}.side-stack .focus-card{display:none}.week-row{margin-top:16px}.mini-stat{margin-top:15px;padding-top:15px}.week-day b{width:35px;height:35px}.week-day{font-size:12px}.bottom-grid{grid-template-columns:1fr;gap:13px}.action-card{min-height:99px;gap:16px}.action-card h3{font-size:16px}.action-card p{font-size:13px}.action-card .icon-orb{width:47px;height:47px;border-radius:16px}.section-line{margin:24px 0 14px}.section-line h2{font-size:18px}.section-line .fine{font-size:12px}h1{font-size:30px;letter-spacing:-.9px}.lead{font-size:14px;line-height:1.6;margin-bottom:20px}.eyebrow{font-size:11px}.mode-intro{grid-template-columns:1fr}.mode-intro .card{padding:25px}.mode-intro h2{font-size:25px}.mode-intro p{font-size:14px}.mode-intro .primary{margin-top:6px}.game-big{font-size:40px}.topic-grid{grid-template-columns:1fr;gap:15px}.topic-card{padding:23px}.topic-card h3{margin-top:12px}.chips{flex-wrap:nowrap;overflow:auto;padding:4px 2px 8px;margin:14px -2px;scrollbar-width:none}.chips::-webkit-scrollbar{display:none}.chip{flex-shrink:0;font-size:13px;min-height:42px;padding:10px 15px}.stats-grid{gap:10px;margin:22px 0}.stats-grid .card{padding:17px 12px;border-radius:21px}.stats-grid .icon-orb{width:32px;height:32px;border-radius:11px;margin-bottom:10px}.stats-grid .icon-orb svg{width:20px;height:20px}.stats-grid strong{font-size:28px}.stats-grid span{font-size:11px;line-height:1.4;display:block}.subject-progress{grid-template-columns:1fr;gap:15px}.session-list{padding:22px}.session-row{gap:8px;font-size:13px}.session-score{font-size:12px;white-space:nowrap}.resume{padding:15px;gap:12px;border-radius:20px}.resume p{font-size:13px}.resume .secondary{padding:9px 13px;white-space:nowrap}.in-session .shell{padding:0 20px;max-width:700px}.in-session main{padding-top:max(22px,env(safe-area-inset-top));padding-bottom:130px}.session-top{gap:12px;margin-bottom:26px}.close-session{width:36px;height:36px;border-radius:12px;padding:7px}.session-top .question-count{font-size:13px}.progress-track{height:11px}.question-head{margin-bottom:18px}.question-head .badge{font-size:11px;padding:7px 10px;white-space:normal;line-height:1.5}.question-head .badge svg{width:17px;height:17px}.question-card h2{font-size:24px;line-height:1.4;margin-bottom:22px;font-weight:720}.question-card .formula{font-size:34px;padding:21px;border-radius:22px;margin-bottom:20px}.answer-surface{padding:19px;border-radius:22px}.field-label{font-size:13px;margin-bottom:9px}.unit-field input{font-size:19px;padding:12px 13px}.unit-field>span{font-size:13px}.answer-surface .fine{font-size:12px;margin-bottom:0}.method-details summary{font-size:13px}.toolbar{gap:6px;margin:8px 0 10px}.toolbar button{min-width:36px;height:40px;padding:4px 8px;font-size:18px;border-radius:9px}textarea{min-height:180px}textarea.math{min-height:120px;font-size:15px;padding:12px}.question-actions{padding:15px 20px calc(18px + env(safe-area-inset-bottom));gap:12px}.question-actions .primary{flex:1;min-width:0;min-height:52px}.question-actions .secondary{min-width:0;padding:13px 14px}.question-actions>span{display:none}.question-index{padding:14px 16px;border-radius:19px}.navigator{grid-template-columns:repeat(5,1fr);gap:7px}.navigator button{min-height:42px;aspect-ratio:auto}.feedback{padding:20px;border-radius:22px}.feedback h3{font-size:18px}.feedback p{font-size:14px}.feedback .fine{font-size:12px}.feedback .reference{font-size:14px;padding:12px}.self-buttons{gap:7px}.self-buttons button{font-size:12px;padding:9px 11px}.choices{gap:12px}.choice{min-height:70px;padding:16px;border-radius:18px;font-size:16px;gap:13px}.jokers{gap:7px}.jokers button{padding:10px 12px;font-size:12px}.jokers svg{width:16px;height:16px}.challenge-status{padding:15px 17px;border-radius:19px;margin-bottom:22px}.challenge-status h3{font-size:16px}.ladder{grid-template-columns:repeat(3,1fr)}.result-top{padding:28px 20px}.result-top h1{font-size:28px}.score-big{font-size:62px}.result-summary{gap:8px;margin:23px 0}.result-summary>div{padding:14px 6px;border-radius:15px}.result-summary strong{font-size:22px}.result-summary span{font-size:11px}.result-top .row{flex-direction:column;gap:13px}.result-top .row button{width:100%}.results-list .card{padding:19px;border-radius:20px}.review-summary{gap:10px;font-size:14px}.review-summary .fine{font-size:11px}dialog{margin: auto 0 0;max-width:none;width:100%;border:0;border-radius:28px 28px 0 0;padding:26px 24px calc(24px + env(safe-area-inset-bottom));max-height:88dvh}dialog h2{font-size:22px}dialog p{font-size:14px}#toast{bottom:115px;border-radius:16px;font-size:13px;padding:13px 18px}.install{font-size:12px;padding:9px 13px;min-height:38px;border-radius:12px;box-shadow:0 3px 0 var(--violet-dark)}}@media(max-width:360px){.shell,.in-session .shell{padding-left:15px;padding-right:15px}.card{padding:17px}.subject strong{font-size:11px}.subject-grid{gap:7px}.subject{padding:13px 3px}.heading h1{font-size:26px}.question-actions{padding-left:15px;padding-right:15px}.question-actions .primary{font-size:13px}.streak-pill{min-width:57px}.mode-tabs button{font-size:11px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
/* Readable controls at small sizes and when text is enlarged. */
.brand small{font-size:12px;letter-spacing:.5px}.subject strong{font-size:14px}.config-line,.step-label{font-size:14px}.mode-tabs button{font-size:14px}.subject-progress .row{flex-wrap:wrap}.review-dot svg{width:20px;height:20px}@media(max-width:760px){.brand small{display:none}.app-nav a{font-size:13px}.subject strong{font-size:14px}.step-label{font-size:14px;flex-wrap:wrap}.selected-count{font-size:12px}.mode-tabs button{font-size:14px}.streak-pill small{font-size:12px}.config-line{font-size:12px;flex-wrap:wrap}.question-actions .primary,.question-actions .secondary{font-size:14px}.jokers button{font-size:14px}.jokers{gap:8px}.chips .chip{font-size:14px}.self-buttons button{font-size:14px}.card-title{flex-wrap:wrap}.session-row{flex-wrap:wrap}.result-top h1{overflow-wrap:anywhere}.question-card h2{overflow-wrap:anywhere}.score-big{font-size:clamp(36px,9vw,72px);overflow-wrap:anywhere}.game-big{font-size:clamp(28px,8vw,44px)}}
/* Liquid Glass: colored depth, translucent surfaces and specular edges. */
:root{--bg:#e5e4ff;--ink:#252246;--muted:#585676;--line:#ffffff8c;--violet:#0877c9;--violet-dark:#075fa1;--green:#0877c9}
body{background:#e4e4ff;background-image:radial-gradient(ellipse at 6% 6%,#bebaff 0,transparent 43%),radial-gradient(ellipse at 95% 18%,#94e9ec 0,transparent 46%),radial-gradient(ellipse at 70% 80%,#f2b8ed 0,transparent 50%),linear-gradient(140deg,#e3dcff,#cddcfc 52%,#ebe0ff);background-attachment:fixed;min-height:100dvh}
body:before{content:'';position:fixed;inset:0;pointer-events:none;z-index:-1;background:radial-gradient(ellipse at 15% 55%,#93b4f940,transparent 45%),radial-gradient(ellipse at 85% 85%,#c091fa55,transparent 40%)}
.topbar{position:relative}.brand{color:#343052}.monogram{background:linear-gradient(145deg,#2095d3,#0877c9);box-shadow:inset 0 1px 1px #ffffff77,0 5px 0 #a198e6,0 8px 22px #7460d036}.avatar{background:#ffffff50;border:1px solid #ffffffbf;box-shadow:inset 0 1px 0 white,0 3px 12px #54439710;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);color:#5b5484}
.app-nav{background:#ffffff39;border:1px solid #ffffffa1;box-shadow:inset 0 1px 0 #ffffffde,0 7px 28px #5840a815;backdrop-filter:blur(30px) saturate(1.7);-webkit-backdrop-filter:blur(30px) saturate(1.7)}.app-nav a{color:#5c557d}.app-nav a.active{background:linear-gradient(160deg,#ffffffc9,#ffffff68);box-shadow:inset 0 1px 1px white,0 4px 13px #735cc218;color:#0877c9}
.card,.answer-surface,.question-index,.challenge,.choice{background:linear-gradient(135deg,#ffffff77,#ffffff40);border:1px solid #ffffffbd;box-shadow:inset 0 1px 0 #fffffff0,0 10px 30px #6153910b;backdrop-filter:blur(28px) saturate(1.5);-webkit-backdrop-filter:blur(28px) saturate(1.5)}
.training-card{background:linear-gradient(135deg,#ffffff87,#ffffff42)}.heading h1{font-size:38px;font-weight:820;letter-spacing:-1.4px}.heading h1 em{background:linear-gradient(100deg,#0877c9,#4a63c5 55%,#136986);-webkit-background-clip:text;background-clip:text;color:transparent}.heading .lead{color:#625880}.eyebrow{color:#245874}.streak-pill{background:linear-gradient(145deg,#fff8b4ac,#ffdcb66d);border-color:#ffffffbb;box-shadow:inset 0 1px 0 #fff,0 6px 20px #c8872920;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}
.badge{background:#eaf2f799;color:#245874;border:1px solid #ffffffb0;box-shadow:inset 0 1px 0 #ffffffde}.subject{background:#ffffff34;border:1px solid #ffffffb0;box-shadow:inset 0 1px 0 #ffffffdf,0 4px 0 #7e7caa10}.subject:has(input:checked){background:linear-gradient(135deg,var(--tint),#ffffff46);border:2px solid var(--color);box-shadow:inset 0 1px 0 #ffffffed,0 4px 0 color-mix(in srgb,var(--color),transparent 80%),0 8px 18px #7972c211}.subject .icon{background:linear-gradient(135deg,var(--tint),#ffffff55);border:1px solid #ffffffbf;box-shadow:inset 0 1px 0 #ffffffde,0 3px 10px #43338c0a}.formula-icon{display:inline-block;font-family:Georgia,"Times New Roman",serif;font-size:26px;font-weight:600;font-style:italic;line-height:1;letter-spacing:-1.5px;color:inherit}.question-head .formula-icon{font-size:22px}.small-subject .formula-icon{font-size:23px}
.step-label b{background:#c6bafc6b;border:1px solid #ffffff94;color:#5741ae;box-shadow:inset 0 1px 0 #ffffffa8}.mode-tabs,.stats-tabs{background:#9e91dc22;border:1px solid #ffffff73;box-shadow:inset 0 1px 3px #7060aa08}.mode-tabs button.active{background:linear-gradient(140deg,#ffffffdb,#ffffff82);box-shadow:inset 0 1px 0 white,0 2px 8px #5a499611}.primary,.install{background:linear-gradient(125deg,#7757f7,#5844db 70%,#485cd9);border:1px solid #8d78ff;box-shadow:0 4px 0 #3e29b9,inset 0 1px 0 #ffffff61,0 10px 18px #6749cd25;color:white}.primary:hover{background:linear-gradient(125deg,#6b49ed,#4c37ce 70%,#4053d0)}.secondary{background:#ffffff61;border:1px solid #ffffffcb;box-shadow:inset 0 1px 0 white,0 3px 0 #a197c733;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px)}.secondary:hover{background:#ffffff9c}.config-line{border-color:#ffffff9c}.fine{color:#625b7b}
.focus-card{background:linear-gradient(140deg,#604bd9,#7960e0 55%,#509ac4);border:1px solid #9e93ec;color:white;box-shadow:inset 0 1px 0 #ffffff73,0 12px 30px #5140a320}.focus-card h2{font-size:24px}.focus-card p{color:#eee9ff}.focus-card .icon-orb{background:#ffffff26;border-color:#ffffff4d;color:white}.focus-card .primary{background:#ffffffd9;color:#51409e;box-shadow:0 4px 0 #d3c5ff,inset 0 1px 0 white;border-color:#ffffffc9}.side-stack .focus-card{display:block}.icon-orb,.number-mark{background:linear-gradient(135deg,#eaf2f7cc,#d4c8ff72);border:1px solid #ffffffaa;box-shadow:inset 0 1px 0 #ffffffdf,0 4px 12px #6f59981a}.action-card{background:linear-gradient(125deg,#ede3ffb8,#d7e6ff67)}.action-card.game{background:linear-gradient(125deg,#fff2babd,#ffc8df69)}.action-card.game .icon-orb{background:linear-gradient(145deg,#fff5c6,#ffdea780)}.action-card:hover{background:#ffffff97}.mini-stat{border-color:#ffffffa1}.week-day b{background:#ffffff52;border-color:#ffffff7f;color:#7d7397;box-shadow:inset 0 1px 0 #ffffffde}.week-day.done b{background:linear-gradient(135deg,#beed8c,#cdfbe2);color:#267446;border-color:#a0d2a566}.week-day.today b{background:#e2d7ffa1;border-color:#8870d7;color:#624aad}.week-day.done.today b{border-color:#4f9958}
.xp-strip{display:flex;align-items:center;gap:16px;padding:17px 21px;border-radius:23px;background:linear-gradient(105deg,#5b47cb,#7360dc 52%,#637ccc);border:1px solid #9088e6;box-shadow:inset 0 1px 0 #ffffff4c,0 10px 24px #5143b41a;color:white;margin:0 0 22px}.xp-emblem{width:43px;height:43px;border-radius:15px;background:linear-gradient(145deg,#fff8ad,#ffc857);color:#99651d;display:grid;place-items:center;box-shadow:inset 0 1px 0 #ffffffcb,0 4px 0 #bf973d3b;flex-shrink:0}.xp-strip>div:nth-child(2){min-width:115px}.xp-strip strong{display:block;font-size:15px}.xp-strip>div>span{font-size:12px;color:#f0eaff}.xp-strip .fine{color:#eee9ff;font-size:12px}.xp-meter{height:10px;border-radius:12px;background:#2b1c761f;flex:1;max-width:300px;overflow:hidden;border:1px solid #ffffff24}.xp-meter>div{height:100%;border-radius:10px;background:linear-gradient(90deg,#dbff8d,#a3eff0)}
.count-selector{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.count-selector button{min-height:67px;border-radius:16px;padding:9px;background:#ffffff38;color:#666084;border:1px solid #ffffffc0;box-shadow:inset 0 1px 0 white,0 3px 0 #7e72ac13}.count-selector strong{display:block;font-size:23px;font-weight:800}.count-selector span{font-size:12px}.count-selector button.active{background:linear-gradient(140deg,#805cf2,#5b48d9);color:white;border-color:#9679ff;box-shadow:inset 0 1px 0 #ffffff5f,0 4px 0 #4433b8,0 7px 18px #6657c41f}
.in-session{background-image:radial-gradient(ellipse at 8% 10%,#c6c2ff 0,transparent 55%),radial-gradient(ellipse at 100% 70%,#afe5f4 0,transparent 55%),linear-gradient(145deg,#ebe4ff,#dcdff8)}.question-card .formula{background:linear-gradient(125deg,#ffffff87,#ffffff38);border:1px solid #ffffffd4;box-shadow:inset 0 1px 0 white,0 8px 24px #725d9e0a;backdrop-filter:blur(26px);-webkit-backdrop-filter:blur(26px)}.answer-surface{background:#ffffff75}input[type=text],textarea{background:#ffffff73;border-color:#b4a9e24d}.method-details{border-color:#b6a5db40}.toolbar button{background:#ece5ff82;border-color:#ffffff96;border-bottom-color:#bab0dd;color:#524470}.question-actions{background:linear-gradient(120deg,#d9d5fa8c,#e6edfc9c);border-color:#ffffffb6;box-shadow:inset 0 1px 0 #ffffffde,0 -8px 28px #5843910a;backdrop-filter:blur(40px) saturate(1.65);-webkit-backdrop-filter:blur(40px) saturate(1.65)}.close-session{background:#ffffff51;border:1px solid #ffffffa9;box-shadow:inset 0 1px 0 white}.progress-track{background:#8e7cb123;border:1px solid #ffffff62;box-shadow:inset 0 1px 3px #50447610}.progress-fill{background:linear-gradient(90deg,#5ab944,#8ad458)}.choice{border:2px solid #ffffffbd;border-bottom:5px solid #aea4cf4f}.choice b{background:#ffffff5f;border-color:#ffffffae;color:#776f96}.choice.selected{background:linear-gradient(140deg,#dcd0ffce,#dce7ffa1);border-color:#8b76e3;box-shadow:inset 0 1px 0 white,0 5px 15px #705dd725}.choice.correct{background:linear-gradient(140deg,#c7efbe,#e5f9dcd4);border-color:#8ec784}.choice.wrong{background:linear-gradient(140deg,#ffdeb9,#ffe6dce1);border-color:#e8b492}.feedback{background:linear-gradient(140deg,#d8f3cf,#e6f8e4d9);border-color:#abd2a6;box-shadow:inset 0 1px 0 #ffffffde}.feedback.review{background:linear-gradient(140deg,#e4d8ff,#e4eafcce);border-color:#c1b0eb}.feedback.wrong{background:linear-gradient(140deg,#ffe0c1,#ffe8dedb);border-color:#e6bc9c}.feedback .reference{background:#ffffff8c}.jokers button{background:#ffffff79;border-color:#ffffffb8;border-bottom-color:#bab0d24d}.challenge-status{background:linear-gradient(140deg,#fff3c4a8,#ffdfbd98);border-color:#ffffffbb;box-shadow:inset 0 1px 0 white}.ladder div{background:#f1ebff75}.ladder div.current{background:#baa8f067;color:#50408c}
.curriculum-note{padding:22px;border-radius:24px;background:linear-gradient(135deg,#e2daffa3,#e0f1ff65);border:1px solid #ffffffab;box-shadow:inset 0 1px 0 white;margin:20px 0 24px}.curriculum-note p{font-size:14px;color:#62587d;margin:10px 0 16px;line-height:1.65}.curriculum-note .progress-track{margin-top:10px;height:9px}.curriculum-note .row{flex-wrap:wrap;gap:7px}.curriculum-note .link{font-size:13px;min-height:32px}.lesson-card{text-align:left;cursor:pointer;color:var(--ink);align-items:stretch}.lesson-card:hover{transform:translateY(-2px);background:linear-gradient(135deg,#ffffffa1,#ffffff67)}.lesson-card h3{font-size:19px;line-height:1.45;margin:9px 0 12px}.lesson-card p{font-size:13px;line-height:1.65}.lesson-level{margin-top:18px;font-size:12px}.lesson-status{font-size:12px;border-radius:12px;padding:6px 10px;background:#ffffff68;color:#74698f;border:1px solid #ffffffaf}.lesson-status.read{background:#cfe9bba6;color:#397843}.read-link{font-size:14px;font-weight:700;color:#6350b4;background:#ffffff71;border:1px solid #ffffffcf;border-radius:13px;padding:10px 14px;text-align:center;margin-top:auto}
.lesson-reader{max-width:820px;margin:auto}.lesson-header{padding:23px 0}.lesson-header .number-mark{margin-bottom:19px}.lesson-header h1{font-size:34px;line-height:1.28;letter-spacing:-.8px;overflow-wrap:anywhere}.source-band{background:#ffffff48;border:1px solid #ffffffa5;padding:20px 24px;border-radius:22px;margin-bottom:22px;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}.source-band strong{font-size:14px}.source-band p{font-size:13px;color:#665c7f;line-height:1.7;margin:8px 0 10px}.source-band a,.source-item a{font-size:14px;color:#5944aa;text-underline-offset:4px}.lesson-content{background:linear-gradient(140deg,#ffffffa1,#ffffff79);border:1px solid #ffffffdf;border-radius:28px;padding:32px;box-shadow:inset 0 1px 0 white,0 14px 30px #5947880a;backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px)}.lesson-content>section{margin:0 0 29px}.lesson-content>section:last-child{margin-bottom:0}.lesson-content h2{display:flex;align-items:center;gap:13px;font-size:21px;line-height:1.45}.lesson-content h2>span{background:#ded6fa;padding:3px 11px;border-radius:10px;color:#6952b1;font-size:14px}.lesson-content p,.lesson-content li{font-size:16px;line-height:1.9;color:#4a435d}.worked-example{padding:23px;background:linear-gradient(145deg,#d9daf94f,#d1eefd65);border:1px solid #c1c9e07d;border-radius:20px}.worked-example h2{font-size:19px;color:#4f5390}.worked-example p{margin-bottom:0}.pitfalls{border-left:3px solid #cb9157;padding-left:22px}.pitfalls h2{font-size:19px;color:#8c663f}.pitfalls ul{padding-left:20px;margin-bottom:0}.recall-box{padding:23px;border:1px solid #c1b0df76;border-radius:20px;background:#e6dafa65}.recall-box h2{font-size:19px;color:#69509c}.recall-box summary{color:#69509c;min-height:44px;display:flex;align-items:center;font-size:14px}.recall-box details p{font-size:15px}.lesson-bottom{padding:22px 0}.lesson-bottom .secondary{margin-top:15px}.lesson-bottom .fine{text-align:center;margin-top:18px}.source-item{padding:16px 0;border-top:1px solid #e3ddeb}.source-item h3{font-size:16px;line-height:1.5}.source-item p{font-size:14px;line-height:1.7}
.stats-tabs{display:flex;gap:4px;border-radius:16px;padding:5px;margin:25px 0}.stats-tabs button{flex:1;border:0;background:none;color:#675d83;min-height:44px;padding:10px 16px;border-radius:12px;font-size:14px;font-weight:650}.stats-tabs button.active{background:linear-gradient(135deg,#ffffffd1,#ffffff79);box-shadow:inset 0 1px 0 white,0 3px 9px #8c74be14;color:#57439b}.global-stats{grid-template-columns:repeat(4,1fr)}.global-stats .card{background:linear-gradient(140deg,#e6ddff96,#e4efff5f)}.global-stats .card:nth-child(2){background:linear-gradient(140deg,#d4f0db98,#eaf7e76b)}.global-stats .card:nth-child(3){background:linear-gradient(140deg,#ffeddba1,#fff0dd6c)}.global-stats .card:nth-child(4){background:linear-gradient(140deg,#f4ddf98c,#e6ddff5b)}.progress-workspace{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:22px}.subject-bars{display:flex;flex-direction:column;gap:9px}.subject-bar{display:flex;align-items:center;gap:13px;border:0;background:transparent;color:var(--ink);padding:12px 0;text-align:left}.subject-bar:hover{background:#ffffff35;border-radius:14px}.small-subject{width:36px;height:36px;display:grid;place-items:center;border-radius:13px;background:var(--tint);color:var(--color);flex-shrink:0}.small-subject svg{width:20px;height:20px}.subject-bar>div{flex:1}.subject-bar .row{font-size:14px;margin-bottom:7px}.subject-bar .row strong{font-weight:650}.subject-bar small{color:#716482;font-size:12px}.subject-bar .progress-track{height:8px;margin-bottom:5px}.level-card{background:linear-gradient(135deg,#604ed3,#8070d7 60%,#598dc9);color:white;text-align:left}.level-card>.xp-emblem{margin:0 0 18px}.level-card h2{font-size:35px;letter-spacing:-1px}.level-card .eyebrow,.level-card .fine,.level-card .mini-stat span{color:#ede8ff}.level-card .mini-stat{border-color:#ffffff3f}.level-card .progress-fill{background:linear-gradient(90deg,#cbf98c,#94dfcc)}.level-card .progress-track{background:#38288947;border-color:#ffffff2a}.badge-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.achievement{text-align:center;padding:22px 14px}.achievement .icon-orb{margin:0 auto 14px;width:55px;height:55px;border-radius:20px}.achievement h3{font-size:16px}.achievement p{font-size:12px;color:#776c8b;min-height:36px;margin:0 0 8px}.achievement.unlocked{background:linear-gradient(145deg,#fff4beb0,#ffeee661);border-color:#fffaf1}.achievement.unlocked .icon-orb{background:linear-gradient(145deg,#ffeca3,#ffce749c);color:#9b701a;border-color:#fff4ce}.achievement.locked .icon-orb{background:#beb4d339;color:#847995;box-shadow:none}.trend-chart{display:flex;gap:12px;align-items:end;justify-content:space-around;margin-top:26px}.trend-column{display:flex;flex-direction:column;align-items:center;gap:8px;flex:1;font-size:12px;color:#776a8c;max-width:75px}.trend-column strong{font-size:14px;color:#5b4c86}.trend-track{height:130px;background:#9786b222;border:1px solid #ffffff90;width:35px;border-radius:14px;display:flex;align-items:end;overflow:hidden}.trend-track>div{width:100%;background:linear-gradient(0deg,#6450c5,#b08ae4);border-radius:12px}.trend-column small{font-size:12px}.notion-row{padding:18px 0;border-bottom:1px solid #ffffff9d}.notion-row:last-child{border-bottom:0}.notion-row>.row{font-size:15px}.notion-row>.progress-track{margin-top:14px;height:9px}.notion-row .link{min-height:34px}.notion-row>.row:last-child{margin-top:8px;flex-wrap:wrap}.self-breakdown{display:flex;flex-wrap:wrap;gap:10px}.self-breakdown span{font-size:14px;padding:10px 13px;background:#ffffff64;border-radius:12px}.session-list{background:#ffffff5c}.session-score{background:#d7cafa7a;color:#5c4897}.session-row{border-color:#ffffffa1}.chips .chip{background:#ffffff4d;border-color:#ffffffb8;box-shadow:inset 0 1px 0 #ffffffda;color:#675b83}.chips .chip.active{background:linear-gradient(135deg,#7860e7,#5945c9);color:white;border-color:#8972ec;box-shadow:0 3px 0 #4735ad}.mode-intro .card{background:linear-gradient(130deg,#e0d6ffab,#d0e2ff7a)}.mode-intro .card:nth-child(2){background:linear-gradient(140deg,#fff3c4b5,#ffd5e492)!important;border-color:#ffffffb5!important}.game-big{color:#5a43b5}.result-top{background:linear-gradient(140deg,#e7dcffa3,#e2f5e78a)}.result-top .icon-orb{background:linear-gradient(140deg,#c6ef9f,#cfefd98a);border-color:#ffffffb6}.result-summary>div{background:#ffffff50;border:1px solid #ffffff8f;box-shadow:inset 0 1px 0 #ffffffb6}.results-list .card{background:#ffffff62}.resume{background:linear-gradient(125deg,#d0c4f4b3,#e1e6ffa1);border-color:#ffffffe5}.callout{background:#e3d6ffa0;border:1px solid #ffffff9f;color:#5e4c84}.sheet-handle{background:#8d83ac61}dialog{background:linear-gradient(135deg,#f0eaffeb,#e5efffe8);border:1px solid #ffffffb0;backdrop-filter:blur(35px) saturate(1.6);-webkit-backdrop-filter:blur(35px) saturate(1.6)}dialog::backdrop{background:#3d285b4d;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}footer{border-color:#ffffff96;color:#6a6080}
@supports not (backdrop-filter:blur(1px)){.card,.answer-surface,.choice,.app-nav,.question-actions{background:#e9e5f6}}
@media(max-width:950px){.progress-workspace{grid-template-columns:minmax(0,1fr) 260px}.badge-grid{gap:12px}.xp-strip .fine{max-width:140px}.heading h1{font-size:34px}}
@media(max-width:760px){.heading h1{font-size:31px;line-height:1.2}.app-nav{background:linear-gradient(135deg,#e1d7fda8,#d6e4fca1);border-color:#ffffffaf;box-shadow:inset 0 1px 1px #ffffffef,0 -8px 25px #68519410;backdrop-filter:blur(40px) saturate(1.8);-webkit-backdrop-filter:blur(40px) saturate(1.8)}.app-nav a.active{background:#ffffff9d;box-shadow:inset 0 1px 0 white,0 3px 10px #8b77bd15}.xp-strip{padding:14px 16px;gap:12px;flex-wrap:wrap;border-radius:21px;margin-bottom:20px}.xp-strip>.xp-emblem{height:38px;width:38px;border-radius:13px}.xp-strip>div:nth-child(2){min-width:120px;flex:1}.xp-strip .fine{max-width:none;width:100%;font-size:12px;text-align:right;line-height:1}.xp-meter{height:9px;width:75px;flex:0 0 75px}.count-selector{gap:8px}.count-selector button{min-height:61px;border-radius:14px;padding:7px}.count-selector strong{font-size:22px}.count-selector span{font-size:12px}.training-card .subject-grid{gap:8px}.training-card .subject{min-height:96px;padding:12px 6px}.training-card .step-label{margin-bottom:13px}.config-line{margin-top:19px}.side-stack .focus-card{padding:24px}.focus-card h2{font-size:24px}.workspace .side-stack{display:flex;flex-direction:column;gap:17px}.global-stats{grid-template-columns:1fr 1fr;gap:12px}.global-stats .card{padding:19px 17px}.global-stats strong{font-size:31px}.global-stats span{font-size:12px}.progress-workspace{grid-template-columns:1fr;gap:19px}.level-card{padding:25px}.level-card h2{font-size:33px}.badge-grid{grid-template-columns:1fr 1fr;gap:12px}.achievement{padding:20px 13px;border-radius:22px}.achievement .icon-orb{width:49px;height:49px;border-radius:17px}.achievement h3{font-size:15px}.stats-tabs button{font-size:13px;padding:9px 6px}.stats-tabs{border-radius:15px;margin-top:22px}.subject-bar{gap:12px}.subject-bar .row{font-size:14px}.subject-bar small{font-size:12px}.trend-chart{gap:7px}.trend-track{width:24px;height:105px;border-radius:10px}.trend-column{gap:7px;font-size:11px}.trend-column strong{font-size:12px}.trend-column small{font-size:11px}.lesson-header{padding:17px 0}.lesson-header h1{font-size:28px;line-height:1.35}.lesson-header .lead{font-size:14px}.lesson-content{padding:23px 20px;border-radius:24px}.lesson-content h2{font-size:19px;gap:10px;align-items:flex-start}.lesson-content h2>span{margin-top:2px;font-size:13px;padding:3px 9px}.lesson-content p,.lesson-content li{font-size:16px;line-height:1.8}.lesson-content>section{margin-bottom:26px}.worked-example,.recall-box{padding:19px 16px;border-radius:18px}.worked-example h2,.recall-box h2,.pitfalls h2{font-size:18px}.source-band{padding:18px 20px;border-radius:20px}.source-band p{font-size:13px}.source-band strong{font-size:14px}.source-band a{font-size:14px}.lesson-card h3{font-size:18px;margin:10px 0 14px}.lesson-card p{font-size:13px;min-height:auto}.curriculum-note{padding:20px;border-radius:22px;margin-top:18px}.curriculum-note>.row strong{font-size:15px}.curriculum-note p{font-size:13px}.lesson-bottom .primary,.lesson-bottom .secondary{font-size:14px}.self-breakdown span{font-size:13px}.notion-row>.row{font-size:14px}.notion-row .fine{font-size:12px}.topic-grid{gap:15px}.read-link{font-size:14px}.achievement .fine{font-size:12px}.result-top .score-big{font-size:clamp(34px,8vw,62px)}}
@media(prefers-reduced-transparency:reduce){.card,.answer-surface,.choice,.app-nav,.question-actions,dialog{background:#ede8f9;backdrop-filter:none;-webkit-backdrop-filter:none}}

/* Clear surfaces, distinct destinations and restrained glass navigation. */
:root{--ink:#172b36;--muted:#51636e;--bg:#edf2f4;--line:#dae3e8;--violet:#0877c9;--violet-dark:#075fa1;--green:#148168;--accent:#0877c9}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:#edf2f4;background-image:radial-gradient(ellipse at 95% 0,#d9ecf2 0,transparent 45%),linear-gradient(180deg,#edf2f4,#e9eff2);background-attachment:fixed;color:var(--ink)}body:before{display:none}
body.view-revise{--accent:#13785e;--violet:#13785e;--violet-dark:#0a5b45;background-image:radial-gradient(ellipse at 95% 0,#d5e9df,transparent 45%),linear-gradient(180deg,#eef3ef,#e9f0ed)}
body.view-play{--accent:#975305;--violet:#975305;--violet-dark:#754001;background-image:radial-gradient(ellipse at 95% 0,#ffe4b1,transparent 45%),linear-gradient(180deg,#f4f0e7,#edece8)}
body.view-progress{--accent:#225e79;--violet:#225e79;--violet-dark:#18465a}
.brand{color:var(--ink);font-weight:750;letter-spacing:-1px}.monogram{background:#0877c9;box-shadow:none;border-radius:14px}.brand small{font-weight:500}.avatar{background:#fff9;border:1px solid #ccd8df;color:#465d6a;box-shadow:none}
h1,h2,h3,.heading h1{color:#172b36;font-weight:720}h1{font-size:34px;letter-spacing:-1.1px}.heading h1{font-size:34px;letter-spacing:-1.1px}.heading h1 em,h1 em{background:none;color:#172b36;-webkit-text-fill-color:#172b36}.eyebrow{color:#3f5c69;font-size:12px;font-weight:650;letter-spacing:1.2px}.lead,.heading .lead{color:#465e6c}.fine,.muted{color:#51636e}.fine{font-size:14px}.card-title>span{font-size:14px;color:#51636e}.card{background:#fffffff2;border:1px solid #dce5e9;box-shadow:0 7px 24px #243f4d06;backdrop-filter:none;-webkit-backdrop-filter:none;border-radius:24px;padding:25px}.training-card{background:#fff}.card-title h2{font-size:21px}.workspace{gap:20px}.heading{margin-bottom:20px}
.app-nav{background:#f9fcffce;border:1px solid #ffffff;box-shadow:0 8px 28px #243f4d16,inset 0 1px 0 #fff;backdrop-filter:blur(24px) saturate(1.15);-webkit-backdrop-filter:blur(24px) saturate(1.15);padding:5px;gap:3px}.app-nav a{color:#526774;font-weight:550;border-radius:16px;font-size:14px}.app-nav a.active{background:#fff;color:var(--accent);box-shadow:0 2px 8px #263e4c0b}.app-nav a svg{width:25px;height:25px;stroke:none}.app-nav a:hover{color:var(--accent)}
.subject-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.subject,.subject:has(input:checked){min-height:67px;display:flex;flex-direction:row;justify-content:flex-start;text-align:left;gap:12px;padding:13px 36px 13px 12px;background:#f6f8fa;border:1px solid #e1e7eb;border-radius:16px;box-shadow:none;transform:none}.subject:has(input:checked){background:#eaf5fb;border:1px solid #84bad9;box-shadow:none}.subject:hover{transform:none;background:#edf4f7}.subject .icon{width:36px;height:36px;border-radius:11px;background:transparent;color:#435f70;border:0;box-shadow:none}.subject:has(input:checked) .icon{color:#0877c9}.subject .icon svg{width:24px;height:24px;stroke-width:1.7}.subject strong{font-size:15px;font-weight:600;color:#1b3543}.subject input{top:50%;right:13px;transform:translateY(-50%);width:18px;height:18px;accent-color:#0877c9}.formula-icon{font-family:-apple-system,BlinkMacSystemFont,sans-serif;font-style:normal;font-weight:650;font-size:23px;letter-spacing:-1px}
.count-selector{gap:8px}.count-selector button{background:#f5f8fa;border:1px solid #dde6eb;border-radius:15px;box-shadow:none;color:#425969;min-height:80px;padding:12px}.count-selector button strong{font-size:25px;font-weight:700}.count-selector button span{font-size:14px;color:inherit}.count-selector button.active{background:#0877c9;color:#fff;border:1px solid #0877c9;box-shadow:0 3px 8px #0877c921}.step-label{font-weight:600;font-size:15px}.step-label b{border:0;box-shadow:none;background:#eaf1f5;color:#405c6c;border-radius:50%}.selected-count{color:#526774;font-size:14px}.badge{background:#eef4f7;color:#486373;border:0;box-shadow:none}.mode-tabs{background:#eef3f6;border:0;box-shadow:none;border-radius:14px}.mode-tabs button{font-weight:550;color:#536b79;font-size:14px}.mode-tabs button.active{background:#fff;color:#17394d;box-shadow:0 2px 6px #1e384511}.primary,.install{background:var(--accent);border:0;box-shadow:0 3px 7px #21495f16;border-radius:15px;font-weight:650;letter-spacing:0}.primary:hover,.install:hover{background:var(--violet-dark)}.secondary{background:#f9fbfc;border:1px solid #d6e1e7;color:#243f4d;box-shadow:none;font-weight:600}.link{color:var(--accent);font-weight:600}.primary.full{margin-top:20px}
.xp-strip{background:#dbeaf2;border:1px solid #ccdee9;box-shadow:none;color:#173e56;border-radius:18px;padding:14px 18px;gap:14px}.xp-strip strong{color:#173e56}.xp-strip span,.xp-strip .fine{color:#3c6074;font-size:14px}.xp-strip .xp-emblem{background:#f3fbff;color:#0877c9;box-shadow:none;border:0;width:38px;height:38px}.xp-meter{background:#bdd4e1;height:6px}.xp-meter>div{background:#0877c9;box-shadow:none}.streak-pill{background:#fdf5e7;border:1px solid #ecdfca;box-shadow:none;color:#8d5014;backdrop-filter:none;-webkit-backdrop-filter:none}.streak-pill small{color:#885828}.streak-pill svg{color:#d7891e}.icon-orb{background:#edf4f7;color:var(--accent);box-shadow:none;border:0}.focus-card{background:#dceee4;border:1px solid #c6dfd1;color:#174e39;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}.focus-card h2{color:#174e39}.focus-card p{color:#39614d}.focus-card .primary{background:#13785e}.week-day b{background:#f1f5f7;border:0;box-shadow:none;color:#657984}.week-day.today b{border:1px solid #0877c9;color:#0877c9}.week-day.done b{background:#13785e;color:#fff}.bottom-grid .action-card{background:#e8f3f9;border-color:#d0e3ec;box-shadow:none}.bottom-grid .action-card.game{background:#fff1d4;border-color:#eddfbd}.bottom-grid .action-card p{color:#536672}.bottom-grid .action-card.game .icon-orb{background:#ffdfa0;color:#925409}
.game-arena{display:grid;grid-template-columns:1.25fr 1fr;gap:20px}.game-feature{border-radius:28px;padding:30px;display:flex;flex-direction:column;align-items:flex-start}.challenge-feature{background:linear-gradient(145deg,#18394b,#0b2736);color:#fff;box-shadow:0 14px 30px #12354916}.game-feature h2{font-size:30px;letter-spacing:-1px;line-height:1.15;margin:12px 0}.challenge-feature h2{color:white}.game-feature p{font-size:16px;line-height:1.6;margin:0 0 18px;max-width:38ch}.challenge-feature p{color:#d2e0e7}.game-topline{display:flex;align-items:center;justify-content:space-between;width:100%;gap:12px;font-size:12px}.game-label{letter-spacing:1.2px;font-weight:650}.game-count{background:#ffffff19;border:1px solid #ffffff23;border-radius:20px;padding:5px 10px;font-size:13px}.game-feature-icon{margin-top:28px;width:56px;height:56px;display:grid;place-items:center;border-radius:17px;background:#ffdb83;color:#6e450a}.game-feature-icon svg{width:30px;height:30px}.game-rules{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 6px}.game-rules span{font-size:13px;background:#ffffff0e;border:1px solid #ffffff26;padding:6px 12px;border-radius:10px;color:#dce6eb}.challenge-feature .primary{background:#ffda83;color:#42300f;box-shadow:0 3px 0 #d2a447;margin-top:auto}.challenge-feature .primary:hover{background:#ffe4a4}.challenge-feature small{font-size:12px;color:#b7ccd6;align-self:center;margin-top:12px}.express-feature{background:#fff9e9;border:1px solid #e9dfc4;color:#644816}.express-feature h2{color:#523c18}.express-feature .game-count{background:#f5e7c6;border-color:#ebd8a8}.express-feature p{color:#6f6043}.express-feature .game-feature-icon{background:#fff0c3;color:#986c15}.express-detail{display:flex;gap:16px;align-items:center;margin:8px 0 20px}.express-detail strong{font-size:54px;line-height:1;font-weight:750;color:#8e6011}.express-detail span{font-size:14px;color:#7b6744}.express-feature .primary{background:#93611a;margin-top:auto}.game-subjects{margin-top:24px}.game-subjects .subject-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.chip,.stats-tabs button{background:#fff;border:1px solid #d7e3e8;color:#455c69;box-shadow:none}.chip.active,.stats-tabs button.active{background:var(--accent);color:white;border-color:var(--accent);box-shadow:none}.curriculum-note{background:#f9fcfa;border:1px solid #d5e4dc;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;color:#324f42}.curriculum-note p{color:#4c6559}.lesson-reader{background:#fff;border:1px solid #d8e3dd;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}.lesson-header{background:#f0f6f2;border-bottom:1px solid #dbe7df}.source-band{background:#f7f9f8;color:#3f594b}.source-band p{color:#536c5e}.source-band a{color:#13785e}.lesson-card{box-shadow:none;border-color:#dce5e0}.lesson-card h3{font-weight:650}.lesson-card .number-mark{background:#e9f3ec!important;color:#13785e!important;border:0;box-shadow:none}.lesson-status{background:#f0f4f2;color:#53695c}.lesson-status.read{background:#dff1e6;color:#1a6946}.read-link{color:#13785e}.worked-example{background:#edf7f2;border:1px solid #d6eade}.pitfalls{background:#fff8ed}.recall-box{background:#f1f6f9;border-color:#d7e5ec}.lesson-content h2 span{background:#e9f3ed;color:#13785e}.lesson-content h2{color:#183f2b}.progress-track{background:#e6edf0}.progress-fill{background:var(--accent)}.level-card{background:#e3eef3;color:#183e53;border-color:#cedfe7}.level-card h2{color:#183e53}.level-card .xp-emblem{background:#f3faff;color:#225e79;box-shadow:none}.trend-chart{background:none}.achievement.unlocked{background:#eaf4ed;border-color:#c8e2d2}.achievement.locked{background:#f5f7f8;color:#5c6c75}.subject-bar{background:none}.answer-surface,.question-index,.challenge,.choice{background:#fff;border-color:#dce5e9;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}.choice:hover{background:#edf6fb}.choice.selected{background:#e2f2fb;border-color:#0877c9}.answer-surface input,.answer-surface textarea,input,textarea{background:#fff;color:#19333f;border-color:#ccdce4}.question-card{background:#fff}.exercise-bottom{background:#ffffffdf;border-color:#e0e8ec}.feedback.correct{background:#e8f5ed}.feedback.wrong{background:#fff1e5}dialog{background:#fff;border:1px solid #d9e2e7;box-shadow:0 18px 60px #18334235}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline-color:#0877c9}
.revision-toolbar{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.revision-toolbar label{flex:1;min-width:160px;font-size:14px;font-weight:600;color:#375647}.revision-toolbar select{display:block;width:100%;margin-top:6px;border:1px solid #ccddd2;background:#fff;color:#254835;border-radius:12px;padding:11px 12px;min-height:46px}.cycle-tabs{display:flex;gap:8px;overflow-x:auto;padding:3px 0 8px;margin:18px 0 8px}.cycle-tabs button{white-space:nowrap;border:1px solid #cdded4;background:#fff;color:#456553;border-radius:14px;padding:10px 14px;font-size:14px;min-height:46px}.cycle-tabs button.active{background:#13785e;color:#fff;border-color:#13785e}.revision-path{font-size:14px;color:#4d6a59;margin:20px 0 8px}.chapter-group{margin:22px 0}.chapter-group>h2{font-size:22px;font-weight:650;margin-bottom:14px}.catalog-note{font-size:14px;color:#4c6358;max-width:76ch}.session-plan{background:#f2f7f4;border:1px solid #d9e7dd;border-radius:20px;padding:22px;margin-top:25px}.session-plan h2{font-size:21px}.session-plan details{border-bottom:1px solid #d8e6dd;padding:14px 0}.session-plan details:last-child{border:0}.session-plan summary{cursor:pointer;font-weight:600;font-size:16px;color:#214a35}.session-plan p{margin:10px 0 0;color:#415e4d;font-size:16px;line-height:1.65}.coverage-details{background:#fff;border:1px solid #dce5e0;border-radius:18px;padding:18px;margin:20px 0}.coverage-details summary{cursor:pointer;font-weight:600;color:#28543b}.coverage-details p,.coverage-details li{font-size:14px;color:#4d6657}.lesson-content .learning-goal{background:#f0f6f3;padding:16px;border-radius:15px;border:1px solid #dce8df}.empty-revision{padding:24px;background:#fff;border-radius:20px;border:1px solid #dce5e0}
@media(max-width:800px){.game-arena{grid-template-columns:1fr}.game-feature{padding:25px}.game-feature h2{font-size:28px}.challenge-feature .primary{margin-top:20px}.game-subjects .subject-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.app-nav{border-radius:26px}.app-nav a{font-size:12px;padding:9px 3px;gap:5px;border-radius:19px}.app-nav a svg{width:24px;height:24px}.card{padding:20px;border-radius:22px}.heading h1,h1{font-size:29px;letter-spacing:-.8px}.heading .lead{font-size:15px}.xp-strip{padding:13px 14px;gap:10px}.xp-strip .fine{font-size:12px}.subject,.subject:has(input:checked){padding:12px 31px 12px 9px;gap:6px;min-height:65px}.subject strong{font-size:14px}.subject .icon{width:28px;height:32px}.subject input{right:10px;width:17px;height:17px}.count-selector button strong{font-size:24px}.count-selector button span{font-size:13px}.cycle-tabs{margin-top:16px}.revision-toolbar{gap:10px}.revision-toolbar label{min-width:130px}.lesson-header h1{font-size:26px}.game-feature-icon{margin-top:23px}.lesson-content{padding:20px}.config-line{font-size:12px}.fine{font-size:14px}.step-label{font-size:14px}.selected-count{font-size:13px}.streak-pill{padding:10px}.streak-pill small{font-size:12px}.streak-number{font-size:22px}.app-nav{bottom:calc(10px + env(safe-area-inset-bottom));left:10px;right:10px;width:auto;max-width:none}.shell{padding-bottom:calc(95px + env(safe-area-inset-bottom))}}
@media(max-width:360px){.subject-grid{grid-template-columns:1fr}.subject strong{font-size:15px}.game-subjects .subject-grid{grid-template-columns:1fr}.revision-toolbar{display:block}.revision-toolbar label{display:block;margin:12px 0}.heading{align-items:flex-start}.streak-pill small{display:none}}
@media(prefers-reduced-transparency:reduce){.app-nav,.exercise-bottom{background:#f8fbfc;backdrop-filter:none;-webkit-backdrop-filter:none}}
.grade-guidance{border-top:1px solid #dfe8e2;margin-top:24px;padding-top:24px}.grade-guidance h2{font-size:21px}.grade-guidance p{font-size:16px;line-height:1.65;color:#405c4b}.view-play .subject:has(input:checked){background:#fff3d9;border-color:#d7b66d}.view-play .subject:has(input:checked) .icon{color:#8d6013}.view-play .subject input{accent-color:#95641a}.game-feature .primary{min-height:54px}.view-revise .lesson-card:hover{border-color:#9ac8ac;background:#fbfefd}.view-revise .number-mark{background:#e9f3ec;color:#13785e;border:0;box-shadow:none}.view-progress .level-card .fine{color:#3d6073}
@media(max-width:800px){.app-nav{position:fixed;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0;padding:6px;z-index:50;background:#f9fcffde;backdrop-filter:blur(24px) saturate(1.15);-webkit-backdrop-filter:blur(24px) saturate(1.15);box-shadow:0 8px 28px #243f4d18}.app-nav a{flex-direction:column;justify-content:center;min-height:58px;line-height:1.2;white-space:nowrap;font-weight:550}.workspace{grid-template-columns:1fr}.heading{gap:12px}.count-selector button{min-height:74px}.game-feature h2{line-height:1.2}.chapter-group h2{font-size:21px}.game-arena{gap:16px}}
@media(prefers-reduced-transparency:reduce){.app-nav,.exercise-bottom,.question-actions,.card,.answer-surface,.choice,dialog{background:#f8fbfc;backdrop-filter:none;-webkit-backdrop-filter:none}}
/* Revision journey and readable single-session sheets */
.journey-toolbar{display:flex;gap:16px;align-items:end;margin:24px 0}.journey-toolbar label{display:grid;gap:8px;font-size:14px;font-weight:700;flex:1}.journey-toolbar select{width:100%;padding:14px;border:1px solid #ccd7df;border-radius:16px;background:white;color:#172b3a;font:inherit}.journey-summary{display:flex;flex-wrap:wrap;gap:20px;align-items:center;background:#e7f3ef;border:1px solid #c4ded2;padding:26px;border-radius:24px}.journey-summary>div:first-child{flex:1;min-width:190px}.journey-summary h2{font-size:23px;margin:8px 0}.journey-summary p{color:#334c43}.journey-summary>.progress-track{width:100%;flex-basis:100%}.journey-map{position:relative;width:min(100%,620px);margin:35px auto 0;background:linear-gradient(180deg,#f4f8f6,#eaf1f6);border-radius:30px;overflow:hidden}.journey-map>svg{position:absolute;width:100%;height:100%;inset:0;pointer-events:none}.journey-map .journey-route>path{fill:none;stroke:#cedbdc;stroke-width:8;stroke-linecap:round}.journey-map ol{padding:0;margin:0;list-style:none}.journey-node{position:absolute;transform:translateX(-50%);width:180px;display:flex;align-items:center;flex-direction:column;text-align:center;gap:5px}.journey-node>button{position:relative;width:78px;height:78px;border:5px solid #fff;border-radius:26px;background:var(--node-color);color:white;box-shadow:0 6px 0 color-mix(in srgb,var(--node-color),black 20%),0 10px 18px #1c36401a;display:grid;place-items:center}.journey-node>button svg{width:30px;height:30px}.journey-node>button>span{font-size:32px;font-weight:800}.journey-node small{position:absolute;right:-5px;bottom:-6px;background:white;color:#254353;border-radius:50%;width:25px;height:25px;display:grid;place-items:center;font-size:12px;font-weight:800}.journey-node.current>button{outline:3px solid var(--node-color);outline-offset:5px;margin-bottom:6px}.journey-node.locked>button{background:#d4dfe2;box-shadow:0 5px 0 #bccbd0;opacity:1;color:#7c919b}.journey-node.locked strong{color:#647883}.journey-node strong{font-size:14px;line-height:1.25;color:#1d3442;max-width:175px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.node-subject{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#506673;margin-top:5px}.node-now{font-size:11px;color:#146440;font-weight:700}.journey-disclaimer{max-width:620px;margin:20px auto}.fiche-reader{max-width:760px;margin:20px auto;background:white;border:1px solid #dae3e7;border-radius:28px;padding:32px}.fiche-reader h1{font-size:clamp(28px,5vw,43px);color:#172c3c;line-height:1.15}.fiche-reader h2{font-size:24px;color:#172c3c;margin:6px 0 18px}.fiche-reader h3{font-size:17px;margin:20px 0 8px}.fiche-reader p,.fiche-reader li,.fiche-reader dd{line-height:1.7;color:#334b59}.fiche-tabs{display:flex;gap:8px;background:#eef3f5;padding:5px;border-radius:15px;margin:25px 0}.fiche-tabs button{flex:1;padding:13px;border:0;background:transparent;color:#425967;border-radius:11px;font-weight:700}.fiche-tabs button.active{background:#fff;color:#096eae;box-shadow:0 2px 5px #20364a12}.fiche-content>section{padding:24px 0;border-bottom:1px solid #e8edef}.section-index{font-size:11px;font-weight:800;letter-spacing:.1em;color:#507386!important;margin:0}.fiche-content dl{margin:0}.fiche-content dl>div{padding:13px 0;border-bottom:1px solid #edf1f3}.fiche-content dt{font-weight:800;color:#172c3c}.fiche-content dd{margin:4px 0 0;font-size:15px}.fiche-content .fiche-example,.fiche-content .fiche-tip,.fiche-content .fiche-errors{padding:22px;border:0;border-radius:18px;margin:20px 0;background:#edf6fc}.fiche-content .fiche-errors{background:#fff5e7}.fiche-content .fiche-tip{background:#edf7ef}.fiche-content>button{margin-top:26px}.fiche-source{font-size:13px;margin-top:28px}.fiche-valid{display:inline-block;border-radius:12px;background:#e5f4ea;padding:8px 12px;color:#196940;font-weight:700}.study-choices{display:grid;gap:12px;margin:24px 0}.study-choices button{text-align:left;white-space:normal}.study-choices .selected{background:#e4f2fb;border:2px solid #0877c9;color:#123b55}.test-definition{font-size:20px;background:#eff5f8;padding:24px;border-radius:18px}.study-feedback{background:#eaf5ef;padding:20px;border-radius:18px;margin-bottom:20px}.study-result{text-align:center;padding:30px 0}.study-result .link{margin-top:20px}.study-test>h2{font-size:25px}
/* Keep answer, explanations and helpers in normal document flow. */
body.in-session main>*{animation:none!important;transform:none!important}body.in-session .question-actions{position:static!important;inset:auto!important;width:100%!important;display:flex;gap:12px;align-items:center;margin:28px 0 0!important;padding:18px 0 max(12px,env(safe-area-inset-bottom))!important;background:transparent!important;backdrop-filter:none!important;box-shadow:none!important;border-top:1px solid #dbe5e9;border-radius:0!important}body.in-session .question-actions button{min-width:0;flex:1;white-space:normal}body.in-session main{padding-bottom:32px!important}body.in-session .question-card{overflow:visible!important}body.in-session .question-head{flex-wrap:wrap;gap:12px}body.in-session .question-head .badge{white-space:normal;max-width:100%}body.in-session .jokers{display:flex;flex-wrap:wrap;gap:8px}body.in-session .jokers button{min-width:0;flex:1 1 100px;white-space:normal}dialog[open]{display:flex;flex-direction:column;max-height:calc(100dvh - 30px);overflow:hidden}#modal-body{overflow-y:auto;min-height:0;overscroll-behavior:contain}dialog>.secondary{flex-shrink:0;margin-top:16px}
@media(max-width:600px){.journey-toolbar{gap:10px}.journey-toolbar>.secondary{font-size:13px;padding:14px 12px}.journey-summary{padding:20px}.journey-summary>.primary{width:100%}.journey-node{width:160px}.journey-node strong{max-width:150px;font-size:13px}.fiche-reader{padding:22px 18px;border-radius:22px}.fiche-reader h2{font-size:22px}body.in-session .question-actions{padding-bottom:18px!important}body.in-session .question-card h2{font-size:clamp(23px,5.5vw,32px)}.fiche-content .fiche-example,.fiche-content .fiche-errors,.fiche-content .fiche-tip{padding:18px}}
/* A brighter, warmer visual system, with distinct learning and play surfaces. */
:root{--ink:#192c30;--muted:#53676a;--bg:#faf7f1;--green:#f26a10;--violet:#f26a10;--violet-dark:#c54b05;--line:#e8e2d8}
body{background:#faf7f1!important;color:#192c30!important;background-image:radial-gradient(ellipse at 95% 0,#fff0d9 0,transparent 45%)!important}.shell{max-width:1120px}.topbar{height:86px}.brand{color:#192c30}.monogram{background:linear-gradient(145deg,#ff9434,#f0640d)!important;box-shadow:0 5px 14px #f26a1025}.monogram>span{background:#fff2bb!important}.brand-light{font-weight:400}.page-intro h1,.heading h1{color:#192c30!important;letter-spacing:-1.7px;font-weight:850;font-size:clamp(33px,5vw,48px)}.page-intro .eyebrow,.heading .eyebrow{color:#b84806!important;font-size:11px;letter-spacing:1.6px}.lead{color:#526367!important;font-size:16px;line-height:1.5}.page-intro{margin-bottom:20px}.primary,.focus-card .primary,.game-feature .primary,.journey-summary .primary{display:inline-flex!important;justify-content:center;align-items:center;gap:12px;background:linear-gradient(135deg,#ff861f,#f16910)!important;border:1px solid #ee6b12!important;color:#fff!important;-webkit-text-fill-color:#fff!important;box-shadow:0 5px 0 #cc4f08,0 10px 18px #e8751520!important;border-radius:18px;font-weight:750;min-height:54px;text-shadow:none!important}.primary svg{width:20px;height:20px;flex-shrink:0}.primary:disabled{opacity:.45;box-shadow:none!important}.secondary{background:#fff!important;border:1px solid #e5dfd4!important;color:#243b40!important;box-shadow:0 2px 4px #3b302205!important;border-radius:17px}.link{color:#c35108!important}.card{background:#fff!important;border:1px solid #ece5db!important;box-shadow:0 8px 28px #42331b06!important;border-radius:24px}.training-card{padding:26px}.card-title h2{font-size:23px}.count-selector{gap:10px}.count-selector button{background:#f6f4ef!important;color:#344b4f!important;border:1px solid #ece6dd!important;border-radius:18px}.count-selector button.active{background:#fff0dc!important;border:2px solid #f57816!important;color:#a94406!important;box-shadow:0 3px 0 #f5c698!important}.count-selector button strong{font-size:30px}.count-selector button span{font-size:12px}.subject-grid{gap:10px}.subject{background:#fff!important;border:1px solid #e3e8e8!important;border-radius:18px!important;box-shadow:none!important}.subject .icon-orb,.subject>span{color:var(--color)}.subject:has(input:checked){border:2px solid var(--color)!important;background:var(--tint)!important;box-shadow:0 3px 0 color-mix(in srgb,var(--color),transparent 75%)!important}.subject strong{color:#1e3439!important}.step-label>b{background:#fff0d9!important;color:#bf520b!important}.mode-tabs{background:#f2f1eb!important;border:0!important}.mode-tabs button.active{background:#fff!important;color:#b94c08!important;box-shadow:0 2px 8px #4a301010!important}.xp-strip{background:#fff2d7!important;border:1px solid #f1d59c!important;border-radius:20px;box-shadow:none!important}.xp-emblem{background:#f6ae26!important;color:white!important}.xp-meter>div,.progress-fill{background:linear-gradient(90deg,#ff9a28,#f36a13)!important}.streak-pill{background:#fff0df!important;border-color:#fed4a9!important;color:#d95908!important}.streak-number{color:#d95908!important}.focus-card{position:relative;overflow:hidden;background:linear-gradient(125deg,#138278,#20aa94)!important;border:0!important;color:#fff!important;padding:28px!important;box-shadow:0 12px 25px #158d791c!important}.focus-card:after{content:'';position:absolute;width:210px;height:210px;border:28px solid #ffffff13;border-radius:50%;right:-90px;top:-90px;pointer-events:none}.focus-card h2{color:white!important;font-size:32px!important;line-height:1.15}.focus-card p{color:#effff9!important;font-size:15px!important}.focus-card>.icon-orb{background:#ffffff20!important;color:white!important}.focus-card .primary{background:#fff!important;border-color:#fff!important;color:#137467!important;-webkit-text-fill-color:#137467!important;box-shadow:0 4px 0 #b5e9da!important}.action-card{background:#e7f5fd!important;border-color:#c5e3f3!important}.action-card.game{background:#fff0d4!important;border-color:#f2d9a3!important}.action-card .icon-orb{background:#fff!important;color:#0876bf!important}.action-card.game .icon-orb{color:#d77008!important}.action-card h3{color:#193b48!important}.action-card p{color:#4f666f!important}.challenge-feature{background:linear-gradient(130deg,#143751,#176c87)!important;border:0!important;box-shadow:0 12px 30px #14476020!important}.challenge-feature h2,.challenge-feature p,.challenge-feature small{color:#fff!important}.challenge-feature .game-feature-icon{background:#ffffff1f!important;color:#ffcc6b!important}.express-feature{background:linear-gradient(130deg,#ffe5a4,#ffbe62)!important;border:0!important}.express-feature h2{color:#653400!important}.express-feature p{color:#694718!important}.game-label{letter-spacing:.12em}.stats-grid>section:first-child{background:#fff0d6!important;border-color:#f5d198!important}.stats-grid strong{color:#c55406!important}.chip.active{background:#fff0da!important;border-color:#fa9b4c!important;color:#a94a09!important}
/* The route is the primary surface: compact controls above a colourful landscape. */
body.view-revise .page-intro{margin-bottom:16px}body.view-revise .page-intro h1{margin:6px 0;font-size:35px}body.view-revise .page-intro .lead{margin:8px 0}.journey-toolbar{margin:18px 0 16px;gap:12px}.journey-toolbar label{gap:6px;font-size:12px;color:#526367}.journey-toolbar select{border-color:#e6ded2;border-radius:16px;padding:12px 14px;font-size:15px;font-weight:650;min-height:48px}.journey-toolbar>.secondary{min-height:48px;padding:12px 15px;font-size:13px}.journey-summary{display:grid!important;grid-template-columns:1fr auto;gap:10px 14px;border:0!important;background:linear-gradient(130deg,#0e8174,#21a68d)!important;color:#fff;border-radius:24px;padding:20px 22px!important;box-shadow:0 10px 25px #16887418}.journey-summary .eyebrow{font-size:10px;color:#c7fff0!important;margin:0!important;letter-spacing:.12em}.journey-summary h2{color:#fff!important;font-size:21px!important;margin:5px 0!important}.journey-summary h2>span{display:block;font-size:12px;font-weight:500;color:#d8fff5;margin-top:4px}.journey-summary p:not(.eyebrow){display:none}.journey-summary>.primary{width:auto!important;min-height:46px;font-size:13px;padding:12px 15px}.journey-summary>.progress-track{grid-column:1/-1;height:6px;background:#ffffff35!important;margin-top:4px}.journey-map{margin:18px auto 0!important;border-radius:28px!important;background:#d7efe5!important;border:1px solid #c6dfd0;overflow:hidden;box-shadow:inset 0 0 0 5px #ffffff55}.journey-map>svg{position:absolute;inset:0;width:100%;height:100%}.journey-map .journey-terrain{z-index:0}.journey-map .journey-route{z-index:1}.journey-route>path{stroke:#fff8e6!important;stroke-width:14!important;filter:drop-shadow(0 2px 1px #537b6b25)}.journey-map ol{position:relative;z-index:2}.journey-node{width:175px!important;gap:5px!important}.journey-node>button{border:4px solid #fff!important;border-radius:50%!important;width:76px!important;height:76px!important;background:linear-gradient(145deg,color-mix(in srgb,var(--node-color),white 15%),var(--node-color))!important;box-shadow:0 6px 0 color-mix(in srgb,var(--node-color),black 18%),0 12px 15px #264f3620!important}.journey-node.locked>button{background:linear-gradient(145deg,color-mix(in srgb,var(--node-color),white 35%),var(--node-color))!important;color:#fff!important;opacity:.83!important}.journey-node.locked>button>span{opacity:1}.journey-node.current>button{outline:3px solid #f47d16!important;outline-offset:6px;margin-bottom:6px}.journey-node.current:before{content:'';position:absolute;width:106px;height:106px;background:#ffd47255;border-radius:50%;top:-15px;z-index:-1}.journey-node strong,.journey-node.locked strong{color:#244538!important;font-size:13px!important;font-weight:750;background:#fff9eceb;padding:5px 9px;border-radius:10px;max-width:180px!important;box-shadow:0 3px 8px #3763470b;line-height:1.3}.node-subject{color:#315c4a!important;background:#ffffffa6;padding:2px 7px;border-radius:7px;font-size:9px!important;letter-spacing:.1em}.node-now{color:#a54507!important;background:#fff0ce;padding:3px 9px;border-radius:8px;font-size:9px;letter-spacing:.04em}.journey-node small{color:#315340;border:1px solid #e2ece4;right:-2px;bottom:-3px}.journey-node.locked small{font-size:17px}.fiche-reader{border-color:#e6dfd3;background:white}.fiche-reader>header{background:linear-gradient(120deg,#fff0d4,#fff9ed);margin:-32px -32px 20px;padding:28px 32px;border-radius:28px 28px 0 0}.fiche-reader .eyebrow{color:#b84a06!important}.fiche-tabs button.active{color:#be5209!important}.fiche-content .section-index{color:#b95510!important}.fiche-content .fiche-example{background:#e5f4ff}.fiche-content .fiche-tip{background:#e1f5e8}.fiche-content .fiche-errors{background:#fff0d9}
/* Glass dock: a single active accent with readable labels. */
.app-nav{background:#ffffffd9!important;backdrop-filter:blur(22px) saturate(170%);-webkit-backdrop-filter:blur(22px) saturate(170%);border:1px solid #fff!important;box-shadow:0 -4px 30px #60462309,0 6px 20px #50472b0d!important}.app-nav a{color:#5c6d6e!important}.app-nav a.active{color:#d85b09!important;background:#fff2e3!important;box-shadow:none!important}.app-nav a>svg{background:transparent;width:25px;height:25px}.app-nav a.active>svg{filter:drop-shadow(0 3px 4px #e57c2420)}
@media(max-width:800px){.shell{padding-left:20px!important;padding-right:20px!important}.topbar{height:78px}.app-nav{bottom:calc(10px + env(safe-area-inset-bottom))!important;left:12px!important;right:12px!important;padding:7px!important;border-radius:25px!important}.app-nav a{padding:10px 3px!important;border-radius:18px!important;gap:5px!important;font-size:11px!important;min-height:61px}.app-nav a>svg{width:23px;height:23px}.training-card{padding:22px!important}.focus-card h2{font-size:31px!important}.journey-summary{padding:18px!important}.journey-summary h2{font-size:19px!important}.journey-node{width:150px!important}.journey-node strong{max-width:150px!important;font-size:12px!important}.journey-node>button{width:70px!important;height:70px!important}.fiche-reader>header{margin:-22px -18px 20px;padding:25px 20px;border-radius:22px 22px 0 0}.page-intro .lead{font-size:15px}.heading h1{font-size:34px}.count-selector button{padding:16px 8px!important}.subject{padding:14px 8px!important}main{padding-bottom:120px}.journey-toolbar>.secondary{font-size:12px}.journey-summary>.primary{padding:10px 12px!important;font-size:12px!important}.streak-pill{min-width:65px}.journey-map{width:calc(100% + 12px);margin-left:-6px!important}.fiche-reader{margin-left:0;margin-right:0}}
.journey-node small svg{width:13px;height:13px}.app-nav a.active>svg{background:#f77517;color:white;border-radius:13px;padding:7px;width:37px;height:37px}.app-nav a>svg{width:29px;height:29px}.app-nav a{min-height:69px!important}.journey-node>button svg{display:block}.journey-node small svg{margin:0}button:focus-visible,a:focus-visible{outline-color:#f57816}
@media(max-width:800px){.app-nav a>svg{width:26px;height:26px}.app-nav a.active>svg{width:34px;height:34px;padding:6px}.app-nav a{min-height:65px!important}}
/* Lightweight, animated school worlds */
.heading,.illustrated-intro{position:relative}.section-art{width:230px;height:145px;position:absolute;right:0;top:-10px;display:flex;align-items:center;pointer-events:none}.section-art .subject-art{width:140px;height:135px;flex-shrink:0}.section-art .subject-art+svg{margin-left:-48px;transform:translateY(24px);width:130px}.heading>div:not(.section-art){position:relative;z-index:1}.heading{padding-right:220px}.heading>.streak-pill{position:absolute;right:6px;bottom:-16px;z-index:3}.illustrated-intro{padding-right:220px}.subject-art{overflow:visible}.art-float,.world-float{animation:art-float 5s ease-in-out infinite;transform-origin:center}.art-orbit{animation:orbit 12s linear infinite;transform-origin:122px 42px}.world-spark{animation:twinkle 3s ease-in-out infinite}.section-art svg:nth-child(2) .art-float{animation-delay:-2s}.journey-map{background:#bfe5cf!important}.world-name{position:absolute;z-index:4;top:12px;left:50%;transform:translateX(-50%);font-size:10px;letter-spacing:.07em;font-weight:750;text-transform:uppercase;white-space:nowrap;color:#265549;background:#fff7eacb;border:1px solid #ffffffb3;padding:6px 12px;border-radius:12px}.journey-scenery{position:absolute;inset:0;z-index:1;overflow:hidden;pointer-events:none}.scenery-island{position:absolute;width:160px;height:180px;opacity:.98}.island-right{right:-18px}.island-left{left:-30px}.world-illustration{width:160px;height:150px;display:block;filter:drop-shadow(0 10px 8px #22624c18)}.scenery-object{position:absolute;width:80px;height:80px;right:15px;bottom:2px;filter:drop-shadow(0 3px 2px #22544210)}.island-left .scenery-object{left:0;right:auto}.scenery-island:nth-child(even) .world-float{animation-delay:-2s}.journey-map .journey-route{z-index:2}.journey-map ol{z-index:3}.journey-map .journey-route>path{stroke:#fff7d8!important;stroke-width:18!important;filter:drop-shadow(0 4px 1px #58816b28)}.journey-node>button{background:linear-gradient(145deg,#fffdf2,var(--node-tint))!important;border:3px solid #fff!important;box-shadow:0 6px 0 color-mix(in srgb,var(--node-color),white 40%),0 10px 15px #28594524!important}.journey-node.locked>button{background:linear-gradient(145deg,#fffdf5,var(--node-tint))!important;opacity:1!important}.journey-node>button>span{height:60px;width:64px;display:grid;place-items:center;color:var(--node-color)}.journey-node>button .subject-art{width:72px!important;height:65px!important}.journey-node.locked>button .art-float{animation:none}.journey-node.current>button{outline-color:#f69326!important}.journey-node.complete>button{background:#218d74!important;color:white}.journey-node.complete>button>span{color:white}.journey-node.current:before{animation:current-glow 3s ease-in-out infinite}.fiche-art{float:right;width:135px;height:120px;margin:-12px -10px 6px 12px}.fiche-reader>header{display:flow-root}.fiche-reader>header h1{font-size:32px}.world-c2 .journey-terrain{filter:hue-rotate(10deg) saturate(1.15)}.world-c3 .journey-terrain{filter:hue-rotate(-10deg)}.world-c4 .journey-terrain{filter:hue-rotate(32deg) saturate(.8)}
@keyframes art-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}@keyframes orbit{to{transform:rotate(360deg)}}@keyframes twinkle{0%,100%{opacity:.35}50%{opacity:1}}@keyframes current-glow{0%,100%{opacity:.5;transform:scale(.97)}50%{opacity:1;transform:scale(1.05)}}
@media(max-width:800px){.heading{padding-right:95px}.section-art{width:112px;height:110px;top:-10px;right:-8px}.section-art .subject-art{width:85px;height:100px}.section-art .subject-art+svg{width:75px;margin-left:-46px;transform:translateY(25px)}.heading h1{max-width:240px}.heading .lead{max-width:230px}.heading>.streak-pill{right:0;bottom:-22px;min-width:55px}.illustrated-intro{padding-right:90px}.illustrated-intro .lead{max-width:260px}.scenery-island{width:135px}.world-illustration{width:135px;height:135px}.scenery-object{width:65px;height:70px;bottom:15px}.island-right{right:-24px}.island-left{left:-27px}.fiche-art{width:95px;height:90px;margin:-5px -4px 6px 10px}.fiche-reader>header h1{font-size:28px}.journey-node strong{background:#fffbf0ed}.journey-node>button>span{width:60px;height:55px}.journey-node>button .subject-art{width:65px!important;height:60px!important}}
@media(prefers-reduced-motion:reduce){.art-float,.art-orbit,.world-float,.world-spark,.journey-node.current:before{animation:none!important}}
/* Correct the inherited filled-icon reset; outlined dock icons need a stroke. */
.app-nav a>svg{display:block!important;stroke:currentColor!important;fill:none!important;stroke-width:1.9!important;opacity:1!important;visibility:visible!important;flex-shrink:0}.app-nav a>svg *{stroke:currentColor!important;fill:none!important}.app-nav a.active>svg{color:#fff!important}.xp-strip>div>span{color:#77531e!important}.xp-strip .fine{color:#685533!important}
/* Header elements participate in layout rather than overlapping absolute positions. */
.heading{display:grid!important;grid-template-columns:minmax(0,1fr) 150px;gap:14px 24px;align-items:center;padding:0!important;margin:20px 0 24px!important}.heading>div:not(.section-art):not(.streak-pill){grid-column:1;grid-row:1}.heading .section-art{position:relative!important;inset:auto!important;grid-column:2;grid-row:1;width:150px!important;height:130px!important;justify-self:end}.heading>.streak-pill{position:static!important;inset:auto!important;grid-column:1/-1;grid-row:2;justify-self:start;display:flex!important;align-items:center;gap:10px;padding:8px 14px!important;border-radius:14px!important;min-width:0!important}.heading .streak-number{display:flex;gap:7px;font-size:19px!important;line-height:1.2}.heading .streak-number svg{width:21px;height:21px}.heading>.streak-pill small{font-size:12px!important}.heading h1{max-width:none!important;font-size:clamp(30px,4vw,43px)!important;line-height:1.12}.heading .lead{max-width:540px!important;font-size:15px!important;line-height:1.5}.heading .section-art .subject-art{width:102px!important;height:120px!important}.heading .section-art .subject-art+svg{width:90px!important;margin-left:-50px!important}
/* Subject selection: illustrated tiles, restrained borders and clear selection. */
.subject-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}.subject.subject-modern{display:flex!important;position:relative;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:7px!important;padding:13px 14px!important;min-height:142px!important;background:linear-gradient(150deg,#fff,var(--tint))!important;border:1px solid #e7e5df!important;border-radius:22px!important;box-shadow:0 5px 14px #1b434407!important;overflow:hidden}.subject.subject-modern:has(input:checked){border:1px solid color-mix(in srgb,var(--color),transparent 40%)!important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--color),transparent 80%),0 5px 15px #2443430a!important}.subject-picture{display:block;width:90px;height:80px;align-self:center}.subject-picture>svg{width:100%;height:100%}.subject-modern .art-float,.subject-modern .art-orbit{animation:none}.subject-caption{display:grid;gap:1px}.subject-caption strong{font-size:14px!important;line-height:1.3}.subject-caption small{font-size:10px;color:#536e70}.subject-modern input{position:absolute!important;top:12px;right:12px;width:17px!important;height:17px!important;margin:0!important;accent-color:#138c76}.subject-modern input:focus-visible{outline:3px solid #ee7c1a;outline-offset:3px}.subject-modern:has(input:checked) .subject-caption small{color:#146955}
/* A rotating three-dimensional world, with projected course markers. */
.world-intro{display:flex;align-items:center;gap:18px;margin:18px 0 20px}.world-intro>div{flex:1;min-width:0}.world-intro h1{font-size:clamp(29px,4vw,42px);line-height:1.12;letter-spacing:-1px;margin:6px 0;color:#19373b}.world-intro p:not(.eyebrow){color:#56706e;font-size:14px;margin:10px 0 0}.world-intro .eyebrow{color:#b8530e;font-size:10px;letter-spacing:.1em}.world-xp{background:#fff0d4;padding:12px 16px;border-radius:18px;font-size:18px;font-weight:800;color:#a94f0b}.world-xp>span{display:block;font-size:10px;font-weight:500;color:#896843}.globe-panel{position:relative;overflow:hidden;border-radius:30px;background:radial-gradient(ellipse at 50% 45%,#397f7a,#163e4c 75%);box-shadow:0 16px 40px #123f4824;border:1px solid #32636a}.globe-panel:before{content:'';position:absolute;inset:0;background-image:radial-gradient(circle at 10% 25%,#ffffff80 1px,transparent 2px),radial-gradient(circle at 84% 16%,#ffffff90 1px,transparent 2px),radial-gradient(circle at 90% 62%,#ffffff50 1px,transparent 2px),radial-gradient(circle at 16% 70%,#ffffff70 1px,transparent 2px);pointer-events:none}.globe-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px 24px;color:white;position:relative;z-index:2}.globe-heading p{font-size:10px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;margin:0 0 4px;color:#c2e9df}.globe-heading strong{font-size:20px}.globe-heading>span{font-size:12px;border:1px solid #ffffff40;border-radius:12px;padding:7px 10px;color:#fff}.globe-stage{position:relative;height:420px;width:100%;max-width:600px;margin:auto;isolation:isolate}.globe-stage canvas{width:100%;height:100%;display:block;touch-action:pan-y;cursor:grab}.globe-stage canvas:active{cursor:grabbing}.globe-stage:after{content:'';position:absolute;bottom:18px;left:25%;width:50%;height:20px;border-radius:50%;background:#032d3370;filter:blur(10px);z-index:-1}.globe-nodes{position:absolute;inset:0;pointer-events:none}.globe-node{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:54px;height:54px;display:grid;place-items:center;border-radius:50%;border:3px solid #fffcdf;background:linear-gradient(130deg,#fffdf0,#f5e9cc);box-shadow:0 5px 0 #c5ab73,0 8px 12px #0d48423d;pointer-events:auto;padding:0;transition:box-shadow .2s}.globe-node>span{width:55px;height:48px;display:grid;place-items:center;color:white;font-weight:800;font-size:25px}.globe-node .subject-art{width:55px;height:48px}.globe-node .art-float,.globe-node .art-orbit{animation:none}.globe-node:disabled{opacity:.78;box-shadow:0 4px 0 #8ea88c!important}.globe-node.current{outline:3px solid #ffb447;outline-offset:5px;box-shadow:0 5px 0 #bf861f,0 0 25px #ffc05b7d}.globe-node.complete{background:#218c72}.globe-node small{position:absolute;right:-3px;bottom:-5px;width:18px;height:18px;background:white;border-radius:50%;color:#1b5b54;font-size:9px;display:grid;place-items:center;font-weight:800}.globe-node:not(:disabled):active{transform:translate(-50%,-50%) scale(.96)}.globe-track{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.globe-track path{stroke:#ffe8a8;stroke-width:.75;fill:none;stroke-dasharray:1 1;stroke-linecap:round;opacity:.9}.globe-drag{position:absolute;bottom:1px;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:10px;color:#cef3e7;background:#123e4966;padding:5px 10px;border-radius:8px;pointer-events:none}.world-paging{display:flex;justify-content:center;align-items:center;gap:25px;padding:14px 20px 20px;color:#e6fff8;font-size:12px}.world-arrow{width:37px;height:37px;border:1px solid #ffffff50;background:#ffffff14;color:white;border-radius:13px;font-size:20px}.world-next{display:flex;align-items:center;gap:18px;background:#fff;border:1px solid #e6e7de;border-radius:24px;padding:22px;margin:20px 0;box-shadow:0 6px 22px #3b452307}.world-next>div{flex:1;min-width:0}.world-next .eyebrow{font-size:9px;color:#b65510}.world-next h2{font-size:20px;line-height:1.25;margin:6px 0}.world-next p{font-size:12px;color:#5b726a;margin:0}.world-next>.primary{min-height:46px;font-size:13px;padding:12px 17px}.world-outline{background:#f0f3e9;border-radius:16px;padding:14px 18px;font-size:13px}.world-outline summary{font-weight:700;cursor:pointer}.world-outline ol{padding-left:20px}.world-outline li{padding:10px 0}.world-outline li>span,.world-outline li>small{display:block;font-size:11px;color:#58746b}.world-outline li>strong{display:block;font-size:13px}.world-map-link{margin:20px 0 10px}.globe-fallback:before{content:'';position:absolute;width:300px;height:300px;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle at 35% 25%,#b4d86b 0,#76bf85 30%,#239eb3 55%,#126276 90%);box-shadow:inset -30px -20px 40px #113c5966,0 0 30px #8bdeb32e}.globe-fallback .globe-track{display:none}
@media(max-width:800px){.heading{grid-template-columns:minmax(0,1fr) 90px!important;gap:8px 12px!important}.heading .section-art{width:90px!important;height:105px!important}.heading .section-art .subject-art{width:72px!important;height:85px!important}.heading .section-art .subject-art+svg{width:63px!important;margin-left:-45px!important}.heading h1{font-size:31px!important}.heading .lead{font-size:14px!important;max-width:none!important}.heading>.streak-pill{padding:6px 12px!important}.xp-strip{gap:10px;padding:16px!important}.xp-strip>div>span{font-size:12px}.subject-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}.subject.subject-modern{padding:12px 10px!important;min-height:125px!important;border-radius:18px!important}.subject-picture{width:75px;height:66px}.subject-caption strong{font-size:12px!important}.subject-caption small{font-size:9px}.subject-modern input{width:15px!important;height:15px!important;top:9px;right:9px}.globe-stage{height:370px}.globe-heading{padding:18px 20px}.world-intro{gap:10px}.world-xp{font-size:16px;padding:10px 12px}.world-intro h1{font-size:29px}.world-next{padding:17px;gap:12px}.world-next h2{font-size:17px}.world-next>.primary{font-size:12px;padding:12px}.globe-panel{border-radius:25px}}
@media(max-width:360px){.subject-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.world-next{flex-wrap:wrap}.world-next>.primary{width:100%}.heading{grid-template-columns:minmax(0,1fr) 70px!important}.heading .section-art{width:70px!important}}
.globe-node:disabled{transform:translate(-50%,-50%)!important}.globe-node small{pointer-events:none}
/* Edge-attached navigation with a stable safe area, never a floating dock. */
.app-nav{position:fixed!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;transform:none!important;width:100%!important;max-width:none!important;margin:0!important;border-radius:0!important;border:0!important;border-top:1px solid #dce4de!important;padding:7px max(12px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))!important;background:#fffef9!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:0 -4px 18px #173b3b09!important;display:grid;grid-template-columns:repeat(4,1fr);z-index:100}.app-nav a{border-radius:14px!important;min-height:60px!important;padding:6px 3px!important;max-width:180px;width:100%;justify-self:center}.app-nav a.active{background:#fff1e2!important}.app-nav a>svg{width:25px!important;height:25px!important;padding:0!important;background:transparent!important;color:inherit!important;border-radius:0!important;filter:none!important}.app-nav a.active>svg{color:#d45b08!important}.app-nav a>span{font-size:11px!important}.in-session .app-nav{display:none!important}.shell{padding-bottom:calc(88px + env(safe-area-inset-bottom))!important}main{padding-bottom:24px!important}.shell>footer{margin-bottom:0}.view-revise .shell:has(.adventure){max-width:none!important;padding:0 0 calc(80px + env(safe-area-inset-bottom))!important}.view-revise .shell:has(.adventure)>.topbar{display:none!important}.view-revise main:has(.adventure){padding:0!important;margin:0!important;max-width:none!important}.view-revise main>.adventure{animation:none!important;transform:none!important}.view-revise .shell:has(.adventure)>footer{display:none}.adventure{max-width:680px;margin:0 auto;background:#e9f4ed;min-height:100vh}.adventure-header{padding:17px 20px 13px;background:linear-gradient(140deg,#fff4da,#ffe1a0);border-bottom:1px solid #e7b972}.adventure-title{display:flex;align-items:center;gap:12px}.adventure-brand{display:grid;place-items:center;width:42px;height:42px;background:#f88628;border-radius:14px;color:white;font-size:26px;font-weight:850;box-shadow:0 3px 0 #d66417}.adventure-title>div{flex:1}.adventure-title p{margin:0;color:#856129;font-size:9px;font-weight:750;letter-spacing:.09em}.adventure-title h1{margin:3px 0;font-size:22px;color:#274d48;letter-spacing:-.5px}.adventure-score{font-weight:800;font-size:22px;color:#b45910;background:#fff6e5;border:1px solid #f4d59c;border-radius:14px;padding:5px 12px}.adventure-score small{font-size:10px;margin-left:4px}.adventure-controls{display:flex;align-items:center;gap:9px;margin-top:13px}.adventure-controls select{background:#fff8ea;border:1px solid #e8c791;border-radius:10px;padding:8px 9px;color:#3b5a4a;font-size:12px;min-width:0;max-width:43%}.adventure-controls button{display:flex;align-items:center;gap:6px;background:transparent;border:0;color:#765025;font-weight:650;font-size:12px;padding:7px}.adventure-controls button svg{width:15px;height:15px}.adventure-controls>span{margin-left:auto;font-size:10px;color:#745c38;white-space:nowrap}.adventure-scene{position:relative;aspect-ratio:2/3;overflow:hidden;background:#b9dcd3}.adventure-landscape{display:block;width:100%;height:100%;object-fit:cover}.adventure-zone{position:absolute;top:11px;left:50%;transform:translateX(-50%);background:#fffae6e8;border:1px solid #fff8d8;border-radius:12px;color:#805429;font-size:10px;font-weight:750;text-align:center;padding:7px 12px;max-width:90%;white-space:nowrap;box-shadow:0 3px 8px #88613318}.adventure-steps{position:absolute;inset:0;margin:0;padding:0;list-style:none}.adventure-steps>li{position:absolute;transform:translate(-50%,-50%) scale(var(--step-scale));transform-origin:center;display:flex;flex-direction:column;align-items:center;width:125px;gap:4px}.adventure-steps button{position:relative;display:grid;place-items:center;width:60px;height:51px;border-radius:50%;border:3px solid #ffe7a6;background:linear-gradient(155deg,color-mix(in srgb,var(--step-color),white 40%),var(--step-color));box-shadow:0 6px 0 color-mix(in srgb,var(--step-color),black 22%),0 10px 8px #344d4a44;transform:rotateX(12deg);color:white}.adventure-number{font-size:22px;font-weight:850;text-shadow:0 2px 2px #0002}.adventure-steps button:disabled{opacity:.92!important;box-shadow:0 5px 0 color-mix(in srgb,var(--step-color),black 25%),0 8px 8px #173c4433!important;transform:rotateX(12deg)!important}.adventure-subject-icon{position:absolute;right:-8px;bottom:-6px;width:23px;height:23px;background:#fff9dd;border:1px solid #e4c686;border-radius:8px;display:grid;place-items:center;color:var(--step-color)}.adventure-subject-icon svg{width:15px;height:15px}.adventure-subject-icon .formula-icon{font-size:15px}.adventure-subject{font-size:10px;font-weight:750;color:#234f47;background:#fffbe9ed;padding:3px 7px;border-radius:7px;white-space:nowrap;box-shadow:0 2px 5px #0001}.adventure-here{font-size:8px;letter-spacing:.06em;font-weight:800;background:#f6851d;color:white;padding:3px 7px;border-radius:6px;position:absolute;top:-21px}.adventure-steps .current>button{outline:3px solid #ffd778;outline-offset:5px;animation:step-breathe 3s ease-in-out infinite}.adventure-steps .complete>button{background:linear-gradient(#86d5ad,#218e73)}.adventure-sun{position:absolute;right:5%;top:0;width:40%;height:20%;border-radius:50%;background:#ffdc8514;pointer-events:none;animation:sun-glow 7s ease-in-out infinite}.adventure-motes{position:absolute;inset:0;pointer-events:none;overflow:hidden}.adventure-motes i{position:absolute;left:20%;top:55%;width:4px;height:4px;background:#ffecab;border-radius:50%;box-shadow:0 0 8px #ffdb76;animation:mote-drift 9s ease-in-out infinite}.adventure-motes i:nth-child(2){left:76%;top:36%;animation-delay:-4s}.adventure-motes i:nth-child(3){left:65%;top:80%;animation-delay:-6s}.adventure-paging{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:13px 16px;background:#d9eadf;border-top:1px solid #abcabb;color:#426f5c}.adventure-paging button{border:0;background:#fff8e5;color:#486a57;padding:9px 10px;border-radius:10px;font-size:11px;font-weight:700}.adventure-paging>span{font-size:11px}.adventure-next{display:flex;gap:14px;align-items:center;margin:15px;padding:17px;background:#fffaf0;border:1px solid #dfddbf;border-radius:19px}.adventure-next>div{flex:1}.adventure-next h2{font-size:17px;line-height:1.25;margin:4px 0;color:#244b43}.adventure-next p{font-size:11px;color:#688174;margin:5px 0 0}.adventure-next .eyebrow{font-size:8px;color:#aa621e}.adventure-next>.primary{font-size:11px;padding:10px 12px;min-height:43px}.adventure-note{margin:16px 24px;padding-bottom:12px;font-size:11px;color:#577166}.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}@keyframes step-breathe{0%,100%{outline-offset:5px}50%{outline-offset:8px}}@keyframes sun-glow{50%{opacity:.35}}@keyframes mote-drift{0%,100%{transform:translate(0,0);opacity:0}30%,70%{opacity:.8}80%{transform:translate(12px,-50px)}}@media(prefers-reduced-motion:reduce){.adventure *{animation:none!important}}@media(max-width:360px){.adventure-next{flex-wrap:wrap}.adventure-next>.primary{width:100%}.adventure-steps>li{width:100px}.adventure-steps button{width:52px;height:44px}.adventure-subject{font-size:9px}}
/* V11: anchored navigation, consolidated activity and continuous camera. */
.home-metrics{display:grid;grid-template-columns:1fr 1fr;gap:16px;background:#fff;border:1px solid #eee6d9;border-radius:24px;padding:20px;margin:0 0 26px;box-shadow:0 6px 24px #26333306}.home-metrics>div:not(.metric-progress){display:flex;align-items:center;gap:12px}.home-metrics svg{width:28px;height:28px;color:#e76512;flex-shrink:0}.home-metrics strong{font-size:18px;line-height:1.4}.home-metrics small{display:block;font-size:12px;font-weight:500;color:#58666a}.metric-progress{grid-column:1/-1;font-size:12px;color:#58666a}.metric-progress>div{height:7px;background:#f1eade;border-radius:8px;margin-top:9px;overflow:hidden}.metric-progress i{display:block;height:100%;background:#fa871b;border-radius:8px}.view-train .heading{grid-template-rows:auto!important;margin-bottom:22px}.app-nav a .nav-symbol{display:grid!important;place-items:center!important;width:32px!important;height:32px!important;padding:0!important;margin:0!important;background:none!important;border-radius:0!important;box-shadow:none!important;color:inherit!important;flex:none!important}.app-nav .nav-symbol svg{display:block!important;width:25px!important;height:25px!important;stroke:currentColor!important;fill:none!important;transform:none!important;margin:0!important;padding:0!important}.app-nav .nav-symbol svg *{stroke:inherit!important;fill:none!important}.app-nav a{gap:3px!important;justify-content:center!important;align-items:center!important}.app-nav a>span:last-child{line-height:16px!important;margin:0!important}.view-revise:has(.rolling-world){overflow:hidden}.view-revise .shell:has(.rolling-world){max-width:none;padding:0!important}.view-revise:has(.rolling-world) .topbar,.view-revise:has(.rolling-world) footer{display:none!important}.view-revise:has(.rolling-world) #main{padding:0!important;margin:0!important;animation:none!important}.rolling-world{height:calc(100dvh - 75px - env(safe-area-inset-bottom));display:flex;flex-direction:column;background:#fff3ce;overflow:hidden}.world-hud{flex:none;background:#fffaf0;padding:12px 18px;border-bottom:1px solid #ecd7b4;position:relative;z-index:20}.world-hud-title{display:flex;gap:10px;align-items:center}.world-logo{background:#ff881c;color:white;font-size:26px;font-weight:900;width:42px;height:42px;display:grid;place-items:center;border-radius:14px}.world-hud-title small{display:block;font-size:9px;font-weight:800;letter-spacing:1.2px;color:#9c662c}.world-hud-title strong{display:block;font-size:19px}.world-hud-title button{margin-left:auto;display:flex;align-items:center;gap:6px;border:0;background:#ffead0;border-radius:14px;padding:10px;color:#864514;font-weight:700}.world-hud-title button svg{width:20px;height:20px}.world-controls{display:flex;align-items:center;justify-content:space-between;margin-top:9px;gap:12px;font-size:12px;color:#655343}.world-controls select{max-width:200px;padding:7px 28px 7px 10px;border:1px solid #ecd9bd;background:white;border-radius:10px;font-size:13px;color:#293c40}.world-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;position:relative;scrollbar-width:none;touch-action:pan-y;-webkit-overflow-scrolling:touch}.world-scroll::-webkit-scrollbar{display:none}.world-sticky{height:100%;position:sticky;top:0;overflow:hidden;isolation:isolate}.world-ground,.world-objects,.world-nodes{position:absolute;inset:0;width:100%;height:100%}.world-ground{z-index:0}.world-objects{z-index:1;pointer-events:none}.world-nodes{z-index:2;pointer-events:none}.world-prop{position:absolute;transform:translate(-50%,-88%);pointer-events:none}.world-prop svg{width:100%;height:auto;overflow:visible}.world-prop .art-float,.world-prop .art-orbit{animation:none!important}.world-stage{position:absolute;width:70px;height:62px;padding:0;border:4px solid #fff2d7;border-radius:50%;background:var(--stage-color);box-shadow:0 7px 0 #d39a58,0 11px 12px #1c49583b;color:white;transform-origin:center;pointer-events:auto;display:grid;place-items:center;overflow:visible}.world-stage:disabled{opacity:1;color:white;filter:none;background:var(--stage-color);cursor:default}.world-medal{font-weight:900;font-size:25px;text-shadow:0 2px 0 #26333d40}.world-subject{position:absolute;right:-10px;bottom:-6px;width:25px;height:25px;background:#fff9e9;border-radius:50%;display:grid;place-items:center;color:#314f58;box-shadow:0 2px 3px #18273333}.world-subject svg{width:16px;height:16px}.world-subject .formula-icon{font-size:15px!important}.world-stage-label{display:none;position:absolute;top:77px;left:50%;transform:translateX(-50%);font-size:12px;font-weight:800;color:#263d40;background:#fffaf0;padding:7px 10px;border-radius:10px;width:180px;line-height:1.25;text-shadow:none}.world-stage.is-open .world-stage-label{display:block}.world-stage.is-open{outline:4px solid #ffc446;outline-offset:5px}.world-stage.is-done{background:#21a795}.world-gateway{position:absolute;background:#fff1cd;border:3px solid #dd9e4d;color:#6a431e;white-space:nowrap;padding:9px 18px;text-align:center;border-radius:12px;font-weight:900;box-shadow:0 6px 0 #b77638}.world-gateway small{display:block;font-size:9px;letter-spacing:1px}.world-scroll-hint{position:absolute;top:10px;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:11px;font-weight:700;color:#725528;background:#fff7d8ce;border-radius:20px;padding:6px 12px;pointer-events:none;z-index:5}.world-scroll-hint span{display:inline-block;margin-left:5px;animation:world-nudge 2s ease-in-out infinite}@keyframes world-nudge{50%{transform:translateY(3px)}}@media(prefers-reduced-motion:reduce){.world-scroll-hint span{animation:none}}@media(min-width:700px){.rolling-world{max-width:700px;margin:auto}.world-hud{padding:14px 24px}.home-metrics{grid-template-columns:1fr 1fr 2fr;align-items:center}.metric-progress{grid-column:auto}}
/* V12: solid subject tiles, stable Safari surfaces, uniform navigation glyphs. */
.subject-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-width:0;height:124px;padding:14px 8px;box-sizing:border-box;background:var(--tile-color);border:3px solid transparent;border-radius:22px;color:#fff;cursor:pointer;box-shadow:0 4px 0 color-mix(in srgb,var(--tile-color),#000 20%);isolation:isolate}.subject-tile>input{position:absolute;width:100%;height:100%;inset:0;opacity:0;margin:0;cursor:pointer;z-index:3}.subject-tile:has(input:checked){border-color:#fff;outline:2px solid var(--tile-color);outline-offset:1px}.subject-tile:has(input:focus-visible){outline:3px solid #182f3b;outline-offset:4px}.subject-tile strong{position:static!important;display:block!important;margin:0!important;padding:0!important;color:#fff!important;font-size:14px!important;line-height:20px!important;text-align:center!important;font-weight:750!important;letter-spacing:0!important}.tile-glyph{display:grid;place-items:center;width:44px;height:44px;flex:none;color:white}.tile-glyph svg{width:34px!important;height:34px!important;stroke:currentColor!important;fill:none!important;margin:0!important;padding:0!important;transform:none!important}.tile-glyph .formula-icon{font-size:35px;line-height:44px;letter-spacing:-1px;color:white;font-style:normal}.tile-check{position:absolute;top:7px;right:8px;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;font-size:14px;font-weight:900;background:#ffffff30;color:transparent;border:1px solid #ffffff60}.subject-tile:has(input:checked) .tile-check{background:white;color:var(--tile-color);border-color:white}.subject-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}.app-nav a[data-nav=train]{--nav-color:#f57b17}.app-nav a[data-nav=revise]{--nav-color:#159885}.app-nav a[data-nav=play]{--nav-color:#2687db}.app-nav a[data-nav=progress]{--nav-color:#a65bce}.app-nav a .nav-symbol{width:36px!important;height:36px!important;background:var(--nav-color)!important;border-radius:12px!important;color:#fff!important;box-shadow:0 3px 0 color-mix(in srgb,var(--nav-color),#000 18%)!important}.app-nav .nav-symbol svg{width:23px!important;height:23px!important}.app-nav a{min-height:65px!important;background:transparent!important}.app-nav a.active{color:#182e36!important}.app-nav a.active .nav-symbol{outline:2px solid var(--nav-color);outline-offset:3px}.app-nav a>span:last-child{font-size:11px!important;margin-top:3px!important}.shell,.shell *,.app-nav,dialog{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}.shell #main>*{animation:none!important}.art-float,.art-orbit,.section-art{animation:none!important}.app-nav{background:#fffefb!important}.card,.training-card,.lesson-content,.answer-surface{background-color:#fff!important}dialog::backdrop{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:#142c4266}.world-prop img{display:block;width:100%;height:auto}.world-stage-label{display:none!important}.world-scroll{scrollbar-width:thin;scrollbar-color:#ffffff80 transparent}.world-scroll-hint{font-size:12px;top:8px}.world-controls{font-size:13px}.world-hud-title small{font-size:11px}.world-gateway{font-size:15px}.world-gateway small{font-size:11px}.world-stage,.world-stage:disabled{box-sizing:border-box!important;min-width:0!important;min-height:0!important;width:62px!important;height:54px!important;margin:0!important;padding:0!important;line-height:1!important;transition:none!important;filter:none!important}.world-medal{font-size:23px!important;line-height:1!important}.world-subject{width:22px!important;height:22px!important;right:-6px!important;bottom:-3px!important}.world-stage.is-open{outline-width:3px;outline-offset:4px}.rolling-world{height:calc(100svh - 84px - env(safe-area-inset-bottom));}.world-hud{padding:10px 16px}.world-objects{overflow:hidden}.world-return{position:absolute;left:16px;bottom:16px;z-index:10;border:0;border-radius:18px;background:#fffdf5;color:#244b4c;padding:10px 14px;font-weight:750;font-size:13px;box-shadow:0 4px 14px #18454926}.world-return svg{width:16px;height:16px;vertical-align:middle;margin-right:6px}.world-sticky{touch-action:pan-y}.world-objects,.world-ground{pointer-events:none}
@media(max-width:360px){.subject-tile{height:114px;border-radius:18px}.subject-grid{gap:10px!important}.subject-tile strong{font-size:13px!important}}

/* Foundation: intrinsic sizing and touch-safe mobile controls. */
html{overflow-wrap:break-word;-webkit-text-size-adjust:100%;text-size-adjust:100%}body{min-width:0}.shell,#main,.workspace,.side-stack,.card,.fiche-reader,.fiche-content{min-width:0;box-sizing:border-box}img,video,canvas{max-width:100%}.fiche-content p,.fiche-content li,.fiche-content dd{overflow-wrap:anywhere}.fiche-content dl{margin-inline:0}.fiche-content dd{margin-inline-start:0}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}input[type=text],textarea,select{font-size:16px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #117bd0;outline-offset:3px}
@media(display-mode:standalone){.topbar{padding-top:env(safe-area-inset-top);height:calc(78px + env(safe-area-inset-top))}.world-hud{padding-top:calc(10px + env(safe-area-inset-top))}}
/* Home section: independent layout, meaningful cards and native horizontal scrolling. */
.view-home{background:#f7f7f2!important;background-image:none!important}.view-home .shell{max-width:1020px;padding-inline:20px}.view-home .topbar{height:72px}.view-home .dashboard{display:grid;gap:26px;max-width:900px;margin:0 auto;padding:0 0 24px}.dashboard-welcome{position:relative;display:flex;align-items:center;min-height:160px;padding:25px;background:linear-gradient(120deg,#ff902b,#f77818);border-radius:27px;color:#fff;overflow:hidden;gap:8px}.dashboard-welcome>div{flex:1;position:relative;z-index:1;min-width:0}.dashboard-welcome h1{font-size:clamp(26px,4.3vw,40px);line-height:1.14;margin:8px 0 12px;letter-spacing:-1px;color:#fff;font-weight:850}.dashboard-welcome p{font-size:15px;line-height:1.5;margin:0;color:#fff}.dashboard-welcome .dashboard-date{font-size:13px;text-transform:capitalize;color:#fff3dd}.dashboard-welcome img{width:135px;height:135px;object-fit:contain;flex:none;filter:drop-shadow(0 10px 10px #af4a2226)}.dashboard-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#fff;border:1px solid #e9e5df;padding:16px 6px;border-radius:22px;text-decoration:none;color:#203135;margin-top:-10px}.dashboard-stats>span{display:grid;grid-template-columns:auto auto;justify-content:center;align-content:center;align-items:center;column-gap:6px;row-gap:5px;text-align:center;min-width:0}.dashboard-stats>span+span{border-left:1px solid #ebe8e1}.dashboard-stats svg{width:20px;height:20px;color:#e27322}.dashboard-stats strong{font-size:19px;line-height:24px}.dashboard-stats small{grid-column:1/-1;font-size:12px;color:#606c6b}.dashboard-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.dashboard-section-heading h2{font-size:21px;line-height:1.25;margin:0;letter-spacing:-.5px}.dashboard-section-heading a{font-size:13px;color:#aa4b0b;text-decoration:none;font-weight:700;flex-shrink:0}.dashboard-section-heading>p{font-size:12px;font-weight:800;letter-spacing:1px;margin:0}.dashboard-daily{border-radius:24px;padding:22px;background:#e7f5ee;border:1px solid #d2e8db;color:#154d43}.dashboard-daily .dashboard-section-heading>span{padding:5px 9px;background:#fff9;border-radius:9px;font-size:12px;white-space:nowrap}.daily-main{display:flex;gap:15px;align-items:center}.daily-main>div{flex:1;min-width:0}.daily-main h2{font-size:25px;line-height:1.2;margin:8px 0 10px;color:#154d43;letter-spacing:-.6px}.daily-main p{font-size:14px;line-height:1.5;margin:0;color:#41665c}.daily-subject{font-size:13px;font-weight:600}.daily-glyph{display:grid;place-items:center;background:#158a74;width:62px;height:62px;flex:none;color:white;border-radius:20px;box-shadow:0 5px 0 #0f6c5b}.daily-glyph svg{width:30px;height:30px}.daily-glyph .formula-icon{font-size:32px}.dashboard-daily>button{display:block;width:100%;padding:13px 16px;margin-top:19px;min-height:48px;border:0;border-radius:14px;background:#14866f;color:white;font-size:15px;font-weight:750;box-shadow:0 3px 0 #106e5d}.dashboard-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.dashboard-shortcuts>a,.dashboard-shortcuts>button{appearance:none;display:grid;grid-template-columns:1fr;justify-items:start;text-align:left;background:#fff;border:1px solid #e5e3dc;border-radius:23px;padding:18px;color:#233335;text-decoration:none;font:inherit;min-width:0;cursor:pointer;box-shadow:none;gap:5px}.dashboard-shortcuts>a>span,.dashboard-shortcuts>button>span{width:42px;height:42px;display:grid;place-items:center;background:var(--shortcut);color:#fff;border-radius:14px;margin-bottom:9px}.dashboard-shortcuts svg{width:24px;height:24px}.dashboard-shortcuts strong{font-size:17px;font-weight:800;line-height:1.2}.dashboard-shortcuts small{font-size:12px;color:#606b69;line-height:1.5}.dashboard-carousel{display:flex;gap:15px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:2px;padding:2px 2px 12px;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#ef9a53 #eee9e0}.dashboard-topic{appearance:none;flex:0 0 77%;scroll-snap-align:start;text-align:left;border:1px solid #e4e4dc;border-radius:24px;overflow:hidden;padding:0;background:white;color:#223435;cursor:pointer;max-width:330px;font:inherit;box-shadow:none}.topic-visual{height:155px;background:color-mix(in srgb,var(--topic-color),white 84%);display:flex;justify-content:center;align-items:center}.topic-visual img{width:145px;height:145px;object-fit:contain}.dashboard-topic>div:last-child{padding:18px}.dashboard-topic span{font-size:12px;text-transform:uppercase;font-weight:800;color:var(--topic-color);letter-spacing:.7px}.dashboard-topic h3{margin:8px 0;font-size:20px;line-height:1.2;letter-spacing:-.4px}.dashboard-topic p{font-size:12px;color:#65716d;margin:0}.dashboard-carousel-hint{font-size:12px;color:#717a75;margin:5px 0 0}.dashboard-week{padding:20px;border-radius:22px;background:white;border:1px solid #e5e3dc}.dashboard-week>p{font-size:13px;line-height:1.5;color:#63706b;margin:15px 0 0}.dashboard-resume{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:15px 18px;border:1px solid #e7c58f;background:#fff1d5;border-radius:18px;text-decoration:none;color:#705023}.dashboard-resume>span{display:flex;align-items:center;gap:8px}.dashboard-resume svg{width:20px;height:20px}.dashboard-resume strong{font-size:14px}.dashboard-resume small{font-size:12px}.app-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important}.app-nav a[data-nav=home]{--nav-color:#ed7819}.app-nav a[data-nav=train]{--nav-color:#2687cb}.app-nav a>span:last-child{font-size:11px!important}.app-nav a .nav-symbol{width:32px!important;height:32px!important;border-radius:11px!important}.app-nav .nav-symbol svg{width:22px!important;height:22px!important}
@media(min-width:720px){.dashboard-shortcuts{grid-template-columns:repeat(4,minmax(0,1fr))}.dashboard-welcome{min-height:180px;padding:30px}.dashboard-welcome img{width:185px;height:185px}.dashboard-stats{padding:20px}.dashboard-topic{flex-basis:31%}.dashboard-daily{padding:25px}.daily-main{max-width:650px}.dashboard-daily>button{max-width:300px}.dashboard-stats small{font-size:14px}}@media(max-width:370px){.view-home .shell{padding-inline:14px}.dashboard-welcome{padding:20px}.dashboard-welcome img{width:90px;height:115px}.dashboard-welcome h1{font-size:25px}.dashboard-stats small{font-size:11px}.dashboard-section-heading h2{font-size:19px}.dashboard-shortcuts>a,.dashboard-shortcuts>button{padding:15px}.dashboard-shortcuts strong{font-size:16px}}
