:root {
  --bg: #ffffff;
  --pill: #f3f3f1;
  --ink: #17171a;
  --soft: rgba(23, 23, 26, 0.5);
  --line: rgba(23, 23, 26, 0.1);
  --accent: #2a6df4;
  --down: #e5484d;
}

*, *::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 12px;
}

.th { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 64px; padding: 0 8px 0 22px; border-radius: 32px; background: var(--pill); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 #ffffff, 0 14px 24px -16px rgba(23, 23, 26, 0.4); }
.th__label { display: block; width: 158px; height: 21px; margin-right: 4px; overflow: hidden; font-size: 15.500px; line-height: 21px; font-weight: 650; font-stretch: 104%; letter-spacing: -0.006em; }
.th__label span { display: block; white-space: nowrap; }

.th__btn { position: relative; flex: none; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #ffffff; color: var(--ink); cursor: pointer; outline: none; box-shadow: inset 0 0 0 1px var(--line), 0 2px 4px -2px rgba(23, 23, 26, 0.3); transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.th__btn:focus-visible { box-shadow: 0 0 0 2px var(--pill), 0 0 0 4px var(--ink); }
@media (hover: hover) { .th__btn[aria-pressed="false"]:hover { box-shadow: inset 0 0 0 1px rgba(23, 23, 26, 0.3), 0 2px 4px -2px rgba(23, 23, 26, 0.3); } }
.th__btn--up[aria-pressed="true"] { background: var(--accent); color: #ffffff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 14px -8px var(--accent); }
.th__btn--down[aria-pressed="true"] { background: var(--down); color: #ffffff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 14px -8px var(--down); }
/* the thumb that was not chosen steps back */
.th[data-vote="up"] .th__btn--down, .th[data-vote="down"] .th__btn--up { opacity: 0.45; }
.th__ico { display: block; width: 24px; height: 24px; }
.th__ico svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.700; stroke-linecap: round; stroke-linejoin: round; transition: fill 0.3s ease; }
.th__btn--down .th__ico svg { transform: rotate(180deg); }
.th__btn[aria-pressed="true"] .th__ico svg { fill: rgba(255, 255, 255, 0.28); }
/* five short strokes that leave the thumb when it goes up */
.th__rays { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.th__rays i { position: absolute; left: -4px; top: -1px; width: 8px; height: 2px; border-radius: 1px; background: var(--accent); opacity: 0; }

.live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; transform-origin: 20% 15%; pointer-events: none; opacity: 0; fill: #17171a; stroke: #ffffff; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)); z-index: 6; }
