:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: linear-gradient(180deg, #90d0ff 0%, #d8f1ff 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.game-shell {
  position: relative;
  width: 1280px;
  height: 720px;
  border: 4px solid #2a5caa;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25);
  background: #78c0ff;
}

canvas {
  display: block;
  width: 1280px;
  height: 720px;
  background: linear-gradient(180deg, #9ad2ff 0%, #c7ecff 70%, #a1d9ff 100%);
}

.ui-panel {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.status .label {
  font-size: 14px;
  color: #26496b;
  font-weight: 700;
}

.status .value {
  min-width: 24px;
  color: #1c3f63;
  font-size: 16px;
  font-weight: 800;
  text-align: right;
}

.status input {
  width: 64px;
}

.damage-indicators {
  display: flex;
  gap: 8px;
}

.damage-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #2a5caa;
  background: #ff5757;
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
}

.damage-dot.lost {
  opacity: 0.28;
  transform: scale(0.72);
  background: #ffffff;
}

.restart-button {
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: #ff9548;
  color: white;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.restart-button:hover {
  transform: translateY(-1px);
}

.debug-panel {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: #26496b;
  font-size: 13px;
  font-weight: 700;
}

.debug-panel label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.debug-panel input {
  width: 68px;
  padding: 4px 6px;
  border: 1px solid #b7c8de;
  border-radius: 6px;
  font: inherit;
}

.debug-stats {
  min-width: 116px;
  color: #1c3f63;
  font-variant-numeric: tabular-nums;
}

.info-text {
  position: absolute;
  bottom: 18px;
  left: 18px;
  color: #1c3f63;
  font-size: 16px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.game-over-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 72px;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  pointer-events: none;
}
