/* Hashi (wwwroot/js/hashi.js): a square panel, the bridges in an SVG over it, the islands are round buttons placed by percentages. */
.hashi-wrap { margin: 1.25rem auto .75rem; width: min(calc(100% - 1.5rem), 30rem); }
.hashi-board {
    position: relative;
    aspect-ratio: 1;
    background: var(--game-panel, #fff);
    border-radius: .75rem;
    box-shadow: 0 0 0 .2rem var(--game-frame, #212529);
    background-image: radial-gradient(circle, #ced4da 1.5px, transparent 2px);
    background-size: calc(100% / var(--hs-n)) calc(100% / var(--hs-n));
    user-select: none;
    -webkit-user-select: none;
}
.hs-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hs-bridge { stroke: #212529; stroke-width: .06; stroke-linecap: round; }
.hs-bridge.hs-hinted { stroke: var(--bs-success); }
.hs-hit { stroke: transparent; stroke-width: .5; pointer-events: stroke; cursor: pointer; }
.hs-island {
    position: absolute;
    width: calc(72% / var(--hs-n));
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 3px solid #212529;
    background: #fff;
    color: #212529;
    font-weight: 800;
    font-size: clamp(.8rem, 5vw, 1.7rem);
    line-height: 1;
    padding: 0;
    touch-action: manipulation;
}
.hs-island.hs-done { background: color-mix(in srgb, var(--bs-success) 22%, #fff); border-color: var(--bs-success); }
.hs-island.hs-near { box-shadow: 0 0 0 4px color-mix(in srgb, var(--bs-primary) 45%, transparent); }
.hs-island.hs-full { background: #f8d7da; box-shadow: 0 0 0 5px #dc3545; animation: hs-shake .4s; }
@keyframes hs-shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .hs-island.hs-full { animation: none; } }
.hs-island.hs-selected { background: color-mix(in srgb, var(--bs-primary) 35%, #fff); box-shadow: 0 0 0 4px var(--bs-primary); }
.hashi-board[style*="--hs-n: 11"] .hs-island { font-size: clamp(.65rem, 3.8vw, 1.3rem); border-width: 2px; }
