:root {
  --bg: #0b0c0e;
  --card: #141519;
  --card-hi: #1c1e23;
  --ink: #f5f4f0;
  --soft: rgba(245, 244, 240, 0.54);
  --line: rgba(255, 255, 255, 0.09);
  --accent: #ffc53d;
}

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

.drv {
  width: min(352px, 100%);
  padding: 16px 14px 10px;
  border-radius: 26px;
  background: linear-gradient(180deg, var(--card-hi), var(--card));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px var(--line),
    0 34px 70px -34px color-mix(in srgb, var(--accent) 36%, transparent);
}
.drv__top { display: flex; align-items: center; gap: 16px; padding: 0 4px 12px; }
.wheel { flex: none; width: min(126px, 30vh); height: min(126px, 30vh); overflow: visible; }
.wheel__track { fill: none; stroke: rgba(255, 255, 255, 0.09); stroke-width: 4; }
.wheel__ring { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent) 55%, transparent)); }
.wheel__rim { fill: none; stroke: url(#drv-rim); stroke-width: 10; }
.wheel__rim-hi { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 1; }
.wheel__spokes { fill: none; stroke: #33363c; stroke-width: 8; stroke-linecap: round; }
.wheel__hub { fill: #2a2c32; stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; }
.wheel__mark { fill: var(--accent); }
.wheel__logo { fill: none; stroke: rgba(255, 255, 255, 0.5); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.drv__say { min-width: 0; display: grid; gap: 5px; justify-items: start; }
.drv__school { font-size: 12px; font-weight: 520; color: var(--soft); white-space: nowrap; }
.drv__hours { display: flex; align-items: baseline; gap: 7px; }
.drv__hours b { display: inline-block; font-size: 46px; line-height: 46px; font-weight: 700; font-stretch: 108%; letter-spacing: -0.03em; }
.drv__hours i { font-style: normal; font-size: 13.5px; font-weight: 520; color: var(--soft); white-space: nowrap; }
.drv__tag { height: 26px; padding: 0 10px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; line-height: 26px; font-weight: 600; color: rgba(245, 244, 240, 0.8); white-space: nowrap; transition: background-color 0.4s ease, color 0.4s ease; }
.drv__tag span { display: block; }
.drv__tag.is-ready { background: var(--accent); color: #17130a; }

.drv__rows { display: grid; border-top: 1px solid var(--line); }
.man { position: relative; display: flex; align-items: center; gap: 11px; height: 42px; padding: 0 6px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.man + .man { border-top: 1px solid var(--line); }
.man:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 10px; }
.man__box { flex: none; width: 22px; height: 22px; }
.man__box rect { fill: rgba(255, 255, 255, 0.04); stroke: rgba(255, 255, 255, 0.24); stroke-width: 1.4; transition: fill 0.3s ease, stroke 0.3s ease; }
.man__box path { fill: none; stroke: #17130a; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.man.is-done .man__box rect { fill: var(--accent); stroke: var(--accent); }
.man__name { flex: 1; min-width: 0; font-size: 14px; font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.3s ease; }
.man.is-done .man__name { color: var(--soft); }
.man__h { font-size: 12.5px; font-weight: 600; color: var(--soft); transition: color 0.3s ease; }
.man.is-done .man__h { color: var(--accent); }

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

@media (max-height: 430px) {
  .drv { padding: 12px 12px 6px; }
  .drv__top { padding-bottom: 8px; }
  .man { height: 38px; }
  .drv__hours b { font-size: 40px; line-height: 40px; }
}
@media (max-width: 350px) {
  .drv__top { gap: 12px; }
  .drv__hours b { font-size: 38px; line-height: 38px; }
}
@media (min-width: 700px) and (min-height: 500px) {
  .drv { zoom: 1.3; }
}
@media (min-width: 1100px) and (min-height: 760px) {
  .drv { zoom: 1.65; }
}
