:root {
  --bg: #050510;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); overflow: hidden; overscroll-behavior: none; }
/* 禁止触屏在游戏画布上滚动/缩放/双指捏合，避免拖动摇杆时整页乱晃缩小 */
html, body {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}
#stage {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
}
canvas {
  /* 16:9 逻辑画布，具体 CSS 尺寸由 src/core/orientation.js 按窗口/旋转状态计算 */
  background: #000;
  display: block;
  touch-action: none; /* 关键：拖摇杆/连点不再触发页面缩放与滚动 */
  -webkit-user-select: none;
  user-select: none;
}
