/* 猫生模拟器 —— 容器内单页;Chrome 61 兼容(不用 CSS 变量/aspect-ratio/gap)
   配色与 js/engine/ui.js COLORS 同步(v3 白底系,design/layout-v3.html):
   纯白全局底 #ffffff / 暖近黑正文 #35302b / 玫瑰前景 #d0566a / 桌面画框外浅暖灰 #eceae6 */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #eceae6;
  /* 触屏加固(收割模拟器经验):页面不滚动、不长按选中、无点按高亮 */
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
/* 手机端画布铺满;大屏时 CatScale 把画布收到 480×960 画框,这里负责居中 */
#game {
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
}
#game canvas {
  display: block;
}
/* 非阻断 toast 提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  padding: 8px 16px;
  font: 13px/1.4 sans-serif;
  color: #ffffff;
  background: rgba(53, 48, 43, 0.95);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
  z-index: 10;
}
.toast.show { opacity: 1; }
/* 屏上诊断面板(?debug=1;手机无 devtools) */
#dbgPanel {
  position: fixed;
  left: 4px;
  bottom: 4px;
  max-width: 90%;
  padding: 3px 6px;
  font: 11px/1.4 sans-serif;
  color: #4cd964;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 4px;
  white-space: pre-wrap;
  pointer-events: none;
  z-index: 9;
}
