.bridge-board{position:relative;width:min(100%,40rem);min-height:24rem;background:linear-gradient(145deg,#eaf7f5,#f9fcfb);border:1px solid var(--brand-100);border-radius:18px;box-shadow:inset 0 0 2rem rgb(23 107 91/.05)}
.bridge-edge{position:absolute;z-index:1;padding:0;background:transparent;border:0;cursor:pointer;transform:translate(-1px,-50%)}.bridge-edge.is-h{min-height:44px}.bridge-edge.is-v{min-width:44px;transform:translate(-50%,-1px)}.bridge-edge span{position:absolute;inset:50% 0 auto;height:4px;background:#c7d7d3;border-radius:4px;transform:translateY(-50%)}.bridge-edge.is-v span{inset:0 auto 0 50%;width:4px;height:auto;transform:translateX(-50%)}.bridge-edge.has-1 span{background:#287467}.bridge-edge.has-2 span{height:10px;background:linear-gradient(to bottom,#287467 0 3px,transparent 3px 7px,#287467 7px 10px)}.bridge-edge.is-v.has-2 span{width:10px;height:auto;background:linear-gradient(to right,#287467 0 3px,transparent 3px 7px,#287467 7px 10px)}.bridge-edge i{display:none;position:absolute;inset:50% auto auto 50%;color:#9d6040;font-size:1.1rem;font-style:normal;font-weight:900;transform:translate(-50%,-50%)}.bridge-edge.is-blocked i{display:block}.bridge-edge.is-blocked span{background:#e2e8e6}.bridge-edge.is-conflict span{background:#c44b3e}.bridge-edge.is-h.is-hint{box-shadow:0 0 0 4px #efb84d}.bridge-edge.is-v.is-hint{box-shadow:0 0 0 4px #efb84d}.bridge-edge:focus-visible{outline:3px solid #efb84d;outline-offset:-4px}
.bridge-island{position:absolute;z-index:2;display:grid;place-items:center;width:clamp(42px,8vw,58px);height:clamp(42px,8vw,58px);padding:0;color:#153e36;background:#fff;border:3px solid #287467;border-radius:50%;font:inherit;cursor:pointer;transform:translate(-50%,-50%);box-shadow:0 .25rem .65rem rgb(18 65 55/.13)}.bridge-island strong{font-size:clamp(.85rem,3vw,1.25rem)}.bridge-island small{position:absolute;right:-.15rem;bottom:-.15rem;display:grid;place-items:center;width:1.25rem;aspect-ratio:1;color:#fff;background:#5d746e;border:2px solid #fff;border-radius:50%;font-size:.5rem}.bridge-island.is-finished{color:#fff;background:#287467}.bridge-island.is-selected{box-shadow:0 0 0 6px rgb(239 184 77/.45)}.bridge-island.is-conflict{border-color:#c44b3e;background:#fff0ee}.bridge-island.is-hint{box-shadow:0 0 0 6px rgb(239 184 77/.55)}.bridge-island:focus-visible{outline:4px solid #efb84d;outline-offset:3px}
@media(max-width:600px){.bridge-board{min-height:22rem;border-radius:12px}.bridge-island{width:44px;height:44px;border-width:2px}.bridge-edge.has-1 span{height:3px}.bridge-edge.has-2 span{height:8px;background:linear-gradient(to bottom,#287467 0 2px,transparent 2px 6px,#287467 6px 8px)}.bridge-edge.is-v.has-2 span{width:8px;height:auto;background:linear-gradient(to right,#287467 0 2px,transparent 2px 6px,#287467 6px 8px)}}
