:root {
  --cell-size: 34px;
  --gap: 4px;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  display: flex;
  justify-content: center;
  padding: 24px;
  background: #0b1220;
  color: #e6eef8;
}

main {
  width: 900px;
}

#controls {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

#status {
  font-weight: 600;
}

#boards {
  display: flex;
  gap: 24px;
}

.board-wrap {
  background: #0f1724;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}

.board {
  display: grid;
  gap: var(--gap);
  margin-top: 8px;
  width: calc(var(--cell-size) * 10 + var(--gap) * 9);
}

.cell {
  width: var(--cell-size);
  height: var(--cell-size);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #07192b;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
}

.cell.ship {
  background: #2a6f97;
  color: #07192b;
}

.cell.hit {
  background: #b33a3a;
  color: white;
}

.cell.miss {
  background: #1f4b67;
  color: #9cc3e6;
}

button {
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: #0ea5a5;
  color: #042023;
  font-weight: 700;
}
