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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #000000;
}

body {
    background: #000000;
    color: white;
    position: relative;
}

#gameContainer {
    width: 100vw;
    height: 100vh;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

#gameContainer canvas {
    display: block;
    max-width: 100%;
    max-height: 100vh;
    margin: 0 auto;
}

#gameUI {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    pointer-events: none;
    padding: 20px;
    background: linear-gradient(to bottom, rgba(10,10,30,0.8) 0%, transparent 100%);
}

.header-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

#gameUI h1 {
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8), 0 0 20px rgba(100,100,255,0.5);
    margin-bottom: 8px;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

#gameUI p {
    color: rgba(255,255,255,0.9);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    font-size: 1rem;
    font-weight: 300;
}

#controls {
    position: fixed;
    bottom: 20px;
    left: 20px;
    color: white;
    background: rgba(10,10,30,0.85);
    padding: 15px 20px;
    border-radius: 12px;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    z-index: 10;
    transition: opacity 0.3s ease;
}

#controls:hover {
    background: rgba(10,10,30,0.95);
}

#controls h3 {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#controls p {
    margin: 6px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    line-height: 1.4;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #gameUI {
        padding: 15px;
    }
    
    #gameUI h1 {
        font-size: 1.5rem;
    }
    
    #gameUI p {
        font-size: 0.9rem;
    }
    
    #controls {
        bottom: 15px;
        left: 15px;
        padding: 12px 15px;
    }
    
    #controls h3 {
        font-size: 12px;
    }
    
    #controls p {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    #gameUI h1 {
        font-size: 1.25rem;
    }
    
    #gameUI p {
        font-size: 0.8rem;
    }
    
    #controls {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 10px;
    }
}

/* Hide controls on very small screens */
@media (max-height: 500px) {
    #controls {
        display: none;
    }
}

/* Loading state */
.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: rgba(255,255,255,0.7);
}