:root {
  --bg: #ffffff;
  --rest: #f2f1ed;
  --ink: #16171b;
  --soft: rgba(22, 23, 27, 0.56);
  --accent: #ffc531;
  --go: #16171b;
}

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

/* --fill, --text and --glow are tweened by the script: grey at rest, amber while waiting, ink when it is your turn */
.rh {
  --fill: var(--rest);
  --text: var(--ink);
  --glow: rgba(22, 23, 27, 0);
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 176px;
  max-width: 100%;
  height: 60px;
  padding: 0 8px;
  border: 0;
  border-radius: 30px;
  background: var(--fill);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(22, 23, 27, 0.06), 0 16px 30px -18px var(--glow);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.rh:focus-visible { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }

.rh__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.rh__ring rect { fill: none; stroke: var(--accent); stroke-width: 2.500; stroke-linecap: round; stroke-dasharray: 0.22 1; stroke-dashoffset: 0.22; opacity: 0; }

.rh__disc { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #ffffff; box-shadow: 0 2px 6px -2px rgba(22, 23, 27, 0.25), inset 0 0 0 1px rgba(22, 23, 27, 0.04); }
/* the wave turns this wrapper round the wrist, not the svg itself */
.rh__wave { display: block; width: 26px; height: 26px; }
.rh__hand { display: block; width: 26px; height: 26px; overflow: visible; }
.rh__palm { fill: var(--hand, #16171b); }
.rh__fingers { fill: none; stroke: var(--hand, #16171b); stroke-width: 2.900; stroke-linecap: round; }

.rh__text { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; height: 40px; }
.rh__roll { display: block; overflow: hidden; }
.rh__roll > span { display: block; white-space: nowrap; }
.rh__label { height: 21px; line-height: 21px; font-size: 15.500px; font-weight: 720; font-stretch: 104%; letter-spacing: -0.005em; }
.rh__sub { height: 0; line-height: 16px; font-size: 11.500px; font-weight: 640; opacity: 0.66; }

.rh__queue { flex: none; display: flex; align-items: center; height: 30px; margin-right: 8px; width: 0; }
.rh__queue i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin-left: -8px; border-radius: 50%; font-style: normal; font-size: 10px; font-weight: 760; letter-spacing: 0.02em; color: #16171b; box-shadow: 0 0 0 2px var(--fill); }
.rh__queue i:first-child { margin-left: 0; }

.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(22, 23, 27, 0.3)); z-index: 5; }
