/* 外壳：全屏画布，禁掉浏览器自带的滚动/缩放/长按菜单，让触摸事件完整交给游戏 */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #26201A;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  touch-action: none;
}
/* 多端适配（2026-10-16）：逻辑宽度封顶在垫片里做（≤480px）。手机竖屏
   画布铺满视口看不出差别；PC/平板画布居中，两侧露出深墨底色（与游戏
   深色画布同调，像一块竖屏舞台）。flex + margin:auto 双轴居中，
   窗口比画布矮/宽时都不偏移。 */
body {
  display: flex;
}
#stage {
  display: block;
  margin: auto;
  touch-action: none;
}

/* showModal 的 DOM 弹层（设置页清档二次确认等） */
.wx-modal-mask {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(20, 16, 12, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.wx-modal {
  width: 78%;
  max-width: 320px;
  background: #FBF7EF;
  border-radius: 14px;
  padding: 20px 18px 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}
.wx-modal-title {
  font-size: 16px;
  font-weight: 500;
  color: #2B2620;
  margin-bottom: 10px;
}
.wx-modal-body {
  font-size: 14px;
  line-height: 1.6;
  color: #5F5A52;
  margin-bottom: 18px;
  word-break: break-word;
}
.wx-modal-bar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.wx-modal-btn {
  border: 1px solid rgba(43, 38, 32, 0.18);
  background: #FFFFFF;
  color: #2B2620;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 8px;
}
.wx-modal-btn-primary {
  background: #2F6E69;
  border-color: #2F6E69;
  color: #FFFFFF;
}
