/* The count, large, in the bottom bar over its words (count-tick.js). */
.count-big {
  position: absolute;
  transform: translate(-50%, -50%);
  max-width: 96vw;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 4px 6px 4px 16px;
  border-radius: 40px;
  background: var(--l3-bar, #0a0604);
  border: 2px solid transparent;
  color: var(--ink);
  font-weight: 800;
  font-size: clamp(15px, 2.2vh, 26px);
  white-space: nowrap;
  pointer-events: none;
}
.count-digit {
  min-width: 1.75em;
  height: 1.75em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2c1c14;
  font-size: 1.6em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.count-digit.pop {
  animation: count-pop 0.5s ease-out;
}
.count-big.last {
  border-color: var(--amber);
}
.count-big.last .count-digit {
  background: var(--amber);
  color: var(--amber-ink);
}
.count-big.last .count-digit.pop {
  animation: count-pop-hard 0.6s cubic-bezier(0.2, 1.6, 0.4, 1);
}
@keyframes count-pop {
  0% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes count-pop-hard {
  0% {
    transform: scale(1.45);
  }
  100% {
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .count-digit.pop,
  .count-big.last .count-digit.pop {
    animation: none;
  }
}
#app.in-game .count-big {
  display: none;
}
