*{box-sizing:border-box;margin:0;padding:0;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}html,body{width:100%;height:100%;overflow:hidden;background-color:#0d1117;display:flex;justify-content:center;align-items:center;touch-action:none;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}#game-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center}canvas{display:block;box-shadow:0 8px 32px #00000073}.debug-menu-drawer{position:fixed;top:0;right:0;width:380px;height:100vh;z-index:1000;display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;background:#0f172aeb;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border-left:1px solid #334155;color:#e2e8f0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:12px;line-height:1.35;transform:translate(0);transition:transform .18s ease;box-shadow:-8px 0 24px #00000059;scrollbar-width:thin;scrollbar-color:#475569 transparent}.debug-menu-drawer.debug-menu-hidden{transform:translate(100%);pointer-events:none}.debug-menu-drawer::-webkit-scrollbar{width:8px}.debug-menu-drawer::-webkit-scrollbar-thumb{background:#475569;border-radius:4px}.dbg-header{position:sticky;top:0;z-index:2;padding:10px 12px 8px;background:#0f172afa;border-bottom:1px solid #334155}.dbg-title-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.dbg-title{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-weight:700;font-size:13px;letter-spacing:.04em;color:#00f0ff}.dbg-badge{padding:2px 8px;border-radius:999px;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:#10b981;background:#10b9811f;border:1px solid rgba(16,185,129,.4);transition:background .18s ease,color .18s ease}.dbg-badge.dbg-badge-flash{color:#0f172a;background:#10b981;animation:dbg-badge-pulse .4s ease}@keyframes dbg-badge-pulse{0%{transform:scale(1)}50%{transform:scale(1.12)}to{transform:scale(1)}}.dbg-toolbar{display:flex;gap:6px;margin-bottom:8px}.dbg-btn{flex:1;padding:5px 8px;font:inherit;font-size:11px;font-weight:600;color:#e2e8f0;background:#1e293b;border:1px solid #475569;border-radius:4px;cursor:pointer;transition:background .12s ease,border-color .12s ease}.dbg-btn:hover{background:#334155;border-color:#64748b}.dbg-btn:active{background:#0f172a}.dbg-btn-reset:hover{border-color:#f59e0b;color:#fbbf24}.dbg-btn-export:hover{border-color:#00f0ff;color:#67e8f9}.dbg-telemetry{padding:6px 8px;background:#02061799;border:1px solid #1e293b;border-radius:4px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px}.dbg-tele-row{display:flex;gap:8px;padding:1px 0}.dbg-tele-label{flex:0 0 56px;color:#94a3b8}.dbg-tele-value{flex:1;color:#f8fafc;white-space:pre-wrap;word-break:break-word}.dbg-tele-value.dbg-dash-ready{color:#00f0ff}.dbg-tele-value.dbg-dash-cooldown{color:#f59e0b}.dbg-tele-value.dbg-dash-spent{color:#6e7681}.dbg-body{padding:6px 12px 24px}.dbg-section{margin-top:6px;border:1px solid #1e293b;border-radius:4px;background:#1e293b59}.dbg-section-title{padding:6px 8px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#cbd5e1;cursor:pointer;list-style:none;outline:none}.dbg-section-title::-webkit-details-marker{display:none}.dbg-section-title:before{content:"▸";display:inline-block;width:12px;color:#64748b;transition:transform .12s ease}.dbg-section[open]>.dbg-section-title:before{transform:rotate(90deg)}.dbg-section[open]>.dbg-section-title{border-bottom:1px solid #1e293b}.dbg-param{display:block;padding:5px 8px}.dbg-param+.dbg-param{border-top:1px solid rgba(51,65,85,.35)}.dbg-param-label{display:flex;align-items:center;justify-content:space-between;margin-bottom:3px}.dbg-param-name{color:#e2e8f0}.dbg-unit{padding:0 5px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:10px;color:#94a3b8;background:#1e293b;border-radius:3px}.dbg-param-controls{display:flex;align-items:center;gap:8px}.dbg-range{flex:1;height:16px;margin:0;background:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer}.dbg-range:focus{outline:none}.dbg-range::-webkit-slider-runnable-track{height:4px;background:#334155;border-radius:2px}.dbg-range::-webkit-slider-thumb{-webkit-appearance:none;width:12px;height:12px;margin-top:-4px;border-radius:50%;background:#00f0ff;border:none;box-shadow:0 0 0 2px #00f0ff33}.dbg-range::-moz-range-track{height:4px;background:#334155;border-radius:2px}.dbg-range::-moz-range-thumb{width:12px;height:12px;border-radius:50%;background:#00f0ff;border:none}.dbg-number{width:72px;padding:2px 4px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px;text-align:right;color:#f8fafc;background:#0f172a;border:1px solid #334155;border-radius:3px;user-select:text;-webkit-user-select:text}.dbg-number:focus{outline:none;border-color:#00f0ff}.dbg-checkbox-row{display:flex;align-items:center;gap:8px;cursor:pointer}.dbg-checkbox{width:14px;height:14px;accent-color:#10b981;cursor:pointer}.dbg-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1100;display:flex;align-items:center;justify-content:center;background:#02061799}.dbg-modal{display:flex;flex-direction:column;gap:8px;width:min(520px,90vw);padding:14px;background:#0f172a;border:1px solid #334155;border-radius:6px;color:#e2e8f0;font-size:12px}.dbg-modal-title{font-weight:600}.dbg-modal-textarea{width:100%;height:50vh;padding:8px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px;color:#e2e8f0;background:#020617;border:1px solid #334155;border-radius:4px;resize:vertical;user-select:text;-webkit-user-select:text}
