:root {
  --bg: #f3f1ea;
  --card: #ffffff;
  --ink: #17171a;
  --soft: rgba(23, 23, 26, 0.56);
  --line: rgba(23, 23, 26, 0.1);
  --yes: #159a6c;
  --maybe: #e59a1a;
  --no: rgba(23, 23, 26, 0.34);
}

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

.rv { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 11px; width: min(340px, 100%); padding: 16px 16px 14px; border-radius: 26px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 34px 50px -34px rgba(23, 23, 26, 0.4), 0 30px 60px -44px color-mix(in srgb, var(--yes) 80%, transparent); }
.rv__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rv__head strong { font-size: 16px; line-height: 20px; font-weight: 740; letter-spacing: -0.01em; white-space: nowrap; }
.rv__head span { font-size: 12px; color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; }

.rv__top { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; }
.rv__ring { position: relative; display: grid; place-items: center; width: min(88px, 20vh); aspect-ratio: 1; }
.rv__ring svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; fill: none; }
.rv__track { stroke: rgba(23, 23, 26, 0.08); stroke-width: 9; }
.rv__seg { stroke-width: 9; stroke-linecap: butt; stroke-dasharray: 0 18; }
.rv__seg--yes { stroke: var(--yes); }
.rv__seg--maybe { stroke: var(--maybe); }
.rv__seg--no { stroke: var(--no); }
.rv__mid { position: relative; display: grid; justify-items: center; margin-top: 5px; }
.rv__mid strong { font-size: 26px; line-height: 26px; font-weight: 780; font-stretch: 90%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rv__mid span { font-size: 10.500px; line-height: 13px; font-weight: 660; color: var(--soft); }
.rv__stats { display: grid; }
.rv__stats div { display: flex; justify-content: space-between; align-items: center; height: 27px; }
.rv__stats div + div { box-shadow: inset 0 1px 0 var(--line); }
.rv__stats dt { font-size: 13px; font-weight: 620; color: var(--soft); }
.rv__stats dd { display: block; height: 20px; overflow: hidden; font-size: 15px; line-height: 20px; font-weight: 760; font-variant-numeric: tabular-nums; }
.rv__stats dd span { display: block; }
.rv__stats dd.is-yes { color: var(--yes); }
.rv__stats dd.is-maybe { color: color-mix(in srgb, var(--maybe) 80%, #17171a); }

.rv__row { display: grid; gap: 5px; }
.rv__lab { display: block; height: 14px; overflow: hidden; font-size: 11px; line-height: 14px; font-weight: 660; color: var(--soft); white-space: nowrap; }
.rv__lab span { display: block; }
.rv__chips { display: flex; gap: 6px; height: 30px; }
.rv__chip { position: relative; display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(23, 23, 26, 0.07); box-shadow: inset 0 0 0 1px rgba(23, 23, 26, 0.08); font-size: 10.500px; font-weight: 760; letter-spacing: 0.01em; color: rgba(23, 23, 26, 0.7); }
.rv__chip span { display: block; line-height: 1; }
.rv__chip.is-yes { background: color-mix(in srgb, var(--yes) 15%, #ffffff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--yes) 34%, transparent); color: color-mix(in srgb, var(--yes) 76%, #17171a); }
.rv__chip.is-more { background: var(--ink); box-shadow: none; color: #ffffff; font-variant-numeric: tabular-nums; }

.rv__send { position: relative; height: 44px; border-radius: 22px; background: var(--ink); color: #ffffff; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 12px 18px -12px rgba(23, 23, 26, 0.7); transition: background-color 0.3s, color 0.3s, box-shadow 0.3s; }
.rv__send.is-sent { background: rgba(23, 23, 26, 0.06); color: var(--ink); box-shadow: none; }
.rv__send:focus-visible { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--ink); }
.rv__face { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 14px; font-weight: 720; white-space: nowrap; opacity: 0; }
.rv__face[data-face="send"] { opacity: 1; }
.rv__face svg { display: block; width: 16px; height: 16px; fill: none; stroke: var(--yes); stroke-width: 2.200; stroke-linecap: round; stroke-linejoin: round; }
.rv__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: 380px) { .rv { gap: 8px; padding-top: 12px; padding-bottom: 12px; } .rv__stats div { height: 24px; } }
@media (prefers-reduced-motion: reduce) { .rv__send { transition: none; } }
