:root {
  --bg: #ffffff;
  --pill: #f2f1ed;
  --ink: #15161b;
  --soft: rgba(21, 22, 27, 0.56);
  --accent: #2f6bff;
  --paid: #17a05f;
}

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

/* --tone is the meter's colour: blue while choosing, green once paid */
.pk {
  --tone: var(--accent);
  display: flex;
  align-items: center;
  gap: 5px;
  width: min(334px, 100%);
  height: 66px;
  padding: 0 8px 0 9px;
  border-radius: 33px;
  background: var(--pill);
  box-shadow: inset 0 0 0 1px rgba(21, 22, 27, 0.06), 0 18px 34px -22px color-mix(in srgb, var(--tone) 75%, transparent);
}
.pk__roll { display: block; overflow: hidden; }
.pk__roll > span { display: block; }

.pk__dial { flex: none; width: 46px; height: 46px; margin-right: 2px; border-radius: 50%; background: #ffffff; box-shadow: 0 2px 6px -2px rgba(21, 22, 27, 0.22); }
.pk__dial svg { display: block; width: 100%; height: 100%; fill: none; overflow: visible; }
.pk__track { stroke: rgba(21, 22, 27, 0.08); stroke-width: 3; }
.pk__arc { stroke: var(--tone); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0 2; }
.pk__p { stroke: var(--tone); stroke-width: 2.600; stroke-linecap: round; stroke-linejoin: round; }

.pk__step { flex: none; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: #ffffff; color: var(--ink); box-shadow: 0 0 0 1px rgba(21, 22, 27, 0.08); cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.pk__step svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.900; stroke-linecap: round; }
.pk__step[disabled] { cursor: default; color: rgba(21, 22, 27, 0.28); }
.pk__step:focus-visible { box-shadow: 0 0 0 2px var(--tone); }

.pk__mid { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; white-space: nowrap; }
.pk__dur { height: 21px; font-size: 16px; line-height: 21px; font-weight: 400; letter-spacing: -0.02em; font-variation-settings: "wght" 680, "wdth" 94; }
.pk__until { height: 15px; font-size: 11px; line-height: 15px; font-weight: 600; color: var(--soft); }

.pk__pay {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 108px;
  height: 50px;
  margin-left: 3px;
  padding: 0;
  border: 0;
  border-radius: 25px;
  background: var(--ink);
  color: #ffffff;
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.pk__pay[aria-disabled="true"] { cursor: default; }
.pk__wash { position: absolute; inset: 0; z-index: -1; background: var(--paid); clip-path: circle(0 at 50% 50%); }
.pk__tick { flex: none; width: 0; height: 16px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2.200; stroke-linecap: round; stroke-linejoin: round; }
.pk__tick path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.pk__label { height: 20px; font-size: 14px; line-height: 20px; font-weight: 680; font-stretch: 102%; white-space: nowrap; }
.pk__pay:focus-visible { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--tone); }

.ghost {
  position: fixed;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  fill: #15161b;
  stroke: #ffffff;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(21, 22, 27, 0.3));
  opacity: 0;
  visibility: hidden;
  z-index: 5;
}

@media (hover: hover) {
  .pk__step:not([disabled]):hover { background: var(--ink); color: #ffffff; }
  .pk__pay:not([aria-disabled="true"]):hover { background: #2b2d36; }
}
@media (max-width: 350px) {
  .pk__pay { width: 96px; }
  .pk__label { font-size: 13px; }
}
