:root {
  --bg: #ffffff;
  --ink: #17171a;
  --soft: rgba(23, 23, 26, 0.58);
  --line: rgba(23, 23, 26, 0.1);
  --accent: #ff6a3d;
  --a: var(--accent);
  --b: color-mix(in srgb, var(--accent) 52%, #ffffff);
  --c: color-mix(in srgb, var(--accent) 20%, #ffffff);
}

*, *::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; -webkit-tap-highlight-color: transparent; }
ul { list-style: none; }

.rs { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 13px; width: min(344px, 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, 23, 26, 0.38), 0 26px 50px -36px color-mix(in srgb, var(--accent) 70%, transparent); }
.rs__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rs__head strong { font-size: 16px; line-height: 20px; font-weight: 740; letter-spacing: -0.01em; white-space: nowrap; }
.rs__head span { font-size: 12.500px; font-weight: 620; color: var(--soft); font-variant-numeric: tabular-nums; white-space: nowrap; }

.rs__bar { position: relative; height: 52px; border-radius: 16px; touch-action: none; }
.rs__part { position: absolute; top: 0; bottom: 0; display: grid; align-content: center; justify-items: center; gap: 1px; overflow: hidden; color: #2a1206; }
.rs__part[data-part="0"] { background: var(--a); border-radius: 16px 5px 5px 16px; }
.rs__part[data-part="1"] { background: var(--b); border-radius: 5px; }
.rs__part[data-part="2"] { background: var(--c); border-radius: 5px 16px 16px 5px; }
.rs__part b { font-size: 13px; line-height: 15px; font-weight: 780; letter-spacing: 0.01em; }
.rs__part i { font-style: normal; font-size: 11.500px; line-height: 14px; font-weight: 660; font-variant-numeric: tabular-nums; opacity: 0.74; }
.rs__grip { position: absolute; top: -4px; left: 0; width: 28px; height: 60px; margin-left: -14px; display: grid; place-items: center; cursor: ew-resize; touch-action: none; z-index: 2; }
.rs__grip i { display: block; width: 8px; height: 34px; border-radius: 4px; background: #ffffff; box-shadow: 0 0 0 1.500px rgba(23, 23, 26, 0.16), 0 6px 10px -4px rgba(23, 23, 26, 0.5); transition: box-shadow 0.2s; }
.rs__grip:focus-visible i, .rs__grip.is-held i { box-shadow: 0 0 0 2px var(--ink), 0 8px 14px -4px rgba(23, 23, 26, 0.6); }

.rs__who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rs__who li { display: grid; gap: 1px; }
.rs__who li + li { padding-left: 10px; box-shadow: inset 1px 0 0 var(--line); }
.rs__who span { font-size: 11.500px; line-height: 14px; font-weight: 620; color: var(--soft); }
.rs__who strong { font-size: 20px; line-height: 24px; font-weight: 760; font-stretch: 92%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }

.rs__foot { display: flex; align-items: center; gap: 6px; }
.rs__chip { height: 30px; padding: 0 11px; border-radius: 15px; font-size: 12px; font-weight: 680; color: var(--soft); box-shadow: inset 0 0 0 1.500px var(--line); white-space: nowrap; touch-action: manipulation; transition: background-color 0.25s, color 0.25s, box-shadow 0.25s; }
.rs__chip[aria-pressed="true"] { background: var(--ink); color: #ffffff; box-shadow: none; }
.rs__chip:focus-visible { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--ink); }
.rs__note { display: block; height: 16px; margin-left: auto; overflow: hidden; font-size: 11.500px; line-height: 16px; font-weight: 640; color: var(--soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rs__note span { display: block; }

.live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.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) { .rs__who strong { font-size: 18px; } .rs__chip { padding: 0 9px; font-size: 11.500px; } .rs__note { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .rs__grip i, .rs__chip { transition: none; } }
