/* Battleship game module. */

.battleship {
  position: relative;
  width: 100%;
  height: 100%;
}

.battleship .boards {
  width: 100%;
  height: 100%;
  display: block;
}
.battleship .boards .grid-line { stroke: rgba(0, 0, 0, 0.45); stroke-width: 0.8; }
.battleship .boards .board-frame { fill: none; stroke: black; stroke-width: 1.5; }
.battleship .boards .ship-outline { fill: none; stroke: black; stroke-width: 1.5; }
.battleship .boards .miss-dot { fill: rgba(0, 0, 0, 0.55); }
.battleship .boards .hit-mark { stroke: black; stroke-width: 2.5; stroke-linecap: round; }
.battleship .boards .sunk-fill { fill: black; }
.battleship .boards .sunk-mark { stroke: white; stroke-width: 2.5; stroke-linecap: round; }
.battleship .boards .cell-target {
  fill: transparent;
  pointer-events: all;
  transition: fill 0.08s;
}
.app[data-state="playing"] .battleship .boards .cell-target.live { cursor: crosshair; }
.app[data-state="playing"] .battleship .boards .cell-target.live:hover { fill: rgba(0, 0, 0, 0.08); }
.battleship .boards .board-label {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  fill: rgba(0, 0, 0, 0.5);
  text-anchor: middle;
}

.battleship .bs-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.bs-controls {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 2;
}
.bs-btn-new {
  background: white;
  color: black;
  border: 1px solid black;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: 4px;
}
.bs-btn-new:hover { background: black; color: white; }
