:root {
  --bg: #000000;
  --ink: #15171a;
  --soft: #6c7076;
  --pill-hi: #fbf9f4;
  --pill-lo: #e6e2d8;
  --accent: #d9953f;
  --done: #2f9d6a;
}

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

.bk {
  --tone: var(--accent);
  position: relative;
  width: min(304px, calc(100vw - 32px));
  height: 60px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 9px 0 8px;
  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 0 0 1px rgba(255, 255, 255, 0.1),
    0 18px 44px -14px rgba(255, 255, 255, 0.22);
  transition: box-shadow 0.7s ease;
}
.bk.is-on, .bk.is-done {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--tone) 40%, rgba(255, 255, 255, 0.1)),
    0 18px 48px -12px color-mix(in srgb, var(--tone) 75%, transparent),
    0 0 70px -20px color-mix(in srgb, var(--tone) 60%, transparent);
}
.bk.is-done { --tone: var(--done); }
.bk:focus-visible { outline: 2px solid #ffffff; outline-offset: 4px; }
.bk__body { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: linear-gradient(180deg, var(--pill-hi), var(--pill-lo)); z-index: -2; }
/* the wash: a tint that leaves the clock and floods the pill */
.bk__wash { position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 26%, transparent), color-mix(in srgb, var(--tone) 9%, transparent)); clip-path: circle(0px at 29px 30px); transition: background 0.5s ease; }
.bk__light { position: absolute; inset: 0; background: radial-gradient(130px 80px at var(--px, 50%) var(--py, 0%), rgba(255, 255, 255, 0.9), transparent 70%); opacity: 0; transition: opacity 0.3s ease; }
.bk.is-hot .bk__light { opacity: 1; }
.bk__edge {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0.2) 40%, rgba(21, 23, 26, 0.16));
  -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: 44px; height: 44px; border-radius: 50%; background: #ffffff; box-shadow: 0 1px 2px rgba(21, 23, 26, 0.16), 0 4px 10px -4px rgba(21, 23, 26, 0.25); display: grid; place-items: center; }
.seat svg { width: 34px; height: 34px; overflow: visible; }
.seat circle, .seat path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.seat__tick { stroke: var(--done); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }

.label { flex: 1; min-width: 0; display: grid; gap: 1px; }
.label__main { height: 20px; overflow: hidden; font-size: 15.5px; line-height: 20px; font-weight: 640; font-stretch: 104%; letter-spacing: -0.008em; }
.label__sub { height: 15px; overflow: hidden; font-size: 11.5px; line-height: 15px; font-weight: 500; color: var(--soft); }
.label span span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tag { flex: none; min-width: 60px; height: 42px; padding: 0 11px; overflow: hidden; border-radius: 99px; background: rgba(21, 23, 26, 0.07); box-shadow: inset 0 0 0 1px rgba(21, 23, 26, 0.06); font-size: 14px; line-height: 42px; font-weight: 660; text-align: center; white-space: nowrap; color: var(--soft); transition: color 0.4s ease, background-color 0.4s ease; }
.tag span { display: block; }
.bk.is-done .tag { color: var(--done); background: #ffffff; }

.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: #ffffff;
  stroke: #14151a;
  stroke-width: 1.4;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6));
  opacity: 0;
  visibility: hidden;
  z-index: 5;
}
.bk.is-busy .tag { color: color-mix(in srgb, var(--accent) 80%, #000000); background: #ffffff; }
.bk.is-busy .tag { color: color-mix(in srgb, var(--accent) 80%, #000000); background: #ffffff; }
.bk.is-busy .tag { color: color-mix(in srgb, var(--accent) 60%, #000000); background: #ffffff; }
.bk.is-low .tag { color: #c2571a; }
.bk.is-full { cursor: default; }
.bk.is-full .label__main, .bk.is-full .seat { opacity: 0.55; }
.seat__tray { stroke: var(--ink); stroke-width: 1.5; }
.seat .seat__loaf { fill: #f1dfbf; stroke: var(--ink); stroke-width: 1.4; }
.seat__score { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.seat .seat__tick { stroke: var(--done); }
