.ag-game-nurikabe{--nk-black:#1b2340;--nk-white:#e9eefc;--nk-ink:#e6ecff;--nk-line:#7eb6ff;--nk-bad:#ff7a90}:root[data-theme=light] .ag-game-nurikabe{--nk-black:#1b2340;--nk-white:#fff;--nk-ink:#1b2244;--nk-line:#1d4ed8;--nk-bad:#c3002f}.ag-game-nurikabe .nk-campaign{width:min(100%,560px);color:var(--muted);text-align:center;margin:0;font-size:.86rem;font-weight:700}.ag-game-nurikabe .nk-tools{flex-wrap:wrap;justify-content:center;gap:8px;margin:0;display:flex}.ag-game-nurikabe .nk-tool{min-height:44px;padding:0 14px}.ag-game-nurikabe .nk-tool.is-on{outline:2px solid var(--nk-line)}.ag-game-nurikabe .nk-board{--gap:3px;grid-template-columns:repeat(var(--n),1fr);gap:var(--gap);aspect-ratio:1;width:min(100%,460px,max(280px,100dvh - 360px));padding:var(--gap);box-sizing:border-box;touch-action:manipulation;user-select:none;background:var(--panel-soft);border-radius:8px;margin:12px auto;display:grid;position:relative}.ag-game-nurikabe .nk-board:focus{outline:none}.ag-game-nurikabe .nk-board.is-shake{animation:.32s nk-shake}@keyframes nk-shake{0%,to{transform:translate(0)}25%{transform:translate(-6px)}75%{transform:translate(6px)}}.ag-game-nurikabe .nk-cell{background:color-mix(in srgb,var(--panel-soft) 70%,var(--nk-white) 30%);cursor:pointer;min-width:0;min-height:0;font:inherit;color:var(--nk-ink);border:0;border-radius:4px;place-items:center;margin:0;padding:0;display:grid;position:relative}.ag-game-nurikabe .nk-cell.is-white{background:var(--nk-white)}.ag-game-nurikabe .nk-cell.is-black{background:var(--nk-black)}.ag-game-nurikabe .nk-cell.is-clue{background:var(--nk-white)}.ag-game-nurikabe .nk-cell.is-hint{outline:2px dashed var(--nk-line);outline-offset:-3px}.ag-game-nurikabe .nk-cell.is-cursor{box-shadow:inset 0 0 0 2px var(--nk-line)}.ag-game-nurikabe .nk-cell:focus-visible{outline:2px solid var(--nk-line);outline-offset:1px}.ag-game-nurikabe .nk-cell:disabled{cursor:default}.ag-game-nurikabe .nk-clue{color:#1b2340;pointer-events:none;font-size:clamp(.8rem,3vw,1.1rem);font-weight:800}.ag-game-nurikabe .nk-note{width:min(100%,560px)}.ag-game-nurikabe .nk-next{margin-inline:4px}
