/* Schiffe versenken — Steam-Blue Accent (#66c0f4) */

.bs-area { display: flex; flex-direction: column; gap: 12px; }

/* ----- Placement ----- */
.bs-place {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(220px, 320px);
  gap: 20px;
  align-items: start;
}
@media (max-width: 720px) {
  .bs-place { grid-template-columns: 1fr; }
}

.bs-side h3 {
  margin: 0 0 8px;
  color: var(--accent, #66c0f4);
  font-size: 16px;
}
.bs-ship-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0 12px;
}
.bs-ship-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: var(--panel2);
  border: 2px solid transparent;
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  text-align: left;
}
.bs-ship-btn:hover:not(:disabled) { border-color: var(--accent, #66c0f4); }
.bs-ship-btn.selected { border-color: var(--accent, #66c0f4); background: rgba(102, 192, 244, 0.12); }
.bs-ship-btn.used { opacity: 0.4; cursor: default; }
.bs-ship-btn .bs-ship-glyph {
  font-family: ui-monospace, monospace;
  letter-spacing: 1px;
  color: var(--accent, #66c0f4);
}

.bs-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ----- Fire phase: two grids ----- */
.bs-fire {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 720px) {
  .bs-fire { grid-template-columns: 1fr; }
}

/* ----- Grid common ----- */
.bs-grid-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.bs-grid-title {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.bs-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
  background: #0d2740;
  border: 2px solid #1c3d5a;
  gap: 1px;
  padding: 1px;
  user-select: none;
}
.bs-cell {
  background: #0f3559;
  position: relative;
  transition: background 80ms;
}
.bs-grid-own .bs-cell.ship {
  background: #4a6378;
}
.bs-cell.preview-ok {
  background: rgba(90, 222, 122, 0.55);
}
.bs-cell.preview-bad {
  background: rgba(255, 93, 93, 0.55);
}
.bs-cell.miss::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 22%; height: 22%;
  border-radius: 50%;
  background: #c8d4e0;
  transform: translate(-50%, -50%);
}
.bs-cell.hit {
  background: #7a2222;
}
.bs-cell.hit::after {
  content: '✕';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffdada;
  font-weight: 700;
  font-size: clamp(12px, 2.6vw, 20px);
}
.bs-cell.sunk {
  background: #b03232 !important;
}
.bs-cell.sunk::after {
  color: #fff;
  text-shadow: 0 0 4px #000;
}
.bs-cell.last {
  outline: 2px solid #ffd95a;
  outline-offset: -2px;
  z-index: 1;
}

/* Opponent grid: clickable when fireable */
.bs-grid-opp .bs-cell.fireable {
  cursor: crosshair;
}
.bs-grid-opp .bs-cell.fireable:hover {
  background: rgba(102, 192, 244, 0.35);
}
.bs-grid-opp.locked .bs-cell { cursor: not-allowed; }
.bs-grid-opp.locked { opacity: 0.75; }
