@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/fef07dbb0973bf53-s.3p2_lha1f2xer.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/8a480f0b521d4e75-s.1qq4vpdcun5oj.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/53b9e256198e5412-s.390ncx5urfkfu.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/7178b3e590c64307-s.21jp631_3pja2.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Geist;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Geist Fallback;src:local(Arial);ascent-override:95.94%;descent-override:28.16%;line-gap-override:0.0%;size-adjust:104.76%}.geist_de6b7f24-module__RUBmxa__className{font-family:Geist,Geist Fallback;font-style:normal}.geist_de6b7f24-module__RUBmxa__variable{--font-geist:"Geist", "Geist Fallback"}
@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/5ce348bf30bf5439-s.31988l_ccedte.woff2)format("woff2");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/4fa387ec64143e14-s.2tuy5pz7dlieh.woff2)format("woff2");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/6306c77e7c8268e4-s.2dbetqa9o8jxf.woff2)format("woff2");unicode-range:U+2000-2001,U+2004-2008,U+200A,U+23B8-23BD,U+2500-259F}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/7d817b4c03b0c5f1-s.1uyisp29ctx0d.woff2)format("woff2");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/bbc41e54d2fcbd21-s.1rgnod-3esatf.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Geist Mono;font-style:normal;font-weight:100 900;font-display:swap;src:url(../media/797e433ab948586e-s.p.0r6juujl39pe6.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Geist Mono Fallback;src:local(Arial);ascent-override:74.67%;descent-override:21.92%;line-gap-override:0.0%;size-adjust:134.59%}.geist_mono_9b8128d2-module__Y5pOSq__className{font-family:Geist Mono,Geist Mono Fallback;font-style:normal}.geist_mono_9b8128d2-module__Y5pOSq__variable{--font-geist-mono:"Geist Mono", "Geist Mono Fallback"}
:root{--canvas:#131c29;--ink:#eaf0ed;--muted:#9aa9ad;--line:#d5e5e129;--panel-deep:#101923;--accent:#45e3a1;--blue:#35bff2;--red:#ff665c;--green:#8cff3f;--gold:#ffd43b}html[data-theme=light]{--canvas:#e9efec;--ink:#1c2925;--muted:#68766f;--line:#2741372b;--panel-deep:#f8faf9;--accent:#2d8964;--blue:#43a6ca;--red:#df655d;--green:#72b84e;--gold:#d3a52f}*{box-sizing:border-box}html{background:var(--canvas)}body{min-height:100dvh;color:var(--ink);background-color:var(--canvas);font-family:var(--font-geist), sans-serif;background-image:linear-gradient(#b7d5cd09 1px,#0000 1px),linear-gradient(90deg,#b7d5cd09 1px,#0000 1px);background-size:28px 28px;margin:0;padding-bottom:104px}button,select{font:inherit}button{color:inherit}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.app-shell{width:min(1360px,100% - 40px);margin:0 auto;padding:26px 0 56px}.mission-bar{border-bottom:1px solid var(--line);grid-template-columns:72px minmax(0,1fr) auto;align-items:start;gap:22px;padding-bottom:28px;display:grid}.brand{width:52px;height:52px;color:var(--accent);border:1px solid #45e3a1b3;place-items:center;display:inline-grid}.brand-button{cursor:pointer;background:0 0;padding:0;transition:color .18s,background .18s,transform .18s cubic-bezier(.16,1,.3,1)}.brand-button:hover{color:var(--ink);background:#45e3a11a}.brand-button:active{transform:scale(.94)}.eyebrow,.line-count,.hint{color:var(--muted);font-family:var(--font-geist-mono), monospace;letter-spacing:.1em;text-transform:uppercase;margin:0;font-size:.68rem;font-weight:700}h1,h2,p{margin-top:0}h1{letter-spacing:0;max-width:690px;margin-bottom:0;font-size:clamp(2rem,4vw,3.65rem);line-height:1}h2{letter-spacing:0;margin:7px 0 0;font-size:1.08rem}.mission-state{min-height:30px;color:var(--muted);font-family:var(--font-geist-mono), monospace;align-items:center;gap:8px;margin-top:2px;font-size:.76rem;display:inline-flex}.live-dot{background:var(--accent);border-radius:50%;width:8px;height:8px;box-shadow:0 0 0 4px #45e3a126}.mission-state.running .live-dot{animation:1.3s ease-in-out infinite pulse}.mission-state.error .live-dot{background:var(--red);box-shadow:0 0 0 4px #ff665c26}.mission-state.success .live-dot{background:var(--gold);box-shadow:0 0 0 4px #ffd43b26}@keyframes pulse{50%{opacity:.45;transform:scale(.72)}}.level-select-shell{width:min(1380px,100% - 36px);min-height:100dvh;margin:0 auto;padding:18px 0 28px}.sector-header{grid-template-columns:54px minmax(0,1fr) 54px auto;align-items:stretch;gap:12px;height:54px;display:grid}.sector-brand{color:var(--accent);background:#0c141ec7;border:1px solid #45e3a180;place-items:center;display:grid}.theme-button{border:1px solid var(--line);width:54px;height:54px;color:var(--ink);cursor:pointer;background:#0c141ead;place-items:center;padding:0;transition:color .18s,border-color .18s,background .18s,transform .18s;display:grid}.theme-button:hover{color:var(--accent);border-color:#45e3a199}.theme-button:active{transform:scale(.94)}.sector-title{border:1px solid var(--line);background:#0c141ead;flex-direction:column;justify-content:center;min-width:0;padding:0 14px;display:flex}.sector-title h1{margin:3px 0 0;font-size:1.05rem;line-height:1}.sector-progress{border:1px solid var(--line);min-width:132px;color:var(--muted);font-family:var(--font-geist-mono), monospace;background:#0c141ead;justify-content:center;align-items:center;gap:10px;font-size:.66rem;font-weight:800;display:flex}.sector-progress span:first-child{color:var(--accent)}.sector-progress i{background:linear-gradient(90deg, var(--accent) 20%, #d5e5e12e 20%);width:38px;height:1px}.mission-selector{grid-template-columns:minmax(0,1fr) 360px;gap:10px;min-height:calc(100dvh - 100px);padding-top:10px;display:grid}.sector-map,.mission-inspector{border:1px solid var(--line);background:#0b131cd1;min-width:0;box-shadow:inset 0 1px #ffffff09}.sector-map{background-image:linear-gradient(#45e3a10b 1px,#0000 1px),linear-gradient(90deg,#45e3a10b 1px,#0000 1px);background-size:42px 42px;grid-template-rows:62px minmax(430px,1fr) 32px;min-height:610px;display:grid;position:relative;overflow:hidden}.sector-map:after{pointer-events:none;content:"";opacity:.28;background-image:radial-gradient(circle,#ddebe638 1px,#0000 1px);background-size:83px 67px;position:absolute;inset:62px 0 32px}.sector-map-head{z-index:2;border-bottom:1px solid var(--line);background:#0c141ee0;justify-content:space-between;align-items:center;padding:0 18px;display:flex;position:relative}.sector-map-head h2{margin-top:4px;font-size:.9rem}.map-status{color:var(--muted);font-family:var(--font-geist-mono), monospace;align-items:center;gap:7px;font-size:.52rem;font-weight:800;display:inline-flex}.map-status i{background:var(--accent);width:6px;height:6px;box-shadow:0 0 0 3px #45e3a11f}.mission-route{z-index:1;min-height:0;position:relative}.route-plot{width:100%;height:100%;position:absolute;inset:0;overflow:visible}.route-plot polyline{fill:none;stroke:#45e3a15c;stroke-width:.38px;stroke-dasharray:1.2 1.4;vector-effect:non-scaling-stroke}.mission-node{z-index:2;top:var(--node-y);left:var(--node-x);color:#9aa9ad;cursor:pointer;width:54px;height:54px;animation:mission-node-in .42s var(--node-delay) cubic-bezier(.16, 1, .3, 1) both;background:#111d28;border:1px solid #d5e5e140;padding:0;transition:color .18s,border-color .18s,background .18s,transform .22s cubic-bezier(.16,1,.3,1);position:absolute;transform:translate(-50%,-50%)}.mission-node:hover{color:var(--ink);border-color:#45e3a18c;transform:translate(-50%,-50%)scale(1.07)}.mission-node.selected{color:#0b1812;border-color:var(--accent);background:var(--accent);box-shadow:0 0 0 5px #45e3a11c,0 0 28px -8px #45e3a199}.mission-node.complete{color:#171303;border-color:var(--gold);background:var(--gold)}.node-orbit{opacity:0;border:1px solid #45e3a12e;transition:opacity .18s,transform .25s;position:absolute;inset:-9px;transform:rotate(45deg)}.mission-node.selected .node-orbit{opacity:1;transform:rotate(0)}.mission-node>strong{height:100%;font-family:var(--font-geist-mono), monospace;place-items:center;font-size:.72rem;display:grid}.node-copy{width:138px;color:var(--muted);text-align:center;pointer-events:none;gap:3px;display:grid;position:absolute;top:calc(100% + 12px);left:50%;transform:translate(-50%)}.node-copy small{font-family:var(--font-geist-mono), monospace;font-size:.45rem;font-weight:800}.node-copy b{color:#bbc6c5;text-overflow:ellipsis;white-space:nowrap;font-size:.66rem;overflow:hidden}.mission-node.selected .node-copy b{color:var(--accent)}@keyframes mission-node-in{0%{opacity:0;transform:translate(-50%,-38%)scale(.88)}}.sector-coordinates{z-index:2;border-top:1px solid var(--line);color:#607077;font-family:var(--font-geist-mono), monospace;background:#0c141ed9;justify-content:space-between;align-items:center;padding:0 14px;font-size:.46rem;font-weight:800;display:flex;position:relative}.mission-inspector{grid-template-rows:76px minmax(250px,1fr) auto 58px;min-height:610px;display:grid;overflow:hidden}.inspector-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:16px;padding:0 16px;display:flex}.inspector-head h2{margin-top:5px;font-size:1.18rem}.inspector-head>span{color:var(--gold);font-family:var(--font-geist-mono), monospace;font-size:.6rem;font-weight:800}.mission-preview{border-bottom:1px solid var(--line);background-color:#0e1822;background-image:radial-gradient(circle,#ddebe629 1px,#0000 1px);background-size:29px 29px;place-items:center;min-height:0;padding:28px;display:grid;overflow:hidden}.preview-grid{width:min(100%, var(--preview-max-width,290px));grid-template-columns:repeat(var(--preview-columns,7), minmax(0, 1fr));gap:3px;display:grid}.preview-cell{aspect-ratio:1;background:0 0;place-items:center;min-width:0;min-height:0;display:grid;position:relative}.preview-cell.is-path{background:#62758d;border:1px solid #eaf0ed2e}.preview-cell.blue{background:var(--blue)}.preview-cell.red{background:var(--red)}.preview-cell.green{background:var(--green)}.preview-crystal{aspect-ratio:1;background:var(--gold);width:25%;transform:rotate(45deg);box-shadow:inset 0 0 0 1px #ffffff73}.preview-rocket{color:var(--ink)}.preview-rocket.direction-east{transform:rotate(90deg)}.preview-rocket.direction-south{transform:rotate(180deg)}.preview-rocket.direction-west{transform:rotate(-90deg)}.inspector-details{padding:14px 16px 16px}.inspector-data{grid-template-columns:74px 74px minmax(0,1fr);gap:8px;display:grid}.inspector-data>div:not(.mission-mechanics){border-right:1px solid var(--line);gap:4px;padding-right:8px;display:grid}.inspector-data span{color:var(--muted);font-family:var(--font-geist-mono), monospace;font-size:.47rem;font-weight:800}.inspector-data strong{color:var(--gold);font-family:var(--font-geist-mono), monospace;font-size:.78rem}.mission-mechanics{justify-content:flex-end;align-items:center;gap:5px;min-width:0;display:flex}.mission-mechanics span{width:30px;height:30px;color:var(--accent);background:#45e3a10e;border:1px solid #45e3a142;place-items:center;display:grid}.inspector-details>p{min-height:38px;color:var(--muted);margin:13px 0 0;font-size:.72rem;line-height:1.45}.launch-mission{color:#0b1812;background:var(--accent);cursor:pointer;text-align:left;border:0;border-top:1px solid #45e3a166;grid-template-columns:24px minmax(0,1fr) 24px;align-items:center;gap:8px;padding:0 16px;font-size:.76rem;font-weight:900;transition:background .18s,transform .18s;display:grid}.launch-mission:hover{background:#72efbb}.launch-mission:active{transform:translateY(1px)}.launch-mission svg:last-child{justify-self:end;transition:transform .18s}.launch-mission:hover svg:last-child{transform:translate(3px)}.workspace{grid-template-columns:minmax(0,1.45fr) minmax(390px,.8fr);align-items:start;gap:30px;padding-top:30px;display:grid}.mission-view,.program-panel{min-width:0}.view-head,.program-head,.section-heading{justify-content:space-between;align-items:start;gap:18px;margin-bottom:15px;display:flex}.crystal-counter{color:var(--gold);font-family:var(--font-geist-mono), monospace;letter-spacing:.06em;white-space:nowrap;margin:0;font-size:.76rem;font-weight:700}.canvas-frame{background:var(--panel-deep);border:1px solid #d5e5e13d;position:relative;overflow:hidden;box-shadow:0 28px 52px -34px #000000bf}.mission-canvas{aspect-ratio:7/5;touch-action:none;width:100%;display:block}.canvas-corner{color:#e9f0ed80;font-family:var(--font-geist-mono), monospace;letter-spacing:.12em;pointer-events:none;font-size:.58rem;font-weight:700;position:absolute}.top-left{top:13px;left:14px}.bottom-right{bottom:12px;right:14px}.legend{color:var(--muted);flex-wrap:wrap;gap:10px 18px;margin-top:16px;font-size:.82rem;display:flex}.legend span{align-items:center;gap:7px;display:inline-flex}.swatch{border:1px solid #eaf0ed3d;width:11px;height:11px}.swatch.path{background:#62758d}.swatch.blue{background:var(--blue)}.swatch.red{background:var(--red)}.swatch.green{background:var(--green)}.swatch.crystal{background:var(--gold);transform:rotate(45deg)}.program-panel{border-left:1px solid var(--line);padding-left:24px}.toolbox{margin-bottom:30px}.section-heading{align-items:end}.hint{padding-bottom:2px;font-size:.58rem}.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;display:grid}.tool-button{border:1px solid var(--line);color:#dbe5e1;cursor:pointer;background:#ffffff06;place-items:center;min-height:48px;padding:8px;transition:transform .2s cubic-bezier(.16,1,.3,1),border-color .2s,background .2s;display:grid;position:relative}.tool-button:hover{background:#45e3a11a;border-color:#45e3a199;transform:translateY(-2px)}.tool-button:active{transform:translateY(0)scale(.98)}.tool-button span{min-width:0;font-size:.76rem;font-weight:750}.tool-plus{color:var(--accent);position:absolute;bottom:2px;right:2px}.function-call-mark{color:var(--accent);font-family:var(--font-geist-mono), monospace;letter-spacing:0;place-items:center;font-size:.78rem;font-weight:900;display:inline-grid}.paint-command-mark{place-items:center;display:inline-grid;position:relative}.paint-command-mark i{border:1px solid #eaf0edb3;width:8px;height:8px;position:absolute;bottom:-3px;left:-4px}.paint-command-mark.paintBlue i{background:var(--blue)}.paint-command-mark.paintRed i{background:var(--red)}.paint-command-mark.paintGreen i{background:var(--green)}.program-head h2 span{color:var(--accent);font-family:var(--font-geist-mono), monospace}.line-count{white-space:nowrap;padding-top:5px}.empty-program{width:100%;min-height:126px;color:var(--muted);cursor:pointer;background:#ffffff05;border:1px dashed #d5e5e13d;align-content:center;place-items:center;gap:6px;transition:border-color .2s,background .2s,transform .2s cubic-bezier(.16,1,.3,1);display:grid}.empty-program:hover{border-color:var(--accent);background:#45e3a114}.empty-program:active{transform:scale(.985)}.empty-program strong{color:var(--ink);font-size:.84rem}.empty-program span{font-size:.74rem}.program-list{gap:7px;margin:0;padding:0;list-style:none;display:grid}.program-list li{cursor:grab;background:#ffffff06;border:1px solid #0000;grid-template-columns:29px 28px minmax(0,1fr) 30px;align-items:center;gap:6px;min-height:62px;padding:6px;transition:border-color .18s,background .18s,transform .18s;animation:.28s cubic-bezier(.16,1,.3,1) both line-in;display:grid}.program-list li:active{cursor:grabbing}.program-list li.active{background:#45e3a11f;border-color:#45e3a1c7;transform:translate(-5px)}@keyframes line-in{0%{opacity:0;transform:translateY(8px)}}.line-number{color:var(--muted);font-family:var(--font-geist-mono), monospace;place-items:center;font-size:.67rem;display:grid}.instruction-icon{color:var(--accent)}.row-actions{gap:2px;display:grid}.row-actions button{width:27px;height:19px;color:var(--muted);cursor:pointer;background:0 0;border:0;place-items:center;padding:0;transition:color .15s,background .15s,transform .15s;display:grid}.row-actions button:hover{color:var(--ink);background:#ffffff14}.row-actions button:active{transform:scale(.9)}.row-actions button:disabled{opacity:.22;cursor:not-allowed}.row-actions button:last-child:hover{color:var(--red)}.execution-log{border-top:1px solid var(--line);min-height:92px;margin-top:18px;padding-top:14px}.execution-log p:last-child{color:#c6d0ce;margin:8px 0 0;font-size:.86rem;line-height:1.45}.control-dock{z-index:3;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#101923f0;border-top:1px solid #d5e5e138;position:fixed;bottom:0;left:0;right:0;box-shadow:inset 0 1px #ffffff09,0 -18px 44px -30px #000000e6}.dock-inner{justify-content:space-between;align-items:center;gap:22px;width:min(720px,100% - 32px);min-height:76px;margin:0 auto;display:flex}.dock-readout{gap:3px;display:grid}.dock-readout strong{font-family:var(--font-geist-mono), monospace;font-size:.85rem}.controls{align-items:center;gap:8px;display:flex}.controls button{min-height:42px;color:var(--ink);cursor:pointer;background:#2a3a49;border:1px solid #0000;justify-content:center;align-items:center;gap:7px;padding:0 15px;font-weight:800;transition:transform .16s cubic-bezier(.16,1,.3,1),background .16s,border-color .16s;display:inline-flex}.controls button:hover{background:#344756;border-color:#e9f0ed4d}.controls button:active{transform:translateY(1px)scale(.98)}.controls button:disabled{opacity:.55;cursor:not-allowed}.controls .run-button{color:#102019;background:var(--accent)}.controls .run-button:hover{background:#6cf0b8}.controls .secondary{background:#253442}.controls .icon-button{width:42px;padding:0}.game-shell{z-index:2;background:#0c141e;min-height:100dvh;position:fixed;inset:0;overflow:hidden}.game-world,.world-canvas-wrap{position:absolute;inset:0}.world-canvas-wrap{overflow:hidden}.world-canvas-wrap .mission-canvas{aspect-ratio:auto;cursor:grab;touch-action:none;width:100%;height:100%}.world-canvas-wrap .mission-canvas.is-dragging{cursor:grabbing}.mobile-puzzle-dock,.mobile-stack-slot,.mobile-game-nav,.mobile-move-controls{display:none}.game-hud-top{z-index:2;pointer-events:none;grid-template-columns:44px minmax(210px,1fr) auto auto auto;align-items:center;gap:10px;display:grid;position:absolute;top:18px;left:18px;right:18px}.game-hud-top>*{pointer-events:auto}.hud-icon-button,.camera-controls button,.floating-panel-head button,.console-help{width:44px;height:44px;color:var(--ink);cursor:pointer;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#0c141ed1;border:1px solid #d5e5e133;place-items:center;padding:0;transition:color .18s,border-color .18s,background .18s,transform .18s cubic-bezier(.16,1,.3,1);display:grid;box-shadow:inset 0 1px #ffffff0f}.hud-icon-button:hover,.camera-controls button:hover,.floating-panel-head button:hover,.console-help:hover{color:var(--accent);background:#14222df0;border-color:#45e3a199}.hud-icon-button:active,.camera-controls button:active,.floating-panel-head button:active,.console-help:active{transform:scale(.94)}.hud-mission-title{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#0c141ecc;border:1px solid #d5e5e12e;flex-direction:column;justify-content:center;align-self:stretch;min-width:0;padding:0 14px;display:flex;box-shadow:inset 0 1px #ffffff0e}.hud-mission-title h1{text-overflow:ellipsis;white-space:nowrap;margin:3px 0 0;font-size:.96rem;line-height:1.1;overflow:hidden}.game-hud-top .mission-state,.hud-crystals{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#0c141ecc;border:1px solid #d5e5e12e;min-height:44px;margin:0;padding:0 14px;box-shadow:inset 0 1px #ffffff0e}.hud-crystals{align-content:center;gap:2px;min-width:102px;display:grid}.hud-crystals .crystal-counter{font-size:.76rem}.open-program-button{min-height:44px;color:var(--accent);cursor:pointer;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#0c141edb;border:1px solid #45e3a199;align-items:center;gap:7px;padding:0 14px;font-size:.74rem;font-weight:800;transition:background .18s,transform .18s;display:inline-flex}.open-program-button:hover{background:#1b2e39f5}.open-program-button:active{transform:scale(.97)}.camera-controls{z-index:2;gap:6px;display:flex;position:absolute;top:124px;left:22px}.camera-controls button{width:40px;height:40px}.game-legend{z-index:2;max-width:310px;color:var(--muted);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#0c141ec7;border:1px solid #d5e5e129;flex-wrap:wrap;gap:11px;padding:10px 12px;font-size:.67rem;display:flex;position:absolute;top:78px;left:22px}.game-legend span{align-items:center;gap:6px;display:inline-flex}.floating-program-panel{z-index:3;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);opacity:0;pointer-events:none;background:#0e1822e6;border:1px solid #d5e5e133;flex-direction:column;width:min(370px,100vw - 36px);padding:16px;transition:opacity .22s,transform .34s cubic-bezier(.16,1,.3,1);display:flex;position:absolute;top:78px;bottom:88px;right:18px;transform:translate(calc(100% + 28px));box-shadow:inset 0 1px #fff1,0 24px 58px -28px #000000e6}.floating-program-panel.is-open{opacity:1;pointer-events:auto;transform:translate(0)}.floating-panel-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:start;gap:14px;padding-bottom:13px;display:flex}.floating-panel-head h2 span{color:var(--accent);font-family:var(--font-geist-mono), monospace}.floating-panel-head button{-webkit-backdrop-filter:none;backdrop-filter:none;background:#ffffff06;width:34px;height:34px}.panel-head-actions{flex:none;gap:6px;display:flex}.floating-toolbox{border-bottom:1px solid var(--line);padding:14px 0 15px}.floating-toolbox>.eyebrow{margin-bottom:8px;display:block}.floating-toolbox .tool-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.floating-toolbox .tool-button{background:#ffffff09;min-height:48px}.floating-program-panel .program-head{align-items:center;margin:0;padding:13px 0 9px}.floating-program-scroll{scrollbar-color:#45e3a17a transparent;scrollbar-width:thin;flex:1;min-height:0;padding-right:3px;overflow:hidden auto}.floating-program-panel .program-list li{background:#ffffff09;min-height:49px}.floating-program-panel .empty-program{min-height:112px}.floating-program-panel .execution-log{min-height:68px;margin-top:10px;padding-top:10px}.floating-program-panel .execution-log p:last-child{text-overflow:ellipsis;white-space:nowrap;margin-top:5px;font-size:.75rem;overflow:hidden}.game-control-dock{z-index:4;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#0c141ee8;border:1px solid #d5e5e138;justify-content:space-between;align-items:center;gap:16px;width:min(370px,100vw - 36px);min-height:58px;padding:7px 8px 7px 14px;display:flex;position:absolute;bottom:18px;right:18px;box-shadow:inset 0 1px #fff1,0 18px 42px -24px #000000f2}.game-control-dock .dock-readout{min-width:54px}.game-control-dock .controls button{min-height:42px}.game-bottom-console{--palette-width:340px;--execution-width:238px;--instruction-overhang:20px;--dock-gutter:max(16px, calc((100vw - 1360px) / 2));z-index:4;right:var(--dock-gutter);bottom:16px;left:var(--dock-gutter);grid-template-columns:var(--palette-width) minmax(390px, 1fr) var(--execution-width);pointer-events:none;gap:8px;height:128px;display:grid;position:absolute}.console-block{-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);pointer-events:auto;background:#0c141eed;border:1px solid #d5e5e138;min-width:0;min-height:0;padding:8px;overflow:hidden;box-shadow:inset 0 1px #fff1,0 18px 42px -28px #000000f2}.console-block-head{justify-content:space-between;align-items:center;gap:10px;height:24px;display:flex}.game-bottom-console>.console-help{bottom:calc(100% + var(--instruction-overhang) + 8px);pointer-events:auto;width:40px;height:40px;position:absolute;left:0}.stack-visualizer{width:var(--execution-width);color:var(--ink);font-family:var(--font-geist-mono), monospace;pointer-events:auto;transition:width .28s cubic-bezier(.16,1,.3,1);position:absolute;bottom:calc(100% + 8px);right:0}.stack-visualizer.is-open{width:280px}.stack-toggle{width:100%;height:34px;color:var(--muted);cursor:pointer;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#0c141ee8;border:1px solid #d5e5e138;grid-template-columns:18px minmax(0,1fr) auto 16px;align-items:center;gap:6px;padding:0 8px;transition:color .18s,border-color .18s,background .18s;display:grid;box-shadow:inset 0 1px #ffffff0e}.stack-toggle:hover,.stack-visualizer.is-open .stack-toggle{color:var(--accent);background:#121f29f5;border-color:#45e3a17a}.stack-toggle>span{justify-self:start;font-size:.54rem;font-weight:900}.stack-toggle strong{color:var(--gold);font-size:.66rem}.stack-body{overscroll-behavior:contain;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;scrollbar-color:#45e3a17a transparent;scrollbar-width:thin;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);transform-origin:100% 100%;background:#091119f7;border:1px solid #d5e5e138;width:100%;min-height:72px;max-height:min(380px,100dvh - 270px);padding:9px;animation:.24s cubic-bezier(.16,1,.3,1) both stack-open;position:absolute;bottom:40px;right:0;overflow:hidden auto;box-shadow:inset 0 1px #ffffff0e,0 18px 42px -24px #000000f2}.stack-body::-webkit-scrollbar{width:5px}.stack-body::-webkit-scrollbar-track{background:0 0}.stack-body::-webkit-scrollbar-thumb{background:#45e3a170}.stack-end-label{color:#637278;padding-left:34px;font-size:.45rem;font-weight:900;display:block}.stack-top-label{color:var(--accent);margin-bottom:5px}.stack-base-label{margin-top:5px}.stack-frames{flex-direction:column;gap:3px;margin:0;padding:0;list-style:none;display:flex;position:relative}.stack-frames:before{z-index:0;content:"";background:#d5e5e12e;width:1px;position:absolute;top:18px;bottom:18px;left:19px}.stack-frames li{--frame-tone:var(--accent);z-index:1;min-height:39px;margin-left:calc(var(--stack-offset,0) * 3px);border:1px solid #d5e5e124;border-left:3px solid color-mix(in srgb, var(--frame-tone) 65%, transparent);background:#16222df5;grid-template-columns:25px 32px minmax(34px,1fr) auto;align-items:center;gap:7px;padding:4px 7px;animation:.2s cubic-bezier(.16,1,.3,1) both stack-frame-in;display:grid;position:relative;box-shadow:0 3px #03080c80}.stack-frames li.function-f1{--frame-tone:var(--blue)}.stack-frames li.function-f2{--frame-tone:var(--gold)}.stack-frames li.active{border-color:color-mix(in srgb, var(--frame-tone) 78%, white 4%);background:color-mix(in srgb, var(--frame-tone) 13%, #14222d);min-height:48px;box-shadow:inset 3px 0 0 var(--frame-tone), 0 6px 14px -8px color-mix(in srgb, var(--frame-tone) 60%, transparent);margin-bottom:5px;transform:translate(-4px)}.stack-frames li.active:after{background:var(--gold);content:"";width:1px;height:7px;position:absolute;bottom:-7px;right:9px}.stack-level{z-index:1;color:#8d9b9f;background:#0d1822;border:1px solid #d5e5e133;place-items:center;width:22px;height:22px;font-size:.47rem;display:grid;position:relative}.stack-frames li.active .stack-level{border-color:var(--frame-tone);color:#07120e;background:var(--frame-tone)}.stack-frames li>strong{color:var(--frame-tone);font-size:.66rem}.stack-frame-command{color:#a2b0b2;justify-content:flex-end;align-items:center;gap:7px;min-width:32px;display:inline-flex}.stack-frames li.active .stack-frame-command{border:1px solid color-mix(in srgb, var(--frame-tone) 46%, transparent);width:34px;height:32px;color:var(--frame-tone);background:#070e146b;justify-content:center}.stack-frame-command .function-call-mark{color:currentColor;font-size:.64rem}.stack-position,.stack-return{color:#aab7b8;text-align:right;justify-self:end;min-width:38px;font-size:.49rem;font-weight:800}.stack-return{color:var(--gold)}.stack-finished{font-size:.45rem;font-weight:900}.stack-hidden{color:var(--muted);text-align:center;border:1px dashed #d5e5e129;margin-top:5px;padding:4px;font-size:.52rem}.stack-empty{color:#68777d;justify-content:center;align-items:center;gap:8px;height:42px;font-size:.58rem;display:flex}.stack-push .stack-toggle{animation:.28s cubic-bezier(.16,1,.3,1) stack-push}.stack-pop .stack-toggle{animation:.28s stack-pop}@keyframes stack-open{0%{opacity:0;transform:translateY(8px)scale(.97)}}@keyframes stack-frame-in{0%{opacity:0;transform:translateY(5px)}}@keyframes stack-push{50%{border-color:var(--accent);box-shadow:inset 0 0 0 1px #45e3a140}}@keyframes stack-pop{50%{border-color:var(--gold);color:var(--gold)}}.instruction-palette{min-height:0;height:calc(100% + var(--instruction-overhang));grid-column:1;grid-template-rows:minmax(0,1fr) 22px;align-self:end;gap:4px;display:grid;position:relative}.action-tools{grid-auto-rows:minmax(0,1fr);gap:3px;min-height:0;display:grid}.tool-row{grid-template-columns:repeat(var(--tool-count), minmax(0, 1fr));gap:4px;min-height:0;display:grid}.instruction-palette .tool-button{cursor:grab;background:#ffffff09;width:100%;height:100%;min-height:0;padding:2px}.instruction-palette .tool-button:active{cursor:grabbing}.instruction-palette .tool-button svg:first-child{width:20px;height:20px}.instruction-palette .function-call-mark{font-size:.92rem}.condition-palette{gap:6px;min-height:0;display:flex}.condition-token{border:1px solid var(--line);cursor:grab;background:#ffffff06;flex:1 1 0;place-items:center;width:32px;min-width:0;max-width:32px;height:22px;padding:0;transition:border-color .18s,background .18s,transform .18s;display:grid;position:relative}.condition-token:hover,.condition-token.selected{background:#ffffff14;border-color:#eaf0ed7a;transform:translateY(-1px)}.condition-token.selected:after{background:var(--accent);content:"";width:4px;height:4px;position:absolute;bottom:3px;right:3px}.condition-token span{border:1px solid #eaf0ed57;width:13px;height:13px;display:block}.condition-token b{display:none}.condition-token.always span{background:0 0}.condition-token.blue span{border-color:var(--blue);background:var(--blue)}.condition-token.red span{border-color:var(--red);background:var(--red)}.condition-token.green span{border-color:var(--green);background:var(--green)}.function-console{grid-template-rows:24px minmax(0,1fr);padding-bottom:6px;display:grid}.function-head{border-bottom:1px solid var(--line)}.function-tabs{align-self:stretch;display:flex}.function-tabs button{border:0;border-right:1px solid var(--line);min-width:62px;color:var(--muted);font-family:var(--font-geist-mono), monospace;cursor:pointer;background:0 0;justify-content:space-between;align-items:center;gap:9px;padding:0 10px;font-size:.7rem;font-weight:800;transition:color .18s,background .18s;display:flex;position:relative}.function-tabs button.active{color:var(--accent);background:#45e3a11a}.function-tabs button span{color:#718187;font-size:.52rem}.function-tabs button.executing:after{background:var(--gold);content:"";width:4px;height:4px;position:absolute;bottom:3px;right:5px}.function-tabs button.drop-target{color:var(--ink);outline:1px solid var(--accent);outline-offset:-2px;background:#45e3a133}.function-head-tools{align-items:center;gap:8px;display:flex}.expand-functions-switch{border:1px solid var(--line);height:18px;color:var(--muted);font-family:var(--font-geist-mono), monospace;text-transform:uppercase;cursor:pointer;background:0 0;align-items:center;gap:4px;padding:0 4px;font-size:.46rem;font-weight:800;display:flex}.switch-track{background:#182531;border:1px solid #d5e5e147;width:20px;height:10px;display:block;position:relative}.switch-track i{background:var(--muted);width:4px;height:4px;transition:transform .22s cubic-bezier(.16,1,.3,1),background .18s;display:block;position:absolute;top:2px;left:2px}.expand-functions-switch[aria-checked=true]{color:var(--accent);border-color:#45e3a173}.expand-functions-switch[aria-checked=true] .switch-track i{background:var(--accent);transform:translate(10px)}.function-sequence{scrollbar-color:#45e3a173 transparent;scrollbar-width:thin;min-width:0;padding:5px 0 3px;overflow:auto hidden}.single-function-body{min-width:100%;min-height:100%}.function-console{transform-origin:bottom;grid-column:2;transition:height .32s cubic-bezier(.16,1,.3,1),box-shadow .25s}.function-console.is-expanded{z-index:5;right:calc(var(--dock-gutter) + var(--execution-width) + 8px);bottom:16px;left:calc(var(--dock-gutter) + var(--palette-width) + 8px);width:auto;height:min(var(--expanded-functions-height), calc(100dvh - 116px));position:fixed;box-shadow:inset 0 1px #fff1,0 -24px 58px -34px #000000f2}.function-sequence.all-functions-view{grid-template-rows:repeat(var(--function-count), minmax(0, 1fr));gap:6px;min-height:0;padding:6px 0;display:grid;overflow:hidden}.function-lane{background:#ffffff05;border:1px solid #d5e5e124;grid-template-columns:52px minmax(0,1fr);min-width:0;min-height:0;display:grid}.function-lane.active{border-color:#45e3a16b}.function-lane-head{border:0;border-right:1px solid var(--line);color:var(--muted);font-family:var(--font-geist-mono), monospace;cursor:pointer;background:0 0;flex-direction:column;justify-content:center;align-items:center;gap:5px;padding:0;display:flex}.function-lane-head strong{color:var(--accent);font-size:.62rem}.function-lane-head span{font-size:.48rem}.function-lane-body{min-width:0;min-height:0;padding:7px;overflow:auto hidden}.function-sequence .empty-program{min-height:78px}.function-sequence .program-list{gap:6px;width:max-content;min-width:100%;display:flex}.function-sequence .program-list li{border:1px solid var(--line);cursor:grab;background:#ffffff09;grid-template-rows:16px 1fr;grid-template-columns:1fr;place-items:center;gap:0;width:68px;min-width:68px;height:78px;min-height:0;padding:4px;transition:opacity .18s,border-color .18s,background .18s,transform .25s cubic-bezier(.16,1,.3,1);display:grid;position:relative}.all-functions-view .program-list li{grid-template-rows:16px 1fr;width:68px;min-width:68px;height:92px}.all-functions-view .empty-program{height:100%;min-height:0}.function-sequence .program-list li.active{background:#45e3a124;border-color:#45e3a1cc;transform:translateY(-2px)}.function-sequence .program-list li.is-dragging{opacity:.28}.function-sequence .program-list li.condition-target{border-color:var(--blue);outline-offset:-4px;background:#35bff221;outline:2px solid #eaf0edb8;transform:translateY(-4px)}.function-sequence .program-list li.condition-blue{color:#081820;background:var(--blue);border-color:#71d5f8}.function-sequence .program-list li.condition-red{color:#25100e;background:var(--red);border-color:#ff9a92}.function-sequence .program-list li.condition-green{color:#102308;background:var(--green);border-color:#b9ff8f}.function-sequence .program-list li.condition-blue .instruction-icon,.function-sequence .program-list li.condition-red .instruction-icon,.function-sequence .program-list li.condition-green .instruction-icon,.function-sequence .program-list li.condition-blue .function-call-mark,.function-sequence .program-list li.condition-red .function-call-mark,.function-sequence .program-list li.condition-green .function-call-mark{color:currentColor}.function-sequence .program-list li.condition-blue .line-number,.function-sequence .program-list li.condition-red .line-number,.function-sequence .program-list li.condition-green .line-number,.function-sequence .program-list li.condition-blue .remove-line,.function-sequence .program-list li.condition-red .remove-line,.function-sequence .program-list li.condition-green .remove-line{color:currentColor;opacity:.72}.function-sequence .program-list li.condition-blue.active,.function-sequence .program-list li.condition-red.active,.function-sequence .program-list li.condition-green.active{outline:2px solid var(--gold);outline-offset:-3px}.function-sequence .program-list li.insert-before:before,.function-sequence .program-list li.insert-after:after{background:var(--accent);content:"";width:3px;position:absolute;top:8px;bottom:8px}.function-sequence .program-list li.insert-before:before{left:-5px}.function-sequence .program-list li.insert-after:after{right:-5px}.function-sequence.accepts-action{background:#45e3a106}.function-sequence .line-number{justify-self:start;padding-left:1px;font-size:.55rem}.function-sequence .instruction-icon{color:var(--accent);align-self:center;place-items:center;display:grid}.remove-line{color:#78888c;cursor:pointer;background:0 0;border:0;place-items:center;width:18px;height:18px;padding:0;display:grid;position:absolute;top:3px;right:3px}.remove-line:hover{color:var(--red);background:#ff665c1f}.delete-drop-zone{z-index:5;min-height:42px;color:var(--red);font-family:var(--font-geist-mono), monospace;text-transform:uppercase;background:#14181eeb;border:1px dashed #ff665ca6;align-items:center;gap:8px;padding:0 16px;font-size:.62rem;font-weight:800;animation:.22s cubic-bezier(.16,1,.3,1) both delete-zone-in;display:flex;position:absolute;bottom:156px;left:50%;transform:translate(-50%)}.delete-drop-zone:hover{background:#ff665c1f}@keyframes delete-zone-in{0%{opacity:0;transform:translate(-50%,8px)}}.execution-console{grid-column:3;grid-template-rows:28px minmax(0,1fr);gap:6px;display:grid}.execution-meta{min-width:0;height:100%}.speed-selector{border:1px solid var(--line);grid-template-columns:repeat(3,1fr);width:100%;height:100%;display:grid}.speed-selector button{border:0;border-right:1px solid var(--line);min-width:0;color:var(--muted);font-family:var(--font-geist-mono), monospace;cursor:pointer;background:0 0;padding:0;font-size:.62rem;font-weight:800}.speed-selector button:last-child{border-right:0}.speed-selector button.active{color:#102019;background:var(--accent)}.speed-selector button:disabled{cursor:not-allowed;opacity:.55}.execution-actions{grid-template-columns:1.25fr 1fr 1fr;gap:5px;min-height:0;display:grid}.execution-actions button{border:1px solid var(--line);min-width:0;color:var(--ink);cursor:pointer;background:#253442;place-items:center;padding:0;transition:border-color .16s,background .16s,transform .16s;display:grid}.execution-actions button:hover{background:#344756;border-color:#e9f0ed57}.execution-actions button:active{transform:scale(.96)}.execution-actions button:disabled{cursor:not-allowed;opacity:.5}.execution-actions .run-button{color:#102019;background:var(--accent)}.execution-actions .run-button:hover{background:#6cf0b8}.help-overlay{z-index:6;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#050a109e;place-items:center;padding:20px;animation:.2s both help-fade;display:grid;position:absolute;inset:0}.help-dialog{background:#111c27;border:1px solid #d5e5e13d;width:min(430px,100%);animation:.3s cubic-bezier(.16,1,.3,1) both help-in;box-shadow:inset 0 1px #ffffff12,0 30px 70px -34px #000000f2}.help-dialog header{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:16px;padding:18px;display:flex}.help-dialog header h2{margin-top:5px}.help-dialog header button{border:1px solid var(--line);width:36px;height:36px;color:var(--muted);cursor:pointer;background:0 0;place-items:center;padding:0;display:grid}.help-command-list{grid-template-columns:1fr 1fr;display:grid}.help-command-list>div{border-right:1px solid var(--line);border-bottom:1px solid var(--line);grid-template-columns:42px minmax(0,1fr);align-items:center;gap:10px;min-height:86px;padding:14px;display:grid}.help-command-list>div:nth-child(2n){border-right:0}.help-command-list>div:nth-last-child(-n+2){border-bottom:0}.help-command-list>div>span{width:38px;height:38px;color:var(--accent);border:1px solid #45e3a166;place-items:center;display:grid}.help-command-list p{gap:4px;margin:0;display:grid}.help-command-list strong{font-size:.76rem}.help-command-list small{color:var(--muted);font-size:.66rem;line-height:1.35}.help-condition{border-top:1px solid var(--line);color:var(--muted);margin:0;padding:15px 18px 17px;font-size:.72rem;line-height:1.5}.help-condition strong{color:var(--ink)}@keyframes help-fade{0%{opacity:0}}@keyframes help-in{0%{opacity:0;transform:translateY(10px)scale(.98)}}html[data-theme=light] body{background-image:linear-gradient(#2d5b480b 1px,#0000 1px),linear-gradient(90deg,#2d5b480b 1px,#0000 1px)}html[data-theme=light] .sector-brand,html[data-theme=light] .sector-title,html[data-theme=light] .sector-progress,html[data-theme=light] .theme-button,html[data-theme=light] .sector-map-head,html[data-theme=light] .sector-coordinates{box-shadow:none;background:#f8faf9f5}html[data-theme=light] .sector-map,html[data-theme=light] .mission-inspector{box-shadow:none;background-color:#f4f7f5}html[data-theme=light] .sector-map{background-image:linear-gradient(#2d5b480e 1px,#0000 1px),linear-gradient(90deg,#2d5b480e 1px,#0000 1px)}html[data-theme=light] .sector-map:after{background-image:radial-gradient(circle,#17323040 1px,#0000 1px)}html[data-theme=light] .mission-node:not(.selected):not(.complete){color:#66766f;box-shadow:none;background:#f9fbfa;border-color:#27413738}html[data-theme=light] .node-copy b{color:#435459}html[data-theme=light] .mission-node.selected .node-copy b{color:var(--accent)}html[data-theme=light] .sector-coordinates{color:#718085}html[data-theme=light] .mission-preview{background-color:#e8eeeb;background-image:radial-gradient(circle,#27413724 1px,#0000 1px)}html[data-theme=light] .preview-cell.is-path{box-shadow:none;border-color:#27413733}html[data-theme=light] .game-shell{background:#e9efec}html[data-theme=light] .hud-icon-button,html[data-theme=light] .camera-controls button,html[data-theme=light] .floating-panel-head button,html[data-theme=light] .console-help,html[data-theme=light] .hud-mission-title,html[data-theme=light] .game-hud-top .mission-state,html[data-theme=light] .hud-crystals,html[data-theme=light] .game-legend{box-shadow:none;background:#f8faf9f0;border-color:#2741372b}html[data-theme=light] .hud-icon-button:hover,html[data-theme=light] .camera-controls button:hover,html[data-theme=light] .floating-panel-head button:hover,html[data-theme=light] .console-help:hover{background:#fff}html[data-theme=light] .console-block,html[data-theme=light] .stack-toggle{box-shadow:none;background:#f8faf9f5;border-color:#2741372e}html[data-theme=light] .stack-toggle:hover,html[data-theme=light] .stack-visualizer.is-open .stack-toggle{background:#fff}html[data-theme=light] .stack-body{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;box-shadow:none;background:#f8faf9fc;border-color:#2741372e}html[data-theme=light] .stack-frames li,html[data-theme=light] .function-lane,html[data-theme=light] .function-sequence .program-list li,html[data-theme=light] .empty-program,html[data-theme=light] .tool-button,html[data-theme=light] .condition-token{color:var(--ink);background:#2d5b480b;border-color:#27413729}html[data-theme=light] .function-sequence .program-list li.condition-blue{color:#081820;background:var(--blue)}html[data-theme=light] .function-sequence .program-list li.condition-red{color:#25100e;background:var(--red)}html[data-theme=light] .function-sequence .program-list li.condition-green{color:#102308;background:var(--green)}html[data-theme=light] .switch-track{background:#dce5e0;border-color:#27413747}html[data-theme=light] .execution-actions button{background:#e2e9e5}html[data-theme=light] .execution-actions button:hover{background:#d6e0db}html[data-theme=light] .execution-actions .run-button,html[data-theme=light] .speed-selector button.active{color:#fff;background:var(--accent)}html[data-theme=light] .help-overlay{background:#dbe5e1ad}html[data-theme=light] .help-dialog{background:#fff;border-color:#17242b33;box-shadow:0 30px 70px -38px #17242b8c}html[data-theme=light] .delete-drop-zone{background:#fffffff2}html[data-theme=light] .mobile-puzzle-dock,html[data-theme=light] .mobile-game-nav,html[data-theme=light] .mobile-program .game-bottom-console{color:var(--ink);background:#f8faf9f5}html[data-theme=light] .mobile-execution-ribbon,html[data-theme=light] .mobile-execution-actions button,html[data-theme=light] .mobile-speed-selector,html[data-theme=light] .mobile-game-nav button{background:#e2e9e5eb}html[data-theme=light] .mobile-execution-actions .run-button,html[data-theme=light] .mobile-speed-selector button.active,html[data-theme=light] .mobile-game-nav button.active{color:#fff;background:var(--accent)}@media (max-width:940px){body{padding-bottom:148px}.app-shell{width:min(100% - 28px,720px);padding-top:18px}.level-select-shell{width:min(100% - 24px,760px);min-height:100dvh;padding-top:12px}.mission-selector{grid-template-columns:1fr;min-height:0}.sector-map{grid-template-rows:62px minmax(410px,1fr) 32px;min-height:530px}.mission-inspector{grid-template-rows:72px minmax(280px,1fr) auto 58px;min-height:560px}.mission-bar{grid-template-columns:55px 1fr;gap:14px}.mission-state{grid-column:2;margin-top:-12px}.workspace{grid-template-columns:1fr;gap:32px;padding-top:25px}.program-panel{border-top:1px solid var(--line);border-left:0;padding:25px 0 0}.dock-inner{width:min(100% - 24px,680px);min-height:122px}.dock-readout{display:none}.controls{width:100%}.controls button{flex:1}.controls .icon-button{flex:0 0 44px}.game-hud-top{grid-template-columns:44px minmax(0,1fr) auto 44px;left:12px;right:12px}.game-hud-top .mission-state{grid-column:auto;margin:0}.hud-crystals{min-height:42px;position:absolute;top:54px;right:0}.open-program-button{position:absolute;top:54px;right:0}.floating-program-panel{top:110px;bottom:90px;right:12px}.game-control-dock{width:min(370px,100vw - 24px);min-height:60px;bottom:14px;right:12px}.game-control-dock .controls{width:auto}.game-control-dock .controls button{flex:none}.game-control-dock .controls .icon-button{flex-basis:42px}.game-bottom-console{--palette-width:210px;--execution-width:200px;grid-template-columns:var(--palette-width) minmax(260px, 1fr) var(--execution-width);height:154px}.stack-body{max-height:min(350px,100dvh - 300px)}.camera-controls{top:124px}.delete-drop-zone{bottom:182px}}@media (max-width:500px){h1{font-size:2rem}.mission-bar{grid-template-columns:45px 1fr}.brand{width:42px;height:42px}.level-select-shell{width:calc(100% - 16px);padding-top:8px}.sector-header{grid-template-columns:48px minmax(0,1fr) 42px 72px;gap:5px;height:48px}.theme-button{width:42px;height:48px}.sector-title{padding:0 9px}.sector-title .eyebrow{display:none}.sector-title h1{margin:0;font-size:.88rem}.sector-progress{gap:6px;min-width:0;font-size:.55rem}.sector-progress i{width:17px}.mission-selector{gap:6px;padding-top:6px}.sector-map{grid-template-rows:56px minmax(350px,1fr) 28px;min-height:450px}.sector-map-head{padding:0 12px}.sector-map-head h2{font-size:.8rem}.mission-node{width:46px;height:46px}.node-copy{width:74px;top:calc(100% + 8px)}.node-copy b{display:none}.mission-inspector{grid-template-rows:68px minmax(255px,1fr) auto 56px;min-height:520px}.mission-preview{padding:22px}.inspector-data{grid-template-columns:62px 62px minmax(0,1fr);gap:6px}.mission-mechanics{gap:3px}.mission-mechanics span{width:27px;height:27px}.tool-grid{grid-template-columns:1fr}.program-list li{grid-template-columns:24px 24px minmax(0,1fr) 28px;gap:4px}.legend{gap:8px 12px}.legend span{font-size:.75rem}.hint{display:none}.game-hud-top{grid-template-columns:42px minmax(0,1fr) 42px;top:10px;right:60px}.game-hud-top .mission-state{display:none}.hud-mission-title{height:42px}.hud-crystals,.open-program-button{top:50px;right:-52px}.floating-program-panel{width:calc(100vw - 16px);padding:13px;top:104px;bottom:82px;right:8px}.floating-program-panel .tool-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.game-control-dock{justify-content:space-between;padding-left:10px;bottom:8px;left:8px;right:8px;transform:none}.game-control-dock .dock-readout{display:grid}.game-control-dock .controls{width:auto}.game-control-dock .controls button{padding:0 11px;font-size:.72rem}.game-control-dock .controls .icon-button{width:40px;padding:0}.game-legend{display:none}.game-bottom-console{grid-template-columns:110px minmax(130px,1fr) 92px;gap:5px;height:190px;bottom:8px;left:8px;right:8px}.stack-visualizer{width:92px}.stack-visualizer.is-open{width:min(280px,100vw - 16px)}.stack-toggle{grid-template-columns:16px minmax(0,1fr) auto 14px;gap:3px;padding:0 5px}.stack-visualizer:not(.is-open) .stack-toggle>span{display:none}.stack-body{max-height:min(320px,100dvh - 314px)}.stack-frames li{grid-template-columns:23px 29px minmax(30px,1fr) auto;gap:5px;padding-right:5px}.console-block{padding:7px}.console-block-head{height:22px}.tool-row{gap:3px}.instruction-palette .tool-button svg:first-child{width:19px;height:19px}.condition-palette{gap:4px}.condition-token{width:auto;height:22px}.tool-row.paint .tool-button svg:first-child{width:17px;height:17px}.function-console{grid-template-rows:22px minmax(0,1fr)}.function-tabs button{gap:0;min-width:30px;padding:0 4px}.function-tabs button span{display:none}.function-head-tools{gap:3px}.function-head-tools .line-count{display:none}.expand-functions-switch{padding:0 4px}.expand-functions-switch .switch-label{display:none}.function-console.is-expanded{z-index:5;width:auto;height:min(var(--expanded-functions-mobile-height), calc(100dvh - 72px));position:fixed;bottom:8px;left:8px;right:8px}.function-sequence .program-list li{grid-template-rows:16px 1fr;width:60px;min-width:60px;height:144px}.function-sequence .empty-program{min-height:144px}.function-sequence.all-functions-view{grid-auto-flow:row;grid-template-rows:repeat(var(--function-count), minmax(0, 1fr));grid-auto-columns:auto;gap:3px;overflow:hidden}.all-functions-view .function-lane{grid-template-rows:1fr;grid-template-columns:36px minmax(0,1fr);min-width:0}.all-functions-view .function-lane-head{border-right:1px solid var(--line);border-bottom:0;flex-direction:column;justify-content:center;padding:0}.all-functions-view .function-lane-head span{display:none}.all-functions-view .function-lane-body{padding:2px}.all-functions-view .program-list li{grid-template-rows:16px 1fr;width:60px;min-width:60px;height:104px}.all-functions-view .empty-program{height:100%;min-height:0}.execution-console{grid-template-rows:28px minmax(0,1fr);gap:5px}.execution-actions{grid-template-rows:repeat(3,1fr);grid-template-columns:1fr;gap:3px}.execution-actions button{min-height:0}.delete-drop-zone{bottom:206px}.camera-controls{top:110px;bottom:auto;left:10px}}@media (max-width:700px),(max-width:940px) and (max-height:520px){.game-shell{--mobile-nav-height:54px;--mobile-edge:8px}.game-world{transition:opacity .24s}.mobile-program .game-world{opacity:.08}.mobile-program .camera-controls,.mobile-program .game-legend{display:none}.game-hud-top{grid-template-columns:40px minmax(0,1fr) 40px 70px;align-items:center;gap:4px;top:6px;left:8px;right:8px}.hud-icon-button{width:40px;height:40px}.hud-mission-title{height:40px;padding:0 9px}.hud-mission-title h1{margin:0;font-size:.78rem}.hud-mission-title .eyebrow,.game-hud-top .mission-state{display:none}.hud-crystals{justify-items:center;min-width:0;min-height:40px;padding:0 7px;position:static}.hud-crystals .eyebrow{display:none}.hud-crystals .crystal-counter{white-space:nowrap;font-size:.66rem}.game-legend{display:none}.camera-controls{top:56px;left:8px}.mobile-puzzle-dock{z-index:4;right:var(--mobile-edge);bottom:calc(var(--mobile-nav-height) + 8px);left:var(--mobile-edge);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#0c141eed;border:1px solid #d5e5e138;grid-template-rows:50px 48px;gap:6px;max-width:520px;margin:0 auto;padding:6px;display:grid;position:absolute;box-shadow:inset 0 1px #fff1,0 18px 42px -28px #000000f2}.mobile-program .mobile-puzzle-dock{display:none}.mobile-execution-ribbon{border:1px solid var(--line);min-width:0;color:var(--ink);cursor:pointer;background:#ffffff09;grid-template-columns:64px minmax(0,1fr);align-items:stretch;padding:0;display:grid}.mobile-ribbon-meta{border-right:1px solid var(--line);font-family:var(--font-geist-mono), monospace;text-align:center;place-content:center;gap:2px;display:grid}.mobile-ribbon-meta strong{color:var(--accent);font-size:.72rem}.mobile-ribbon-meta small{color:var(--muted);font-size:.5rem;font-weight:800}.mobile-ribbon-sequence{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;min-width:0;padding:4px;display:grid}.mobile-ribbon-instruction{border:1px solid var(--line);min-width:0;color:var(--muted);opacity:.55;background:#ffffff06;place-items:center;font-style:normal;display:grid}.mobile-ribbon-instruction.active{border-color:var(--accent);color:var(--accent);opacity:1;background:#45e3a11c;transform:translateY(-1px)}.mobile-ribbon-instruction.condition-blue{color:#081820;background:var(--blue)}.mobile-ribbon-instruction.condition-red{color:#25100e;background:var(--red)}.mobile-ribbon-instruction.condition-green{color:#102308;background:var(--green)}.mobile-ribbon-instruction.empty{color:var(--muted);background:0 0}.mobile-execution-row{grid-template-columns:86px minmax(0,1fr);gap:6px;min-width:0;display:grid}.mobile-speed-selector{border:1px solid var(--line);background:#ffffff06;grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.mobile-speed-selector button{border:0;border-right:1px solid var(--line);min-width:0;color:var(--muted);font-family:var(--font-geist-mono), monospace;background:0 0;padding:0;font-size:.48rem;font-weight:800}.mobile-speed-selector button:last-child{border-right:0}.mobile-speed-selector button.active{color:#102019;background:var(--accent)}.mobile-execution-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;min-width:0;display:grid}.mobile-execution-actions button{border:1px solid var(--line);min-width:0;color:var(--ink);background:#253442;place-items:center;padding:0;display:grid}.mobile-execution-actions button:active{transform:scale(.96)}.mobile-execution-actions button:disabled{opacity:.5}.mobile-execution-actions .run-button{color:#102019;background:var(--accent)}.mobile-stack-slot{z-index:5;right:var(--mobile-edge);bottom:calc(var(--mobile-nav-height) + 128px);pointer-events:none;width:min(280px,100vw - 16px);display:block;position:absolute}.mobile-program .mobile-stack-slot{display:none}.mobile-stack-slot .stack-visualizer{pointer-events:auto;width:104px;position:absolute;bottom:0;right:0}.mobile-stack-slot .stack-visualizer.is-open{width:min(280px,100vw - 16px)}.mobile-stack-slot .stack-body{max-height:min(320px,100dvh - 286px)}.mobile-puzzle .game-bottom-console,.game-bottom-console>.stack-visualizer{display:none}.mobile-program .game-bottom-console{z-index:4;inset:54px 8px calc(var(--mobile-nav-height) + 8px);pointer-events:auto;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#0c141ef7;border:1px solid #d5e5e138;grid-template-rows:minmax(150px,.72fr) minmax(230px,1.28fr);grid-template-columns:minmax(0,1fr);gap:6px;width:auto;height:auto;padding:6px;display:grid;position:absolute;box-shadow:inset 0 1px #fff1}.mobile-program .instruction-palette{grid-area:2/1;grid-template-rows:minmax(0,1fr) 44px;align-self:stretch;gap:6px;width:auto;height:auto}.mobile-program .function-console{grid-area:1/1;grid-template-rows:44px minmax(0,1fr);width:auto;height:auto;position:relative;inset:auto}.mobile-program .function-head{height:44px}.mobile-program .function-tabs button{gap:7px;min-width:76px;padding:0 12px;font-size:.74rem}.mobile-program .function-tabs button span{display:inline}.mobile-program .expand-functions-switch{display:none}.mobile-program .function-console.is-expanded{width:auto;height:auto;position:relative;inset:auto}.mobile-program .execution-console{display:none}.mobile-program .condition-palette{gap:5px}.mobile-program .condition-token{cursor:pointer;grid-template-columns:18px minmax(0,1fr);place-items:center start;gap:6px;width:auto;max-width:none;height:44px;padding:0 8px;display:grid}.mobile-program .condition-token span{width:17px;height:17px}.mobile-program .condition-token b{color:var(--muted);font-family:var(--font-geist-mono), monospace;text-overflow:ellipsis;white-space:nowrap;font-size:.52rem;line-height:1;display:block;overflow:hidden}.mobile-program .condition-token.selected b{color:var(--ink)}.mobile-program .game-bottom-console>.console-help{z-index:2;width:36px;height:36px;display:grid;bottom:8px;left:auto;right:8px}.mobile-program .function-sequence .program-list li{grid-template-rows:16px 1fr 20px;width:72px;min-width:72px;height:92px}.mobile-program .function-sequence .empty-program{min-height:92px}.mobile-move-controls{grid-template-columns:1fr 1fr;align-self:end;gap:2px;display:grid}.mobile-move-controls button{width:22px;height:18px;color:var(--muted);background:0 0;border:1px solid;place-items:center;padding:0;display:grid}.mobile-move-controls button:disabled{opacity:.22}.mobile-game-nav{z-index:7;height:var(--mobile-nav-height);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#0c141ef7;border-top:1px solid #d5e5e138;grid-template-columns:1fr 1fr;gap:1px;padding:5px 8px;display:grid;position:absolute;bottom:0;left:0;right:0}.mobile-game-nav button{border:1px solid var(--line);min-width:0;color:var(--muted);text-transform:uppercase;background:#ffffff06;justify-content:center;align-items:center;gap:7px;padding:0;font-size:.68rem;font-weight:850;display:flex}.mobile-game-nav button.active{color:#102019;border-color:var(--accent);background:var(--accent)}.delete-drop-zone{bottom:calc(var(--mobile-nav-height) + 126px)}}@media (max-width:940px) and (max-height:520px){.mobile-program .game-bottom-console{grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1.25fr) minmax(170px,.75fr)}.mobile-program .function-console{grid-area:1/1}.mobile-program .instruction-palette{grid-area:1/2}.mobile-program .function-sequence .program-list li{height:82px}.mobile-program .function-sequence .empty-program{min-height:82px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.workshop-lobby,.progress-screen,.workshop-missions-screen{min-height:100dvh;color:var(--ink);background:radial-gradient(circle at 13% 18%, #45e3a11a, transparent 28rem), linear-gradient(#b7d5cd09 1px, transparent 1px), linear-gradient(90deg, #b7d5cd09 1px, transparent 1px), var(--canvas);background-size:auto,28px 28px,28px 28px,auto}.workshop-lobby{padding:24px clamp(18px,4vw,58px) 48px;overflow:hidden}.workshop-lobby:after{z-index:0;content:"";pointer-events:none;border:1px solid #45e3a11f;border-radius:50%;width:72vw;height:72vw;position:fixed;bottom:-42vw;right:-13vw;box-shadow:0 0 0 8vw #45e3a105,0 0 0 17vw #45e3a103}.workshop-lobby-header,.workshop-bar{z-index:2;justify-content:space-between;align-items:center;gap:20px;display:flex;position:relative}.workshop-lobby-header{border-bottom:1px solid var(--line);max-width:1440px;margin:0 auto;padding-bottom:22px}.workshop-brand{align-items:center;gap:12px;display:flex}.workshop-brand-mark{width:48px;height:48px;color:var(--accent);background:#0d1720b8;border:1px solid #45e3a194;place-items:center;display:grid}.workshop-brand>span:last-child{gap:3px;display:grid}.workshop-brand small,.workshop-brand strong,.session-live,.crew-panel-head>span,.workshop-field>span,.global-score-panel small,.team-card-stats small,.trajectory-list small,.facilitator-chip{font-family:var(--font-geist-mono), monospace;letter-spacing:.08em;text-transform:uppercase}.workshop-brand small{color:var(--accent);font-size:.58rem;font-weight:900}.workshop-brand strong{font-size:.72rem}.session-live{color:var(--muted);align-items:center;gap:11px;font-size:.58rem;font-weight:800;display:flex}.session-live i,.facilitator-chip i{background:var(--accent);border-radius:50%;width:7px;height:7px;animation:1.6s ease-in-out infinite pulse;box-shadow:0 0 0 4px #45e3a11f}.session-live strong{color:var(--ink);border:1px solid var(--line);padding:8px 10px}.workshop-theme{border:1px solid var(--line);width:46px;height:46px;color:var(--ink);cursor:pointer;background:#0d1720b8;place-items:center;padding:0;display:grid}.lobby-stage{z-index:1;grid-template-columns:minmax(0,1.1fr) minmax(420px,.75fr);align-items:center;gap:clamp(50px,8vw,130px);width:min(1260px,100%);min-height:calc(100dvh - 120px);margin:0 auto;padding:54px 0 38px;display:grid;position:relative}.lobby-intro h1{letter-spacing:-.065em;max-width:none;margin:14px 0 24px;font-size:clamp(3.6rem,7.8vw,7.6rem);font-weight:780;line-height:.84}.lobby-intro h1 em{color:var(--accent);font-style:normal}.lobby-intro>p:not(.eyebrow){max-width:560px;color:var(--muted);font-size:clamp(1rem,1.5vw,1.28rem);line-height:1.58}.collective-target{border-top:1px solid var(--line);border-bottom:1px solid var(--line);grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:14px;max-width:520px;margin-top:44px;padding:14px;display:grid}.collective-target>span{width:42px;height:42px;color:var(--accent);background:#45e3a11a;place-items:center;display:grid}.collective-target div{gap:3px;display:grid}.collective-target small{color:var(--muted);font-family:var(--font-geist-mono), monospace;letter-spacing:.09em;font-size:.55rem;font-weight:800}.collective-target strong{font-size:.88rem}.collective-target b{color:var(--accent);font-family:var(--font-geist-mono), monospace;font-size:1.25rem}.crew-panel{-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#0b131ce6;border:1px solid #d5e5e133;padding:clamp(24px,3.2vw,42px);box-shadow:inset 0 1px #ffffff0d,0 34px 90px -45px #000000f2}.crew-panel-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:start;padding-bottom:24px;display:flex}.crew-panel-head h2{margin-top:6px;font-size:1.45rem}.crew-panel-head>span{color:var(--muted);font-size:.58rem}.workshop-field{gap:8px;margin-top:24px;display:grid}.workshop-field>span{color:var(--muted);font-size:.58rem;font-weight:850}.workshop-field>div{border:1px solid var(--line);min-height:50px;color:var(--muted);background:#ffffff06;grid-template-columns:20px minmax(0,1fr);align-items:center;gap:10px;padding:0 14px;display:grid}.workshop-field>div:focus-within{color:var(--accent);border-color:#45e3a1a3}.workshop-field input{min-width:0;color:var(--ink);font:inherit;background:0 0;border:0;outline:0}.workshop-field input::placeholder{color:#647176}.crew-mode-tabs{background:#ffffff09;grid-template-columns:1fr 1fr;gap:5px;margin:20px 0 12px;padding:4px;display:grid}.crew-mode-tabs button{min-height:40px;color:var(--muted);cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;gap:8px;font-size:.72rem;font-weight:800;display:flex}.crew-mode-tabs button.active{color:var(--ink);background:#263643}.team-choice{gap:7px;display:grid}.team-choice button{border:1px solid var(--line);min-height:64px;color:var(--ink);text-align:left;cursor:pointer;background:#ffffff05;grid-template-columns:42px minmax(0,1fr) 28px;align-items:center;gap:12px;padding:8px 12px;transition:border-color .18s,background .18s,transform .18s;display:grid}.team-choice button:hover{border-color:color-mix(in srgb, var(--team-tone) 45%, transparent);transform:translate(3px)}.team-choice button.selected{border-color:var(--team-tone);background:color-mix(in srgb, var(--team-tone) 9%, transparent)}.team-choice button>i,.active-crew>i{color:#07130e;background:var(--team-tone);width:42px;height:42px;font-family:var(--font-geist-mono), monospace;place-items:center;font-size:.64rem;font-style:normal;font-weight:950;display:grid}.team-choice button>span{gap:3px;display:grid}.team-choice button small{color:var(--muted);font-size:.67rem}.team-choice button>b{color:var(--team-tone);place-items:center;display:grid}.new-team-field{align-content:start;min-height:196px;margin-top:28px}.workshop-primary{border:1px solid var(--accent);color:#071710;background:var(--accent);cursor:pointer;justify-content:space-between;align-items:center;width:100%;min-height:54px;margin-top:20px;padding:0 18px 0 22px;font-weight:900;display:flex}.workshop-primary:disabled{border-color:var(--line);color:#71807b;cursor:not-allowed;background:#22302f}.crew-footnote{color:var(--muted);text-align:center;margin:13px 0 0;font-size:.65rem;line-height:1.5}.workshop-bar{z-index:20;border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#0a121af0;min-height:72px;padding:10px max(18px,50vw - 690px);position:sticky;top:0}.workshop-bar .workshop-brand-mark{border-color:color-mix(in srgb, var(--team-tone) 55%, transparent);width:42px;height:42px;color:var(--team-tone)}.workshop-nav-links{align-self:stretch;gap:4px;display:flex}.workshop-nav-links button{color:var(--muted);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;align-items:center;gap:8px;padding:0 18px;font-size:.72rem;font-weight:800;display:flex}.workshop-nav-links button.active{border-color:var(--team-tone);color:var(--ink)}.active-crew{grid-template-columns:40px minmax(0,1fr) 32px;align-items:center;gap:10px;display:grid}.active-crew>i{width:40px;height:40px}.active-crew>span{gap:2px;display:grid}.active-crew small{color:var(--muted);font-size:.62rem}.active-crew strong{font-size:.72rem}.active-crew button{width:32px;height:32px;color:var(--muted);cursor:pointer;background:0 0;border:0;place-items:center;padding:0;display:grid}.workshop-missions-screen .level-select-shell{min-height:calc(100dvh - 72px);padding-top:14px}.progress-screen{padding-bottom:60px}.progress-shell{width:min(1380px,100% - 40px);margin:0 auto;padding-top:34px}.progress-hero{justify-content:space-between;align-items:end;gap:20px;margin-bottom:25px;display:flex}.progress-hero h1{letter-spacing:-.045em;max-width:none;margin:8px 0 0;font-size:clamp(2rem,4vw,4rem)}.facilitator-chip{border:1px solid var(--line);color:var(--muted);align-items:center;gap:10px;padding:12px 14px;font-size:.55rem;font-weight:850;display:flex}.facilitator-chip strong{color:var(--ink);font-size:.72rem}.global-score-panel{background:linear-gradient(105deg,#45e3a11c,#0d161fe0 42%);border:1px solid #45e3a14d;grid-template-columns:minmax(250px,.78fr) minmax(360px,1.4fr) minmax(190px,.58fr);align-items:center;gap:28px;min-height:144px;padding:24px 28px;display:grid}.global-score-copy{align-items:center;gap:16px;display:flex}.global-score-copy>span{color:#07160f;background:var(--accent);place-items:center;width:52px;height:52px;display:grid}.global-score-copy>div{flex-wrap:wrap;align-items:baseline;gap:6px;display:flex}.global-score-copy small{width:100%;color:var(--muted);font-size:.55rem;font-weight:800}.global-score-copy strong{font-family:var(--font-geist-mono), monospace;font-size:clamp(1.8rem,3vw,2.7rem)}.global-score-copy b{color:var(--muted);font-size:.62rem}.global-gauge>div:first-child{font-family:var(--font-geist-mono), monospace;justify-content:space-between;margin-bottom:9px;font-size:.58rem;font-weight:850;display:flex}.global-gauge>div:first-child span{color:var(--muted)}.global-gauge>div:first-child strong{color:var(--accent)}.global-track{border:1px solid #d5e5e12e;height:9px;padding:2px}.global-track i{background:var(--accent);height:100%;display:block;box-shadow:0 0 18px #45e3a173}.global-gauge p{color:var(--muted);margin:9px 0 0;font-size:.64rem}.next-milestone{border-left:1px solid var(--line);gap:4px;padding-left:25px;display:grid}.next-milestone small{color:var(--muted);font-size:.52rem;font-weight:850}.next-milestone strong{color:var(--gold);font-family:var(--font-geist-mono), monospace;font-size:1.08rem}.next-milestone span{color:var(--muted);font-size:.62rem;line-height:1.4}.progress-grid{grid-template-columns:minmax(0,1.4fr) minmax(340px,.76fr);gap:14px;margin-top:14px;display:grid}.team-ranking,.mission-trajectory{border:1px solid var(--line);background:#0b131cdb;padding:24px}.progress-section-head{justify-content:space-between;align-items:center;margin-bottom:18px;display:flex}.progress-section-head h2{margin-top:5px;font-size:1.15rem}.progress-section-head>span{color:var(--muted);font-family:var(--font-geist-mono), monospace;font-size:.48rem;font-weight:800}.progress-section-head>strong{color:var(--accent);font-family:var(--font-geist-mono), monospace}.team-card-list{gap:8px;display:grid}.progress-team-card{border:1px solid var(--line);border-left:3px solid color-mix(in srgb, var(--team-tone) 52%, transparent);background:#ffffff06;grid-template-rows:auto auto;grid-template-columns:92px minmax(210px,1fr) minmax(180px,.65fr);align-items:center;display:grid}.progress-team-card.is-current{border-color:color-mix(in srgb, var(--team-tone) 52%, transparent);background:color-mix(in srgb, var(--team-tone) 7%, transparent)}.team-rank{border-right:1px solid var(--line);grid-row:1/3;align-self:stretch;align-items:center;gap:10px;padding:14px;display:flex}.team-rank>span{color:var(--muted);font-family:var(--font-geist-mono), monospace;font-size:.55rem}.team-rank>i{color:#07130e;background:var(--team-tone);width:38px;height:38px;font-family:var(--font-geist-mono), monospace;place-items:center;font-size:.58rem;font-style:normal;font-weight:900;display:grid}.team-card-main{justify-content:space-between;align-items:center;gap:15px;padding:14px 18px 8px;display:flex}.team-card-main h3{margin:0 0 4px;font-size:1rem}.team-card-main span{color:var(--muted);align-items:center;gap:5px;font-size:.6rem;display:flex}.team-card-main>strong{font-family:var(--font-geist-mono), monospace;font-size:1.05rem}.team-card-main>strong small{color:var(--muted);font-size:.48rem}.team-progress-track{background:#ffffff14;height:3px;margin:0 18px 13px}.team-progress-track i{background:var(--team-tone);height:100%;display:block}.team-card-stats{border-left:1px solid var(--line);grid-area:1/3/3;grid-template-columns:repeat(3,1fr);align-self:stretch;display:grid}.team-card-stats>span{border-left:1px solid var(--line);place-content:center;gap:5px;padding:10px;display:grid}.team-card-stats>span:first-child{border-left:0}.team-card-stats small{color:var(--muted);font-size:.42rem}.team-card-stats strong{font-family:var(--font-geist-mono), monospace;font-size:.62rem}.trajectory-list{gap:0;margin:0;padding:0;list-style:none;display:grid}.trajectory-list li{grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:62px;padding:7px 0;display:grid;position:relative}.trajectory-list li:not(:last-child):after{background:var(--line);content:"";width:1px;position:absolute;top:49px;bottom:-13px;left:17px}.trajectory-list li>i{z-index:1;border:1px solid var(--line);width:35px;height:35px;color:var(--muted);font-family:var(--font-geist-mono), monospace;background:#121e28;place-items:center;font-size:.52rem;font-style:normal;display:grid}.trajectory-list li.complete>i{border-color:var(--accent);color:#07130e;background:var(--accent)}.trajectory-list li.current>i{border-color:var(--gold);color:var(--gold);box-shadow:0 0 0 4px #ffd43b17}.trajectory-list li>span{gap:4px;display:grid}.trajectory-list small{color:var(--muted);font-size:.46rem}.trajectory-list strong{font-size:.72rem}.trajectory-list li>b{color:var(--accent);font-family:var(--font-geist-mono), monospace;font-size:.58rem}.trajectory-list button{border:1px solid var(--gold);color:#161303;background:var(--gold);cursor:pointer;align-items:center;gap:6px;padding:8px 10px;font-size:.58rem;font-weight:900;display:flex}.back-to-missions{border:1px solid var(--line);width:100%;min-height:42px;color:var(--muted);cursor:pointer;background:0 0;justify-content:center;align-items:center;gap:8px;margin-top:20px;font-size:.68rem;font-weight:800;display:flex}.back-to-missions:hover{color:var(--ink);border-color:#45e3a173}html[data-theme=light] .crew-panel,html[data-theme=light] .team-ranking,html[data-theme=light] .mission-trajectory,html[data-theme=light] .workshop-bar{background:#f8faf9f0}html[data-theme=light] .crew-mode-tabs button.active{background:#dfe8e3}html[data-theme=light] .workshop-brand-mark,html[data-theme=light] .workshop-theme,html[data-theme=light] .trajectory-list li>i{background:#f8faf9e6}@media (max-width:980px){.lobby-stage{grid-template-columns:1fr;align-items:start;gap:34px;padding-top:70px}.lobby-intro{text-align:center}.lobby-intro>p:not(.eyebrow),.collective-target{margin-left:auto;margin-right:auto}.lobby-intro h1{font-size:clamp(4rem,13vw,7rem)}.crew-panel{width:min(560px,100%);margin:0 auto}.global-score-panel{grid-template-columns:1fr 1.3fr}.next-milestone{display:none}.progress-grid{grid-template-columns:1fr}}@media (max-width:700px){body{padding-bottom:0}.workshop-lobby{padding:14px 12px 28px}.workshop-lobby-header{padding-bottom:12px}.workshop-brand strong,.session-live span{display:none}.session-live{margin-left:auto}.lobby-stage{min-height:0;padding-top:44px}.lobby-intro h1{margin-bottom:18px;font-size:clamp(3.3rem,18vw,5.3rem)}.lobby-intro>p:not(.eyebrow){font-size:.92rem}.collective-target{text-align:left;margin-top:30px}.crew-panel{padding:22px 16px}.workshop-bar{min-height:62px;padding:8px}.workshop-bar .workshop-brand>span:last-child,.active-crew>span{display:none}.workshop-nav-links{order:2;margin-left:auto}.workshop-nav-links button{justify-content:center;width:42px;padding:0;font-size:0}.active-crew{order:3;grid-template-columns:36px 30px;gap:4px}.active-crew>i{width:36px;height:36px}.progress-shell{width:calc(100% - 16px);padding-top:22px}.progress-hero{align-items:start}.progress-hero h1{font-size:2.2rem}.facilitator-chip{padding:9px}.facilitator-chip span{display:none}.global-score-panel{grid-template-columns:1fr;gap:20px;padding:20px}.global-score-copy{justify-content:center}.team-ranking,.mission-trajectory{padding:16px 12px}.progress-team-card{grid-template-columns:78px minmax(0,1fr)}.team-card-stats{display:none}.team-rank{padding:10px}.team-card-main{padding-left:12px;padding-right:12px}.team-card-main>strong{font-size:.85rem}.team-progress-track{margin-left:12px;margin-right:12px}}.workshop-form-error{color:#ff9189;background:#ff665c14;border:1px solid #ff665c73;margin:14px 0 0;padding:10px 12px;font-size:.72rem;line-height:1.4}.workshop-waiting{min-height:100dvh}.waiting-stage{z-index:1;text-align:center;align-content:center;place-items:center;min-height:calc(100dvh - 96px);padding:50px 20px;display:grid;position:relative}.waiting-orbit{width:112px;height:112px;color:var(--accent);border:1px solid #45e3a159;border-radius:50%;place-items:center;margin-bottom:35px;display:grid;position:relative}.waiting-orbit:before,.waiting-orbit:after{content:"";border:1px solid #45e3a124;border-radius:50%;position:absolute}.waiting-orbit:before{inset:-22px}.waiting-orbit:after{inset:-44px}.waiting-stage h1{letter-spacing:-.055em;max-width:780px;margin:11px 0 18px;font-size:clamp(2.5rem,6vw,5.4rem)}.waiting-stage>p:not(.eyebrow){max-width:610px;color:var(--muted);margin-bottom:32px;font-size:1rem;line-height:1.6}.waiting-signal{color:var(--muted);font-family:var(--font-geist-mono), monospace;letter-spacing:.08em;align-items:center;gap:10px;font-size:.55rem;font-weight:850;display:flex}.waiting-signal i{background:var(--accent);border-radius:50%;width:7px;height:7px;animation:1.4s ease-in-out infinite pulse;box-shadow:0 0 0 4px #45e3a11f}.facilitator-screen{min-height:100dvh;color:var(--ink);background:linear-gradient(#b7d5cd09 1px, transparent 1px), linear-gradient(90deg, #b7d5cd09 1px, transparent 1px), var(--canvas);background-size:28px 28px;padding:0 0 60px}.facilitator-loading{min-height:100dvh;color:var(--muted);justify-content:center;align-items:center;gap:14px;display:flex}.facilitator-login{border:1px solid var(--line);background:#0b131cf0;width:min(440px,100% - 30px);padding:38px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 34px 90px -45px #000000f2}.facilitator-logo{width:58px;height:58px;color:var(--accent);border:1px solid #45e3a18c;place-items:center;margin-bottom:28px;display:grid}.facilitator-login h1{letter-spacing:-.04em;margin:8px 0 15px;font-size:2.25rem}.facilitator-login>p:not(.eyebrow,.workshop-form-error){color:var(--muted);font-size:.86rem;line-height:1.55}.facilitator-login label,.create-session-panel label{gap:8px;margin-top:24px;display:grid}.facilitator-login label>span,.create-session-panel label>span{color:var(--muted);font-family:var(--font-geist-mono), monospace;letter-spacing:.08em;font-size:.53rem;font-weight:850}.facilitator-login input,.create-session-panel input{border:1px solid var(--line);width:100%;min-height:48px;color:var(--ink);font:inherit;background:#ffffff06;outline:none;padding:0 13px}.facilitator-login input:focus,.create-session-panel input:focus{border-color:#45e3a199}.facilitator-login>button,.create-session-panel form>button{border:1px solid var(--accent);color:#07160f;background:var(--accent);cursor:pointer;justify-content:center;align-items:center;gap:9px;width:100%;min-height:48px;margin-top:20px;font-weight:900;display:flex}.facilitator-login>button:disabled,.create-session-panel form>button:disabled{opacity:.45;cursor:not-allowed}.facilitator-header{z-index:10;border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#0a121af0;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px;min-height:76px;padding:10px max(20px,50vw - 690px);display:grid;position:sticky;top:0}.facilitator-current{border:1px solid var(--line);align-items:center;gap:11px;padding:9px 14px;display:flex}.facilitator-current>i{background:var(--muted);border-radius:50%;width:7px;height:7px}.facilitator-current>i.online{background:var(--accent);box-shadow:0 0 0 4px #45e3a11f}.facilitator-current>span{gap:2px;display:grid}.facilitator-current small{color:var(--muted);font-family:var(--font-geist-mono), monospace;letter-spacing:.08em;font-size:.46rem}.facilitator-current strong{font-size:.7rem}.facilitator-header-actions{justify-self:end;gap:6px;display:flex}.facilitator-home,.facilitator-logout{border:1px solid var(--line);min-height:40px;color:var(--muted);cursor:pointer;background:0 0;justify-content:center;align-items:center;gap:7px;padding:0 12px;font-size:.65rem;text-decoration:none;display:flex}.facilitator-home:hover,.facilitator-logout:hover{color:var(--ink);border-color:#45e3a173}.facilitator-shell{width:min(1380px,100% - 40px);margin:0 auto;padding-top:38px}.facilitator-title{justify-content:space-between;align-items:end;gap:20px;margin-bottom:26px;display:flex}.facilitator-title h1{letter-spacing:-.06em;margin:7px 0 0;font-size:clamp(2.7rem,5vw,5rem)}.facilitator-title>span{border:1px solid var(--line);color:var(--muted);font-family:var(--font-geist-mono), monospace;padding:8px 10px;font-size:.58rem}.facilitator-error{margin-bottom:14px}.facilitator-layout{grid-template-columns:minmax(0,1.45fr) 350px;align-items:start;gap:14px;display:grid}.session-list-panel,.create-session-panel{border:1px solid var(--line);background:#0b131ce0}.session-list-head,.session-row{grid-template-columns:minmax(220px,1fr) 120px 105px minmax(210px,auto);align-items:center;gap:14px;display:grid}.session-list-head{border-bottom:1px solid var(--line);min-height:40px;color:var(--muted);font-family:var(--font-geist-mono), monospace;letter-spacing:.07em;padding:0 17px;font-size:.46rem;font-weight:850}.session-row{border-bottom:1px solid var(--line);border-left:3px solid #0000;min-height:86px;padding:12px 17px}.session-row:last-child{border-bottom:0}.session-row.is-active{border-left-color:var(--accent);background:#45e3a10e}.session-identity{align-items:center;gap:12px;display:flex}.session-identity>i{border:1px solid var(--line);width:38px;height:38px;color:var(--muted);place-items:center;font-style:normal;display:grid}.session-row.is-active .session-identity>i{color:var(--accent);border-color:#45e3a180}.session-identity>span{gap:4px;display:grid}.session-identity strong{font-size:.8rem}.session-identity small{color:var(--muted);font-size:.56rem}.session-audience{color:var(--muted);grid-template-columns:18px 24px;align-items:center;display:grid}.session-audience strong{color:var(--ink);font-family:var(--font-geist-mono), monospace;font-size:.72rem}.session-audience span{white-space:nowrap;grid-column:2;font-size:.5rem}.session-status{border:1px solid var(--line);color:var(--muted);font-family:var(--font-geist-mono), monospace;text-transform:uppercase;justify-self:start;padding:6px 7px;font-size:.48rem;font-weight:850}.status-running{color:var(--accent);border-color:#45e3a173}.status-lobby{color:var(--blue);border-color:#35bff273}.status-paused{color:var(--gold);border-color:#ffd43b73}.session-actions{flex-wrap:wrap;justify-content:flex-end;gap:5px;display:flex}.session-actions button,.active-label{border:1px solid var(--line);min-height:36px;color:var(--muted);cursor:pointer;background:0 0;align-items:center;gap:5px;padding:0 10px;font-size:.58rem;font-weight:800;display:flex}.session-actions button.primary{border-color:var(--accent);color:#07160f;background:var(--accent)}.session-actions button.danger:hover{color:var(--red);border-color:#ff665c80}.active-label{color:var(--accent);cursor:default;border-color:#0000}.empty-sessions{min-height:300px;color:var(--muted);text-align:center;place-content:center;place-items:center;gap:9px;display:grid}.empty-sessions strong{color:var(--ink)}.empty-sessions span{font-size:.72rem}.create-session-panel{padding:25px}.create-session-panel h2{margin:6px 0 13px;font-size:1.3rem}.create-session-panel>p:not(.eyebrow){color:var(--muted);font-size:.72rem;line-height:1.5}.create-session-panel label>div{border:1px solid var(--line);grid-template-columns:1fr 42px;align-items:center;display:grid}.create-session-panel label>div input{border:0}.create-session-panel label>div b{color:var(--muted);font-family:var(--font-geist-mono), monospace;font-size:.52rem}html[data-theme=light] .facilitator-login,html[data-theme=light] .facilitator-header,html[data-theme=light] .session-list-panel,html[data-theme=light] .create-session-panel{background:#f8faf9f2}@media (max-width:1050px){.facilitator-layout{grid-template-columns:1fr}.create-session-panel{width:min(480px,100%)}}@media (max-width:760px){.facilitator-header{grid-template-columns:auto minmax(0,1fr) auto;gap:8px;min-height:56px;padding:6px 8px}.facilitator-header .workshop-brand{gap:0}.facilitator-header .workshop-brand-mark{width:42px;height:42px}.facilitator-header .workshop-brand>span:last-child{display:none}.facilitator-current{border:0;justify-content:start;gap:8px;min-width:0;padding:0 6px}.facilitator-current>span{min-width:0}.facilitator-current small{display:none}.facilitator-current strong{text-overflow:ellipsis;white-space:nowrap;font-size:.68rem;overflow:hidden}.facilitator-header-actions{gap:4px}.facilitator-home,.facilitator-logout{width:44px;min-height:44px;padding:0}.facilitator-home span,.facilitator-logout span{display:none}.facilitator-shell{width:calc(100% - 16px);padding-top:16px}.facilitator-title{margin-bottom:16px}.facilitator-title h1{font-size:2.35rem}.session-list-head{display:none}.session-row{grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:14px 12px}.session-audience{grid-row:2}.session-status{grid-area:1/2}.session-actions{grid-area:3/1/auto/3;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px;display:grid}.session-actions button,.session-actions .active-label{justify-content:center;min-height:44px;padding:0 13px;font-size:.68rem}.create-session-panel{padding:20px 16px}}
