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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    background: #000;
}

#game-container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

#ui-overlay {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 50px;
    z-index: 100;
    pointer-events: none;
}

#level-display, #time-display {
    color: #ff00ff;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff;
    letter-spacing: 2px;
}

#time-display {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
}

#minimap-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    pointer-events: none;
}

#minimap {
    width: 150px;
    height: 150px;
    border: 2px solid #ff00ff;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
    background: rgba(0, 0, 0, 0.7);
}

#start-screen, #level-complete-screen, #game-over-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.9);
    z-index: 200;
}

#start-screen h1, #level-complete-screen h1, #game-over-screen h1 {
    font-size: 56px;
    color: #ff00ff;
    text-shadow: 0 0 20px #ff00ff, 0 0 40px #ff00ff, 0 0 60px #ff00ff;
    margin-bottom: 20px;
    letter-spacing: 5px;
    animation: neon-glow 2s ease-in-out infinite alternate;
}

@keyframes neon-glow {
    from {
        text-shadow: 0 0 20px #ff00ff, 0 0 40px #ff00ff, 0 0 60px #ff00ff;
    }
    to {
        text-shadow: 0 0 30px #ff00ff, 0 0 60px #ff00ff, 0 0 90px #ff00ff, 0 0 120px #ff00ff;
    }
}

#game-over-screen h1 {
    color: #ff0000;
    animation: danger-glow 2s ease-in-out infinite alternate;
}

@keyframes danger-glow {
    from {
        text-shadow: 0 0 20px #ff0000, 0 0 40px #ff0000, 0 0 60px #ff0000;
    }
    to {
        text-shadow: 0 0 30px #ff0000, 0 0 60px #ff0000, 0 0 90px #ff0000, 0 0 120px #ff0000;
    }
}

#start-screen p, #level-complete-screen p, #game-over-screen p {
    color: #ffffff;
    font-size: 18px;
    margin: 10px 0;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

#level-time, #final-score {
    font-size: 28px !important;
    color: #00ffff !important;
    text-shadow: 0 0 15px #00ffff, 0 0 30px #00ffff;
    margin: 15px 0 !important;
}

#level-bonus {
    font-size: 24px !important;
    color: #ffff00 !important;
    text-shadow: 0 0 15px #ffff00, 0 0 30px #ffff00;
}

#levels-completed {
    font-size: 20px !important;
    color: #00ff00 !important;
}

button {
    margin-top: 25px;
    padding: 15px 50px;
    font-size: 18px;
    font-weight: bold;
    color: #000;
    background: linear-gradient(135deg, #ff00ff, #ff0088);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.8), 0 0 60px rgba(255, 0, 255, 0.5);
}

button:active {
    transform: scale(0.95);
}

#level-complete-screen button {
    background: linear-gradient(135deg, #00ff00, #00aa00);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

#level-complete-screen button:hover {
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.8), 0 0 60px rgba(0, 255, 0, 0.5);
}

/* Mobile controls hint */
#controls-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #666;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    z-index: 50;
    pointer-events: none;
}

@media (max-width: 768px) {
    #start-screen h1, #level-complete-screen h1, #game-over-screen h1 {
        font-size: 32px;
    }

    #level-display, #time-display {
        font-size: 16px;
    }

    #minimap {
        width: 100px;
        height: 100px;
    }
}
