/* Cyber Runner - Styles */

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

body {
    background: #0a0a0f;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#game-container {
    position: relative;
    width: 800px;
    height: 600px;
    max-width: 100vw;
    max-height: 100vh;
    background: #0a0a0f;
}

#game-canvas {
    display: block;
    width: 100%;
    height: 100%;
    border: 2px solid #ff00ff;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5),
                inset 0 0 20px rgba(0, 255, 255, 0.1);
}

/* Menu Styles */
.menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(10, 10, 15, 0.95);
    z-index: 10;
}

.hidden {
    display: none !important;
}

.game-title {
    font-size: 3.5rem;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff,
                 0 0 20px #00ffff,
                 0 0 40px #00ffff;
    margin-bottom: 30px;
    letter-spacing: 4px;
    animation: flicker 3s infinite;
}

.neon-pink {
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff,
                 0 0 20px #ff00ff,
                 0 0 40px #ff00ff;
}

@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        opacity: 1;
    }
    20%, 24%, 55% {
        opacity: 0.8;
    }
}

.high-score {
    color: #ffff00;
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 0 0 5px #ffff00;
}

.final-score {
    color: #00ffff;
    font-size: 2rem;
    margin-bottom: 15px;
    text-shadow: 0 0 10px #00ffff;
}

.neon-button {
    background: transparent;
    border: 2px solid #ff00ff;
    color: #ff00ff;
    padding: 15px 50px;
    font-size: 1.5rem;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
    margin-bottom: 30px;
}

.neon-button:hover {
    background: rgba(255, 0, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.8),
                inset 0 0 20px rgba(255, 0, 255, 0.3);
    transform: scale(1.05);
}

.neon-button:active {
    transform: scale(0.95);
}

.controls-info {
    color: #666;
    text-align: center;
    font-size: 0.9rem;
}

.controls-info p {
    margin: 5px 0;
}

/* HUD Styles */
#hud {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    z-index: 5;
    pointer-events: none;
}

.hud-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hud-label {
    color: #666;
    font-size: 0.7rem;
    letter-spacing: 2px;
}

.hud-value {
    color: #00ffff;
    font-size: 1.5rem;
    text-shadow: 0 0 10px #00ffff;
}

.mute-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: 1px solid #666;
    color: #fff;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    pointer-events: auto;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.mute-btn:hover {
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Mobile Responsive */
@media (max-width: 850px) {
    #game-container {
        width: 100vw;
        height: 100vh;
        border: none;
    }
    
    .game-title {
        font-size: 2.5rem;
    }
    
    .neon-button {
        padding: 12px 40px;
        font-size: 1.2rem;
    }
}

/* 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;
    opacity: 0.3;
}
