/* ============================================
   HUD
   Bottom-of-screen status display
   ============================================ */

.pill {
  background: rgba(0, 0, 64, 0.2);
  border: 2px solid rgba(0, 0, 0, 0.08);
  padding: 8px 14px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  flex-grow: 1;
  justify-content: space-around;
}

/* Ammo display */
.ammo {
  display: flex;
  gap: 6px;
  align-items: center;
  position: relative;
}

.ammo-progress {
  position: relative;
  width: 120px;
  height: 20px;
  background: rgba(0, 64, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  overflow: hidden;
}

.ammo-progress-fill {
  height: 100%;
  width: 100%; /* Always full width, use scaleX to show progress */
  background: linear-gradient(90deg, var(--accent), #4affb8);
  box-shadow: 0 0 8px var(--accent);
  transform-origin: left center;
  transition: transform 1s ease;
  will-change: transform;
}

.ammo-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
  font-weight: 700;
  color: var(--fg);
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

.ammo-empty {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 600;
}

/* Fixed-width value displays */
.fixed {
  display: inline-block;
  text-align: right;
}

.levelVal {
  width: 2ch;
}

.citiesVal {
  width: 2ch;
}

.scoreVal {
  width: 10ch;
}

.tips {
  opacity: 0.85;
}

/* Enemy counter */
.enemyCounter {
  gap: 8px;
  display: none;
}

.enemyCounter span {
  font-weight: 700;
}

.enemyCounter span:first-child {
  margin-right: 2px;
}

.enemyCounter span:not(:first-child) {
  margin-left: 2px;
}

/* Cash display */
.cash {
  gap: 10px;
}

.cash .label {
  opacity: 0.9;
  letter-spacing: 0.4px;
}

.cash .cashVal {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(39, 240, 156, 0.5), 0 0 18px rgba(39, 240, 156, 0.35);
}

.cash.negative .cashVal {
  color: var(--warning);
  text-shadow: 0 0 10px rgba(255, 107, 107, 0.5), 0 0 18px rgba(255, 107, 107, 0.35);
}

/* Testing mode indicator */
.testingIndicator {
  background: rgba(255, 165, 0, 0.3);
  border-color: rgba(255, 165, 0, 0.5);
  color: #ffa500;
  font-weight: 700;
}
