:root {
  --bg: #ffffff;
  --ink: #f2f6f8;
  --pill-hi: #24292e;
  --pill-lo: #111417;
  --accent: #35c6f4;
  --ok: #3ddc97;
}

*, *::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;
  place-items: center;
  padding: 16px;
}

.fw {
  position: relative;
  width: min(296px, calc(100vw - 32px));
  height: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 0 9px;
  border: 0;
  border-radius: 99px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
  box-shadow:
    0 1px 1px rgba(17, 20, 23, 0.3),
    0 12px 26px -12px rgba(17, 20, 23, 0.55),
    0 30px 50px -30px rgba(17, 20, 23, 0.4);
  transition: box-shadow 0.6s ease;
}
.fw.is-done {
  box-shadow:
    0 1px 1px rgba(17, 20, 23, 0.3),
    0 14px 30px -12px color-mix(in srgb, var(--ok) 60%, rgba(17, 20, 23, 0.3)),
    0 30px 54px -28px color-mix(in srgb, var(--ok) 55%, transparent);
}
.fw:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.fw__body { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: linear-gradient(180deg, var(--pill-hi), var(--pill-lo)); z-index: -2; }
/* the progress: the pill fills from the left */
.fw__fill { position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--tone, var(--accent)) 16%, transparent), color-mix(in srgb, var(--tone, var(--accent)) 42%, transparent)); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 2px 0 0 0 color-mix(in srgb, var(--tone, var(--accent)) 90%, transparent); }
.fw.is-done .fw__fill { --tone: var(--ok); }
.fw__light { position: absolute; inset: 0; background: radial-gradient(120px 70px at var(--px, 50%) var(--py, 0%), rgba(255, 255, 255, 0.12), transparent 70%); opacity: 0; transition: opacity 0.3s ease; }
.fw.is-hot .fw__light { opacity: 1; }
.fw__edge {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05) 45%, rgba(255, 255, 255, 0.1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}

.seat { flex: none; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1); display: grid; place-items: center; }
.seat svg { width: 25px; height: 25px; overflow: visible; }
.seat rect, .seat path { fill: none; stroke: #f2f6f8; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.4s ease; }
.seat .seat__core { fill: var(--accent); stroke: none; transition: fill 0.4s ease; }
.seat .seat__tick { stroke: var(--ok); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.fw.is-busy .seat rect, .fw.is-busy .seat path { stroke: var(--accent); }
.fw.is-done .seat rect, .fw.is-done .seat path { stroke: var(--ok); }

.label { flex: 1; min-width: 0; height: 22px; overflow: hidden; font-size: 15.5px; line-height: 22px; font-weight: 600; font-stretch: 104%; letter-spacing: -0.005em; }
.label__word { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ver { flex: none; min-width: 56px; height: 40px; padding: 0 10px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); font-size: 13px; line-height: 40px; font-weight: 640; text-align: center; white-space: nowrap; transition: color 0.4s ease, background-color 0.4s ease; }
.ver span { display: block; }
.fw.is-busy .ver { color: var(--accent); }
.fw.is-done .ver { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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