:root { --ca: #2d7dd2; --cb: #f08a24; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ca: #5aa9f0; --cb: #f5a04a; } }
:root[data-theme="dark"] { --ca: #5aa9f0; --cb: #f5a04a; }
a.icon { text-decoration: none; }
.fib { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 10px 16px 12px; max-width: 760px; width: 100%; margin: 0 auto; min-height: 0; }
.roundbar { display: flex; align-items: center; justify-content: space-between; }
.dots { display: flex; gap: 6px; }
.dot { width: 26px; height: 26px; border-radius: 7px; background: var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.dot.cur { outline: 2px solid var(--accent); outline-offset: 1px; background: var(--surface); color: var(--ink); }
.dot.r-g { background: var(--hit); color: #fff; } .dot.r-y { background: var(--near); color: #fff; }
.dot.r-o { background: var(--mid); color: #fff; } .dot.r-r { background: var(--far); color: #fff; }
.score { font: 800 22px/1 system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.score small { font-size: 13px; color: var(--muted); font-weight: 600; }
.locator { width: 100%; height: 92px; background: var(--ocean); border-radius: 10px; border: 1px solid var(--line); flex: none; }
.locator path { fill: var(--land); stroke: none; }
.locator path.a { fill: var(--ca); } .locator path.b { fill: var(--cb); }
.locator circle.ring { fill: none; stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.locator circle.a { stroke: var(--ca); } .locator circle.b { stroke: var(--cb); }
.stage { position: relative; flex: 1; min-height: 200px; display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
#cmp { flex: 1; width: 100%; min-height: 0; display: block; }
#cmp .shape { vector-effect: non-scaling-stroke; stroke-width: 1.2; stroke-linejoin: round; fill-rule: evenodd; }
#cmp .shape.a { fill: var(--ca); stroke: color-mix(in srgb, var(--ca) 70%, #000); }
#cmp .shape.b { fill: var(--cb); stroke: color-mix(in srgb, var(--cb) 70%, #000); }
#cmp .shape.guess { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 5 4; }
.names { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.nm { display: flex; align-items: center; gap: 6px; min-width: 0; }
.nm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nm i, .sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; flex: none; vertical-align: -2px; }
.nm.a i, .sw.a { background: var(--ca); } .nm.b i, .sw.b { background: var(--cb); }
.readout { margin: 0; text-align: center; min-height: 52px; }
.readout .line1 { display: block; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.readout .line1 .sw { width: 18px; height: 18px; }
.readout .you .sw { width: 12px; height: 12px; }
.readout .you { display: block; font-size: 14px; font-weight: 600; color: var(--muted); }
.readout .line2 { display: block; font-size: 14px; font-weight: 600; }
.readout .hint { color: var(--muted); font-weight: 500; }
.controls { display: flex; align-items: center; gap: 10px; }
.controls.off { visibility: hidden; height: 0; margin: -4px 0; }
.controls input { flex: 1; accent-color: var(--cb); height: 32px; }
.actions { display: flex; gap: 8px; }
.howto { padding-left: 20px; margin: 0 0 10px; } .howto li { margin-bottom: 6px; }
.legend { font-size: 15px; }
.big { font: 800 40px/1 system-ui, sans-serif; margin: 4px 0; font-variant-numeric: tabular-nums; }
.emoji { font-size: 28px; letter-spacing: 2px; margin: 6px 0 10px; }
.reslist { list-style: none; padding: 0; margin: 0 0 12px; font-size: 14px; }
.reslist li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.statsgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; margin: 14px 0 6px; }
.statsgrid b { display: block; font-size: 22px; } .statsgrid span { font-size: 11px; color: var(--muted); }
.more { font-size: 14px; margin: 6px 0; }
@media (min-width: 700px) { .locator { height: 130px; } }
