/* 메인 실적 숫자(results-count.js). 글꼴 크기·줄 높이는 custom.css의 .results__number 규칙을 함께 씀 */
.results__roll {
  float: left;
  white-space: nowrap;
}
.results__roll span {
  font: inherit; /* 사이트 공통 span 글꼴 대신 숫자 글꼴(Inter) 유지 */
}
/* 한 자리: 보이지 않는 최종 글자가 폭·높이를 정하고, 그 위에 0~9 띠가 굴러감.
   한 칸(1.25em)은 줄 높이보다 커서 칸 가운데를 원래 줄 가운데에 맞추고, 그 높이만큼만 보이게 자름 */
.results__roll-digit {
  position: relative;
  display: inline-block;
  /* 줄 높이 50px는 custom.css .results__number 값(모든 화면 폭에서 같음) */
  --roll-pad: calc((1.25em - 50px) / 2);
  clip-path: inset(calc(-1 * var(--roll-pad)) -30% calc(-1 * var(--roll-pad)) -30%);
}
.results__roll-ghost {
  visibility: hidden;
}
.results__roll-strip {
  position: absolute;
  left: -30%;
  right: -30%;
  top: calc(-1 * var(--roll-pad));
  display: flex;
  flex-direction: column;
  transition: transform 1.1s cubic-bezier(0.3, 0.75, 0.1, 1);
}
.results__roll-strip > span {
  display: block;
  height: 1.25em;
  line-height: 1.25em;
  text-align: center;
}
.results__roll-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
