/* ═══════════════════════════════════════════════════════════════════════════
   HUD — Score bar, ammo, hint, legend
   ═══════════════════════════════════════════════════════════════════════════ */

/* Score & HUD */
#hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  border-bottom: 2px solid var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 5000;
  font-family: "Press Start 2P", monospace;
  box-shadow: 0 0 20px var(--neon-cyan);
}
#hud .name {
  font-size: 13px;
  color: var(--neon-cyan);
  text-shadow:
    0 0 10px var(--neon-cyan),
    0 0 20px var(--neon-cyan);
  letter-spacing: 2px;
}
#score-display {
  font-size: 12px;
  color: var(--neon-yellow);
  text-shadow: 0 0 8px var(--neon-yellow);
}
#ammo-display {
  font-size: 11px;
  color: var(--neon-pink);
  text-shadow: 0 0 8px var(--neon-pink);
}
#hint {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  color: var(--neon-cyan);
  opacity: 0.6;
  z-index: 4000;
  animation: blink 1.5s infinite;
  white-space: nowrap;
  text-shadow: 0 0 8px var(--neon-cyan);
}
@keyframes blink {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.1;
  }
}

/* Legend */
#legend {
  position: fixed;
  bottom: 90px;
  right: 16px;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  z-index: 4000;
  line-height: 2;
  text-align: right;
  pointer-events: none;
  text-shadow:
    -1px -1px 0 rgba(0, 0, 0, 0.7),
    1px -1px 0 rgba(0, 0, 0, 0.7),
    -1px 1px 0 rgba(0, 0, 0, 0.7),
    1px 1px 0 rgba(0, 0, 0, 0.7),
    0 0 6px rgba(0, 0, 0, 0.9);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  margin: 3px 0;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
