* {
    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 {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.player-info {
    display: flex;
    gap: 20px;
}

.player {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: bold;
}

.player1 {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.player2 {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.player-piece {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
}

.player1 .player-piece {
    background: #3498db;
}

.player2 .player-piece {
    background: #e74c3c;
}

.game-status {
    text-align: center;
    font-weight: bold;
    color: #333;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(7, 1fr);
    gap: 2px;
    background: #8B4513;
    padding: 10px;
    border-radius: 10px;
    margin: 20px 0;
    aspect-ratio: 1;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cell {
    background: #FFD700;
    border: 2px solid #DAA520;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 60px;
}

.cell:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cell.empty {
    background: #FFD700;
}

.cell.removed {
    background: #8B4513;
    border-color: #654321;
    cursor: not-allowed;
}

.cell.player1 {
    background: #3498db;
    border-color: #2980b9;
}

.cell.player2 {
    background: #e74c3c;
    border-color: #c0392b;
}

.cell.highlighted {
    background: #2ecc71 !important;
    border-color: #27ae60 !important;
    animation: pulse 1s infinite;
}

.cell.possible-move {
    background: #f39c12 !important;
    border-color: #e67e22 !important;
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.piece {
    width: 80%;
    height: 80%;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.piece.player1 {
    background: radial-gradient(circle, #3498db, #2980b9);
    border: 3px solid #2c3e50;
}

.piece.player2 {
    background: radial-gradient(circle, #e74c3c, #c0392b);
    border: 3px solid #2c3e50;
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

button {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

#newGame {
    background: #2ecc71;
    color: white;
}

#newGame:hover {
    background: #27ae60;
    transform: translateY(-2px);
}

#resetGame {
    background: #e74c3c;
    color: white;
}

#resetGame:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.game-rules {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.game-rules h3 {
    color: #333;
    margin-bottom: 10px;
}

.game-rules ol {
    padding-left: 20px;
    color: #666;
    line-height: 1.6;
}

.game-rules li {
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .game-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .player-info {
        justify-content: center;
    }
    
    .cell {
        min-height: 40px;
    }
    
    .game-controls {
        flex-direction: column;
        align-items: center;
    }
    
    button {
        width: 200px;
    }
}
