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

body {
    font-family: Arial, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-container {
    width: 100%;
    max-width: 1000px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.game-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.score {
    display: flex;
    justify-content: center;
    gap: 4rem;
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

#gameCanvas {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(74, 158, 255, 0.2);
}

.controls {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.controls-info {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 600px;
    margin-bottom: 1rem;
}

.player-controls {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.player-controls h3 {
    margin-bottom: 0.5rem;
    color: #4a9eff;
}

.player-controls p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    background: linear-gradient(45deg, #4a9eff, #9b4aff);
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
}

button:hover {
    transform: translateY(-2px);
}

.win-message {
    font-size: 2rem;
    font-weight: bold;
    color: #4a9eff;
    text-align: center;
    min-height: 2.5rem;
    animation: glow 2s infinite;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(74, 158, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(74, 158, 255, 0.8);
    }
}

@media (max-width: 768px) {
    .game-container {
        padding: 1rem;
    }

    .score {
        font-size: 2rem;
        gap: 2rem;
    }

    .controls-info {
        flex-direction: column;
        gap: 1rem;
    }
}
