.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}.engine-guide-trigger{display:inline-flex;align-items:center;gap:7px;margin-left:auto}.engine-guide{width:min(940px,calc(100vw - 28px));max-height:calc(100dvh - 40px);padding:0;border:1px solid var(--line);border-radius:16px;color:var(--ink-900);background:#fff;box-shadow:0 24px 80px #08182540}.engine-guide::backdrop{background:#081825b3}.engine-guide-inner{display:flex;flex-direction:column;max-height:calc(100dvh - 42px)}.engine-guide-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 26px 16px}.engine-guide-heading h2{margin:0;font-size:23px}.engine-guide-nav{display:flex;gap:6px;padding:0 26px 14px;border-bottom:1px solid var(--line)}.engine-guide-nav button{border:1px solid transparent;border-radius:8px;padding:9px 13px;background:transparent;color:var(--ink-700);font-weight:600}.engine-guide-nav button.is-active{color:var(--teal-600);border-color:#bce9e0;background:var(--teal-soft)}.engine-guide-content{padding:22px 26px 28px;overflow:auto;overscroll-behavior:contain;font-size:14px;line-height:1.65}.engine-guide-content h3{margin:24px 0 10px;font-size:18px}.engine-guide-content h3:first-child{margin-top:0}.engine-guide-content p{margin:10px 0 16px}.engine-guide-content pre{overflow-x:auto;padding:15px 17px;border:1px solid var(--line);border-radius:10px;background:#0d2233;color:#d9eff0;font:12px/1.7 var(--mono)}.engine-guide-content :not(pre)>code{font:12px var(--mono);color:var(--teal-600)}.engine-guide-composition{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin:18px 0}.engine-guide-composition span{padding:6px 10px;border-radius:7px;background:#edf3f6;font-size:12px}.engine-guide-flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0;list-style-position:inside}.engine-guide-flow li{padding:15px;border:1px solid var(--line);border-radius:10px;background:#f8fbfc}.engine-guide-flow span{display:block;margin-top:8px;color:var(--ink-700);font-size:12px}.engine-guide-hooks{display:grid;grid-template-columns:minmax(150px,1fr) 3fr;gap:12px 20px}.engine-guide-hooks dt{font:12px/1.7 var(--mono);color:var(--teal-600)}.engine-guide-hooks dd{margin:0}.engine-guide-search{display:grid;gap:7px;font-weight:600}.engine-guide-search input{width:100%;padding:11px 13px;border:1px solid var(--line);border-radius:8px;font:inherit}.engine-guide-search input:focus-visible{outline:3px solid #25b8a761}.engine-guide-count{color:var(--ink-500);font-size:12px}.engine-guide-entry{margin:10px 0;border:1px solid var(--line);border-radius:10px;padding:0 16px 12px}.engine-guide-entry:not([open]){padding-bottom:0}.engine-guide-entry summary{padding:13px 0;cursor:pointer}.engine-guide-entry summary strong{font-family:var(--mono);margin-left:6px}.engine-guide-entry summary span{margin-left:14px;color:var(--ink-500);font-size:11px}.engine-guide-entry h4{margin:14px 0 4px;font-size:12px}.engine-guide-fields{font-family:var(--mono);font-size:12px;overflow-wrap:anywhere}@media(max-width:600px){.engine-guide-trigger span{display:none}.engine-guide-heading,.engine-guide-content{padding:16px}.engine-guide-heading h2{font-size:18px}.engine-guide-nav{padding:0 12px 12px;flex-wrap:wrap}.engine-guide-nav button{padding:8px;font-size:12px}.engine-guide-flow{grid-template-columns:1fr}.engine-guide-hooks{grid-template-columns:1fr;gap:4px}.engine-guide-hooks dd{margin-bottom:12px}.engine-guide-entry summary span{display:block;margin-left:22px}}.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)}.java-learning-nav{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.java-learning-nav button,.java-lesson-quiz>button,.java-learning-next{padding:10px 16px;border:1px solid #b7ccc8;border-radius:10px;background:#fff;color:#173d43;font:inherit;cursor:pointer}.java-learning-nav [aria-current=step]{background:#164e55;color:#fff}.java-lesson-quiz fieldset{border:1px solid #cadbd7;border-radius:12px;margin:18px 0;padding:18px;min-width:0}.java-lesson-quiz legend{font-weight:700;padding:0 6px}.java-lesson-quiz label{display:flex;align-items:flex-start;gap:10px;padding:12px;margin:8px 0;background:#f2f7f5;border-radius:8px;cursor:pointer;white-space:pre-wrap;overflow-wrap:anywhere}.java-lesson-quiz input{margin-top:4px;flex:none}.java-lesson-quiz>button{margin:5px}.java-quiz-feedback{border-left:3px solid #277d70;padding:12px}.java-course-infographic{margin:20px 0}.java-course-infographic img{display:block;width:100%;height:auto;border-radius:12px}.java-course-infographic figcaption{font-size:.85rem;color:#526764;margin-top:6px}.java-course-submission{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:18px;border:1px solid #cadbd7;border-radius:12px;margin:20px 0}.java-course-submission button{padding:10px 16px;border-radius:8px;background:#164e55;color:#fff;border:0;font:inherit}.java-course-submission input,.java-lesson-quiz>label input{padding:9px;max-width:180px;border:1px solid #9aada9;border-radius:6px}.java-quiz-identity{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0}.java-quiz-identity label{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:13px;background:none;padding:0;margin:0;white-space:normal;cursor:text}.java-quiz-identity input{padding:9px;max-width:220px;border:1px solid #9aada9;border-radius:6px;margin:0}.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}.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}.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-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-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}}.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}}.java-concept .concept-scene{display:flex;flex-wrap:wrap;gap:16px;margin:22px 0;padding:20px;border:1px solid #c7dcd4;border-radius:16px;background:#f0f7f2}.java-concept .concept-actor{flex:1 1 190px;min-width:0;display:flex;flex-direction:column;align-items:center;text-align:center;padding:16px 12px;background:#fff;border:1px solid #c7dcd4;border-radius:12px}.java-concept .concept-actor h3{font-size:16px;margin:0;overflow-wrap:anywhere}.java-concept .concept-hero{width:112px;height:112px;image-rendering:pixelated;filter:drop-shadow(0 5px 2px #164c3820)}.java-concept .concept-state{margin:0;padding:10px;border:0;background:#edf5f7;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.6;color:#173c52}.java-concept .concept-effect{margin-top:12px;padding:6px 12px;border-radius:8px;background:#e5f2ee;color:#15534a;font-weight:700}.java-concept .concept-effect .concept-hero{display:block;margin:auto;width:56px;height:56px}.java-concept .concept-result{margin-top:16px;padding:16px;background:#10293d;color:#f3fbff;border-radius:10px}.java-concept .concept-result>span{font-size:12px;color:#aadbdc}.java-concept .concept-result pre{margin:8px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;font-size:14px}.java-concept .page-diagram>figcaption{display:none}@media(max-width:600px){.java-concept .concept-scene{padding:10px;gap:10px}.java-concept .concept-actor{flex-basis:100%}}.course-material-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:12px}.course-material-actions .game-course-actions{margin:0}.course-material-note{position:relative}.course-material-note>summary{display:grid;place-items:center;width:30px;height:30px;border:1px solid #c3d5df;border-radius:50%;background:#fff;color:#23465c;cursor:pointer;font-weight:700;list-style:none}.course-material-note>summary::-webkit-details-marker{display:none}.course-material-note>summary:focus-visible{outline:3px solid #008c95;outline-offset:3px}.course-material-note[open]>summary{background:#e6f3f3}.course-material-note>p{position:absolute;top:calc(100% + 8px);left:0;z-index:50;width:min(320px,70vw);margin:0;padding:12px 16px;border:1px solid #c3d5df;border-radius:10px;background:#fff;color:#23465c;box-shadow:0 8px 24px #132f4826;font-size:14px;line-height:1.6}@media(max-width:600px){.course-material-note>p{left:auto;right:0}}.editor-help-control{display:inline-flex;align-items:center}.editor-help-button{display:inline-grid;width:32px;min-width:32px;min-height:32px;padding:0;place-items:center;border-radius:50%;font-weight:800}.editor-help-tooltip{position:fixed;z-index:120;width:min(440px,calc(100vw - 24px));padding:16px;overflow-y:auto;overflow-wrap:anywhere;border:1px solid var(--line-strong);border-radius:9px;color:var(--ink-700);background:var(--paper);box-shadow:0 10px 24px #102b422e;font-size:11px;line-height:1.45}.editor-help-header{display:flex;flex-direction:column;gap:3px;padding-bottom:11px;border-bottom:1px solid var(--line)}.editor-help-header strong{color:var(--ink-900);font-size:14px}.editor-help-header span,.editor-help-platform-note,.editor-help-or{color:var(--ink-500)}.editor-help-groups{display:flex;flex-direction:column;gap:14px;margin-top:14px}.editor-help-group{display:flex;flex-direction:column;gap:7px}.editor-help-group h3{margin:0;color:var(--ink-900);font-size:11px}.editor-help-shortcuts{display:flex;flex-direction:column;gap:5px}.editor-help-shortcut{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:28px}.editor-help-shortcut>span:last-child{flex:1 1 50%}.editor-help-keymaps,.editor-help-keymap,.editor-help-key-part{display:inline-flex;align-items:center}.editor-help-keymaps{flex:0 0 205px;gap:5px}.editor-help-alternative{display:inline-flex;align-items:center;gap:5px}.editor-help-keymap,.editor-help-key-part{gap:3px}.editor-help-key-plus{color:var(--ink-500);font-size:9px;font-weight:700}.editor-help-or{padding:0 2px;font-size:9px}.editor-help-tooltip kbd{display:inline-flex;min-width:25px;min-height:22px;align-items:center;justify-content:center;padding:2px 5px;border:1px solid #b8c9d1;border-bottom-width:2px;border-radius:5px;color:var(--ink-900);background:#f4f8fa;box-shadow:0 1px 1px #102b4214;font-family:var(--mono);font-size:9px;font-weight:800;line-height:1;white-space:nowrap}.editor-help-platform-note{margin-top:13px;padding-top:10px;border-top:1px solid var(--line)}.editor-help-platform-note kbd{min-width:22px;min-height:20px;padding:2px 5px;vertical-align:middle}@media(max-width:600px){.editor-help-tooltip{padding:14px}.editor-help-shortcut{align-items:flex-start;flex-direction:column;gap:4px}.editor-help-keymaps{flex-basis:auto}}.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}.step-trial{padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#f4f7f9}.step-trial-stage{display:flex;flex-wrap:wrap;align-items:flex-start;gap:14px}.step-trial-row{display:block;width:min(100%,560px)}.step-trial-vars{border-collapse:collapse;font-family:var(--mono);font-size:.9rem}.step-trial-vars :is(th,td){padding:3px 10px;border-bottom:1px solid var(--line);text-align:left}.step-trial-vars th{color:#173c52;font-weight:700}.step-trial-vars td{color:#0f5c57;font-variant-numeric:tabular-nums}.step-trial-stack>span{display:block;margin-bottom:4px;color:var(--ink-700);font-size:.8rem}.step-trial-stack ol{display:flex;flex-direction:column;gap:4px;margin:0;padding:0;list-style:none}.step-trial-stack li{padding:3px 10px;border:1px solid #173c52;border-radius:6px;background:#fff8ea;color:#173c52;font-family:var(--mono);font-size:.85rem}.step-trial-stack li[data-top]{background:#f4a261;font-weight:700}.step-trial-caption{margin:10px 0;color:var(--ink-900);font-weight:600;line-height:1.45}.step-trial-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.step-trial-counter{color:var(--ink-700);font-size:.9rem;font-variant-numeric:tabular-nums}.step-trial-button{padding:7px 12px;border:1px solid var(--line-strong);border-radius:8px;background:var(--paper);color:var(--ink-900);font:inherit;font-weight:650;cursor:pointer}.step-trial-button:hover:not(:disabled){border-color:#006b70;color:#006b70}.step-trial-button:disabled,.step-trial-controls .pilot-trial-play:disabled{opacity:.45;cursor:default}.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-strong);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-strong);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 .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}.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}@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%}}.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-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}}.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-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}}.game-tutor-content{background:var(--paper, #fff);color:var(--ink-900, #102b3e)}.game-tutor-proposal{min-width:0;overflow-wrap:anywhere;margin:12px 0}.game-tutor-proposal pre{overflow:auto;max-height:240px;font:12px/1.6 var(--mono)}.game-tutor button{cursor:pointer}.playground-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center}: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{outline:3px solid rgb(37 184 167 / 38%);outline-offset:2px}h1,h2,p{margin-top:0}pre{margin:0}.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}.file-history{width:min(860px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:20px;border:1px solid #adc4d1;border-radius:12px;background:var(--canvas)}.file-history::backdrop{background:#081623a6}.file-history pre{max-height:240px;overflow:auto;padding:12px;background:#10263a;color:#e1edf6}.file-history select{max-width:100%}.eyebrow{margin:0 0 6px;color:var(--teal-600);font-size:10px;font-weight:800;letter-spacing:.13em;text-transform:uppercase}.status-dot{display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;background:#65d6c8;vertical-align:middle}.app-shell{display:grid;grid-template-columns:var(--sidebar-size, 260px) 5px minmax(0,1fr) 5px var(--inspector-size, 380px);min-height:100vh}.app-shell--sidebar-collapsed{grid-template-columns:0 0 minmax(0,1fr) 5px var(--inspector-size, 380px)}.app-shell--sidebar-collapsed .sidebar-region{display:none}.sidebar-region{grid-column:1;grid-row:1}.panel-resizer--sidebar{grid-column:2;grid-row:1}.main-region{grid-column:3;grid-row:1}.panel-resizer--inspector{grid-column:4;grid-row:1}.inspector-region{grid-column:5;grid-row:1}.app-shell.app-shell--no-inspector{grid-template-columns:var(--sidebar-size, 260px) 5px minmax(0,1fr)}.app-shell.app-shell--no-inspector.app-shell--sidebar-collapsed{grid-template-columns:0 0 minmax(0,1fr)}.game-preview-actions{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:8px}.game-preview-actions button[aria-pressed=true]{color:var(--teal-600);background:var(--teal-soft);border-color:#25b8a7}.game-preview.game-preview--fullscreen{position:fixed;z-index:100;top:12px;right:12px;bottom:12px;left:12px;display:flex;flex-direction:column;margin:0;box-shadow:0 0 0 100vmax #081825bf}.game-preview--fullscreen .game-stage{flex:1;min-height:0}.panel-resizer{z-index:5;width:5px;padding:0;border:0;background:transparent;cursor:col-resize}.panel-resizer:hover,.panel-resizer:focus-visible{background:var(--teal-500)}body.is-resizing-panels,body.is-resizing-panels *{cursor:col-resize!important;-webkit-user-select:none!important;user-select:none!important}.sidebar-region{min-width:0;background:var(--navy-950)}.sidebar{position:sticky;top:0;display:flex;height:100vh;flex-direction:column;padding:24px 15px 17px;color:#d9e6ef;overflow:hidden}.sidebar-brand{display:flex;align-items:center;gap:10px;padding:2px 9px 22px}.sidebar-brand-copy{min-width:0}.brand-mark{display:grid;width:35px;height:35px;flex:0 0 35px;place-items:center;border:1px solid rgb(37 184 167 / 55%);border-radius:9px;color:#7ce2d6;background:#25b8a71f;font-family:var(--mono);font-size:16px;font-weight:800}.sidebar-brand strong{display:block;color:#fff;font-size:15px;line-height:1.2}.sidebar-brand-copy span{display:block;margin-top:4px;color:#8faabd;font-size:10px}.sidebar-settings-button{display:grid;width:32px;height:32px;flex:0 0 32px;margin-left:auto;place-items:center;border:1px solid rgb(255 255 255 / 10%);border-radius:8px;color:#8faabd;background:transparent;font-size:17px}.sidebar-settings-button:hover,.sidebar-settings-button:focus-visible{border-color:#7ce2d673;color:#7ce2d6;background:#ffffff12}.sidebar-progress{padding:13px;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:10px 0 8px;overflow:hidden;border-radius:999px;background:#ffffff1c}.progress-track span{display:block;height:100%;border-radius:inherit;background:var(--teal-500);transition:width .25s ease}.progress-caption{color:#8099aa;font-size:10px}.sidebar-section-title,.sidebar-section-heading{margin:22px 9px 8px;color:#7892a5;font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.track-list{display:grid;gap:3px}.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:8px 9px;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:9px;font-weight:800}.track-count{margin-left:auto;color:#718b9c;font-size:10px}.sidebar-section-heading{display:flex;align-items:center;justify-content:space-between;margin-top:23px;letter-spacing:.08em}.lesson-list{min-height:0;padding-right:2px;overflow-y:auto;scrollbar-color:#31526a transparent;scrollbar-width:thin}.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}.lesson-copy strong{color:inherit;font-size:11px;line-height:1.4}.lesson-copy small{margin-top:3px;color:#829aab;font-size:9px;line-height:1.35;white-space:normal}.lesson-copy em{margin-top:4px;color:#6291a6;font-size:9px;font-style:normal}.lesson-check{margin-left:auto;color:#73ddbd;font-weight:800}.sidebar-generator{display:flex;gap:8px;align-items:center;margin-top:10px;padding:12px;color:#b9e9e3;font-size:12px;font-weight:700;text-decoration:none;border:1px solid rgb(255 255 255 / 12%);border-radius:var(--radius-md)}.sidebar-generator:hover,.sidebar-generator:focus-visible{color:#fff;background:#ffffff12}.sidebar-generator svg{flex-shrink:0}.sidebar-footer{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:space-between;padding:15px 9px 0;color:#7892a5;font-size:10px}.sidebar-version{flex-basis:100%;font-size:10px;overflow-wrap:anywhere}.offline-badge{color:#9db2c1}.main-region{min-width:0;padding:29px clamp(22px,3vw,50px) 56px;background:var(--canvas)}.inspector-region{position:sticky;top:0;align-self:start;min-width:0;max-height:100dvh;padding:22px 15px;border-left:1px solid var(--line);background:#edf3f6;overflow-y:auto}.workspace-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;min-height:36px;margin:-4px 0 20px}.toolbar-note{color:var(--ink-500);font-size:10px}.mobile-header{display:none}.lesson-workspace{max-width:860px;margin:0 auto}.lesson-overview{padding-bottom:24px;border-bottom:1px solid var(--line)}.breadcrumb{display:flex;gap:9px;margin-bottom:18px;color:var(--ink-500);font-size:10px;font-weight:800;letter-spacing:.13em}.breadcrumb span:last-child{color:var(--teal-600)}.lesson-heading-row,.section-heading-row,.preview-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.lesson-heading-row h1{max-width:690px;margin:0;color:var(--ink-900);font-size:clamp(25px,3vw,38px);letter-spacing:-.04em;line-height:1.08}.lesson-summary{max-width:680px;margin:11px 0 0;color:var(--ink-700);font-size:14px;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}.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:-.015em}.tips-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:20px;padding:11px 13px;border:1px solid #f1d994;border-radius:9px;color:#765d1c;background:var(--yellow-soft);font-size:11px;line-height:1.45}.tips-row strong{color:#916c10;font-size:10px;letter-spacing:.07em;text-transform:uppercase}.tips-row span{padding-left:8px;border-left:1px solid #e7c96e}.task-panel,.editor-section,.feedback-panel{margin-top:26px}.count-badge,.score-badge,.language-badge{display:inline-flex;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}.language-badge{color:var(--ink-500);background:#f8fbfc;font-family:var(--mono);font-weight:500}.task-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;margin-top:12px}.task-button{display:flex;min-width:0;align-items:flex-start;gap:9px;width:100%;height:100%;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:10px var(--mono);font-weight:800}.task-index--guided{color:#147f75;background:var(--teal-soft)}.task-index--independent,.task-index--practice{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}.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:12px;line-height:1.4}.task-done-label{margin-left:auto;color:var(--green);font-size:12px;font-weight:800}.task-prompt{margin-top:12px;padding:14px 16px;border-left:3px solid var(--teal-500);border-radius:0 10px 10px 0;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:13px;line-height:1.6}.task-prompt ol{display:grid;gap:7px;margin:11px 0 0;padding-left:22px;color:var(--ink-900);font-size:13px;line-height:1.55}.task-prompt li::marker{color:var(--teal-600);font-weight:700}.task-prompt .task-hint{color:#896b16;font-size:11px}.editor-section .section-heading-row{align-items:center}.editor-shell{margin-top:12px;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;min-width:0;overflow-x:auto;border-bottom:1px solid var(--line);background:#f8fbfc}.editor-tab{display:inline-flex;flex:0 0 auto;align-items:center;gap:7px;padding:11px 14px;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{margin-left:auto}.editor-add-file{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:8px 12px;border-bottom:1px solid var(--line)}.editor-add-file input{width:160px;padding:6px 8px;border:1px solid var(--line);border-radius:4px}.editor-add-file .button{padding:6px 10px}.file-icon{display:grid;width:19px;height:19px;place-items:center;border-radius:5px;color:#d56d52;background:#fff0eb;font:10px var(--mono);font-weight:800}.editor-card-heading{display:flex;align-items:center;justify-content:space-between;padding:12px 15px 9px}.editor-card-heading-actions{display:inline-flex;align-items:center;gap:8px}.editor-card-heading strong{color:var(--ink-900);font-size:12px}.editor-language{padding:4px 7px;border-radius:5px;color:var(--ink-500);background:#f1f5f7;font:9px var(--mono)}.code-editor-wrap{display:flex;min-height:300px;border-top:1px solid #eef3f5;border-bottom:1px solid #eef3f5;background:#102b42}.monaco-editor-wrap{position:relative;display:block;min-height:330px;background:#1e1e1e}.monaco-editor-host{width:100%;height:330px;min-height:300px}.monaco-editor-host .monaco-editor{width:100%!important;height:100%!important}.monaco-loading{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;color:#b9ced8;background:#1e1e1e;font:11px var(--mono);pointer-events:none}.code-editor-fallback-wrap{display:block}.code-editor{display:block;min-width:0;width:100%;min-height:300px;padding:16px 15px;resize:vertical;border:0;outline:0;color:#d7e8f2;background:#102b42;font:12px/1.65 var(--mono);-moz-tab-size:2;tab-size:2;white-space:pre;overflow:auto}.code-editor:focus{box-shadow:inset 0 0 0 2px #25b8a773}.editor-help{margin:0;padding:8px 14px;color:var(--ink-700);font-size:11px;line-height:1.5}.editor-action-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border-bottom:1px solid var(--line);background:#f7fafc}.editor-action-bar .button{min-height:34px;padding:8px 12px}.editor-action-bar-secondary{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px}.editor-action-bar .editor-format-icon{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:7px;flex:0 0 36px}.editor-api-notice{padding:8px 14px;color:var(--ink-700);font:11px var(--mono)}.button{min-height:36px;padding:0 11px;border:1px solid transparent;border-radius:7px;font-size:11px;font-weight:800}.button:disabled{opacity:.55;cursor:wait}.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--teavm{border-color:#9bded5;color:#087d73;background:#e2f8f4}.button--teavm:hover,.button--teavm:focus-visible{border-color:#42bcae;background:#d2f3ed}.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}.feedback-panel,.preview-card,.runtime-console{padding:16px;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--paper);box-shadow:var(--shadow-sm)}.score-badge{color:var(--teal-600)}.score-badge.is-complete{color:var(--green);border-color:#b7e6d6;background:#eefbf6}.feedback-summary{margin:12px 0 0;color:var(--ink-500);font-size:12px;line-height:1.5}.feedback-summary.is-success{color:var(--green);font-weight:700}.feedback-list{display:grid;gap:7px;margin:13px 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{display:block}.feedback-list strong{color:var(--ink-900);font-size:11px}.feedback-list small{margin-top:2px;color:var(--ink-700);font-size:10px;line-height:1.45}.preview-card{margin-bottom:16px}.preview-copy{margin:12px 0 0;color:var(--ink-700);font-size:11px;line-height:1.55}.preview-copy code{color:var(--ink-900);font-family:var(--mono)}.preview-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:13px}.runtime-pill{display:inline-flex;align-items:center;padding:6px 8px;border-radius:999px;color:var(--ink-500);background:#f1f5f7;font-size:9px;font-weight:800;white-space:nowrap}.runtime-pill--compiling{color:#916c10;background:var(--yellow-soft)}.runtime-pill--error{color:var(--red);background:var(--red-soft)}.runtime-pill--ready,.runtime-pill--jar-ready{color:var(--green);background:#edf9f3}.runtime-pill--small{padding:5px 7px}.teavm-display{display:grid;min-height:260px;margin-top:14px;place-items:center;overflow:auto;border:1px solid #b7d9d5;border-radius:9px;color:#668892;background:#102b42;font-size:11px;text-align:center}.teavm-output{width:100%;min-height:100%;margin:0;padding:16px;color:#d2eceb;background:transparent;font:11px/1.65 var(--mono);text-align:left;white-space:pre-wrap}.game-stage{position:relative;min-height:clamp(300px,42vh,620px);margin-top:14px;overflow:hidden;border:1px solid #315a70;border-radius:9px;outline:0;background:radial-gradient(circle at 20% 20%,#19445b 0 1px,transparent 2px),linear-gradient(145deg,#102b42,#0b2033);background-size:28px 28px,auto;color:#9bb8c8;font:11px var(--mono)}.game-canvas{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;display:block}.game-stage:focus-within{box-shadow:0 0 0 3px #25b8a773,inset 0 0 0 1px #7ce2d6}.game-stage:focus-visible{box-shadow:0 0 0 3px #25b8a773,inset 0 0 0 1px #7ce2d6}.game-stage>span{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center}.game-object{position:absolute;display:grid;justify-items:center;transform:translate(-50%,-50%);color:#d9eff0;font:9px/1.2 var(--mono);text-shadow:0 1px 2px #06151f}.game-object-dot{display:block;width:25px;height:25px;margin-bottom:4px;border:2px solid rgb(255 255 255 / 72%);border-radius:7px;background:var(--object-color);box-shadow:0 0 0 5px color-mix(in srgb,var(--object-color) 18%,transparent),0 5px 13px #0000004d}.game-score,.game-win{position:absolute;top:12px;padding:6px 8px;border:1px solid rgb(255 255 255 / 18%);border-radius:6px;color:#e9f7f2;background:#051520ad;font:9px var(--mono);letter-spacing:.08em}.game-score{left:12px}.game-win{right:12px;color:#ffe28f}.game-input-status{position:absolute!important;inset:auto 12px 10px!important;display:block!important;color:#9bb8c8;font-size:9px;text-align:center;opacity:.9}.lab-console{display:flex;justify-content:center;margin-top:14px}.lab-console-shell{width:min(100%,430px,calc((100dvh - 170px) * 4 / 3));padding:16px 16px 20px;border-radius:20px 20px 56px;background:linear-gradient(165deg,#4d587f,#333a5e 55%,#252a48);box-shadow:inset 0 2px #ffffff24,inset 0 -3px #00000059,0 14px 32px #060a187f}.lab-console .game-stage{aspect-ratio:4/3;min-height:0;margin-top:0;border-color:#10142a}.lab-console-stats{display:flex;align-items:center;gap:12px;margin:12px 4px 0;padding:6px 10px;border-radius:8px;background:#141a33;color:#7d8abc;font:10px var(--mono);letter-spacing:.04em}.lab-console-stats b{color:#e9edff;font-weight:700}.lab-console-keys{margin-left:auto;overflow:hidden;color:#ffd166;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.lab-console-pad{display:flex;flex-direction:column;gap:12px;margin-top:14px}.lab-pad-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px}.lab-pad-row>*{flex:0 0 auto}.lab-console-pad button{font-family:inherit;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}.lab-console-pad button:focus-visible{outline:2px solid #7ce2d6;outline-offset:2px}.lab-dpad{display:grid;grid-template:repeat(3,1fr) / repeat(3,1fr);width:104px;height:104px;filter:drop-shadow(0 4px 4px rgb(0 0 0 / 35%))}.lab-dpad button{padding:0;border:0;color:#4a5580;background:#1c2240;font-size:11px;cursor:pointer;touch-action:none}.lab-dpad button[data-dir=up]{grid-area:1/2;border-radius:8px 8px 0 0}.lab-dpad button[data-dir=left]{grid-area:2/1;border-radius:8px 0 0 8px}.lab-dpad button[data-dir=right]{grid-area:2/3;border-radius:0 8px 8px 0}.lab-dpad button[data-dir=down]{grid-area:3/2;border-radius:0 0 8px 8px}.lab-dpad .lab-dpad-hub{grid-area:2/2;display:grid;place-items:center;background:#1c2240}.lab-dpad .lab-dpad-hub:after{content:"";width:14px;height:14px;border-radius:50%;background:#161b33;box-shadow:inset 0 1px 2px #0009}.lab-dpad button.down,.lab-dpad button:active{color:#9fb0ff;background:#2b3462}.lab-actions{display:grid;grid-template:repeat(2,1fr) / repeat(2,1fr);gap:8px;transform:rotate(-18deg)}.lab-actions button{width:42px;height:42px;padding:0;border:0;border-radius:50%;color:#ffe3ec;background:#b03a5b;box-shadow:0 4px #7d2440,0 6px 8px #0006;font:700 13px/1 var(--mono);cursor:pointer;touch-action:none}.lab-actions button>span{display:inline-block;transform:rotate(18deg)}.lab-actions button[data-action=y],.lab-actions button[data-action=b]{transform:translateY(6px)}.lab-actions button.down,.lab-actions button:active{background:#d04f74;box-shadow:0 1px #7d2440;translate:0 3px}.lab-sys{display:flex;align-items:center;justify-content:center;gap:10px}.lab-pill{min-width:64px;padding:5px 12px;border:0;border-radius:999px;color:#8e99c9;background:#1c2240;box-shadow:0 3px #12172e;font:700 9px/1 var(--mono);letter-spacing:.14em;cursor:pointer;touch-action:none}.lab-pill.down,.lab-pill:active{color:#e9edff;background:#2b3462}.game-preview--fullscreen .lab-console{flex:1;min-height:0}.game-preview--fullscreen .lab-console-shell{display:flex;flex-direction:column;flex:1;width:100%;max-width:none;min-height:0}.game-preview--fullscreen .lab-console .game-stage{flex:1;min-height:0;aspect-ratio:auto}.lab-boot{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:#0a1524;color:#7ce2d6;transition:opacity .35s}.lab-boot:before{position:absolute;top:0;right:0;bottom:0;left:0;background:repeating-linear-gradient(0deg,transparent 0 3px,rgb(124 226 214 / 6%) 3px 4px);content:"";pointer-events:none}.lab-boot-logo{font:700 15px/1 var(--mono);letter-spacing:.3em;text-shadow:0 0 12px rgb(124 226 214 / 50%);animation:lab-boot-logo 1s ease-out}@keyframes lab-boot-logo{0%{transform:translateY(-90px);opacity:0}60%{transform:translateY(4px);opacity:1}to{transform:translateY(0)}}.lab-boot-bar{width:130px;height:7px;overflow:hidden;border:1px solid #2b3462;border-radius:999px;background:#10142a}.lab-boot-bar i{display:block;height:100%;background:#7ce2d6;transform-origin:left;animation:lab-boot-bar 1.2s ease-in-out infinite}@keyframes lab-boot-bar{0%{transform:scaleX(0)}55%{transform:scaleX(1)}to{transform:scaleX(1);opacity:.35}}.lab-boot small{max-width:80%;color:#5f7ba0;font:10px var(--mono);text-align:center}.lab-view{position:absolute;top:0;right:0;bottom:0;left:0;z-index:3;display:none;font:600 10px/1.2 var(--mono);color:#9ef5e8;text-shadow:0 1px 2px rgba(4,10,18,.9);pointer-events:none}.lab-view.on{display:block}.lab-view span{position:absolute;padding:2px 5px;border:1px solid rgba(124,226,214,.35);border-radius:4px;background:#0a1524b8;white-space:nowrap}.lab-view-tl{top:4px;left:4px}.lab-view-tr{top:4px;right:4px}.lab-view-br{bottom:4px;right:4px}.preview-title--game{margin:0;color:var(--teal-600);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;color:var(--ink-700);font-size:12.5px;cursor:pointer;-webkit-user-select:none;user-select:none}.preview-switch:hover{background:var(--teal-soft, #dff6f1)}.preview-switch input{position:absolute;width:0;height:0;opacity:0}.preview-switch-track{position:relative;width:32px;height:18px;flex-shrink:0;border-radius:999px;background:var(--line-strong, #c7d8e2);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)}.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);outline-offset:2px}@media(max-width:520px){.lab-console-pad{gap:8px}.lab-dpad{width:88px;height:88px}.lab-actions button{width:36px;height:36px}.lab-pill{min-width:56px}}.button--wide{width:100%;margin-top:12px}.preview-note{margin:9px 0 0;color:var(--ink-500);font-size:9px;line-height:1.45}.editor-shell .runtime-console{padding:0;border:0;border-top:1px solid #344453;border-radius:0;background:#101c28;box-shadow:none}.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}.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, #13a89e);outline-offset:-2px}.terminal-output{margin-top:16px;overflow:hidden;border:1px solid #294457;border-radius:9px;background:#102b3e;color:#d9e8ee}.terminal-output-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px;border-bottom:1px solid #294457;font-size:13px}.terminal-output-heading button{padding:5px 8px;border:1px solid #557384;border-radius:5px;background:transparent;color:#d9e8ee;font-size:12px;cursor:pointer}.terminal-output-heading button[aria-pressed=true]{background:#294b59}.terminal-output pre{margin:0;padding:14px;overflow:auto;font:13px/1.8 var(--mono);white-space:pre;-moz-tab-size:4;tab-size:4}.terminal-output-legend{margin:0;padding:0 14px 12px;color:#b6cbd5;font-size:12px}.sidebar-navigation-scroll{min-height:0;overflow-y:auto;flex:1}.sidebar-track-picker{margin:10px 0}.sidebar-track-trigger{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #294457;border-radius:8px;cursor:pointer;list-style:none}.sidebar-track-trigger::-webkit-details-marker{display:none}.sidebar-track-current{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px}.sidebar-track-current small{color:#aac1cd;font-size:11px}.sidebar-track-current strong{font-size:13px;overflow-wrap:anywhere}.sidebar-track-trigger svg{flex-shrink:0}.sidebar-track-picker[open]>summary svg{transform:rotate(180deg)}.sidebar-track-picker .lesson-list{overflow:visible}.sidebar-backdrop{display:none}@media(max-width:1240px){.app-shell{grid-template-columns:var(--sidebar-size, 220px) 5px minmax(0,1fr) 5px var(--inspector-size, 320px)}.main-region{padding-right:22px;padding-left:22px}}@media(max-width:1000px){.app-shell,.app-shell--sidebar-collapsed .sidebar-region{display:block}.panel-resizer{display:none}.sidebar-region{position:fixed;z-index:30;top:0;bottom:0;left:0;width:282px;visibility:hidden;transform:translate(-102%);transition:transform .22s ease;box-shadow:14px 0 30px #0a1f3033}.app-shell--sidebar-open .sidebar-region{visibility:visible;transform:translate(0)}.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}.sidebar{height:100%}.main-region{padding:0 20px 40px}.mobile-header{display:flex;position:relative;z-index:10;align-items:center;justify-content:space-between;gap:12px;min-height:60px;margin:0 -20px 24px;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;flex-basis:28px;font-size:12px}.mobile-status{color:var(--ink-500);font-size:10px}.workspace-toolbar{display:flex}.workspace-toolbar .sidebar-toggle,.workspace-toolbar .toolbar-note{display:none}.inspector-region{position:static;max-height:none;padding:0 20px 35px;border-left:0;overflow:visible}}@media(max-width:680px){.main-region,.inspector-region{padding-right:14px;padding-left:14px}.mobile-header{margin-right:-14px;margin-left:-14px;padding-right:14px;padding-left:14px}.lesson-heading-row{display:block}.lesson-tag{display:inline-flex;margin-top:13px}.tips-row{align-items:flex-start;flex-direction:column}.tips-row span{padding-left:0;border-left:0}.task-list{grid-template-columns:1fr}.task-button{min-height:58px}.editor-action-bar{align-items:flex-start}.editor-action-bar-secondary{flex:1}.editor-action-bar .button{padding:8px;font-size:10px}.button--solution{margin-left:0}.teavm-display{min-height:220px}.section-heading-row{align-items:flex-start}.language-badge{font-size:9px}}@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}.playground-help{margin:8px 0 16px}.playground-help summary{width:fit-content;cursor:pointer;color:var(--ink-700, #36576b);font-size:14px;padding:6px 0}.playground-help p{margin:8px 0}.playground-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin-top:16px}.playground-toolbar>.game-course-actions,.playground-toolbar>.playground-tools{display:flex;flex-wrap:wrap;align-items:center;gap:10px;min-width:0}.playground-toolbar button,.playground-toolbar a.button{margin:0;flex-shrink:0}.playground-toolbar .playground-tools>[role=status]{flex-basis:100%;margin:4px 0 0}.game-control-hint{margin:0 0 12px;color:var(--text-muted, #526b79);font-size:12px;line-height:1.5}.telemetry-status{margin:0 16px 12px;font-size:11px;line-height:1.5;color:var(--text-muted, #667085);overflow-wrap:anywhere}.sidebar-brand-copy span{overflow-wrap:anywhere}
