:root {
  --bg: #ffffff;
  --ink: #17171a;
  --soft: rgba(23, 23, 26, 0.55);
  --line: rgba(23, 23, 26, 0.12);
  --accent: #e4572e;
}

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

.vs { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); width: min(344px, 100%); }
.vs__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; padding: 0 4px 10px; }
.vs__title { display: grid; gap: 2px; }
.vs__title strong { font-size: 17px; font-weight: 720; letter-spacing: -0.015em; white-space: nowrap; }
.vs__title span { font-size: 12px; color: var(--soft); white-space: nowrap; }
.vs__left { display: flex; align-items: baseline; gap: 4px; font-size: 12px; color: var(--soft); white-space: nowrap; }
.vs__roll { display: block; height: 18px; overflow: hidden; font-size: 15px; line-height: 18px; font-weight: 740; color: var(--accent); font-variant-numeric: tabular-nums; }
.vs__roll b { display: block; font-weight: inherit; }

.vs__list { list-style: none; display: grid; gap: 8px; }
.vs__row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; row-gap: 8px; align-items: center; padding: 11px 11px 11px 14px; border-radius: 18px; background: #f6f5f2; box-shadow: inset 0 0 0 1px var(--line); transition: background-color 0.3s, box-shadow 0.3s; }
.vs__row[data-mine="true"] { background: color-mix(in srgb, var(--accent) 7%, #ffffff); box-shadow: inset 0 0 0 1.500px color-mix(in srgb, var(--accent) 55%, transparent); }
.vs__what { display: grid; gap: 1px; }
.vs__what strong { font-size: 14px; font-weight: 680; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs__what span { font-size: 11.5px; color: var(--soft); font-variant-numeric: tabular-nums; }

/* the places: a dashed circle each, an avatar sits exactly on it */
.vs__slots { grid-column: 1; display: flex; gap: 5px; height: 26px; }
.vs__slots > i { position: relative; display: block; flex: none; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1.500px rgba(23, 23, 26, 0.16); background: repeating-conic-gradient(rgba(255, 255, 255, 0) 0 16deg, #f6f5f2 16deg 30deg); }
.vs__row[data-mine="true"] .vs__slots > i { background: none; }
.vs__slots > i::before { content: ""; position: absolute; inset: 1.500px; border-radius: 50%; background: #f6f5f2; }
.vs__row[data-mine="true"] .vs__slots > i::before { background: color-mix(in srgb, var(--accent) 7%, #ffffff); }
.vs__slots b { font-style: normal; position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: var(--c); font-size: 9.500px; font-weight: 740; letter-spacing: 0.01em; color: rgba(23, 23, 26, 0.8); }
.vs__slots b.is-you { background: var(--accent); color: #ffffff; box-shadow: 0 6px 10px -5px var(--accent); }

.vs__btn { position: relative; grid-column: 2; grid-row: 1 / 3; align-self: center; width: 98px; height: 40px; border-radius: 20px; background: var(--ink); color: #ffffff; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 16px -10px rgba(23, 23, 26, 0.7); }
.vs__btn[data-state="in"] { background: var(--accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 16px -10px var(--accent); }
.vs__btn[data-state="full"] { background: rgba(23, 23, 26, 0.08); color: var(--soft); box-shadow: none; cursor: default; }
.vs__btn:focus-visible { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--ink); }
.vs__face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 13px; font-weight: 700; white-space: nowrap; opacity: 0; }
.vs__face svg { display: block; flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.200; stroke-linecap: round; stroke-linejoin: round; }
.vs__face path { stroke-dasharray: 1; stroke-dashoffset: 1; }

.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-height: 360px) { .vs__row { padding-top: 8px; padding-bottom: 8px; row-gap: 5px; } .vs__list { gap: 6px; } .vs__head { padding-bottom: 7px; } }
@media (prefers-reduced-motion: reduce) { .vs__row { transition: none; } }
