:root {
  --bg: #ffffff;
  --ink: #17171a;
  --soft: rgba(23, 23, 26, 0.58);
  --line: rgba(23, 23, 26, 0.1);
  --free: #128a5e;
  --online: #d48806;
  --embassy: #d9432f;
  --tone: var(--free);
}

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

.vc { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; width: min(344px, 100%); padding: 16px 14px 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(--tone) 70%, transparent); transition: box-shadow 0.4s; }
.vc[data-tone="online"] { --tone: var(--online); }
.vc[data-tone="embassy"] { --tone: var(--embassy); }
.vc__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 2px; }
.vc__head strong { font-size: 16px; line-height: 20px; font-weight: 740; letter-spacing: -0.01em; white-space: nowrap; }
.vc__head span { font-size: 11px; font-weight: 640; color: var(--soft); white-space: nowrap; }

.vc__pick { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: center; gap: 8px; }
.vc__lab { padding-left: 2px; font-size: 12px; font-weight: 640; color: var(--soft); white-space: nowrap; }
.vc__opts { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: 36px; padding: 3px; border-radius: 18px; background: rgba(23, 23, 26, 0.06); }
.vc__opts button { position: relative; z-index: 1; height: 30px; border-radius: 15px; font-size: 13px; font-weight: 680; color: var(--soft); white-space: nowrap; transition: color 0.25s; }
.vc__opts button[aria-checked="true"] { color: var(--ink); }
.vc__opts button:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
.vc__pill { position: absolute; left: 0; top: 3px; width: 80px; height: 30px; border-radius: 15px; background: #ffffff; box-shadow: 0 0 0 1px rgba(23, 23, 26, 0.06), 0 5px 9px -5px rgba(23, 23, 26, 0.4); }

.vc__out { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "tile say" "facts facts"; align-items: center; column-gap: 12px; row-gap: 11px; margin-top: 2px; padding: 13px 13px 11px; border-radius: 18px; background: color-mix(in srgb, var(--tone) 7%, #ffffff); box-shadow: inset 0 0 0 1.500px color-mix(in srgb, var(--tone) 32%, transparent); transition: background-color 0.4s, box-shadow 0.4s; }
.vc__tile { grid-area: tile; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--tone); color: #ffffff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 16px -10px var(--tone); transition: background-color 0.4s, box-shadow 0.4s; }
.vc__tile svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.800; stroke-linecap: round; stroke-linejoin: round; }
.vc__tile [data-glyph] { opacity: 0; }
.vc__tile [data-glyph="free"] { opacity: 1; stroke-width: 2.400; }
.vc__say { grid-area: say; display: grid; gap: 2px; min-width: 0; }
.vc__verdict { display: block; height: 22px; overflow: hidden; font-size: 17px; line-height: 22px; font-weight: 760; letter-spacing: -0.012em; white-space: nowrap; }
.vc__verdict span, .vc__sub span, .vc__facts dd span { display: block; }
.vc__sub { display: block; height: 16px; overflow: hidden; font-size: 12px; line-height: 16px; color: var(--soft); white-space: nowrap; }
.vc__facts { grid-area: facts; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 10px; box-shadow: inset 0 1px 0 color-mix(in srgb, var(--tone) 22%, transparent); }
.vc__facts div { display: grid; gap: 1px; }
.vc__facts dt { font-size: 10.500px; line-height: 13px; font-weight: 640; color: var(--soft); }
.vc__facts dd { display: block; height: 18px; overflow: hidden; font-size: 13.500px; line-height: 18px; font-weight: 720; font-variant-numeric: tabular-nums; 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) { .vc__pick { grid-template-columns: 56px minmax(0, 1fr); } .vc__opts button { font-size: 12.500px; } }
@media (prefers-reduced-motion: reduce) { .vc, .vc__out, .vc__tile, .vc__opts button { transition: none; } }
