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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ff1493 0%, #ff4500 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(255, 20, 147, 0.6), 0 10px 50px rgba(0, 0, 0, 0.5);
    border: 2px solid #ff1493;
}

.game-title {
    font-size: 48px;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 0 20px #ff4500, 0 0 40px #ff1493;
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    gap: 20px;
    border: 2px solid #ff4500;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.5);
    transition: all 0.3s ease;
    border: 2px solid #ff1493;
    color: white;
}

.player-info.active {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 69, 0, 0.8);
    border: 3px solid #ff4500;
}

.player-disc {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.black-disc {
    background: radial-gradient(circle at 30% 30%, #4a4a4a, #000000);
}

.white-disc {
    background: radial-gradient(circle at 30% 30%, #ffffff, #d0d0d0);
}

.player-details {
    text-align: left;
}

.player-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.player-score {
    font-size: 24px;
    font-weight: bold;
    color: #1e3c72;
}

.turn-indicator {
    font-size: 24px;
    font-weight: bold;
    color: #1e3c72;
    padding: 10px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#gameCanvas {
    border: 4px solid #1e3c72;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    background: #2d8659;
}

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

.btn {
    padding: 12px 30px;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid #ff1493;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 20, 147, 0.6), 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 69, 0, 0.8), 0 6px 15px rgba(0, 0, 0, 0.4);
    border-color: #ff4500;
}

.btn:active {
    transform: translateY(0);
}

.btn:not(.btn-secondary) {
    background: linear-gradient(135deg, #ff1493 0%, #ff4500 100%);
    color: white;
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-color: white;
}

.message {
    margin-top: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #1e3c72;
    min-height: 30px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    max-width: 400px;
}

.modal-content h2 {
    font-size: 36px;
    color: #1e3c72;
    margin-bottom: 20px;
}

.modal-content p {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.final-scores {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
}

.final-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.final-score span {
    font-size: 32px;
    font-weight: bold;
    color: #1e3c72;
}

/* Responsive */
@media (max-width: 768px) {
    .game-title {
        font-size: 36px;
    }
    
    #gameCanvas {
        width: 100%;
        height: auto;
    }
    
    .game-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

