html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.ars {
  position: relative;
  width: min(100%, 280px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ars__badge {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.08);
  color: #fff7e6;
  font-weight: 700;
  font-size: 11px;
}

.ars__ctrl {
  position: absolute;
  top: 0;
  right: 0;
  border: 0;
  border-radius: 4px;
  padding: 4px 8px;
  background: rgba(255, 247, 230, 0.12);
  color: #fff7e6;
  font-weight: 600;
  font-size: 10px;
  line-height: 1.4;
  cursor: pointer;
}

.ars__ctrl:focus-visible {
  outline: 2px solid #5b8cf8;
  outline-offset: 2px;
}

.ars__panel {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 20px 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  overflow: hidden;
}

.ars__sweep {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(91, 140, 248, 0.35) 50%, transparent 70%);
  will-change: transform, opacity;
}

.ars__digits {
  position: relative;
  display: flex;
}

.ars__col {
  position: relative;
  width: 22px;
  height: 40px;
  overflow: hidden;
}
.ars__col--comma {
  width: 10px;
}

.ars__track {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  height: 200%;
  transform: translateY(0%);
  will-change: transform;
}

.ars__d {
  height: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  color: #fff7e6;
}

.ars__unit {
  color: #fff7e6;
  font-weight: 700;
  font-size: 16px;
  opacity: 0.8;
}

@media (max-width: 340px) {
  .ars__panel {
    padding: 16px 20px;
  }
  .ars__col {
    width: 18px;
    height: 32px;
  }
  .ars__col--comma {
    width: 8px;
  }
  .ars__d {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ars__track {
    transition: none !important;
  }
}
