:root{color-scheme:dark;--bg:#0c1218;--panel:#131c24;--panel2:#17222c;--line:#25313a;--muted:#8e9da8;--text:#edf2f3;--green:#bcf17a;--teal:#66d8ba;--orange:#f0bb72;--purple:#b9a2f9;--radius:16px;font-family:Nunito,Segoe UI,sans-serif;font-size:16px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{color:inherit}button:disabled{cursor:not-allowed;opacity:.45}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--green);outline-offset:4px}button{border:0}svg{display:inline-block;vertical-align:middle;flex-shrink:0}.icon{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}h1,h2,h3,h4,p{margin:0}h1,h2,h3,h4,.brand{font-family:'Baloo 2',Nunito,sans-serif}h1{font-size:30px;font-weight:600;letter-spacing:-1px}h2{font-size:21px;font-weight:600;letter-spacing:-.5px}h3{font-size:17px;font-weight:600}p{line-height:1.65}small{font-size:13px}code,pre{font-family:'Cascadia Code',Consolas,monospace}code{font-size:14px}button{transition:background .18s,transform .18s,border-color .18s}button:active:not(:disabled){transform:translateY(1px)}.muted{color:var(--muted)}.green{color:var(--green)}.teal{color:var(--teal)}.gold{color:var(--orange)}.purple{color:var(--purple)}.eyebrow{font-size:12px;letter-spacing:1.7px;font-weight:700;text-transform:uppercase}.row{display:flex;align-items:center;gap:10px}.between{display:flex;align-items:center;justify-content:space-between;gap:16px}.stack{display:flex;flex-direction:column;gap:16px}.spacer{flex:1}.shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:228px;background:#10181f;border-right:1px solid var(--line);padding:32px 20px 20px;display:flex;flex-direction:column;z-index:30}.brand{display:flex;align-items:center;gap:10px;padding:0 9px;font-size:23px;font-weight:600;letter-spacing:-.9px}.brand img{width:36px;height:36px}.brand sup{font:600 9px Nunito;color:var(--green);background:#253725;padding:3px 5px;border-radius:4px;letter-spacing:.5px;margin-left:0}.nav-caption{color:#60717e;font-size:11px;letter-spacing:1.7px;font-weight:700;margin:47px 15px 15px}.nav-item{width:100%;background:none;display:flex;align-items:center;gap:12px;padding:13px 15px;margin-bottom:6px;text-align:left;border-radius:9px;font-size:14px;font-weight:550;color:#95a5b0;position:relative}.nav-item:hover{background:#1c2730;color:#fff}.nav-item.active{background:#25362a;color:var(--green)}.nav-item.active:before{content:'';position:absolute;width:3px;height:21px;left:-20px;background:var(--green);border-radius:0 3px 3px 0}.nav-item .count{margin-left:auto;font-size:11px;background:#384b2b;border-radius:5px;padding:2px 6px}.sidebar-bottom{margin-top:auto;padding-top:28px}.side-quest{border:1px solid #354231;background:linear-gradient(140deg,#223027,#18221e);padding:16px;border-radius:12px}.side-quest h4{font-size:14px;margin:11px 0 5px}.side-quest p{font-size:12px;color:#a2b29e;line-height:1.6}.side-quest .progress{margin:13px 0 7px}.side-footer{padding:20px 6px 0;display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted)}.side-footer button{margin-left:auto;background:none;padding:4px;color:var(--muted)}.tiny-dot{width:6px;height:6px;border-radius:50%;background:var(--teal)}.main-shell{margin-left:228px}.topbar{height:84px;border-bottom:1px solid #202b34;padding:0 38px;display:flex;align-items:center;justify-content:space-between;gap:20px}.breadcrumb{font-size:14px;color:#a2afba;display:flex;gap:12px;align-items:center}.top-actions{display:flex;gap:22px;align-items:center}.currency{font-size:14px;font-weight:600;display:flex;align-items:center;gap:7px}.currency .icon{width:17px;height:17px}.top-separator{height:24px;width:1px;background:var(--line)}.avatar{width:36px;height:36px;background:#33422d;border:1px solid #526a39;display:flex;align-items:center;justify-content:center;border-radius:50%;color:var(--green);font-weight:600}.avatar.sm{width:30px;height:30px;font-size:12px}.avatar.orange{background:#3d3028;border-color:#68503b;color:#eab785}.avatar.purple{background:#302b46;border-color:#514773;color:#bba7f1}.avatar.blue{background:#263746;border-color:#3a546b;color:#8fb8e0}.icon-btn{display:inline-flex;align-items:center;justify-content:center;background:none;padding:7px;border-radius:7px;color:var(--muted)}.icon-btn:hover{color:var(--text);background:var(--panel2)}.menu-button{display:none}main{padding:32px 38px 40px;max-width:1620px;margin:0 auto}.welcome{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.welcome p{font-size:14px;color:var(--muted);margin-top:7px}.streak{display:flex;align-items:center;gap:8px;color:#efb57a;padding:9px 12px;background:#30251d;border:1px solid #4b3927;border-radius:8px;font-size:13px;font-weight:600}.hero-grid{display:grid;grid-template-columns:minmax(0,1fr) 282px;gap:22px}.hero{position:relative;min-height:355px;overflow:hidden;background:radial-gradient(ellipse at 76% 50%,#1b3a34,#142720 58%,#182722);border:1px solid #2b4235;border-radius:var(--radius)}.hero-copy{position:relative;z-index:2;width:48%;padding:35px 0 32px 30px;pointer-events:none}.hero-copy>*{pointer-events:auto}.chapter{display:inline-flex;gap:7px;align-items:center;color:#b9d9a5;font-size:11px;font-weight:700;letter-spacing:1.4px;text-transform:uppercase;margin-bottom:19px}.chapter .icon{width:15px;height:15px}.hero h2{font-size:clamp(28px,2.7vw,43px);line-height:1.12;letter-spacing:-1.8px;font-weight:600}.hero h2 span{color:var(--green)}.hero-copy p{font-size:13px;color:#a6b5ab;max-width:255px;line-height:1.7;margin-top:16px}.hero-copy .btn{margin-top:24px}.hero-world{position:absolute;left:37%;right:-4%;top:0;bottom:0;z-index:1}.world{position:relative;overflow:hidden;touch-action:none}.world canvas{display:block;width:100%;height:100%}.world-label{position:absolute;z-index:3;bottom:17px;right:18px;font-size:10px;letter-spacing:1.2px;color:#91b9a4;text-transform:uppercase;pointer-events:none}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:42px;border-radius:8px;padding:11px 18px;font-size:13px;font-weight:650;white-space:nowrap}.btn.primary{background:var(--green);color:#1c2b16;box-shadow:0 4px 16px #9fd95c0c}.btn.primary:hover{background:#cafd8d;box-shadow:0 4px 20px #a9df4820}.btn.secondary{background:#1f2b34;border:1px solid #35414a;color:#dae2e5}.btn.secondary:hover{background:#293842}.btn.subtle{background:none;border:1px solid var(--line);color:var(--muted)}.btn .icon{width:17px;height:17px}.btn.small{min-height:34px;padding:7px 12px;font-size:12px}.btn.full{width:100%}.text-button{font-size:13px;color:var(--muted);background:none;padding:5px 0}.text-button:hover{color:var(--green)}.daily-card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:23px;display:flex;flex-direction:column}.daily-card h3{font-size:16px}.daily-card .icon.gold{width:18px;height:18px}.daily-card .subtitle{font-size:12px;color:var(--muted);margin-top:7px}.quest-ring{height:112px;margin:14px auto 9px;position:relative;display:grid;place-items:center;width:112px}.quest-ring svg{position:absolute;inset:0;width:112px;height:112px;transform:rotate(-90deg)}.quest-ring .ring-label{font-family:'Baloo 2';font-size:30px;font-weight:600;text-align:center}.ring-label small{font-size:11px;display:block;color:var(--muted);font-family:Nunito;margin-top:2px}.daily-card .quest-goal{font-size:13px;text-align:center;color:#acb7bf;margin-bottom:17px}.daily-reward{border-top:1px solid var(--line);padding-top:15px;margin-top:auto;font-size:12px}.daily-reward .icon{width:17px;height:17px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:29px 0 17px}.section-heading h2{font-size:19px}.section-heading p{color:var(--muted);font-size:13px;margin-top:4px}.pills{display:flex;gap:5px;padding:4px;border:1px solid var(--line);background:#10181f;border-radius:9px;flex-wrap:wrap}.pill{background:transparent;border-radius:6px;padding:6px 13px;color:var(--muted);font-size:12px}.pill.active{color:var(--text);background:#2a353f}.pill:hover{color:var(--text)}.problem-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.problem-card{background:var(--panel);border:1px solid var(--line);padding:21px;border-radius:13px;transition:border-color .2s,transform .2s;display:flex;flex-direction:column;position:relative}.problem-card:hover{border-color:#4b6552;transform:translateY(-2px)}.problem-icon{width:39px;height:39px;display:flex;align-items:center;justify-content:center;background:#1c3530;color:var(--teal);border:1px solid #2b4d40;border-radius:10px}.problem-icon.medium{background:#353124;color:var(--orange);border-color:#4c422c}.problem-icon.hard{background:#302b41;color:var(--purple);border-color:#453956}.difficulty{font-size:11px;font-weight:600;padding:4px 8px;border-radius:5px;color:var(--teal);background:#1c302c;white-space:nowrap}.difficulty.medium{color:var(--orange);background:#342e22}.difficulty.hard{color:var(--purple);background:#2d263d}.problem-card h3{margin:18px 0 6px;font-size:17px}.problem-card .description{font-size:13px;line-height:1.6;color:var(--muted);flex:1}.tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:13px}.tag{font-size:10px;color:#a7b3bc;border:1px solid #303b44;padding:3px 7px;border-radius:4px}.problem-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);margin-top:20px;padding-top:15px;font-size:12px}.problem-footer .icon{height:14px;width:14px}.mini-start{padding:6px 10px;background:#23312a;border:1px solid #364b32;color:#c7e9aa;border-radius:6px;font-size:11px;font-weight:600}.meta{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:6px}.home-bottom{display:grid;grid-template-columns:1.2fr 1fr;gap:22px;margin-top:24px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:13px;padding:23px}.panel h3{font-size:16px}.panel .caption{font-size:12px;color:var(--muted);margin-top:5px}.path-track{display:flex;align-items:center;gap:8px;margin-top:22px}.path-step{flex:1}.path-step .segment{height:5px;background:#29363e;border-radius:4px;margin-bottom:10px;overflow:hidden}.path-step .segment span{display:block;background:var(--green);height:100%}.path-step .label{font-size:11px;color:#98a6af}.path-step .num{font-size:11px;color:var(--green);margin-left:4px}.progress{height:5px;background:#334138;border-radius:5px;overflow:hidden}.progress>span{display:block;background:var(--green);height:100%;border-radius:inherit;transition:width .4s}.leader-row{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #24303a;font-size:13px}.leader-row:last-child{border:0;padding-bottom:0}.rank{width:20px;color:#8897a2;font-size:12px}.leader-name{flex:1;font-weight:500}.leader-name small{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-top:3px}.leader-score{font-size:12px;font-weight:600;color:var(--green)}.footer-note{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#657783;margin-top:28px}.footer-note button{font-size:11px;color:#82929d;background:none;padding:0}.page-title{margin-bottom:26px}.page-title p{color:var(--muted);font-size:14px;margin-top:8px}.toolbar{display:flex;gap:14px;align-items:center;margin-bottom:24px;flex-wrap:wrap}.search-wrap{position:relative;flex:1;min-width:200px}.search-wrap .icon{position:absolute;left:14px;top:12px;width:18px;height:18px;color:var(--muted)}input,select{background:#131d25;border:1px solid #33414c;border-radius:8px;color:var(--text);padding:11px 14px;font-size:14px}input[type=search]{padding-left:42px;width:100%}input[type=text]{width:100%}select{appearance:none;padding-right:33px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' stroke='%239aabb7' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat}.empty-state{text-align:center;padding:55px;color:var(--muted);grid-column:1/-1}.study-top{display:flex;align-items:center;gap:15px;margin-bottom:22px}.study-top .progress{flex:1;max-width:300px;background:#27333c}.study-top .meta{margin-left:auto}.study-layout{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.2fr);gap:24px}.statement{padding:25px}.statement h1{font-size:27px;margin:17px 0}.statement .description{font-size:14px;color:#b4c1c9;line-height:1.8;white-space:pre-line}.statement h4{margin:25px 0 11px;font-size:14px}.example{background:#0c141c;border:1px solid #253440;border-radius:8px;padding:13px;margin:10px 0;font-size:13px;line-height:1.8}.example code{font-size:12px;color:#b5d7c7;overflow-wrap:anywhere}.example p{font-size:12px;color:var(--muted);margin-top:5px}.constraints{font-size:12px;color:var(--muted);padding-left:16px;line-height:1.8}.study-right{min-width:0}.editor{background:#0c141c;border:1px solid #2b3843;border-radius:13px;overflow:hidden}.editor-bar{padding:14px 18px;border-bottom:1px solid #26323b;background:#151f28;display:flex;align-items:center;justify-content:space-between;font-size:12px}.file-tab{display:flex;gap:8px;align-items:center;color:#bbc9d2}.js-mark{background:#d0c365;color:#23291b;font-size:9px;padding:2px 3px;font-weight:bold}.editor-content{padding:17px 0 21px;min-height:180px;max-height:340px;overflow:auto;counter-reset:line}.code-line{display:flex;min-height:25px;font-size:13px;line-height:25px;white-space:pre;font-family:'Cascadia Code',Consolas,monospace;color:#b8dacc}.line-number{display:inline-block;user-select:none;min-width:47px;text-align:right;padding-right:18px;color:#526473;position:sticky;left:0;background:#0c141c}.code-line.new{background:#183329}.code-line.new .line-number{background:#183329}.code-placeholder{border:1px dashed #49653e;background:#18251e;color:#b2d395;margin:7px 16px 0 47px;border-radius:5px;padding:8px 12px;font-size:12px}.step-section{margin-top:23px}.step-label{font-size:11px;color:var(--teal);text-transform:uppercase;font-weight:600;letter-spacing:1.3px;margin-bottom:9px}.step-section h3{font-size:17px;line-height:1.6}.code-options{display:flex;flex-direction:column;gap:10px;margin-top:17px}.code-option{border:1px solid #34434d;border-radius:9px;background:#16212a;padding:14px;display:flex;gap:13px;align-items:center;text-align:left;min-height:55px}.code-option:hover:not(:disabled){border-color:#9ac168;background:#1e3025}.code-option.correct{border-color:#6da34d;background:#203723}.code-option.wrong{border-color:#a45357;background:#342228}.option-key{width:23px;height:23px;border:1px solid #45545f;border-radius:5px;flex-shrink:0;font-size:11px;display:grid;place-items:center;color:#99a9b3}.code-option code{white-space:pre-wrap;font-size:12px;line-height:1.7;color:#d4e3e4}.code-option:disabled{opacity:1}.code-option:disabled:not(.correct):not(.wrong){opacity:.45}.study-actions{display:flex;gap:10px;margin-top:16px;align-items:center;flex-wrap:wrap}.feedback{padding:13px 15px;border-radius:8px;line-height:1.6;font-size:13px;margin-top:14px;background:#203328;color:#bedab3;border:1px solid #395437}.feedback.error{color:#f0b5b5;background:#332227;border-color:#603940}.hint-box{background:#302b20;border:1px solid #5a4b2c;color:#e5c997;border-radius:8px;padding:14px;font-size:13px;margin-top:14px;line-height:1.7}.why-complete{font-size:12px;color:var(--green)}.summary-card{max-width:750px;margin:30px auto;text-align:center;padding:40px}.success-emblem{width:78px;height:78px;display:grid;place-items:center;margin:0 auto 25px;background:#2b432c;border:1px solid #5d8545;border-radius:50%;color:var(--green)}.success-emblem .icon{width:35px;height:35px}.summary-card h1{font-size:35px}.summary-card>p{margin:12px 0;color:var(--muted);font-size:14px}.reward-stats{display:grid;grid-template-columns:repeat(3,1fr);margin:28px 0;gap:10px}.reward-stat{padding:20px 8px;background:#19252d;border-radius:10px}.reward-stat strong{font-size:26px;font-family:'Baloo 2';display:block;color:var(--green)}.reward-stat span{font-size:12px;color:var(--muted);display:block;margin-top:5px}.complexity{text-align:left;background:#0e171e;border:1px solid var(--line);padding:18px;border-radius:10px;margin-bottom:24px}.complexity p{font-size:13px;color:var(--muted);margin-top:8px}.result-code{text-align:left;max-height:300px;overflow:auto;border:1px solid var(--line);background:#0a1218;padding:18px;border-radius:8px;font-size:12px;line-height:1.8;margin:16px 0}.summary-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.arena-layout{display:grid;grid-template-columns:minmax(0,1fr) 278px;gap:22px}.arena-card{background:radial-gradient(ellipse at center,#1e3e37,#122323 65%,#111d23);border:1px solid #2e423b;border-radius:16px;position:relative;overflow:hidden}.arena-world{height:540px}.arena-overlay{position:absolute;z-index:4;left:22px;top:20px;pointer-events:none}.arena-overlay h3{font-size:18px}.arena-overlay p{font-size:11px;color:#a0b9ad;margin-top:5px}.arena-controls{display:flex;align-items:center;gap:15px;border-top:1px solid #2a4137;padding:14px 20px;font-size:11px;color:#9cafa6;flex-wrap:wrap}.arena-controls .btn{margin-left:auto}.key{font-size:10px;border:1px solid #4a6056;padding:2px 5px;border-radius:3px}.bot-card{padding:16px;background:#19242d;border:1px solid #2c3943;border-radius:10px}.bot-card p{font-size:12px;color:var(--muted);margin:9px 0 13px}.bot-card .btn{width:100%}.notice{border:1px solid #344536;border-radius:9px;background:#1b2921;padding:13px;font-size:12px;color:#aec2a7;line-height:1.65}.arena-stats{display:flex;gap:20px;margin-top:20px}.arena-stats strong{font-family:'Baloo 2';font-size:23px;display:block}.arena-stats span{font-size:11px;color:var(--muted)}.armory-layout{display:grid;grid-template-columns:340px minmax(0,1fr);gap:24px}.character-panel{padding:0;overflow:hidden;background:radial-gradient(ellipse at 50% 45%,#213e36,#121f24 70%)}.character-world{height:315px}.character-info{padding:22px;border-top:1px solid #2c3e39}.character-info h2{font-size:22px}.character-info .progress{margin:15px 0 8px}.equipment-slot{padding:12px 0;border-top:1px solid #2b3b39;display:flex;align-items:center;gap:12px;font-size:13px}.equipment-slot:first-of-type{margin-top:18px}.equipment-slot small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.rarity-common{--rarity:#a9b9c7}.rarity-rare{--rarity:#6caff0}.rarity-epic{--rarity:#bca0ff}.rarity-legendary{--rarity:#eec16e}.item-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.item-card{border:1px solid #2c3944;background:#141f27;border-radius:11px;padding:16px;position:relative;text-align:center}.item-card.equipped{border-color:#789c50;background:#1e2d24}.item-card.locked{opacity:.55}.item-art{height:86px;display:grid;place-items:center;color:var(--rarity);position:relative;filter:drop-shadow(0 0 12px color-mix(in srgb,var(--rarity) 25%,transparent))}.item-art svg{width:58px;height:72px}.item-card h4{font-size:12px;line-height:1.5;margin-bottom:5px;min-height:36px}.item-card .rarity-label{font-size:10px;color:var(--rarity);text-transform:uppercase;letter-spacing:1px}.item-card .btn{margin-top:13px;font-size:10px;padding:6px 8px;min-height:30px;width:100%}.item-power{position:absolute;right:10px;top:10px;font-size:10px;color:var(--rarity)}.chest-banner{border:1px solid #5a4a31;background:linear-gradient(110deg,#302a22,#1d2525);border-radius:13px;padding:21px;display:flex;gap:17px;align-items:center;margin-bottom:22px}.chest-art{color:#eec17a;display:grid;place-items:center}.chest-art svg{width:65px;height:65px;filter:drop-shadow(0 0 16px #e2a34730)}.chest-banner h3{font-size:16px}.chest-banner p{font-size:12px;color:#a8aaa2;margin:5px 0 8px}.chest-banner .text-button{font-size:11px;color:#d0b47d}.chest-banner .btn{margin-left:auto}.board-table{width:100%;border-collapse:collapse;font-size:14px}.board-table th{text-align:left;color:var(--muted);font-size:11px;letter-spacing:1px;font-weight:500;padding:18px;text-transform:uppercase;border-bottom:1px solid var(--line)}.board-table td{padding:17px 18px;border-bottom:1px solid #24323b}.board-table tr:last-child td{border-bottom:0}.board-table tr.you{background:#243525}.board-table .rank{font-size:16px}.board-table td strong{font-size:13px}.board-table td small{font-size:11px;color:var(--muted)}.leader-intro{display:grid;grid-template-columns:1fr 1fr 1fr;gap:20px;margin:25px 0}.stat-panel{padding:22px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.stat-panel span{font-size:12px;color:var(--muted)}.stat-panel strong{font-size:30px;font-family:'Baloo 2';display:block;margin-top:9px}.modal-backdrop{position:fixed;inset:0;background:#030a12c9;backdrop-filter:blur(7px);display:flex;align-items:center;justify-content:center;padding:24px;z-index:100}.modal{width:100%;max-width:530px;max-height:90dvh;overflow:auto;border:1px solid #3a4c57;background:#15212a;border-radius:18px;padding:27px;box-shadow:0 35px 130px #0009;animation:modalIn .18s ease}.modal.large{max-width:700px}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:19px;gap:15px}.modal h2{font-size:22px}.modal p{font-size:14px;color:#a7b6c1;line-height:1.75}.why-options{display:flex;flex-direction:column;gap:10px;margin:18px 0}.why-option{padding:15px 17px;background:#1c2b35;border:1px solid #3b4d59;border-radius:9px;text-align:left;font-size:13px;line-height:1.6}.why-option:hover:not(:disabled){border-color:var(--green)}.why-option.correct{border-color:#8ab75e;background:#263f29}.why-option.wrong{border-color:#a46161;background:#39292d}.modal label{font-size:13px;display:block;margin:20px 0 9px;color:#c1cbd2}.modal .btn.full{margin-top:20px}.modal .fine-print{font-size:12px;margin-top:17px}.drop-row{display:flex;justify-content:space-between;padding:13px 0;border-bottom:1px solid var(--line);font-size:14px}.drop-row span{color:var(--rarity)}.chest-reveal{text-align:center;padding:12px 0}.chest-reveal .item-art{height:140px}.chest-reveal .item-art svg{width:100px;height:125px}.chest-reveal h3{font-size:25px;margin:12px 0}.chest-reveal .rarity-label{color:var(--rarity);font-size:12px;text-transform:uppercase;letter-spacing:2px}.chest-reveal p{margin-top:12px}.chest-shake{animation:shake .8s ease infinite}.battle-status{display:grid;grid-template-columns:1fr 1fr;gap:25px;margin:20px 0}.hp-label{font-size:12px;display:flex;justify-content:space-between;margin-bottom:9px}.hp-bar{height:8px;background:#293943;border-radius:8px;overflow:hidden}.hp-bar span{height:100%;background:var(--green);display:block;transition:width .4s}.hp-bar.bot span{background:#bf99ed}.battle-question{border:1px solid #334651;border-radius:10px;padding:20px;background:#0f1a22}.battle-question h3{font-size:16px;line-height:1.7}.battle-log{font-size:12px!important;margin:13px 0;min-height:20px}.tutorial-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:20px 0}.tutorial-step{background:#1c2b34;border-radius:9px;padding:16px}.tutorial-step .icon{color:var(--green);margin-bottom:13px}.tutorial-step h4{font-size:14px;margin-bottom:7px}.tutorial-step p{font-size:12px;line-height:1.7}.notification{position:fixed;right:28px;bottom:28px;z-index:200;background:#273b2c;border:1px solid #66874f;color:#d4efbf;padding:15px 20px;border-radius:10px;font-size:13px;box-shadow:0 10px 30px #0006;max-width:min(400px,90vw);animation:modalIn .2s ease}.skip-link{position:fixed;left:20px;top:-100px;background:var(--green);color:#162116;padding:12px 20px;z-index:500}.skip-link:focus{top:16px}.mobile-shade{display:none}.offline-banner{font-size:12px;color:#e4c694;background:#3c3020;padding:9px 15px;text-align:center}.code-keyword{color:#bda2f1}.code-string{color:#c2dd98}.success-list{text-align:left;font-size:12px;color:#a9d99b;line-height:1.9;margin:16px 0}.access-note{font-size:12px!important;color:#7e969e!important;margin-top:15px}.world-fallback{height:100%;display:grid;place-items:center;padding:30px;text-align:center;color:#a8c7b7;font-size:13px}.world-fallback p{max-width:280px}.onboarding-label{font-size:12px;color:var(--teal);margin-bottom:10px;letter-spacing:1.2px}.daily-card.claimable{border-color:#7d9f53}.installation{font-size:12px!important;background:#112019;padding:14px;border-radius:8px;margin-top:15px}.keyboard-help{font-size:11px;color:#708591;margin-top:15px}.loading-state{padding:80px;text-align:center;color:var(--muted)}@keyframes modalIn{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}@keyframes shake{0%,100%{transform:rotate(-5deg)}50%{transform:rotate(5deg)}}
@media(min-width:1600px){.hero{min-height:395px}.hero-copy{padding:43px 0 40px 38px}.hero-copy p{font-size:14px}.hero h2{font-size:47px}.hero-grid{grid-template-columns:minmax(0,1fr) 310px}.hero-copy .btn{margin-top:28px}.quest-ring{margin-top:26px}}
@media(max-width:1220px){.sidebar{width:204px;padding-left:14px;padding-right:14px}.main-shell{margin-left:204px}.brand{font-size:21px}.nav-item.active:before{left:-14px}main{padding:28px}.topbar{padding:0 28px}.hero-grid{grid-template-columns:minmax(0,1fr) 250px;gap:16px}.hero-copy{padding-left:24px;width:53%}.hero-copy p{max-width:210px}.hero h2{font-size:32px}.hero-world{left:37%;right:-10%}.daily-card{padding:19px}.problem-grid{gap:13px}.problem-card{padding:17px}.problem-card .description{font-size:12px}.arena-layout{grid-template-columns:minmax(0,1fr) 240px}.armory-layout{grid-template-columns:290px minmax(0,1fr)}.item-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1050px){.hero-grid{grid-template-columns:1fr}.hero{min-height:340px}.hero-copy{width:50%;padding:30px}.hero h2{font-size:39px}.hero-copy p{max-width:260px;font-size:14px}.hero-world{left:35%;right:0}.daily-card{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}.daily-card .subtitle{margin:0}.daily-card .quest-ring,.daily-card .quest-goal{display:none}.daily-reward{margin:0;padding:0;border:0;grid-column:2;grid-row:1/3;min-width:150px}.daily-card .btn{margin:0}.daily-reward .row{margin-bottom:7px}.problem-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-problems .problem-card:last-child{display:none}.study-layout{grid-template-columns:1fr}.statement .description{max-width:700px}.statement .examples{display:grid;grid-template-columns:1fr 1fr;gap:12px}.study-right .editor-content{min-height:160px}.arena-layout{grid-template-columns:1fr}.arena-side{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.arena-side .notice{grid-column:1/-1}.arena-side>h3{grid-column:1/-1}.home-bottom{grid-template-columns:1fr}.armory-layout{grid-template-columns:1fr}.character-panel{display:grid;grid-template-columns:1fr 1fr}.character-world{height:300px}.character-info{border:0;display:flex;flex-direction:column;justify-content:center}.item-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:235px;padding:25px 20px}.sidebar.open{transform:translateX(0)}.mobile-shade.open{display:block;position:fixed;inset:0;background:#020a13aa;z-index:29}.main-shell{margin-left:0}.topbar{height:68px;padding:0 20px}.menu-button{display:inline-flex}.breadcrumb{font-size:12px;gap:7px}.breadcrumb>.icon{display:none}.top-actions{gap:13px}.top-actions .top-separator{display:none}.currency{font-size:12px;gap:4px}.currency .icon{width:15px;height:15px}.avatar{height:31px;width:31px;font-size:12px}main{padding:24px 20px 30px}.welcome{margin-bottom:22px}.welcome h1{font-size:25px}.welcome p{font-size:12px;max-width:260px}.streak{font-size:11px;padding:7px;white-space:nowrap}.streak .icon{width:16px}.hero{min-height:350px}.hero-copy{padding:26px 0 26px 24px;width:52%}.hero h2{font-size:35px;letter-spacing:-1.4px}.hero-copy p{font-size:12px;max-width:200px}.hero-copy .btn{font-size:12px;padding:10px 12px}.chapter{font-size:9px;letter-spacing:1px}.hero-world{left:37%;right:-11%;top:30px;bottom:0}.world-label{font-size:8px;right:14px;bottom:13px}.daily-card{padding:17px}.daily-card h3{font-size:14px}.daily-card .subtitle{font-size:11px;max-width:180px}.daily-reward{min-width:110px;font-size:11px}.daily-reward .btn{font-size:10px;min-height:30px;padding:7px 9px}.section-heading{margin-top:25px}.section-heading h2{font-size:17px}.pills{gap:1px}.pill{padding:6px 9px;font-size:11px}.problem-card h3{font-size:16px}.home-problems .problem-card:last-child{display:flex}.problem-grid{grid-template-columns:1fr}.problem-card{padding:20px}.problem-card .description{font-size:14px}.problem-footer{font-size:13px}.mini-start{font-size:12px}.home-bottom{margin-top:20px}.panel{padding:20px}.footer-note{font-size:10px;flex-wrap:wrap}.page-title h1{font-size:27px}.page-title p{font-size:13px}.toolbar{gap:10px}.search-wrap{width:100%;flex-basis:100%}.study-top{gap:8px}.study-top .btn{padding:8px 11px;font-size:11px}.study-top .meta{font-size:10px}.study-top .progress{max-width:180px}.statement{padding:20px}.statement h1{font-size:25px}.statement .examples{display:block}.editor-content{max-height:250px}.code-option{padding:12px;gap:9px}.code-option code{font-size:11px}.code-line{font-size:11px;line-height:23px;min-height:23px}.line-number{min-width:37px;padding-right:13px}.code-placeholder{margin-left:37px;font-size:11px}.study-actions .btn{padding:9px 13px;font-size:12px}.summary-card{margin:0;padding:25px 20px}.summary-card h1{font-size:28px}.reward-stat strong{font-size:23px}.reward-stat span{font-size:11px}.arena-world{height:430px}.arena-side{grid-template-columns:1fr}.arena-controls{font-size:10px;gap:10px;padding:13px}.arena-overlay{left:18px;top:17px}.arena-overlay h3{font-size:16px}.arena-overlay p{max-width:180px;font-size:10px}.character-panel{grid-template-columns:1fr}.character-world{height:280px}.character-info{border-top:1px solid var(--line)}.item-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.chest-banner{padding:16px;gap:12px;flex-wrap:wrap}.chest-banner .btn{margin:0;width:100%}.chest-art svg{width:53px;height:53px}.leader-intro{gap:10px}.stat-panel{padding:15px}.stat-panel span{font-size:10px}.stat-panel strong{font-size:24px}.board-table th,.board-table td{padding:14px 9px;font-size:12px}.board-table .hide-mobile{display:none}.board-table td .row{gap:8px}.board-table td strong{font-size:12px}.board-table td small{font-size:10px}.modal-backdrop{padding:14px}.modal{padding:22px;max-height:93dvh}.modal h2{font-size:20px}.tutorial-grid{grid-template-columns:1fr;gap:8px}.tutorial-step{display:grid;grid-template-columns:25px 1fr;gap:4px 10px;padding:13px}.tutorial-step .icon{grid-row:1/3;margin:0}.tutorial-step h4{margin:0}.tutorial-step p{grid-column:2}.notification{right:16px;bottom:16px}.leader-intro{margin:18px 0}.keyboard-help{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.world.hero-world{position:absolute}
.hero-copy{width:52%}
.hero h2{font-size:clamp(28px,2.65vw,43px)}
@media(min-width:1600px){.hero h2{font-size:43px}}
@media(max-width:1050px){.hero h2{font-size:39px}}
@media(max-width:760px){.hero h2{font-size:32px}}
.battle-code{font-size:12px;line-height:1.7;color:#bbdbcd;overflow:auto;background:#0a141b;padding:13px;border-radius:6px;white-space:pre-wrap;margin:10px 0 16px}
/* Reading and interaction sizes remain comfortable across devices. */
.statement .description,.modal p,.page-title p{font-size:16px}
.code-option code,.code-line,.battle-code,.result-code{font-size:14px}
.code-line{line-height:26px;min-height:26px}
.why-option,.feedback,.hint-box,.btn,.mini-start,.nav-item,.pill{font-size:14px}
.problem-card .description,.hero-copy p{font-size:14px}
.tag,.difficulty,.meta,.daily-card .subtitle,.quest-goal,.daily-reward,.path-step .label,.caption{font-size:12px}
.item-card h4{font-size:14px}
.item-card .btn{font-size:12px;min-height:36px}
.constraints,.example p,.example code{font-size:14px}
.code-option{overflow:auto}
.code-option code{white-space:pre-wrap;overflow-wrap:anywhere}
.quest-ring .ring-label{position:relative;z-index:1}
.ring-label small{font-size:10px}
@media(max-width:760px){.hero{min-height:525px}.hero-copy{width:100%;padding:24px}.hero-copy h2{font-size:32px}.hero-copy p{max-width:300px;font-size:14px;margin-top:12px}.hero-copy .btn{margin-top:17px;font-size:14px}.hero-world{left:0;right:-5%;top:247px;bottom:-2px}.hero-copy>div:last-child{display:none}.world-label{font-size:9px}.chapter{margin-bottom:13px}.code-option code,.code-line,.battle-code{font-size:14px}.code-option{padding:13px 10px}.daily-card .btn{font-size:12px}.pill{font-size:13px;padding:7px 9px}.study-actions .btn{font-size:13px}.daily-card{display:flex;gap:10px}.daily-card .subtitle{max-width:none}.daily-reward{width:100%;margin-top:5px}.daily-card .between{width:100%}.streak{font-size:11px}.welcome h1{font-size:25px}.welcome{align-items:flex-start}.problem-card .description{font-size:15px}.statement .description,.modal p{font-size:16px}.statement .example p{font-size:14px}.armory-layout{gap:19px}.footer-note{line-height:1.6}.item-card .btn{font-size:12px}.arena-controls{font-size:12px}.arena-controls .btn{font-size:12px}.bot-card p{font-size:14px}}

.currency{white-space:nowrap}
@media(max-width:760px){.breadcrumb>span:first-of-type,.breadcrumb>span:nth-of-type(2){display:none}.top-actions{gap:13px}.breadcrumb{white-space:nowrap;font-size:13px}.welcome .streak{margin-left:5px}.hero-copy .chapter{font-size:11px}}
