/* Battleship — dual 10×10 grids + placement UX. Shares lobby styles
   from souq.css. */

.bs-banner {
  text-align: center;
  font-size: 1rem; font-weight: 600;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  margin: 12px 0;
  font-family: "Poppins", system-ui, sans-serif;
}

.bs-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
}
@media (max-width: 820px) {
  .bs-layout { grid-template-columns: 1fr; }
  .souq-sidebar { order: 2; }
}

.bs-grids {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .bs-grids { grid-template-columns: 1fr; }
}

.bs-grid-wrap {
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 10px;
}
.bs-grid-wrap h4 { margin: 0 0 8px; font-size: .95rem; text-align: center; font-family: "Poppins", sans-serif; }

.bs-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 1px;
  aspect-ratio: 1 / 1;
  width: 100%;
  background: #123a58;
  border: 2px solid #0c2a42;
  border-radius: 4px;
  overflow: hidden;
}
.bs-cell {
  aspect-ratio: 1 / 1;
  min-width: 0;
  background: #2776b3;
  position: relative;
  cursor: default;
  transition: background 0.1s;
}
.bs-cell.clickable { cursor: crosshair; }
.bs-cell.clickable:hover { background: #3e8fc9; }
.bs-cell.own-ship { background: #3a3a3a; }
.bs-cell.hit {
  background: #d24545;
  background-image: radial-gradient(circle at center, #ff8080 0%, #8a0f0f 70%);
}
.bs-cell.miss {
  background: #1c4d72;
}
.bs-cell.miss::after {
  content: "•"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); font-size: 1.4rem; line-height: 1;
}
.bs-cell.sunk {
  background: #4a0a0a;
}
.bs-cell.preview {
  background: rgba(80, 200, 100, 0.6);
  outline: 1px solid rgba(80, 200, 100, 0.9);
}
.bs-cell.preview-bad {
  background: rgba(220, 80, 80, 0.6);
  outline: 1px solid rgba(220, 80, 80, 0.9);
}

.bs-ships { list-style: none; margin: 6px 0 10px; padding: 0; }
.bs-ships li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 10px; margin-bottom: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  font-size: .9rem;
  cursor: pointer;
}
.bs-ships li.selected { border-color: #4ea1ff; background: rgba(78,161,255,0.15); }
.bs-ships li.placed { opacity: .6; }
.bs-ship-buttons {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 12px;
}
.bs-ship-buttons .btn { flex: 1 1 auto; min-width: 100px; }

.souq-roster-row .tag.ready { background: rgba(80, 200, 120, 0.25); }
.souq-roster-row .tag.ships { background: rgba(100, 180, 255, 0.22); font-family: "Menlo", monospace; }
