body { font-family: Arial, sans-serif; background: #f7f7f7; margin: 0; }
.container { max-width: 900px; margin: 40px auto; background: #fff; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); padding: 24px; }
h1 { text-align: center; margin-bottom: 24px; }
#status, #game-status { text-align: center; margin: 12px 0; font-size: 1.1em; }

/* Battleship board styles */
.battleship-board { 
  display: grid; 
  grid-template-columns: repeat(10, 40px); 
  grid-template-rows: repeat(10, 40px); 
  gap: 1px; 
  justify-content: center; 
  margin: 20px auto;
  background: transparent;
  padding: 0;
  border: none;
}

.cell { 
  width: 40px; 
  height: 40px; 
  background: #4a90e2; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  cursor: pointer; 
  position: relative; 
  transition: all 0.2s;
  font-weight: bold;
}

.cell:hover.target {
  background: #ff9800;
  transform: scale(1.05);
}

.cell.ship-preview {
  background: #2196f3;
  opacity: 0.7;
}

#restart { display: block; margin: 0 auto; padding: 8px 24px; font-size: 1em; border-radius: 6px; border: none; background: #0077cc; color: #fff; cursor: pointer; }
#restart:hover { background: #005fa3; }

/* Mobile responsive styles */
@media (max-width: 900px) {
  .container { 
    margin: 20px auto; 
    padding: 16px; 
    border-radius: 8px;
    max-width: 100%;
  }
  
  h1 { 
    font-size: 1.5em; 
    margin-bottom: 16px; 
  }
  
  .battleship-board { 
    grid-template-columns: repeat(10, 30px); 
    grid-template-rows: repeat(10, 30px); 
  }
  
  .cell { 
    width: 30px; 
    height: 30px; 
    font-size: 0.9em; 
  }
  
  #status, #game-status { 
    font-size: 1em; 
    margin: 8px 0; 
  }
}