.battle-page .game-panel {
  display: grid;
  gap: 1rem;
}

.battle-ui {
  border: 1px solid rgba(132, 173, 255, 0.42);
  border-radius: 1.1rem;
  padding: 1rem;
  background:
    radial-gradient(circle at 16% 2%, rgba(111, 123, 255, 0.24), transparent 34%),
    radial-gradient(circle at 84% 8%, rgba(37, 236, 255, 0.2), transparent 30%),
    radial-gradient(circle at 56% -10%, rgba(255, 79, 198, 0.16), transparent 35%),
    linear-gradient(160deg, rgba(23, 35, 86, 0.95), rgba(20, 18, 57, 0.92));
}

.battle-topbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  align-items: center;
}

.battle-stat {
  border: 1px solid rgba(132, 173, 255, 0.42);
  border-radius: 0.8rem;
  background: rgba(18, 30, 77, 0.56);
  padding: 0.55rem 0.7rem;
  display: grid;
  gap: 0.25rem;
}

.battle-stat span {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d2ddff;
}

.battle-stat strong {
  font-family: "Orbitron", system-ui, sans-serif;
  font-size: 1.02rem;
}

.battle-hint {
  margin: 0.8rem 0 0;
  color: #c9d8ff;
  font-size: 0.9rem;
  min-height: 1.3rem;
}

.placement-controls {
  margin-top: 0.85rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.battle-boards {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.board-panel {
  border: 1px solid rgba(120, 161, 244, 0.38);
  border-radius: 0.9rem;
  padding: 0.7rem;
  background: rgba(10, 18, 55, 0.5);
}

.board-panel h2 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.battle-grid {
  --cell: 30px;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, var(--cell)));
  gap: 3px;
  width: fit-content;
}

.battle-cell {
  width: var(--cell);
  height: var(--cell);
  border: 1px solid rgba(177, 207, 244, 0.35);
  border-radius: 0.35rem;
  background: linear-gradient(160deg, rgba(40, 67, 96, 0.95), rgba(22, 39, 58, 0.95));
  cursor: pointer;
}

.battle-cell--ship {
  background: linear-gradient(160deg, rgba(114, 180, 255, 0.86), rgba(66, 120, 192, 0.9));
}

.battle-cell--hit {
  background: linear-gradient(160deg, rgba(255, 138, 138, 0.9), rgba(165, 42, 42, 0.92));
}

.battle-cell--miss {
  background: linear-gradient(160deg, rgba(94, 114, 132, 0.82), rgba(61, 79, 95, 0.9));
}

.battle-cell--cpu-hidden {
  background: linear-gradient(160deg, rgba(38, 61, 91, 0.94), rgba(22, 36, 56, 0.96));
}

.battle-cell--locked {
  cursor: default;
  opacity: 0.72;
}

@media (max-width: 980px) {
  .battle-page .game-panel {
    padding: 0.8rem;
  }

  .battle-boards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .battle-topbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .battle-hint {
    font-size: 0.84rem;
  }

  .battle-grid {
    --cell: 27px;
  }
}

.battle-cell--preview {
  background: linear-gradient(160deg, rgba(141, 214, 255, 0.65), rgba(74, 146, 211, 0.7));
  box-shadow: 0 0 0 1px rgba(207, 238, 255, 0.55) inset;
}

.battle-ui,
.battle-grid,
.battle-cell {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
