/*
 * styles.css — 最小样式
 *
 * 原则：页面只负责「把 Canvas 铺满窗口」，所有视觉都在 Canvas 里画。
 * 不引入任何字体文件（用系统字体），不引入任何图片。
 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0a0709;
  /* 系统字体栈：Trebuchet MS 在 UI 描边文字里辨识度好 */
  font-family: "Trebuchet MS", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #f0e6d2;
  /* 禁止移动端长按选择与高亮 */
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  overscroll-behavior: none;
}

#game {
  display: block;
  width: 100vw;
  height: 100vh;
  /* Canvas 内自己处理指针；禁用浏览器手势（滚动/缩放） */
  touch-action: none;
  cursor: crosshair;
  /* 深色底，防止任何白闪 */
  background: #0a0709;
}

/* 移动端：横屏提示用（若竖屏，Canvas 会自动缩放，但横屏体验更佳） */
@media (max-width: 820px) {
  #game {
    cursor: default;
  }
}

.noscript {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0709;
  color: #f0e6d2;
  font-size: 18px;
  z-index: 10;
  padding: 24px;
  text-align: center;
}

/* 可选：DOM 摇杆容器（当前实现全部走 Canvas，此样式为渐进增强预留） */
.touch-stick {
  position: fixed;
  z-index: 5;
  pointer-events: auto;
  opacity: 0.9;
}
