@font-face{font-family:DM;src:url('vendor/dm-400.ttf')}@font-face{font-family:DM;src:url('vendor/dm-700.ttf');font-weight:700}@font-face{font-family:Pixel;src:url('vendor/pixel.ttf')}
:root{--paper:#f6f4ec;--panel:#fffdf7;--ink:#233d36;--green:#173f36;--sage:#dce6d8;--line:#dcded2;--muted:#777e70;--lime:#d2e99c;--pink:#efb6a9;--gold:#dfb15f;--purple:#a898c2;--pixel:Pixel,monospace;--body:DM,Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--body);font-size:15px;line-height:1.5}button,a,input,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit}button:disabled{cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #a86948;outline-offset:4px}a{color:inherit}button{border:0;background:none}svg{display:block}canvas{image-rendering:pixelated;display:block}button{ -webkit-tap-highlight-color:transparent}.skip{position:fixed;top:-60px;left:100px;padding:12px;background:var(--green);color:white;z-index:100}.skip:focus{top:10px}.shell{min-height:100vh;display:flex}.rail{width:100px;flex:none;background:var(--green);color:#f0f0da;display:flex;align-items:center;flex-direction:column;padding:27px 10px;position:fixed;inset:0 auto 0 0;z-index:20}.brand{text-decoration:none;display:grid;place-items:center;width:46px;height:46px;border:1px solid #7a9c80;transform:rotate(0deg);background:#31564a;box-shadow:4px 4px 0 #0c3028}.gem{font-family:var(--pixel);color:var(--lime);font-size:28px;text-shadow:2px 2px #112c26}.rail-label{font-size:8px;letter-spacing:2px;margin-top:17px;color:#b7c7ae}.rail nav{display:flex;flex-direction:column;gap:15px;margin-top:64px;width:100%}.nav-item{min-height:63px;color:#a4bcaa;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:11px;border-radius:7px;position:relative;transition:background .2s,color .2s}.nav-item:hover,.nav-item.active{background:#31584a;color:#f0edcf}.nav-item.active:before{content:'';position:absolute;width:3px;height:24px;background:var(--lime);left:-10px;top:20px}.nav-symbol{font-size:27px;line-height:1.1;font-family:monospace}.rail-bottom{margin-top:auto;text-align:center;color:#9ab19b;font-size:8px;letter-spacing:1px;line-height:1.9}.pixel-sprout{display:block;font-size:28px;color:#b9d48a;margin-bottom:10px}.workspace{margin-left:100px;width:calc(100% - 100px);min-width:0}.topbar{height:87px;border-bottom:1px solid var(--line);padding:0 46px;display:flex;align-items:center;justify-content:space-between;gap:16px}.wordmark{font-weight:700;font-size:19px;letter-spacing:-.4px;white-space:nowrap}.wordmark-sep{color:#a4aa97;margin:0 15px;font-weight:400}.course{font-size:12px;letter-spacing:1.5px;font-weight:400}.top-actions{display:flex;align-items:center;gap:13px}.exam-badge{font-family:var(--pixel);font-size:8px;background:#e9eddf;border:1px solid #d6dcc9;padding:10px 13px;white-space:nowrap}.status-dot{display:inline-block;width:6px;height:6px;background:#547653;margin-right:8px}.icon-button{border:1px solid var(--line);height:34px;width:34px;font-size:20px;position:relative;border-radius:5px;background:transparent}.icon-button:hover{background:#e8ecdf}.mute-line{position:absolute;background:#7d846f;height:1px;width:20px;transform:rotate(-50deg);left:7px;top:16px}.avatar{width:36px;height:36px;background:#e3d8c8;border:1px solid #c3b6a5;display:grid;place-items:center;margin-left:6px}.avatar canvas{width:30px;height:30px}main{max-width:1435px;margin:0 auto;padding:34px 46px 26px;min-height:calc(100vh - 153px)}.eyebrow{font-size:9px;font-family:var(--pixel);letter-spacing:.25px;text-transform:uppercase;color:#7b8c72;line-height:1.8}.page-heading{display:flex;justify-content:space-between;align-items:end;gap:15px;margin-bottom:24px}.page-heading h1{font-family:Georgia,serif;font-weight:400;font-size:39px;line-height:1.12;letter-spacing:-1.3px;margin:5px 0}.page-heading p{color:var(--muted);margin:6px 0 0;font-size:14px}.date-label{color:var(--muted);font-size:12px;display:flex;gap:9px;align-items:center;padding-bottom:4px}.date-label:before{content:'';height:6px;width:6px;background:var(--gold)}.hero{border:1px solid #d2d9c7;background:#e8eddf;display:grid;grid-template-columns:1fr 1.08fr;min-height:310px;position:relative;overflow:hidden;border-radius:5px}.hero-copy{padding:32px 35px 28px;position:relative;z-index:2}.hero .eyebrow{color:#5e7759;font-size:8px}.hero h2{font-family:Georgia,serif;font-size:46px;line-height:1.06;letter-spacing:-1.8px;font-weight:400;margin:14px 0 13px}.hero p{font-size:13px;color:#64715f;max-width:340px;margin-bottom:22px}.hero-art{position:relative;align-self:stretch;background:#dce6df;overflow:hidden;min-height:300px}.hero-art canvas{width:100%;height:100%;object-fit:cover}.art-label{position:absolute;bottom:15px;right:17px;background:#f4f2debd;padding:6px 10px;border:1px solid #c7cfb8;font-family:var(--pixel);font-size:6px;letter-spacing:.2px;backdrop-filter:blur(3px)}.art-dot{color:var(--green);margin-right:7px}.primary{background:var(--green);color:#f8f9e8;font-size:13px;font-weight:700;padding:13px 19px;min-height:46px;border:1px solid #0f332b;box-shadow:3px 3px 0 #aec09e;border-radius:3px;display:inline-flex;align-items:center;justify-content:center;gap:17px;transition:background .15s,transform .15s}.primary:hover{background:#295b47;transform:translateY(-1px)}.primary:active{transform:translate(2px,2px);box-shadow:1px 1px 0 #aec09e}.primary:disabled{opacity:.5;transform:none}.arrow{font-family:monospace;font-size:20px;line-height:1}.subtle{font-size:12px;color:#747f6c;margin-top:13px;display:flex;align-items:center;gap:7px}.subtle .pixel-diamond{width:5px;height:5px;background:#8f9c75;transform:rotate(45deg)}.stats-row{display:grid;grid-template-columns:1.05fr 1fr 1fr 1.2fr;gap:0;border:1px solid var(--line);background:var(--panel);border-radius:5px;margin-top:20px}.stat{padding:17px 21px;display:flex;align-items:center;gap:14px;position:relative}.stat+.stat:before{content:'';position:absolute;left:0;top:18px;bottom:18px;border-left:1px solid var(--line)}.stat-icon{font-size:20px;display:grid;place-items:center;width:35px;height:35px;background:#f0eedc;color:#9e853d;font-family:monospace}.stat-icon.sage{background:#e8eddf;color:#60815a}.stat-icon.lilac{background:#eee8f1;color:#8e77a3}.stat-value{font-size:21px;font-weight:700;line-height:1.1;letter-spacing:-.5px}.stat-label{font-size:11px;color:var(--muted);margin-top:4px}.stat-wide{display:block}.stat-wide .stat-value{font-size:12px;display:flex;justify-content:space-between;gap:9px;margin-bottom:7px;letter-spacing:0}.progress-track{height:6px;background:#e7e9df;overflow:hidden}.progress-fill{height:100%;background:#91b273;min-width:0;transition:width .4s}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:29px 0 15px}.section-heading h2{font-size:17px;font-weight:700;margin:0;letter-spacing:-.4px}.section-heading .caption{font-size:11px;color:var(--muted)}.text-button{font-size:12px;color:#687a5f;display:inline-flex;align-items:center;gap:8px;border-bottom:1px solid transparent;padding:4px 0}.text-button:hover{border-bottom-color:#687a5f}.quest-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.quest-card{border:1px solid var(--line);background:var(--panel);text-align:left;border-radius:4px;padding:0;overflow:hidden;position:relative;transition:transform .2s,box-shadow .2s}.quest-card:hover{transform:translateY(-4px);box-shadow:0 6px 0 #dfe3d4}.quest-art{height:100px;position:relative;background:#e6eddd;overflow:hidden}.quest-art canvas{width:100%;height:100%;object-fit:cover}.lecture-chip{position:absolute;top:10px;left:11px;font-family:var(--pixel);font-size:6px;padding:6px 7px;background:#f7f6e7d9;border:1px solid #c6ceba;color:#536448}.quest-body{padding:15px 16px}.quest-body h3{font-size:16px;letter-spacing:-.35px;margin:0 0 4px;font-weight:700}.quest-body p{font-size:11px;color:var(--muted);margin:0;min-height:18px}.quest-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:13px;font-size:10px;color:#7f8b72}.mini-progress{width:64px;height:4px;background:#e8ebdf}.mini-progress>i{display:block;height:100%;background:#8ca675}.quest-arrow{font-size:18px;color:#708564}.lower-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:20px}.mode-card{border:1px solid var(--line);border-radius:4px;padding:19px 21px;display:flex;gap:16px;align-items:center;background:var(--panel);text-align:left;transition:background .2s}.mode-card:hover{background:#efefe4}.mode-icon{font-family:var(--pixel);font-size:21px;color:#8b718b;display:grid;place-items:center;width:45px;height:45px;flex:none;background:#eee8ed}.mode-card:nth-child(2) .mode-icon{color:#9b784a;background:#f1e6d4}.mode-card h3{font-size:14px;margin:0 0 3px}.mode-card p{color:var(--muted);font-size:11px;margin:0}.mode-card .arrow{margin-left:auto;color:#97a28b}.footer{max-width:1435px;margin:0 auto;padding:16px 46px 20px;display:flex;justify-content:space-between;gap:12px;font-size:10px;color:#929581}.footer button{font-size:10px;color:#7f8a71;padding:0}.tiny-star{margin-right:6px;color:#a9ae8c}.panel{background:var(--panel);border:1px solid var(--line);border-radius:5px;padding:25px}.back-button{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);padding:0 0 15px}.mode-switch{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:22px}.chip{padding:8px 13px;border:1px solid var(--line);background:#fdfbf4;border-radius:3px;font-size:12px}.chip.active{background:var(--green);border-color:var(--green);color:#f5f6e8}.quest-intro{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:22px}.quest-intro p{color:var(--muted);max-width:520px;font-size:13px}.quest-grid.full .quest-art{height:140px}.battle-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:19px;gap:20px}.run-progress{display:flex;align-items:center;gap:16px;flex:1;max-width:440px}.run-progress .progress-track{flex:1}.run-count{font-family:var(--pixel);font-size:8px;white-space:nowrap}.battle-tools{display:flex;gap:12px;align-items:center}.combo{font-family:var(--pixel);font-size:8px;color:#9a7449;background:#f3e9d6;padding:9px}.battle-layout{display:grid;grid-template-columns:340px minmax(0,1fr);gap:24px;align-items:start}.encounter{border:1px solid #c9d0bc;overflow:hidden;background:#e8eddd;border-radius:5px}.encounter-head{padding:18px 20px 14px}.encounter .eyebrow{font-size:7px}.enemy-name{font-size:21px;font-family:Georgia,serif;margin:5px 0 10px}.enemy-hp{height:6px;background:#cfd8c1}.enemy-hp>div{height:100%;background:#719261;transition:width .5s}.encounter-art{height:240px;position:relative;overflow:hidden}.encounter-art canvas{height:100%;width:100%;object-fit:cover}.floating-xp{position:absolute;left:44%;top:90px;color:#f7ffba;font-family:var(--pixel);font-size:12px;pointer-events:none;text-shadow:2px 2px #365441}.encounter-floor{background:#f4f2e5;padding:15px 20px;border-top:1px solid #d8ddcb}.focus-row{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px}.hearts{color:#b77673;font-family:monospace;font-size:16px;letter-spacing:4px}.battle-note{font-size:11px;color:#7a856f;margin:10px 0 0}.run-loot{margin-top:14px;display:flex;justify-content:space-between;font-size:12px;background:#e9eddf;padding:11px 14px;border:1px solid #d7ddc8}.run-loot b{font-family:var(--pixel);font-size:9px}.question-panel{background:var(--panel);border:1px solid var(--line);border-radius:5px;padding:27px 28px;min-height:460px}.question-meta{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:19px}.question-meta .eyebrow{font-size:7px}.difficulty{font-size:10px;color:#8a8f7c}.question-title{font-size:22px;line-height:1.4;letter-spacing:-.5px;margin:0 0 20px;font-weight:500}.question-code,pre{background:#e9eee3;padding:16px;overflow-x:auto;font-size:12px;line-height:1.65;color:#2e5848;border-left:3px solid #93a77e;border-radius:2px;margin:0 0 19px;white-space:pre-wrap;overflow-wrap:anywhere;font-family:'SFMono-Regular',Consolas,monospace}.answers{display:grid;gap:10px}.answer{display:flex;align-items:center;gap:14px;padding:13px 16px;border:1px solid #dcded1;border-radius:3px;text-align:left;min-height:54px;background:#fcfbf5;transition:border-color .15s,background .15s,transform .15s;font-size:14px}.answer:hover:not(:disabled){background:#edf0e1;border-color:#96ab7f;transform:translateX(3px)}.answer-key{font-family:var(--pixel);font-size:8px;height:25px;width:25px;display:grid;place-items:center;color:#87917a;border:1px solid #d7deca;flex:none}.answer.correct{background:#e3edd5;border-color:#89a86d}.answer.correct .answer-key{background:#77925b;color:white;border-color:#77925b}.answer.incorrect{background:#f4e3dc;border-color:#c89d8b}.answer.incorrect .answer-key{background:#b87f6c;color:white;border-color:#b87f6c}.answer.dim{opacity:.55}.question-help{display:flex;justify-content:space-between;gap:14px;margin-top:19px;font-size:10px;color:#929984}.question-help button{font-size:11px;color:#728364;padding:0}.feedback{margin-top:19px;padding:17px 18px;background:#e9f0df;border:1px solid #c6d7b4;border-radius:3px}.feedback.wrong{background:#f8eee3;border-color:#e1c9ac}.feedback h3{font-size:14px;margin:0 0 7px}.feedback p{font-size:13px;line-height:1.6;margin:0}.feedback .source{font-size:10px;color:#7d8971;display:block;margin-top:10px}.feedback .lesson{font-size:11px;border-top:1px solid #cad5ba;padding-top:9px;margin-top:10px;font-weight:700}.feedback .primary{margin-top:16px;width:100%;min-height:43px}.hint-box{font-size:12px;background:#f1edda;border-left:2px solid var(--gold);padding:11px 14px;margin-bottom:15px}.question-chart{width:100%;height:170px;background:#f5f4ea;border:1px solid #e3e4d6;margin-bottom:18px;image-rendering:auto}.results-hero{text-align:center;max-width:740px;margin:16px auto 28px;padding:30px;background:#e7eddd;border:1px solid #cfd8c2}.results-icon{font-family:var(--pixel);font-size:42px;color:#ac8d4a;margin-bottom:15px}.results-hero h1{font-family:Georgia,serif;font-size:40px;font-weight:400;margin:0 0 8px;letter-spacing:-1px}.results-hero p{font-size:13px;color:#74816a;margin:0 auto;max-width:450px}.score-grid{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #cdd8bf;border-bottom:1px solid #cdd8bf;margin:24px 0;padding:20px 0;gap:10px}.score-grid b{font-family:var(--pixel);font-size:20px;display:block;margin-bottom:7px}.score-grid span{font-size:11px;color:#7a866f}.result-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.secondary{min-height:44px;padding:11px 17px;border:1px solid #c9d1bd;background:#f9f7ec;border-radius:3px;font-size:12px;font-weight:700}.secondary:hover{background:#ebefdf}.review-list{max-width:850px;margin:auto;display:grid;gap:12px}.review-item{background:var(--panel);border:1px solid var(--line);padding:19px 22px}.review-item h3{font-size:14px;margin:4px 0 8px}.review-item p{font-size:12px;color:#75806c;margin:7px 0}.review-answer{color:#496740!important;font-weight:700}.empty{text-align:center;padding:55px 22px;border:1px dashed #c9d0bc;background:#f0f2e7}.empty h2{font-size:23px;font-family:Georgia,serif;font-weight:400}.empty p{color:var(--muted);font-size:13px;max-width:430px;margin:10px auto 22px}.workshop-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:20px}.lab-layout{display:grid;grid-template-columns:1.35fr 1fr;gap:23px}.lab-visual{min-width:0;overflow:hidden}.lab-plot{width:100%;height:330px;background:#eef0e4;border:1px solid #d8deca;image-rendering:auto!important}.lab-controls{display:flex;flex-direction:column;gap:19px}.range-label{display:flex;justify-content:space-between;font-size:12px;margin-bottom:8px;align-items:center}.range-value{font-family:var(--pixel);font-size:10px;color:#426444;background:#e6edda;padding:6px 8px}input[type=range]{width:100%;accent-color:#6a8e5a;cursor:pointer;height:25px}.formula{font-family:monospace;font-size:18px;background:var(--green);color:#e5edce;padding:17px 20px;margin-top:18px;line-height:1.7;overflow-wrap:anywhere}.lab-explanation{font-size:13px;color:#6f7b66;margin-top:17px}.lab-readout{padding:17px;border:1px solid #d9dfca;background:#f7f7ed}.lab-readout b{font-size:28px;font-weight:500;display:block;line-height:1.3;font-family:Georgia,serif}.lab-readout span{font-size:11px;color:#79856e}.lab-tip{background:#eee9d7;padding:16px;font-size:12px;line-height:1.6;border-left:3px solid #bba064}.guide-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.guide-card{padding:24px;background:var(--panel);border:1px solid var(--line);border-radius:4px}.guide-card h2{font-size:18px;font-family:Georgia,serif;font-weight:400;margin:8px 0 14px}.guide-card p{font-size:13px;color:#6e7b64;line-height:1.7;margin:0 0 12px}.guide-card .formula{font-size:13px;padding:12px 15px;margin:12px 0}.guide-card ul{font-size:13px;color:#6e7b64;padding-left:18px;line-height:1.8}.notes{width:100%;background:#faf7ec;border:1px solid #d7d8c7;padding:16px;min-height:160px;resize:vertical;font-size:13px;line-height:1.8;border-radius:3px}.progress-layout{display:grid;grid-template-columns:1fr 1.2fr;gap:20px}.progress-topic{margin:17px 0}.progress-topic-top{display:flex;justify-content:space-between;font-size:12px;margin-bottom:8px}.progress-topic-top span{color:#859077;font-size:11px}.achievement{padding:13px 0;border-bottom:1px solid var(--line);display:flex;gap:14px;align-items:center}.achievement:last-child{border:0}.achievement .badge-icon{font-family:var(--pixel);font-size:18px;width:40px;height:40px;background:#eee7d4;color:#ae9159;display:grid;place-items:center}.achievement h3{font-size:13px;margin:0}.achievement p{font-size:11px;color:var(--muted);margin:3px 0}.achievement.locked{opacity:.45}.modal-backdrop{position:fixed;inset:0;background:#16372e80;z-index:100;display:flex;align-items:center;justify-content:center;padding:22px;backdrop-filter:blur(4px)}.modal{background:var(--paper);border:1px solid #9aa78b;box-shadow:7px 7px 0 #153f36;max-width:600px;width:100%;padding:28px;max-height:85vh;overflow:auto}.modal-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:15px}.modal h2{font-family:Georgia,serif;font-weight:400;font-size:27px;margin:0;letter-spacing:-.7px}.modal p{font-size:13px;color:#6a785f;line-height:1.7}.modal a{color:#345c3e}.close{font-size:23px;color:#7c896f;padding:4px 8px}.toast{position:fixed;bottom:26px;left:calc(50% + 30px);transform:translateX(-50%) translateY(100px);background:var(--green);color:#f3f3dc;padding:13px 22px;font-size:12px;z-index:120;box-shadow:3px 3px 0 #9ab180;border:1px solid #92a47b;opacity:0;pointer-events:none;max-width:90vw;text-align:center}.toast.visible{opacity:1;transform:translateX(-50%) translateY(0);transition:transform .25s,opacity .25s}.scope-notice{font-size:12px;background:#e9eee0;border:1px solid #d0dac3;padding:14px 18px;margin-top:23px;line-height:1.6}.scope-notice b{font-weight:700}.topic-mini{font-family:var(--pixel);font-size:6px;color:#8e997e;letter-spacing:.3px}.noscript{position:fixed;inset:100px 20%;background:white;padding:50px;z-index:200}.pixel-divider{font-family:var(--pixel);font-size:10px;color:#a1ac8e;text-align:center;margin:18px 0}.small-caption{font-size:11px;color:#8c947e}.run-badge{font-family:var(--pixel);font-size:8px;background:#ece6d4;padding:9px 11px;color:#9e8050;display:inline-block}.view-enter{opacity:1}.number{font-variant-numeric:tabular-nums}.danger-button{font-size:11px;color:#a47565;text-decoration:underline;padding:0}.source-link{font-size:11px;color:#6c805e}.source-link:hover{color:#274732}.map-copy{font-size:13px;color:#748169;margin-bottom:22px}.run-tip{padding:16px 19px;border:1px solid var(--line);background:#f3f1e5;margin-top:16px;color:#7b846e;font-size:11px}.challenge-status{font-size:12px;background:#edf0e2;padding:11px 14px;min-height:43px;color:#60764e}.modal-choices{display:grid;gap:10px}.modal-choices button{text-align:left;padding:15px 17px;border:1px solid #cfd7c2;background:#fbfaf1}.modal-choices strong{display:block;font-size:14px}.modal-choices small{font-size:11px;color:#819071}.question-source{margin-top:15px;font-size:10px;color:#929b84}.rest-chip{color:#89986e;font-size:10px}.note-saved{font-size:10px;color:#8a967b;display:inline-block;margin-top:6px}body.reduced-motion *{scroll-behavior:auto!important;transition:none!important;animation:none!important}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media(min-width:1600px){main{padding-top:44px}.hero{min-height:340px}.hero-art{min-height:340px}.hero h2{font-size:54px}.quest-art{height:115px}.section-heading{margin-top:33px}}
@media(max-width:1160px){.topbar{padding:0 28px}main{padding:28px}.footer{padding:16px 28px}.hero h2{font-size:38px}.hero-copy{padding:28px}.hero p{font-size:12px}.battle-layout{grid-template-columns:280px minmax(0,1fr);gap:17px}.question-panel{padding:23px}.question-title{font-size:20px}.stat{padding:15px 14px;gap:9px}.stat-icon{width:29px;height:29px;font-size:17px}.stat-value{font-size:19px}.lab-layout{grid-template-columns:1.15fr 1fr}}
@media(max-width:900px){.rail{width:75px;padding-left:8px;padding-right:8px}.workspace{margin-left:75px;width:calc(100% - 75px)}.rail-label{font-size:6px;letter-spacing:1px}.nav-item.active:before{left:-8px}.topbar{height:75px;padding:0 23px}.wordmark{font-size:16px}.wordmark-sep{margin:0 9px}.course{font-size:10px}.exam-badge{font-size:6px;padding:9px}.top-actions{gap:8px}.hero{grid-template-columns:1fr 1fr}.hero-copy{padding:25px}.hero h2{font-size:34px}.hero-art{min-height:300px}.stats-row{grid-template-columns:repeat(2,1fr)}.stat:nth-child(3),.stat:nth-child(4){border-top:1px solid var(--line)}.stat:nth-child(3):before{display:none}.quest-art{height:85px}.quest-body{padding:13px}.quest-body h3{font-size:14px}.quest-body p{font-size:10px}.quest-bottom{font-size:9px}.lower-row{grid-template-columns:1fr 1fr}.mode-card{padding:15px;gap:11px}.mode-icon{width:35px;height:35px;font-size:17px}.mode-card h3{font-size:12px}.mode-card p{font-size:10px}.battle-layout{grid-template-columns:1fr}.battle-left{display:none}.lab-layout{grid-template-columns:1fr}.lab-controls{display:grid;grid-template-columns:1fr 1fr;gap:19px}.lab-tip{grid-column:1/-1}.progress-layout{grid-template-columns:1fr}.footer{font-size:9px}.footer button{font-size:9px}.guide-card{padding:19px}}
@media(max-width:620px){.rail{position:fixed;inset:auto 0 0 0;width:100%;height:66px;padding:0;flex-direction:row;z-index:30;box-shadow:0 -2px 0 #102e27}.brand,.rail-label,.rail-bottom{display:none}.rail nav{margin:0;flex-direction:row;width:100%;justify-content:space-around;gap:0}.nav-item{width:24%;height:62px;min-height:0;gap:0;font-size:10px;border-radius:0}.nav-symbol{font-size:25px}.nav-item.active:before{top:0;left:35%;width:30%;height:2px}.workspace{margin:0;width:100%;padding-bottom:66px}.topbar{height:68px;padding:0 20px}.wordmark{font-size:16px}.course{font-size:9px;letter-spacing:1px}.wordmark-sep{margin:0 7px}.exam-badge{display:none}.top-actions{gap:7px}.icon-button{width:29px;height:29px}.mute-line{left:4px}.avatar{width:31px;height:31px;margin-left:0}.avatar canvas{width:26px;height:26px}main{padding:25px 20px}.page-heading{margin-bottom:20px}.page-heading h1{font-size:33px}.page-heading p{font-size:12px}.date-label{display:none}.eyebrow{font-size:7px}.hero{grid-template-columns:1fr;display:flex;flex-direction:column-reverse}.hero-art{height:188px;min-height:188px}.hero-art canvas{height:100%;width:100%;object-fit:cover}.hero-copy{padding:24px}.hero h2{font-size:37px;margin-top:10px}.hero p{max-width:100%;font-size:12px;margin-bottom:20px}.hero .primary{width:100%}.hero .subtle{justify-content:center;font-size:10px}.art-label{font-size:5px;padding:6px;bottom:10px;right:10px}.stats-row{margin-top:16px}.stat{padding:15px 13px;gap:10px}.stat-label{font-size:10px}.stat-value{font-size:19px}.stat-wide .stat-value{font-size:11px}.quest-grid{grid-template-columns:repeat(2,1fr);gap:11px}.quest-art{height:91px}.quest-body{padding:12px}.quest-body h3{font-size:14px;line-height:1.2;min-height:33px}.quest-body p{font-size:10px;min-height:30px}.quest-bottom{font-size:9px;margin-top:9px}.lecture-chip{font-size:5px;left:8px;top:8px}.mini-progress{width:45px}.lower-row{grid-template-columns:1fr;gap:10px;margin-top:16px}.mode-card h3{font-size:14px}.mode-card p{font-size:11px}.mode-icon{width:40px;height:40px}.section-heading{margin-top:25px}.section-heading h2{font-size:16px}.section-heading .caption{font-size:10px}.footer{padding:0 20px 18px;display:block;font-size:9px}.footer button{margin-top:10px;display:block}.quest-intro{align-items:start;display:block}.quest-intro .primary{margin-top:8px}.quest-grid.full .quest-art{height:110px}.battle-top{gap:10px;align-items:start}.run-progress{gap:9px}.run-count{font-size:6px}.battle-top .back-button{font-size:10px;padding:0}.combo{font-size:6px;padding:7px}.battle-tools{gap:7px}.question-panel{padding:21px 17px;min-height:0}.question-title{font-size:19px;line-height:1.4}.question-meta .eyebrow{font-size:6px}.difficulty{font-size:9px}.answer{font-size:13px;padding:12px 11px;gap:11px}.answer-key{height:23px;width:23px;font-size:7px}.question-code,pre{font-size:10px;padding:12px;line-height:1.7}.feedback{padding:14px}.feedback p{font-size:12px}.feedback .lesson{font-size:11px}.question-help{font-size:9px}.question-chart{height:150px}.guide-grid{grid-template-columns:1fr}.guide-card h2{font-size:21px}.guide-card p{font-size:13px}.lab-plot{height:280px}.lab-controls{grid-template-columns:1fr}.lab-readout b{font-size:26px}.lab-tip{font-size:11px}.panel{padding:20px 17px}.workshop-tabs{gap:6px}.chip{font-size:11px;padding:8px 10px}.results-hero{padding:23px 17px}.results-hero h1{font-size:32px}.score-grid b{font-size:16px}.score-grid span{font-size:10px}.score-grid{gap:7px}.result-actions{display:grid}.result-actions .primary,.result-actions .secondary{width:100%}.review-item{padding:17px}.modal{padding:23px 20px;box-shadow:4px 4px 0 #153f36}.modal h2{font-size:24px}.toast{left:50%;bottom:82px;width:max-content;max-width:88vw;font-size:11px}.question-help span{display:none}.run-tip{font-size:10px}.topbar .icon-button:first-of-type{display:none}}
/* Keep the animated encounter visible in the narrow Codex panel and on phones. */
@media(max-width:900px){.battle-left{display:block}.battle-left .encounter{display:grid;grid-template-columns:1fr 1fr;height:150px}.battle-left .encounter-head{padding:23px}.battle-left .encounter-art{height:150px;grid-column:2;grid-row:1 / 3}.battle-left .encounter-floor,.battle-left .run-loot,.battle-left .run-tip{display:none}.battle-layout{gap:16px}}
@media(max-width:620px){.battle-left .encounter{height:126px;grid-template-columns:1fr 1.1fr}.battle-left .encounter-art{height:126px}.battle-left .encounter-head{padding:19px 15px}.battle-left .enemy-name{font-size:18px;margin-top:7px}.battle-left .eyebrow{font-size:5px}.battle-top{margin-bottom:13px}}
