:root {
  --bg: #ffffff;
  --ink: #f6f7f5;
  --pill-hi: #262a27;
  --pill-lo: #121513;
  --accent: #35d07f;
}

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

/* ---- the pill: as wide as what is inside it ---- */
.avail {
  position: relative;
  max-width: calc(100vw - 24px);
  height: 60px;
  display: inline-flex;
  align-items: center;
  padding: 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(18, 21, 19, 0.3),
    0 12px 26px -12px rgba(18, 21, 19, 0.55),
    0 30px 50px -30px rgba(18, 21, 19, 0.4);
  transition: box-shadow 0.6s ease;
}
.avail.is-open {
  box-shadow:
    0 1px 1px rgba(18, 21, 19, 0.3),
    0 14px 30px -12px color-mix(in srgb, var(--accent) 55%, rgba(18, 21, 19, 0.4)),
    0 30px 54px -28px color-mix(in srgb, var(--accent) 50%, transparent);
}
.avail:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.avail__body {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  background: linear-gradient(180deg, var(--pill-hi), var(--pill-lo));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  z-index: -1;
}
.avail__wash { position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 26%, transparent), transparent 55%); opacity: 0; }
.avail__light {
  position: absolute;
  inset: 0;
  background: radial-gradient(130px 80px at var(--px, 50%) var(--py, 0%), rgba(255, 255, 255, 0.13), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.avail.is-hot .avail__light { opacity: 1; }

/* ---- the seat: the calendar, the ring of free time ---- */
.seat { position: relative; flex: none; width: 42px; height: 42px; margin-right: 12px; }
.seat__disc {
  position: absolute;
  inset: 0;
  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__disc svg { width: 23px; height: 23px; overflow: visible; }
.seat__disc rect, .seat__disc path { fill: none; stroke: #f6f7f5; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.seat__disc .seat__tick { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.seat__ring { position: absolute; left: -6px; top: -6px; width: 54px; height: 54px; overflow: visible; transform: rotate(-90deg); pointer-events: none; }
.seat__ring circle { fill: none; stroke-width: 2; stroke-linecap: round; }
.seat__track { stroke: rgba(255, 255, 255, 0.07); }
.seat__arc { stroke: var(--accent); stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }

/* ---- the words ---- */
.label { flex: none; width: 148px; 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; }

/* ---- the months, closed at rest ---- */
.months { flex: none; display: flex; gap: 5px; width: 0; height: 42px; margin-right: 3px; overflow: hidden; }
.month {
  flex: none;
  width: 46px;
  height: 42px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.month b { font-size: 12.5px; line-height: 13px; font-weight: 640; }
.month i { width: 28px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.month u { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

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