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

:root {
    --primary-color: #4e54c8;
    --secondary-color: #8f94fb;
    --accent-color: #00ff9d;
    --background-dark: #1a1b1f;
    --text-color: #ffffff;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(45deg, var(--background-dark), #2a2b31);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.game-container {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-header {
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.score-board {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.8rem;
    border-radius: 10px;
    margin: 1rem 0;
}

#game-board {
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 20px rgba(78, 84, 200, 0.3);
}

.controls {
    margin-top: 1.5rem;
}

button {
    padding: 12px 24px;
    font-size: 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 84, 200, 0.4);
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
}

button:active {
    transform: translateY(0);
}

#start-btn {
    margin-right: 1rem;
    background: linear-gradient(45deg, #00ff9d, #00b8ff);
}

#start-btn:hover {
    background: linear-gradient(45deg, #00b8ff, #00ff9d);
}

.mobile-controls {
    display: none;
    margin-top: 2rem;
    text-align: center;
}

.mobile-btn {
    width: 70px;
    height: 70px;
    margin: 8px;
    font-size: 1.8rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mobile-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(78, 84, 200, 0.4);
}

.mobile-btn:active {
    transform: scale(0.95);
}

.horizontal-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.power-up-status {
    margin-top: 10px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    font-size: 0.9rem;
    min-height: 25px;
}

/* Add animation for power-up effects */
@keyframes powerupGlow {
    0% { box-shadow: 0 0 5px var(--accent-color); }
    50% { box-shadow: 0 0 20px var(--accent-color); }
    100% { box-shadow: 0 0 5px var(--accent-color); }
}

.power-up-active #game-board {
    animation: powerupGlow 1s infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@media (max-width: 768px) {
    .mobile-controls {
        display: block;
    }
    
    .game-container {
        padding: 1rem;
        margin: 1rem;
        width: 95%;
    }
    
    canvas {
        width: 100%;
        height: auto;
        max-width: 400px;
    }
    
    .score-board {
        flex-direction: column;
        gap: 0.5rem;
    }
}
