* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    text-align: center;
    max-width: 1200px;
    width: 100%;
}

h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.status {
    background: white;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.status.human-turn {
    background: #4CAF50;
    color: white;
}

.status.computer-turn {
    background: #FF9800;
    color: white;
}

.status.game-over {
    background: #f44336;
    color: white;
    font-size: 1.5rem;
}

.boards-container {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.board-wrapper {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.board-wrapper h2 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.5rem;
}

.board {
    display: grid;
    grid-template-columns: repeat(10, 40px);
    grid-template-rows: repeat(10, 40px);
    gap: 2px;
    background: #ccc;
    padding: 2px;
    border: 3px solid #333;
}

.cell {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.cell:hover {
    background: #bbdefb;
    transform: scale(1.1);
}

/* Ship cells (only visible on player's board) */
.cell.ship {
    background: #2196F3;
    border-color: #1976D2;
}

.cell.ship:hover {
    background: #1976D2;
}

/* Hit cells */
.cell.hit {
    background: #f44336;
    border-color: #d32f2f;
    cursor: not-allowed;
}

.cell.hit::before {
    content: '✕';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: white;
    font-weight: bold;
}

.cell.hit:hover {
    transform: none;
}

/* Miss cells */
.cell.miss {
    background: #90a4ae;
    border-color: #607d8b;
    cursor: not-allowed;
}

.cell.miss::before {
    content: '○';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: white;
}

.cell.miss:hover {
    transform: none;
    background: #90a4ae;
}

/* Sunk ship cells */
.cell.sunk {
    background: #880e4f;
    border-color: #560027;
    animation: sunk 0.5s ease;
}

@keyframes sunk {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Disable clicking on already attacked cells */
.cell.hit,
.cell.miss {
    pointer-events: none;
}

/* Responsive design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    .boards-container {
        gap: 20px;
    }
    
    .board {
        grid-template-columns: repeat(10, 30px);
        grid-template-rows: repeat(10, 30px);
    }
    
    .cell.hit::before {
        font-size: 18px;
    }
    
    .cell.miss::before {
        font-size: 16px;
    }
}