.lobby-topbar .credits.starlight-cycle {
  position: relative;
}

.credits-face {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 4px;
  right: var(--credits-face-right, 59px);
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  opacity: 0;
  pointer-events: none;
}

.credits-starlight-mark,
.credits-astrals > .credits-astrals-mark {
  flex: none;
  width: 28px;
  height: 28px;
}

.credits-face-amount {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--display);
  font-size: var(--type-readout);
  font-variant-numeric: tabular-nums;
  background-image: linear-gradient(180deg, var(--starlight-light) 0%, var(--starlight) 50%, var(--starlight-shade) 75%, var(--starlight) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 var(--starlight-deep)) drop-shadow(0 2px 1px rgba(0, 0, 0, 0.7));
}

.credits-astrals-amount {
  background-image: linear-gradient(180deg, #f2fdff 0%, var(--astral-top) 45%, var(--astral-mid) 80%, var(--astral-base) 100%);
  filter: drop-shadow(0 1px 0 var(--astral-deep)) drop-shadow(0 2px 1px rgba(0, 0, 0, 0.7));
}

.starlight-cycle > .credits-coin,
.starlight-cycle > .currency,
.show-starlight > .credits-starlight,
.show-astrals > .credits-astrals {
  transition: opacity 280ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.credits-face,
:is(.show-starlight, .show-astrals) > :is(.credits-coin, .currency) {
  transition: opacity 480ms cubic-bezier(0.55, 0, 0.8, 0.4);
}

:is(.show-starlight, .show-astrals) > :is(.credits-coin, .currency) {
  opacity: 0;
}

.show-starlight > .credits-starlight,
.show-astrals > .credits-astrals {
  opacity: 1;
}

.starlight-cycle.starlight-snap > :is(.credits-face, .credits-coin, .currency) {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .starlight-cycle > :is(.credits-face, .credits-coin, .currency) {
    transition: none;
  }
}
