:root {
  --bg: #ffffff;
  --pill: #f1f1f3;
  --ink: #17181c;
  --soft: rgba(23, 24, 28, 0.5);
  --accent: #4f63f5;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 10px 14px;
}

.ur { position: relative; display: flex; align-items: center; gap: 6px; width: min(284px, 100%); height: 60px; padding: 0 8px; border-radius: 30px; background: var(--pill); box-shadow: inset 0 0 0 1px rgba(23, 24, 28, 0.05); -webkit-user-select: none; user-select: none; }
.ur__roll { display: block; overflow: hidden; }
.ur__roll > span { display: block; white-space: nowrap; }

.ur__btn { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #ffffff; color: var(--ink); cursor: pointer; outline: none; touch-action: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; box-shadow: 0 1px 2px rgba(23, 24, 28, 0.12), 0 6px 12px -6px rgba(23, 24, 28, 0.25); transition: opacity 0.25s, box-shadow 0.25s; }
.ur__btn:focus-visible { box-shadow: 0 0 0 2px var(--pill), 0 0 0 4px var(--ink); }
.ur__btn[aria-disabled="true"] { opacity: 0.4; box-shadow: none; cursor: default; }
.ur__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.ur__count { flex: none; width: 18px; height: 18px; line-height: 18px; text-align: center; font-size: 11.500px; font-weight: 720; color: var(--soft); }
.ur__label { flex: 1 1 auto; min-width: 0; height: 22px; line-height: 22px; text-align: center; font-size: 15px; font-weight: 700; font-stretch: 102%; letter-spacing: -0.005em; }

/* the step that changes side: a small chip that hops over the label */
.ur__hop { position: absolute; left: 0; top: 21px; width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: #ffffff; font-size: 11px; line-height: 18px; font-weight: 760; text-align: center; pointer-events: none; }

.ur__say { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; pointer-events: none; opacity: 0; fill: var(--ink); stroke: #ffffff; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgba(23, 24, 28, 0.3)); z-index: 5; }
