:root {
  --bg: #ffffff;
  --ink: #17171a;
  --soft: rgba(23, 23, 26, 0.58);
  --line: rgba(23, 23, 26, 0.1);
  --accent: #3b6ef0;
  --soon: #d97a06;
  --late: #d8402f;
  --tone: var(--accent);
}

*, *::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: 10px 12px;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; outline: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.su { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; width: min(348px, 100%); padding: 16px; border-radius: 26px; background: #ffffff; box-shadow: inset 0 0 0 1.500px var(--line), 0 30px 44px -30px rgba(23, 23, 26, 0.4); }
.su.is-soon { --tone: var(--soon); }
.su.is-late { --tone: var(--late); }
.su.is-over { --tone: var(--ink); }
.su__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 2px; }
.su__what { display: grid; gap: 1px; min-width: 0; }
.su__what strong { font-size: 16px; line-height: 20px; font-weight: 740; letter-spacing: -0.01em; white-space: nowrap; }
.su__what span { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.su__total { flex: none; height: 24px; padding: 0 10px; border-radius: 12px; background: rgba(23, 23, 26, 0.05); font-size: 12px; line-height: 24px; font-weight: 640; color: var(--soft); white-space: nowrap; }
.su__total b { font-weight: 740; color: var(--ink); font-variant-numeric: tabular-nums; }
.su__clip { display: block; height: 16px; line-height: 16px; overflow: hidden; white-space: nowrap; }
.su__clip span { display: block; overflow: hidden; text-overflow: ellipsis; }
.su__clip--tall { height: 22px; line-height: 22px; }

/* the row of teammates: each a round avatar with a caption, and one ring that travels between them */
.su__row { position: relative; display: flex; justify-content: space-between; padding: 6px 6px 0; }
.su__p { position: relative; display: grid; justify-items: center; gap: 8px; width: 46px; border-radius: 12px; }
.su__av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(23, 23, 26, 0.06); font-size: 13px; font-weight: 740; letter-spacing: 0.01em; color: rgba(23, 23, 26, 0.72); transition: background-color 0.35s ease, color 0.35s ease, opacity 0.35s ease; }
.su__p .su__clip { width: 46px; text-align: center; font-size: 11.500px; font-weight: 640; color: var(--soft); font-variant-numeric: tabular-nums; transition: color 0.35s ease; }
.su__p.is-on .su__av { background: color-mix(in srgb, var(--tone) 14%, #ffffff); color: var(--tone); }
.su__p.is-on .su__clip { color: var(--ink); }
.su__p.is-done .su__av { opacity: 0.42; }
.su__p:focus-visible .su__av { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--ink); }
.su__ring { position: absolute; left: 0; top: 0; width: 52px; height: 52px; fill: none; pointer-events: none; overflow: visible; }
.su__track { stroke: color-mix(in srgb, var(--tone) 16%, #ffffff); stroke-width: 3; transition: stroke 0.35s ease; }
.su__arc { stroke: var(--tone); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke 0.35s ease; }

/* who has the floor and how long is left */
.su__now { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px 11px 13px; border-radius: 16px; background: rgba(23, 23, 26, 0.04); }
.su__who { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; min-width: 0; flex: 1; }
.su__label { font-size: 11.500px; font-weight: 640; color: var(--soft); }
.su__name { font-size: 16px; font-weight: 740; letter-spacing: -0.01em; }
.su__role { font-size: 12px; font-weight: 600; color: var(--soft); }
.su__time { flex: none; height: 38px; white-space: nowrap; }
.su__time b { display: block; font-size: 36px; line-height: 38px; font-weight: 680; font-stretch: 88%; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; color: var(--tone); transition: color 0.35s ease; }

.su__btn { display: grid; place-items: center; height: 44px; border-radius: 22px; background: var(--ink); color: #ffffff; font-size: 14px; font-weight: 720; white-space: nowrap; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 12px 16px -10px rgba(23, 23, 26, 0.7); transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease; }
.su__btn.is-quiet { background: #ffffff; color: var(--ink); box-shadow: inset 0 0 0 1.500px rgba(23, 23, 26, 0.2); }
.su__btn:focus-visible { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--ink); }

.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-width: 350px) { .su { padding: 14px 12px; } .su__row { padding: 6px 4px 0; } .su__time b { font-size: 32px; } }
@media (max-height: 400px) { .su { gap: 11px; } }
@media (prefers-reduced-motion: reduce) { .su__av, .su__p .su__clip, .su__track, .su__arc, .su__time b, .su__btn { transition: none; } }
