:root {
  --bg: #07080a;
  --card: #131519;
  --ink: #eceef2;
  --soft: rgba(236, 238, 242, 0.52);
  --line: rgba(236, 238, 242, 0.1);
  --accent: #7fe0a2;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: radial-gradient(120% 90% at 50% 0%, #14161b 0%, var(--bg) 62%);
  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 10px;
}

.fc { position: relative; width: min(344px, 100%); display: grid; grid-template-columns: minmax(0, 1fr); padding: 12px 12px 12px; border-radius: 26px; background: linear-gradient(180deg, #181b20, var(--card)); box-shadow: 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 34px 60px -34px rgba(0, 0, 0, 0.95); }
.fc__roll { display: block; overflow: hidden; }
.fc__roll > span { display: block; white-space: nowrap; }

/* the map: branches in the svg, questions, answers and plans as real elements placed over it */
.fc__map { position: relative; }
.fc__map svg { display: block; width: 100%; height: auto; overflow: visible; fill: none; }
.fc__edge { stroke: rgba(236, 238, 242, 0.14); stroke-width: 1.500; stroke-linecap: round; transition: stroke 0.3s, opacity 0.3s; }
.fc__edge.is-off { opacity: 0.4; }
.fc__edge.is-hint { stroke: color-mix(in srgb, var(--accent) 55%, transparent); stroke-dasharray: 3 4; }
.fc__lit { stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; visibility: hidden; }

.fc__at { position: absolute; transform: translate(-50%, -50%); }
.fc__q { display: grid; place-items: center; height: 40px; padding: 0 14px; border-radius: 14px; background: rgba(236, 238, 242, 0.06); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 680; white-space: nowrap; color: var(--soft); transition: color 0.3s, background-color 0.3s, box-shadow 0.3s; }
.fc__q.is-on { color: var(--ink); background: rgba(236, 238, 242, 0.1); box-shadow: inset 0 0 0 1px rgba(236, 238, 242, 0.22); }
.fc__q.is-done { color: var(--ink); }
.fc__a { width: 38px; height: 24px; border: 0; border-radius: 12px; background: #23262d; color: var(--soft); font: inherit; font-size: 11.500px; font-weight: 720; cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; box-shadow: inset 0 0 0 1px var(--line); transition: color 0.25s, background-color 0.25s, opacity 0.3s; }
.fc__a:focus-visible { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.fc__a[aria-disabled="true"] { opacity: 0.45; cursor: default; }
.fc__a.is-ready { color: var(--ink); }
.fc__a[aria-pressed="true"] { background: var(--accent); color: #0d1410; box-shadow: none; opacity: 1; }
.fc__plan { display: grid; place-items: center; width: 64px; height: 36px; border-radius: 12px; background: rgba(236, 238, 242, 0.05); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; font-weight: 700; color: var(--soft); cursor: default; transition: color 0.3s, background-color 0.3s, box-shadow 0.3s; }
.fc__plan.is-hint { color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent); }
.fc__plan.is-won { background: var(--accent); color: #0d1410; box-shadow: 0 10px 20px -10px var(--accent); }

.fc__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 36px; margin-top: 8px; padding: 0 2px 0 6px; }
.fc__say { height: 18px; line-height: 18px; font-size: 12.500px; font-weight: 600; color: var(--soft); }
.fc__reset { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 10px; border: 0; border-radius: 16px; background: rgba(236, 238, 242, 0.07); color: var(--ink); font: inherit; font-size: 12px; font-weight: 660; cursor: pointer; outline: none; white-space: nowrap; -webkit-tap-highlight-color: transparent; transition: opacity 0.3s, background-color 0.2s; }
.fc__reset[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.fc__reset:focus-visible { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.fc__reset svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.600; stroke-linecap: round; stroke-linejoin: round; }

@media (hover: hover) {
  .fc__a.is-ready:hover { background: #2e323a; }
  .fc__a[aria-pressed="true"]:hover { background: var(--accent); }
  .fc__reset:not([aria-disabled="true"]):hover { background: rgba(236, 238, 242, 0.12); }
}

.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; pointer-events: none; opacity: 0; fill: #ffffff; stroke: #101216; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); z-index: 5; }
