/* 斗地主（浏览器 / PWA 版）全局样式
   - 全屏画布，禁止页面滚动、橡皮筋、双击缩放
   - 适配 iPhone 安全区（viewport-fit=cover + env） */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #06402a;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
  overscroll-behavior: none;
}

#game-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  touch-action: none;
  /* 注意：不要给 canvas 加 env(safe-area-inset-*) 内边距，
     否则绘制区缩进而导致触摸坐标（视口 clientX）与画面错位。
     刘海留白由 game.js 内部的 safeArea 逻辑处理。 */
}

/* wx.showToast 提示气泡 */
.wx-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
  z-index: 9999;
  pointer-events: none;
  max-width: 80vw;
  text-align: center;
  white-space: nowrap;
}
