/* 頁面骨架與圖層。HUD／選單／觸控 UI 的樣式在 src/ui/ui.css */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #10151a;
  color: #e8eef2;
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft JhengHei", "PingFang TC", sans-serif;
  touch-action: none;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

#app {
  position: fixed;
  inset: 0;
}

#game {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.layer {
  position: absolute;
  inset: 0;
}

/* 觸控層接收整個畫面的觸控；HUD 與選單預設穿透，由各自的可互動元素開啟 pointer-events */
#touch { z-index: 1; }
#hud { z-index: 2; pointer-events: none; }
#menus { z-index: 3; pointer-events: none; }
