:root {
  --paper: #ffffff;
  --ink: #111214;
  --soft: #6f7076;
  --line: rgba(17, 18, 20, .11);
  --accent: #ff5a1f;
  --tint: rgba(255, 90, 31, .07);
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Mona Sans Variable', system-ui, sans-serif;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.stage {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 16px;
}
.vote {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  border-radius: 999px;
}
.vote:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
/* the pill: GSAP moves this element; border and tint are CSS variables GSAP tweens */
.vote__body {
  --edge: var(--line);
  --wash: rgba(255, 90, 31, 0);
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(9px, 1.5vmin, 12px);
  height: clamp(52px, 9vmin, 62px);
  padding: 0 clamp(20px, 3.4vmin, 26px) 0 clamp(13px, 2.2vmin, 17px);
  border-radius: 999px;
  background: linear-gradient(var(--wash), var(--wash)), var(--paper);
  box-shadow:
    0 0 0 1px var(--edge),
    0 1px 0 rgba(255,255,255,.9) inset,
    0 12px 26px -16px rgba(17,18,20,.32),
    0 2px 5px -3px rgba(17,18,20,.18);
  will-change: transform;
}
.vote__mark {
  display: block;
  width: clamp(24px, 4.1vmin, 29px);
  height: clamp(28px, 4.8vmin, 34px);
  flex: none;
}
.vote__icon { display: block; width: 100%; height: 100%; overflow: visible; }
.vote__arrow {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.vote__fill { fill: var(--accent); }
.vote__trail {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linecap: round;
}
.vote__label {
  position: relative;
  display: grid;
  height: 1.2em;
  /* clipped only above and below: the word may open a hair wider than its slot while it settles */
  clip-path: inset(0 -24px);
  font-size: clamp(16px, 2.7vmin, 19px);
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.vote__word {
  grid-area: 1 / 1;
  display: block;
  white-space: nowrap;
  width: max-content;
  font-variation-settings: 'wght' 560, 'wdth' 100;
  will-change: transform;
}
.vote__rule {
  width: 1px;
  height: 1.1em;
  font-size: clamp(16px, 2.7vmin, 19px);
  background: var(--edge);
  flex: none;
}
.vote__count {
  display: flex;
  height: 1.2em;
  font-size: clamp(16px, 2.7vmin, 19px);
  line-height: 1.2;
  font-variation-settings: 'wght' 600, 'wdth' 92;
  color: var(--soft);
  clip-path: inset(0 -4px);
}
.vote__slot {
  position: relative;
  display: grid;
  height: 1.2em;
}
.vote__digit {
  grid-area: 1 / 1;
  display: block;
  width: max-content;
  will-change: transform;
}
