:root {
  --bg: #0a0c0a;
  --card: #141815;
  --ink: #f2f4ee;
  --soft: rgba(242, 244, 238, 0.56);
  --line: rgba(242, 244, 238, 0.1);
  --accent: #c6f24e;
}

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

.fm { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; width: min(348px, 100%); padding: 18px 16px 14px; border-radius: 26px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 30px 50px -28px rgba(0, 0, 0, 0.9); }
.fm__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 2px; }
.fm__head strong { font-size: 16px; line-height: 20px; font-weight: 720; letter-spacing: -0.01em; }
.fm__team { font-size: 12.500px; line-height: 16px; font-weight: 660; color: var(--soft); white-space: nowrap; }

.fm__seg { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: 38px; padding: 3px; border-radius: 13px; background: rgba(242, 244, 238, 0.07); }
.fm__pick { position: absolute; left: 3px; top: 3px; bottom: 3px; width: calc((100% - 6px) / 3); border-radius: 10px; background: rgba(242, 244, 238, 0.15); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); }
.fm__opt { position: relative; display: grid; place-items: center; height: 32px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; transition: color 0.25s; }
.fm__opt[aria-pressed="true"] { color: var(--ink); }
.fm__opt:focus-visible { box-shadow: inset 0 0 0 1.500px var(--ink); }

.fm__pitch { display: block; width: 100%; height: auto; overflow: visible; }
.fm__pitch .lines * { fill: none; stroke: rgba(242, 244, 238, 0.16); stroke-width: 1.500; }
.fm__pitch .lines rect:first-child { fill: rgba(242, 244, 238, 0.03); }
.fm__pitch .units path { fill: none; stroke: var(--accent); stroke-width: 1.800; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 4.500; opacity: 0.85; }
.fm__p { cursor: pointer; outline: none; }
.fm__p circle { fill: var(--ink); stroke: var(--card); stroke-width: 2; transition: fill 0.25s; }
.fm__p text { font-size: 10.500px; font-weight: 760; fill: #141815; text-anchor: middle; font-variant-numeric: tabular-nums; pointer-events: none; }
.fm__p.is-on circle { fill: var(--accent); }
.fm__p:focus-visible circle { stroke: var(--accent); stroke-width: 3; }

.fm__note { padding: 10px 12px; border-radius: 14px; background: rgba(242, 244, 238, 0.06); }
.fm__clip { display: block; height: 18px; overflow: hidden; white-space: nowrap; font-size: 13px; line-height: 18px; font-weight: 660; font-variant-numeric: tabular-nums; }
.fm__clip span { display: block; overflow: hidden; text-overflow: ellipsis; }

.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: #f2f4ee; stroke: #0a0c0a; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); z-index: 6; }

@media (hover: hover) { .fm__opt:hover { color: var(--ink); } }
@media (max-width: 350px) { .fm { padding: 16px 13px 12px; } .fm__clip { font-size: 12.500px; } }
@media (prefers-reduced-motion: reduce) { .fm__opt, .fm__p circle { transition: none; } }
