:root {
  --bg: #ffffff;
  --ink: #17181c;
  --soft: rgba(23, 24, 28, 0.58);
  --line: rgba(23, 24, 28, 0.1);
  --accent: #5753d6;
  --short: #d98a0b;
  --tone: var(--accent);
  --dial: min(204px, 60vw, calc(100vh - 196px));
}

*, *::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: 8px 12px;
}
.live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.sl { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 10px; width: min(316px, 100%); padding: 16px 16px 14px; border-radius: 26px; background: #ffffff; box-shadow: inset 0 0 0 1.500px var(--line), 0 30px 44px -30px rgba(23, 24, 28, 0.4); }
.sl.is-short { --tone: var(--short); }
.sl__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 0 2px; }
.sl__what { display: grid; gap: 1px; min-width: 0; }
.sl__what strong { font-size: 16px; line-height: 20px; font-weight: 740; letter-spacing: -0.01em; white-space: nowrap; }
.sl__what span { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--soft); }
.sl__clip { display: block; height: 16px; line-height: 16px; overflow: hidden; white-space: nowrap; }
.sl__clip span { display: block; }
.sl__pill { flex: none; height: 26px; padding: 5px 11px; border-radius: 13px; background: color-mix(in srgb, var(--tone) 12%, #ffffff); font-size: 12px; font-weight: 680; color: color-mix(in srgb, var(--tone) 82%, #17181c); transition: background-color 0.4s ease, color 0.4s ease; }

/* the ring: midnight at the top, noon at the bottom; arc and handles are written by the script */
.sl__dial { position: relative; width: var(--dial); height: var(--dial); touch-action: none; }
.sl__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.sl__track { fill: none; stroke: rgba(23, 24, 28, 0.06); stroke-width: 24; }
.sl__ticks path { fill: none; stroke: rgba(23, 24, 28, 0.22); stroke-width: 1.200; stroke-linecap: round; }
.sl__ticks path.is-big { stroke: rgba(23, 24, 28, 0.5); stroke-width: 1.600; }
.sl__ticks text { font-size: 9.500px; font-weight: 660; fill: rgba(23, 24, 28, 0.5); text-anchor: middle; dominant-baseline: central; }
.sl__arc { fill: none; stroke: var(--tone); stroke-width: 24; stroke-linecap: round; transition: stroke 0.4s ease; }
.sl__knob { cursor: grab; outline: none; }
.sl__knob:active { cursor: grabbing; }
.sl__hit { fill: transparent; }
.sl__dot { fill: #ffffff; filter: drop-shadow(0 2px 3px rgba(23, 24, 28, 0.3)); }
.sl__ic { fill: var(--tone); transition: fill 0.4s ease; }
.sl__ray { fill: none; stroke: var(--tone); stroke-width: 1.300; stroke-linecap: round; transition: stroke 0.4s ease; }
.sl__knob:focus-visible .sl__dot { stroke: var(--ink); stroke-width: 2; }
.sl__mid { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 1px; pointer-events: none; }
.sl__mid b { font-size: calc(var(--dial) * 0.17); line-height: 1.1; font-weight: 680; font-stretch: 88%; letter-spacing: -0.02em; }
.sl__mid span { font-size: 12px; line-height: 15px; font-weight: 600; color: var(--soft); }

.sl__times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
.sl__times div { display: grid; justify-items: center; gap: 1px; padding: 7px 0 8px; border-radius: 14px; background: rgba(23, 24, 28, 0.04); }
.sl__times dt { font-size: 11px; line-height: 14px; font-weight: 600; color: var(--soft); }
.sl__clip--big { height: 22px; line-height: 22px; font-size: 18px; font-weight: 720; letter-spacing: -0.01em; }

.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; transform-origin: 20% 15%; pointer-events: none; opacity: 0; fill: #17171a; stroke: #ffffff; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)); z-index: 6; }

@media (max-height: 400px) { .sl { gap: 8px; padding: 14px 14px 12px; } .sl__times div { padding: 5px 0 6px; } }
@media (prefers-reduced-motion: reduce) { .sl__pill, .sl__arc, .sl__ic, .sl__ray { transition: none; } }
