/*
 * What a card is short of energy leads its foot (the owner, 2026-12-04:
 * players missed "202 more energy needed"). The gap is a big number in the
 * energy color, its words beside it, and a slim bar under both filling
 * toward the price as energy comes in. The bar eases once and never pulses.
 */
.upgrade__need-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 0.375rem;
  row-gap: 0.3rem;
}

.upgrade__need {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1;
  color: var(--node);
  font-variant-numeric: tabular-nums;
}

.upgrade__need-label {
  font-size: var(--text-xs);
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
}

.upgrade__meter {
  grid-column: 1 / -1;
  height: 3px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--node) 16%, transparent);
  overflow: hidden;
}

.upgrade__meter-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--node);
  transition: width 400ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .upgrade__meter-fill {
    transition: none;
  }
}

:root[data-motion='reduced'] .upgrade__meter-fill {
  transition: none;
}
