:root{--game-font: "Geist Pixel", monospace;font-family:var(--game-font);color:#dce3bb;background:#377eae;font-synthesis:none}*{box-sizing:border-box}html,body{width:100%;height:100%}body{margin:0;overflow:hidden;overscroll-behavior:none}button{font:inherit}.page{position:relative;width:100%;height:100%;overflow:hidden}.tabletop{position:absolute;inset:0;overflow:hidden;touch-action:none;background:#8e542a url(/assets/environment/table.png) center / cover no-repeat;opacity:0;transition:opacity .42s steps(8,end);image-rendering:pixelated;cursor:none}.tabletop.ready{opacity:1}.tabletop *{cursor:none!important}.cartridge-list{display:contents}.cartridge,.inserted-cartridge{display:block;position:absolute;width:clamp(96px,9.5vw,140px);aspect-ratio:826 / 940;padding:0;border:0;background:transparent;overflow:hidden;transform:translate(-50%,-50%) rotate(var(--rotation, 0deg));transform-origin:center;image-rendering:pixelated;filter:drop-shadow(4px 6px 0 #4930218c);touch-action:none}.cartridge{z-index:5}.cartridge[hidden]{display:none}.cartridge[data-state=DRAGGING]{z-index:15;transform:translate(-50%,-50%) rotate(-3deg) scale(1.04)}.cartridge[data-state=INSERTING]{z-index:8;transform:translate(-50%,-50%) rotate(0) scale(var(--insert-scale, 1));transition:left .43s steps(12,end),top .43s steps(12,end),transform .43s steps(12,end)}.cartridge-body{position:absolute;width:131.48%;height:154.04%;left:-15.74%;top:-25.32%;image-rendering:pixelated;pointer-events:none}.cartridge-art{position:absolute;left:17.43%;top:25.21%;width:66.1%;height:55.5%;object-fit:cover;background:#402e42;image-rendering:pixelated;pointer-events:none}.cartridge-spatule .cartridge-art{object-fit:contain;background:#762b43}.cartridge-snake .cartridge-art{background:#273723}.cartridge-pong .cartridge-art{background:#243245}.handheld{position:absolute;left:50%;top:50%;width:min(76vw,1080px,120vh);aspect-ratio:1586 / 992;transform:translate(-50%,-50%);image-rendering:pixelated;pointer-events:none}.console-art{position:absolute;inset:0;z-index:3;display:block;width:100%;height:100%;image-rendering:pixelated;pointer-events:none}.cartridge-slot{position:absolute;z-index:2;pointer-events:none}.inserted-cartridge{left:50%;top:-155%;width:52%;opacity:0;transform:translate(-50%);transition:opacity .1s steps(1,end);pointer-events:none;z-index:2}.inserted-cartridge.present{opacity:1;pointer-events:auto}.inserted-cartridge .cartridge-art{object-fit:cover}.inserted-cartridge[data-cartridge=spatule] .cartridge-art{object-fit:contain;background:#762b43}.screen-window{position:absolute;z-index:4;overflow:hidden;background:transparent;pointer-events:none}.game-screen{width:73.1%;height:100%;margin:auto}.screen-window.crt-enabled:after{content:"";position:absolute;z-index:2;inset:0;pointer-events:none;background:repeating-linear-gradient(to bottom,transparent 0 2px,rgb(0 0 0 / 15%) 2px 3px),radial-gradient(ellipse at center,transparent 76%,rgb(0 0 0 / 12%) 88%,rgb(0 0 0 / 48%) 100%),linear-gradient(135deg,rgb(255 255 255 / 4%),transparent 30%);box-shadow:inset 0 0 18px 4px #00000042,inset 0 0 2px 1px #ffffff14}.game-screen canvas{width:100%;height:100%;display:block;image-rendering:pixelated;image-rendering:crisp-edges}.screen-overlay{position:absolute;inset:0;display:grid;place-items:center;color:#293c35;font-size:clamp(7px,.95vw,12px);font-weight:700;letter-spacing:.08em;text-align:center;pointer-events:none}.screen-overlay[hidden]{display:none}.screen-overlay.booting{background:#a8b49d;animation:screenFlash .22s steps(2,end) 3}.tabletop.entering-game .screen-window{transition:left .52s steps(14,end),top .52s steps(14,end),width .52s steps(14,end),height .52s steps(14,end)}.tabletop.entering-game:after{content:"";position:fixed;inset:0;z-index:39;pointer-events:none;background:repeating-conic-gradient(#071522 0 25%,transparent 0 50%) 0 0/32px 32px;animation:pixelLaunch .52s steps(8,end) both}.tabletop.immersive{background:#377eae;z-index:40}.tabletop.immersive .handheld{position:static;width:auto;height:auto;transform:none}.tabletop.immersive .console-art,.tabletop.immersive .cartridge-slot,.tabletop.immersive .console-controls,.tabletop.immersive .cartridge-list,.tabletop.immersive .hand-cursor,.tabletop.immersive~.hints{display:none}.tabletop.immersive .screen-window{position:fixed;inset:0!important;width:100%!important;height:100%!important;max-width:none;max-height:none;background:#377eae;pointer-events:auto}.tabletop.immersive .game-screen,.tabletop.immersive #game{width:100%!important;height:100%!important;max-width:none;max-height:none;margin:0}.tabletop.immersive .game-screen canvas{width:100%!important;height:100%!important;image-rendering:pixelated}.audio-unlock{position:fixed;inset:0;z-index:150;display:grid;place-content:center;gap:22px;text-align:center;background:#050805;color:#dce6b6;font-size:12px;letter-spacing:.15em;image-rendering:pixelated}.audio-unlock[hidden]{display:none}.audio-unlock button{padding:10px 14px;border:1px solid #dce6b6;color:#dce6b6;background:transparent;font:inherit;letter-spacing:.12em;touch-action:manipulation}.secret-code-overlay{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:24px;background:#101c2ae8;font-family:var(--game-font)}.secret-code-panel{width:min(92vw,520px);padding:clamp(22px,5vw,38px);border:3px solid #f2d2a1;background:#2d465e;color:#fff1c4;text-align:center;box-shadow:8px 8px #101c2a}.secret-code-panel h1{margin:0 0 18px;color:#fff2a8;font-size:clamp(22px,5vw,34px)}.secret-code-panel p{line-height:1.5}.secret-code-panel input{width:100%;min-height:52px;margin:10px 0;border:3px solid #f2d2a1;border-radius:0;background:#182536;color:#fff1c4;font:20px var(--game-font);letter-spacing:.08em;text-align:center;text-transform:uppercase}.secret-code-status{min-height:24px;color:#c8d9c2}.secret-code-panel button{min-height:48px;margin:5px;border:2px solid #f2d2a1;border-radius:0;background:#426477;color:#fff1c4;font:16px var(--game-font);padding:10px 14px;touch-action:manipulation}.secret-code-panel button[type=submit]{color:#fff2a8}.map-editor-code-dialog{position:fixed;inset:0;z-index:200000;display:grid;place-items:center;background:#101c2ae8;font-family:var(--game-font)}.map-editor-code-panel{width:min(92vw,440px);padding:30px;border:3px solid #f2d2a1;background:#2d465e;color:#fff1c4;text-align:center;box-shadow:8px 8px #101c2a}.map-editor-code-panel h1{margin:0 0 22px;color:#fff2a8;font-size:24px}.map-editor-code-panel label{display:block;margin-bottom:10px;font-size:14px}.map-editor-code-panel input{width:100%;min-height:52px;border:3px solid #f2d2a1;background:#182536;color:#fff1c4;font:24px var(--game-font);letter-spacing:.35em;text-align:center}.map-editor-code-panel p{min-height:20px;color:#c8d9c2;font-size:12px}.map-editor-code-actions{display:flex;justify-content:center;gap:10px}.map-editor-code-actions button{min-height:44px;border:2px solid #f2d2a1;background:#284a60;color:#fff1c4;font:14px var(--game-font);padding:8px 12px;cursor:pointer}.map-editor-code-actions button:first-child{color:#fff2a8}.map-editor-sidebar{position:fixed;z-index:100100;top:0;right:0;bottom:0;width:340px;display:flex;flex-direction:column;padding:12px;overflow:hidden;border-left:3px solid #f2d2a1;background:#172738f5;color:#fff1c4;font-family:var(--game-font);cursor:default}.map-editor-sidebar h1{margin:0 0 9px;color:#fff2a8;font-size:16px}.map-editor-sidebar button{border:1px solid #8ab2bf;background:#284a60;color:#d7f1ed;font:10px var(--game-font);cursor:pointer}.map-editor-toolbar{display:grid;grid-template-columns:1fr 54px 1fr;gap:5px;align-items:center;margin-bottom:8px}.map-editor-toolbar output{color:#fff2a8;font-size:11px;text-align:center}.map-editor-tabs{display:grid;grid-template-columns:repeat(2,1fr);gap:4px;margin-bottom:8px}.map-editor-tabs button.selected,.map-editor-card.selected{outline:2px solid #fff2a8;background:#426477;color:#fff7d6}.map-editor-palette{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;flex:1;overflow-y:auto;padding:3px;align-content:start}.map-editor-card{min-height:104px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:5px;text-align:center}.map-editor-preview{max-width:100px;max-height:68px;image-rendering:pixelated;image-rendering:crisp-edges;background:#253c52}.map-editor-card span{color:#fff1c4;font-size:10px;word-break:break-word}.map-editor-card small{color:#a9c5cb;font-size:9px}.map-editor-actions{display:grid;grid-template-columns:repeat(2,1fr);gap:5px;margin-top:8px}.map-editor-actions button{min-height:31px}.map-editor-status{min-height:44px;margin:8px 0 0;color:#c8d9c2;font-size:10px;line-height:1.35;white-space:pre-line}.map-editor-properties{margin:0 0 8px;padding:0 5px;color:#d7f1ed;font:10px var(--game-font)}.map-editor-properties:empty{display:none}.map-editor-properties h2{margin:0 0 4px;color:#fff2a8;font-size:11px}.map-editor-properties p{margin:3px 0}.map-editor-properties small{color:#a9c5cb;font-size:8px}.map-editor-properties label{display:grid;gap:3px;margin-top:6px;color:#fff2a8}.map-editor-properties select{width:100%;border:1px solid #8ab2bf;border-radius:0;background:#172738;color:#fff1c4;font:10px var(--game-font);padding:4px}body.map-editor-active .tabletop,body.map-editor-active .tabletop *{cursor:default!important}body.map-editor-active .game-screen canvas{cursor:crosshair!important}body.map-editor-actions button.active{outline:2px solid #fff2a8;background:#426477;color:#fff7d6}body.map-editor-active.map-editor-hand .game-screen canvas{cursor:grab!important}body.map-editor-active.map-editor-deleting .game-screen canvas{cursor:not-allowed!important}body.map-editor-active.map-editor-panning .game-screen canvas{cursor:grabbing!important}.map-editor-topbar{position:fixed;z-index:100110;top:0;left:0;right:0;height:42px;display:flex;align-items:center;gap:5px;padding:0 10px;border-bottom:2px solid #f2d2a1;background:#172738f5;color:#fff1c4;font:10px var(--game-font)}.map-editor-topbar strong{margin-right:8px;color:#fff2a8;letter-spacing:.08em}.map-editor-topbar button,.map-editor-bottom-actions button{min-height:26px;border:1px solid #8ab2bf;border-radius:0;background:#284a60;color:#d7f1ed;font:10px var(--game-font);padding:4px 7px;cursor:pointer}.map-editor-topbar button.active{outline:2px solid #fff2a8;background:#426477;color:#fff7d6}.map-editor-zoom{display:flex;align-items:center;gap:4px;margin-left:8px;padding-left:8px;border-left:1px solid #527488}.map-editor-zoom output{min-width:39px;color:#fff2a8;text-align:center}.map-editor-sidebar{top:42px;width:316px;padding:9px}.map-editor-sidebar h1{margin-bottom:7px}.map-editor-tabs{grid-template-columns:repeat(2,1fr)}.map-editor-palette{gap:5px}.map-editor-card{min-height:91px}.map-editor-bottom-actions{position:fixed;z-index:100110;left:12px;bottom:12px;display:flex;flex-wrap:wrap;gap:5px;max-width:calc(100vw - 350px)}.map-editor-bottom-actions button.save{border:2px solid #fff2a8;background:#426477;color:#fff7d6;font-weight:700}.map-editor-bottom-actions button:disabled{opacity:.5;cursor:wait}.map-editor-context{position:fixed;z-index:100120;width:min(260px,calc(100vw - 16px));padding:10px;border:2px solid #f2d2a1;background:#172738fa;box-shadow:5px 5px #101c2a;color:#fff1c4;font:10px var(--game-font)}.map-editor-context h2{margin:0 0 3px;color:#fff2a8;font-size:12px}.map-editor-context p{margin:0 0 8px;color:#a9c5cb}.map-editor-context-fields{display:grid;gap:6px}.map-editor-context label{display:grid;gap:3px;color:#fff2a8}.map-editor-context input,.map-editor-context select{width:100%;box-sizing:border-box;border:1px solid #8ab2bf;border-radius:0;background:#0e1d2a;color:#fff1c4;font:10px var(--game-font);padding:5px}.map-editor-context-actions{display:flex;justify-content:flex-end;gap:5px;margin-top:10px}.map-editor-context-actions button{border:1px solid #8ab2bf;border-radius:0;background:#284a60;color:#d7f1ed;font:10px var(--game-font);padding:5px 7px;cursor:pointer}.map-editor-context-actions button:last-child{color:#fff2a8}.map-editor-save-toast{position:fixed;z-index:100130;left:14px;bottom:52px;padding:8px 10px;border:2px solid #8ab2bf;background:#172738f5;color:#fff2a8;font:11px var(--game-font);box-shadow:3px 3px #101c2a}.map-editor-save-toast.success{border-color:#8fd3a9;color:#d8f5bb}.map-editor-save-toast.error{border-color:#ef7175;color:#ffd0c3}@keyframes screenFlash{50%{background:#d7d8b3}}@keyframes pixelLaunch{0%{opacity:0;clip-path:circle(0 at 50% 50%)}48%{opacity:.88;clip-path:circle(75% at 50% 50%)}to{opacity:0;clip-path:circle(100% at 50% 50%)}}.console-controls{position:absolute;inset:0;z-index:6;pointer-events:none}.control{position:absolute;padding:0;border:0;background:transparent;pointer-events:auto;touch-action:none}.hand-cursor{position:absolute;width:42px;aspect-ratio:406 / 501;overflow:hidden;z-index:30;pointer-events:none;image-rendering:pixelated;filter:drop-shadow(2px 3px 0 #3d292c)}.hand-cursor img{position:absolute;left:-83.74%;top:-92.02%;width:267.49%;height:289.02%;image-rendering:pixelated}.hand-cursor.grabbing{transform:rotate(-12deg)}.hand-cursor[hidden],.hand-cursor.outside{display:none}.hints{position:absolute;left:50%;bottom:10px;width:min(94%,900px);transform:translate(-50%);display:flex;justify-content:space-between;gap:16px;color:#e6d7b4;text-shadow:1px 2px #49301f;font-size:10px;line-height:1.3;pointer-events:none;opacity:.85}.loading-scene{position:fixed;inset:0;z-index:100;display:grid;place-items:center;background:#050805;color:#dce6b6;image-rendering:pixelated}.loading-scene.show-cartridge{background:#171d19}.loading-scene.flash:before{content:"";position:absolute;left:calc(50% - 4px);top:calc(50% - 4px);width:8px;height:8px;background:#dce6b6}.loading-scene[hidden]{display:none}.story-name-input{position:fixed;z-index:1000005;left:50%;top:71%;transform:translate(-50%,-50%);width:min(70vw,420px);box-sizing:border-box;border:3px solid #f2d2a1;border-radius:0;background:#172738;color:#fff2c4;padding:13px 16px;text-align:center;font:20px var(--game-font);outline:none}.story-name-input:focus{border-color:#fff2a8;box-shadow:0 0 0 3px #26394b}.boot-content{position:relative;display:flex;flex-direction:column;align-items:center;gap:clamp(20px,3.2vh,36px)}.loading-cartridge{position:relative;width:clamp(96px,14vw,130px);aspect-ratio:272 / 237;overflow:hidden;opacity:0}.loading-cartridge img{position:absolute;left:-257.35%;top:-137.97%;width:614.71%;height:396.62%;image-rendering:pixelated}.show-cartridge .loading-cartridge{opacity:1;animation:bootPulse .9s steps(2,end) infinite alternate}.loading-logo{position:relative;width:min(58vw,300px);aspect-ratio:1055 / 752;overflow:hidden;opacity:0}.loading-logo img{position:absolute;left:-22.75%;top:-17.82%;width:145.59%;height:136.17%;image-rendering:pixelated}.show-logo .loading-logo{opacity:1;animation:logoFlicker .4s steps(4,end) 1}.loading-label{font-size:10px;letter-spacing:.16em;opacity:0}.loading-track{width:128px;height:8px;margin-top:0;opacity:0;background:#253126;border:1px solid #7e906d}.show-activity .loading-label,.show-activity .loading-track{opacity:1}.loading-fill{display:block;width:0;height:100%;background:repeating-linear-gradient(90deg,#d9dfaa 0 9px,transparent 9px 12px)}.loading-skip{position:fixed;bottom:20px;font-size:9px;letter-spacing:.12em;color:#9eac8f;opacity:.76}.boot-particle{position:absolute;display:block;pointer-events:none;image-rendering:pixelated}.boot-particle[hidden]{display:none}.loading-scene.boot-exit{background:#050805}.loading-scene.boot-exit .boot-content{animation:screenOff .5s steps(8,end) forwards}@keyframes bootPulse{to{transform:translateY(-2px)}}@keyframes logoFlicker{0%,25%,55%{opacity:0}26%,56%,to{opacity:1}}@keyframes screenOff{to{transform:scaleY(.02);opacity:0}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(prefers-reduced-motion:reduce){.show-cartridge .loading-cartridge,.show-logo .loading-logo{animation:none}.loading-scene.boot-exit .boot-content{animation-duration:1ms}.tabletop,.loading-scene,.cartridge[data-state=INSERTING]{transition-duration:1ms}}.admin-editor-options{display:grid;gap:12px}.admin-editor-options button,.music-editor button{min-height:44px;border:2px solid #f2d2a1;background:#284a60;color:#fff1c4;font:14px var(--game-font);padding:8px 12px;cursor:pointer}.admin-editor-options button{outline:0;transition:transform 90ms ease,background-color 90ms ease,border-color 90ms ease,box-shadow 90ms ease,color 90ms ease}.admin-editor-options button.selected{transform:scale(1.025);border-color:#ffd166;background:#426477;color:#fff7d6;box-shadow:0 0 0 2px #8f552e,4px 4px #101c2a}.music-editor{position:fixed;inset:0;z-index:200000;display:grid;place-items:center;padding:16px;background:#101c2af2;font-family:var(--game-font);color:#fff1c4}.music-editor-panel{touch-action:pan-y;overscroll-behavior:contain;width:min(100%,880px);max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:3px solid #f2d2a1;background:#2d465e;box-shadow:8px 8px #101c2a}.music-editor h1{margin:0 0 12px;color:#fff2a8}.music-editor p{color:#c8d9c2}.music-editor-row{display:grid;grid-template-columns:minmax(170px,1fr) minmax(0,1.6fr) 48px;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #617484}.music-editor-row label{font-size:14px;line-height:1.5}.music-editor-row select{width:100%;min-height:44px;border:2px solid #f2d2a1;background:#182536;color:#fff1c4;font:14px var(--game-font);padding:8px}.music-editor-status{min-height:24px;overflow-wrap:anywhere}.music-editor .map-editor-code-actions{flex-wrap:wrap}.music-editor button:disabled{opacity:.5;cursor:wait}.music-editor button:focus-visible{outline:3px solid #fff2a8;outline-offset:3px}@media(max-width:600px){.music-editor-panel{padding:16px}.music-editor-row{grid-template-columns:minmax(0,1fr) 48px;gap:8px}.music-editor-row label{grid-column:1 / -1}}.map-editor-path-warning{margin:0 0 7px;color:#ffd27d;font:9px/1.35 var(--game-font);white-space:pre-line}.map-editor-path-warning:empty{display:none}.tileset-editor{position:fixed;inset:0;z-index:200000;display:grid;grid-template-rows:48px minmax(0,1fr);background:#101c2a;color:#fff1c4;font-family:var(--game-font)}.tileset-editor button,.tileset-editor select,.tileset-editor input{border:2px solid #8ab2bf;border-radius:0;background:#284a60;color:#fff1c4;font:12px var(--game-font);padding:7px 9px}.map-editor-topbar,.map-editor-sidebar,.map-editor-context{text-shadow:1px 1px 0 #090503}.map-editor-topbar,.map-editor-sidebar button,.map-editor-topbar button,.map-editor-bottom-actions button,.map-editor-context,.map-editor-context input,.map-editor-context select{font-size:12px}.map-editor-sidebar h1{font-size:19px}.map-editor-sidebar button,.map-editor-card span{font-size:12px}.map-editor-card small,.map-editor-status,.map-editor-path-warning{font-size:11px}body.map-editor-active{--map-editor-left:320px;--map-editor-right:320px;--map-editor-top:42px;--map-editor-bottom:52px}.map-editor-sidebar,.map-editor-inspector{position:fixed;z-index:100100;top:0;bottom:0;box-sizing:border-box;width:var(--map-editor-left);display:flex;flex-direction:column;overflow:hidden;padding:9px;background:#172738f5;color:#fff1c4;font-family:var(--game-font);cursor:default}.map-editor-sidebar{left:0;right:auto;border-right:3px solid #f2d2a1;border-left:0}.map-editor-inspector{left:auto;right:0;width:var(--map-editor-right);border-left:3px solid #f2d2a1}.map-editor-inspector h1{margin:0 0 7px;color:#fff2a8;font-size:19px}.map-editor-inspector-content{min-height:0;overflow:auto;color:#d7f1ed;font:12px/1.35 var(--game-font)}.map-editor-inspector-content>p{margin:0;color:#a9c5cb}.map-editor-topbar{left:var(--map-editor-left);right:var(--map-editor-right);height:var(--map-editor-top);box-sizing:border-box}.map-editor-bottom-actions{left:var(--map-editor-left);right:var(--map-editor-right);bottom:8px;max-width:none;justify-content:center}.map-editor-context{position:static;width:auto;box-sizing:border-box;padding:0;border:0;background:transparent;box-shadow:none}.map-editor-save-toast{left:calc(var(--map-editor-left) + 12px);bottom:calc(var(--map-editor-bottom) + 8px)}body.map-editor-active{--map-editor-top:64px;--map-editor-bottom:68px}.map-editor-topbar{gap:8px;padding:0 14px;font-size:18px}.map-editor-topbar button,.map-editor-bottom-actions button{min-height:46px;padding:8px 11px;font-size:18px}.map-editor-sidebar,.map-editor-inspector{padding:14px}.map-editor-sidebar h1,.map-editor-inspector h1{font-size:26px;margin-bottom:12px}.map-editor-sidebar button,.map-editor-card span,.map-editor-inspector-content,.map-editor-context,.map-editor-context input,.map-editor-context select{font-size:18px}.map-editor-card{min-height:132px;padding:8px;gap:6px}.map-editor-card small,.map-editor-status,.map-editor-path-warning{font-size:14px}.map-editor-tabs,.map-editor-palette{gap:8px}.map-editor-context-fields{gap:10px}.map-editor-context label{gap:6px;margin-top:10px}.map-editor-context input,.map-editor-context select{padding:8px}.map-editor-context-actions button{font-size:18px;padding:8px 10px}.audio-unlock{font-size:24px}.audio-unlock button{padding:20px 28px}.secret-code-panel{width:min(94vw,760px)}.secret-code-panel h1{font-size:clamp(32px,8vw,58px)}.secret-code-panel p{font-size:20px}.secret-code-panel input{min-height:76px;font-size:36px}.secret-code-panel button{min-height:72px;font-size:28px;padding:16px 22px}.map-editor-code-panel{width:min(94vw,680px);padding:42px}.map-editor-code-panel h1{font-size:42px}.map-editor-code-panel label{font-size:24px}.map-editor-code-panel input{min-height:76px;font-size:40px}.map-editor-code-panel p{min-height:36px;font-size:20px}.map-editor-code-actions button,.admin-editor-options button,.music-editor button{min-height:68px;font-size:24px;padding:14px 20px}.music-editor-panel{width:min(100%,1100px)}.music-editor h1{font-size:38px}.music-editor p,.music-editor-row label{font-size:24px}.music-editor-row{grid-template-columns:minmax(260px,1fr) minmax(0,1.6fr) 76px;gap:18px;padding:18px 0}.music-editor-row select{min-height:68px;font-size:24px;padding:12px}.tileset-editor{grid-template-rows:76px minmax(0,1fr)}.tileset-editor button,.tileset-editor select,.tileset-editor input{font-size:20px;padding:12px 14px}.tileset-editor-layout{grid-template-columns:minmax(0,1fr) 420px}.tileset-editor-config{padding:22px}.tileset-editor-config h1{font-size:28px}.tileset-editor-config p,.tileset-editor-config label,.tileset-editor-help{font-size:18px}.tileset-editor-config dt{font-size:16px}.tileset-editor-config dl div,.tileset-editor-help,.tileset-editor-hover{padding:14px}.tileset-editor-confirm section{width:min(100%,760px);padding:36px}.tileset-editor-confirm h2{font-size:32px}.tileset-editor button{cursor:pointer}.tileset-editor button.primary{border-color:#f2d2a1;color:#fff2a8;font-weight:700}.tileset-editor button.active{outline:2px solid #fff2a8;background:#426477}.tileset-editor button:disabled{opacity:.5;cursor:wait}.tileset-editor-toolbar{display:flex;align-items:center;gap:6px;padding:6px 10px;border-bottom:3px solid #f2d2a1;background:#172738;overflow-x:auto;white-space:nowrap}.tileset-editor-toolbar strong{margin-right:6px;color:#fff2a8;letter-spacing:.08em}.tileset-editor-toolbar label{display:flex;align-items:center;gap:5px;color:#a9c5cb;font-size:10px}.tileset-editor-toolbar output{min-width:42px;text-align:center;color:#fff2a8}.tileset-editor-toolbar [data-dirty]{color:#ffd27d;font-size:10px}.tileset-editor-layout{min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 300px}.tileset-editor-viewport{min-width:0;overflow:auto;padding:24px;background-color:#203343;background-image:linear-gradient(45deg,#263c4d 25%,transparent 25%),linear-gradient(-45deg,#263c4d 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#263c4d 75%),linear-gradient(-45deg,transparent 75%,#263c4d 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}.tileset-editor canvas{display:block;image-rendering:pixelated;image-rendering:crisp-edges;box-shadow:0 0 0 3px #f2d2a1,8px 8px #0a131d;touch-action:none;cursor:crosshair}.tileset-editor canvas.panning{cursor:grab}.tileset-editor-config{min-width:0;overflow-y:auto;padding:16px;border-left:3px solid #f2d2a1;background:#172738}.tileset-editor-config h1{margin:0 0 10px;color:#fff2a8;font-size:15px}.tileset-editor-config p{line-height:1.45}.tileset-editor-config dl{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.tileset-editor-config dl div{padding:7px;border:1px solid #527488;background:#0e1d2a}.tileset-editor-config dt{color:#a9c5cb;font-size:9px}.tileset-editor-config dd{margin:3px 0 0;color:#fff2a8}.tileset-editor-config label{display:grid;gap:5px;margin:11px 0;color:#fff2a8;font-size:10px}.tileset-editor-config input,.tileset-editor-config select{width:100%;box-sizing:border-box;background:#0e1d2a}.tileset-editor-config label.disabled{opacity:.45}.tileset-editor-help{padding:9px;border:1px solid #527488;color:#a9c5cb;font-size:10px}.tileset-editor-hover{min-height:54px;padding:9px;white-space:pre-line;background:#0e1d2a;color:#d7f1ed}.tileset-editor-status{min-height:32px;color:#8fd3a9;overflow-wrap:anywhere}.tileset-editor-status.error{color:#ff9b92}.tileset-editor-config .tileset-editor-walkable{display:flex;align-items:center;gap:8px}.tileset-editor-config .tileset-editor-walkable input{width:auto;margin:0;padding:0}.tileset-editor-config button.tileset-editor-remove{margin-top:8px;border-color:#ff5964;color:#ffd9dc}.tileset-editor-config button.tileset-editor-remove:disabled{opacity:.4}.tileset-editor-legend{display:flex;align-items:center;gap:8px;color:#ffd9dc}.tileset-editor-legend span{width:16px;height:16px;border:2px solid #ff2838;background:#ff26309e}.tileset-editor-confirm{position:fixed;inset:0;z-index:1;display:grid;place-items:center;padding:16px;background:#101c2add}.tileset-editor-confirm section{width:min(100%,480px);padding:24px;border:3px solid #f2d2a1;background:#2d465e;box-shadow:8px 8px #0a131d;text-align:center}.tileset-editor-confirm h2{color:#fff2a8;font-size:18px}.tileset-editor-confirm div{display:flex;justify-content:center;flex-wrap:wrap;gap:8px}@media(max-width:760px){.tileset-editor{grid-template-rows:auto minmax(0,1fr)}.tileset-editor-layout{grid-template-columns:1fr;grid-template-rows:minmax(260px,1fr) minmax(220px,42vh)}.tileset-editor-config{border-left:0;border-top:3px solid #f2d2a1}.tileset-editor-toolbar strong{width:100%}.tileset-editor-toolbar{flex-wrap:wrap}.tileset-editor-toolbar [data-dirty]{width:100%}}.tileset-editor-toolbar{gap:10px;padding:10px 14px}.tileset-editor-toolbar label,.tileset-editor-toolbar output,.tileset-editor-toolbar [data-dirty]{font-size:18px}.map-editor-sidebar-resize{position:fixed;z-index:100115;top:0;bottom:0;left:calc(var(--map-editor-left) - 6px);width:12px;cursor:col-resize;touch-action:none}.map-editor-sidebar-resize:after{content:"";position:absolute;top:50%;left:4px;width:4px;height:72px;transform:translateY(-50%);border:1px solid #f2d2a1;background:#426477;box-shadow:2px 2px #101c2a}.map-editor-palette{grid-template-columns:repeat(auto-fit,minmax(112px,1fr));align-content:start}.map-editor-card{min-width:0}.map-editor-preview{max-width:100%;height:auto;object-fit:contain;image-rendering:pixelated;image-rendering:crisp-edges}html,body,button,input,select,textarea{-webkit-font-smoothing:none;-moz-osx-font-smoothing:grayscale;font-smooth:never;text-rendering:optimizeSpeed}.game-screen canvas{image-rendering:pixelated;image-rendering:crisp-edges;-ms-interpolation-mode:nearest-neighbor}
