:root {
  --bg: #ffffff;
  --ink: #17171a;
  --soft: rgba(23, 23, 26, 0.58);
  --line: rgba(23, 23, 26, 0.1);
  --good: #128a5e;
  --warn: #b86a00;
}

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

.cv { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; width: min(348px, 100%); padding: 18px 16px 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); }
.cv__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 2px; }
.cv__head strong { font-size: 16px; line-height: 20px; font-weight: 740; letter-spacing: -0.01em; }
.cv__sum { display: block; height: 16px; overflow: hidden; font-size: 12.500px; line-height: 16px; font-weight: 700; color: var(--good); white-space: nowrap; transition: color 0.3s; }
.cv__sum span { display: block; }
.cv[data-alike] .cv__sum { color: var(--warn); }

.cv__seg { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: 38px; padding: 3px; border-radius: 13px; background: rgba(23, 23, 26, 0.06); }
.cv__pick { position: absolute; left: 3px; top: 3px; bottom: 3px; width: calc((100% - 6px) / 4); border-radius: 10px; background: #ffffff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 4px 8px -4px rgba(23, 23, 26, 0.35), 0 0 0 1px rgba(23, 23, 26, 0.05); }
.cv__opt { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; height: 32px; border-radius: 10px; font-size: 12.500px; font-weight: 680; color: var(--soft); white-space: nowrap; transition: color 0.25s; }
.cv__opt[aria-pressed="true"] { color: var(--ink); }
.cv__opt:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }

.cv__view { display: grid; grid-template-columns: minmax(0, 1fr); }
.cv__row, .cv__names { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.cv__sw { height: 60px; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(23, 23, 26, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 12px -10px rgba(23, 23, 26, 0.5); }
.cv__links { display: block; width: 100%; height: 18px; overflow: visible; }
.cv__links path { fill: none; stroke: var(--ink); stroke-width: 1.500; stroke-linecap: round; stroke-linejoin: round; }
.cv__names span { font-size: 11px; line-height: 14px; font-weight: 660; color: var(--soft); text-align: center; transition: color 0.3s; }
.cv__names span.is-alike { color: var(--ink); }

.cv__note { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 12px; border-radius: 14px; background: rgba(23, 23, 26, 0.045); }
.cv__clip { display: block; overflow: hidden; white-space: nowrap; }
.cv__clip span { display: block; overflow: hidden; text-overflow: ellipsis; }
.cv__what { height: 14px; font-size: 11px; line-height: 14px; font-weight: 680; letter-spacing: 0.02em; color: var(--soft); }
.cv__said { height: 18px; font-size: 13px; letter-spacing: -0.01em; line-height: 18px; font-weight: 680; }

.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 (hover: hover) { .cv__opt:hover { color: var(--ink); } }
@media (max-width: 350px) { .cv { padding: 16px 13px 14px; } .cv__opt { font-size: 12px; } .cv__row, .cv__names { gap: 6px; } .cv__said { font-size: 12.500px; } .cv__note { padding: 10px; } }
@media (prefers-reduced-motion: reduce) { .cv__sum, .cv__opt, .cv__names span { transition: none; } }
