:root{--bg: #f6f4ee;--panel: #ffffff;--ink: #1f2933;--muted: #5f6b76;--line: #d9d4c7;--accent: #1d4ed8;--right: #15803d;--right-bg: #dcfce7;--wrong: #b91c1c;--wrong-bg: #fee2e2;--active: #fde047;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0;background:var(--bg)}.status{padding:2rem}.app{max-width:1500px;margin:0 auto;padding:12px 16px 32px}header h1{font-size:1.35rem;margin:4px 0 10px}header h1 span{color:var(--muted);font-weight:500;margin-left:6px}.tabs{display:flex;gap:6px;overflow-x:auto;padding-bottom:6px}.tabs button{flex:none;display:flex;flex-direction:column;align-items:flex-start;gap:1px;padding:7px 12px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font:inherit;font-weight:600;cursor:pointer}.tabs button small{font-weight:400;font-size:.72rem;color:var(--muted)}.tabs button.on{background:var(--accent);border-color:var(--accent);color:#fff}.tabs button.on small{color:#dbeafe}main{display:grid;grid-template-columns:1fr;gap:14px;margin-top:8px}.map-wrap{position:relative}.map{display:block;width:100%;max-height:78vh;border:1px solid var(--line);border-radius:10px;background:#cfe3f2;touch-action:none;cursor:grab;-webkit-user-select:none;user-select:none}.map:active{cursor:grabbing}.sea{fill:#cfe3f2}.land path{fill:#f3eedf;stroke:#b3a98f;stroke-width:.6;vector-effect:non-scaling-stroke}.rivers{fill:none;stroke:#8fb8dc;stroke-width:.8;vector-effect:non-scaling-stroke}.rivers.faint{stroke:#b9d3e8;stroke-width:.6}.lakes{fill:#cfe3f2;stroke:#8fb8dc;stroke-width:.5;vector-effect:non-scaling-stroke}.shape{vector-effect:non-scaling-stroke}.shape.range{fill:#9254266b;stroke:#6e3c19bf;stroke-width:.8}.shape.country{fill:#16a34a29;stroke:#6b7f5a;stroke-width:.9}.shape.active.country{fill:#facc15bf;stroke:#854d0e;stroke-width:1.6}.shape.right.country{fill:#22c55e66;stroke:var(--right)}.shape.wrong.country{fill:#ef44444d;stroke:var(--wrong)}.shape.area{fill:#ca8a0452;stroke:#855a0ab3;stroke-width:.8}.shape.river{fill:none;stroke:#1d4ed8;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.shape.lake{fill:#2563eb;stroke:#1e3a8a;stroke-width:1}.shape.active.range,.shape.active.area{fill:#facc1599;stroke:#854d0e;stroke-width:1.6}.shape.active.river{stroke:#f59e0b;stroke-width:4}.shape.active.lake{fill:#f59e0b;stroke:#92400e}.shape.right.range,.shape.right.area{fill:#22c55e59;stroke:var(--right)}.shape.wrong.range,.shape.wrong.area{fill:#ef444452;stroke:var(--wrong)}.shape.right.river{stroke:#16a34a}.shape.wrong.river{stroke:#dc2626}.shape.right.lake{fill:#16a34a;stroke:#14532d}.shape.wrong.lake{fill:#dc2626;stroke:#7f1d1d}.leader{stroke:#334155}.peak{fill:#7c2d12;stroke:#fff}.dot{fill:#111827;stroke:#fff}.bubble{cursor:pointer}.bubble circle{fill:#fff;stroke:#1f2933}.bubble text{font-weight:700;fill:#1f2933;pointer-events:none}.bubble.active circle{fill:var(--active);stroke:#854d0e}.bubble.right circle{fill:var(--right);stroke:#14532d}.bubble.wrong circle{fill:var(--wrong);stroke:#7f1d1d}.bubble.right text,.bubble.wrong text{fill:#fff}.names text{font-weight:700;paint-order:stroke;stroke:#fff;stroke-linejoin:round;pointer-events:none}.names text.right{fill:#166534}.names text.wrong{fill:#991b1b}.zoom{position:absolute;top:10px;right:10px;display:flex;flex-direction:column;gap:4px}.zoom button{width:34px;height:34px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font-size:1.15rem;line-height:1;cursor:pointer}.zoom button:disabled{opacity:.45;cursor:default}.credit{margin:4px 2px 0;font-size:.72rem;color:var(--muted)}.answers{min-width:0}.ask{margin:0 0 10px;color:var(--muted);font-size:.92rem}.score{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;padding:10px 12px;margin-bottom:10px;border-radius:8px;background:#fef3c7;border:1px solid #f59e0b}.score.perfect{background:var(--right-bg);border-color:var(--right)}.score strong{font-size:1.1rem}table{width:100%;border-collapse:collapse;background:var(--panel);border:1px solid var(--line);border-radius:8px}thead th{text-align:left;font-size:.78rem;color:var(--muted);font-weight:600;padding:6px 8px;border-bottom:1px solid var(--line)}tbody th{width:3rem;text-align:center;font-variant-numeric:tabular-nums;padding:3px 6px}tbody td{padding:3px 6px}tbody tr+tr>*{border-top:1px solid #eeeae0}tbody tr.active th{background:var(--active)}input{width:100%;min-width:0;padding:7px 9px;border:1px solid var(--line);border-radius:6px;font:inherit;font-size:16px;color:var(--ink);background:#fff}input:focus{outline:2px solid var(--accent);outline-offset:0;border-color:var(--accent)}input.right,input.kept{background:var(--right-bg);border-color:#86efac}input.wrong{background:var(--wrong-bg);border-color:#fca5a5}input.wrong:not(:placeholder-shown){text-decoration:line-through}.verdict{font-weight:600;white-space:nowrap}td.pair{min-width:300px;display:grid;grid-template-columns:1fr 1fr;gap:6px}.verdict .ok{color:var(--right)}.verdict .no{color:var(--wrong)}.verdict div+div{margin-top:2px}tr.right .verdict{color:var(--right)}tr.wrong .verdict{color:var(--wrong)}.verdict small{font-weight:400;color:var(--muted)}.actions{position:sticky;bottom:0;display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:10px 0;background:linear-gradient(to top,var(--bg) 70%,transparent)}.actions button{padding:9px 16px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font:inherit;font-weight:600;cursor:pointer}.actions button.primary{background:var(--accent);border-color:var(--accent);color:#fff}.count{color:var(--muted);font-size:.9rem}@media (min-width: 1000px){main{grid-template-columns:minmax(0,1.55fr) minmax(340px,1fr);align-items:start}.map-col{position:sticky;top:8px}.map{max-height:calc(100vh - 40px)}}@media (max-width: 999px){.map-col{position:sticky;top:0;z-index:2;background:var(--bg);padding-bottom:2px}.map{max-height:52vh}.verdict{white-space:normal}}
