* { box-sizing: border-box; }
html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1a2430;
  color: #f6efe4;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  touch-action: none;
}
.game {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #243447;
}
#view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hud {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
  font-size: 13px;
  text-shadow: 0 1px 2px rgba(0,0,0,.55);
}
.hud-left, .hud-right, .hud-mid {
  display: flex;
  gap: 8px;
  align-items: center;
}
.hud span {
  background: rgba(18, 24, 32, .62);
  border-radius: 8px;
  padding: 6px 8px;
}
.combo { color: #ffd36a; }
.guns {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: flex;
  gap: 8px;
}
.guns button, .bomb-btn, .panel button {
  border: 0;
  border-radius: 10px;
  min-height: 44px;
  padding: 0 14px;
  font-size: 15px;
  background: #2a3544;
  color: #f6efe4;
}
.guns button.on { background: #ff8a3d; color: #2a1608; }
.guns button:disabled { opacity: .4; }
.bomb-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: #ff8a3d;
  color: #2a1608;
  font-weight: 700;
}
.bomb-btn:disabled { opacity: .45; }
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 16, 22, .55);
}
.overlay.hidden { display: none; }
.panel {
  width: min(420px, 86vw);
  background: #fff7ee;
  color: #24180f;
  border-radius: 12px;
  padding: 14px 16px 16px;
  text-align: center;
}
.kicker { margin: 0; color: #c45a18; font-size: 13px; }
.panel h2 { margin: 4px 0 8px; font-size: 22px; }
.desc { margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: #5b4636; }
#codexArt {
  width: 180px;
  height: 130px;
  border-radius: 10px;
  background: #d7c3a6;
  margin-bottom: 8px;
}
.panel button { background: #ff8a3d; color: #2a1608; font-weight: 700; width: 100%; }
