:root{font-family:Inter,system-ui,sans-serif;background:#050a0e;color:#e4f7ff;color-scheme:dark}*{box-sizing:border-box}html,body,#app{width:100%;height:100%;margin:0;overflow:hidden}body{background:radial-gradient(circle at 50% 0,#173448 0,#071016 42%,#030608)}canvas{display:block;margin:auto;max-width:100%;max-height:100%;touch-action:none}button{font:inherit}.developer-launch{position:fixed;right:10px;bottom:8px;z-index:1000;border:1px solid #f0c667;border-radius:8px;padding:8px 12px;background:#152630;color:#ffe4a0;font:700 11px Arial;cursor:pointer}.developer-dialog{box-sizing:border-box;width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:1px solid #5894a5;border-radius:16px;background:#10232e;color:#e5f7ff;font:15px Arial;box-shadow:0 24px 80px #0009}.developer-dialog::backdrop{background:#02090ddd}.developer-dialog h2{margin:0 0 12px;font-size:22px}.developer-dialog p{color:#a8c5d2;line-height:1.5}.developer-dialog label{display:block;margin:20px 0 12px}.developer-dialog select,.developer-dialog button{box-sizing:border-box;display:block;width:100%;margin-top:10px;padding:12px;border:1px solid #478498;border-radius:8px;background:#173846;color:#effcff;font:700 14px Arial;cursor:pointer}.developer-dialog button:focus-visible,.developer-launch:focus-visible{outline:3px solid #ffd97d;outline-offset:3px}.debug-editor{position:fixed;inset:0;z-index:100;overflow:auto;padding:22px;color:#e5f7ff;background:#071016;font:14px Arial}.debug-editor h1{margin:0 0 8px;color:#ffdc83;font-size:24px}.debug-editor p{margin:0 0 20px;color:#94b5c4;line-height:1.4}.debug-layout{display:grid;grid-template-columns:300px minmax(0,720px);gap:28px;justify-content:center;align-items:start}.debug-controls h2{font-size:13px;color:#92c9dc;margin:16px 0 8px}.debug-options{display:grid;grid-template-columns:1fr 1fr;gap:6px}.debug-editor button{border:1px solid #345f72;border-radius:6px;background:#102936;color:#d9f3ff;padding:10px 8px;cursor:pointer;font:700 12px Arial}.debug-editor button:hover{background:#205169}.debug-editor button[aria-pressed=true]{border-color:#ffda76;color:#ffda76;background:#23404b}.debug-controls>button{margin:0 6px 6px 0}.debug-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:3px;max-width:720px;width:100%;padding:8px;border:1px solid #448097;border-radius:12px;background:#0b1b25}.debug-grid .debug-cell{aspect-ratio:1;padding:0;border-radius:3px;overflow:hidden;position:relative}.debug-sprite{display:block;width:100%;height:100%;background-repeat:no-repeat;background-position:center}.debug-grid .special{border-color:#92e6fa;background:#173e51}.debug-editor footer{display:flex;justify-content:center;gap:12px;margin:24px 0 10px}.debug-editor footer button{padding:14px 22px;font-size:14px}.debug-editor button:focus-visible{outline:2px solid #ffdc83;outline-offset:2px}@media(max-width:760px){.debug-editor{padding:16px 10px}.debug-layout{grid-template-columns:minmax(0,1fr);gap:16px}.debug-grid{grid-row:1;gap:2px;padding:5px}.debug-options{grid-template-columns:repeat(3,minmax(0,1fr))}.debug-editor button{font-size:10px;min-height:34px}.debug-grid .debug-cell{min-height:0}.debug-editor footer{position:sticky;bottom:-16px;background:#071016ee;padding:12px 0}.debug-editor footer button{font-size:12px;padding:12px}}.help-launch{position:fixed;right:8px;top:7px;z-index:90;padding:7px 10px;border:1px solid #639bae;border-radius:8px;background:#102b37;color:#e4f7ff;cursor:pointer;font:700 12px Arial;min-height:32px}.help-dialog{width:min(600px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:24px;border:1px solid #639bae;border-radius:14px;background:#10232e;color:#e4f7ff;line-height:1.55}.help-dialog::backdrop{background:#02090ddd}.help-dialog h2{margin-top:0}.help-dialog h3{color:#69ddff;margin-bottom:4px}.help-dialog p{margin-top:0}.help-dialog button{padding:12px 20px;min-height:44px;border:1px solid #69ddff;border-radius:8px;background:#174052;color:#fff;cursor:pointer}.help-launch:focus-visible,.help-dialog button:focus-visible{outline:3px solid #ffd84a;outline-offset:3px}
