.jp-bs-game { display:grid; gap:1rem; }
.jp-bs-controls { display:flex; flex-wrap:wrap; align-items:end; gap:.6rem; }
.jp-bs-controls label { display:grid; gap:.25rem; }
.jp-bs-controls select { font:inherit; padding:.5rem; }
.jp-bs-boards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.5rem; }
.jp-bs-boards section { min-width:0; }
.jp-bs-board { display:grid; grid-template-columns:repeat(11,minmax(0,1fr)); gap:2px; max-width:480px; }
.jp-bs-axis { display:grid; place-items:center; font-size:.75rem; }
.jp-bs-cell { aspect-ratio:1; min-width:0; padding:0; border:1px solid #94a3b8; border-radius:3px; background:#e0f2fe; color:#0c4a6e; font:inherit; font-weight:700; cursor:pointer; touch-action:manipulation; }
.jp-bs-cell[data-state="ship"] { background:#475569; color:white; }
.jp-bs-cell[data-state="hit"] { background:#fee2e2; color:#991b1b; }
.jp-bs-cell[data-state="sunk"] { background:#991b1b; color:white; }
.jp-bs-cell[data-state="miss"] { background:#f1f5f9; color:#334155; }
.jp-bs-cell[aria-disabled="true"] { cursor:default; }
.jp-bs-cell:focus-visible { outline:3px solid #2563eb; outline-offset:1px; z-index:1; }
#bsStatus { font-weight:600; min-height:2em; }
.jp-bs-legend { font-size:.9rem; }
@media(max-width:760px) { .jp-bs-boards { grid-template-columns:1fr; } }
