:root {
    --bg-color: #050505;
    --neon-green: #39ff14;
    --neon-blue: #00ffff;
    --neon-pink: #ff00ff;
    --text-color: #ffffff;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Orbitron', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

#game-container {
    position: relative;
    box-shadow: 0 0 20px var(--neon-blue), 0 0 40px rgba(0, 255, 255, 0.2);
    border: 2px solid var(--neon-blue);
    border-radius: 4px;
}

canvas {
    display: block;
    background-color: rgba(0, 0, 0, 0.8);
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#score-board {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 24px;
    text-shadow: 0 0 10px var(--neon-green);
    color: var(--neon-green);
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.85);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.screen.active {
    opacity: 1;
    pointer-events: auto;
}

h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink);
    letter-spacing: 4px;
}

p {
    font-size: 24px;
    color: var(--neon-blue);
    text-shadow: 0 0 5px var(--neon-blue);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

/* V2 Additions */
.glitch-effect {
    animation: glitch 1s infinite;
}

@keyframes glitch {
    0% {
        text-shadow: 2px 0 var(--neon-pink), -2px 0 var(--neon-blue);
    }

    25% {
        text-shadow: -2px 0 var(--neon-pink), 2px 0 var(--neon-blue);
    }

    50% {
        text-shadow: 2px 0 var(--neon-blue), -2px 0 var(--neon-pink);
    }

    75% {
        text-shadow: -2px 0 var(--neon-blue), 2px 0 var(--neon-pink);
    }

    100% {
        text-shadow: 2px 0 var(--neon-pink), -2px 0 var(--neon-blue);
    }
}

#powerup-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 20px;
    display: flex;
    gap: 10px;
}

.powerup-badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    text-shadow: 0 0 5px currentColor;
    opacity: 0;
    transition: opacity 0.3s;
    position: relative;
    overflow: hidden;
}

.powerup-badge.active {
    opacity: 1;
}

.timer-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.5);
}

.timer-fill {
    height: 100%;
    width: 100%;
    background: currentColor;
    transform-origin: left;
}

.powerup-ghost {
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
}

.powerup-speed {
    color: #ff3333;
    border: 1px solid #ff3333;
}

.powerup-shield {
    color: #ffffff;
    border: 1px solid #ffffff;
    opacity: 0.5;
}

.powerup-shield.active {
    opacity: 1;
}

/* Upgrade Screen */
#card-container {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.mutation-card {
    background: rgba(10, 10, 10, 0.9);
    border: 2px solid var(--neon-green);
    padding: 20px;
    width: 150px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mutation-card:hover,
.mutation-card.selected {
    transform: translateY(-10px);
    box-shadow: 0 0 20px var(--neon-green);
    background: rgba(20, 20, 20, 1);
    border-color: var(--neon-pink);
}

.mutation-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.mutation-title {
    font-size: 16px;
    color: var(--neon-green);
    margin-bottom: 10px;
    font-weight: bold;
}

.mutation-desc {
    font-size: 12px;
    color: #ccc;
}