.lesson-code-example{margin:16px 0;border-radius:10px;background:#132d42;color:#a3eef0;overflow:hidden}.lesson-code-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;border-bottom:1px solid #ffffff20;font-size:12px}.lesson-code-toolbar button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;height:36px;border:1px solid #ffffff35;border-radius:7px;background:transparent;color:inherit;cursor:pointer}.lesson-code-toolbar button:hover{background:#ffffff15}.lesson-code-toolbar button:focus-visible,.lesson-code-example pre:focus-visible{outline:2px solid #65d9e4;outline-offset:-3px}.lesson-code-example pre,.explanation-copy .lesson-code-example pre{margin:0;padding:16px;border-radius:0;background:transparent;color:inherit;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.65;-webkit-user-select:text;user-select:text}.lesson-code-status{display:block;padding:0 12px 8px;font-size:12px}.lesson-code-status:empty{display:none}.tok-keyword{color:#c586c0}.tok-literal{color:#569cd6}.tok-type{color:#4ec9b0}.tok-string{color:#ce9178}.tok-number{color:#b5cea8}.tok-comment{color:#6a9955}.tok-annotation{color:#dcdcaa}.guided-change{margin:20px 0;padding:20px;border:1px solid #b78629;border-left:5px solid #d9a62d;border-radius:12px;background:#fff9e7;color:#493815}.guided-change h3{margin:0 0 10px}.guided-change p{line-height:1.6}.guided-change-key{font-size:13px}.guided-change pre{padding:14px;background:#152b3c;color:#d5e4ef;border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}.guided-change mark{background:#f5ca64;color:#30250d;border-radius:3px;padding:2px 0}.monaco-editor .guided-change-code{background:#f5ca643d;border-bottom:2px solid #f5ca64}.monaco-editor .guided-change-gutter{border-left:3px solid #f5ca64;margin-left:3px}.editor-copy-control{display:inline-flex;align-items:center;position:relative;flex-shrink:0}.editor-copy-control button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:7px}.editor-copy-control svg{flex-shrink:0}.editor-copy-status:not(:empty){position:absolute;z-index:5;top:calc(100% + 6px);right:0;width:max-content;max-width:220px;padding:7px 10px;border-radius:8px;background:#15394a;color:#fff;box-shadow:0 4px 12px #0002;font-size:12px;line-height:1.4;pointer-events:none}.editor-help-control{position:relative;display:inline-flex;flex:0 0 auto;align-items:center}.editor-card-heading-actions{display:inline-flex;align-items:center;gap:8px}.editor-help-button{display:inline-grid;width:36px;min-width:36px;min-height:36px;padding:0;place-items:center;border-radius:50%;font-weight:800}.editor-help-tooltip{position:fixed;z-index:120;width:min(500px,calc(100vw - 72px));padding:18px;border:1px solid var(--line-strong, #cbd9df);border-radius:8px;color:var(--ink-700, #40586a);background:var(--paper, #fff);box-shadow:0 10px 24px #102b422e;font-size:12px;line-height:1.45;overflow-y:auto;overflow-wrap:anywhere}.editor-help-header,.editor-help-groups,.editor-help-group,.editor-help-shortcuts,.editor-help-shortcut{display:flex}.editor-help-header,.editor-help-groups,.editor-help-group,.editor-help-shortcuts{flex-direction:column}.editor-help-header{gap:3px;padding-bottom:13px;border-bottom:1px solid var(--line, #dfe8ec)}.editor-help-header strong{color:var(--ink-900, #102b42);font-size:15px}.editor-help-header>span{color:var(--ink-500, #6a7f8e)}.editor-help-groups{gap:15px;margin-top:15px}.editor-help-group{gap:8px}.editor-help-group-title{display:flex;align-items:center;gap:8px;color:var(--ink-900, #102b42);font-size:12px;font-weight:800}.editor-help-section-icon{width:17px;height:17px;fill:none;stroke:var(--teal-600, #168e83);stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5}.editor-help-shortcuts{gap:6px}.editor-help-shortcut{align-items:center;justify-content:space-between;gap:16px;min-height:30px}.editor-help-shortcut>span:last-child{flex:1 1 50%;color:var(--ink-700, #40586a)}.editor-help-keymap{display:inline-flex;flex:0 0 190px;align-items:center;gap:4px}.editor-help-key-part{display:inline-flex;align-items:center;gap:4px}.editor-help-key-plus{color:var(--ink-500, #6a7f8e);font-size:10px;font-weight:700}.editor-help-tooltip kbd{display:inline-flex;min-width:28px;min-height:25px;align-items:center;justify-content:center;padding:2px 7px;border:1px solid #b8c9d1;border-bottom-width:2px;border-radius:5px;color:var(--ink-900, #102b42);background:#f4f8fa;box-shadow:0 1px 1px #102b4214;font-family:var(--mono);font-size:10px;font-weight:800;line-height:1;white-space:nowrap}.editor-help-key-separator{padding:0 2px;color:var(--ink-500, #6a7f8e);font-size:10px}.editor-help-platform-note{display:block;margin-top:15px;padding-top:12px;border-top:1px solid var(--line, #dfe8ec);color:var(--ink-500, #6a7f8e)}.editor-help-platform-note kbd{min-width:24px;min-height:22px;padding:2px 5px;vertical-align:middle}@media(max-width:600px){.editor-help-tooltip{width:min(360px,calc(100vw - 44px));padding:15px}.editor-help-shortcut{align-items:flex-start;flex-direction:column;gap:5px}.editor-help-keymap{flex-basis:auto}}.lesson-link-action{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:10px 0 14px;font-size:12px}.lesson-link-action button{display:inline-flex;gap:7px;align-items:center;padding:7px 10px;border:1px solid var(--line-strong,#c7d8e2);border-radius:7px;background:var(--paper,#fff);color:var(--ink-900,#17324d);font:inherit;cursor:pointer}.lesson-link-action svg{flex-shrink:0}.lesson-link-action button:focus-visible{outline:3px solid var(--teal-500,#25b8a7);outline-offset:3px}.lesson-link-action [role=status]{font-size:11px}.lesson-infographic{margin:20px 0;border:2px solid #2abdd4;border-radius:14px;background:linear-gradient(135deg,#0b1b38,#143753);padding:16px;box-shadow:0 4px #08162c;color:#e8f7ff}.lesson-infographic figcaption{display:flex;align-items:center;gap:12px;margin-bottom:16px}.lesson-infographic figcaption strong{display:block;font-size:clamp(17px,2vw,23px);line-height:1.3}.lesson-infographic figcaption small{display:block;color:#8edeee;margin-top:4px;font-size:11px}.lesson-infographic-number{padding:9px;border:2px solid #7ff4ff;box-shadow:3px 3px #072749;background:#0c809c;color:#fff;font-weight:800;font-size:20px;flex-shrink:0}.lesson-infographic-flow{display:grid;grid-template-columns:1fr 20px 1fr 20px 1fr;gap:10px;align-items:stretch}.lesson-infographic-flow article{position:relative;background:linear-gradient(#f9fcff,#e3f2fc);border:2px solid #9cdeee;border-top:5px solid #52dbc0;border-radius:10px;padding:14px;color:#12344b;min-width:0}.lesson-infographic-flow article:nth-of-type(2){border-top-color:#5388fa}.lesson-infographic-flow article:nth-of-type(3){border-top-color:#ad88f7}.lesson-infographic-flow h3{margin:0 0 12px;font-size:15px}.lesson-infographic-flow p{font-size:13px;line-height:1.6;margin:0}.lesson-infographic-flow pre{margin:0 0 8px;padding:12px;background:#122642;border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere;color:#81eafa;font-size:13px}.lesson-infographic-flow small{font-size:11px;line-height:1.5;color:#43677c;display:block}.lesson-step-number{float:right;width:22px;height:22px;display:grid;place-items:center;border:2px solid #b7daee;background:#edf8fc;border-radius:5px;font-weight:700}.lesson-flow-arrow{align-self:center;color:#65e8ff;font-size:24px}.lesson-pixel-icon{display:block;width:128px;height:128px;max-width:100%;background-repeat:no-repeat;image-rendering:pixelated;margin:0 auto 8px}@media(max-width:900px){.lesson-infographic-flow{grid-template-columns:1fr}.lesson-flow-arrow{justify-self:center;transform:rotate(90deg)}.lesson-infographic{padding:12px}.lesson-infographic-flow article{padding:12px}}.page-diagram{margin:0;padding:20px;border:1px solid #d5e5dc;border-radius:16px;background:linear-gradient(150deg,#f6faf6,#edf5ef);color:#24483e}.page-diagram figcaption{font-size:16px;font-weight:750;margin-bottom:16px}.page-diagram svg{display:block;width:100%;max-width:520px;margin:0 auto}.page-diagram p{margin:12px 0;font-size:14px;line-height:1.65}.page-diagram small{display:block;font-size:12px;color:#5a7368;margin-top:16px}.page-diagram-flow{display:grid;gap:18px;list-style:none;padding:0;margin:0}.page-diagram-flow li{display:grid;grid-template-columns:30px 1fr;gap:12px;align-items:center;background:#fff;padding:16px;border:1px solid #c5dcd0;border-radius:12px;position:relative}.page-diagram-flow li>span{display:grid;place-items:center;border-radius:50%;background:#d7ece2;width:28px;height:28px;color:#245e4c}.page-diagram-flow strong{font-size:16px;overflow-wrap:anywhere}.page-diagram-flow b{position:absolute;bottom:-21px;left:50%;font-size:20px;color:#328779;z-index:1}.page-diagram-flow--decision{grid-template-columns:1fr 1fr;gap:24px 12px}.page-diagram-flow--decision li:first-child{grid-column:1 / -1}.page-diagram-flow--decision li:not(:first-child):before{content:"";position:absolute;height:24px;width:2px;top:-25px;left:50%;background:#328779}.page-diagram-flow--decision li:nth-child(2){border-color:#328779}.page-diagram-flow--decision li:nth-child(3){border-color:#ce8054}.page-diagram-flow--parallel{gap:10px;border-left:3px solid #69a08c;padding-left:14px}@container (max-width: 400px){.page-diagram-flow--decision{grid-template-columns:1fr}.page-diagram-flow--decision li:first-child{grid-column:auto}}@media(max-width:450px){.page-diagram,.page-diagram-flow li{padding:12px}}.scene-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.scene-overview .page-diagram{padding:16px}.scene-overview .page-diagram p{font-size:13px}@media(max-width:850px){.scene-overview{grid-template-columns:1fr}}.game-intro-visual{margin:22px 0;padding:20px;background:#f5f7f0;border:1px solid #d6e2d6;border-radius:14px;color:#173b46}.game-intro-visual figcaption{margin-top:16px;font-size:13px;line-height:1.6;color:#526b65}.game-intro-world{display:block;width:100%;max-width:510px;margin:12px auto;font:15px system-ui;overflow:visible}.game-intro-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.game-intro-pair>div{min-width:0}.game-intro-pair>div>strong{display:block;text-align:center;margin-bottom:12px;font-size:15px}.game-intro-cards{display:flex;gap:14px;flex-wrap:wrap}.game-intro-card{display:flex;flex:1 1 190px;flex-direction:column;gap:12px;min-width:0;padding:18px;background:#fff;border:1px solid #dce4d7;border-radius:12px;font-size:15px;line-height:1.6}.game-intro-card small{color:#a06b25}.game-intro-card>svg{width:100%;height:90px}.game-intro-card:nth-child(2)>svg{image-rendering:pixelated}.game-intro-text{display:grid;place-items:center;height:90px;font-size:28px}.game-intro-owner{display:flex;flex-direction:column;gap:12px;max-width:580px;margin:0 auto 16px;padding:18px;border:2px solid #8ca99e;border-radius:12px;background:#fff;font-size:15px}.game-intro-transform,.game-intro-attachment{display:flex;flex-direction:column;gap:6px;padding:12px;border-left:4px solid #c49648;background:#fbf6e9}.game-intro-transform small{font-size:12px;color:#63726b}.game-intro-attachment{border-color:#4b9483;background:#eff6f1}.game-intro-attachment.is-behavior{border-color:#8b90ac;background:#f1f2f8}.game-intro-empty{display:grid;place-items:center;min-height:145px;border:1px dashed #aebdb2;border-radius:10px;background:#fbfaf4;color:#718078}.game-intro-equation{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:16px;font-size:21px}.game-intro-equation span,.game-intro-equation strong{padding:12px;background:#fff;border-radius:8px}.game-intro-visual>button{display:block;margin:14px auto 0;padding:10px 16px;border:1px solid #7d9d8d;border-radius:8px;background:#fff;color:#24534c;font:inherit;cursor:pointer}.game-intro-visual>button:focus-visible{outline:3px solid #c49648;outline-offset:3px}.game-intro-code-context{font-size:13px!important;color:#62756c;margin:14px 0 6px!important}@media(max-width:700px){.game-intro-pair{grid-template-columns:minmax(0,1fr)}.game-intro-visual{padding:12px}.game-intro-card{flex-basis:100%}}.concept-result{margin-top:16px;padding:16px;background:#10293d;color:#f3fbff;border-radius:10px}.concept-result>span{font-size:12px;color:#aadbdc}.concept-result pre{margin:8px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;font-size:14px}.lesson-explanation{margin:22px 0;border:1px solid #c9dde4;border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 8px 24px #13354b08;container-type:inline-size}.explanation-header{display:flex;justify-content:space-between;align-items:center;padding:14px 22px;border-bottom:1px solid #e4eef2;background:#f5fafb;color:#137c89;font-size:11px;font-weight:800;letter-spacing:.08em}.explanation-copy{padding:22px 24px 8px}.explanation-copy h2{font-size:22px;line-height:1.3;margin:0 0 12px;color:#16384a}.explanation-copy p{font-size:15px;line-height:1.75;margin:0;color:#405c6b;max-width:70ch}.explanation-copy pre{padding:16px;border-radius:10px;background:#132d42;color:#a3eef0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.explanation-visual{padding:0 20px}.explanation-visual .lesson-infographic{margin:16px 0 20px}.explanation-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;border-top:1px solid #e4eef2;background:#f9fcfd}.explanation-pages{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}.explanation-pagination button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid #c5dce3;border-radius:10px;background:#fff;color:#365767;font-weight:700;cursor:pointer;flex-shrink:0}.explanation-pagination button[aria-current]{background:#087f8c;color:#fff;border-color:#087f8c;box-shadow:0 3px 8px #087f8c25}.explanation-pagination button:disabled{opacity:.35;cursor:default}.explanation-pagination button:focus-visible{outline:3px solid #39bfcc;outline-offset:3px}@container (max-width:650px){.explanation-visual .lesson-infographic-flow{grid-template-columns:1fr}.explanation-visual .lesson-flow-arrow{justify-self:center;transform:rotate(90deg)}}@media(max-width:600px){.explanation-copy{padding:18px 16px 4px}.explanation-copy h2{font-size:19px}.explanation-visual{padding:0 12px}.explanation-pagination{padding:12px}.explanation-header{padding:12px 16px}}.element-tree{font-size:13px;line-height:1.55;color:#d8d2c4;background:#0d1119;border:1px solid #3a3f4d;border-radius:8px;padding:10px 12px;max-height:340px;overflow:auto}.element-tree ul{list-style:none;margin:0;padding-left:24px}.element-tree [role=tree]{padding-left:14px}.element-tree-item{position:relative;padding:3px 0;outline:none}.element-tree-item:after{content:"";position:absolute;left:-12px;top:0;bottom:0;border-left:1px solid #5c4b2a}.element-tree-item:last-child:after{bottom:auto;height:15px}.element-tree-item>.element-tree-label:before{content:"";position:absolute;left:-12px;top:15px;width:11px;border-top:1px solid #5c4b2a}.element-tree-item:not([aria-expanded])>.element-tree-label{margin-left:14px}.element-tree-item>.element-tree-label{display:inline-flex;align-items:baseline;flex-wrap:wrap;gap:4px;padding:2px 8px;border:1px solid #3a3f4d;border-radius:6px;background:linear-gradient(#1a1f2b,#131721);cursor:pointer}.element-tree-item>.element-tree-label:hover{border-color:#6b5326}.element-tree-item[aria-expanded]:before{content:"▸";display:inline-block;width:14px;color:#8a8272;font-size:10px}.element-tree-item[aria-expanded=true]:before{content:"▾"}.element-tree-item:focus>.element-tree-label,.element-tree-item:focus-visible>.element-tree-label{outline:2px solid #e0b04a;outline-offset:0}.element-tree-tag{font-family:Consolas,Menlo,monospace;color:#8fb8ff}.element-tree-id{font-family:Consolas,Menlo,monospace;color:#e8c76a}.element-tree-class{font-family:Consolas,Menlo,monospace;color:#a9cf9a}.element-tree-check{color:#7fd48a;font-weight:700}.element-tree-preview{color:#a49b86;font-size:.92em}.element-tree-item.is-matched>.element-tree-label{background:#7fd48a1a;box-shadow:inset 0 0 0 1px #7fd48a59}.element-tree-empty{margin:0;color:#a49b86}.element-tree-missing{margin-top:10px;padding-top:8px;border-top:1px dashed #3a3f4d;color:#c9bfae}.element-tree-missing strong{color:#e0b04a;font-size:12px;text-transform:uppercase;letter-spacing:.08em}.element-tree-missing ul{margin:4px 0 0;padding-left:18px;list-style:disc}.php-foreach-diagram{margin:20px 0 0;padding:16px;border:1px solid var(--line, #c9dde4);border-radius:12px;color:var(--ink-900, #16384a);background:#f7fafb}.php-foreach-diagram figcaption{margin-bottom:12px}.php-foreach-diagram code{max-width:100%;font-size:13px;overflow-wrap:break-word;word-break:normal;white-space:pre-wrap}.php-foreach-source{display:grid;gap:8px}.php-foreach-segment{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:6px 10px;min-width:0;padding:8px 10px;border:1px solid;border-radius:7px}.php-foreach-segment small{font-size:11px;font-weight:800;letter-spacing:.04em}.php-foreach-segment--html{color:#125e58;background:#e5f5f1;border-color:#9bd1c8}.php-foreach-segment--php{color:#503681;background:#f0eafa;border-color:#c5b0e6}.php-foreach-loop{display:grid;gap:8px;padding:8px 0}.php-foreach-repeat{padding:12px;border:2px dashed #8760b2;border-radius:10px;background:#fff}.php-foreach-repeat>strong{display:block;margin-bottom:6px}.php-foreach-boundary{color:#503681;font-size:12px;font-weight:700}.php-foreach-body{display:flex;align-items:stretch;gap:6px;flex-wrap:wrap}.php-foreach-body>.php-foreach-segment--php{flex:1 1 180px}.php-foreach-diagram .php-foreach-note{margin:4px 0 10px;font-size:13px;line-height:1.6}.php-foreach-iterations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.php-foreach-pass{display:grid;gap:8px;min-width:0;padding:12px;border:1px solid #c9dde4;border-radius:10px;background:#fff}.php-foreach-pass .php-foreach-body>.php-foreach-segment--php{flex:1 1 auto}.php-foreach-pass .php-foreach-body{flex-wrap:nowrap}.php-foreach-pass .php-foreach-segment{flex-direction:column;gap:4px;padding:6px}.php-foreach-pass p{margin:0;font-size:13px}.php-foreach-value{color:#503681}.php-foreach-output{margin-top:12px;padding:12px;border:1px solid #c9dde4;border-radius:10px;background:#fff}.php-foreach-output ul{margin:8px 0 0;padding-left:24px}@media(max-width:600px){.php-foreach-diagram{padding:12px}.php-foreach-repeat{padding:8px}.php-foreach-iterations{grid-template-columns:1fr}}.php-condition-diagram{margin:20px 0 0;padding:16px;border:1px solid #c9dde4;border-radius:12px;color:#16384a;background:#f7fafb}.php-condition-diagram figcaption{margin-bottom:14px;font-size:18px}.php-condition-diagram table{width:100%;border-collapse:collapse;background:#fff;font-size:14px}.php-condition-diagram caption{padding-bottom:8px;text-align:left;font-size:13px}.php-condition-diagram :is(th,td){padding:10px 6px;border:1px solid #c9dde4;text-align:center}.php-condition-diagram th{background:#edf4f6}.php-condition-diagram tbody th{text-align:left}.php-condition-diagram tbody th code{display:block;font-size:17px;white-space:nowrap}.php-condition-diagram th small{display:block;margin-top:4px;font-size:12px;font-weight:400}.php-truth{display:inline-block;padding:3px 5px;border-radius:4px;font-family:monospace;font-size:13px;font-weight:700}.php-truth--true{color:#125e58;background:#dff3ed}.php-truth--false{color:#8b2838;background:#fbe7ec}.php-condition-flow{display:grid;justify-items:center;gap:6px;padding:12px;border:1px solid #9bd1c8;border-radius:8px;background:#fff;text-align:center}.php-logic-rule{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px}.php-logic-rule p{display:grid;gap:6px;margin:0;padding:12px;border:1px solid #c5b0e6;border-radius:8px;background:#fff}.php-logic-rule code{color:#503681;font-size:19px;font-weight:700}.php-logic-rule span,.php-condition-example{font-size:14px;line-height:1.7}@media(max-width:600px){.php-condition-diagram{padding:10px}.php-condition-diagram :is(th,td){padding:8px 3px}.php-condition-diagram th{font-size:12px}.php-condition-diagram tbody th code{font-size:15px}.php-truth{padding:3px;font-size:12px}.php-logic-rule{grid-template-columns:1fr}}.js-foundation,.js-lesson-quiz{margin:22px 0;border:1px solid #c9dde4;border-radius:16px;background:#fff;color:#16384a;overflow:hidden;min-width:0}.js-generator-link{display:grid;gap:8px;line-height:1.6;margin:18px 0}.js-generator-link a{color:#087f8c;font-weight:750;text-decoration:underline}.js-generator-link span{font-size:14px;color:#405c6b}.js-quiz-body input:not([type=radio]){width:100%;max-width:220px;padding:8px;border:1px solid #b7d2da;border-radius:6px;font:inherit}.js-quiz-body>form>label{flex-wrap:wrap;align-items:center}.js-foundation-header{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;padding:14px 20px;background:#f5fafb;border-bottom:1px solid #e4eef2;font-size:12px;font-weight:750;color:#137c89}.js-foundation-body,.js-quiz-body{padding:20px;min-width:0}.js-foundation-body h2{font-size:22px;line-height:1.35;margin:0 0 14px}.js-foundation-body>p,.js-quiz-body>p{font-size:16px;line-height:1.8;max-width:72ch;margin:0 0 16px}.js-foundation-body h2:focus{outline:2px solid #137c89;outline-offset:5px}.js-code-parts{margin:18px 0}.js-code-parts>div{display:grid;grid-template-columns:minmax(100px,1fr) 2fr;gap:12px;padding:12px 0;border-bottom:1px solid #dfebef}.js-code-parts dt{font-weight:700;overflow-wrap:anywhere}.js-code-parts dd{margin:0;line-height:1.6}.js-program-result{padding:16px;border-left:4px solid #137c89;background:#f1f9f8;border-radius:0 8px 8px 0;margin:18px 0}.js-program-result p{margin:6px 0 0;line-height:1.7}.js-teaching-image{margin:20px 0 0}.js-teaching-image a{display:block}.js-teaching-image img{display:block;width:100%;height:auto;border:1px solid #dfebef;border-radius:12px}.js-teaching-image figcaption{font-size:13px;line-height:1.6;margin-top:10px;color:#405c6b}.js-predict{margin-top:20px;border-top:1px solid #dfebef;padding-top:16px}.js-predict summary,.js-lesson-quiz>summary{cursor:pointer;font-weight:700;line-height:1.6}.js-predict p{line-height:1.7}.js-step-navigation{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px;background:#f5fafb;border-top:1px solid #e4eef2}.js-step-navigation>div{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}.js-step-navigation button,.js-quiz-actions button{min-height:40px;min-width:40px;padding:8px 10px;border:1px solid #b7d2da;border-radius:8px;background:#fff;color:#16384a;cursor:pointer;font:inherit;font-size:14px}.js-step-navigation button[aria-current]{background:#087f8c;color:#fff;border-color:#087f8c}.js-step-navigation button:disabled,.js-quiz-actions button:disabled{opacity:.45;cursor:default}.js-foundation button:focus-visible,.js-lesson-quiz :is(button,summary,input):focus-visible,.js-teaching-image a:focus-visible{outline:3px solid #137c89;outline-offset:3px}.js-lesson-quiz>summary{padding:16px 20px;background:#f5fafb}.js-quiz-body fieldset{min-width:0;margin:20px 0;padding:16px;border:1px solid #c9dde4;border-radius:10px}.js-quiz-body legend{font-weight:700;line-height:1.6;padding:0 6px;max-width:100%}.js-quiz-body label{display:flex;align-items:flex-start;gap:10px;line-height:1.6;padding:10px 8px;cursor:pointer;overflow-wrap:anywhere}.js-quiz-body input{flex-shrink:0;margin-top:6px}.js-quiz-body fieldset:disabled{opacity:1}.js-question-feedback{line-height:1.7;padding:12px;background:#f1f9f8;color:#16384a;border-radius:8px}.js-quiz-actions{display:flex;gap:12px;flex-wrap:wrap}.js-quiz-actions button:first-child{background:#087f8c;color:#fff}@media(max-width:600px){.js-foundation-body,.js-quiz-body{padding:16px}.js-foundation-body h2{font-size:20px}.js-foundation-body>p{font-size:15px}.js-step-navigation{flex-wrap:wrap;padding:12px}.js-step-navigation>div{order:3;width:100%}.js-code-parts>div{grid-template-columns:1fr;gap:4px}.js-quiz-body fieldset{padding:12px}}.html-lesson-example{margin:22px 0;border:1px solid #d9dedc;border-radius:12px;overflow:hidden;background:#fff}.html-example-bar{display:flex;gap:22px;align-items:center;padding:10px 16px;background:#f4f1e8;color:#53616a;font-size:12px}.html-example-bar>span{color:#b0a16e;letter-spacing:3px}.html-lesson-example>figcaption{padding:10px 16px;background:#fafaf7;color:#637078;font-size:12px}.html-viewport-example{display:flex;flex-wrap:wrap;gap:24px;align-items:center;padding:24px}.html-example-phone{width:150px;min-height:210px;border:7px solid #233f4a;border-radius:24px;padding:18px 8px;background:#f4eee1;font-size:13px}.html-example-phone p{color:#237b67;font-weight:700}.js-quiz-identity{display:flex;gap:14px;flex-wrap:wrap;margin:14px 0}.js-quiz-identity label{display:flex;flex-direction:column;align-items:flex-start;gap:6px;font-weight:600;font-size:13px;padding:0;margin:0;cursor:text}.js-quiz-identity input{max-width:220px;margin:0}.game-tutor-history .tutor-typing{margin-left:0;margin-right:auto;background:#f0f4f6}.tutor-typing-dots{display:flex;gap:5px;padding:10px 0 4px}.tutor-typing-dots i{width:7px;height:7px;border-radius:50%;background:#597889;animation:tutor-dot 1.2s ease-in-out infinite}.tutor-typing-dots i:nth-child(2){animation-delay:.15s}.tutor-typing-dots i:nth-child(3){animation-delay:.3s}@keyframes tutor-dot{0%,60%,to{opacity:.4;transform:translateY(0)}30%{opacity:1;transform:translateY(-4px)}}@media(prefers-reduced-motion:reduce){.tutor-typing-dots i{animation:none;opacity:.7}}.tutor-edit-before,.tutor-edit-after{margin-top:10px;padding:8px;border-radius:6px;border-left:3px solid}.tutor-edit-before{background:#fff0ed;border-color:#bc5745}.tutor-edit-after{background:#e8f5ee;border-color:#32805c}.game-tutor-proposal pre{max-width:100%;overflow-x:auto}.chat-message-text{min-width:0;overflow-wrap:anywhere}.chat-message-text>p,.game-tutor-history .chat-message-text p{white-space:normal;line-height:1.6;margin:8px 0}.chat-message-text>:first-child{margin-top:0}.chat-message-text>:last-child{margin-bottom:0}.chat-message-text h1,.chat-message-text h2,.chat-message-text h3,.chat-message-text h4,.chat-message-text h5,.chat-message-text h6{margin:16px 0 8px;font-size:1.1em;line-height:1.35}.chat-message-text ul,.chat-message-text ol{margin:8px 0;padding-left:24px}.chat-message-text li{margin:5px 0;line-height:1.55}.chat-message-text li>p{margin:4px 0}.chat-message-text :not(pre)>code{padding:2px 4px;border-radius:4px;background:#0000000f;font-family:var(--mono, monospace);font-size:.9em}.chat-message-text blockquote{margin:10px 0;padding-left:12px;border-left:3px solid #7897a8}.chat-message-text a{text-decoration:underline}.chat-markdown-table{max-width:100%;overflow-x:auto;margin:12px 0}.chat-markdown-table table{border-collapse:collapse;font-size:.9em}.chat-markdown-table th,.chat-markdown-table td{padding:6px 10px;border:1px solid var(--line, #ccd8e0);text-align:left}.game-course-modal{width:min(960px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--line);border-radius:14px;color:var(--ink-900);background:var(--paper);overflow-y:auto}.game-course-modal::backdrop{background:#091927a6}.game-course-modal .game-guide-heading{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;background:var(--paper);border-bottom:1px solid var(--line)}.game-course-modal .game-guide-heading h2{margin:0;font-size:clamp(18px,3vw,25px)}.game-course-pagination{flex-shrink:0;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px;padding:12px;border-top:1px solid var(--line, #d8dfe6)}.game-course-page-numbers{display:flex;flex-wrap:wrap;justify-content:center;gap:4px}.game-course-pagination button{display:grid;place-items:center;min-width:32px;height:36px;padding:0 7px;border:1px solid var(--line, #d8dfe6);border-radius:6px;background:var(--paper, #fff);color:inherit;cursor:pointer;font:inherit}.game-course-pagination button[aria-current=page]{background:#174f68;color:#fff;border-color:#174f68;font-weight:700}.game-course-pagination button:hover:not(:disabled):not([aria-current=page]){background:#e9f1f5}.game-course-pagination button:focus-visible{outline:2px solid #174f68;outline-offset:2px}.game-course-pagination button:disabled{opacity:.35;cursor:default}.game-course-page-status{font-size:12px;white-space:nowrap}.game-course-selector{gap:12px;font-weight:600}.game-course-selector select{-webkit-appearance:none;-moz-appearance:none;appearance:none;flex:1;width:100%;min-height:44px;padding:10px 42px 10px 14px;border:1px solid var(--line, #ccd8e0);border-radius:10px;background-color:var(--paper, #fff);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2336576b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;color:inherit;font:inherit;font-weight:500;cursor:pointer;box-shadow:0 1px 2px #0919270d;transition:border-color .15s,box-shadow .15s}.game-course-selector select:hover{border-color:#7897a8}.game-course-selector select:focus-visible{outline:none;border-color:#174f68;box-shadow:0 0 0 3px #174f6826}.game-course-actions .button{display:inline-flex;align-items:center;justify-content:center;gap:8px;line-height:1.25;min-height:40px}.game-course-actions .button svg{display:block;width:20px;height:20px;flex:0 0 20px}@media(max-width:480px){.game-course-pagination{gap:4px;padding:10px 6px}.game-course-page-numbers{flex-wrap:nowrap;gap:2px}.game-course-pagination button{min-width:24px;width:24px;height:32px;padding:0;font-size:12px}.game-course-page-status{flex-basis:100%;text-align:center}}.learning-stages{display:flex;gap:8px;margin:0 0 24px;padding:6px;background:#e8f0f2;border-radius:12px}.learning-stages button{display:flex;align-items:center;justify-content:center;gap:9px;flex:1;min-width:0;min-height:48px;padding:9px;border:0;border-radius:8px;background:transparent;color:var(--ink-700,#345);font:inherit;font-weight:700;cursor:pointer}.learning-stages button span{display:grid;place-items:center;width:24px;height:24px;flex-shrink:0;border:1px solid currentColor;border-radius:50%;font-size:12px}.learning-stages button[aria-current]{background:#fff;color:#087f8c;box-shadow:0 1px 5px #102e4215}.learning-stages button:focus-visible,.learning-stage-content:focus-visible{outline:3px solid #138a90;outline-offset:3px}.learning-stage-content:focus{outline:none}.learning-stage-content [hidden]{display:none!important}.learning-next{margin-top:18px}.task-next-navigation{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}.js-quiz-delivered{color:#08765d;font-weight:750;display:flex;align-items:center;gap:8px}.app-shell.app-shell--preview-hidden{grid-template-columns:minmax(210px,18vw) minmax(0,1fr)}.app-shell.app-shell--preview-hidden.app-shell--sidebar-collapsed{grid-template-columns:minmax(0,1fr)}.app-shell--preview-hidden .main-region>.lesson-workspace,.app-shell--preview-hidden .learning-module{max-width:1000px;margin-inline:auto}.preview-toggle{margin-left:auto}.sidebar-generator{display:flex;gap:8px;align-items:center;text-decoration:none;color:#b9e9e3;border:1px solid #335369;border-radius:9px;padding:12px;margin-top:12px;font-size:13px;font-weight:700}.student-profile-tools{margin:0 0 16px;padding:0 10px}.student-profile-tools .student-identity{margin:6px 0 0;padding:0;border:0;background:transparent}.student-profile-tools .student-identity-heading{justify-content:flex-start}.student-profile-tools .student-identity-form{margin-bottom:12px}.sidebar-brand-copy>.student-identity-status{margin-top:6px;color:#a5c4d1;font-size:11px;font-weight:400}.mobile-brand .student-identity-status{margin:3px 0 0;font-size:10px;font-weight:400;line-height:1.2}.sidebar-profile-row{display:flex;align-items:center;gap:6px;margin-top:7px;min-width:0}.sidebar-profile-row .student-identity{margin:0;padding:0;border:0;background:transparent;min-width:0;flex:1}.sidebar-profile-row .student-identity-heading{gap:6px;align-items:center}.sidebar-profile-row .student-identity-copy{gap:2px}.sidebar-profile-row .student-identity-id{font-size:10px;line-height:1.2}.sidebar-profile-row .student-identity-name{font-size:11px;font-weight:500}.sidebar-profile-row .student-identity-edit{width:25px;height:25px;padding:4px;border:0}.sidebar-profile-row .student-identity-edit svg{width:16px;height:16px}.sidebar-brand .sidebar-profile-row span{margin-top:0}.connection-indicator{display:inline-flex!important;align-items:center;flex-shrink:0;margin:0!important;padding:3px}.connection-indicator .student-identity-dot{width:7px;height:7px;margin:0;background:#e66464}.connection-indicator .student-identity-dot[data-online=true]{background:#25b8a7}.sidebar-profile-row .student-identity-form{position:absolute;z-index:5;left:12px;right:12px;padding:12px;border:1px solid #335369;border-radius:9px;background:#102b40;box-shadow:0 8px 20px #0013}.sidebar-brand{align-items:flex-start}.sidebar-brand .brand-mark,.sidebar-settings-button{margin-top:2px}@media(max-width:1000px){.app-shell.app-shell--preview-hidden,.app-shell.app-shell--preview-hidden.app-shell--sidebar-collapsed{display:block}}@media(max-width:600px){.learning-stages{gap:3px}.learning-stages button{font-size:13px;gap:6px}.learning-stages button span{width:20px;height:20px}.preview-toggle{margin-left:0}.task-next-navigation{flex-wrap:wrap}}.step-trial{margin:10px 0 14px}.step-trial-panels{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin-bottom:10px}.step-trial-panel{min-width:0;margin:0;border:2px solid var(--line);border-radius:10px;background:var(--paper);overflow:hidden}.step-trial-panel figcaption{padding:6px 10px;border-bottom:1px solid var(--line);background:#173c52;color:#fff;font-size:12px;font-weight:700}.step-trial-panel.is-active{border-color:#2a9d8f;box-shadow:0 0 0 2px #2a9d8f33}.step-trial-panel.is-active figcaption{background:#2a9d8f}.step-trial-code{margin:0;padding:10px;background:#10263a;color:#eaf4f4;font:12.5px/1.55 var(--mono, ui-monospace, monospace);overflow-x:auto;white-space:pre-wrap;overflow-wrap:anywhere}.step-trial-result{margin:0;padding:12px 10px;background:#fff8ea;color:#173c52;font:600 14px/1.5 inherit}.step-trial-caption{margin:4px 0 10px;color:var(--ink-900);font-weight:600}.step-trial-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.step-trial-counter{color:var(--ink-700);font-size:13px}.lesson-workspace.lesson-workspace--pilot{container-type:inline-size;max-width:1240px}.pilot-task-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}.pilot-task-choice{display:flex;align-items:center;gap:10px;min-height:48px;padding:9px 12px;border:1px solid var(--line);border-radius:9px;background:var(--paper);color:var(--ink-900);font:inherit;font-weight:650;text-align:left;cursor:pointer}.pilot-task-choice>span:first-child{display:grid;flex:0 0 25px;height:25px;place-items:center;border-radius:6px;background:#e4eef2;color:#174a53}.pilot-task-choice[aria-current]{border-color:#006b70;background:#006b70;color:#fff}.pilot-learning{display:grid;gap:10px;margin-bottom:18px}.pilot-disclosure,.pilot-task{border:1px solid var(--line);border-radius:12px;background:var(--paper);box-shadow:var(--shadow-sm)}.pilot-disclosure>summary{display:flex;align-items:baseline;gap:12px;padding:14px 16px;cursor:pointer;list-style:none}.pilot-disclosure>summary::-webkit-details-marker{display:none}.pilot-disclosure>summary:after{content:"";flex:none;width:8px;height:8px;margin-left:auto;border:solid currentColor;border-width:0 2px 2px 0;transform:translateY(-3px) rotate(45deg)}.pilot-disclosure[open]>summary:after{transform:rotate(225deg)}.pilot-disclosure>summary>span{color:var(--ink-700)}.pilot-disclosure small{border-radius:12px;background:#eaf0f4;padding:3px 8px}.pilot-disclosure-body{border-top:1px solid var(--line);padding:14px 16px}.pilot-disclosure-body h2,.pilot-disclosure-body h3{margin:0}.pilot-disclosure-body p{margin:7px 0 12px}.pilot-theory-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);align-items:start;gap:16px}.pilot-theory-grid>*{min-width:0}.pilot-theory-grid .html-lesson-example,.pilot-theory-grid .page-diagram{margin:0}.pilot-theory-grid .page-diagram svg{max-height:230px}.pilot-return{display:block;margin:8px 0 0 auto;padding:5px;border:0;background:transparent;color:#00646c;font:inherit;font-weight:700;text-decoration:underline;cursor:pointer}.pilot-observation summary,.pilot-criteria summary{cursor:pointer}.pilot-task{padding:clamp(14px,2vw,24px)}.pilot-task-heading,.pilot-next{display:flex;align-items:center;justify-content:space-between;gap:8px}.pilot-next{justify-content:flex-end;margin-top:14px}.pilot-start-label{padding:5px 9px;border-radius:6px;background:#006b70;color:#fff;font-size:.85rem;font-weight:700}.pilot-task>h2{margin:8px 0;font-size:clamp(1.2rem,3vw,1.85rem);scroll-margin-top:18px}.pilot-prompt{margin:0 0 12px;line-height:1.5}.pilot-term{padding:.06em .28em;border-radius:4px;background:#eef1f7;color:#33466a;font:600 .92em var(--mono);overflow-wrap:anywhere}.pilot-term--docs{border:0;background:#e5f3f2;color:#00565e;text-decoration:underline;text-underline-offset:.15em;cursor:pointer}.pilot-term--docs:hover{background:#cce9e7}.pilot-term--docs:focus-visible{outline:2px solid #006b70;outline-offset:2px}.pilot-term--docs:focus-visible:not([data-summary-dismissed]):after{content:attr(data-summary);position:fixed;z-index:10;inset-inline:12px;bottom:16px;width:fit-content;max-width:calc(100vw - 24px);margin-inline:auto;padding:8px 12px;border-radius:6px;background:#17324a;color:#fff;font:500 .9rem/1.4 system-ui,sans-serif;pointer-events:none}.pilot-criteria{margin-bottom:16px;color:var(--ink-700)}.pilot-criteria li+li{margin-top:5px}.pilot-cheatsheet{margin-bottom:16px}.pilot-cheatsheet-alternatives>summary{margin-top:10px;cursor:pointer}.pilot-platform-trial>svg{display:block;width:min(100%,530px);margin-bottom:12px}.pilot-trial-play{display:inline-flex;align-items:center;gap:8px}.pilot-vector-board>svg{display:block;width:100%;border-radius:10px;background:#10263a;-webkit-user-select:none;user-select:none}.pilot-vector-presets{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.pilot-vector-actor{cursor:grab;touch-action:none;outline:none}.pilot-vector-actor[data-dragging]{cursor:grabbing}.pilot-vector-actor:is(:focus-visible,[data-dragging])>circle{stroke:#66e1cd;stroke-width:4px}.pilot-vector-actor text{pointer-events:none}.pilot-vector-label{fill:#f8dd90;stroke:#10263a;stroke-width:4px;paint-order:stroke;font:700 15px var(--mono);pointer-events:none}.pilot-vector-label--move{fill:#66e1cd}.pilot-vector-values{width:100%;margin:10px 0;border-collapse:collapse;text-align:left}.pilot-vector-values :is(th,td){padding:5px 9px;border-bottom:1px solid var(--line)}.pilot-vector-values thead{background:#ffdb74;color:#302000}.pilot-vector-values td{font-family:var(--mono);font-variant-numeric:tabular-nums}.pilot-coord-stage{position:relative}.pilot-coord-stage>svg{display:block;width:100%;border-radius:10px;background:#10263a;-webkit-user-select:none;user-select:none;touch-action:none}.pilot-coord-world{fill:#132e45}.pilot-coord-grid line{stroke:#fff;stroke-opacity:.09}.pilot-coord-axis{stroke-width:3px}.pilot-coord-axis--x{stroke:#ff7b7b}.pilot-coord-axis--y{stroke:#74b7ff}.pilot-coord-arrow--x{fill:#ff7b7b}.pilot-coord-tick{fill:#c9d6e2;font:12px var(--mono)}.pilot-coord-name{font:700 15px var(--mono)}.pilot-coord-name--x{fill:#ff9a9a}.pilot-coord-name--y{fill:#9ccbff}.pilot-coord-projection line{stroke:#f8dd90;stroke-dasharray:5 5;stroke-width:1.5px}.pilot-coord-value{stroke:#10263a;stroke-width:4px;paint-order:stroke;font:700 14px var(--mono)}.pilot-coord-value--x{fill:#ff9a9a}.pilot-coord-value--y{fill:#9ccbff}.pilot-coord-ghost circle{fill:#ffd166}.pilot-coord-ghost text{fill:#fff;font-size:13px}.pilot-coord-player{cursor:grab;outline:none}.pilot-coord-player[data-dragging]{cursor:grabbing}.pilot-coord-halo{fill:#173f55;fill-opacity:.7;stroke:#83a5b8;stroke-width:2px}.pilot-coord-player:is(:focus-visible,[data-dragging])>.pilot-coord-halo{stroke:#66e1cd;stroke-width:4px}.pilot-coord-dot{fill:#f8dd90}.pilot-coord-label{fill:#f8dd90;stroke:#10263a;stroke-width:4px;paint-order:stroke;font:700 15px var(--mono);pointer-events:none}.pilot-coord-hint{position:absolute;transform:translate(-50%);display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;background:#ffdb74;color:#302000;font-size:.85rem;font-weight:700;white-space:nowrap;pointer-events:none;box-shadow:0 2px 8px #0006;animation:pilot-coord-bounce 1.4s ease-in-out infinite}.pilot-coord-hint>svg{flex-shrink:0}@keyframes pilot-coord-bounce{0%,to{transform:translate(-50%)}50%{transform:translate(-50%,-5px)}}.pilot-coord-readout{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:10px 0}.pilot-coord-readout>code{font-family:var(--mono);font-variant-numeric:tabular-nums;padding:3px 8px;border-radius:6px;background:#10263a;color:#f8dd90}.pilot-coord-readout>p{flex-basis:100%;margin:0}.pilot-coord-code{flex-basis:100%;margin:0;padding:8px 10px;border-radius:8px;background:#10263a;color:#66e1cd;font-family:var(--mono);white-space:pre-wrap}.pilot-coord-status{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}@media(prefers-reduced-motion:reduce){.pilot-coord-hint{animation:none}}.pilot-prediction-code{max-width:530px}.pilot-trial-moving{transition:transform .35s ease-out}@media(prefers-reduced-motion:reduce){.pilot-trial-moving{transition:none}}.pilot-workbench{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);align-items:start;gap:14px}.pilot-workbench>*{min-width:0;margin-top:0}.pilot-workbench .preview-card{margin-top:0;position:static}.pilot-workbench .preview-frame{min-height:320px}@container (max-width: 720px){.pilot-workbench,.pilot-theory-grid{grid-template-columns:minmax(0,1fr)}.pilot-task-choice{align-items:flex-start}}@container (max-width: 490px){.pilot-task-picker{grid-template-columns:minmax(0,1fr)}.pilot-task-choice{align-items:center;min-height:42px}.pilot-disclosure>summary{gap:7px;flex-wrap:wrap}.pilot-disclosure>summary>span{order:1;width:100%}}.inline-code{font-family:Fira Code,ui-monospace,Cascadia Code,Consolas,monospace;font-size:.88em;background:#5a46a017;border:1px solid rgba(90,70,160,.16);border-radius:5px;padding:0 4px;white-space:normal;overflow-wrap:anywhere}.pilot-quiz{margin:14px 0 0;padding:12px 14px;border:1px solid var(--border, #d9d2ef);border-radius:12px;background:var(--surface-soft, #faf9fd)}.pilot-quiz legend{font-weight:600;padding:0 6px}.pilot-quiz-options{display:grid;gap:6px;margin:4px 0 10px}.pilot-quiz-option{display:flex;gap:8px;align-items:baseline;padding:7px 10px;border:1px solid transparent;border-radius:9px;cursor:pointer}.pilot-quiz-option:hover{background:#5a46a00f}.pilot-quiz-option.is-correct{border-color:#2f9e5f;background:#e7f6ed}.pilot-quiz-option.is-wrong{border-color:#c0392b;background:#fdecea}.pilot-quiz-check{font:inherit;padding:6px 14px;border-radius:8px;border:1px solid var(--accent, #5a46a0);background:var(--accent, #5a46a0);color:#fff;cursor:pointer}.pilot-quiz-check:disabled{opacity:.5;cursor:default}.pilot-quiz-verdict{margin:8px 0 0;font-weight:600;min-height:1.2em}.pilot-quiz-hint{margin:4px 0 0;font-size:.9em;color:var(--muted, #5d5a6e)}.pilot-ct{display:grid;grid-template-columns:1fr 220px;gap:12px;align-items:start}.pilot-ct-code{margin:0;padding:10px 12px;border-radius:8px;background:#10263a}.pilot-ct-code-line{margin:3px 0;font:13px/1.5 var(--mono);color:#e8eef4;white-space:pre-wrap}.pilot-ct-code-line--off{opacity:.45;text-decoration:line-through}.pilot-ct-off-marker{color:#ff9a9a;text-decoration:none}.pilot-ct-stage{position:relative}.pilot-ct-stage>svg{display:block;width:100%;border-radius:10px;-webkit-user-select:none;user-select:none}.pilot-ct-world{fill:#132e45}.pilot-ct-marker line{stroke:#f8dd90;stroke-width:1.5px;stroke-dasharray:4 3}.pilot-ct-marker text{fill:#f8dd90;stroke:#10263a;stroke-width:3px;paint-order:stroke;font:700 12px var(--mono)}.pilot-ct-shape{stroke:#0e1d2b;stroke-width:1.5px}.pilot-ct-collider{fill:none;stroke:#ffa94d;stroke-width:2px;stroke-dasharray:5 4}.pilot-ct-hint{position:absolute;left:50%;bottom:8px;transform:translate(-50%);display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;background:#ffdb74;color:#302000;font-size:.85rem;font-weight:700;white-space:nowrap;pointer-events:none;box-shadow:0 2px 8px #0006;animation:pilot-ct-bounce 1.4s ease-in-out infinite}.pilot-ct-hint>svg{flex-shrink:0}@keyframes pilot-ct-bounce{0%,to{transform:translate(-50%)}50%{transform:translate(-50%,-5px)}}.pilot-ct-switches{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:8px 16px}.pilot-ct-switch{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border:1px solid #33506b;border-radius:999px;background:#132e45;color:#e8eef4;font-size:.9rem;cursor:pointer}.pilot-ct-switch>svg{flex-shrink:0}.pilot-ct-switch:focus-visible{outline:2px solid #66e1cd;outline-offset:2px}.pilot-ct-track{display:inline-flex;width:34px;height:18px;border-radius:999px;background:#33506b;padding:2px;transition:background .15s}.pilot-ct-thumb{width:14px;height:14px;border-radius:50%;background:#c9d6e2;transition:transform .15s}.pilot-ct-switch[aria-checked=true] .pilot-ct-track{background:#2e7d5b}.pilot-ct-switch[aria-checked=true] .pilot-ct-thumb{transform:translate(16px);background:#d9ffe9}.pilot-ct-status{grid-column:1 / -1;margin:0;font-size:.9rem;color:inherit}@media(prefers-reduced-motion:reduce){.pilot-ct-hint{animation:none}}@media(max-width:560px){.pilot-ct{grid-template-columns:1fr}}.pilot-key-board{outline:none}.pilot-key-board:focus-visible .pilot-key-cap{box-shadow:0 0 0 3px #66e1cd8c}.pilot-key-help{margin:0 0 8px;font-size:.9rem;color:var(--ink-700, #5d5a6e)}.pilot-key-stage{position:relative}.pilot-key-stage>svg{display:block;width:100%;border-radius:10px;background:#10263a;-webkit-user-select:none;user-select:none}.pilot-key-world{fill:#132e45}.pilot-key-lane{stroke:#fff;stroke-opacity:.12;stroke-dasharray:6 6}.pilot-key-dir{stroke:#66e1cd;stroke-width:3px}.pilot-key-dir-head{fill:#66e1cd}.pilot-key-caption{fill:#c9d6e2;font:11px var(--mono)}.pilot-key-label{fill:#f8dd90;stroke:#10263a;stroke-width:4px;paint-order:stroke;font:700 14px var(--mono)}.pilot-key-shot{animation:pilot-key-shot-fly .48s ease-out forwards}@keyframes pilot-key-shot-fly{0%{transform:translate(0);opacity:1}75%{opacity:1}to{transform:translate(330px);opacity:0}}.pilot-key-hint{position:absolute;left:50%;top:10px;transform:translate(-50%);display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;background:#ffdb74;color:#302000;font-size:.85rem;font-weight:700;white-space:nowrap;pointer-events:none;box-shadow:0 2px 8px #0006;animation:pilot-key-bounce 1.4s ease-in-out infinite}.pilot-key-hint>svg{flex-shrink:0}@keyframes pilot-key-bounce{0%,to{transform:translate(-50%)}50%{transform:translate(-50%,-5px)}}.pilot-key-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:12px 0 6px}.pilot-key-cap{display:inline-flex;align-items:center;gap:10px;padding:12px 26px;border:1px solid #33506b;border-bottom-width:4px;border-radius:12px;background:#173f55;color:#e8eef4;font:700 1.05rem var(--mono);cursor:pointer;transition:transform .12s,border-bottom-width .12s,background .12s}.pilot-key-cap>svg{flex-shrink:0}.pilot-key-cap[data-down]{transform:translateY(3px) scale(.98);border-bottom-width:1px;background:#1d4d68}.pilot-key-cap:focus-visible{outline:2px solid #66e1cd;outline-offset:2px}.pilot-key-hold{display:inline-flex;align-items:center;padding:8px 14px;border:1px solid #33506b;border-radius:999px;background:#132e45;color:#e8eef4;font:inherit;font-size:.9rem;cursor:pointer}.pilot-key-hold:focus-visible{outline:2px solid #66e1cd;outline-offset:2px}.pilot-key-hold[aria-checked=true]{background:#2e7d5b;border-color:#2e7d5b;color:#eafff3}.pilot-key-ticks{font:600 .9rem var(--mono);color:var(--ink-700, #5d5a6e)}.pilot-key-count{margin-left:auto;padding:4px 10px;border-radius:6px;background:#10263a;color:#f8dd90;font:700 .95rem var(--mono)}.pilot-key-code{margin:4px 0 0;padding:8px 10px;border-radius:8px;background:#10263a;color:#66e1cd;font-family:var(--mono);white-space:pre-wrap}.pilot-key-status{margin:8px 0 0;min-height:1.3em;font-size:.92rem}@media(prefers-reduced-motion:reduce){.pilot-key-hint{animation:none}.pilot-key-cap{transition:none}.pilot-key-shot{animation-name:pilot-key-shot-fade;transform:translate(330px)}}@keyframes pilot-key-shot-fade{0%{opacity:0}35%{opacity:1}to{opacity:0}}.pilot-lb{display:grid;gap:10px}.pilot-lb-stage{position:relative;padding:16px 10px 10px;border:1px solid #cfdce8;border-radius:10px;background:#eaf2f8}.pilot-lb-tag{position:absolute;top:-9px;left:10px;padding:1px 8px;border-radius:6px;background:#10263a;color:#f8dd90;font:700 .75rem var(--mono)}.pilot-lb-container{min-height:96px;padding:8px;margin:0 auto;border:2px dashed #8aa9c0;border-radius:8px;background:#e0edf5;transition:width .25s ease}.pilot-lb-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;padding:10px 8px;border:1px solid #789;border-radius:6px;background:#fff;color:#233748;font:700 .82rem/1.25 var(--mono);text-align:center;transition:flex-basis .25s ease,outline-color .15s ease}.pilot-lb-item--grid{min-height:46px}.pilot-lb-item--pick{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.pilot-lb-item--pick:hover{border-color:#006b70}.pilot-lb-item--pick[aria-checked=true]{outline:3px solid #006b70;outline-offset:1px}.pilot-lb-item--pick:focus-visible{outline:3px solid #006b70;outline-offset:1px}.pilot-lb-item-label{max-width:100%;overflow:hidden;text-overflow:ellipsis}.pilot-lb-item{position:relative}.pilot-lb-badges{position:absolute;left:4px;right:4px;bottom:3px;display:flex;flex-wrap:wrap;justify-content:center;gap:3px;pointer-events:none}.pilot-lb-badge{padding:1px 4px;border:1px solid #b9cddb;border-radius:4px;background:#eef4fa;font:600 .62rem var(--mono)}.pilot-lb-controls{display:grid;gap:8px}.pilot-lb-group{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}.pilot-lb-name{flex:0 0 auto;min-width:148px;color:#33465a;font:700 .8rem var(--mono)}.pilot-lb-options{display:flex;flex-wrap:wrap;gap:4px}.pilot-lb-option{padding:5px 10px;border:1px solid #9db4c6;border-radius:7px;background:#fff;color:#233748;font:600 .8rem var(--mono);cursor:pointer}.pilot-lb-option:hover{border-color:#006b70}.pilot-lb-option[aria-checked=true]{border-color:#006b70;background:#006b70;color:#fff}.pilot-lb-option:focus-visible{outline:2px solid #006b70;outline-offset:2px}.pilot-lb-slider input[type=range]{flex:1 1 110px;min-width:90px;accent-color:#006b70}.pilot-lb-value{min-width:46px;color:#33465a;font:700 .8rem var(--mono);text-align:right}.pilot-lb-custom input{flex:1 1 150px;min-width:120px;padding:6px 9px;border:1px solid #9db4c6;border-radius:7px;font:600 .8rem var(--mono)}.pilot-lb-custom input[aria-invalid=true]{border-color:#c0392b;background:#fdecea}.pilot-lb-code{margin:0;padding:10px 12px;border-radius:8px;background:#10263a;color:#66e1cd;font:13px/1.55 var(--mono);white-space:pre-wrap}.pilot-lb-status{margin:0;min-height:1.3em;font-size:.9rem}.pilot-lb-hint{position:absolute;top:-13px;right:12px;display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;background:#ffdb74;color:#302000;font-size:.85rem;font-weight:700;white-space:nowrap;pointer-events:none;box-shadow:0 2px 8px #0000002e;animation:pilot-lb-bounce 1.4s ease-in-out infinite}.pilot-lb-hint>svg{flex-shrink:0}@keyframes pilot-lb-bounce{0%,to{transform:translateY(0)}50%{transform:translateY(-4px)}}.pilot-lb-mirror{height:0;min-height:0;padding-block:0;border-width:0;overflow:hidden;visibility:hidden;pointer-events:none}.pilot-lb-meter-wrap{margin:8px auto 0}.pilot-lb-meter{display:flex;align-items:stretch;gap:2px;height:24px}.pilot-lb-meter-item{position:relative;display:flex;align-items:center;min-width:0;border-radius:4px;background:#d7e4ee}.pilot-lb-meter-basis{position:absolute;inset:0 auto 0 0;border-radius:4px 0 0 4px;background:#2e8b8b}.pilot-lb-meter-grow{position:absolute;top:0;bottom:0;background:repeating-linear-gradient(45deg,#006b7073 0,#006b7073 4px,#006b7033 4px,#006b7033 8px)}.pilot-lb-meter-free{position:relative;display:flex;align-items:center;min-width:0;border:1px dashed #8aa9c0;border-radius:4px;background:repeating-linear-gradient(45deg,#eef3f7 0,#eef3f7 4px,#dfe9f0 4px,#dfe9f0 8px)}.pilot-lb-meter-gap{flex:0 0 auto;background:#c8d6e0}.pilot-lb-meter-label{position:relative;padding:0 6px;font:700 .68rem/1 var(--mono);font-style:normal;color:#16323f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pilot-lb-meter-legend{display:flex;flex-wrap:wrap;gap:4px 14px;margin:4px 0 0;font-size:.75rem;color:#33465a}.pilot-lb-sw{display:inline-block;width:12px;height:12px;margin-right:5px;vertical-align:-2px;border-radius:3px}.pilot-lb-sw--basis{background:#2e8b8b}.pilot-lb-sw--grow{background:repeating-linear-gradient(45deg,#006b7080 0,#006b7080 3px,#006b7038 3px,#006b7038 6px)}.pilot-lb-sw--free{background:repeating-linear-gradient(45deg,#eef3f7 0,#eef3f7 3px,#dfe9f0 3px,#dfe9f0 6px);border:1px dashed #8aa9c0}@media(prefers-reduced-motion:reduce){.pilot-lb-hint{animation:none}.pilot-lb-container,.pilot-lb-item{transition:none}}@media(max-width:560px){.pilot-lb-name{flex-basis:100%;min-width:0}}.pilot-canvas-board{margin:14px 0;padding:14px 16px 12px;border:1px solid #2b4160;border-radius:12px;background:#101c2e;color:#e8eef4}.pilot-canvas-help{margin:0 0 8px;font-size:.9rem;color:#b9c6d8}.pilot-canvas-stage{position:relative}.pilot-canvas-stage svg{display:block;width:100%;max-width:420px;margin:0 auto}.pilot-canvas-world{fill:#0a1524;stroke:#2b4160}.pilot-canvas-track{fill:#1c2c44;stroke:#33506b}.pilot-canvas-fill{fill:#76b9f2;transition:x .15s,y .15s,width .15s,height .15s}.pilot-canvas-fill-green{fill:#70c994;transition:width .15s}.pilot-canvas-text{fill:#fff;font:700 15px var(--mono)}.pilot-canvas-guide{stroke:#33506b;stroke-dasharray:3 4}.pilot-canvas-pin{stroke:#f8dd90;stroke-width:2}.pilot-canvas-pin-label{fill:#f8dd90;font:600 9.5px var(--mono)}.pilot-canvas-measure{stroke:#66e1cd;stroke-width:1.4}.pilot-canvas-measure-label{fill:#66e1cd;font:600 9.5px var(--mono)}.pilot-canvas-center{fill:#f8dd90}.pilot-canvas-center-dot{fill:none}.pilot-canvas-center-label{fill:#b9c6d8;font:600 9.5px var(--mono)}.pilot-canvas-hint{position:absolute;left:50%;bottom:8px;transform:translate(-50%);display:flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;background:#173f55;border:1px solid #33506b;color:#e8eef4;font-weight:700;font-size:.9rem;animation:pilot-canvas-bounce 1.6s ease-in-out infinite;pointer-events:none}.pilot-canvas-hint>svg{flex-shrink:0}@keyframes pilot-canvas-bounce{0%,to{transform:translate(-50%)}50%{transform:translate(-50%,-5px)}}.pilot-canvas-controls{display:flex;flex-wrap:wrap;gap:8px 16px;margin:12px 0 8px}.pilot-canvas-slider{display:flex;flex-direction:column;gap:2px;min-width:110px;flex:1 1 110px}.pilot-canvas-slider-label{font-size:.82rem;color:#b9c6d8}.pilot-canvas-slider input[type=range]{width:100%;accent-color:#66e1cd}.pilot-canvas-toggle{display:inline-flex;align-items:center;gap:8px;font-size:.88rem;color:#e8eef4;cursor:pointer}.pilot-canvas-toggle input{accent-color:#66e1cd}.pilot-canvas-formula{align-self:center;font:600 .9rem var(--mono);color:#b9c6d8}.pilot-canvas-formula strong{color:#66e1cd}.pilot-canvas-code{margin:4px 0 0;padding:8px 10px;border-radius:8px;background:#10263a;color:#66e1cd;font-family:var(--mono);font-size:.9rem;white-space:pre-wrap}.pilot-canvas-status{margin:8px 0 0;min-height:1.3em;font-size:.92rem}@media(prefers-reduced-motion:reduce){.pilot-canvas-hint{animation:none}.pilot-canvas-fill{transition:none}}.pilot-lifecycle-board{margin-top:12px;border:1px solid var(--line, #d9d5cc);border-radius:12px;padding:12px 14px;background:var(--panel, #fbfaf7)}.pilot-lifecycle-help{margin:0 0 8px;font-size:13px;color:var(--muted, #5a5648)}.pilot-lifecycle-stage{position:relative}.pilot-lifecycle-stage svg{display:block;width:100%;max-width:420px}.pilot-lifecycle-world{fill:var(--code-bg, #f2f0ea);stroke:var(--line, #d9d5cc)}.pilot-lifecycle-object{fill:#e3efff;stroke:#76b9f2;stroke-width:1.6}.pilot-lifecycle-name{font-size:12px;font-weight:700;fill:#2c5282}.pilot-lifecycle-ticks{font-size:11px;fill:#2c5282;font-family:var(--mono, monospace)}.pilot-lifecycle-ghost{fill:none;stroke:var(--line, #d9d5cc);stroke-dasharray:5 4}.pilot-lifecycle-ghost-label{font-size:11px;fill:var(--muted, #8a8676);font-style:italic}.pilot-lifecycle-track{fill:var(--line, #d9d5cc)}.pilot-lifecycle-fill{fill:#70c994}.pilot-lifecycle-axis{stroke:var(--muted, #8a8676);stroke-width:1}.pilot-lifecycle-mark{stroke:#76b9f2;stroke-width:1.6}.pilot-lifecycle-axis-label{font-size:10px;fill:var(--muted, #8a8676)}.pilot-lifecycle-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:8px}.pilot-lifecycle-btn{padding:6px 14px;border-radius:8px;border:1px solid #76b9f2;background:#e3efff;color:#2c5282;font-weight:600;cursor:pointer}.pilot-lifecycle-btn:hover{background:#d0e4fd}.pilot-lifecycle-fps{display:inline-flex;align-items:center;gap:2px}.pilot-lifecycle-fps-btn{padding:4px 10px;border:1px solid var(--line, #d9d5cc);background:#fff;cursor:pointer;font-family:var(--mono, monospace)}.pilot-lifecycle-fps-btn:first-of-type{border-radius:8px 0 0 8px}.pilot-lifecycle-fps-btn.is-active{background:#2c5282;color:#fff;border-color:#2c5282}.pilot-lifecycle-fps-unit{font-size:12px;color:var(--muted, #8a8676);margin-left:4px}.pilot-lifecycle-log{margin:8px 0 0;padding:8px 10px;list-style:none;background:var(--code-bg, #f2f0ea);border-radius:8px;font-family:var(--mono, monospace);font-size:12px;min-height:32px;max-height:132px;overflow:auto}.pilot-lifecycle-log li{padding:1px 0;color:#4a5568}.pilot-lifecycle-log li:last-child{color:#1a202c;font-weight:600}.pilot-lifecycle-log-t{color:#76b9f2;margin-right:8px}.pilot-lifecycle-log-empty{font-style:italic;color:var(--muted, #8a8676);font-weight:400!important}.pilot-lifecycle-status{margin:8px 0 0;font-size:13px;color:#2d3748}.pilot-lifecycle-hint{position:absolute;right:12px;bottom:8px;display:flex;align-items:center;gap:6px;background:#2c5282;color:#fff;padding:6px 12px;border-radius:999px;font-size:12px;pointer-events:none;animation:pilot-hint-bounce 1.6s ease-in-out infinite}.pilot-sprint-board{margin-top:12px;border:1px solid var(--line, #d9d5cc);border-radius:12px;padding:12px 14px;background:var(--panel, #fbfaf7);outline:none}.pilot-sprint-board:focus-visible{border-color:#76b9f2;box-shadow:0 0 0 3px #76b9f240}.pilot-sprint-help{margin:0 0 8px;font-size:13px;color:var(--muted, #5a5648)}.pilot-sprint-stage{position:relative}.pilot-sprint-stage svg{display:block;width:100%;max-width:420px}.pilot-sprint-world{fill:var(--code-bg, #f2f0ea);stroke:var(--line, #d9d5cc)}.pilot-sprint-track{stroke:var(--line, #d9d5cc);stroke-width:2}.pilot-sprint-tick{stroke:var(--muted, #8a8676);stroke-width:1}.pilot-sprint-tick-label{font-size:9px;fill:var(--muted, #8a8676)}.pilot-sprint-ghost rect{fill:none;stroke:#a0aec0;stroke-width:1.5;stroke-dasharray:3 2}.pilot-sprint-ghost-label{font-size:9px;fill:#a0aec0}.pilot-sprint-player rect{fill:#e3efff;stroke:#76b9f2;stroke-width:1.6}.pilot-sprint-player.is-sprinting rect{fill:#c6f6d5;stroke:#48bb78}.pilot-sprint-player-label{font-size:9px;fill:#2c5282}.pilot-sprint-controls{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:8px}.pilot-sprint-keycap{padding:6px 16px;border-radius:8px;border:2px solid #4a5568;border-bottom-width:4px;background:#edf2f7;font-family:var(--mono, monospace);font-weight:700;cursor:pointer}.pilot-sprint-keycap.is-down{border-bottom-width:2px;transform:translateY(2px);background:#c6f6d5;border-color:#48bb78}.pilot-sprint-speed{font-size:13px;font-family:var(--mono, monospace)}.pilot-sprint-gap{font-size:12px;color:var(--muted, #8a8676)}.pilot-sprint-code{margin:8px 0 0;padding:8px 10px;background:var(--code-bg, #f2f0ea);border-radius:8px;font-size:12px;overflow-x:auto}.pilot-sprint-status{margin:8px 0 0;font-size:13px;color:#2d3748}.pilot-sprint-hint{position:absolute;right:12px;bottom:8px;display:flex;align-items:center;gap:6px;background:#2c5282;color:#fff;padding:6px 12px;border-radius:999px;font-size:12px;pointer-events:none;animation:pilot-hint-bounce 1.6s ease-in-out infinite}.pilot-lifecycle-wall{fill:var(--line-strong, #c9c5b8)}.pilot-lifecycle-spark{fill:#f6e05e;stroke:#d69e2e;stroke-width:1.6}.pilot-lifecycle-spark.is-hit{fill:#fc8181;stroke:#e53e3e}.pilot-lifecycle-live{margin:6px 0 0;font-family:var(--mono, monospace);font-size:12px;color:#2c5282}@media(prefers-reduced-motion:reduce){.pilot-lifecycle-hint,.pilot-sprint-hint{animation:none}}.pilot-race-board{margin-top:12px;border:1px solid var(--line, #d9d5cc);border-radius:12px;padding:12px 14px;background:var(--panel, #fbfaf7)}.pilot-race-help{margin:0 0 8px;font-size:13px;color:var(--muted, #5a5648)}.pilot-race-stage{position:relative}.pilot-race-stage svg{display:block;width:100%;max-width:420px}.pilot-race-world{fill:var(--code-bg, #f2f0ea);stroke:var(--line, #d9d5cc)}.pilot-race-start{fill:#4a5568}.pilot-race-path-raw{stroke:#e53e3e;stroke-width:1.4;stroke-dasharray:4 3}.pilot-race-path-norm{stroke:#48bb78;stroke-width:1.4;stroke-dasharray:4 3}.pilot-race-dot-raw{fill:#feb2b2;stroke:#e53e3e;stroke-width:1.6}.pilot-race-dot-norm{fill:#c6f6d5;stroke:#48bb78;stroke-width:1.6}.pilot-race-label-raw{font-size:10px;font-weight:700;fill:#c53030}.pilot-race-label-norm{font-size:10px;font-weight:700;fill:#2f855a}.pilot-race-scale{font-size:9px;fill:var(--muted, #8a8676);font-style:italic}.pilot-race-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:8px}.pilot-race-vectors{display:inline-flex;gap:2px}.pilot-race-vector{padding:4px 9px;border:1px solid var(--line, #d9d5cc);background:#fff;cursor:pointer;font-family:var(--mono, monospace);font-size:12px}.pilot-race-vector:first-of-type{border-radius:8px 0 0 8px}.pilot-race-vector:last-of-type{border-radius:0 8px 8px 0}.pilot-race-vector.is-active{background:#2c5282;color:#fff;border-color:#2c5282}.pilot-race-play{padding:6px 14px;border-radius:8px;border:1px solid #48bb78;background:#c6f6d5;color:#2f855a;font-weight:600;cursor:pointer}.pilot-race-play:disabled{opacity:.5;cursor:default}.pilot-race-code{margin:8px 0 0;padding:8px 10px;background:var(--code-bg, #f2f0ea);border-radius:8px;font-size:12px;overflow-x:auto}.pilot-race-status{margin:8px 0 0;font-size:13px;color:#2d3748}.pilot-race-hint{position:absolute;right:12px;bottom:8px;display:flex;align-items:center;gap:6px;background:#2c5282;color:#fff;padding:6px 12px;border-radius:999px;font-size:12px;pointer-events:none;animation:pilot-hint-bounce 1.6s ease-in-out infinite}@media(prefers-reduced-motion:reduce){.pilot-race-hint{animation:none}}.pilot-events-board{margin:12px 0;padding:10px 12px;border:1px solid var(--line, #d9d4c3);border-radius:12px;background:#f8f6ee}.pilot-events-help{margin:0 0 8px;font-size:13px;color:#4a5568}.pilot-events-stage{position:relative}.pilot-events-stage svg{display:block;width:100%;height:auto}.pilot-events-world{fill:#10263a}.pilot-events-player rect{fill:#76b9f2;transition:opacity .2s}.pilot-events-player.is-off rect{opacity:.25}.pilot-events-player.is-off .pilot-events-name{opacity:.5}.pilot-events-eye{fill:#10263a}.pilot-events-name{fill:#e8f4ff;font-size:10px}.pilot-events-hp-track{fill:#334155}.pilot-events-hp-fill{fill:#4ade80;transition:width .2s}.pilot-events-hp-label{fill:#4ade80;font-size:9px;font-weight:700}.pilot-events-float{fill:#f87171;font-size:12px;font-weight:800}.pilot-events-bullet{fill:#fbbf24}.pilot-events-bullet-label{fill:#fde68a;font-size:8px}.pilot-events-axis{stroke:#476a8f;stroke-width:1}.pilot-events-tick{stroke:#60a5fa;stroke-width:1.4}.pilot-events-axis-label{fill:#8fb3d9;font-size:8.5px}.pilot-events-hint{position:absolute;right:12px;bottom:8px;display:flex;align-items:center;gap:6px;background:#2c5282;color:#fff;padding:6px 12px;border-radius:999px;font-size:12px;pointer-events:none;animation:pilot-hint-bounce 1.6s ease-in-out infinite}.pilot-events-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:8px}.pilot-events-btn{padding:6px 14px;border:1px solid #d97706;border-radius:8px;background:#fbbf24;color:#78350f;font-weight:700;font-size:13px;cursor:pointer}.pilot-events-btn:hover{background:#f59e0b}.pilot-events-switch{padding:6px 14px;border:1px solid #cbd5e0;border-radius:999px;background:#e2e8f0;color:#475569;font-weight:700;font-size:12px;cursor:pointer}.pilot-events-switch.is-on{background:#4ade80;border-color:#16a34a;color:#14532d}.pilot-events-fps{display:inline-flex;align-items:center;gap:2px}.pilot-events-fps-btn{padding:4px 8px;border:1px solid #cbd5e0;background:#fff;font-size:12px;cursor:pointer}.pilot-events-fps-btn:first-child{border-radius:6px 0 0 6px}.pilot-events-fps-btn.is-active{background:#76b9f2;border-color:#3182ce;color:#10263a;font-weight:700}.pilot-events-fps-unit{font-size:11px;color:#64748b;margin-left:4px}.pilot-events-live{margin:6px 0 0;font-family:ui-monospace,monospace;font-size:12px;color:#1a202c}.pilot-events-log{margin:6px 0 0;padding:0;list-style:none;font-size:12px;color:#4a5568}.pilot-events-log li{display:flex;align-items:center;gap:6px;opacity:.75}.pilot-events-log li:first-child{color:#1a202c;font-weight:600;opacity:1}.pilot-events-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.pilot-events-log-t{color:#76b9f2;margin-right:4px;min-width:56px}.pilot-events-log-empty{font-style:italic;color:var(--muted, #8a8676)}.pilot-events-status{margin:8px 0 0;font-size:13px;color:#2d3748}.pilot-events-code{margin:8px 0 0;padding:8px 10px;background:#10263a;color:#d7ecff;border-radius:8px;font-size:12px;overflow-x:auto}@media(prefers-reduced-motion:reduce){.pilot-events-hint{animation:none}.pilot-events-player rect,.pilot-events-hp-fill{transition:none}}.pilot-cb{display:grid;gap:10px}.pilot-cb-stage{position:relative}.pilot-cb-stage>svg{display:block;width:100%;border-radius:10px;-webkit-user-select:none;user-select:none;touch-action:none;cursor:grab}.pilot-cb-stage>svg:focus-visible{outline:2px solid #66e1cd;outline-offset:2px}.pilot-cb-stage>svg:active{cursor:grabbing}.pilot-cb-world{fill:#132e45}.pilot-cb-ground{stroke:#3f6d8f;stroke-width:2px;stroke-dasharray:8 5}.pilot-cb-label{fill:#9fc6e8;stroke:#10263a;stroke-width:3px;paint-order:stroke;font:11px var(--mono)}.pilot-cb-view--shake{animation:pilot-cb-shake .12s linear infinite}@keyframes pilot-cb-shake{0%{transform:translate(0)}25%{transform:translate(3px,-2px)}50%{transform:translate(-3px,2px)}75%{transform:translate(2px,2px)}to{transform:translate(0)}}.pilot-cb-frame{fill:#66e1cd14;stroke:#66e1cd;stroke-width:2px}.pilot-cb-marker line{stroke:#f8dd90;stroke-width:1.6px}.pilot-cb-hint{position:absolute;left:50%;bottom:8px;transform:translate(-50%);display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;background:#ffdb74;color:#302000;font-size:.85rem;font-weight:700;white-space:nowrap;pointer-events:none;box-shadow:0 2px 8px #0006;animation:pilot-cb-bounce 1.4s ease-in-out infinite}.pilot-cb-hint>svg{flex-shrink:0}@keyframes pilot-cb-bounce{0%,to{transform:translate(-50%)}50%{transform:translate(-50%,-5px)}}.pilot-cb-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}.pilot-cb-switch{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border:1px solid #33506b;border-radius:999px;background:#132e45;color:#e8eef4;font-size:.9rem;cursor:pointer}.pilot-cb-switch:focus-visible{outline:2px solid #66e1cd;outline-offset:2px}.pilot-cb-track{display:inline-flex;width:34px;height:18px;border-radius:999px;background:#33506b;padding:2px;transition:background .15s}.pilot-cb-thumb{width:14px;height:14px;border-radius:50%;background:#e8eef4;transition:transform .15s}.pilot-cb-switch[aria-checked=true] .pilot-cb-track{background:#3b9c8c}.pilot-cb-switch[aria-checked=true] .pilot-cb-thumb{transform:translate(16px)}.pilot-cb-slider{display:inline-flex;align-items:center;gap:8px;color:#2d3748;font-size:.9rem}.pilot-cb-slider input[type=range]{accent-color:#3b9c8c}.pilot-cb-slider input[type=range]:focus-visible{outline:2px solid #66e1cd;outline-offset:2px}.pilot-cb-shake{padding:6px 14px;border:1px solid #33506b;border-radius:999px;background:#132e45;color:#e8eef4;font-size:.9rem;cursor:pointer}.pilot-cb-shake:hover{background:#1d3d5c}.pilot-cb-shake:focus-visible{outline:2px solid #66e1cd;outline-offset:2px}.pilot-cb-code{margin:0;padding:10px 12px;border-radius:8px;background:#10263a}.pilot-cb-code-line{margin:3px 0;font:13px/1.5 var(--mono);color:#e8eef4;white-space:pre-wrap}.pilot-cb-status{margin:0;font-size:.95rem;color:#2d3748}@media(prefers-reduced-motion:reduce){.pilot-cb-hint,.pilot-cb-view--shake{animation:none}}.php-mysql-shell{margin-top:16px;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:var(--paper)}.php-mysql-shell summary{cursor:pointer;font-weight:700}.php-mysql-shell form{display:grid;gap:8px;justify-items:start}.php-mysql-shell textarea{box-sizing:border-box;width:100%;resize:vertical;padding:8px;border:1px solid var(--line);border-radius:6px;color:var(--ink-900);font:14px/1.5 var(--mono)}.php-mysql-shell [role=status]:empty{margin:0}.php-mysql-shell [role=alert]{color:#9c2525}.php-mysql-results{overflow-x:auto}.php-mysql-results table{border-collapse:collapse}.php-mysql-results :is(th,td){padding:6px 10px;border:1px solid var(--line);text-align:left;white-space:nowrap}.student-identity{margin:0 12px 14px;padding:12px;border:1px solid color-mix(in srgb,currentColor 18%,transparent);border-radius:10px;color:inherit;background:#ffffff0a;font-size:12px;min-width:0;flex-shrink:0}.student-identity-heading{display:flex;align-items:center;gap:10px;min-width:0}.student-identity-copy{display:grid;gap:5px;flex:1;min-width:0}.student-identity-id{font-family:var(--mono,monospace);font-size:11px;line-height:1.6;overflow-wrap:anywhere;opacity:.8}.student-identity-name{font-size:14px;line-height:1.4;overflow-wrap:anywhere}.student-identity .student-identity-edit{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;height:36px;padding:7px;color:inherit;background:transparent;border:1px solid color-mix(in srgb,currentColor 25%,transparent);border-radius:8px;cursor:pointer}.student-identity-edit svg{flex-shrink:0}.student-identity .student-identity-edit:hover{background:color-mix(in srgb,currentColor 12%,transparent)}.student-identity :is(button,input):focus-visible{outline:3px solid var(--teal-500,#25b8a7);outline-offset:3px}.student-identity-form{display:grid;gap:7px;margin-top:12px;padding-top:12px;border-top:1px solid color-mix(in srgb,currentColor 18%,transparent)}.student-identity-form label{font-weight:600;font-size:12px}.student-identity-form input{width:100%;min-width:0;box-sizing:border-box;padding:9px 10px;font:inherit;border:1px solid var(--line-strong,#c7d8e2);border-radius:7px;background:var(--paper,#fff);color:var(--ink-900,#17324d)}.student-identity-hint{font-size:11px;line-height:1.5;opacity:.8}.student-identity-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:3px}.student-identity-actions button{padding:7px 12px;border:1px solid color-mix(in srgb,currentColor 25%,transparent);border-radius:7px;color:inherit;background:transparent;font:inherit;cursor:pointer}.student-identity-actions button[type=submit]{background:var(--teal-500,#25b8a7);border-color:transparent;color:#0e2438;font-weight:700}.student-identity-status{margin:10px 0 0;line-height:1.5;font-size:11px;overflow-wrap:anywhere}.student-identity-status small{display:block;margin-top:3px;font-size:10px;opacity:.75}.student-identity-dot{display:inline-block;width:6px;height:6px;margin-right:6px;border-radius:50%;background:#d5a756;vertical-align:middle}.student-identity-dot[data-online=true]{background:var(--teal-500,#25b8a7)}:root{--navy-950: #0e2438;--navy-900: #122c44;--navy-800: #183a56;--ink-900: #17324d;--ink-700: #47647b;--ink-500: #71889a;--paper: #ffffff;--canvas: #f3f7fa;--line: #dfe9ef;--line-strong: #c7d8e2;--teal-500: #25b8a7;--teal-600: #15998e;--teal-soft: #dff6f1;--blue-soft: #e6f0ff;--yellow-soft: #fff6d9;--red-soft: #fff0ef;--green: #23976f;--red: #c8544e;--shadow-sm: 0 1px 2px rgb(16 42 67 / 5%);--shadow-md: 0 12px 28px rgb(16 42 67 / 9%);--radius-sm: 8px;--radius-md: 12px;--radius-lg: 16px;--mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace}*{box-sizing:border-box}html{min-width:320px;background:var(--canvas)}body{margin:0;min-width:320px;color:var(--ink-900);background:var(--canvas);font-family:Segoe UI,system-ui,sans-serif}button,textarea{font:inherit}button{cursor:pointer}button:focus-visible,textarea:focus-visible,iframe:focus-visible,.monaco-editor-host:focus-visible{outline:3px solid rgb(37 184 167 / 38%);outline-offset:2px}.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}.muted-copy{color:var(--ink-500);line-height:1.55}.game-tutor{margin:16px 0}.game-tutor-content{padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--paper)}.game-tutor-content h2{margin-top:0;font-size:20px}.game-tutor-content summary{cursor:pointer;padding-block:10px}.game-tutor-history{max-height:360px;overflow-y:auto}.game-tutor-history article{padding:12px 0;border-bottom:1px solid var(--line)}.game-tutor-history p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.game-tutor-question{display:grid;gap:8px;margin:16px 0}.game-tutor-question textarea{width:100%;min-height:100px;resize:vertical;padding:12px;border:1px solid var(--line);border-radius:8px}.game-tutor-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:12px}.game-tutor-proposal{margin:16px 0;padding:16px;border:1px solid var(--line);border-radius:8px}.game-tutor-proposal h3{overflow-wrap:anywhere}.game-tutor-proposal pre{max-height:300px;overflow:auto;font-family:var(--mono);font-size:12px}.eyebrow{margin:0 0 6px;color:var(--teal-600);font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.status-dot{display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;background:var(--green);vertical-align:middle}.status-dot--teal{background:var(--teal-500)}.app-shell{display:grid;grid-template-columns:minmax(210px,18vw) minmax(0,1fr) minmax(300px,30vw);min-height:100vh}.app-shell--sidebar-collapsed{grid-template-columns:minmax(0,1fr) minmax(300px,30vw)}.app-shell--sidebar-collapsed .sidebar-region{display:none}.workspace-toolbar{position:sticky;top:0;z-index:10;padding:8px 0;margin:-8px 0 16px;background:var(--canvas)}.workspace-toolbar{display:flex;flex-wrap:wrap;gap:8px}.game-guide-modal{width:min(960px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--line);border-radius:14px;color:var(--ink-900);background:var(--paper);overflow-y:auto}.game-guide-modal::backdrop{background:#091927a6}.game-course-actions{display:flex;flex-wrap:wrap;gap:8px}.game-course-actions svg{flex-shrink:0}.game-course-modal{height:min(900px,calc(100dvh - 32px));overflow:hidden}.game-course-modal[open]{display:flex;flex-direction:column}.game-course-modal .game-guide-heading{flex-shrink:0;flex-wrap:wrap}.game-course-toolbar{display:flex;flex-wrap:wrap;gap:8px 20px;padding:12px 24px;border-bottom:1px solid var(--line);font-size:14px}.game-course-toolbar{align-items:center}.game-course-selector{display:flex;align-items:center;gap:8px;flex-basis:100%}.game-course-selector select{min-width:0;max-width:100%}.game-course-page-selector{display:flex;align-items:center;gap:8px}.game-course-preview{width:100%;flex:1;min-height:0;overflow:auto;background:var(--paper);padding:12px}.game-course-preview img{display:block;width:100%;max-width:760px;height:auto;margin:0 auto}@media(max-width:600px){.game-course-toolbar{padding:12px 16px}}.game-guide-heading{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;background:var(--paper);border-bottom:1px solid var(--line)}.game-guide-heading h2{margin:0;font-size:clamp(18px,3vw,25px)}.game-guide-modal .game-api-body{padding:24px}.game-guide-modal pre{max-width:100%;overflow-x:auto}@media(max-width:600px){.game-guide-heading,.game-guide-modal .game-api-body{padding:16px}.game-guide-modal .game-api-search-row{grid-template-columns:1fr}}.sidebar-region{min-width:0;background:var(--navy-950)}.main-region{min-width:0;padding:32px clamp(22px,3.1vw,52px) 56px;background:var(--canvas)}.inspector-region{position:sticky;top:0;align-self:start;min-width:0;max-height:100dvh;overflow-y:auto;padding:24px 16px;border-left:1px solid var(--line);background:#edf3f6}.sidebar-backdrop{display:none}.sidebar{position:sticky;top:0;display:flex;flex-direction:column;height:100vh;height:100dvh;min-height:0;padding:25px 16px 18px;color:#d9e6ef;overflow:hidden}.sidebar-brand{display:flex;align-items:center;gap:11px;padding:2px 10px 24px}.sidebar-brand-copy{min-width:0}.brand-mark{display:grid;width:34px;height:34px;place-items:center;border:1px solid rgb(37 184 167 / 55%);border-radius:9px;color:#7ce2d6;background:#25b8a71f;font-family:var(--mono);font-size:13px;font-weight:800}.sidebar-brand strong{display:block;color:#fff;font-size:14px;line-height:1.2}.sidebar-brand div>span{display:block;margin-top:4px;color:#8faabd;font-size:11px}.sidebar-close-button{display:none;width:34px;height:34px;flex:0 0 34px;padding:0;place-items:center;border:1px solid rgb(255 255 255 / 10%);border-radius:8px;color:#8faabd;background:transparent}.sidebar-close-button:hover,.sidebar-close-button:focus-visible{border-color:#7ce2d673;color:#7ce2d6;background:#ffffff12}.sidebar-close-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-width:1.8}.sidebar-settings-button{display:grid;width:34px;height:34px;flex:0 0 34px;margin-left:auto;padding:0;place-items:center;border:1px solid rgb(255 255 255 / 10%);border-radius:8px;color:#8faabd;background:transparent}.sidebar-settings-button:hover,.sidebar-settings-button:focus-visible{border-color:#7ce2d673;color:#7ce2d6;background:#ffffff12}.sidebar-settings-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5}.sidebar-progress{padding:14px;border:1px solid rgb(255 255 255 / 8%);border-radius:var(--radius-md);background:#ffffff0a}.progress-heading{display:flex;align-items:center;justify-content:space-between;color:#b7cad8;font-size:11px}.progress-heading strong{color:#fff;font-size:18px}.progress-track{height:5px;margin:11px 0 8px;overflow:hidden;border-radius:999px;background:#ffffff1c}.progress-track span{display:block;height:100%;border-radius:inherit;background:var(--teal-500)}.progress-caption{color:#8099aa;font-size:10px}.sidebar-section-title{margin:23px 10px 9px;color:#7892a5;font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.track-list{display:grid;gap:3px}.track-list[hidden]{display:none}.sidebar-track-select{display:grid;gap:8px;margin:0 7px 12px;color:#b7cad8;font-size:11px}.sidebar-track-select select{width:100%;min-width:0;min-height:38px;padding:8px;border:1px solid #426278;border-radius:8px;color:#e0edf5;background:#18394f;font:inherit}.sidebar-track-select select:focus-visible{outline:2px solid #7ce2d6;outline-offset:2px}.sidebar-track-picker{margin:4px 0 12px;padding:4px;border:1px solid #31526a;border-radius:10px;background:#ffffff08}.sidebar-track-trigger{display:flex;align-items:center;gap:10px;padding:8px;cursor:pointer;list-style:none}.sidebar-track-trigger::-webkit-details-marker{display:none}.sidebar-track-trigger:focus-visible{outline:2px solid #7ce2d6;border-radius:6px}.sidebar-track-current{display:grid;gap:3px;min-width:0}.sidebar-track-current small{color:#8faabd;font-size:10px}.sidebar-track-current strong{color:#e0edf5;font-size:13px}.sidebar-track-chevron{flex-shrink:0;margin-left:auto;color:#8faabd}.sidebar-track-picker[open] .sidebar-track-chevron{transform:rotate(180deg)}.sidebar-track-picker .track-list{max-height:32dvh;overflow-y:auto;margin-top:6px;scrollbar-width:thin}.sidebar-lesson-picker .lesson-list{max-height:45dvh;overflow-y:auto;scrollbar-width:thin}.sidebar-lesson-picker .sidebar-track-current strong{overflow-wrap:anywhere}.lesson-complete{margin-top:20px;padding:16px;border:1px solid #bce9e0;border-radius:10px;background:var(--teal-soft)}.lesson-complete>p{margin:0 0 10px;font-weight:600}.lesson-complete .button{height:auto;padding-block:10px;text-align:left}.track-button,.lesson-button{width:100%;border:0;color:#b8cad7;background:transparent;text-align:left}.track-button{display:flex;align-items:center;gap:9px;padding:9px 10px;border-radius:8px;font-size:12px}.track-button:hover,.track-button:focus-visible,.lesson-button:hover,.lesson-button:focus-visible{color:#fff;background:#ffffff12}.track-button.is-active{color:#fff;background:#25b8a729;box-shadow:inset 3px 0 var(--teal-500)}.track-icon{display:grid;width:25px;height:25px;place-items:center;border-radius:7px;color:var(--track-accent);background:#ffffff12;font-family:var(--mono);font-size:10px;font-weight:800}.track-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.track-count{margin-left:auto;color:#718b9c;font-size:10px}.sidebar-section-heading{display:flex;align-items:center;justify-content:space-between;margin:25px 10px 9px;color:#7892a5;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.lesson-list{min-height:0;padding-right:2px}.sidebar-brand,.sidebar-progress,.sidebar-footer{flex-shrink:0}.sidebar-navigation-scroll{flex:1 1 0;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-color:#31526a transparent;scrollbar-width:thin;padding:2px 3px 6px;margin-top:12px}.sidebar-section-toggle{cursor:pointer;padding:12px 7px;color:#b7cad8;font-size:11px;font-weight:700;border-radius:6px}.sidebar-section-toggle>span{margin-left:8px;color:#8faabd;font-size:10px;font-weight:400}.sidebar-section-toggle:hover{background:#ffffff12}.sidebar-section-toggle:focus-visible{outline:2px solid #7ce2d6;outline-offset:-2px}@media(max-height:700px){.sidebar{padding-top:12px;padding-bottom:10px}.sidebar-brand{padding-bottom:12px}.sidebar-progress{padding:9px 12px}.sidebar-navigation-scroll{margin-top:6px}.sidebar-section-toggle{padding-block:9px}.track-button{padding-block:6px}.sidebar-footer{padding-top:8px}}@media(max-height:450px){.sidebar{overflow-y:auto}.sidebar-navigation-scroll{flex:0 0 auto;overflow:visible}}.lesson-button{position:relative;display:flex;align-items:flex-start;gap:9px;padding:9px;border-radius:9px}.lesson-button.is-active{color:#fff;background:#1d4661;box-shadow:inset 3px 0 var(--teal-500)}.lesson-number{flex:0 0 22px;padding-top:1px;color:#6f899b;font-family:var(--mono);font-size:10px}.lesson-button.is-active .lesson-number{color:#7ce2d6}.lesson-copy{min-width:0}.lesson-copy strong,.lesson-copy small,.lesson-copy em{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lesson-copy strong{color:inherit;font-size:12px;line-height:1.45;white-space:normal}.lesson-copy small{margin-top:3px;color:#829aab;font-size:10px}.lesson-copy em{margin-top:5px;color:#6291a6;font-size:9px;font-style:normal}.lesson-check{margin-left:auto;color:#73ddbd;font-weight:800}.sidebar-footer{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:space-between;padding:16px 10px 0;color:#7892a5;font-size:10px}.sidebar-version{flex-basis:100%;font-size:10px;overflow-wrap:anywhere}.offline-badge{color:#9db2c1}.mobile-header{display:none}.lesson-workspace{max-width:850px;margin:0 auto}.lesson-overview{padding-bottom:26px;border-bottom:1px solid var(--line)}.lesson-meta{margin:0 0 10px;color:var(--ink-500);font-size:11px;font-weight:600}.breadcrumb{display:flex;gap:9px;margin-bottom:20px;color:var(--ink-500);font-size:10px;font-weight:800;letter-spacing:.14em}.breadcrumb span:last-child{color:var(--teal-600)}.lesson-heading-row,.section-heading-row,.preview-heading,.editor-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.lesson-heading-row h1{max-width:700px;margin:0;color:var(--ink-900);font-size:clamp(25px,3vw,38px);letter-spacing:-.04em;line-height:1.08}.lesson-summary{max-width:660px;margin:12px 0 0;color:var(--ink-700);font-size:15px;line-height:1.55}.lesson-tag{flex:0 0 auto;padding:7px 10px;border:1px solid #bce9e0;border-radius:999px;color:var(--teal-600);background:var(--teal-soft);font-size:10px;font-weight:800}.overview-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;margin-top:25px}.overview-block h2,.task-panel h2,.editor-section h2,.feedback-panel h2,.runtime-console h2,.preview-card h2{margin:0;color:var(--ink-900);font-size:16px;letter-spacing:-.01em}.overview-block ul{display:grid;gap:7px;margin:12px 0 0;padding:0;list-style:none}.overview-block li{position:relative;padding-left:17px;color:var(--ink-700);font-size:12px;line-height:1.45}.overview-block li:before{position:absolute;top:5px;left:0;width:7px;height:7px;border-radius:50%;background:var(--teal-500);content:""}.overview-theory{padding-left:25px;border-left:1px solid var(--line)}.overview-theory p{margin:10px 0 0;color:var(--ink-700);font-size:12px;line-height:1.6}.task-panel,.editor-section,.feedback-panel{margin-top:28px}.section-heading-row{align-items:center}.count-badge,.file-count,.score-badge{display:inline-flex;min-width:26px;min-height:24px;align-items:center;justify-content:center;padding:0 8px;border:1px solid var(--line);border-radius:999px;color:var(--ink-700);background:var(--paper);font-size:10px;font-weight:800}.task-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin:13px 0 0;padding:0;list-style:none}.task-list>li{min-width:0}.task-list .task-button{width:100%;height:100%}.task-button{display:flex;min-width:0;align-items:flex-start;gap:9px;padding:11px;border:1px solid var(--line);border-radius:10px;color:var(--ink-700);background:var(--paper);box-shadow:var(--shadow-sm);text-align:left}.task-button:hover,.task-button:focus-visible{border-color:#a9dcd5}.task-button.is-active{border-color:var(--teal-500);background:#f1fcfa;box-shadow:0 0 0 2px #25b8a71a}.task-index{display:grid;width:24px;height:24px;flex:0 0 24px;place-items:center;border-radius:7px;color:var(--ink-700);background:#edf3f6;font-family:var(--mono);font-size:10px;font-weight:800}.task-index--guided{color:#147f75;background:var(--teal-soft)}.task-index--independent,.task-index--exercise{color:#346aa8;background:var(--blue-soft)}.task-index--challenge{color:#8b6b13;background:var(--yellow-soft)}.task-button-copy{min-width:0}.task-button-copy small,.task-button-copy strong{display:block;white-space:normal}.task-button-copy small{margin-bottom:4px;color:var(--ink-500);font-size:9px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}.task-button-copy strong{color:var(--ink-900);font-size:13px;line-height:1.45}.task-done-label{margin-left:auto;color:var(--green);font-size:9px;font-weight:800}.task-prompt{margin-top:13px;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:var(--paper);box-shadow:var(--shadow-sm)}.prompt-label{color:var(--teal-600);font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.task-prompt p{margin:7px 0 0;color:var(--ink-700);font-size:14px;line-height:1.65}.task-prompt ol{display:grid;gap:12px;padding-left:23px;color:var(--ink-900);font-size:14px;line-height:1.65;overflow-wrap:anywhere}.task-prompt li::marker{color:var(--teal-600);font-weight:700}.task-prompt .task-hint{color:#8b6b13}.editor-shell{margin-top:13px;overflow:hidden;border:1px solid var(--line-strong);border-radius:var(--radius-md);background:var(--paper);box-shadow:var(--shadow-md)}.editor-tabs{display:flex;align-items:stretch;min-width:0;border-bottom:1px solid var(--line);background:#f8fbfc;overflow-x:auto}.editor-tablist{display:flex;flex:0 0 auto;align-items:stretch}.editor-tab{display:inline-flex;align-items:center;gap:7px;min-width:max-content;padding:12px 15px;border:0;border-bottom:2px solid transparent;color:var(--ink-500);background:transparent;font-size:11px}.editor-tab:hover,.editor-tab:focus-visible{color:var(--ink-900);background:#eef7f7}.editor-tab.is-active{border-bottom-color:var(--teal-500);color:var(--ink-900);background:var(--paper);font-weight:800}.editor-tab--add{border-left:1px solid var(--line);color:var(--teal-600);font-weight:800}.editor-tab-add-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-width:1.8}.editor-tab small{color:var(--ink-500);font-size:9px;font-weight:400}.file-icon{display:grid;width:19px;height:19px;place-items:center;border-radius:5px;color:#d56d52;background:#fff0eb;font-family:var(--mono);font-size:9px;font-weight:800}.file-icon svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}.file-icon svg text{fill:currentColor;stroke:none}.file-icon svg rect{fill:currentColor;stroke:none}.file-icon--html{color:#d56d52;background:#fff0eb}.file-icon--css,.file-icon--baseCss,.file-icon--themeCss{color:#3476bf;background:var(--blue-soft)}.file-icon--js{color:#9a7610;background:var(--yellow-soft)}.file-icon--react{color:#138a80;background:var(--teal-soft)}.file-icon--php{color:#6d56a7;background:#eee9ff}.file-icon--generic{color:#718391;background:#edf3f6}.file-type-preview{display:flex;align-items:center;gap:11px;margin-top:12px;padding:11px 12px;border:1px solid var(--line);border-radius:9px;background:#f8fbfc}.file-type-preview .file-icon{width:42px;height:42px;flex:0 0 42px;border-radius:11px}.file-type-preview .file-icon svg{width:28px;height:28px;stroke-width:1.65}.file-type-preview>div{min-width:0}.file-type-preview strong,.file-type-preview span{display:block}.file-type-preview strong{color:var(--ink-900);font-size:13px}.file-type-preview span{margin-top:3px;color:var(--ink-500);font-size:11px}.editor-card{padding:0}.editor-card-heading{padding:13px 16px 9px;align-items:center}.editor-card-heading strong{display:block;color:var(--ink-900);font-size:12px}.editor-language{padding:4px 7px;border-radius:5px;color:var(--ink-500);background:#f1f5f7;font-family:var(--mono);font-size:9px}.code-editor{display:block;width:100%;min-height:260px;padding:16px;border:0;border-top:1px solid #eef3f5;border-bottom:1px solid #eef3f5;outline:0;resize:vertical;color:#d7e8f2;background:#102b42;font-family:var(--mono);font-size:12px;line-height:1.65;-moz-tab-size:2;tab-size:2;white-space:pre;overflow:auto}.code-editor:focus{box-shadow:inset 0 0 0 2px #25b8a773}.monaco-editor-wrap{position:relative;min-height:292px;overflow:hidden;border-top:1px solid #eef3f5;border-bottom:1px solid #eef3f5;background:#102b42}.monaco-editor-host{width:100%;min-height:292px}.monaco-editor-host .monaco-editor{border:0}.monaco-editor.monaco-overflow-layer{position:fixed;top:0;left:0;width:0;height:0;overflow:visible;z-index:60}.monaco-loading{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;min-height:292px;place-items:center;color:#b9d3df;background:#102b42;font-family:var(--mono);font-size:12px}.editor-status--fallback{border-top:1px solid #f0d2a9;color:#8a5b16;background:#fff9ef}.editor-help,.editor-status{margin:0;padding:8px 14px;color:var(--ink-700);font-size:12px;line-height:1.6;overflow-wrap:anywhere}.editor-status:empty{display:none}.button:disabled{opacity:.6;cursor:wait}.editor-actions{display:flex;align-items:center;gap:8px;padding:12px 14px;background:var(--paper)}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:0 11px;border:1px solid transparent;border-radius:7px;font-size:12px;font-weight:700}.button>svg{flex:0 0 auto;vertical-align:middle}.game-tutor-launcher{position:fixed;right:24px;bottom:24px;z-index:40;display:inline-flex;align-items:center;gap:10px;min-height:56px;padding:0 19px;border:0;border-radius:999px;color:#fff;background:#117d83;box-shadow:0 8px 28px #08293a40;font-weight:700}.game-tutor-launcher:hover{background:#09686e}.game-tutor-content{position:fixed;right:22px;bottom:22px;z-index:41;width:min(410px,calc(100vw - 32px));max-height:calc(100dvh - 44px);overflow-y:auto;overscroll-behavior:contain;box-shadow:0 18px 60px #081c2e40}.game-tutor-heading{position:sticky;top:-20px;z-index:1;display:flex;align-items:center;gap:11px;margin:-20px -20px 16px;padding:15px 17px;color:#fff;background:#102c40}.game-tutor-heading h2{margin:0;font-size:16px}.game-tutor-heading small{color:#b8cad7}.game-tutor-avatar{display:grid;place-items:center;flex:0 0 38px;height:38px;border-radius:13px;color:#d9ffff;background:#23aeb138;border:1px solid rgb(133 224 223 / 20%)}.game-tutor-close{display:grid;place-items:center;flex:0 0 36px;height:36px;margin-left:auto;border:1px solid rgb(255 255 255 / 20%);border-radius:8px;color:#fff;background:transparent}.game-tutor-content{display:flex;flex-direction:column;height:min(680px,calc(100dvh - 32px));max-height:calc(100dvh - 32px);padding:0;overflow:hidden;border-radius:16px}.game-tutor-heading{position:static;flex-shrink:0;margin:0;padding:13px 16px}.game-tutor-settings-button{display:flex;align-items:center;gap:8px;width:100%;padding:10px 16px;border:0;border-bottom:1px solid var(--line);color:var(--ink-700);background:transparent;font-size:12px;text-align:left}.game-tutor-settings-button span{margin-left:auto;max-width:60%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:11px}.game-tutor-settings{padding:0 16px 12px;max-height:40%;overflow:auto;border-bottom:1px solid var(--line)}.game-tutor-settings[hidden]{display:none}.game-tutor-settings select{width:100%;min-height:36px;border:1px solid var(--line);border-radius:7px;padding:6px}.game-tutor-conversation{flex:1;min-height:0;overflow-y:auto;padding:16px}.game-tutor-history{max-height:none;overflow:visible}.game-tutor-history article{width:fit-content;max-width:95%;margin:0 0 14px;padding:12px 14px;background:#f0f4f6;border:0;border-radius:12px}.game-tutor-history article:has(>strong:first-child) p{margin:6px 0 0}.game-tutor-history article:nth-child(odd){margin-left:auto;background:var(--teal-soft)}.game-tutor-welcome{display:grid;place-items:center;text-align:center;margin:30px 0;color:var(--ink-500)}.game-tutor-welcome h3{margin-bottom:0;color:var(--ink-900)}.game-tutor-content>form{flex-shrink:0;padding:12px 16px;border-top:1px solid var(--line);background:var(--paper)}.game-tutor-content>form .game-tutor-question{margin:0 0 8px;font-size:12px}.game-tutor-content>form textarea{min-height:64px;max-height:120px}.game-tutor-content>form>label{font-size:11px}.game-tutor-actions{margin-top:8px}.game-tutor-compose{display:flex;align-items:flex-end;gap:8px;padding:8px;border:1px solid var(--line);border-radius:14px}.game-tutor-compose textarea{flex:1;min-width:0;min-height:44px;max-height:120px;padding:6px;border:0;background:transparent;resize:vertical;font:inherit;font-size:13px}.game-tutor-send{display:grid;place-items:center;flex:0 0 34px;height:34px;border:0;border-radius:50%;color:#fff;background:#117d83}.game-tutor-send:disabled{opacity:.4;cursor:default}.game-tutor-compose-options{display:flex;align-items:center;gap:12px;margin-top:8px;color:var(--ink-500);font-size:11px}.game-tutor-compose-options select{min-width:0;max-width:65%;border:0;background:transparent;color:inherit;font:inherit;padding:4px 0}.game-tutor-compose-options label{display:flex;align-items:center;gap:4px;margin-left:auto;white-space:nowrap}.game-tutor-privacy{display:block;margin-top:8px;color:var(--ink-500);font-size:10px;line-height:1.4}.chat-message-text{min-width:0}.chat-message-text>p{white-space:pre-wrap;overflow-wrap:anywhere}.chat-message-text p code{padding:2px 4px;border-radius:4px;background:#0000000f;font-family:var(--mono);font-size:.9em}.chat-code-block{margin:12px 0;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#102c40;color:#e1edf5}.chat-code-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;background:#18394f;font-size:11px}.chat-code-heading button{padding:4px 8px;border:1px solid #648198;border-radius:5px;background:transparent;color:inherit;font:inherit}.chat-code-block pre{max-width:100%;margin:0;padding:12px;overflow-x:auto;font:12px/1.6 var(--mono);white-space:pre}.chat-code-block>small{display:block;padding:6px 10px}.model-picker{position:relative;min-width:0;flex:1}.model-picker-trigger{width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:4px 0;border:0;color:var(--ink-500);background:transparent;text-align:left;font:inherit}.model-picker-popup{position:absolute;bottom:calc(100% + 10px);left:0;z-index:2;width:min(350px,calc(100vw - 64px));padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--paper);box-shadow:0 8px 28px #081c2e2e}.model-picker-popup input{width:100%;padding:8px;border:1px solid var(--line);border-radius:6px}.model-picker-popup small{display:block;margin:8px 0}.game-tutor-compose-options .model-picker-popup select{max-width:none;width:100%;padding:4px;max-height:min(240px,40dvh);color:var(--ink-900);border:1px solid var(--line)}.model-picker-popup option{padding:8px}@media(max-width:600px){.game-tutor-content{right:12px;bottom:12px;width:calc(100vw - 24px)}.game-tutor-launcher{right:16px;bottom:16px}}.button--primary{color:#fff;background:var(--teal-600);box-shadow:0 3px 8px #15998e33}.button--primary:hover,.button--primary:focus-visible{background:#117c74}.button--secondary{border-color:#addfd7;color:var(--teal-600);background:var(--teal-soft)}.button--ghost{border-color:var(--line);color:var(--ink-700);background:var(--paper)}.button--ghost:hover,.button--ghost:focus-visible{border-color:var(--line-strong);background:#f6fafb}.button--solution{margin-left:auto}.button--danger{color:#fff;background:#b33a36}.button--danger:hover,.button--danger:focus-visible{background:#8f2d2a}.button--danger-outline{border-color:#e2aaa7;color:#9f302c;background:#fff8f7}.button--danger-outline:hover,.button--danger-outline:focus-visible{border-color:#c95c57;background:#fff0ef}.feedback-panel,.runtime-console{padding:17px;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--paper)}.score-badge{color:var(--teal-600)}.score-badge.is-complete{color:var(--green);border-color:#b7e6d6;background:#eefbf6}.feedback-list{display:grid;gap:8px;margin:15px 0 0;padding:0;list-style:none}.feedback-list li{display:flex;gap:9px;padding:9px 10px;border-radius:8px;background:#f7fafb}.feedback-list li.is-failed{background:var(--red-soft)}.feedback-icon{display:grid;width:20px;height:20px;flex:0 0 20px;place-items:center;border-radius:50%;color:var(--green);background:#ddf4ea;font-size:11px;font-weight:800}.is-failed .feedback-icon{color:var(--red);background:#ffdcd9}.feedback-list strong,.feedback-list small,.feedback-list em{display:block}.feedback-list strong{font-size:11px}.feedback-list small{margin-top:2px;color:var(--ink-700);font-size:10px}.feedback-list em{margin-top:4px;color:#9a6811;font-size:10px;font-style:normal}.feedback-error{display:grid;gap:4px;margin-top:13px;padding:10px;border-radius:8px;color:var(--red);background:var(--red-soft);font-family:var(--mono);font-size:10px}.feedback-error strong{font-family:Segoe UI,system-ui,sans-serif;font-size:11px}.editor-tabs{max-width:100%;overflow-x:auto}.editor-tab{flex:0 0 auto;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-dialog-backdrop{position:fixed;z-index:100;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:18px;background:#0818257a}.editor-dialog{width:min(480px,100%);max-height:calc(100dvh - 36px);overflow:auto;padding:24px;border-radius:12px;background:var(--paper);box-shadow:var(--shadow-md)}.editor-dialog h2{margin-top:0}.editor-dialog label,.preview-page-choice label{display:block;margin:14px 0 6px;font-size:13px;font-weight:700}.editor-dialog input,.editor-dialog select,.preview-page-choice select{width:100%;min-width:0;padding:10px;border:1px solid var(--line-strong);border-radius:6px;color:var(--ink-900);background:var(--paper)}.editor-dialog p{font-size:13px;line-height:1.6;overflow-wrap:anywhere}.editor-dialog [role=alert],.storage-warning{color:var(--red)}.settings-danger-zone{padding:16px;border:1px solid #efc9c6;border-radius:10px;background:#fff9f8}.settings-danger-zone h3{margin:0;color:#862d29;font-size:14px}.settings-danger-zone p{margin-bottom:14px}.editor-dialog-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:20px}.preview-page-choice small{display:block;margin-top:6px}.preview-card{padding:17px;border:1px solid var(--line-strong);border-radius:var(--radius-md);background:var(--paper);box-shadow:var(--shadow-md)}.preview-heading{align-items:center}.preview-controls{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:14px;padding:10px 11px;border:1px solid var(--line);border-radius:9px;background:#f8fbfc}.preview-save-hint{display:inline-flex;align-items:center;gap:3px;flex:0 0 auto;color:var(--ink-500);font-size:9px;white-space:nowrap}.preview-save-hint kbd{min-width:20px;padding:2px 4px;border:1px solid var(--line-strong);border-bottom-width:2px;border-radius:4px;color:var(--ink-700);background:var(--paper);font-family:var(--mono);font-size:9px;text-align:center}.runtime-pill{display:inline-flex;align-items:center;padding:6px 9px;border-radius:999px;color:var(--green);background:#edf9f3;font-size:10px;font-weight:800}.runtime-pill--error{color:var(--red);background:var(--red-soft)}.runtime-pill--running{color:#9a7610;background:var(--yellow-soft)}.runtime-pill--small{padding:5px 7px;font-size:9px}.preview-frame-wrap{margin-top:16px;overflow:hidden;border:1px solid var(--line);border-radius:9px;background:#fff}.preview-frame{display:block;width:100%;height:clamp(200px,55dvh,560px);border:0;background:#fff}.runtime-console{margin-top:18px;padding:15px;background:var(--navy-900)}.runtime-console h2,.runtime-console .eyebrow{color:#fff}.runtime-console .eyebrow{color:#7ce2d6}.runtime-console .count-badge{border-color:#ffffff1f;color:#a8c1cf;background:#ffffff12}.console-output{min-height:70px;max-height:210px;margin-top:13px;padding:10px;overflow:auto;border:1px solid rgb(255 255 255 / 9%);border-radius:7px;background:#0d2235;font-family:var(--mono);font-size:10px}.console-placeholder{color:#6e8b9e}.console-line{display:flex;gap:7px;margin:5px 0;color:#bed5df}.console-line>span{color:#65d6c8}.console-line--error{color:#ff9e98}.editor-shell .runtime-console{margin:0;padding:0;border:0;border-top:1px solid #344453;border-radius:0;background:#101c28}.console-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 16px;background:#152330}.runtime-console .console-heading h2{color:#d6e6ee;font-size:12px;font-weight:600;letter-spacing:0}.console-heading .runtime-pill{padding:3px 8px;font-size:10px}.editor-shell .console-output{min-height:95px;max-height:260px;margin:0;padding:12px 16px 16px;overflow:auto;border:0;border-radius:0;color:#bed5df;background:transparent;font:12px/1.65 var(--mono);white-space:pre-wrap;overflow-wrap:anywhere}.console-output:focus-visible{outline:2px solid var(--teal-500);outline-offset:-2px}.console-output .console-line{display:inline;margin:0}.console-line--warn{color:#ffd166}.game-preview-actions{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:8px}.game-fullscreen-button{padding:7px;min-height:34px}.game-fullscreen-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.preview-title--game{margin:0;color:var(--teal-500, #35c9b4);font-size:17px;font-weight:700;letter-spacing:.01em}.game-settings-button{padding:7px;min-height:34px}.game-settings-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.preview-settings{position:relative;display:inline-flex}.preview-settings-menu{position:absolute;top:calc(100% + 8px);right:0;z-index:20;display:flex;flex-direction:column;gap:2px;min-width:210px;padding:8px;border:1px solid var(--line);border-radius:10px;background:var(--paper);box-shadow:0 10px 28px #08182538}.preview-switch{display:flex;align-items:center;gap:10px;padding:7px 9px;border-radius:7px;font-size:12.5px;color:var(--ink-700);cursor:pointer;-webkit-user-select:none;user-select:none}.preview-switch:hover{background:var(--teal-soft)}.preview-switch--disabled{opacity:.45;cursor:default}.preview-switch input{position:absolute;opacity:0;width:0;height:0}.preview-switch-track{position:relative;flex-shrink:0;width:32px;height:18px;border-radius:999px;background:var(--line, #c9d4dc);transition:background .18s}.preview-switch-thumb{position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #08182559;transition:transform .18s}.preview-switch input:checked+.preview-switch-track{background:var(--teal-500, #35c9b4)}.preview-switch input:checked+.preview-switch-track .preview-switch-thumb{transform:translate(14px)}.preview-switch input:focus-visible+.preview-switch-track{outline:2px solid var(--teal-500, #35c9b4);outline-offset:2px}.game-preview .preview-frame-wrap,.game-preview .preview-frame{background:#0b2033}.game-preview .preview-frame{height:clamp(280px,78dvh,720px)}.game-preview--fullscreen{position:fixed;z-index:100;top:12px;right:12px;bottom:12px;left:12px;display:flex;flex-direction:column;box-shadow:0 0 0 100vmax #081825bf}.game-preview--fullscreen .preview-frame-wrap{flex:1;min-height:0;height:auto}.game-preview--fullscreen .preview-frame{height:100%;min-height:0}.game-api-guide{border-block:1px solid var(--line);padding:14px 0;color:var(--ink-700);font-size:13px}.game-api-guide>summary{display:flex;align-items:center;gap:10px;cursor:pointer;color:var(--ink-900);font-weight:700}.game-api-guide>summary span{color:var(--ink-500);font-size:12px;font-weight:450}.game-api-guide summary:focus-visible,.game-api-nav button:focus-visible{outline:2px solid var(--teal-500);outline-offset:4px}.game-api-body{padding-top:14px;line-height:1.65}.playground-tools{margin:18px 0 4px;padding:14px;border:1px solid var(--line-strong);border-radius:8px;background:var(--paper)}.playground-tools p{margin:0 0 12px;color:var(--ink-700);font-size:13px;line-height:1.6}.playground-tools-actions{display:flex;flex-wrap:wrap;gap:8px}.playground-tools p[role=status]{margin:12px 0 0}.game-api-nav{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px;border-bottom:1px solid var(--line)}.game-api-nav button{padding:8px 12px;border:0;border-bottom:2px solid transparent;color:var(--ink-700);background:transparent;cursor:pointer;font:inherit}.game-api-nav button.is-active{border-bottom-color:var(--teal-600);color:var(--ink-900);font-weight:700}.game-api-intro{max-width:850px}.game-api-start ol{padding-left:22px}.game-api-body pre{overflow:auto;margin:12px 0;padding:14px;border-radius:8px;background:#101c28;color:#bed5df;font:12px/1.7 var(--mono)}.game-api-callouts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.game-api-callouts p{margin:0;padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--paper)}.game-api-callouts strong{color:var(--ink-900)}.game-api-callouts kbd{margin-right:3px;padding:1px 5px;border:1px solid var(--line-strong);border-radius:4px;background:var(--canvas);font:11px var(--mono)}.game-api-search-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(150px,220px);gap:12px}.game-api-search-row label{display:grid;gap:5px;color:var(--ink-700);font-size:12px;font-weight:650}.game-api-search-row input,.game-api-search-row select{width:100%;min-height:36px;padding:7px 9px;border:1px solid var(--line-strong);border-radius:7px;color:var(--ink-900);background:var(--paper);font:inherit}.game-api-count{margin:10px 0;color:var(--ink-500);font-size:11px}.game-api-entries{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:440px;overflow:auto;padding-right:4px}.game-api-entry{min-width:0;border:1px solid var(--line);border-radius:8px;background:var(--paper)}.game-api-entry>summary{display:flex;min-height:40px;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;cursor:pointer}.game-api-entry>summary code{overflow-wrap:anywhere;color:var(--ink-900);font:11px/1.5 var(--mono)}.game-api-entry>summary span{flex:0 0 auto;color:var(--ink-500);font-size:10px}.game-api-entry>p{margin:0;padding:0 10px 10px}.game-api-entry>pre{margin:0 8px 8px}.game-component-groups,.game-asset-groups{display:grid;gap:18px;margin-top:14px}.game-component-group h3,.game-asset-group h3{margin:0 0 2px;font-size:15px}.game-asset-group h3 span{color:var(--ink-500);font-size:12px;font-weight:450}.game-component-hint{margin:0 0 8px;color:var(--ink-500);font-size:12px}.game-component-group ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none}.game-component-group li{min-width:0;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}.game-component-group li code{display:block;margin-bottom:4px;color:var(--ink-900);font:11px/1.5 var(--mono);overflow-wrap:anywhere}.game-component-group li span{color:var(--ink-700);font-size:12px;line-height:1.5}.game-component-example{margin-top:6px}.game-component-example>summary{cursor:pointer;color:var(--ink-500);font-size:11px}.game-component-example>pre{margin:6px 0 0;padding:8px;overflow-x:auto;border-radius:6px;background:var(--canvas);font-size:11px}.game-api-note{margin:14px 0 0;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--canvas);font-size:13px}.game-asset-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px}.game-asset-card{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;padding:10px 6px;border:1px solid var(--line);border-radius:8px;color:inherit;background:var(--paper);font:inherit;text-align:center;cursor:pointer}.game-asset-card:hover{border-color:var(--teal-600)}.game-asset-card:focus-visible{outline:2px solid var(--teal-500);outline-offset:2px}.game-asset-slot{display:flex;align-items:center;justify-content:center;width:56px;height:56px}.game-asset-icon{display:block;overflow:hidden}.game-asset-icon img{display:block;max-width:none;max-height:none;transform-origin:0 0;image-rendering:pixelated}.game-asset-name{color:var(--ink-900);font:10px/1.4 var(--mono);overflow-wrap:anywhere}.game-asset-key{color:var(--ink-500);font-size:10px;overflow-wrap:anywhere}@media(max-width:700px){.game-api-callouts,.game-api-entries,.game-component-group ul{grid-template-columns:1fr}.game-asset-grid{grid-template-columns:repeat(auto-fill,minmax(84px,1fr))}.game-api-search-row{grid-template-columns:1fr}.game-api-guide>summary{align-items:flex-start;flex-direction:column;gap:2px}}@media(max-width:1240px){.main-region{padding-right:20px;padding-left:20px}}@media(max-width:991px){.app-shell,.app-shell--sidebar-collapsed .sidebar-region{display:block}.workspace-toolbar{display:none}.sidebar-region{position:fixed;z-index:30;top:0;bottom:0;left:0;width:min(282px,calc(100vw - 24px));max-width:calc(100vw - 24px);visibility:hidden;transform:translate(-102%);transition:transform .22s ease,visibility 0s linear .22s;box-shadow:14px 0 30px #0a1f3033}.sidebar{height:100%}.sidebar-close-button{display:grid;margin-left:auto}.sidebar-settings-button{margin-left:0}.app-shell--sidebar-open .sidebar-region{visibility:visible;transform:translate(0);transition:transform .22s ease,visibility 0s}.app-shell--sidebar-open .sidebar-backdrop{position:fixed;z-index:20;top:0;right:0;bottom:0;left:0;display:block;border:0;background:#0818257a}.main-region{padding:0 20px 40px}.inspector-region{position:static;max-height:none;overflow-y:visible;padding:0 20px 35px;border-left:0}.mobile-header{display:flex;position:relative;z-index:10;align-items:center;justify-content:space-between;gap:12px;min-height:60px;margin:0 -20px 25px;padding:0 20px;border-bottom:1px solid var(--line);background:#f3f7faeb;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.icon-button{display:grid;width:34px;height:34px;place-items:center;border:1px solid var(--line-strong);border-radius:8px;color:var(--ink-900);background:var(--paper);font-size:17px}.mobile-brand{display:flex;align-items:center;gap:8px;margin-right:auto;color:var(--ink-900);font-size:12px;font-weight:800}.mobile-brand .brand-mark{width:28px;height:28px;font-size:10px}}@media(max-width:767px){.main-region{padding:0 14px 30px}.inspector-region{padding:0 14px 28px}.mobile-header{margin-right:-14px;margin-left:-14px;padding:0 14px}.lesson-heading-row{display:block}.lesson-tag{display:inline-flex;margin-top:14px}.overview-grid{grid-template-columns:1fr;gap:20px}.overview-theory{padding-top:18px;padding-left:0;border-top:1px solid var(--line);border-left:0}.task-list{grid-template-columns:1fr}.task-button{min-height:62px}.editor-actions{flex-wrap:wrap}.button--solution{margin-left:0}.preview-frame-wrap,.preview-frame{height:380px;min-height:380px}.game-preview .preview-frame{height:min(620px,82dvh);min-height:0}.preview-controls{align-items:flex-start;flex-direction:column}.preview-save-hint{margin-left:25px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}.editor-tabs .editor-tab[draggable=true]{cursor:grab}.editor-tabs .editor-tab[draggable=true]:active{cursor:grabbing}.movement-hint{margin:10px 0}.movement-hint-content{margin-top:8px;padding:12px;border:1px solid #b9d2df;border-radius:10px;background:#eff8fb;color:#183847;font-size:14px;line-height:1.6}.movement-hint-content pre{overflow-x:auto;padding:8px;background:#142234;color:#eef7ff;border-radius:6px}
