*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--bg: #05070e;--cabinet: #0c1020;--border: #1e2a4a;--glow: rgba(56, 246, 255, .25);--text: #d6e4ff;--muted: #7b8db5;--accent: #38f6ff}body{min-height:100vh;min-height:100dvh;height:100dvh;background:radial-gradient(circle at 50% 25%,#111833 0%,var(--bg) 70%);color:var(--text);font-family:Courier New,Courier,monospace;display:flex;align-items:center;justify-content:center;padding:12px;overflow:hidden;user-select:none;-webkit-user-select:none;touch-action:manipulation}.arcade-shell{display:flex;flex-direction:column;align-items:center;gap:12px;max-width:100%}.cabinet-frame{position:relative;background:#000;border:2px solid var(--border);border-radius:10px;box-shadow:0 0 32px var(--glow),inset 0 0 24px #000000e6;overflow:hidden;line-height:0}#game-canvas{display:block;width:min(92vw,calc(84vh * 640 / 720));height:auto;aspect-ratio:640 / 720;image-rendering:pixelated;image-rendering:crisp-edges}.scanlines{position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(to bottom,#fff0 0px 2px,#00000029 3px 4px)}.controls-bar{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;font-size:13px;color:var(--muted);letter-spacing:.04em}kbd{display:inline-block;padding:2px 6px;border:1px solid var(--border);border-radius:4px;background:var(--cabinet);color:var(--accent);font-family:inherit;font-size:12px}.touch-controls{display:none;width:100%;max-width:560px;touch-action:none;flex-direction:column;gap:10px;padding:10px 14px max(12px,env(safe-area-inset-bottom));border-radius:12px;background:#0c1020d1;border:1px solid var(--border);box-shadow:0 0 20px #38f6ff14}body.touch-enabled .touch-controls{display:flex}body.touch-enabled .controls-bar{display:none}body.touch-enabled .arcade-shell{gap:10px}body.touch-enabled #game-canvas{width:min(94vw,calc((100dvh - 185px) * 640 / 720));touch-action:none}.touch-top-bar{display:flex;justify-content:center;gap:10px}.touch-util-btn{pointer-events:auto;touch-action:none;background:#0c1020d9;color:var(--text);border:1px solid rgba(56,246,255,.35);border-radius:999px;padding:5px 14px;font-family:inherit;font-size:11px;font-weight:700;letter-spacing:.08em}.touch-util-btn.pressed{background:#38f6ff4d;border-color:var(--accent)}.touch-pad-row{display:flex;justify-content:space-between;align-items:center;width:100%;gap:12px}.move-pad{pointer-events:auto;touch-action:none;display:flex;gap:10px}.move-btn{touch-action:none;width:64px;height:54px;background:#121a34c7;color:var(--text);border:1.5px solid rgba(56,246,255,.45);border-radius:12px;font-size:20px;font-weight:900;display:flex;align-items:center;justify-content:center}.move-btn.pressed{background:#38f6ff61;border-color:var(--accent);transform:scale(.94)}.action-pad{pointer-events:auto;touch-action:none;display:flex;align-items:center;gap:12px}.act-btn{touch-action:none;width:64px;height:64px;border-radius:50%;border:2px solid rgba(255,255,255,.35);background:#121a34d1;color:#fff;font-family:inherit;display:flex;flex-direction:column;align-items:center;justify-content:center}.act-key{font-size:13px;font-weight:900;line-height:1.1}.act-sub{font-size:8px;font-weight:700;opacity:.85;letter-spacing:.05em}.act-fire{border-color:#38f6ffc7}.act-burst{border-color:#ffd166d1;width:56px;height:56px}.act-fire.pressed{background:#38f6ff73;transform:scale(.92)}.act-burst.pressed{background:#ffd1667a;transform:scale(.92)}@media(max-width:520px){body{padding:6px}.touch-controls{padding:8px 10px max(10px,env(safe-area-inset-bottom));gap:8px}.move-btn{width:56px;height:48px;font-size:18px}.act-btn{width:58px;height:58px}.act-burst{width:50px;height:50px}}@media(orientation:landscape)and (max-height:560px){body{padding:6px 10px}body.touch-enabled .arcade-shell{gap:0}body.touch-enabled #game-canvas{width:auto;height:calc(100dvh - 16px);max-width:calc(100vw - 280px)}body.touch-enabled .touch-controls{position:fixed;inset:0;max-width:none;background:transparent;border:none;box-shadow:none;border-radius:0;pointer-events:none;justify-content:space-between;padding:8px max(12px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));z-index:10}.touch-top-bar{justify-content:space-between}.move-btn{width:52px;height:48px}.act-btn{width:56px;height:56px}.act-burst{width:48px;height:48px}}
