:root {
  --bg: #0b0c11;
  --card: #14161d;
  --well: #0e1016;
  --ink: #f2f3f7;
  --soft: rgba(242, 243, 247, 0.54);
  --line: rgba(242, 243, 247, 0.08);
  --accent: #8f7dff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: radial-gradient(120% 80% at 50% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), 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;
}

.qh { width: min(312px, 100%); padding: 16px 18px 15px; border-radius: 24px; background: linear-gradient(180deg, #181a22, var(--card)); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 50px -30px rgba(0, 0, 0, 0.9); }
.qh__head { display: flex; align-items: baseline; justify-content: space-between; }
.qh__head h1 { font-size: 13.500px; line-height: 18px; font-weight: 640; color: var(--soft); }
.qh__len { font-size: 12.500px; line-height: 18px; font-weight: 620; color: var(--accent); }
.qh__range { display: flex; align-items: baseline; gap: 9px; margin-top: 4px; }
.qh__range b { min-width: 2.650em; font-size: clamp(28px, 9.500vw, 34px); line-height: 1.1; font-weight: 740; font-stretch: 96%; letter-spacing: -0.03em; }
.qh__range i { font-style: normal; font-size: 14px; font-weight: 560; color: var(--soft); }

/* the 24-hour bar: a dark well with an hour tick each, the night band over it and the two handles */
.qh__track { position: relative; height: 40px; margin: 16px 11px 0; border-radius: 12px; background: var(--well); box-shadow: inset 0 0 0 1px var(--line), inset 0 2px 5px rgba(0, 0, 0, 0.5); touch-action: none; cursor: pointer; }
.qh__ticks { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding: 0; }
.qh__ticks span { width: 1px; height: 8px; background: rgba(242, 243, 247, 0.14); }
.qh__ticks span.is-six { height: 16px; background: rgba(242, 243, 247, 0.26); }
.qh__ticks span:first-child, .qh__ticks span:last-child { opacity: 0; }
.qh__band { position: absolute; top: 5px; bottom: 5px; border-radius: 8px; background: radial-gradient(1px 1px at 22% 30%, rgba(255, 255, 255, 0.85) 50%, transparent 51%), radial-gradient(1px 1px at 61% 68%, rgba(255, 255, 255, 0.7) 50%, transparent 51%), radial-gradient(1.200px 1.200px at 83% 26%, rgba(255, 255, 255, 0.8) 50%, transparent 51%), radial-gradient(1px 1px at 40% 74%, rgba(255, 255, 255, 0.55) 50%, transparent 51%), linear-gradient(180deg, color-mix(in srgb, var(--accent) 92%, #ffffff), color-mix(in srgb, var(--accent) 78%, #1a1040)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 6px 16px -6px color-mix(in srgb, var(--accent) 80%, transparent); pointer-events: none; }
.qh__now { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 2px; background: #ffffff; box-shadow: 0 0 0 2px rgba(11, 12, 17, 0.55); pointer-events: none; }
.qh__now::before { content: ""; position: absolute; left: 50%; top: -4px; width: 8px; height: 8px; margin-left: -4px; border-radius: 3px; background: #ffffff; transform: rotate(45deg); }
.qh__knob { position: absolute; top: 50%; width: 30px; height: 44px; margin: -22px 0 0 -15px; border: 0; background: none; cursor: grab; outline: none; touch-action: none; -webkit-tap-highlight-color: transparent; display: grid; place-items: center; z-index: 2; }
.qh__knob i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(180deg, #ffffff, #e6e7ee); box-shadow: 0 0 0 1px rgba(11, 12, 17, 0.2), 0 5px 10px -3px rgba(0, 0, 0, 0.7); }
.qh__knob svg { width: 12px; height: 12px; fill: none; stroke: #23202f; stroke-width: 1.300; stroke-linecap: round; stroke-linejoin: round; }
.qh__knob[data-knob="s"] svg path { fill: #23202f; stroke: none; }
.qh__knob:focus-visible i { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--accent); }
.qh__knob.is-held { cursor: grabbing; }

.qh__scale { display: flex; justify-content: space-between; margin: 7px 3px 0; font-size: 10.500px; line-height: 14px; font-weight: 600; color: rgba(242, 243, 247, 0.4); }
.qh__scale span { width: 16px; text-align: center; }

.qh__status { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; line-height: 18px; font-weight: 620; }
.qh__bell { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.500; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.qh__slash { stroke: var(--accent); stroke-width: 1.900; stroke-dasharray: 18.200; stroke-dashoffset: 18.200; }
.qh__st { flex: 1 1 auto; min-width: 0; height: 18px; overflow: hidden; white-space: nowrap; }
.qh__st span { display: block; }
.qh__status em { flex: none; font-style: normal; font-weight: 560; color: var(--soft); }

.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: #ffffff; stroke: #0b0c11; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); z-index: 5; }
