:root{color:#1f2933;background-color:#f7f9fc;font-family:system-ui,Apple SD Gothic Neo,Malgun Gothic,sans-serif;line-height:1.5}body{min-height:100vh;margin:0}.app{max-width:960px;margin:0 auto;padding:2rem 1rem}.board{box-sizing:border-box;background:#cbd5e1;border-radius:8px;gap:4px;width:min(100%,480px);padding:4px;display:grid}.board-cell{aspect-ratio:1;color:#ad6700;background:#fff;border-radius:4px;place-items:center;font-size:clamp(1.25rem,6vw,2.5rem);display:grid;position:relative}.board-wall{background:#475569}.board-goal{background:#fff1c2}.board-robot{color:#2563eb;position:absolute}*{box-sizing:border-box}button,select{font:inherit}button{cursor:pointer;color:inherit;background:#fff;border:1px solid #94a3b8;border-radius:6px;padding:.4rem .65rem}button:disabled{cursor:default;opacity:.45}button:focus-visible,select:focus-visible{outline-offset:2px;outline:3px solid #2563eb}.game-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:1.5rem;display:grid}.editor{overflow-wrap:anywhere;min-width:0}.editor h2{margin-top:0}.palette,.block-actions,.repeat-controls,.block-heading{flex-wrap:wrap;align-items:center;gap:.4rem;display:flex}.block-list{margin:.6rem 0;padding:0;list-style:none}.block-list .block-list{border-left:2px solid #94a3b8;margin-left:min(2vw,.8rem);padding-left:min(2vw,.8rem)}.block{background:#fff;border:1px solid #cbd5e1;border-radius:6px;min-width:0;margin:.5rem 0;padding:.5rem}.block-selected{background:#eff6ff;border:2px solid #2563eb}.block-actions,.repeat-controls{margin-top:.5rem}@media (width<=700px){.game-layout{grid-template-columns:minmax(0,1fr)}}.playback-controls{flex-wrap:wrap;align-items:center;gap:.5rem;margin-top:1rem;display:flex}.playback-controls [aria-pressed=true]{background:#dbeafe;border-color:#2563eb}.block-active{background:#fef3c7;outline:3px solid #b45309}.board-bump{outline:4px solid #dc2626}.board-bump .board-robot{color:#dc2626}.modal-backdrop{z-index:10;background:#0008;place-items:center;padding:1rem;display:grid;position:fixed;inset:0}.result-modal{overflow-wrap:anywhere;background:#fff;border-radius:12px;width:min(100%,420px);max-height:90vh;padding:1.5rem;overflow:auto}.stage-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:1rem;padding:0;list-style:none;display:grid}.stage-list li{flex-direction:column;gap:8px;min-width:0;display:flex}.stage-card{text-align:left;overflow-wrap:anywhere;flex-direction:column;flex:1;gap:.5rem;width:100%;display:flex}.app h1{overflow-wrap:anywhere}button{touch-action:manipulation;border-radius:10px;min-width:48px;min-height:48px}button small{font-size:.75rem;display:block}.block-symbol,.control-symbol{font-size:1.85rem;line-height:1.25;display:block}.block-heading strong{align-items:center;gap:.6rem;display:flex}.block-heading small{font-size:.8rem}.palette{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;display:grid}.block-forward{color:#173d70;background:#e0edff;border-color:#4269a0}.block-turnLeft,.block-turnRight{color:#1b5130;background:#e1f4e7;border-color:#407451}.block-repeat{color:#713e0b;background:#fff0db;border-color:#9b5b13}.block-actions button,.repeat-controls button{font-size:1.5rem}.repeat-controls output{font-size:1.75rem;font-weight:700}.block-selected{border:4px solid #713e0b}.block-active{outline-offset:-4px;outline:4px solid #713e0b;box-shadow:inset 0 0 0 7px #fff}.app:has(.play-page){height:100dvh;padding-block:.75rem}.play-page{flex-direction:column;gap:.5rem;height:100%;min-height:0;display:flex}.play-page h1{margin:0;font-size:1.4rem}.stage-controls{flex-shrink:0;margin:0}.stage-goal,.stage-hint{margin:0}.stage-hint{flex-shrink:0}.stage-goal{font-size:.9rem}.goal-symbol{font-size:1.4rem}.play-page .game-layout{flex:1;align-items:stretch;min-height:0}.map-panel{z-index:2;background:#f7f9fc;border-radius:12px;align-self:start;min-width:0;padding:.4rem;position:sticky;top:.75rem}.map-panel .board{width:min(100%, calc((100dvh - 380px) * var(--board-ratio)))}.execution-controls{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:.5rem;display:grid}.execution-controls button{padding-inline:.2rem}.run-button{color:#fff;background:#17643a;border-color:#17643a;min-height:64px}.run-button .control-symbol{font-size:2rem}.editor{flex-direction:column;gap:.35rem;min-height:0;display:flex}.editor h2,.editor h3,.editor p{margin:0}.editor h2{font-size:1rem}.editor h3{font-size:.9rem}.editor p{font-size:.8rem}.editor>:not(.workspace){flex-shrink:0}.workspace{overscroll-behavior:contain;scrollbar-gutter:stable;border:1px solid #94a3b8;border-radius:10px;flex:1;min-height:0;padding:.4rem;overflow-y:auto}.workspace:focus-visible{outline:3px solid #2563eb}.result-symbol{color:#8a5100;text-align:center;font-size:3rem}.result-modal h2{font-size:1.1rem}@media (width<=700px){.app:has(.play-page){padding:.5rem .75rem max(.5rem, env(safe-area-inset-bottom))}.play-page{gap:.25rem}.play-page h1{font-size:1.1rem}.stage-controls{gap:.25rem}.stage-controls button{align-items:center;gap:.3rem;padding:.2rem .4rem;display:flex}.stage-controls .control-symbol{font-size:1.5rem}.stage-goal{font-size:.8rem}.play-page .game-layout{grid-template-rows:auto minmax(0,1fr) auto;gap:.35rem}.map-panel{display:contents}.map-panel .board{width:min(100%, var(--mobile-board-width));grid-row:1;justify-self:center}.execution-controls{z-index:2;background:#f7f9fc;grid-row:3;grid-template-columns:repeat(6,minmax(0,1fr));gap:.25rem;margin:0}.execution-controls button{min-width:48px;font-size:.75rem}.execution-controls .control-symbol{font-size:1.75rem}.editor{grid-row:2;gap:.2rem}.editor h2{font-size:.85rem}.editor h3{font-size:.8rem}.editor p{font-size:.7rem;line-height:1.25}.palette{grid-template-columns:repeat(4,minmax(0,1fr));gap:.25rem}.palette button{padding:.2rem}.palette small{font-size:.65rem}.workspace{padding:.2rem}.block{flex-wrap:wrap;align-items:center;gap:.25rem;padding:.25rem;display:flex}.block-heading{flex:1}.block-heading strong{flex-wrap:wrap;gap:.25rem}.block-heading small{font-size:.65rem}.block-actions{gap:.2rem;margin:0}.block-actions button{padding:.1rem}.block>.block-list{flex-basis:100%}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.app:has(.play-page){max-width:1280px}.play-page .game-layout{grid-template-columns:minmax(240px,300px) minmax(0,1fr);gap:1rem}.palette{grid-template-columns:repeat(4,minmax(0,1fr))}.workspace{overflow:auto}@media (width<=700px){.play-page .game-layout{grid-template-columns:minmax(0,1fr);gap:.35rem}.map-panel .board{width:min(100%, var(--compact-board-width), max(var(--mobile-board-width), var(--min-board-width)))}}.theme-symbol{vertical-align:middle;width:32px;height:32px;display:inline-block}.block-symbol .theme-symbol{width:36px;height:36px}.robot-art{width:36px;height:36px;display:block}.world-switch{z-index:3;gap:4px;display:flex;position:absolute;top:6px;right:6px}.play-page{position:relative}.play-page:has(.world-switch) h1{padding-right:160px}.world-switch button{background:#ffffffe0;padding:4px}.world-switch [aria-pressed=true]{outline-offset:-3px;outline:3px solid #476f9d}.world-gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:24px 0;display:grid}.world-preview{border-radius:22px;padding:24px 16px;box-shadow:0 6px 18px #24382b15}.world-preview .theme-symbol{width:64px;height:64px}.world-preview h2{font-size:1.4rem}.world-preview p{margin-bottom:0}.world-heading{border-radius:12px;align-items:center;gap:12px;margin-top:24px;padding:12px 16px;display:flex}.world-sketchbook{color:#68513b;background:#fff3d6}.world-train{color:#264332;background:#d9edc3}.world-handheld{color:#2b4230;background:#d9decf}@media (width<=700px){.play-page.theme-sketchbook,.play-page.theme-train,.play-page.theme-handheld{box-shadow:none;border-width:0;border-radius:8px;padding:4px}.play-page.theme-sketchbook{border-left:3px dotted #899098}.theme-handheld .map-panel{display:contents}.theme-train h1{padding:0 6px;font-family:Do Hyeon,sans-serif}.world-switch{gap:2px;top:0;right:0}.world-switch button{width:44px;min-width:44px;height:44px;min-height:44px}.world-switch .theme-symbol{width:24px;height:24px}.play-page:has(.world-switch) h1{min-height:44px;padding-right:140px;font-size:.95rem}.world-gallery{grid-template-columns:1fr;gap:10px}.world-preview{padding:12px 18px}.world-preview .theme-symbol{float:right;width:48px;height:48px}.theme-handheld .board{border-width:3px}}.play-page .editor>h2,.play-page .editor>h3,.play-page .insertion-status{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.play-page .game-layout{grid-template-columns:minmax(280px,38%) minmax(0,1fr)}.play-page .map-panel .art-board,.play-page .map-panel .train-island{width:100%;max-height:calc(100dvh - 390px)}.art-board .board-robot{position:static}.home-page{background:linear-gradient(#e0f2fe,#fffaf0);border-radius:28px;padding:26px;font-family:Do Hyeon,sans-serif;box-shadow:0 14px 40px #6b5b3e22}.home-page h1{color:#2b2d42;margin:0;font-size:clamp(36px,6vw,64px)}.home-page>p{font-size:20px}.home-page .playback-controls button{background:#fff7ed;border:0;border-radius:999px;padding:12px 26px;font-size:20px;box-shadow:0 5px #d6b98c}.home-page .playback-controls button:first-child{color:#fff;background:#dc2626;font-size:26px;box-shadow:0 7px #7f1d1d}.world-preview{padding:20px;overflow:hidden}.world-scene{width:100%;height:180px;display:block}.world-preview.world-sketchbook{background:repeating-linear-gradient(#0000 0 27px,#c9dcf0 27px 28px),#fffaf0;border-left:6px dotted #899098;font-family:Gamja Flower;transform:rotate(-2deg)}.world-preview.world-train{background:linear-gradient(#7dd3fc,#e0f2fe 65%,#84cc16 65%);font-family:Do Hyeon;transform:rotate(1deg)}.world-preview.world-handheld{background:linear-gradient(160deg,#e8e1d3,#c9bfab);border-radius:20px 20px 50px;box-shadow:inset -5px -6px #0001,inset 4px 4px #fff8}.world-preview.world-handheld .world-scene{background:#9bbc0f;border:14px solid #56586b;border-radius:12px 12px 24px}.stage-world{border-radius:20px;margin-top:18px;padding:12px 18px}.stage-world.world-sketchbook{background:repeating-linear-gradient(#0000 0 37px,#c9dcf0 37px 38px),#fffaf0;border-left:6px dotted #899098;font-family:Gaegu}.stage-world.world-train{background:linear-gradient(#7dd3fc,#e0f2fe 65%,#84cc16 65%);font-family:Do Hyeon}.stage-world.world-handheld{background:linear-gradient(160deg,#e8e1d3,#c9bfab);font-family:Do Hyeon}.stage-world .world-heading{background:0 0;margin:0}.stage-world .stage-card{border:0;border-radius:16px;padding:16px;box-shadow:0 5px #0002}.world-sketchbook .stage-card{background:#fffdf5;border:2px dashed #a49a87}.world-train .stage-card{color:#78350f;background:#fffbeb}.world-handheld .stage-card{color:#ffd166;background:#3a3c4e;box-shadow:inset 0 -5px #0004}@media (width<=700px){.play-page .game-layout{grid-template-columns:minmax(0,1fr)}.play-page .map-panel .art-board{width:min(100%,max(200px,var(--mobile-board-width)));height:min(22dvh,150px);max-height:150px}.play-page .map-panel .train-island{width:min(100%,300px);height:22dvh;max-height:150px}.play-page .stage-controls button{min-height:44px}.home-page{padding:18px}.home-page .world-gallery{grid-template-columns:1fr}.world-scene{height:120px}.world-preview{padding:12px 16px}.world-preview h2{margin:8px 0}.world-preview .world-scene{float:right;width:42%}}@media (width<=700px) and (height<=590px){.play-page .map-panel .art-board,.play-page .map-panel .train-island{height:75px}.theme-handheld .palette{grid-template-rows:44px 44px}.theme-handheld .palette:after{display:none}.theme-handheld .palette button.block-repeat{grid-row:1/3}}.play-page>:not(.game-layout){flex-shrink:0}.play-page .stage-goal{max-height:48px;font-size:16px;line-height:24px;overflow-y:auto}.play-page button small{white-space:nowrap;font-size:13px;line-height:16px}.play-page .block-budget p{font-size:14px;line-height:20px}.play-page .execution-controls button{min-width:44px}.play-page .execution-controls .run-button small{white-space:nowrap}.stage-select-page{background:linear-gradient(#e0f2fe,#fffaf0);border-radius:28px;padding:26px;font-family:Do Hyeon,sans-serif;box-shadow:0 14px 40px #6b5b3e22}.stage-select-page>h1{color:#2b2d42;margin:0 0 16px}.stage-select-page>button{background:#fff7ed;border:0;border-radius:999px;padding:10px 24px;box-shadow:0 4px #d6b98c}.earned-star .theme-symbol{fill:#f6c343;stroke:#a66a12}.empty-star .theme-symbol{fill:none;opacity:.35}[data-page-title]:focus{outline:none}@media (width>=701px){.play-page .map-panel .art-board,.play-page .map-panel .train-island{max-height:240px}.play-page .execution-controls button{height:64px;min-height:64px}.play-page .repeat-frame{flex-wrap:nowrap}.play-page .repeat-frame>.tile-list{flex:0 auto}}@media (width<=700px){.play-page .game-layout{grid-template-rows:110px minmax(0,1fr) 64px}.play-page .map-panel .art-board,.play-page .map-panel .train-island{height:110px;max-height:110px}.play-page .execution-controls{grid-template-columns:1.65fr repeat(5,minmax(44px,1fr));gap:2px}.play-page .execution-controls button{min-width:44px;height:64px;min-height:64px;padding:0}.play-page .execution-controls .theme-symbol{width:26px;height:26px}.play-page .execution-controls .run-button small{font-size:16px}.play-page .editor{gap:3px}.play-page .palette{margin:0}.play-page .workspace{--tile-size:50px;--tile-gap:6px;scrollbar-gutter:auto;grid-template-columns:repeat(5,50px);grid-auto-rows:50px;align-content:start;gap:6px;padding:6px;display:grid}.play-page .workspace .tile-list,.play-page .workspace .tile-item,.play-page .workspace .repeat-frame{display:contents}.play-page .workspace .tile-item:after,.play-page .workspace .crayon-bracket,.play-page .workspace .engine-art{display:none}.play-page .workspace .block-tile{width:50px;min-width:50px;height:50px;min-height:50px;margin:0;padding:10px 2px 2px}.play-page .workspace .block-symbol .theme-symbol{width:30px;height:30px}.play-page .workspace .block-repeat{outline:2px dashed var(--c,#e4572e);outline-offset:-2px}.play-page .has-selection .workspace{padding-top:58px}.play-page .workspace .block-tile small{font-size:11px;line-height:12px;top:1px}.play-page .workspace .block-repeat .block-symbol{display:none}.play-page .workspace .block-repeat strong{white-space:nowrap;padding:0;font-size:16px;line-height:20px}.play-page .insertion-marker{display:none}.home-page .world-preview{grid-template-columns:minmax(0,1fr) 42%;align-items:center;column-gap:12px;display:grid}.home-page .world-preview .world-scene{float:none;grid-area:1/2/3;width:100%}.home-page .world-preview h2,.home-page .world-preview p{grid-column:1;margin:4px 0}.stage-select-page{padding:18px}}@media (width<=700px) and (height<=590px){.play-page .game-layout{grid-template-rows:75px minmax(0,1fr) 64px}.play-page .map-panel .art-board,.play-page .map-panel .train-island{height:75px}}.repeat-ribbon,.empty-repeat-label{display:none}.play-page .repeat-frame{--repeat-ink:#c56030;--repeat-paper:#ffe5bb}.play-page .repeat-frame[data-repeat-tone="1"]{--repeat-ink:#7b529c;--repeat-paper:#e9d9ff}.play-page .repeat-frame[data-repeat-tone="2"]{--repeat-ink:#237e81;--repeat-paper:#c8f0e5}.theme-handheld .repeat-frame .repeat-ribbon{border:2px dashed var(--repeat-ink);box-shadow:inset 0 0 0 5px var(--repeat-paper);pointer-events:none;z-index:-1;background:0 0;display:block;position:absolute;inset:-3px}.theme-handheld .workspace .block-tile{isolation:isolate}.theme-handheld .workspace .empty-repeat{display:none}.theme-handheld .workspace .empty-repeat-label{white-space:nowrap;font-size:10px;line-height:12px;display:block;position:absolute;bottom:0}.theme-handheld .workspace .block-repeat:has(.empty-repeat-label) strong{transform:translateY(-5px)}@media (width<=700px){.play-page .workspace .block-tile{isolation:isolate}.play-page .repeat-frame .repeat-ribbon{border-block:3px solid var(--repeat-ink);box-shadow:inset 0 0 0 5px var(--repeat-paper);pointer-events:none;z-index:-1;background:0 0;display:block;position:absolute;inset:-3px}.play-page.theme-sketchbook .repeat-ribbon{border-inline:2px solid var(--repeat-ink);border-radius:8px}.play-page.theme-handheld .repeat-ribbon{border:2px dashed var(--repeat-ink)}.play-page .workspace .empty-repeat{display:none}.play-page .workspace .empty-repeat-label{white-space:nowrap;font-size:10px;line-height:12px;display:block;position:absolute;bottom:0}.play-page .workspace .block-repeat:has(.empty-repeat-label) strong{transform:translateY(-5px)}}.play-page .palette button:disabled,.play-page .block-tile:disabled,.play-page button.run-button:disabled{opacity:1;filter:none;cursor:not-allowed}.theme-handheld .repeat-frame .repeat-ribbon{inset:auto -3px calc(-3px + var(--ribbon-depth) * 3px);border:0;border-bottom:2px solid var(--ribbon-ink);height:0;box-shadow:none}@media (width<=700px){.play-page .repeat-frame .repeat-ribbon{inset:auto -3px calc(-3px + var(--ribbon-depth) * 3px);border:0;border-bottom:2px solid var(--ribbon-ink);height:0;box-shadow:none;border-radius:0}.app:has(.home-page){padding:12px}.home-page{padding:16px}.home-page h1{overflow-wrap:normal;font-size:clamp(32px,9vw,40px);line-height:1.2}.home-page>p{margin:8px 0;font-size:16px;line-height:20px}.home-page .world-gallery{gap:12px;margin:16px 0}.home-page .world-preview{grid-template-columns:minmax(0,1fr) 36%;column-gap:12px;padding:10px 12px;transform:none}.home-page .world-preview .world-scene{min-width:0;height:76px}.home-page .world-preview h2{margin:0 0 4px;font-size:20px;line-height:24px}.home-page .world-preview p{margin:0;font-size:14px;line-height:18px}.home-page .world-preview.world-handheld .world-scene{border-width:7px}.home-page .playback-controls{gap:8px;margin-top:12px}.home-page .playback-controls button,.home-page .playback-controls button:first-child{min-height:48px;padding:8px 16px;font-size:18px;line-height:24px}}@media (width<=700px) and (height<=590px){.home-page .world-gallery{margin:12px 0}.home-page .world-preview{padding-block:8px}.home-page .world-preview .world-scene{height:64px}.home-page .playback-controls button,.home-page .playback-controls button:first-child{padding-inline:10px;font-size:16px}}.board-hint{color:#7840a0}.theme-handheld .board-hint{color:#0f380f}.board-cell.board-hint{outline-offset:-5px;outline:4px double}.play-page .stage-hint{border:2px solid var(--hint-ink);background:var(--hint-paper);color:var(--hint-ink);border-radius:8px;align-items:center;gap:6px;padding:4px 8px;display:flex}.play-page .stage-hint p{overflow-wrap:anywhere;flex:1;min-width:0;margin:0;font-size:14px;line-height:20px}.stage-hint p>span{white-space:nowrap;font-weight:700}.hint-actions{flex-shrink:0;align-items:center;gap:4px;display:flex}.play-page .stage-hint button{border:1px solid var(--hint-ink);min-width:44px;min-height:44px;color:var(--hint-ink);background:var(--hint-paper);box-shadow:none;border-radius:6px;margin:0;padding:2px 5px;font-size:13px;line-height:18px}.stage-hint button:last-child{font-size:26px}.theme-sketchbook{--hint-ink:#59431c;--hint-paper:#fff1a8}.theme-train{--hint-ink:#633713;--hint-paper:#ffedc9}.theme-handheld{--hint-ink:#0f380f;--hint-paper:#c4d58a}.play-page.theme-sketchbook .stage-hint{border-style:dashed;border-radius:2px 8px 8px 3px;box-shadow:2px 2px #59431c30}.play-page.theme-train .stage-hint{border-radius:5px;box-shadow:inset 0 -3px #63371325}.play-page.theme-handheld .stage-hint{border-radius:2px;box-shadow:inset 0 0 0 2px #8bac0f}@media (width<=700px){.play-page .stage-hint{gap:4px;padding:2px 4px}.play-page .stage-hint p{font-size:13px;line-height:18px}.play-page .stage-hint button:first-child:not(:last-child){white-space:nowrap;width:auto}}.home-page{position:relative}.privacy-info-button{align-self:flex-end;min-width:44px;min-height:44px;font-size:1.5rem}.privacy-modal{box-sizing:border-box;text-align:left;width:min(460px,100vw - 32px);max-height:calc(100dvh - 32px);overflow-y:auto}.privacy-modal p{overflow-wrap:anywhere;line-height:1.5}.privacy-modal button{min-width:44px;min-height:44px}.teacher-guide-link{color:#1e40af;align-items:center;min-width:44px;min-height:44px;text-decoration:underline;display:inline-flex}.home-tools{justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px;display:flex}.language-button{white-space:nowrap;justify-content:center;align-items:center;gap:8px;min-width:44px;min-height:44px;display:inline-flex}.language-button svg{flex-shrink:0}:lang(en) :is(.editor,.result-modal,.stage-card,.app h1,.privacy-modal p,.play-page .stage-hint p){overflow-wrap:normal;word-break:normal;-webkit-hyphens:manual;hyphens:manual}:lang(en) .play-page .stage-goal{max-height:none;overflow:visible}:lang(en) .play-page .stage-hint{flex-wrap:wrap}:lang(en) .play-page .stage-hint p{flex-basis:200px}:lang(en) .play-page .hint-actions{margin-left:auto}:lang(en) .play-page.theme-train .execution-controls .run-button small{white-space:normal;line-height:1.15}@media (width<=700px){:lang(en) .theme-train .palette-row .palette button{grid-template-rows:28px auto;height:76px}:lang(en) .play-page.theme-train .palette small{white-space:normal;overflow-wrap:normal;word-break:normal;line-height:16px}}.conditions-page .palette{grid-template-columns:repeat(5,minmax(44px,1fr))}.conditions-page .palette button{width:auto}.conditions-page .palette .block-if small{font:16px/18px Do Hyeon,sans-serif;display:block}.conditions-page .workspace .block-if{flex-flow:wrap;gap:1px;position:relative}.conditions-page .workspace .block-if .block-symbol{width:20px}.conditions-page .workspace .block-if .block-symbol svg{width:20px;height:20px}.conditions-page .workspace .block-if strong{font-size:16px}.conditions-page .workspace .block-if .sensor-icon{width:20px;height:20px}.conditions-page .workspace .block-if .skip-label{justify-content:center;width:100%;font-size:9px;line-height:10px}@media (width<=700px){.conditions-page .game-layout{position:relative}.conditions-page .variant-cards{flex-direction:column;gap:2px;width:80px;position:absolute;top:0;left:0}.conditions-page .variant-cards button{height:44px;min-height:44px}.conditions-page .sensor-status{max-width:calc(100% - 84px);margin:0;position:absolute;top:0;right:0}.conditions-page .map-panel .board{align-self:end;width:calc(100% - 84px);height:86px;max-height:86px;margin-left:84px}.conditions-page .palette{grid-template-rows:56px;grid-template-columns:repeat(5,minmax(44px,1fr));gap:3px;width:100%;height:56px}.conditions-page .palette button{border-radius:6px;grid-area:auto;width:100%;min-width:44px;height:56px;min-height:44px;padding:2px}.conditions-page .palette button.block-repeat{grid-area:auto;width:100%;height:56px;font-size:12px}.conditions-page .palette:before,.conditions-page .palette:after{display:none}.conditions-page .palette .block-if{grid-template-columns:1fr 1fr;align-content:center;display:grid}.conditions-page .palette .block-if small{grid-column:1/3}.conditions-page .palette .block-if .theme-symbol{width:22px;height:22px}}@media (width<=700px) and (height<=590px){.conditions-page .game-layout{grid-template-rows:96px minmax(0,1fr) 64px}.conditions-page .map-panel .board{height:74px;max-height:74px}}.conditions-page .if-skipped>.tile-list .block-tile{opacity:.45}.play-page.conditions-page .palette-row{gap:6px}.play-page.conditions-page .palette-row .palette{flex:1;grid-template-rows:64px;grid-template-columns:repeat(5,minmax(44px,1fr));gap:8px;width:auto;height:64px;margin:0;padding:0;display:grid}.play-page.conditions-page .palette-row .palette button{aspect-ratio:auto;grid-area:auto;grid-template-rows:28px 16px;align-content:center;justify-items:center;gap:0;width:100%;min-width:44px;height:64px;min-height:44px;padding:0;display:grid;transform:none}.play-page.conditions-page .palette:before,.play-page.conditions-page .palette:after{display:none}.play-page.conditions-page .palette .block-if{grid-template-columns:1fr 1fr}.play-page.conditions-page .palette .block-if small{grid-column:1/3;font:700 12px/16px monospace;display:block}.play-page.conditions-page .palette .block-if .theme-symbol,.play-page.conditions-page .palette .block-if .sensor-icon{width:22px;height:22px}.play-page.conditions-page .variant-cards{flex-flow:row}@media (width<=700px){.play-page.conditions-page .game-layout{grid-template-rows:176px minmax(0,1fr) 64px}.play-page.conditions-page .variant-cards{gap:6px;width:100%;position:absolute;top:0;left:0}.play-page.conditions-page .variant-cards button{flex:0 0 90px;width:90px;height:44px}.play-page.conditions-page .sensor-status{max-width:100%;height:20px;top:46px;left:0;right:0}.play-page.conditions-page .map-panel .board{align-self:end;width:min(100%,240px);height:110px;max-height:110px;margin:0}.play-page.conditions-page .palette-row .palette{grid-template-rows:52px;gap:5px;height:52px}.play-page.conditions-page .palette-row .palette button{height:52px;box-shadow:none}.play-page.conditions-page .palette-row .palette .theme-symbol{width:24px;height:24px}.play-page.conditions-page .palette-row .palette small{font-size:10px;line-height:16px}}@media (width<=700px) and (height<=590px){.play-page.conditions-page .game-layout{grid-template-rows:141px minmax(0,1fr) 64px}.play-page.conditions-page .map-panel .board{height:75px;max-height:75px}}.play-page .workspace .if-frame{background:#eee5fa;border:3px double #69439b;border-radius:0 14px;padding:5px}.play-page .workspace .if-frame:before{display:none}.play-page .workspace .if-skipped{background:#eee9f3}.play-page .workspace .if-skipped>.tile-list .block-tile{opacity:.45}.play-page .workspace .if-ribbon{border:0;height:calc(100% - 2px);box-shadow:none;pointer-events:none;z-index:-1;background:#69439b12;border:2px dashed #69439b;border-inline-style:solid;border-radius:0 8px;display:block;position:absolute;inset:1px -3px auto}.play-page .workspace .block-tile:has(.if-ribbon){isolation:isolate}.play-page .workspace .ribbon-skipped{background:repeating-linear-gradient(135deg,#69439b22 0 3px,#0000 3px 7px)}@media (width<=700px){.play-page .workspace .if-frame{display:contents}}.play-page.conditions-page .block-if{--c:#69439b;color:#38205b;background:#eee5fa}.play-page .workspace .if-skipped>.tile-list{opacity:1}@media (width<=700px){.play-page.conditions-page .editor{padding-inline:4px}}.play-page.conditions-page.theme-sketchbook .palette-row .palette{grid-template-columns:repeat(5,minmax(44px,64px));justify-content:start}.play-page.conditions-page.theme-sketchbook .palette-row .palette button{aspect-ratio:1;border-radius:50%;width:100%;height:auto}.play-page.conditions-page .workspace .block-tile.block-if{grid-template-rows:20px 18px;grid-template-columns:20px 20px;place-content:center;justify-items:center;gap:0;padding:10px 2px 2px;line-height:1;display:grid}.play-page.conditions-page .workspace .block-if .block-symbol{grid-area:1/1;line-height:0}.play-page.conditions-page .workspace .block-if strong{grid-area:1/2;padding:0;font:700 14px/20px monospace}.play-page.conditions-page .workspace .block-if .sensor-icon{grid-area:2/1/auto/3;width:18px;height:18px}.play-page.conditions-page .workspace .block-if .sensor-icon svg{width:100%;height:100%}.play-page.conditions-page .workspace .block-if .skip-label,.play-page.conditions-page .workspace .block-if .empty-repeat-label{width:100%;height:10px;font-size:8px;line-height:10px;position:absolute;bottom:0;left:0}.play-page.conditions-page .workspace .block-if:has(.skip-label,.empty-repeat-label){padding-top:2px;padding-bottom:10px}.play-page.conditions-page.theme-handheld .palette-row .palette{flex:none;grid-template-rows:repeat(3,48px);grid-template-columns:repeat(3,48px) 12px 64px 12px 64px;gap:0;width:300px;height:144px}.play-page.conditions-page.theme-handheld .palette-row .palette button{color:#fff;background:#2b2d42;border-radius:0;width:48px;height:48px;box-shadow:inset 0 -5px #0007}.play-page.conditions-page.theme-handheld .palette .block-forward{border-radius:8px 8px 0 0;grid-area:1/2}.play-page.conditions-page.theme-handheld .palette .block-turnLeft{border-radius:8px 0 0 8px;grid-area:2/1}.play-page.conditions-page.theme-handheld .palette .block-turnRight{border-radius:0 8px 8px 0;grid-area:2/3}.play-page.conditions-page.theme-handheld .palette:before{grid-area:2/2;display:block}.play-page.conditions-page.theme-handheld .palette:after{grid-area:3/2;display:block}.play-page.conditions-page.theme-handheld .palette-row .palette :is(.block-repeat,.block-if){color:#3a2a00;background:#ffb703;border-radius:50%;grid-area:1/5/4;align-self:center;width:64px;height:64px;box-shadow:inset 0 -6px #0005,0 6px #0002}.play-page.conditions-page.theme-handheld .palette-row .palette .block-if{color:#fff;background:#69439b;grid-column:7}.play-page.conditions-page.theme-handheld .palette .block-repeat{grid-template-rows:24px 12px}.play-page.conditions-page.theme-handheld .palette .handheld-button-letter{font:18px/24px "Press Start 2P"}.play-page.conditions-page.theme-handheld .palette .block-repeat small{font:700 9px/12px monospace}.play-page.conditions-page.theme-handheld .palette .block-if{grid-template-rows:24px 16px}.play-page.conditions-page.theme-handheld .workspace .block-if{color:#fff;background:#69439b}.board-sensor{pointer-events:none}.theme-handheld .board-sensor{color:#0f380f}@media (width<=700px){.play-page.conditions-page.theme-sketchbook .palette-row .palette{grid-template-columns:repeat(5,minmax(44px,52px))}.play-page.conditions-page.theme-handheld .palette-row .palette{grid-template-rows:repeat(2,44px);grid-template-columns:repeat(3,44px) 8px 58px 8px 58px;width:264px;height:88px}.play-page.conditions-page.theme-handheld .palette-row .palette button{width:44px;height:44px}.play-page.conditions-page.theme-handheld .palette-row .palette :is(.block-repeat,.block-if){grid-row:1/3;width:58px;height:58px}.play-page.conditions-page.theme-handheld .palette:after{display:none}}.play-page.conditions-page.while-page .palette-row .palette{grid-template-rows:52px;grid-template-columns:repeat(5,minmax(44px,1fr));gap:4px;width:100%;height:52px;margin:0;display:grid}.play-page.conditions-page.while-page .palette-row .palette button{width:100%;min-width:44px;height:52px;box-shadow:none;border-radius:8px;grid-area:auto;align-self:center}.play-page.conditions-page.while-page .palette:before,.play-page.conditions-page.while-page .palette:after{display:none}.play-page.conditions-page.while-page .palette .block-while{color:#123f37;background:#d4eee5;grid-template-columns:1fr 1fr;align-content:center;display:grid}.play-page.conditions-page.while-page .palette .block-while small{grid-column:1/3;font:700 10px/12px monospace;display:block}.play-page.conditions-page.while-page .palette .block-while :is(.block-symbol,.sensor-icon){width:18px;height:18px}.play-page.conditions-page.while-page .palette .block-while svg{width:100%;height:100%}.play-page.conditions-page.while-page .workspace .while-frame{background:#e6f4ee;border:3px double #15665b;border-radius:18px;display:flex}.play-page.conditions-page.while-page .workspace .block-while{color:#123f37;background:#d4eee5}.play-page.conditions-page.while-page .palette-row .palette{flex:1;width:auto;min-width:0}.play-page.conditions-page.while-page .palette-row .palette:not(:has(.block-repeat)){grid-template-columns:repeat(4,minmax(44px,1fr))}.play-page.conditions-page.while-page .palette-row .palette :is(.block-forward,.block-turnLeft,.block-turnRight,.block-repeat,.block-while){border-radius:8px;grid-area:auto;width:100%;height:52px}.play-page.conditions-page.while-page .palette .block-while{grid-template-rows:18px 12px}.play-page.conditions-page.theme-train .palette button.block-while{--c:#15665b;background:var(--c);color:#fff}.functions-page .editor{min-height:0}.functions-page .program-panels{flex:1;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;min-height:0;display:grid;overflow:hidden}.functions-page .main-panel{flex-direction:column;min-width:0;min-height:0;display:flex}.functions-page .main-panel .workspace-shell{flex:1;min-height:0}.functions-page .function-panel{flex-direction:column;gap:8px;min-height:0;padding:4px;display:flex;overflow:auto}.functions-page .function-card{color:#33230f;background:#fff7dc;border:3px solid #77522a;border-radius:10px;flex-shrink:0;padding:5px}.functions-page .function-card header{justify-content:space-between;align-items:center;gap:4px;display:flex}.functions-page .function-active,.functions-page .workspace .block-call.block-active{outline-offset:1px;background:#dbf5ef;outline:3px solid #126b65}.functions-page .function-target{border-style:dashed}.functions-page .function-card-actions,.functions-page .function-actions{align-items:center;gap:4px;display:flex}.functions-page .function-actions button{min-height:44px;padding:3px 8px}.functions-page .function-card-actions button{min-width:44px;min-height:44px;padding:3px}.functions-page .function-delete-notice,.functions-page .function-notice{margin:2px 0;font-size:12px;line-height:1.25}.functions-page .function-body.workspace{min-height:66px;max-height:180px;padding:5px}.functions-page .call-running{font-size:10px;line-height:12px}.play-page.functions-page .palette-row .palette{flex:1;grid-template-rows:52px;grid-template-columns:repeat(6,minmax(44px,1fr));gap:3px;width:auto;height:52px;margin:0;padding:0;display:grid}.play-page.functions-page .palette-row .palette button{width:100%;min-width:44px;height:52px;min-height:44px;box-shadow:none;aspect-ratio:auto;border-radius:8px;grid-area:auto;padding:0;transform:none}.play-page.functions-page .palette:before,.play-page.functions-page .palette:after{display:none}.play-page.functions-page .palette-row{gap:3px}.functions-page .block-call{color:#33230f;background:#fff0b9;font-size:24px}.play-page.theme-train .palette button.block-call,.play-page.theme-train .workspace .block-tile.block-call{color:#33230f;background:#fff0b9}@media (width<=700px){.functions-page .program-panels{grid-template-rows:minmax(70px,1fr) minmax(82px,1fr);grid-template-columns:minmax(0,1fr);gap:2px}.functions-page .function-panel{display:block}.functions-page .function-card{margin-bottom:6px;padding-top:5px;position:relative}.functions-page .function-card header{min-height:44px;padding-right:96px;font-size:12px}.functions-page .function-card-actions{position:absolute;top:3px;right:4px}.functions-page .function-actions button{font-size:12px}.functions-page .editor h3{margin:0;font-size:14px}.functions-page .function-body.workspace{max-height:none}.functions-page .main-panel .workspace{min-height:0}.functions-page .function-delete-notice,.functions-page .function-notice{font-size:10px}}.play-page:not(.functions-page) :is(.program-panels,.main-panel){display:contents}.play-page.functions-page .editor>.program-panels{flex-shrink:1}.play-page .main-panel>h3{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.functions-page .variant-cards,.functions-page .sensor-status{display:none}.functions-page .function-card-actions button:first-child{padding-inline:6px;font-size:12px}@media (width<=700px){.play-page.functions-page .game-layout{grid-template-rows:110px minmax(0,1fr) 64px}.play-page.functions-page .map-panel .board{height:110px;max-height:110px}.functions-page .program-panels{grid-template-rows:minmax(0,1fr) minmax(0,1fr)}.functions-page .function-card header{min-height:24px;padding-right:0}.functions-page .function-card-actions{position:static}}@media (width<=700px) and (height<=590px){.play-page.functions-page .game-layout{grid-template-rows:75px minmax(0,1fr) 64px}.play-page.functions-page .map-panel .board{height:75px;max-height:75px}}.functions-page .function-tabs{display:none}@media (width<=700px){.functions-page .function-tabs{gap:3px;display:flex}.functions-page .function-tabs button{flex:1;min-width:44px;min-height:44px;padding:2px;font-size:12px}.functions-page .function-tabs button[aria-pressed=true]{background:#dbf5ef;border:3px solid #126b65}.functions-page .program-panels{flex-direction:column;display:flex}.functions-page .main-panel,.functions-page .function-panel{flex:1;min-height:0}.functions-page .program-panels[data-panel=body] .main-panel,.functions-page .program-panels[data-panel=main] .function-panel,.functions-page .function-card[data-visible=false]{display:none}.functions-page .function-panel{padding:3px;display:flex;overflow:hidden}.functions-page .function-card{flex-direction:column;flex:1;gap:2px;min-height:0;margin:0;display:flex}.functions-page .function-body.workspace{flex:1;min-height:0;overflow:auto}.functions-page .function-delete-notice{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.functions-page .function-card header{min-height:16px;line-height:16px}.functions-page .function-notice{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}}.functions-page .function-tools{flex-shrink:0;min-height:54px;position:relative}.functions-page .function-tools>.tile-toolbar{width:100%;position:static}.functions-page .block-call>span{justify-content:center;align-items:center;display:flex}.functions-page .function-card header .theme-symbol{vertical-align:middle;width:20px;height:20px}.functions-page .block-call .block-symbol{justify-content:center;align-items:center;display:flex}.functions-page .block-call .theme-symbol{flex-shrink:0;width:24px;height:24px}@media (width<=700px){.play-page.functions-page .map-panel .board{min-width:0;min-height:0;width:min(100%,var(--mobile-board-width))}.functions-page .function-navigation{align-items:stretch;gap:4px;display:flex}.functions-page .function-actions,.functions-page .function-tabs{flex:1;min-width:0}.functions-page .function-actions button,.functions-page .function-tabs button{flex:1;min-width:44px;min-height:44px;padding:2px;font-size:11px;line-height:14px}.functions-page .function-tools{min-height:0}.functions-page .function-tools:empty{display:none}.functions-page .function-tools .tile-toolbar{min-height:44px;padding:0}.functions-page .function-tools .tile-toolbar button{flex-basis:44px;min-width:44px;height:44px;min-height:44px}.functions-page .function-card>header{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.functions-page .function-card-actions{flex-shrink:0}.functions-page .function-delete-notice{margin:0}.functions-page .function-body.workspace{padding:5px}}@media (width<=700px) and (height<=590px){.play-page.functions-page .game-layout{grid-template-rows:48px minmax(0,1fr) 64px}.play-page.functions-page .map-panel .board{height:48px;max-height:48px}.play-page.functions-page .palette-row .palette{grid-template-rows:44px;height:44px}.play-page.functions-page .palette-row .palette button{height:44px}}.functions-page .block-call .block-symbol{white-space:nowrap;flex-wrap:nowrap;gap:0}@media (width<=700px){.play-page.functions-page .game-layout{grid-template-rows:120px minmax(0,1fr) 64px}.play-page.functions-page .map-panel .board{height:120px;min-height:120px;max-height:120px}.play-page.functions-page .workspace .block-call .block-symbol{font:20px/24px monospace}.play-page.functions-page .workspace .block-call .theme-symbol{width:22px;height:22px}.functions-page .function-actions{flex:1.4}.functions-page .function-actions button{white-space:nowrap;font-size:10px}.functions-page .function-actions button:last-child{flex:2}.functions-page .block-budget:has(.function-limit) .slot-dots{display:none}.functions-page .function-limit{flex:1;font-size:10px;line-height:14px}.functions-page .block-budget{gap:4px}.functions-page .slot-dots{gap:1px;font-size:10px}}@media (width<=700px) and (height<=590px){.play-page.functions-page .stage-goal{font-size:14px;line-height:20px}.play-page.functions-page .palette-row .palette{grid-template-rows:44px;height:44px}.play-page.functions-page .palette-row .palette button{height:44px}.play-page.functions-page .editor{gap:2px}}.variable-box{color:#33230f;background:#fff7dc;border:2px solid #77522a;border-radius:8px;margin:4px 0;padding:4px 10px}.variable-box>span:first-child{align-items:center;gap:8px;display:flex}.variable-box .theme-symbol{width:28px;height:28px}.variable-box strong{font:700 28px/32px monospace}.variable-transition{font:16px/20px monospace}.block-set,.block-change{color:#33230f;background:#fff0b9}.workspace :is(.block-set,.block-change){width:auto;min-width:112px;padding:4px 8px}.workspace :is(.block-set,.block-change) strong{white-space:nowrap;font:700 16px/22px monospace}.play-page.variables-page .palette-row .palette{grid-template-columns:repeat(6,minmax(44px,1fr));gap:3px}.variables-page .variant-cards button{width:auto;min-width:100px}.variables-page .variant-cards b{white-space:nowrap}@media (width<=700px){.play-page.variables-page .game-layout{grid-template-rows:164px minmax(0,1fr) 64px}.variables-page .map-panel .variable-box{height:44px;margin:0;padding:3px;position:absolute;top:0;right:0}.variables-page .variable-box>span:first-child{gap:3px}.variables-page .variable-box .theme-symbol{width:22px;height:22px}.variables-page .variable-box strong{font-size:24px}.variables-page .variable-transition{font-size:12px}.play-page.variables-page .variant-cards{gap:3px;width:calc(100% - 144px)}.play-page.variables-page .variant-cards button{flex:1;width:auto;min-width:44px;padding:1px;font-size:10px}.variables-page .variant-cards svg{display:none}.play-page.variables-page .map-panel .board{width:min(100%,360px);min-width:0;height:120px;min-height:120px;max-height:120px}.play-page.variables-page .palette-row .palette{grid-template-rows:44px;height:44px}.play-page.variables-page .palette-row .palette button{height:44px}.variables-page .editor{gap:2px}.variables-page .tile-toolbar{flex-wrap:nowrap;overflow-x:auto}.variables-page .tile-toolbar button{flex-shrink:0;min-width:44px;min-height:44px}.variables-page .stage-goal{font-size:14px;line-height:20px}}@media (prefers-reduced-motion:reduce){.variables-page .variable-transition{display:none}}.variables-page .sr-only{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.variables-page .workspace .loop-progress{white-space:nowrap;letter-spacing:0;min-width:0;font:10px/14px monospace}.variables-page .tile-toolbar button{white-space:nowrap;flex-basis:auto;min-width:44px;padding:2px 8px;font-size:12px}.play-page.variables-page :is(.palette,.workspace) :is(.block-set,.block-change){--c:#624095;color:#38205b;background:#eee5fa}.play-page.variables-page :is(.palette,.workspace) .block-change{--c:#14665c;color:#123f37;background:#dcf4ee}.play-page.variables-page .palette-row .palette{flex:1;grid-template-rows:64px;grid-template-columns:repeat(6,minmax(44px,1fr));gap:6px;width:auto;height:64px;margin:0;padding:0;display:grid}.play-page.variables-page .palette-row .palette button{grid-area:auto;width:100%;height:64px;transform:none}.play-page.variables-page .palette:before,.play-page.variables-page .palette:after{display:none}.play-page.variables-page .workspace-shell{flex-direction:column}.play-page.variables-page .tile-toolbar{flex-wrap:nowrap;flex-shrink:0;min-height:44px;padding:0;position:static;overflow-x:auto}.play-page.variables-page .has-selection .workspace{padding-top:5px}.variable-summary{align-items:center;gap:8px;min-width:0;display:flex}.variable-summary .stage-goal{flex:1;min-width:0}.play-page.variables-page .variable-summary .variant-cards{gap:4px;width:auto;margin:0;position:static}.play-page.variables-page .variable-summary .variant-cards button{white-space:nowrap;flex:none;width:auto;min-width:44px;padding:2px 5px}.variable-summary .variant-cards svg{display:none}.play-page.variables-page .variable-summary .variable-box{flex-shrink:0;height:44px;margin:0;padding:2px 5px;position:static}@media (width<=700px){.play-page.variables-page .game-layout{grid-template-rows:120px minmax(0,1fr) 64px}.play-page.variables-page .variable-summary{flex-wrap:wrap;flex-shrink:0;gap:4px}.play-page.variables-page .variable-summary .stage-goal{white-space:normal;flex:0 0 100%;max-height:none;font-size:14px;line-height:20px;overflow:visible}.play-page.variables-page .variable-summary .variant-cards button{font:10px/14px sans-serif}.play-page.variables-page .variable-summary .variable-box .theme-symbol{display:none}.play-page.variables-page .palette-row .palette{grid-template-rows:44px;gap:3px;height:44px}.play-page.variables-page .palette-row .palette button{height:44px}.play-page.variables-page .tile-toolbar button{height:44px;min-height:44px}}.play-page.variables-page .palette-row .palette button{aspect-ratio:auto}.play-page.variables-page.theme-sketchbook .palette-row .palette{grid-template-columns:repeat(6,minmax(44px,1fr))}@media (width<=700px){.play-page.variables-page .workspace :is(.block-set,.block-change){width:50px;min-width:50px;padding:10px 0 0}.play-page.variables-page .workspace :is(.block-set,.block-change) strong{font-size:10px;line-height:14px}.play-page.variables-page .workspace :is(.block-set,.block-change) .block-symbol svg{width:22px;height:22px}}@media (width<=700px) and (height<=590px){.play-page.variables-page .game-layout{grid-template-rows:120px minmax(0,1fr) 44px}.play-page.variables-page .execution-controls button{height:44px;min-height:44px}.play-page.variables-page .workspace{--tile-size:44px;grid-template-columns:repeat(5,44px);grid-auto-rows:44px;gap:4px;padding:2px}.play-page.variables-page .has-selection .workspace{padding-top:2px}.play-page.variables-page .workspace .block-tile{width:44px;min-width:44px;height:44px;min-height:44px}.play-page.variables-page .workspace :is(.block-set,.block-change){width:44px;min-width:44px}}.play-page>.stage-goal{flex-shrink:0;max-height:none;overflow:visible}.logic-results,.logic-prediction>div{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.logic-results>span,.logic-results>strong{color:#172554;background:#fff;border:2px solid;border-radius:.4rem;padding:.35rem}.logic-editor{color:#172554;background:#fff;flex-wrap:wrap;gap:.4rem;display:flex}.logic-editor select,.logic-prediction select{max-width:100%;min-height:44px}.block-tile:has(.logic-condition) .logic-condition{white-space:nowrap;text-overflow:ellipsis;text-align:center;font:700 8px/10px sans-serif;position:absolute;bottom:12px;left:2px;right:2px;overflow:hidden}.block-tile:has(.logic-condition) :is(.block-symbol,.sensor-icon){display:none}.logic-operator{color:#172554;font:700 14px/1 monospace}.logic-results .logic-true{color:#14532d;background:#dcfce7}.logic-results .logic-false{color:#7f1d1d;background:#fee2e2}.logic-editor label{align-items:center;gap:4px;min-width:44px;min-height:44px;display:inline-flex}.logic-editor>span{flex-wrap:wrap;align-items:center;display:flex}.logic-editor select{min-width:44px}.play-page.logic-page .workspace-shell{flex-direction:column;overflow:auto}.play-page.logic-page .tile-toolbar{flex-wrap:wrap;width:100%;overflow:visible}.play-page.logic-page .tile-toolbar>.logic-editor{flex:0 0 100%;width:100%;min-width:0}.play-page.logic-page .logic-editor{flex-direction:column;gap:4px;padding:4px}.play-page.logic-page .logic-editor>span{flex-wrap:nowrap;gap:4px;width:100%;display:flex}.play-page.logic-page .logic-editor label{white-space:nowrap;gap:4px;min-width:0;font:12px/16px sans-serif}.play-page.logic-page .logic-editor>span>label{flex:1}.play-page.logic-page .logic-editor select{flex:1;width:0;min-width:44px;min-height:44px;font:12px/16px sans-serif}.play-page.logic-page .logic-editor>label select{flex:0 auto;width:auto}.play-page.logic-page .logic-editor button{flex:0 0 44px;min-width:44px;min-height:44px}.play-page.logic-page .tile-toolbar .logic-editor button[aria-pressed]{color:#172554;background:#fff;border:2px solid #172554}.play-page.logic-page .tile-toolbar .logic-editor button[aria-pressed=true]{color:#fff;outline-offset:-2px;background:#172554;border:4px double #fff;outline:2px solid #172554}.play-page.logic-page .workspace-shell .workspace{flex:none;min-height:100px}.play-page.conditions-page.variables-page.logic-page .palette-row .palette{flex:1;grid-template-rows:52px;grid-template-columns:repeat(6,minmax(44px,1fr));gap:3px;width:auto;height:52px;margin:0;padding:0;display:grid}.play-page.conditions-page.variables-page.logic-page .palette-row .palette button{aspect-ratio:auto;width:100%;min-width:44px;height:52px;min-height:44px;box-shadow:none;border-radius:8px;grid-area:auto;padding:0;transform:none}.play-page.conditions-page.variables-page.logic-page .palette:before,.play-page.conditions-page.variables-page.logic-page .palette:after{display:none}.sensor-board-panel{display:contents}.sensor-status:empty{display:none}@media (width<=700px){.play-page.conditions-page:not(.functions-page) .game-layout:has(.map-panel>.variant-cards){grid-template-columns:80px minmax(0,1fr);column-gap:6px}.play-page.conditions-page:not(.functions-page) .map-panel{display:contents}:is(.play-page.conditions-page:not(.functions-page) .game-layout:has(.map-panel>.variant-cards)>.editor,.play-page.conditions-page:not(.functions-page) .game-layout:has(.map-panel>.variant-cards) .execution-controls){grid-column:1/-1}.play-page.conditions-page:not(.functions-page) .map-panel>.variant-cards{flex-direction:column;flex:0 0 80px;grid-area:1/1;align-self:center;gap:3px;width:80px;position:static}.play-page.conditions-page:not(.functions-page) .map-panel>.variant-cards button{flex:0 0 44px;gap:3px;width:80px;min-width:44px;height:44px;padding:2px}.play-page.conditions-page:not(.functions-page) .map-panel>.variant-cards svg{flex-shrink:0;width:32px;height:32px;display:block}.play-page.conditions-page:not(.functions-page) .map-panel:has(>.variant-cards) .sensor-board-panel{flex-direction:column;grid-area:1/2;justify-content:center;min-width:0;min-height:0;display:flex}.play-page.conditions-page:not(.functions-page) .sensor-board-panel .sensor-status{flex-shrink:0;max-width:100%;height:auto;margin:0;font-size:12px;line-height:20px;position:static}.play-page.conditions-page:not(.functions-page) .map-panel:has(>.variant-cards) .board{align-self:center;width:100%;min-width:0;margin:0}.play-page.logic-page .palette-row{gap:3px}.play-page.conditions-page.variables-page.logic-page .palette-row .palette{grid-template-rows:44px;height:44px}.play-page.conditions-page.variables-page.logic-page .palette-row .palette button{height:44px}}.params-page .parameter-socket{color:#593c18;background:#fff;border:2px dashed #77522a;flex-shrink:0;justify-content:center;align-items:center;gap:2px;min-width:44px;min-height:44px;padding:2px;display:flex}.params-page .parameter-socket[aria-pressed=true]{color:#12564f;background:#dbf5ef;border-style:solid}.params-page .function-card header{flex-wrap:wrap}.params-page .function-card header strong{flex:1}.params-page .function-card-actions{flex-wrap:wrap}.play-page.params-page .variable-summary .variant-cards{display:flex}.params-page .tile-toolbar{flex-wrap:nowrap;overflow-x:auto}.params-page .tile-toolbar button{flex-shrink:0;min-width:44px;min-height:44px}.params-page .call-running{white-space:nowrap}.params-page .block-call .block-symbol{font-size:18px}@media (width<=600px){.play-page.params-page .game-layout{grid-template-rows:120px minmax(0,1fr) 44px}.play-page.params-page .map-panel .board{height:120px;min-height:120px;max-height:120px}.params-page .function-card header{flex-wrap:nowrap;min-height:44px}.params-page .function-card header>[role=status]{display:none}.params-page .function-card-actions button{font-size:10px}.params-page .function-card{overflow:hidden}.params-page .function-body.workspace{min-height:44px}}@media (prefers-reduced-motion:reduce){.params-page .parameter-socket,.params-page .call-running{transition:none;animation:none}}.play-page.params-page .palette-row{flex-shrink:0}.play-page.params-page .workspace .block-call .block-symbol{gap:0;max-width:100%;font:18px/24px monospace}.play-page.params-page .workspace .block-call .block-symbol .theme-symbol{flex:0 0 18px;width:18px;height:18px}.play-page.params-page .workspace>p{overflow-wrap:normal;word-break:keep-all;grid-column:1/-1;margin:4px 0}@media (width>=701px){.params-page .function-card{flex-direction:column;flex-shrink:1;min-height:0;display:flex;overflow:hidden}.params-page .function-card>:not(.function-body){flex-shrink:0}.params-page .function-body.workspace{flex:1;min-height:80px;overflow:auto}}@media (width<=700px){.params-page .function-card>header{clip-path:none;flex-shrink:0;width:auto;height:auto;min-height:44px;padding:0;position:static;overflow:visible}}.play-page.params-page .palette-row .palette button{box-shadow:none;border-radius:8px;transform:none}.play-page.params-page .block-budget,.play-page.params-page .insertion-status,.play-page.params-page .function-navigation{flex-shrink:0}@media (width<=700px){.play-page.params-page .workspace .block-call .block-symbol{font:12px/18px monospace}.play-page.params-page .workspace .block-call .block-symbol .theme-symbol{flex-basis:10px;width:10px;height:14px}.params-page .function-panel{overflow:auto}.params-page .function-card{flex:1 0 auto}}.play-page.conditions-page.variables-page.params-page .palette-row .palette{flex:1;grid-template-rows:52px;grid-template-columns:repeat(6,minmax(44px,1fr));gap:3px;width:auto;min-width:0;height:52px;margin:0;padding:0;display:grid}.play-page.conditions-page.variables-page.params-page .palette-row .palette button{aspect-ratio:auto;width:100%;min-width:44px;height:52px;min-height:44px;box-shadow:none;border-radius:8px;grid-area:auto;padding:0;transform:none}.play-page.conditions-page.variables-page.params-page .palette:before,.play-page.conditions-page.variables-page.params-page .palette:after{display:none}@media (width<=700px){.play-page.conditions-page.variables-page.params-page .palette-row .palette{grid-template-rows:44px;height:44px}.play-page.conditions-page.variables-page.params-page .palette-row .palette button{height:44px}}.params-page .tile-toolbar button{flex-basis:auto;padding:2px;font-size:12px}.returns-page .return-socket{color:#163e51;background:#e4f3fb;border:3px double #235b70;border-radius:3px;justify-content:center;align-items:center;min-width:44px;min-height:44px;font:700 16px/1 monospace;display:flex}.returns-page .return-transfer{overflow-wrap:anywhere;border:2px solid #235b70;border-radius:3px;padding:2px 4px;font:12px/1.3 monospace;display:block}.returns-page .ahead-observation{color:#49351a;background:#fff8df;border:2px dashed #654b27;margin:0;font-size:12px}.returns-page .map-panel{position:relative}.returns-page .ahead-observation{box-sizing:border-box;z-index:2;max-width:calc(100% - 16px);position:absolute;top:4px;right:8px}.play-page .block-return{color:#163e51;background:#d7eff8;border:2px solid #235b70}.returns-page .workspace .block-return .block-symbol{display:none}.returns-page .return-value{overflow-wrap:anywhere;max-width:100%;font-size:12px;line-height:1.1}.returns-page .return-skipped{opacity:.55;border-style:dashed}.returns-page .return-skip-label{font:700 16px/1 monospace;position:absolute;top:0;right:1px}.returns-page .return-count{color:#163e51;background:#fff;border:1px solid #235b70;padding:0 2px;font:700 11px/1.2 monospace;position:absolute;bottom:0;right:0}.play-page.conditions-page.variables-page.params-page.returns-page .palette-row .palette{grid-template-rows:repeat(2,44px);grid-template-columns:repeat(5,minmax(44px,1fr));height:auto}.play-page.conditions-page.variables-page.params-page.returns-page .palette-row .palette button{height:44px;min-height:44px}.returns-page .block-repeat .repeat-count{font:12px/1 monospace}@media (width<=700px){.returns-page .variable-summary{flex-wrap:wrap}.returns-page .return-transfer{font-size:10px}.returns-page .function-card header{flex-wrap:wrap}.returns-page .function-card header strong{flex:0 auto}.returns-page .block-repeat .repeat-count{font-size:10px}}@media (prefers-reduced-motion:reduce){.returns-page .return-transfer,.returns-page .return-socket,.returns-page .return-skipped{transition:none;animation:none}}.returns-page .parameter-socket{order:-1}.returns-page .return-skipped-notice{color:#3f4851;flex-shrink:0;margin:2px 0;font-size:11px;line-height:1.2}.play-page.returns-page .palette :is(.block-return,.block-set,.block-change) .theme-symbol{width:28px;height:28px}@media (width>=1000px) and (height>=600px){.play-page .stage-controls{z-index:3;gap:6px;display:flex;position:absolute;top:6px;right:6px}.play-page:has(.world-switch) .stage-controls{right:170px}.play-page .stage-controls button{min-height:44px;padding:4px 10px}.play-page h1{min-height:48px;padding-right:400px}.play-page:has(.world-switch) h1{padding-right:560px}.play-page .game-layout{grid-template-columns:minmax(320px,44%) minmax(0,1fr)}.play-page .map-panel .art-board,.play-page .map-panel .train-island{max-height:calc(100dvh - 300px)}.map-panel .board{width:min(100%, calc((100dvh - 300px) * var(--board-ratio)))}.play-page.theme-handheld .map-panel .board.art-board{max-height:calc(100dvh - 450px)}.play-page.conditions-page .map-panel .art-board,.play-page.conditions-page .map-panel .train-island{max-height:calc(100dvh - 350px)}.play-page.conditions-page.theme-handheld .map-panel .board.art-board{max-height:calc(100dvh - 500px)}}.play-page.events-page .block-on{--c:#5b327b;color:#412256;background:#eee3f8;border:2px solid #5b327b}.events-page .on-frame{border-style:double;border-color:#5b327b}.events-page .on-frame:has(.block-active){outline-offset:1px;outline:3px solid #174c86}.events-page .event-notice{color:#412256;flex-shrink:0;max-height:32px;margin:2px 0;font:12px/16px sans-serif;overflow:auto}.events-page .tile-toolbar{flex-wrap:nowrap;flex-shrink:0;min-height:44px;padding:0;position:static;overflow-x:auto}.events-page .tile-toolbar button{flex:0 0 44px;min-width:44px;height:44px;min-height:44px}.events-page .signal-picker{flex-shrink:0;gap:2px;display:flex}.events-page .signal-picker button{color:#412256;background:#fff;border:2px solid #5b327b;padding:6px}.events-page .signal-picker button[aria-pressed=true]{color:#fff;outline-offset:-2px;background:#412256;border:4px double #fff;outline:2px solid #412256}.events-page .workspace-shell{flex-direction:column;min-height:0;display:flex}.play-page.events-page .has-selection .workspace{padding-top:5px}.play-page.events-page .palette-row .palette{flex:1;grid-template-rows:52px;grid-template-columns:repeat(5,minmax(44px,1fr));gap:3px;width:auto;min-width:0;height:52px;padding:0;display:grid}.play-page.events-page .palette-row .palette button{aspect-ratio:auto;width:100%;min-width:44px;height:52px;min-height:44px;box-shadow:none;border-radius:8px;grid-area:auto;padding:0;transform:none}.play-page.events-page .palette:before,.play-page.events-page .palette:after{display:none}.play-page.events-page .palette .block-on .theme-symbol{width:24px;height:24px}.events-page .event-state{color:#30253b;box-sizing:border-box;background:#fffaf0;border:1px solid #5b327b;border-radius:4px;flex-shrink:0;width:100%}.events-page .event-pipeline{align-items:center;gap:3px;padding:2px;display:flex}.events-page .event-pipeline>div{flex:1;min-width:0}.events-page .event-pipeline small{white-space:normal;word-break:keep-all;min-height:24px;font:10px/12px sans-serif;display:block}.events-page .event-pipeline>div>span{align-items:center;gap:2px;min-height:18px;max-height:20px;font:10px/18px sans-serif;display:flex;overflow:auto}.events-page .event-pipeline svg{width:16px;height:16px}.events-page .event-pipeline span[role=img]{flex-shrink:0;display:inline-flex}.events-page .event-state p{border-top:1px dashed #5b327b;max-height:20px;margin:0;font:11px/18px sans-serif;overflow:auto}.events-page .scenario-signals{align-items:center;gap:2px;display:flex}.play-page.events-page .variant-cards .scenario-signals svg{width:14px;height:14px}.events-page .sensor-board-panel{flex-direction:column;align-items:center;min-width:0;min-height:0;display:flex}.events-page .board-door{color:#49351a}@media (width<=700px){.play-page.events-page .palette-row .palette{grid-template-rows:44px;height:44px}.play-page.events-page .palette-row .palette button{height:44px}.events-page .workspace .block-on .block-symbol svg{width:20px;height:20px}.events-page .workspace .block-on strong{font:11px/12px monospace}.events-page .event-notice{max-height:16px;font-size:10px}.play-page.events-page .variant-cards button>svg{display:none}.play-page.events-page .variant-cards button{flex-wrap:wrap;align-content:center}.play-page.events-page .map-panel .board{flex:auto;min-height:0}}@media (prefers-reduced-motion:reduce){.events-page .block-on,.events-page .board-door,.events-page .on-frame{transition:none;animation:none}}.play-page.lists-page .variable-summary{flex-wrap:wrap}.lists-page .list-state{box-sizing:border-box;color:#183d4a;background:#f4fcff;border:2px solid #245f73;border-radius:6px;flex-wrap:wrap;align-items:center;gap:4px 8px;width:100%;min-width:0;padding:3px 6px;font:14px/18px sans-serif;display:flex}.lists-page .list-cells{gap:4px;margin:0;padding:0;list-style:none;display:flex}.lists-page .list-cells li{text-align:center;background:#fff;border:1px solid #245f73;border-radius:3px;flex-direction:column;min-width:46px;display:flex}.lists-page .list-cells small{border-bottom:1px solid #245f73;font:12px/16px sans-serif}.lists-page .list-cells b{font:700 14px/18px sans-serif}.lists-page .list-cells li.list-current{outline-offset:1px;outline:3px solid #245f73}.lists-page .list-cells li.list-access{border:3px double #183d4a}.lists-page .list-pointers{flex-wrap:wrap;flex-basis:100%;gap:4px 12px;min-height:18px;font:12px/18px sans-serif;display:flex}.play-page.lists-page :is(.palette,.workspace) .block-forEach{--c:#245f73;color:#183d4a;background:#dff4fa;border:2px solid #245f73}.play-page.conditions-page.variables-page.lists-page .palette-row .palette{grid-template-columns:repeat(7,minmax(44px,1fr));gap:3px}.lists-page .workspace .block-forEach strong{font:12px/16px monospace}.lists-page .workspace .block-forEach svg{width:24px;height:24px}@media (width<=700px){.play-page.lists-page .variable-summary{gap:2px 4px}.lists-page .list-state{gap:2px 5px;padding:2px 4px;font-size:12px}.lists-page .list-cells{gap:3px}.lists-page .list-cells li{min-width:43px}.lists-page .list-cells small{font:10px/12px sans-serif}.lists-page .list-cells b{font:700 12px/16px sans-serif}.lists-page .list-pointers{min-height:12px;font:10px/12px sans-serif}.play-page.lists-page .palette-row{gap:2px}.play-page.conditions-page.variables-page.lists-page .palette-row .palette{grid-template-rows:repeat(2,44px);grid-template-columns:repeat(4,minmax(44px,1fr));gap:0;min-width:0;height:88px}.play-page.conditions-page.variables-page.lists-page .palette-row .palette button{min-width:44px;box-shadow:none;border-radius:4px;padding:0}.play-page.lists-page .palette small{font:10px/12px sans-serif}.play-page.lists-page .palette .block-symbol svg{width:22px;height:22px}.lists-page .undo-button{width:44px;min-width:44px;padding:0}}@media (prefers-reduced-motion:reduce){.lists-page .list-cells li{transition:none;animation:none}}.play-page.events-page .tile-toolbar .signal-picker button[aria-pressed=true]{color:#fff;background:#412256}.play-page.events-page .signal-picker button[aria-pressed=true] svg{stroke:currentColor;color:#fff}.play-page.events-page .variant-cards button .scenario-signals svg,.play-page.events-page.theme-sketchbook .variant-cards button .scenario-signals svg,.play-page.events-page.theme-train .variant-cards button .scenario-signals svg,.play-page.events-page.theme-handheld .variant-cards button .scenario-signals svg{flex:0 0 12px;width:12px;height:12px}.play-page.events-page .variant-cards button .scenario-signals{flex-wrap:nowrap;line-height:1}.play-page.events-page .event-notice{white-space:normal;overflow-wrap:anywhere}@media (width<=700px){.play-page.events-page .event-notice{max-height:32px;font:10px/14px sans-serif;overflow:hidden}}@media (width>=1000px) and (height>=600px){.play-page.events-page .map-panel .art-board,.play-page.events-page .map-panel .train-island{max-height:calc(100dvh - 430px)}.play-page.events-page.theme-handheld .map-panel .board.art-board{max-height:calc(100dvh - 580px)}}@media (width<=700px){.play-page.events-page.conditions-page:not(.functions-page) .map-panel>.variant-cards button>svg{display:none}}.events-page .sr-only,.returns-page .sr-only{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.lists-page .list-pointers:empty{display:none}@media (width<=700px){.lists-page .list-cells li{flex-direction:row;align-items:center;gap:2px;min-width:0;padding:0 3px}.lists-page .list-cells small{border-bottom:0;border-right:1px solid #245f73;padding-right:2px}}@media (width>=1000px) and (height>=600px){.play-page.lists-page .map-panel .art-board,.play-page.lists-page .map-panel .train-island{max-height:calc(100dvh - 400px)}.play-page.lists-page.theme-handheld .map-panel .board.art-board{max-height:calc(100dvh - 550px)}}@media (width<=700px){.play-page.lists-page .workspace .block-repeat .repeat-count{letter-spacing:-.5px;font-size:12px}.play-page.lists-page .workspace .block-set strong{letter-spacing:-.5px;white-space:nowrap;font-size:10px}}@media (width<=370px){.play-page.lists-page .workspace .block-set strong{white-space:normal;text-align:center;line-height:1.1}.play-page.lists-page .workspace .block-set strong .concept-keyword{display:block}}@media (width<=700px){.play-page.lists-page.theme-train .workspace .block-set strong{position:relative;bottom:6px}}.search-page .search-target-inline{vertical-align:middle;width:1.2em;height:1.2em;display:inline-flex}.search-page .search-target-inline svg{width:100%;height:100%}.search-page .search-target{align-items:center;gap:4px;font-weight:700;display:inline-flex}.search-page .search-target svg{width:26px;height:26px}.search-page .search-count{margin-left:auto}.search-page .list-cells{flex-basis:100%;justify-content:center;gap:8px}.search-page .list-cells li{border:2px solid #245f73;flex:1;max-width:104px;min-height:62px;position:relative}.search-page .list-cells li.search-comparing{outline-offset:2px;outline:4px solid #183d4a}.search-page .list-cells li.search-unseen{color:#425a63;background:0 0;border:2px dashed #617b84}.search-page .search-mark{color:#183d4a;align-self:center;width:22px;height:22px;display:inline-flex}.search-page .search-mark svg{width:100%;height:100%}.search-page .search-summary{flex-wrap:wrap;flex-basis:100%;justify-content:space-between;gap:2px 8px;min-height:18px;display:flex}.search-page .search-summary:empty{display:none}.search-page .workspace .block-forEach .search-direction{margin-left:4px;font-size:18px;display:inline}.play-page.search-page :is(.palette,.workspace) .block-breakForEach{--c:#69439b;color:#40265e;background:#f5edff;border:2px solid #69439b}.search-page .empty-repeat{white-space:normal;max-width:190px;font:12px/16px sans-serif}.search-page .tile-toolbar button{min-width:44px;min-height:44px}.play-page.search-page .map-panel .art-board,.play-page.search-page .map-panel .train-island{max-height:150px}@media (width<=700px){.play-page.conditions-page.variables-page.lists-page.search-page .palette-row .palette{grid-template-rows:44px;height:44px}.search-page .list-state{padding:3px 5px}.search-page .list-cells{gap:5px}.search-page .list-cells li{flex-direction:column;min-height:48px;padding:0}.search-page .list-cells small{border-bottom:1px solid #245f73;border-right:0;padding:0}.search-page .search-mark{width:16px;height:16px}.search-page .search-target svg{width:18px;height:18px}.search-page .search-count,.search-page .search-summary{font:11px/14px sans-serif}.search-page .empty-repeat{max-width:110px;font:10px/12px sans-serif}.play-page.search-page .map-panel .art-board,.play-page.search-page .map-panel .train-island,.play-page.search-page.theme-handheld .map-panel .board.art-board{max-height:74px}}@media (prefers-reduced-motion:reduce){.search-page .search-mark{transition:none;animation:none}}.course-completion{color:#17354a;text-align:center;background:#f0faf4;border:2px solid #286247;border-radius:12px;padding:10px}.course-completion p{margin:6px 0 0}.course-worlds{color:#286247;justify-content:center;gap:12px;display:flex}.course-worlds span{width:32px;height:32px;animation:.7s ease-out both course-gather;display:inline-flex}.course-worlds span:first-child{--course-offset:-40px}.course-worlds span:last-child{--course-offset:40px}.course-worlds svg{width:100%;height:100%}@keyframes course-gather{0%{transform:translateX(var(--course-offset,0)) scale(.7);opacity:0}to{opacity:1;transform:translate(0)scale(1)}}@media (prefers-reduced-motion:reduce){.course-worlds span{animation:none}}.play-page.conditions-page.synthesis-path-page .palette-row .palette{flex:1;grid-template-rows:52px;grid-template-columns:repeat(6,minmax(44px,1fr));gap:2px;width:auto;min-width:0;height:52px;margin:0;padding:0;display:grid}.play-page.conditions-page.synthesis-path-page .palette-row .palette button{aspect-ratio:auto;width:100%;min-width:44px;height:52px;min-height:44px;box-shadow:none;border-radius:8px;grid-area:auto;padding:0;transform:none}.play-page.conditions-page.synthesis-path-page .palette:before,.play-page.conditions-page.synthesis-path-page .palette:after{display:none}@media (width<=700px){.play-page.conditions-page.synthesis-path-page .palette-row .palette{grid-template-rows:44px;height:44px}.play-page.conditions-page.synthesis-path-page .palette-row .palette button{height:44px}.play-page.conditions-page.synthesis-path-page .palette-row{gap:2px}.synthesis-path-page .undo-button{width:44px;min-width:44px;padding:0}.search-page .list-cells li{max-width:none;min-height:0}.search-page .search-mark{width:14px;height:14px}.search-page .search-summary{min-height:0;font:10px/14px sans-serif}.search-page .list-pointers{display:none}.play-page.search-page .map-panel .art-board,.play-page.search-page .map-panel .train-island{max-height:90px}.play-page.search-page .map-panel .art-board,.play-page.search-page .map-panel .train-island,.play-page.search-page.theme-handheld .map-panel .art-board{height:72px;max-height:72px}}.play-page .workspace>p{overflow-wrap:normal;word-break:keep-all;flex:1 0 100%;grid-column:1/-1;margin:4px 0}@media (width>=701px){.play-page.variables-page.theme-sketchbook .palette-row .palette button{aspect-ratio:1;align-self:center;width:64px;min-width:44px;height:64px;min-height:44px}}@media (width<=700px){.play-page.search-page .map-panel .train-island{min-height:72px}.play-page.conditions-page.variables-page.lists-page.search-page.theme-train .game-layout{grid-template-rows:72px minmax(0,1fr) 64px}.play-page.lists-page.theme-sketchbook .palette-row .palette button{aspect-ratio:auto;align-self:center;height:44px;min-height:44px;max-height:44px}}.home-completion{color:#17354a;background:#f0faf4;border:2px solid #286247;border-radius:12px;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;min-height:44px;margin-block:12px;padding:8px;display:flex}.home-completion>span{gap:6px;display:inline-flex}.home-completion svg{width:32px;height:32px}.play-page .stage-controls button.demo-trigger{min-width:48px;height:auto;min-height:48px}.play-page [data-hint-focus]{outline-offset:-3px;background-color:#fff3cf;border-radius:8px;outline:3px dashed #795000}.hint-target-label{font-size:12px;line-height:1.25;display:block}.save-notice{color:#493b23;background:#fff8df;border:2px solid;border-radius:12px;align-items:center;gap:12px;margin-block:8px;padding:12px;display:flex}.save-notice p{flex:1;margin:0}.save-notice button{flex-shrink:0;min-width:44px;min-height:44px}.completion-stamp{color:#245c38;align-items:center;gap:.3rem;font-weight:700;display:inline-flex}.completion-stamp svg{flex-shrink:0}.challenge-sticker{color:#245c38;font-size:.9rem}.play-page h1{align-items:center;gap:.4rem;display:flex}.play-completion{flex-shrink:0;display:inline-flex}.theme-train .play-completion .completion-stamp{color:inherit}.play-completion .completion-stamp svg{width:26px;height:26px}.play-completion .completion-stamp>span{display:none}.challenge-panel{min-width:0;position:relative}.play-page .stage-controls{flex-wrap:nowrap;align-items:stretch}.play-page .stage-controls .challenge-panel{flex-shrink:0;display:flex}.play-page .stage-controls button small{font-size:inherit;line-height:inherit}.play-page .stage-controls .challenge-trigger{white-space:nowrap;padding-inline:6px}#challenge-goals{z-index:10;box-sizing:border-box;color:#493b23;background:#fff8df;border:2px solid;border-radius:8px;width:100%;max-height:100%;position:fixed;top:0;left:0;overflow:auto;box-shadow:0 4px 12px #0003}.challenge-panel button{min-height:44px}#challenge-goals{margin:0;padding:.6rem 1.5rem}.result-symbol .completion-stamp{font-size:1.3rem}.result-symbol .completion-stamp svg{width:64px;height:64px}@font-face{font-family:Gaegu;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/gaegu-korean-400-normal-BZ3I_fqv.woff2)format("woff2"),url(/assets/gaegu-korean-400-normal-BAs94SlW.woff)format("woff")}@font-face{font-family:Gamja Flower;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/gamja-flower-korean-400-normal-B_2OKsGS.woff2)format("woff2"),url(/assets/gamja-flower-korean-400-normal-DqU6iKls.woff)format("woff")}.theme-sketchbook{color:#3b3a36;background:repeating-linear-gradient(#0000 0 31px,#c9dcf070 31px 32px),#fffaf0;border-left:8px dotted #899098;border-radius:6px 22px 22px 6px;padding:16px 20px 16px 38px;font-family:Gaegu,sans-serif;position:relative;box-shadow:0 3px #d8ccb4,0 16px 40px #6b5b3e25}.theme-sketchbook h1{text-underline-offset:2px;font-family:Gamja Flower,sans-serif;-webkit-text-decoration:underline #f6c343;text-decoration:underline #f6c343;text-decoration-thickness:7px}.theme-sketchbook .map-panel{background:#fffaf0;position:relative}.theme-sketchbook .board{background:#aec5ce;border:3px solid #667a87;border-radius:7px 12px 6px 13px;transform:rotate(.5deg)}.theme-sketchbook .board-cell{background:#fffdf5;border:1px solid #8aa9bc;border-radius:12% 5%}.theme-sketchbook .board-wall{background:repeating-linear-gradient(45deg,#697987 0 3px,#c3cbd0 3px 9px)}.theme-sketchbook .palette button{border:3px solid;border-radius:48% 52% 45% 55%;box-shadow:2px 3px #6b5b3e22}.theme-sketchbook .workspace{background:repeating-linear-gradient(#0000 0 31px,#b7cfe770 31px 32px);border:0}.theme-sketchbook .block-tile{border:2px solid;border-radius:25% 20% 30% 22%}.theme-sketchbook .repeat-frame{background:#fff1d080;border:0;border-left:3px solid #d36b44;border-right:3px solid #d36b44;border-radius:18px}.theme-sketchbook .run-button{background:#479664;border:0;border-radius:3px 30% 30% 3px}.theme-sketchbook .stage-hint{background:#fff59d;padding:5px 12px;box-shadow:2px 3px #887b4422}.theme-sketchbook .block-active{animation:.5s infinite alternate sketch-wiggle}@keyframes sketch-wiggle{to{transform:rotate(4deg)}}.theme-sketchbook .map-panel:before{content:"";z-index:1;background:#eed995aa;width:70px;height:13px;display:block;position:absolute;top:-5px;left:35%;transform:rotate(-4deg)}@media (width<=700px){.theme-sketchbook .map-panel:before{display:none}}.play-page.theme-sketchbook{background-image:repeating-linear-gradient(#0000 0 37px,#c9dcf0 37px 38px),linear-gradient(90deg,#0000 24px,#f2a7a7 24px 26px,#0000 26px)}.theme-sketchbook .board.art-board{box-shadow:none;background:0 0;border:0;border-radius:0;width:100%;padding:10px;display:block}.theme-sketchbook .art-board .board-wall,.theme-sketchbook .art-board .board-goal{background:0 0}.theme-sketchbook .art-board .board-robot{position:static}.theme-sketchbook .art-board .robot-art{width:100%;height:100%}.theme-sketchbook .palette{gap:20px;padding:8px 5px;display:flex}.theme-sketchbook .palette button{aspect-ratio:1;width:84px;height:84px;box-shadow:0 0 0 4px var(--c),3px 5px 0 4px #0001;background:#fff;border:0;border-radius:50% 46% 52% 48%/48% 52% 46% 50%;flex:none;place-items:center;padding:4px;display:grid}.theme-sketchbook .palette button:nth-child(odd){transform:rotate(-5deg)}.theme-sketchbook .palette button:nth-child(2n){transform:rotate(4deg)}.theme-sketchbook .palette small{display:none}.theme-sketchbook .block-forward{--c:#2e86de}.theme-sketchbook .block-turnLeft,.theme-sketchbook .block-turnRight{--c:#47a447}.theme-sketchbook .block-repeat{--c:#e4572e}.theme-sketchbook .block-tile{box-shadow:none;background:0 0;border:0;border-radius:0}.theme-sketchbook .block-tile .theme-symbol{width:58px;height:58px}.theme-sketchbook .block-tile small{color:#665b49;font-size:18px}.theme-sketchbook .tile-item:after{content:"";background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 20'%3E%3Cpath d='M2 10 C9 9 16 11 22 10 M16 4 L22 10 L16 16' stroke='%23a49a87' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") 50%/contain no-repeat;width:18px;height:20px}.theme-sketchbook .repeat-frame{box-shadow:none;background:0 0;border:0;border-radius:0;padding:9px 12px;position:relative}.theme-sketchbook .repeat-frame:before{content:"";pointer-events:none;filter:url(#sketchbook-rough);border-left:4px solid #e4572e;border-right:4px solid #e4572e;border-radius:18px;position:absolute;inset:0}.theme-sketchbook .block-repeat .block-symbol{display:none}.theme-sketchbook .block-repeat strong{color:#a83b1b;font:32px Gamja Flower}.theme-sketchbook button:not(.block-tile):not(.run-button):not(.palette button){background:#fffdf5;border:2px solid #a49a87;border-radius:45% 8% 20% 6%/8% 20%;box-shadow:2px 3px #0001}.theme-sketchbook .execution-controls{background:0 0}.theme-sketchbook .run-button{clip-path:polygon(0 12%,88% 0,100% 50%,88% 100%,0 88%);filter:url(#sketchbook-rough);background:#287a36;border:0;border-radius:0;font-family:Gamja Flower}.theme-sketchbook .run-button .control-symbol{display:none}.theme-sketchbook .run-button small{font-size:26px}.theme-sketchbook .tile-toolbar{background:#fffaf0}@media (width<=700px){.theme-sketchbook .palette{gap:15px;padding:6px}.theme-sketchbook .palette button{width:56px;height:56px}.theme-sketchbook .palette .theme-symbol{width:40px;height:40px}.theme-sketchbook .block-tile .theme-symbol{width:44px;height:44px}.theme-sketchbook .tile-item:after{width:6px}.theme-sketchbook .repeat-frame{padding:4px 7px}.theme-sketchbook .block-repeat strong{font-size:26px}.theme-sketchbook .run-button small{font-size:20px}}.theme-sketchbook .repeat-frame:before{display:none}.crayon-bracket{pointer-events:none;width:100%;height:100%;position:absolute;inset:0;overflow:visible}@media (width<=700px){.theme-sketchbook .workspace{--tile-size:50px}}body:has(.theme-sketchbook){background:#e9dfcc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E")}.theme-sketchbook button[aria-pressed=true]{box-shadow:0 0 0 3px #e4572e}.theme-sketchbook .palette .block-repeat .block-symbol{display:block}.theme-sketchbook .palette small{white-space:nowrap;font-size:13px;line-height:16px;display:block}.theme-sketchbook .palette button{grid-template-rows:52px 16px}@media (width<=700px){.theme-sketchbook .palette{gap:14px;padding:4px}.theme-sketchbook .palette button{grid-template-rows:32px 16px;gap:0;width:60px;height:60px;transform:none}.theme-sketchbook .palette .theme-symbol{width:32px;height:32px}.theme-sketchbook .workspace .block-repeat strong{font-family:Gamja Flower;font-size:22px}}.theme-sketchbook .palette button{grid-template-rows:40px 16px;align-content:center;padding:0}.theme-sketchbook .palette .block-symbol{line-height:0}.theme-sketchbook .palette .theme-symbol{width:40px;height:40px}@media (width<=700px){.theme-sketchbook .palette button{grid-template-rows:28px 16px}.play-page.theme-sketchbook .palette small{font-size:13px;line-height:16px}.theme-sketchbook .palette .theme-symbol{width:28px;height:28px}.theme-sketchbook .palette{padding-block:0}}.theme-sketchbook .block-tile{background:#fffaf0}.play-page.theme-sketchbook .stage-goal{font-size:16px;font-weight:700;line-height:24px}.play-page.theme-sketchbook .editor p,.play-page.theme-sketchbook .stage-hint,.play-page.theme-sketchbook button small,.play-page.theme-sketchbook .empty-repeat,.play-page.theme-sketchbook .workspace .empty-repeat-label{font-size:13px;font-weight:700;line-height:16px}.play-page.theme-sketchbook .block-budget p{font-size:14px;line-height:20px}.play-page.theme-sketchbook .palette button:disabled{color:#3b3a36;opacity:1;filter:none;background:#fff}.play-page.theme-sketchbook .run-button small{font-size:26px;line-height:30px}@media (width<=700px){.play-page.theme-sketchbook .execution-controls .run-button small{font-size:16px;line-height:20px}}@font-face{font-family:Do Hyeon;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/do-hyeon-korean-400-normal-D2BmEaEJ.woff2)format("woff2"),url(/assets/do-hyeon-korean-400-normal-BdQTCCwj.woff)format("woff")}@font-face{font-family:Black Han Sans;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/black-han-sans-korean-400-normal-BRSjNtUw.woff2)format("woff2"),url(/assets/black-han-sans-korean-400-normal-B_VfM2lb.woff)format("woff")}.theme-train{color:#294c48;background:radial-gradient(at 85% 10%,#fff 0 5%,#0000 5.4%),radial-gradient(at 70% 8%,#fff 0 4%,#0000 4.4%),linear-gradient(#c3e9f6 0 48%,#c5df9c 48%);border-radius:24px;padding:16px 20px;font-family:Do Hyeon,sans-serif;box-shadow:0 8px 30px #326a3820}.theme-train h1{color:#fff8e8;background:#8a603d;border:3px solid #bc9466;border-radius:10px;width:fit-content;padding:4px 12px;font-family:Black Han Sans,sans-serif}.theme-train .map-panel{background:0 0}.theme-train .board{background:#6b9a57;border:5px solid #94bd72;border-radius:14px;transform:perspective(700px)rotateX(18deg)rotate(-5deg)scale(.94);box-shadow:0 8px #658347}.theme-train .board-cell{background:#d6e8ab;border-bottom:4px solid #b1cc87;border-radius:5px}.theme-train .board-wall{background:#8c9d9c;border:3px solid #718684;box-shadow:0 -3px #b9c5bc}.theme-train .board-goal{color:#c54537;background:#ffe9a8}.theme-train .palette button{border:2px solid #497d73;border-radius:12px 12px 5px 5px;box-shadow:0 4px #396359}.theme-train .workspace{background:repeating-linear-gradient(0deg,#0000 0 72px,#8c796780 72px 76px,#e0c49f 76px 80px);border:2px solid #9dbb86}.theme-train .block-tile{border:3px solid #4c8279;border-radius:12px 12px 6px 6px;box-shadow:0 4px #46615c}.theme-train .repeat-frame{background:#fff1ba;border:4px solid #d6a625;border-radius:22px}.theme-train .run-button{background:#d64c3d;border:3px solid #a93930;border-radius:24px;box-shadow:0 3px #9f352b}.theme-train .block-active{animation:.4s infinite alternate train-bounce}@keyframes train-bounce{to{transform:translateY(-4px)}}.theme-train .board.train-island{box-shadow:none;background:0 0;border:0;display:block;overflow:visible;transform:none}.train-island .board-robot{position:static}.train-island .robot-art{width:34px;height:34px}.play-page.theme-train{color:#1c1917;background:radial-gradient(40px 22px at 12% 12%,#fff 98%,#0000),radial-gradient(60px 28px at 16% 10%,#fff 98%,#0000),radial-gradient(50px 24px at 72% 18%,#fff 98%,#0000),radial-gradient(70px 30px at 77% 15%,#fff 98%,#0000),linear-gradient(#7dd3fc,#e0f2fe 55%,#84cc16 55%,#65a30d)}.theme-train h1{color:#fff7ed;background:#b45309;border:0;padding:8px 18px;box-shadow:inset 0 -6px #0003,0 8px 0 -2px #78350f}.theme-train .board.train-island{filter:drop-shadow(0 8px #3f6212);padding:0;overflow:hidden}.theme-train .train-island .board-robot{position:static}.theme-train .editor{background:#fffbeb;border-radius:22px;padding:16px;box-shadow:0 10px #d6b98c,0 30px 40px -20px #0006}.theme-train .palette{gap:14px;padding-bottom:6px;display:flex}.theme-train .palette button{color:#fff;background:var(--c,#235b70);border:0;border-radius:14px;flex:none;width:92px;height:78px;font-size:15px;box-shadow:0 6px #0003}.theme-train .block-forward{--c:#2563eb}.theme-train .block-turnLeft,.theme-train .block-turnRight{--c:#15803d}.theme-train .block-repeat{--c:#f59e0b}.theme-train .workspace{background:0 0;border:0;border-radius:0;padding-bottom:16px}.theme-train .workspace>.tile-list{padding-top:12px;padding-bottom:18px}.theme-train .tile-list{background:repeating-linear-gradient(90deg,#78350f 0 10px,#0000 10px 22px) 0 calc(100% - 2px)/100% 8px no-repeat,linear-gradient(#57534e,#57534e) 0 calc(100% - 8px)/100% 3px no-repeat,linear-gradient(#57534e,#57534e) 0 100%/100% 3px no-repeat;align-items:flex-end;row-gap:28px}.theme-train .block-tile{background:var(--c,#235b70);color:#fff;border:0;border-radius:12px 12px 6px 6px;margin-bottom:12px;box-shadow:inset 0 -8px #0002}.theme-train .tile-item{padding-right:5px;position:relative}.theme-train .tile-item:after{content:"";background:#57534e;width:10px;height:6px;position:absolute;bottom:28px;right:-4px}.theme-train .block-tile:before,.theme-train .block-tile:after{content:"";background:#292524;border-radius:50%;width:20px;height:20px;position:absolute;bottom:-10px;box-shadow:inset 0 0 0 5px #57534e}.theme-train .block-tile:before{left:8px}.theme-train .block-tile:after{right:8px}.theme-train .repeat-frame{box-shadow:none;background:0 0;border:5px solid #f59e0b;border-bottom:0;border-radius:35px 35px 0 0;padding:12px 8px 0}.theme-train .block-repeat{height:var(--tile-size)}.theme-train .block-repeat strong{background:#f59e0b;border-radius:999px;padding:3px;box-shadow:0 3px #b45309}.theme-train .engine-art{float:left;width:100px;height:77px;margin:10px 8px 12px 0;display:block}.theme-train button:not(.block-tile):not(.palette button){color:#78350f;background:#fff7ed;border:0;border-radius:999px;box-shadow:0 4px #b98d56}.theme-train .execution-controls{background:0 0}.theme-train button.run-button{color:#fff;background:#dc2626;font-family:Black Han Sans;box-shadow:0 7px #7f1d1d}.theme-train .run-button .control-symbol{display:none}.theme-train .run-button small{font-size:25px}.theme-train .tile-toolbar{background:#fffbeb}@media (width<=700px){.theme-train .editor{border-radius:12px;padding:4px;box-shadow:0 4px #d6b98c}.theme-train .palette{gap:8px}.theme-train .palette button{width:62px;height:56px}.theme-train .palette small{font-size:10px;display:block}.theme-train .palette .theme-symbol{width:28px;height:28px}.theme-train .engine-art{width:52px;height:40px;margin:12px 2px 12px 0}.theme-train .workspace{--tile-size:50px;--tile-gap:4px}.theme-train .repeat-frame{border-width:3px;padding:7px 4px 0}.theme-train .block-tile:before,.theme-train .block-tile:after{width:14px;height:14px;bottom:-7px;box-shadow:inset 0 0 0 3px #57534e}.theme-train .block-tile:before{left:4px}.theme-train .block-tile:after{right:4px}.theme-train .run-button small{font-size:19px}}.theme-train button[aria-pressed=true]{outline-offset:-3px;outline:3px solid #f59e0b}.theme-train .palette button{align-content:center;justify-items:center;gap:4px;display:grid}.theme-train .palette .block-symbol{line-height:0}@media (width<=700px){.theme-train .palette button{grid-template-rows:28px 14px;gap:0;padding:4px}.theme-train .palette small{line-height:14px}}.theme-train .workspace>.tile-list{padding:4px 0}.theme-train .tile-list{align-items:flex-start;row-gap:10px}.theme-train .block-tile{margin-bottom:0}.theme-train .block-tile:before,.theme-train .block-tile:after{width:10px;height:10px;bottom:0;box-shadow:inset 0 0 0 2px #57534e}.theme-train .repeat-frame{border-width:3px;padding:4px}.theme-train .block-repeat .block-symbol{display:none}.theme-train .block-repeat strong{white-space:nowrap;z-index:1;font-size:18px;line-height:24px;position:relative}.theme-train .engine-art{float:none;width:60px;height:46px;margin:0 0 4px}@media (width<=700px){.theme-train .palette button{grid-template-rows:28px 16px;width:64px;height:60px}.theme-train .palette small{font-size:13px;line-height:16px}.theme-train .workspace .block-repeat strong{font-size:16px}}.theme-train .palette .block-repeat .block-symbol{display:block}.theme-train .palette small{white-space:nowrap}.theme-train .palette button.block-repeat,.theme-train .block-tile.block-repeat{color:#422006}.theme-train .block-tile[aria-pressed=true]{outline-offset:-3px;outline:3px solid #172554;box-shadow:inset 0 0 0 5px #fff}@font-face{font-family:"Press Start 2P";font-style:normal;font-display:swap;font-weight:400;src:url(/assets/press-start-2p-latin-400-normal-_wFEWmAB.woff2)format("woff2"),url(/assets/press-start-2p-latin-400-normal-KLytu4cr.woff)format("woff")}@font-face{font-family:Do Hyeon;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/do-hyeon-korean-400-normal-D2BmEaEJ.woff2)format("woff2"),url(/assets/do-hyeon-korean-400-normal-BdQTCCwj.woff)format("woff")}.theme-handheld{color:#303846;background:linear-gradient(135deg,#e2e3db,#b6bdbb);border:3px solid #a0a7a4;border-radius:24px 24px 60px;padding:16px 24px;font-family:Do Hyeon,sans-serif;box-shadow:inset 3px 3px #f6f7ed,0 8px #7e8985}.theme-handheld h1{border-left:8px solid #d24965;padding-left:10px}.theme-handheld .map-panel{background:#444d59;border:6px solid #626c78;border-radius:15px 15px 40px}.theme-handheld .board{background:#536b37;border:6px solid #34432d;border-radius:2px;gap:2px}.theme-handheld .board-cell{color:#33482d;background:#b3c87a;border-radius:0}.theme-handheld .board-wall{background:repeating-linear-gradient(0deg,#344b2c 0 3px,#647e42 3px 11px);border:2px solid #344b2c}.theme-handheld .board-goal{background:#a1bd65}.theme-handheld .board:after{content:"";pointer-events:none;background:repeating-linear-gradient(#0000 0 3px,#23421415 3px 4px);position:absolute;inset:0}.theme-handheld .board{position:relative}.theme-handheld .palette button{color:#f2f1df;background:#35414b;border:3px solid #222a33;border-radius:5px;box-shadow:0 4px #84918b}.theme-handheld .palette .block-repeat{background:#a83351;border-radius:50%}.theme-handheld .workspace{background:#d0d5c9;border:3px solid #778176}.theme-handheld .block-tile{border:3px solid #4c5d47;border-radius:4px;box-shadow:inset 0 -5px #203b1820}.theme-handheld .repeat-frame{background:#b9c79e;border:3px dashed #526442;border-radius:4px}.theme-handheld .run-button{background:#bc3555;border:3px solid #862940;border-radius:50%;font-family:"Press Start 2P",sans-serif}.theme-handheld .block-active{animation:.5s steps(2,end) infinite pixel-blink}.cartridge-slots{flex-wrap:wrap;gap:4px;margin-top:4px;display:flex}.cartridge-slots span{width:var(--tile-size);height:var(--tile-size);background:#b9c2ad50;border:2px dashed #849079;border-radius:4px}@keyframes pixel-blink{to{box-shadow:inset 0 0 0 6px #4c6538}}.theme-handheld .palette{grid-template-columns:repeat(4,minmax(0,1fr))}.theme-handheld .palette .block-forward{clip-path:polygon(25% 0,75% 0,75% 25%,100% 25%,100% 75%,75% 75%,75% 100%,25% 100%,25% 75%,0 75%,0 25%,25% 25%)}.theme-handheld .palette .block-turnLeft{border-radius:18px 4px 4px 18px}.theme-handheld .palette .block-turnRight{border-radius:4px 18px 18px 4px}.theme-handheld .palette .block-repeat small{font-family:"Press Start 2P",sans-serif;font-size:10px;display:block}.play-page.theme-handheld{color:#2b2d42;background:linear-gradient(160deg,#e8e1d3,#c9bfab);border:0;box-shadow:inset -8px -10px #0001,inset 6px 6px #fff8,0 30px 60px -30px #000}.theme-handheld .map-panel{background:#56586b;border:0;border-radius:16px 16px 50px;padding:18px;box-shadow:inset 0 4px 8px #0006}.theme-handheld .map-panel:before{content:"●  BATTERY · CODE BOY";color:#ffd1da;text-shadow:0 0 8px #ff4d6d;padding:0 0 14px;font:9px "Press Start 2P";display:block}.theme-handheld .board.art-board{shape-rendering:crispedges;image-rendering:pixelated;background:#9bbc0f;border:3px solid #8bac0f;border-radius:4px;padding:8px;display:block;box-shadow:inset 0 0 30px #0f380f44}.theme-handheld .art-board .board-wall,.theme-handheld .art-board .board-goal{background:0 0}.theme-handheld .art-board .board-robot{position:static}.theme-handheld .art-board .robot-art{width:100%;height:100%}.theme-handheld .palette{grid-template-rows:repeat(3,48px);grid-template-columns:repeat(3,48px) 20px 74px;align-items:stretch;gap:0;width:238px;margin:8px 0;display:grid;position:relative}.theme-handheld .palette button{color:#fff;clip-path:none;opacity:1;background:#2b2d42;border:0;border-radius:0;width:48px;min-width:48px;height:48px;min-height:48px;padding:0;box-shadow:inset 0 -5px #0007}.theme-handheld .palette button:disabled{color:#b1b2bd}.theme-handheld .palette .block-forward{clip-path:none;border-radius:8px 8px 0 0;grid-area:1/2}.theme-handheld .palette .block-turnLeft{border-radius:8px 0 0 8px;grid-area:2/1}.theme-handheld .palette .block-turnRight{border-radius:0 8px 8px 0;grid-area:2/3}.theme-handheld .palette:before{content:"";background:#1f2030;grid-area:2/2}.theme-handheld .palette:after{content:"";background:#1f2030;border-radius:0 0 8px 8px;grid-area:3/2;box-shadow:inset 0 -5px #0007}.theme-handheld .palette button.block-repeat{aspect-ratio:1;color:#3a2a00;background:#ffb703;border-radius:50%;grid-area:1/5/4;align-self:center;width:74px;height:74px;box-shadow:inset 0 -6px #0005,0 6px #0002}.theme-handheld .palette .block-repeat .block-symbol{display:none}.theme-handheld .palette .block-repeat small{font:18px "Press Start 2P";display:block}.theme-handheld .palette small{display:none}.theme-handheld .palette .theme-symbol{width:24px;height:24px}.theme-handheld .workspace{background:#3a3c4e;border:0;border-radius:10px;flex-wrap:wrap;align-content:flex-start;gap:6px;padding:12px;display:flex;box-shadow:inset 0 4px #0005}.theme-handheld .workspace>.tile-list{width:100%}.theme-handheld .block-tile{color:#fff;background:var(--c);border:0;border-radius:6px;box-shadow:inset 0 -5px #0004,0 0 0 2px #0003}.theme-handheld .block-forward{--c:#4361ee}.theme-handheld .block-turnLeft,.theme-handheld .block-turnRight{--c:#19786d}.theme-handheld .block-repeat{--c:#ffb703}.theme-handheld .repeat-frame{box-shadow:none;background:0 0;border:3px dashed #ffd166}.theme-handheld .cartridge-slots{gap:6px;margin:0}.theme-handheld .cartridge-slots span{background:#1f2030;border:0;border-radius:6px;box-shadow:inset 0 -4px #0006}.theme-handheld button:not(.block-tile):not(.palette button):not(.run-button){color:#fff;background:#625d53;border:0;border-radius:20px;box-shadow:inset 0 -3px #0003}.theme-handheld button.run-button{aspect-ratio:1;color:#fff;background:#d1345b;border:0;border-radius:50%;justify-self:center;width:74px;height:74px;box-shadow:inset 0 -6px #0005,0 6px #0002}.theme-handheld .run-button .control-symbol{display:none}.theme-handheld .run-button small{font:18px "Press Start 2P"}.theme-handheld .execution-controls{background:0 0}.theme-handheld .editor:after{content:"";background:repeating-linear-gradient(90deg,#0000 0 8px,#0002 8px 16px);border-radius:5px;flex-shrink:0;align-self:flex-end;width:88px;height:26px;transform:rotate(-18deg)}.theme-handheld .tile-toolbar{background:#c9bfab}@media (width<=700px){.theme-handheld .palette{grid-template-rows:repeat(3,44px);grid-template-columns:repeat(3,44px) 20px 64px;width:216px;margin:0}.theme-handheld .palette button{width:44px;min-width:44px;height:44px;min-height:44px}.theme-handheld .palette button.block-repeat{width:64px;height:64px}.theme-handheld .workspace{padding:5px}.theme-handheld .has-selection .workspace{padding-top:58px}.theme-handheld .editor:after{display:none}.theme-handheld button.run-button{width:58px;height:58px;min-height:58px}.theme-handheld .execution-controls{gap:2px}.theme-handheld .map-panel:before{display:none}}.theme-handheld .has-selection .workspace{padding-top:58px}.lcd-hud{color:#0f380f;background:#9bbc0f;justify-content:space-between;align-items:center;padding:8px;font:9px "Press Start 2P";display:flex}.lcd-hud .theme-symbol{fill:#0f380f;width:16px;height:16px}@media (width<=700px){.lcd-hud{display:none}.play-page.theme-handheld .map-panel .art-board{height:110px}}@media (width<=700px) and (height<=590px){.play-page.theme-handheld .map-panel .art-board{height:75px}}.theme-handheld .workspace{grid-template-columns:repeat(5,var(--tile-size));grid-auto-rows:var(--tile-size);gap:8px;display:grid}.theme-handheld .workspace .tile-list,.theme-handheld .workspace .tile-item,.theme-handheld .workspace .repeat-frame,.theme-handheld .cartridge-slots{display:contents}.theme-handheld .workspace .block-repeat{outline-offset:-3px;color:#3a2a00;outline:3px dashed #ffd166}.theme-handheld .workspace>p{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.theme-handheld .insertion-marker,.theme-handheld .empty-repeat{display:none}@media (width<=700px){.theme-handheld .workspace{--tile-size:50px;gap:7px}}body:has(.theme-handheld){background:repeating-linear-gradient(45deg,#2b2d42 0 14px,#32354d 14px 28px)}.theme-handheld button[aria-pressed=true]{outline-offset:-3px;outline:3px solid #ffd166}.theme-handheld .palette .block-symbol{line-height:0}.theme-handheld .block-repeat .block-symbol{display:none}.theme-handheld .block-repeat strong{white-space:nowrap;font:18px/24px Do Hyeon,sans-serif}@media (width>=701px){.theme-handheld .map-panel{padding:12px}.theme-handheld .editor:after{height:12px}}@media (width<=700px){.theme-handheld .palette{grid-template-rows:44px 44px;height:88px}.theme-handheld .palette:after{display:none}.theme-handheld .palette button.block-repeat{grid-row:1/3}.theme-handheld .palette .block-symbol .theme-symbol{shape-rendering:geometricprecision}}@media (width>=701px){.play-page.theme-handheld .map-panel .art-board{max-height:160px}}.factory-page{--factory-ink:#25445a;--factory-paper:#fffdf5;color:var(--factory-ink);background:var(--factory-paper);border:3px solid var(--factory-ink);box-sizing:border-box;border-radius:20px;width:100%;min-width:0;padding:clamp(10px,2vw,24px)}.factory-page.world-train{--factory-ink:#204b3c;--factory-paper:#f2fbef;border-radius:28px 28px 8px 8px}.factory-page.world-handheld{--factory-ink:#2c354c;--factory-paper:#edf1df;border-radius:8px;box-shadow:inset 0 0 0 5px #bbc3ad}.factory-page *,.factory-page :before,.factory-page :after{box-sizing:border-box}.factory-page header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.factory-page h1{margin:8px 0;font-size:clamp(24px,4vw,36px)}.factory-page h2{font-size:21px}.factory-page.factory-page.factory-page.factory-page button[type=button],.factory-page select,.factory-entry{border:2px solid var(--factory-ink,#25445a);min-width:44px;max-width:100%;min-height:44px;color:var(--factory-ink,#25445a);font:inherit;white-space:normal;overflow-wrap:anywhere;background:#fff;border-radius:8px;padding:8px 10px;line-height:1.35}.factory-entry{align-items:center;gap:10px;min-height:56px;display:inline-flex}.factory-entry svg{width:32px;height:32px}.factory-page.factory-page.factory-page.factory-page button[type=button]:disabled{opacity:1;color:#5d6470;cursor:default;background:#e7e8e9;border-color:#666e78}.factory-page.factory-page.factory-page.factory-page button[type=button][aria-pressed=true]{background:var(--factory-ink);color:#fff;box-shadow:0 0 0 2px var(--factory-ink);border:4px double #fff;font-weight:700}.factory-page :focus-visible{outline-offset:3px;outline:3px solid #894400}.factory-page input[type=checkbox]{vertical-align:middle;width:24px;height:24px;margin:10px}.factory-columns{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:20px;display:grid}.factory-columns>*,.factory-fields>*,.factory-condition{min-width:0}.factory-runbar,.factory-actions,.factory-tabs,.factory-palette{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.factory-runbar{background:var(--factory-paper);border-bottom:2px solid var(--factory-ink);padding:10px 0;position:static}.factory-observation{overflow-wrap:anywhere;min-height:70px;font-weight:700}.factory-picture{border:2px solid var(--factory-ink);background:#fff;border-radius:12px;min-width:0;padding:10px}.factory-picture h2{margin-top:0}.factory-belt{border-bottom:5px double var(--factory-ink);padding-bottom:8px}.factory-belt-boxes{flex-wrap:wrap;align-items:center;gap:4px;min-height:48px;display:flex}.factory-front{border:3px solid var(--factory-ink);border-radius:5px;padding:2px}.factory-box{flex:0 0 38px;width:38px;height:38px;display:inline-flex}.factory-box svg{width:100%;height:100%;overflow:visible}.factory-box-highlight{outline-offset:1px;outline:3px dashed #894400}.factory-piles{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.factory-piles strong{flex-wrap:wrap;align-items:center;font-size:16px;display:flex}.factory-pile-icon{flex:0 0 24px;width:24px;height:24px;margin-right:4px}.factory-bin{border:2px solid var(--factory-ink);background:#eff6fa80;border-top:0;flex-direction:column-reverse;justify-content:flex-start;align-items:center;min-height:238px;padding:4px;display:flex}.factory-held{flex-wrap:wrap;align-items:center;gap:10px;min-height:68px;margin-top:12px;display:flex}.factory-held>svg{width:60px;height:30px}.factory-page fieldset{border:1px solid var(--factory-ink);min-width:0;margin:12px 0;padding:8px}.factory-page legend{overflow-wrap:anywhere;max-width:100%;padding:4px}.factory-box-editor,.factory-code-list{margin:8px 0;padding:0;list-style:none}.factory-box-editor li{flex-wrap:wrap;align-items:center;gap:8px;margin:6px 0;display:flex}.factory-field{flex-direction:column;gap:4px;min-width:0;max-width:100%;margin:6px 0;display:flex}.factory-field select{text-overflow:ellipsis;width:100%;min-width:0}.factory-tile{border:2px solid var(--factory-ink);background:#f2f5f8;border-radius:10px;min-width:0;margin:10px 0;padding:8px}.factory-active{outline-offset:2px;outline:4px dashed #894400}.factory-nest{border-left:3px solid var(--factory-ink);margin-top:10px;padding-left:8px}.factory-nest .factory-nest{padding-left:4px}.factory-page details{margin:16px 0}.factory-page summary{cursor:pointer;min-height:44px;padding:12px 4px}@media (width<=760px){.factory-columns{grid-template-columns:minmax(0,1fr)}.factory-runbar{gap:6px}.factory-runbar .factory-field{flex:100%}.factory-runbar .factory-field select{width:auto}.factory-page{border-width:2px}.factory-picture .factory-box{flex-basis:32px;width:32px;height:32px}.factory-bin{min-height:128px}.factory-piles{gap:4px}.factory-piles strong{font-size:14px}}@media (prefers-reduced-motion:reduce){.factory-page *,.factory-page :before,.factory-page :after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.factory-tile .factory-tile .factory-tile{border-left:0;border-right:0;border-radius:0;padding:4px 0}.factory-nest .factory-nest{border-left:0;padding-left:0}.factory-save{border:2px solid var(--factory-ink);border-radius:10px;margin:12px 0;padding:12px}.factory-page input[type=text]{border:2px solid var(--factory-ink);width:100%;max-width:100%;min-height:44px;color:inherit;font:inherit;background:#fff;border-radius:6px;padding:8px}.factory-projects{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px;margin-top:16px;display:grid}.factory-projects article{border:2px solid var(--factory-ink);overflow-wrap:anywhere;border-radius:10px;min-width:0;padding:12px}.factory-projects button,.factory-save fieldset button{margin:4px}.factory-dialog{color:#25445a;background:#fffdf5;border:3px solid #25445a;border-radius:14px;max-width:min(90vw,560px);max-height:90vh;padding:20px;overflow:auto}.factory-dialog::backdrop{background:#0009}.factory-dialog button{min-width:44px;min-height:44px;font:inherit;color:#25445a;white-space:normal;overflow-wrap:anywhere;background:#fff;border:2px solid #25445a;border-radius:8px;margin:4px;padding:10px}.factory-dialog :focus-visible{outline-offset:3px;outline:3px solid #894400}.admin-page{color:#1f2933;overflow-wrap:break-word;word-break:keep-all;background:#f7f9fc;font:16px/1.6 system-ui,sans-serif}.admin-page section{margin-block:2rem}.admin-page h1{font-size:1.8rem}.admin-page h2{font-size:1.35rem}.admin-development{color:#513b00;background:#fff1c2;border:1px solid #866100;padding:.75rem}.admin-page dl{grid-template-columns:minmax(100px,1fr) minmax(0,3fr);gap:.5rem;display:grid}.admin-page dd{margin:0}.admin-table-scroll{max-width:100%;padding:4px;overflow-x:auto}.admin-page table{border-collapse:collapse;background:#fff;width:100%;font-size:14px}.admin-page th,.admin-page td{text-align:left;vertical-align:top;border:1px solid #64748b;min-width:95px;padding:.65rem}.admin-page th{color:#1e293b;background:#e2e8f0}.admin-page td p{margin-bottom:0}.admin-page button,.admin-page select,.admin-entry{min-width:44px;min-height:44px;font-size:14px}.admin-page select{color:#1f2933;background:#fff;max-width:100%}.admin-entry{font-size:14px}.admin-table-scroll:focus-visible{outline-offset:2px;outline:3px solid #2563eb}.admin-page li{margin-block:.5rem}.admin-cards{display:none}.admin-day h4{margin-bottom:.25rem}.admin-day ol{margin-top:.25rem;padding-left:1.5rem}.admin-day time{white-space:nowrap;font-variant-numeric:tabular-nums}@media (width<=700px){.admin-table-scroll{display:none}.admin-cards{gap:.4rem;display:grid}.admin-cards article{background:#fff;border:1px solid #64748b;min-width:0;padding:.4rem .65rem}.admin-cards h3{margin:0;font-size:14px}.admin-cards dl{flex-wrap:wrap;gap:.15rem .75rem;margin:.15rem 0 0;font-size:14px;display:flex}.admin-cards dl>div{flex-wrap:wrap;gap:.3rem;display:flex}.admin-cards dt{color:#334155}.admin-cards p{margin:.25rem 0 0;font-size:14px}.admin-units-cards dl>div:nth-child(2){flex-basis:100%;order:1}.admin-page section{margin-block:1.25rem}}.factory-activity-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:.75rem;display:grid}.factory-activity-cards article{background:#fff;border:1px solid #64748b;min-width:0;padding:.75rem}.learning-page{color:#302d28;width:100%;max-width:1040px;margin:auto}.learning-page h2{margin-top:1.5rem;font-size:1.4rem}.learning-entry{justify-content:center;align-items:center;gap:.65rem;min-height:52px;padding:.65rem 1rem;display:inline-flex}.learning-entry .theme-symbol{flex:0 0 36px;width:36px;height:36px}.learning-page button{white-space:normal;overflow-wrap:anywhere;min-width:48px;min-height:48px}.learning-actions{flex-wrap:wrap;gap:.6rem;display:flex}.learning-count{font-size:1.4rem;font-weight:700}.learning-tools{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:.8rem;display:grid}.learning-tool{color:#302d28;border:2px solid #69604f;flex-direction:column;align-items:center;gap:.5rem;padding:1rem;display:flex}.learning-tool .theme-symbol{width:42px;height:42px}.learning-tool[data-state=completed]{border:3px solid #315b38;font-weight:800}.learning-tool[data-state=unopened]{color:#625f58;background:#eeece7;border-color:#8b857b}.learning-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:.8rem;padding:0;list-style:none;display:grid}.learning-cards li,.learning-next{overflow-wrap:anywhere;border:2px solid #69604f;border-radius:12px;min-width:0;padding:1rem}.learning-cards li.world-sketchbook,.learning-tool.world-sketchbook,.learning-next.world-sketchbook{background-color:#fff9e8}.learning-cards li.world-train,.learning-tool.world-train,.learning-next.world-train{background-color:#eaf4dc}.learning-cards li.world-handheld,.learning-tool.world-handheld,.learning-next.world-handheld{background-color:#d9e6aa}.learning-tools .learning-tool[data-state=unopened]{background-color:#eeece7}.learning-next{flex-wrap:wrap;align-items:center;gap:1rem;display:flex}.review-toggle{white-space:normal;max-width:100%;min-height:44px}.review-toggle[aria-pressed=true]{color:#253d28;background:#eaf4dc;border:3px solid #315b38}.learning-tool[data-state=active]{border-style:dashed}.learning-tool[data-state=active] span{border:1px solid;border-radius:5px;padding:.1rem .4rem}@media (width<=600px){.learning-page{padding:12px}.learning-tools{grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.learning-tool{gap:.25rem;min-width:0;padding:.5rem}.learning-tool .theme-symbol{width:28px;height:28px}.learning-tool strong{font-size:1rem;line-height:1.2}}.workspace{--tile-size:76px;--tile-gap:6px}.tile-list{align-content:flex-start;align-items:flex-start;gap:var(--tile-gap);flex-wrap:wrap;min-width:0;max-width:100%;margin:0;padding:0;list-style:none;display:flex}.tile-item{align-items:center;gap:3px;display:flex}.block-tile{width:var(--tile-size);height:var(--tile-size);flex:0 0 var(--tile-size);flex-direction:column;justify-content:center;align-items:center;padding:12px 2px 2px;display:flex;position:relative}.block-tile small{font-size:.65rem;position:absolute;top:1px;left:5px}.block-tile strong{line-height:1}.block-tile[aria-pressed=true]{outline-offset:-3px;outline:3px solid #2563eb}.repeat-frame{align-items:flex-start;gap:var(--tile-gap);background:#fff7eb;border:2px solid #bb701c;border-radius:10px;flex-wrap:wrap;min-width:0;max-width:100%;padding:4px;display:flex}.repeat-frame>.tile-list{flex:1 1 var(--tile-size)}.frame-selected{border-color:#713e0b;box-shadow:inset 0 0 0 2px #713e0b}.empty-repeat{width:var(--tile-size);height:var(--tile-size);border:2px dashed #9b5b13;border-radius:8px;place-items:center;font-size:.7rem;display:grid}.insertion-marker{color:#713e0b;font-weight:700}.tile-toolbar{align-items:center;gap:4px;min-height:48px;display:flex}.tile-toolbar button{flex:0 0 48px;padding:2px}.slot-dots{color:#64748b;gap:4px;font-size:.9rem;line-height:1;display:flex}.slot-dots .filled{color:#173d70}.slot-dots .unavailable{opacity:.25}@media (width<=700px){.workspace{--tile-size:56px;--tile-gap:4px}.block-tile .block-symbol{font-size:1.6rem}}.block-budget{flex-wrap:wrap;align-items:center;gap:.6rem;display:flex}.workspace-shell{flex:1;min-height:0;display:flex;position:relative}.editor>.workspace-shell{flex-shrink:1}.workspace-shell .workspace{width:100%}.has-selection .workspace{padding-top:58px}.tile-toolbar{z-index:1;background:#f7f9fc;border-radius:9px 9px 0 0;padding:3px;position:absolute;top:1px;left:1px;right:1px}.tile-toolbar button{font-size:1.25rem}@media (width<=700px){.editor h2,.editor h3,.insertion-status{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.palette{grid-template-columns:repeat(4,56px);justify-content:start}.palette button{width:56px;height:56px}.palette small{display:none}.tile-toolbar{gap:2px}.tile-toolbar button{flex-basis:48px}}.play-page{--failure-ink:#a52b14}.theme-train{--failure-ink:#9f1239}.theme-handheld{--failure-ink:#0f380f}.block-tile.block-failed{outline:3px dashed var(--failure-ink);outline-offset:-4px}.failure-badge{background:var(--failure-ink);color:#fff;z-index:2;border-radius:50%;width:18px;height:18px;font:700 15px/18px sans-serif;position:absolute;top:3px;right:3px}.board-failure{color:var(--failure-ink);pointer-events:none}.fix-button{min-width:44px;min-height:44px}.block-tile.has-loop-progress{padding-top:12px;padding-bottom:20px}.block-tile .loop-progress{white-space:nowrap;color:#713e0b;background:#fff4cf;border:1px solid;border-radius:4px;max-width:calc(100% - 6px);padding:0 3px;font:700 12px/16px sans-serif;position:absolute;bottom:2px;left:50%;transform:translate(-50%)}.theme-sketchbook .loop-progress{color:#a13e21;border-style:dashed;font-family:Gaegu,cursive;font-size:15px}.theme-train .loop-progress{color:#194f68;background:#fff8df;border-width:2px;border-radius:8px;line-height:14px}.theme-handheld .loop-progress{color:#0f380f;letter-spacing:1px;background:#c5dba2;border-radius:0;font-family:monospace}@media (width<=700px){.block-tile.has-loop-progress .block-symbol{font-size:1.1rem;line-height:1}.play-page .workspace .block-tile.has-loop-progress strong{padding:0 2px;font-size:16px;line-height:20px}}.palette-row .undo-button{flex:0 0 44px;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:4px;display:grid}.palette-row{align-items:center;gap:8px;min-width:0;display:flex}.palette-row .palette{min-width:0}@media (width<=700px){.theme-sketchbook .palette-row .palette{gap:6px}.theme-train .palette-row .palette{gap:4px}.theme-train .palette-row .palette button{width:60px}}.play-page .workspace .block-tile:focus-visible{outline-offset:-3px;outline:3px solid #2563eb;box-shadow:inset 0 0 0 6px #fff}:is(.play-page,.prediction-page) :is(.workspace,.prediction-code) .block-tile.block-repeat strong,:is(.workspace,.prediction-code) .block-tile.block-repeat strong{white-space:nowrap;flex-direction:column;align-items:center;padding:0;line-height:1;display:flex}:is(.workspace,.prediction-code) .block-repeat .concept-keyword{letter-spacing:0;font:700 10px/11px monospace}:is(.workspace,.prediction-code) .block-repeat .repeat-count{letter-spacing:-1px;font:700 26px/28px monospace}.theme-sketchbook :is(.workspace,.prediction-code) .block-repeat .repeat-count{color:#a83b1b;font-family:Gamja Flower,cursive;font-size:32px}.theme-handheld :is(.workspace,.prediction-code) .block-repeat .repeat-count{font-family:Do Hyeon,sans-serif}:is(.workspace,.prediction-code) .block-tile.block-repeat .block-symbol{display:none}:is(.play-page,.prediction-page) :is(.workspace,.prediction-code) .block-tile.block-repeat{padding-top:6px;padding-bottom:8px}:is(.play-page,.prediction-page) :is(.workspace,.prediction-code) .block-tile.block-repeat.has-loop-progress{padding-top:7px;padding-bottom:17px}:is(.play-page,.prediction-page) :is(.workspace,.prediction-code) .block-tile.block-repeat:has(.empty-repeat-label) strong{transform:translateY(-3px)}.play-page .palette button.block-repeat small{white-space:nowrap;font:700 10px/12px monospace;display:block}@media (width<=700px){:is(.workspace,.prediction-code) .block-repeat .repeat-count{font-size:22px;line-height:22px}.theme-sketchbook :is(.workspace,.prediction-code) .block-repeat .repeat-count{font-size:28px}:is(.workspace,.prediction-code) .block-repeat.has-loop-progress .concept-keyword{font-size:9px;line-height:9px}:is(.workspace,.prediction-code) .block-repeat.has-loop-progress .repeat-count{font-size:18px;line-height:17px}}:is(.play-page,.prediction-page) :is(.workspace,.prediction-code) .block-repeat.has-loop-progress .loop-progress{border-width:1px;font-size:10px;line-height:12px;bottom:1px}.prediction-page .prediction-code .block-repeat .repeat-count{font-size:22px;line-height:22px}.prediction-page .prediction-code .block-repeat.has-loop-progress .concept-keyword{font-size:9px;line-height:9px}.prediction-page .prediction-code .block-repeat.has-loop-progress .repeat-count{font-size:18px;line-height:17px}:is(.workspace,.prediction-code) .block-repeat .failure-badge{width:10px;height:10px;font-size:10px;line-height:10px;top:0;right:1px}:is(.workspace,.prediction-code) .block-tile.block-repeat small{font-size:9px;line-height:9px}@media (width<=700px){.play-page .workspace .block-tile.block-repeat:has(.empty-repeat-label){padding-top:7px;padding-bottom:17px}.play-page .workspace .block-tile.block-repeat:has(.empty-repeat-label) strong{transform:none}.play-page .workspace .block-repeat:has(.empty-repeat-label) .concept-keyword{font-size:9px;line-height:9px}.play-page .workspace .block-repeat:has(.empty-repeat-label) .repeat-count{font-size:18px;line-height:17px}}.block-if{color:#38205b;background:#e5dcfa;border-color:#69439b}.sensor-icon{flex-shrink:0;width:24px;height:24px;display:inline-flex}.if-skipped>.tile-list{opacity:.45}.skip-label{align-items:center;font-size:10px;display:flex}.skip-label svg{width:16px;height:16px}.board-sensor{color:#542078;outline-offset:-3px;background:repeating-linear-gradient(135deg,#0000 0 5px,#54207844 5px 7px);outline:2px solid #542078}.variant-cards{justify-content:center;gap:8px;display:flex}.variant-cards button{align-items:center;gap:6px;min-width:74px;min-height:44px;padding:3px 8px;display:flex}.variant-cards button[aria-pressed=true]{outline-offset:-3px;outline:3px solid #542078}.variant-cards button:disabled{opacity:1}.variant-cards svg{width:32px;height:34px}.sensor-status{justify-content:center;align-items:center;gap:5px;min-height:20px;margin:2px 0;font-size:12px;display:flex}.sensor-status svg{width:20px;height:20px}.conditions-page .palette button{min-width:44px}@media (width<=600px){.conditions-page .map-panel .board{max-height:18dvh}.conditions-page .palette{gap:4px}.conditions-page .palette button{padding:3px}.conditions-page .palette .sensor-icon{width:16px;height:16px}}.else-branches{border-top:2px dashed #69439b;flex-wrap:wrap;align-items:center;gap:6px;width:100%;padding:6px;display:flex}.branch-skipped{opacity:.5}.branch-label{font-weight:700}.tile-toolbar{flex-wrap:wrap}.if-branch,.else-branches{border:1px solid #69439b;border-radius:5px;flex-direction:column;align-items:flex-start;gap:4px;width:auto;min-width:0;max-width:100%;padding:4px;display:flex}.branch-label{font:700 12px/16px monospace}.theme-handheld .workspace:has(.has-else){display:flex}.play-page.theme-handheld .workspace .if-frame.has-else{border:2px solid #ffd166;border-radius:4px;padding:4px;display:flex}.theme-handheld .workspace .has-else .tile-list{display:flex}.theme-handheld .workspace :is(.if-branch,.else-branches){color:#fff0ba;border-color:#ffd166}.play-page .workspace .if-frame.has-else{display:flex}.play-page .workspace .if-skipped>.if-branch .block-tile{opacity:.45}.while-frame{background:#e6f4ee;border:3px double #15665b;border-radius:18px}.block-while{color:#123f37;background:#d4eee5;border-color:#15665b}.recheck-label{white-space:nowrap;font-size:10px;line-height:1}.while-frame .repeat-ribbon{border-radius:8px}.play-page .palette button.block-while small{white-space:nowrap;font:700 10px/12px monospace;display:block}.play-page .workspace .block-tile.block-while{padding:0}.play-page .workspace .block-while>.block-symbol{width:18px;height:18px;position:absolute;top:9px;left:4px}.play-page .workspace .block-while>.sensor-icon{width:18px;height:18px;position:absolute;top:9px;right:4px}.play-page .workspace .block-while>strong{padding:0;font:700 10px/11px monospace;position:absolute;top:27px}.play-page .workspace .block-while .recheck-label{font:9px/10px sans-serif;position:absolute;top:39px}.play-page .workspace .block-while.has-loop-progress .recheck-label{font-size:0;top:27px;right:1px}.play-page .workspace .block-while.has-loop-progress .recheck-label:after{content:"↻";font-size:12px}.play-page .workspace .block-while .loop-progress{font:700 10px/11px sans-serif;bottom:0}.play-page .workspace .block-while .empty-repeat-label{display:none}.play-page .workspace .while-frame{background:#e6f4ee;border:3px double #15665b;border-radius:18px}.play-page .workspace .block-while>:is(.block-symbol,.sensor-icon) .theme-symbol{width:100%;height:100%}.play-page .workspace .block-tile.block-while.has-loop-progress>strong{padding:0;font:700 10px/11px monospace}@media (width<=700px){.play-page .workspace .block-while>:is(.block-symbol,.sensor-icon){width:15px;height:15px;top:10px}}.prediction-page{flex-direction:column;align-items:center;gap:8px;height:calc(100dvh - 32px);display:flex}.prediction-page h1,.prediction-page p{margin:0}.prediction-page h1{font-size:24px}.prediction-page>button,.prediction-choices button,.prediction-feedback button{min-width:64px;min-height:44px;padding:8px 14px}.prediction-map{flex-shrink:1;width:min(500px,100%);height:min(32dvh,260px);min-height:80px;position:relative}.prediction-map .board,.prediction-markers{width:100%;max-width:none;height:100%;max-height:none;margin:0;position:absolute;inset:0}.prediction-markers{pointer-events:none}.prediction-code{max-width:100%;padding:8px}.prediction-code .block-tile:disabled{opacity:1}.prediction-choices{gap:12px;display:flex}.prediction-choices button{color:#111827;background:#fff;border:2px solid #374151;font-size:22px}.prediction-choices button[aria-pressed=true]{background:#fde68a}.prediction-feedback{text-align:center;min-height:100px;font-size:16px}.prediction-feedback p{margin-bottom:4px}@media (height<=600px){.prediction-page{gap:4px;height:calc(100dvh - 20px)}.prediction-page h1{font-size:20px}.prediction-map{height:24dvh}.prediction-code{padding:2px}}.app:has(.prediction-page){padding:10px 12px}.prediction-code{--tile-size:56px;--tile-gap:4px;flex-shrink:0}.prediction-page .prediction-map .board{border:0;padding:0}.prediction-page .prediction-feedback{flex-shrink:0}@media (height<=600px){.prediction-map{height:20dvh}.prediction-feedback{min-height:88px;font-size:14px}}.prediction-entry{flex-shrink:0;justify-content:center;align-items:center;gap:8px;min-width:44px;min-height:44px;display:flex}.demo-trigger{justify-content:center;align-items:center;gap:3px;min-width:48px;min-height:48px;display:inline-flex}.demo-trigger.demo-suggested{outline-offset:2px;outline:3px solid #986000}.demo-modal{width:min(440px,100vw - 24px);max-height:calc(100dvh - 24px);padding:16px;overflow:auto}.demo-modal h2,.demo-modal p{margin:8px 0}.demo-scene{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:10px;display:grid}.demo-scene .board{width:150px;max-width:100%;height:125px;min-height:0;margin:auto}.demo-palette,.demo-run{border:2px solid #45536b;border-radius:8px;justify-content:center;align-items:center;min-height:56px;display:flex}.demo-run>svg{width:32px;height:32px}.demo-pressed{outline-offset:2px;outline:3px solid #986000}.demo-workspace{border:2px dashed #45536b;min-height:75px;padding:6px}.demo-controls{flex-wrap:wrap;justify-content:center;gap:8px;margin-top:10px;display:flex}.demo-controls button{min-width:48px;min-height:48px}.demo-workspace{grid-column:1/-1;min-width:0}.demo-workspace .tile-list{flex-wrap:wrap}.demo-function{border:2px solid #45536b;border-radius:8px;margin-top:6px;padding:4px}.demo-cue{color:#243247;overflow-wrap:anywhere;background:#fff;grid-column:1/-1;padding:4px}@media (width<=400px){.demo-modal{padding:10px}.demo-scene{gap:6px}}.demo-list{color:#243247;grid-column:1/-1;justify-content:center;gap:10px;margin:0;padding:4px;list-style:none;display:flex}.demo-list li{text-align:center;background:#fff;border:2px solid #45536b;min-width:44px;padding:3px;display:grid}.demo-list small{border-bottom:1px solid #45536b}.demo-list .demo-unchecked{border-style:dashed}.demo-target-cue{color:#243247;background:#fff;align-items:center;display:flex}.demo-backdrop{padding:12px}.demo-modal .demo-run{grid-column:1/-1}.demo-modal{--tile-size:56px;--tile-gap:4px}.demo-modal .tile-list{flex-wrap:wrap;align-items:flex-start;gap:4px;display:flex}.demo-modal .repeat-frame{flex-wrap:wrap;gap:4px;padding:4px;display:flex}.demo-modal .block-tile{flex:0 0 56px;gap:2px;width:56px;min-width:56px;height:auto;min-height:56px;padding:16px 3px 4px;font:12px/16px sans-serif}.demo-modal .block-tile small{font:12px/14px sans-serif;top:1px;left:3px}.demo-modal .block-tile .block-symbol{font:20px/24px sans-serif}.demo-modal .block-tile .theme-symbol{width:28px;height:28px}.demo-modal .block-tile strong{padding:0;font:700 12px/16px monospace;position:static}.demo-modal .block-tile.block-repeat strong{flex-direction:column;align-items:center;display:flex}.demo-modal .block-repeat .concept-keyword{font:700 12px/16px monospace}.demo-modal .block-repeat .repeat-count{overflow-wrap:anywhere;font:700 20px/24px monospace}.demo-modal .block-call .block-symbol{align-items:center;font:14px/20px monospace;display:flex}.demo-modal .block-call .theme-symbol{width:20px;height:20px}.demo-modal .block-tile:is(.block-if,.block-while){flex-basis:112px;width:112px}.demo-modal .block-tile:has(.logic-condition) .logic-condition{white-space:normal;overflow-wrap:anywhere;order:1;width:100%;font:700 12px/16px sans-serif;position:static;overflow:visible}.demo-modal .block-tile .sensor-icon{width:20px;height:20px}.demo-modal .block-tile :is(.skip-label,.recheck-label,.empty-repeat-label,.call-running,.return-count){white-space:normal;order:2;font:12px/16px sans-serif;position:static}.demo-modal .block-tile .loop-progress{white-space:normal;order:3;max-width:100%;font:700 12px/16px sans-serif;position:static;transform:none}.demo-modal .block-tile.has-loop-progress{padding-bottom:4px}.demo-modal .demo-list small{font-size:12px}.demo-scene-alt{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}
