.goal-number {
  --goal-counter-ready: 1;
  position: relative;
  white-space: nowrap;
  font-kerning: none;
}

/* The real value always reserves the full width and height, even while rolling. */
.goal-value { display: inline-block; }
.goal-static-digit {
  display: inline-block;
  width: calc(1ch - .065em);
  text-align: center;
}
.goal-number.is-rolling .goal-value { opacity: 0; }
.goal-reels {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  font-variant-numeric: tabular-nums;
}
.goal-digit {
  width: calc(1ch - .065em);
  height: 1.12em;
  overflow: hidden;
  text-align: center;
}
.goal-ribbon, .goal-ribbon > span { display: block; }
.goal-ribbon > span { height: 1.12em; }

@media (max-width: 580px) {
  .goal-number { font-size: clamp(32px, 14.5vw, 80px); }
}

@media (prefers-reduced-motion: reduce) {
  .goal-number.is-rolling .goal-value { opacity: 1; }
  .goal-reels { display: none; }
}
