/*
 * 弹珠弹射 · 样式
 *
 * 照 gem.css 那几条规矩：最外层容器不画边框、一条页面滚动条（不写 overflow-x: hidden）、
 * 触控目标 ≥ 56px、颜色走站点主题变量且都带 fallback（本页不引 sim/shared.css）。
 *
 * 一条刻意的例外：#strikeBoard 用 touch-action: none。拖动瞄准时手指在画布上划，
 * 如果不禁掉浏览器的默认手势，页面会跟着滚，根本瞄不准。代价是在画布上划不动页面，
 * 但这个页面本来就只有一屏，不需要滚。
 *
 * 欠账与 gem 一样：**画布里的颜色写死在 strike.js 的 PALETTE 里**，不在这份 css 里。
 */

.strike-workspace {
  display: block;
  padding: 0;
}

.strike-error {
  margin: 0 0 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: #ffd9d4;
  background: #3a1f1c;
  border: 1px solid #6b342e;
  border-radius: 8px;
}

.strike-hud {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 6px;
  align-items: center;
  padding: 8px 10px;
  margin-bottom: 8px;
  background: var(--surface, #1a1e29);
  border: 1px solid var(--line, #2a2e3c);
  border-radius: 10px;
}

.strike-hud-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.strike-hud-item span {
  font-size: 11px;
  color: var(--muted, #8b90a0);
}

.strike-hud-item strong {
  font-size: 18px;
  color: var(--text, #e6e8f0);
  font-variant-numeric: tabular-nums;
}

/*
 * ★ 宽高比必须等于 physics.js 里的 FEEL.field（现在 640x780）。
 *   这里是**JS 跑起来之前的兜底**：strike.js 一启动就会把 aspect-ratio
 *   按 FIELD 重写一遍，所以真正的唯一来源是 FEEL.field。
 *   曾经这里写着 640 / 960，而场地高已经改成 780 —— 位图被纵向拉伸 1.23 倍，
 *   圆画出来是椭圆，物理测试一条都不会红。别再手写这个数了。
 */
#strikeBoard {
  display: block;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  aspect-ratio: 640 / 780;
  background: var(--surface-2, #14181f);
  border: 1px solid var(--line, #2a2e3c);
  border-radius: 8px;
  touch-action: none;
}

.strike-info-line {
  margin: 6px 2px 8px;
  font-size: 13px;
  color: var(--muted, #8b90a0);
  min-height: 18px;
  text-align: center;
}

.strike-actions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}

.strike-actions button {
  min-height: 56px;
  padding: 8px 10px;
  font-size: 14px;
  color: var(--text, #e6e8f0);
  background: var(--surface, #1a1e29);
  border: 1px solid var(--line, #2a2e3c);
  border-radius: 10px;
  cursor: pointer;
}

.strike-actions button[data-on="0"] {
  color: var(--muted, #8b90a0);
  background: var(--surface-2, #14181f);
}

.strike-actions button:active {
  transform: translateY(1px);
}

/*
 * 自检那一行。原来这里还有两条说明文字（planck 版本、两种靶子的区别），
 * 按部署.md「只写现在按哪儿」那条删掉了 —— 那些是给开发看的，写进代码注释和
 * vendor/README.md，不摆在玩家脸上。
 */
#strikeSelfTest {
  margin: 8px 2px 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text, #e6e8f0);
  font-variant-numeric: tabular-nums;
}
