@font-face{font-family:Nunito;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/nunito-latin-400-normal-r8SDr6Up.woff2)format("woff2"),url(/assets/nunito-latin-400-normal-DKg4f3fz.woff)format("woff")}@font-face{font-family:Nunito;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/nunito-latin-600-normal-Br8yIETf.woff2)format("woff2"),url(/assets/nunito-latin-600-normal-Cd0eNu1l.woff)format("woff")}@font-face{font-family:Nunito;font-style:normal;font-display:swap;font-weight:800;src:url(/assets/nunito-latin-800-normal-Dz8SOQK_.woff2)format("woff2"),url(/assets/nunito-latin-800-normal-D-J0wlBY.woff)format("woff")}@font-face{font-family:Fredoka;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/fredoka-latin-400-normal-17JuUzdy.woff2)format("woff2"),url(/assets/fredoka-latin-400-normal-DbXSrOeS.woff)format("woff")}@font-face{font-family:Fredoka;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/fredoka-latin-500-normal-B0JifZgm.woff2)format("woff2"),url(/assets/fredoka-latin-500-normal-BL692wg7.woff)format("woff")}@font-face{font-family:Fredoka;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/fredoka-latin-600-normal-C4zohCW5.woff2)format("woff2"),url(/assets/fredoka-latin-600-normal-CcrEjrB4.woff)format("woff")}:root{color:#315951;font-synthesis:none;--teal:#087f7d;--line:#d1e1d9;--paper:#fbfdf9;background:#edf5ef;font-family:Nunito,sans-serif}*{box-sizing:border-box}html,body,#root{width:100%;height:100%;margin:0;overflow:hidden}button,input,select{font:inherit}button{color:inherit;cursor:pointer;border:0}button:disabled{opacity:.35;cursor:not-allowed}button:focus-visible,select:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline-offset:2px;outline:2px solid #159c93}a{color:inherit;text-decoration:none}.app-shell{grid-template-rows:60px 46px minmax(0,1fr);width:100%;max-width:1920px;height:100dvh;margin:auto;padding:0 20px 16px;display:grid;overflow:hidden}.site-header{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;min-width:0;display:flex}.brand{white-space:nowrap;align-items:center;gap:10px;font-family:Fredoka,sans-serif;font-size:25px;font-weight:400;display:flex}.brand>img:first-child{object-fit:contain;width:36px;height:43px}.brand b{color:var(--teal);font-weight:500}.brand .tle-logo{object-fit:contain;opacity:.7;width:40px;height:30px;margin-left:8px}.header-actions{align-items:center;gap:10px;display:flex}.seed-label{color:#79968a;align-items:center;gap:8px;font-size:11px;display:flex}.seed-label input{color:#4e7a69;appearance:textfield;background:0 0;border:1px solid #cadcd2;border-radius:5px;width:82px;padding:4px 7px;font-family:monospace;font-size:11px}.seed-label input::-webkit-inner-spin-button{appearance:none}.text-button{color:#628779;background:0 0;padding:4px;font-size:11px}.header-actions>.text-button:first-of-type{font-size:18px}.level-nav{align-items:center;gap:6px;min-width:0;display:flex;overflow:hidden}.level-pill{white-space:nowrap;color:#7e9a8b;background:0 0;border-radius:6px;align-items:center;gap:6px;padding:6px 9px;font-size:11px;display:flex}.level-pill>span{color:#94ada0;font-family:monospace;font-size:10px}.level-pill.selected{color:#176c60;background:#d5e9df}.level-pill.selected>span{color:#277f6c}.lesson-label{color:#8ba596;white-space:nowrap;margin-left:auto;font-size:10px}.mobile-level{display:none}.workspace{grid-template-columns:minmax(0, var(--editor-width)) 20px minmax(0, 1fr);min-width:0;min-height:0;display:grid;overflow:hidden}.editor-panel{background:var(--paper);border:1px solid #ccded2;border-radius:9px;flex-direction:column;min-width:0;min-height:0;display:flex;position:relative;overflow:hidden}.editor-toolbar{background:#f4f8f0;border-bottom:1px solid #dae7dc;flex-shrink:0;align-items:center;gap:9px;height:45px;padding:0 12px 0 0;display:flex}.tower-tabs{height:100%;margin-right:auto;display:flex}.tower-tabs>button{color:#8ca18e;background:0 0;border-right:1px solid #dde8db;align-items:center;gap:6px;padding:0 14px;font:12px monospace;display:flex}.tower-tabs>button.selected{background:var(--paper);color:#1c7367;box-shadow:inset 0 2px #45a297}.tower-tabs img{object-fit:contain;width:21px;height:27px}.editor-toolbar>select{color:#7d9987;background:0 0;border:0;max-width:150px;font-size:11px}.draft-status{color:#8fa88d;font-size:12px}.type-contract{color:#6f8d7a;background:#f7faf4;border-bottom:1px solid #e3eae0;flex-shrink:0;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:14px;padding:12px 17px 10px;font:11px/1.6 SFMono-Regular,Consolas,monospace;display:grid}.type-keyword{color:#7a8bb2}.type-contract b{color:#247a70;font-weight:500}.type-fields{flex-direction:column;padding-left:12px;display:flex}.type-fields>span{white-space:nowrap;width:fit-content}.type-fields em{color:#a28eaa;font-style:normal}.type-fields strong{color:#447963;cursor:help;text-underline-offset:3px;font-weight:400;-webkit-text-decoration:underline dotted #a7bdac;text-decoration:underline dotted #a7bdac}.code-editor{flex:1;min-height:0;overflow:hidden}.cm-editor{height:100%!important}.cm-scroller{overscroll-behavior:contain}.editor-status{color:#94aa94;border-top:1px solid #e4ece1;flex-shrink:0;align-items:center;gap:10px;padding:7px 12px;font:9px monospace;display:flex}.editor-status>span:nth-child(2){white-space:nowrap;margin-left:auto}.editor-status .text-button{white-space:nowrap;font-size:10px}.run-bar{background:#f5f9f1;border-top:1px solid #e2ebdf;flex-shrink:0;align-items:center;gap:8px;padding:10px 12px;display:flex}.button{border-radius:6px;min-height:35px;padding:9px 16px;font-size:12px;font-weight:600}.primary{color:#f4fff8;background:#158a80}.primary:hover{background:#0c756e}.secondary{color:#5c806b;background:#e2eee1}.secondary:hover{background:#d4e7d5}.shortcut{color:#9bae98;margin-left:auto;font:9px monospace}.resize-divider{cursor:col-resize;touch-action:none;justify-content:center;align-items:center;min-height:0;display:flex}.resize-divider span{background:#c4d8cb;border-radius:4px;width:3px;height:25px}.game-panel{background:#e6f0e3;border:1px solid #ccded2;border-radius:10px;flex-direction:column;min-width:0;min-height:0;padding:12px;display:flex;overflow:hidden}.game-heading{flex-shrink:0;align-items:center;gap:8px;min-height:29px;display:flex}.game-heading h1{white-space:nowrap;text-overflow:ellipsis;margin:0;font:400 19px Fredoka,sans-serif;overflow:hidden}.status-badge{letter-spacing:.5px;color:#80a18d;white-space:nowrap;margin-left:auto;font:9px monospace}.status-badge.running{color:#148c73}.status-badge.error,.status-badge.complete{color:#729363}.game-stats{color:#84a089;white-space:nowrap;flex-shrink:0;align-items:center;gap:15px;padding:8px 0 10px;font-size:10px;display:flex}.game-stats b{color:#547961;font-size:13px;font-weight:600}.game-stats>.danger,.game-stats>.danger b{color:#bd7966}.game-stats>span:last-child{margin-left:auto}.map-stage{background:#d8e7cd;border-radius:6px;flex:1;justify-content:center;align-items:center;min-width:0;min-height:0;display:flex;overflow:hidden}.map-frame{aspect-ratio:360/560;background:#a9c780;border:1px solid #98b184;max-width:100%;height:100%;min-height:0;position:relative;overflow:hidden}.game-canvas{width:100%;height:100%;image-rendering:pixelated;display:block}.map-play{color:#3b8d6e;background:#faffedec;border:1px solid #adc49f;border-radius:50%;place-items:center;width:52px;height:52px;padding-left:5px;font-size:21px;display:grid;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.map-play:hover{background:#fffdf1}.map-loading{text-align:center;color:#426c52;width:100%;font-size:13px;position:absolute;top:48%;left:0}.result-overlay{background:#f8fcedf2;border:1px solid #b3c7a3;border-radius:8px;flex-direction:column;align-items:center;gap:7px;padding:14px;display:flex;position:absolute;bottom:12px;left:12px;right:12px}.result-overlay>b{font:22px Fredoka,sans-serif}.result-overlay>span,.result-overlay>small{color:#83a078;font-size:11px}.next-level-button{color:#fffdf1;cursor:pointer;background:#168b7d;border:0;border-radius:999px;padding:8px 18px;font:600 14px Fredoka,sans-serif}.next-level-button:hover{background:#11796d}.game-controls{flex-shrink:0;align-items:center;gap:10px;height:44px;padding-top:11px;display:flex}.play-button{color:#f6ffe9;background:#2b947d;border-radius:5px;place-items:center;width:32px;height:30px;font-size:12px;display:grid}.icon-button{color:#7c9e7d;background:0 0;padding:2px 4px;font-size:21px}.icon-button[aria-label="Step one tick"]{font-size:15px}.game-controls>select{color:#679176;background:0 0;border:0;font-size:11px}.view-toggles{align-items:center;gap:5px;margin-left:auto;display:flex}.view-toggles>button{color:#9cb498;background:0 0;border-radius:4px;width:28px;height:28px;font-size:20px}.view-toggles>button[aria-pressed=true]{color:#568d6c;background:#d6e6ce}.message{z-index:4;overflow-wrap:anywhere;background:#edf4e5;border:1px solid #b7cdaa;border-radius:6px;max-height:120px;padding:13px 30px 13px 13px;font-size:12px;line-height:1.5;position:absolute;bottom:63px;left:12px;right:12px;overflow:auto}.message.error{color:#a26348;background:#f8e7dc;border-color:#dbb4a0}.message.warning{color:#9c8650;background:#f7f1d9;border-color:#d4c99b}.message>button{background:0 0;font-size:18px;position:absolute;top:5px;right:5px}.sheet-handle,.sheet-toggle{display:none}.cm-tooltip{pointer-events:auto;border-radius:6px;font:12px/1.7 monospace;box-shadow:0 3px 12px #245b4415;z-index:200!important;color:#446b58!important;background:#fafff7!important;border:1px solid #b5d0c1!important}.cm-tooltip-autocomplete>ul{max-width:min(440px,90vw)!important;max-height:min(240px,40dvh)!important}.cm-tooltip-autocomplete>ul>li[aria-selected=true]{color:#176a59!important;background:#d6ebdf!important}@media (width<=1200px){.lesson-label{display:none}.level-nav{justify-content:space-between}.level-pill{padding:6px 7px;font-size:10px}.type-contract{gap:10px;padding:10px 12px;font-size:10px}.editor-status{font-size:8px}.editor-status>span:nth-child(2){display:none}}@media (width<=900px){.level-pill{gap:4px;padding:6px 5px;font-size:10px}.type-contract{grid-template-columns:1fr;gap:6px;line-height:1.7}.type-fields{flex-flow:wrap;gap:0 12px}.game-stats{gap:8px;font-size:9px}.game-heading h1{font-size:17px}.type-fields>span{white-space:nowrap}.brand{font-size:23px}.editor-toolbar{gap:3px}.tower-tabs>button{padding:0 10px}.shortcut{display:none}.game-controls{gap:8px}}@media (width<=760px){.app-shell{grid-template-rows:53px 40px minmax(0,1fr);padding:0 10px calc(12dvh + 8px)}.site-header{gap:6px}.brand{gap:6px;font-size:20px}.brand>img:first-child{width:29px;height:35px}.brand .tle-logo{width:29px;height:25px;margin-left:2px}.header-actions{gap:5px}.seed-label{gap:0;font-size:0}.seed-label input{width:65px;padding:3px 5px;font-size:10px}.header-actions>.text-button:last-child,.level-nav>.level-pill{display:none}.mobile-level{color:#4d7e68;background:0 0;border:0;max-width:200px;padding:5px 0;font-size:12px;display:block}.lesson-label{text-overflow:ellipsis;max-width:45%;font-size:8px;display:block;overflow:hidden}.workspace{display:flex}.editor-panel{border-radius:7px;width:100%}.resize-divider{display:none}.type-contract{gap:8px;padding:10px 12px;font-size:10px;line-height:1.6}.editor-toolbar{height:41px}.tower-tabs>button{padding:0 12px;font-size:11px}.editor-toolbar>select{max-width:125px;font-size:10px}.editor-status{gap:4px;padding:6px 10px;font-size:8px}.editor-status>.text-button{margin-left:auto}.run-bar{gap:8px;padding:8px 10px}.button{min-height:34px;padding:8px 15px;font-size:11px}.game-panel{z-index:20;height:var(--sheet-height);padding:0 12px max(9px, env(safe-area-inset-bottom));background:#e6f0e3;border:1px solid #a8c6ad;border-bottom:0;border-radius:15px 15px 0 0;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -3px 16px #326e5510}.sheet-handle{touch-action:none;flex-shrink:0;justify-content:center;align-items:center;height:16px;display:flex}.sheet-handle>span{background:#aec6ac;border-radius:4px;width:30px;height:3px}.game-heading{min-height:26px}.game-heading h1{font-size:18px}.sheet-toggle{color:#6e9b77;background:0 0;padding:1px 4px;font-size:18px;display:block}.game-stats{padding:4px 0 7px;font-size:10px}.game-stats b{font-size:13px}.game-controls{gap:13px;height:37px;padding-top:6px}.game-controls .text-button{margin-left:auto}.game-panel.collapsed .map-stage,.game-panel.collapsed .game-controls{display:none}.game-panel.collapsed .game-stats{padding:3px 0 0}.game-panel.collapsed{min-height:85px}.map-frame{width:auto;max-width:100%;height:100%}.message{max-height:105px;bottom:58px}.result-overlay{gap:4px;padding:9px;bottom:6px;left:6px;right:6px}.result-overlay>b{font-size:18px}.result-overlay>span,.result-overlay>small,.result-overlay .text-button{font-size:10px}}@media (height<=600px) and (width>=761px){.app-shell{grid-template-rows:47px 36px minmax(0,1fr);padding-bottom:8px}.type-contract{padding:6px 12px;font-size:10px;line-height:1.4}.editor-toolbar{height:36px}.run-bar{padding:6px 10px}.game-panel{padding:8px}.game-stats{padding:5px 0}.game-controls{height:35px;padding-top:5px}.editor-status{padding:4px 10px}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}.editor-popovers{z-index:200;pointer-events:none;position:fixed;inset:0}@media (width<=760px){.type-contract{flex-direction:column;gap:6px;padding:8px 11px;line-height:1.65;display:flex}.type-fields{padding:0;display:inline}.type-fields>span{margin-right:9px;display:inline-block}}.result-overlay{animation:.18s step-end both reveal-result}@keyframes reveal-result{0%{opacity:0}to{opacity:1}}.app-shell{grid-template-rows:46px minmax(0,1fr);padding:0 12px 10px}.site-header{border-bottom:0;gap:12px}.brand{gap:7px;font-size:21px}.brand>img:first-child{width:29px;height:34px}.brand .tle-logo{width:30px;height:25px;margin-left:0}.header-level{color:#5e8875;background:0 0;border:0;max-width:190px;font-size:11px}.global-controls{align-items:center;gap:12px;min-width:0;margin-left:auto;display:flex}.global-controls .run-bar,.global-controls .game-controls{background:0 0;border:0;flex-shrink:0;align-items:center;height:auto;padding:0;display:flex}.global-controls .button{min-height:29px;padding:6px 10px;font-size:11px}.global-controls .shortcut{display:none}.global-controls .game-controls{gap:8px}.global-controls .play-button{width:29px;height:27px}.global-controls .view-toggles{margin-left:0}.live-toggle{white-space:nowrap;color:#729381;align-items:center;gap:4px;font-size:11px;display:flex}.live-toggle input{accent-color:#14877c;margin:0}.header-actions{gap:5px}.header-actions .seed-label{gap:5px;font-size:10px}.header-actions .seed-label input{width:65px}.header-actions .text-button{white-space:nowrap;font-size:10px}.game-panel{padding-bottom:10px}.editor-status{padding:5px 10px}.message{bottom:34px}@media (width<=1250px){.brand>span,.brand .tle-logo{display:none}.global-controls{gap:8px}.header-level{max-width:160px}.header-actions>.text-button:last-child{display:none}}@media (width<=760px){.app-shell{grid-template-rows:43px minmax(0,1fr);padding:0 8px calc(12dvh + 6px)}.site-header{gap:5px}.brand>img:first-child{width:24px;height:30px}.header-level{width:91px;min-width:0;max-width:91px;font-size:10px}.global-controls{gap:5px;margin-left:auto}.global-controls .run-bar{gap:5px}.global-controls .button{min-height:27px;padding:4px 7px;font-size:10px}.global-controls .secondary{width:25px;padding:2px;font-size:0}.global-controls .secondary:after{content:"ϟ";font-size:17px}.global-controls .game-controls{gap:5px}.global-controls .icon-button{padding:0 2px;font-size:18px}.global-controls .game-controls>select{width:32px;padding:0;font-size:10px}.global-controls .game-controls .icon-button[aria-label="Step one tick"],.global-controls .view-toggles,.global-controls .game-controls>.text-button,.header-actions{display:none}.global-controls .play-button{width:24px;height:26px}.live-toggle{gap:3px;font-size:10px}.live-toggle input{width:11px;height:11px}.game-panel{padding-bottom:max(9px, env(safe-area-inset-bottom))}.message{bottom:30px}}.console-panel{background:#f7faf4;border-top:1px solid #dce8dc;flex-direction:column;flex:0 0 100px;min-height:0;display:flex;overflow:hidden}.console-panel.collapsed{flex-basis:25px}.console-heading{flex-shrink:0;justify-content:space-between;align-items:center;height:25px;padding:0 10px;display:flex}.console-heading button{color:#789882;background:0 0;padding:2px;font:10px monospace}.console-heading small{color:#a4b59f}.console-lines{overscroll-behavior:contain;flex-direction:column-reverse;min-height:0;padding:0 10px 5px;display:flex;overflow:auto}.console-entry{color:#537e66;border-top:1px solid #edf2e8;flex-shrink:0;gap:10px;padding:3px 0;font:10px/1.5 monospace;display:flex}.console-entry>span{color:#a3b59c;flex-shrink:0}.console-entry code{white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}.console-entry.warn{color:#a58b4b}.console-entry.error{color:#b4715b}@media (width<=760px){.console-panel{flex-basis:78px}.console-entry{gap:7px;font-size:9px}}.mobile-tools{display:none}@media (width<=760px){.site-header{z-index:30;position:relative}.header-level{width:82px;max-width:82px}.global-controls .game-controls>.icon-button,.global-controls .game-controls>select{display:none}.global-controls .run-bar{gap:4px}.global-controls .button{padding:4px 6px}.mobile-tools{flex-shrink:0;display:block}.mobile-tools>summary{cursor:pointer;color:#698b76;width:23px;font-size:22px;list-style:none}.mobile-tools>summary::-webkit-details-marker{display:none}.mobile-tools-menu{z-index:40;background:#f6fbf3;border:1px solid #b9d0bd;border-radius:7px;flex-direction:column;gap:4px;width:180px;padding:10px;display:flex;position:absolute;top:40px;right:0;box-shadow:0 4px 14px #345d4520}.mobile-tools-menu button,.mobile-tools-menu label{color:#587e66;text-align:left;background:0 0;padding:7px;font-size:12px}.mobile-tools-menu select{color:#587e66;background:0 0;border:0;margin-left:12px}}.map-stage{container-type:size}.map-frame{aspect-ratio:360/560;width:min(100cqw,64.2857cqh);height:auto;max-height:100%}
