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

body {
    background: #000;
    overflow: hidden;
    font-family: 'Orbitron', monospace;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, #0a0015 0%, #1a0030 50%, #0a0015 100%);
}

#gameCanvas {
    display: block;
    background: transparent;
}

#ui-overlay {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    z-index: 10;
}

#level-name {
    font-size: 18px;
    font-weight: 700;
    color: #00ffff;
    text-shadow: 0 0 15px #00ffff;
    letter-spacing: 6px;
    margin-bottom: 5px;
}

#score {
    font-size: 72px;
    font-weight: 900;
    color: #fff;
    text-shadow: 
        0 0 20px #ff00ff,
        0 0 40px #ff00ff,
        0 0 60px #ff00ff;
    letter-spacing: 8px;
}

#high-score {
    font-size: 14px;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    letter-spacing: 4px;
}

#start-screen,
#game-over-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 20;
}

#start-screen h1 {
    font-size: 64px;
    font-weight: 900;
    color: #fff;
    text-shadow: 
        0 0 20px #ff00ff,
        0 0 40px #ff00ff,
        0 0 80px #ff00ff,
        0 0 120px #8800ff;
    letter-spacing: 12px;
    margin-bottom: 10px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        text-shadow: 
            0 0 20px #ff00ff,
            0 0 40px #ff00ff,
            0 0 80px #ff00ff,
            0 0 120px #8800ff;
    }
    50% { 
        text-shadow: 
            0 0 30px #ff00ff,
            0 0 60px #ff00ff,
            0 0 100px #ff00ff,
            0 0 160px #8800ff;
    }
}

.subtitle {
    font-size: 16px;
    color: #00ffff;
    text-shadow: 0 0 15px #00ffff;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-bottom: 50px;
}

.instructions {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.key {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 0, 255, 0.2);
    border: 1px solid #ff00ff;
    border-radius: 6px;
    color: #ff00ff;
    font-weight: 700;
    margin: 0 5px;
}

button {
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    font-weight: 700;
    padding: 18px 60px;
    background: transparent;
    border: 2px solid #ff00ff;
    color: #ff00ff;
    cursor: pointer;
    letter-spacing: 4px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

button:hover::before {
    left: 100%;
}

button:hover {
    background: rgba(255, 0, 255, 0.2);
    box-shadow: 
        0 0 20px rgba(255, 0, 255, 0.5),
        inset 0 0 20px rgba(255, 0, 255, 0.1);
    transform: scale(1.05);
}

#game-over-screen h2 {
    font-size: 48px;
    font-weight: 900;
    color: #ff3366;
    text-shadow: 
        0 0 20px #ff3366,
        0 0 40px #ff3366;
    letter-spacing: 8px;
    margin-bottom: 20px;
    animation: glitch 0.5s ease-in-out;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-5px, 5px); }
    40% { transform: translate(5px, -5px); }
    60% { transform: translate(-5px, -5px); }
    80% { transform: translate(5px, 5px); }
}

.final-score {
    font-size: 24px;
    color: #fff;
    text-shadow: 0 0 10px #fff;
    margin-bottom: 15px;
    letter-spacing: 4px;
}

.checkpoint-info {
    font-size: 18px;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    margin-bottom: 40px;
    letter-spacing: 3px;
}

#checkpoint-value {
    color: #00ff00;
    font-weight: 700;
}

#final-score-value {
    color: #00ffff;
    text-shadow: 0 0 15px #00ffff;
}

.hidden {
    display: none !important;
}

/* Scanline effect */
#game-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 100;
}

