*{box-sizing:border-box;margin:0;padding:0}html,body,#root{height:100dvh;width:100%;background:#0b0d14;color:#f4f4f4;font-family:Courier New,Courier,monospace;overscroll-behavior:none;overflow:hidden;user-select:none;-webkit-user-select:none}.shell{display:flex;flex-direction:column;align-items:center;justify-content:space-between;height:100dvh;padding:6px 8px}.header{display:flex;width:100%;max-width:640px;justify-content:space-between;align-items:center;border-bottom:2px solid #ffcc00;padding-bottom:6px}.brand{color:#fc0;font-weight:700;letter-spacing:2px;font-size:16px}.sub{color:#8b9bb4;font-size:11px}.stage{flex:1;display:flex;align-items:center;justify-content:center;width:100%;position:relative;overflow:hidden}canvas.retro-canvas{image-rendering:pixelated;image-rendering:crisp-edges;border:3px solid #2b3348;background:#294fa6;touch-action:none}.overlay{position:absolute;background:#0b0d14f0;border:2px solid #ffcc00;padding:14px 18px;text-align:center;max-width:320px;box-shadow:0 4px 16px #000c}.btn{background:#fc0;color:#0b0d14;border:none;padding:9px 14px;font-family:inherit;font-weight:700;cursor:pointer;margin-top:10px;letter-spacing:1px}.btn:active{background:#e6b800}.btn-sm{margin-top:0;padding:5px 8px;font-size:11px}.touch-bar{display:flex;width:100%;max-width:520px;justify-content:space-between;align-items:center;gap:12px;padding:4px 6px;touch-action:none}.dpad-group{display:flex;align-items:center;gap:6px}.dpad-vertical{display:flex;flex-direction:column;gap:4px}.action-group{display:flex;align-items:center}.touch-btn{min-width:48px;min-height:40px;background:#1c2333;color:#fc0;border:2px solid #ffcc00;font-family:inherit;font-weight:700;font-size:15px;touch-action:none;cursor:pointer;display:flex;align-items:center;justify-content:center}.touch-btn:active{background:#fc0;color:#0b0d14}.touch-btn-fire{min-width:100px;min-height:52px;background:#801216;color:#f4f4f4;border:2px solid #ff3366;font-size:15px;letter-spacing:1px}.touch-btn-fire:active{background:#d9383a;color:#fff}
