/* Roll Counter (port of React Bits Counter, MIT + Commons Clause, (c) 2026 David Haz). See rollcounter.js. */
.rc { display: inline-flex; position: relative; font-variant-numeric: tabular-nums; line-height: 1; }
.rc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rc-face { display: inline-flex; align-items: flex-start; }
.rc-digit {
  display: inline-block; position: relative; overflow: hidden; height: 1.1em; width: 1ch; text-align: center;
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
          mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
  transition: opacity 300ms ease;
}
.rc-digit.rc-new { opacity: 0; }
.rc-strip { display: flex; flex-direction: column; transition: transform 900ms cubic-bezier(0.77, 0, 0.175, 1); }
.rc-strip > span { height: 1.1em; line-height: 1.1em; }
.rc-sym { display: inline-block; height: 1.1em; line-height: 1.1em; }

@media (prefers-reduced-motion: reduce) {
  .rc-strip { transition: none; }
  .rc-digit { -webkit-mask-image: none; mask-image: none; }
}
