:root{--bg: #0e1017;--panel: #141824;--ink: #f2f0e9;--muted: #9aa0b2;--water: #10131f;--water-edge: rgba(120, 140, 200, .14);--island: #222a3d;--island-edge: #3b4560;--disc-ink: #e8ecf7;--bridge: #cdd6ea;--sel: #38bdf8;--good: #4ade80;--bad: #f87171;--hintc: #fbbf24;--accent: #93c5fd}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:radial-gradient(1100px 640px at 50% -8%,#1b2030 0%,var(--bg) 60%);color:var(--ink);font:15px/1.5 ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif}main{max-width:680px;margin:0 auto;padding:32px 20px 48px;text-align:center}h1{margin:0;font-size:34px;letter-spacing:.5px}h1 span{color:var(--sel);text-shadow:0 0 18px rgba(56,189,248,.5)}.sub{margin:6px auto 20px;max-width:520px;color:var(--muted)}#wrap{display:flex;justify-content:center}#board{background:var(--water);border-radius:14px;border:1px solid var(--water-edge);box-shadow:0 20px 60px #00000080;padding:6px;transition:filter .35s ease;touch-action:manipulation}#board.won{filter:drop-shadow(0 0 12px rgba(74,222,128,.45))}.edge .hit{stroke:transparent;cursor:pointer}.edge .bridge{stroke:var(--bridge);stroke-width:2.4;stroke-linecap:round;pointer-events:none;transition:stroke .15s ease}.edge.crossed .bridge{stroke:var(--bad)}.edge.hinted .bridge{stroke:var(--hintc);animation:pulse .9s ease-in-out 2}.island .disc{fill:var(--island);stroke:var(--island-edge);stroke-width:1.5;transition:stroke .15s ease,fill .15s ease}.island .label{fill:var(--disc-ink);font-family:ui-sans-serif,system-ui,sans-serif;font-weight:700;font-variant-numeric:tabular-nums;pointer-events:none}.island.done .disc{fill:#16351f;stroke:var(--good)}.island.done .label{fill:var(--good)}.island.over .disc{fill:#3a1a1d;stroke:var(--bad)}.island.over .label{fill:var(--bad)}@keyframes pulse{0%,to{stroke:var(--bridge)}50%{stroke:var(--hintc)}}.hud{margin:18px auto 4px;color:var(--muted);font-size:13px;min-height:20px}#status.win{color:var(--good);font-weight:700;text-shadow:0 0 14px rgba(74,222,128,.5)}#status.bad{color:var(--bad)}.controls{display:flex;gap:10px;justify-content:center;align-items:center;flex-wrap:wrap;margin-top:12px}select,.controls button{font:inherit;border-radius:9px;border:1px solid rgba(120,140,200,.25);background:var(--panel);color:var(--ink);padding:7px 13px;cursor:pointer}.controls button:hover{border-color:var(--accent)}#solve{border-color:var(--sel);color:var(--sel)}label{color:var(--muted);font-size:13px}label select{margin-left:6px}.note{margin:26px auto 0;max-width:600px;color:var(--muted);font-size:13px;text-align:left}.note strong,.note em{color:var(--ink)}
