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

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

.rp { position: relative; display: inline-flex; align-items: center; gap: 12px; height: 64px; padding: 0 22px 0 8px; border: 0; border-radius: 32px; background: var(--pill); color: var(--ink); font: inherit; text-align: left; cursor: pointer; outline: none; box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 #ffffff, 0 14px 24px -16px rgba(23, 23, 26, 0.4); transition: background-color 0.35s ease, box-shadow 0.35s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.rp:not([data-state="off"]) { background: color-mix(in srgb, var(--accent) 9%, #ffffff); box-shadow: inset 0 0 0 1.500px color-mix(in srgb, var(--accent) 40%, transparent), 0 14px 26px -16px color-mix(in srgb, var(--accent) 70%, #000000); }
.rp:focus-visible { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }

.rp__ico { position: relative; flex: none; display: block; width: 48px; height: 48px; border-radius: 50%; background: #ffffff; color: var(--soft); box-shadow: inset 0 0 0 1px var(--line), 0 2px 4px -2px rgba(23, 23, 26, 0.3); transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease; }
.rp:not([data-state="off"]) .rp__ico { background: var(--accent); color: #ffffff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 12px -6px color-mix(in srgb, var(--accent) 80%, #000000); }
.rp__ico svg { display: block; width: 26px; height: 26px; margin: 11px; fill: none; stroke: currentColor; stroke-width: 1.800; stroke-linecap: round; stroke-linejoin: round; }
/* the 1 of repeat one, in the middle of the loop */
.rp__ico b { position: absolute; left: 0; right: 0; top: 17px; font-size: 10.500px; line-height: 14px; font-weight: 800; text-align: center; transform: scale(0); }

.rp__text { display: grid; gap: 6px; }
.rp__label { display: block; height: 21px; overflow: hidden; font-size: 16px; line-height: 21px; font-weight: 700; font-stretch: 104%; letter-spacing: -0.008em; }
.rp__label span { display: block; white-space: nowrap; }
/* three short marks, one per state: the one that is on is longer */
.rp__marks { display: flex; align-items: center; gap: 4px; height: 4px; }
.rp__marks i { display: block; width: 10px; height: 4px; border-radius: 2px; background: rgba(23, 23, 26, 0.16); transition: background-color 0.3s ease; }
.rp__marks i.is-on { background: var(--ink); }
.rp:not([data-state="off"]) .rp__marks i.is-on { background: var(--accent); }
@media (hover: hover) { .rp[data-state="off"]:hover { background: #ebebe8; } }

.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; }
