/* ── Screens ─────────────────────────────────────────── */
.hidden {
  display: none !important;
}

/* ── Start Screen ────────────────────────────────────── */
.instructions {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

#start-btn {
  font-size: 1.3rem;
  padding: 0.8rem 3rem;
}

/* ── Stats Row ───────────────────────────────────────── */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
}

.stat-value {
  font-size: 1.3rem;
  font-weight: 700;
}

/* ── Canvas ──────────────────────────────────────────── */
#game-canvas {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 600px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

/* ── Mobile Controls ─────────────────────────────────── */
.mobile-controls {
  display: none;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.ctrl-btn {
  font-size: 1rem;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.ctrl-btn--fire {
  padding: 0.7rem 2rem;
}

@media (pointer: coarse) {
  .mobile-controls {
    display: flex;
  }
}

/* ── Game Over Screen ────────────────────────────────── */
.gameover-title {
  font-size: 1.8rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.final-score-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 1.5rem;
}

.final-score-value {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-accent);
}

.final-score-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
}

#play-again-btn {
  font-size: 1.1rem;
  padding: 0.7rem 2.5rem;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 480px) {
  .stats-row {
    gap: 1.2rem;
  }

  .final-score-value {
    font-size: 2.5rem;
  }

  .ctrl-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}
