.reactor-track {
  width: clamp(32px, 4.5vw, 52px);
  flex: 1;
  min-height: 0;
  border-radius: 8px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 2px solid rgba(255, 56, 56, 0.25);
  background:
    linear-gradient(180deg, rgba(255,56,56,0.02) 0%, rgba(255,56,56,0.06) 100%),
    rgba(0, 0, 0, 0.3);
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.4), 0 2px 6px rgba(0,0,0,0.3);
}

.reactor-fill {
  background: linear-gradient(0deg, var(--red-dim), var(--red));
  box-shadow: 0 0 18px rgba(255, 56, 56, 0.4), 0 0 40px rgba(255, 56, 56, 0.15);
  will-change: transform;
  height: 100%;
  width: 100%;
  transform-origin: center bottom;
  border-radius: 4px 4px 6px 6px;
}

.reactor-fill.low {
  background: linear-gradient(0deg, #cc2200, #ff4400);
  box-shadow: 0 0 20px rgba(255, 68, 0, 0.5), 0 0 40px rgba(255, 68, 0, 0.2);
  animation: reactorPulse 0.4s ease-in-out infinite;
}

.reactor-fill.critical {
  background: linear-gradient(0deg, #ff0000, #ff3300);
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.6), 0 0 50px rgba(255, 0, 0, 0.25);
  animation: reactorPulse 0.2s ease-in-out infinite;
}

@keyframes reactorPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.6; }
}

#reactor-pct { color: var(--red); text-shadow: 0 0 8px rgba(255,56,56,0.4); }

/* Reactor status row with overcharge */
.reactor-status-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  min-height: 1.4em;
}

/* Reactor sector body — vertical layout */
#sector-r .sector-body {
  align-items: center;
}

#overcharge-indicator {
  font-size: 0.58rem;
  font-weight: bold;
  color: var(--yellow);
  text-shadow: 0 0 12px rgba(255, 204, 0, 0.6), 0 0 25px rgba(255, 204, 0, 0.3);
  letter-spacing: 1px;
  visibility: hidden;
  animation: overchargePulse 0.6s ease-in-out infinite;
  animation-play-state: paused;
}

@keyframes overchargePulse {
  0%, 100% { opacity: 1; text-shadow: 0 0 8px rgba(255, 204, 0, 0.5); }
  50%      { opacity: 0.7; text-shadow: 0 0 16px rgba(255, 204, 0, 0.8); }
}

