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

body {
    font-family: 'Arial', sans-serif;
    background: #000011;
    color: #88ccff;
    overflow: hidden;
    cursor: none;
}

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

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #000011, #001122);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 1s ease-out;
}

.loading-content {
    text-align: center;
    animation: pulse 2s infinite;
}

.loading-logo {
    font-size: 4rem;
    font-weight: bold;
    color: #00aaff;
    text-shadow: 0 0 20px #00aaff, 0 0 40px #00aaff;
    margin-bottom: 2rem;
    letter-spacing: 0.5rem;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(136, 204, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 2rem auto;
    border: 1px solid #00aaff;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00aaff, #ff6600);
    animation: loading 3s ease-out forwards;
}

.loading-text {
    font-size: 1rem;
    color: #88ccff;
    letter-spacing: 0.2rem;
    animation: blink 1s infinite;
}

#ui-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.scan-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 170, 255, 0.03) 2px,
        rgba(0, 170, 255, 0.03) 4px
    );
    animation: scanlines 2s linear infinite;
}

.version {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 0.8rem;
    color: rgba(136, 204, 255, 0.5);
    font-family: 'Courier New', monospace;
}

.footer {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: rgba(136, 204, 255, 0.3);
    pointer-events: all;
}

.footer a {
    color: #00aaff;
    text-decoration: none;
}

.footer a:hover {
    text-shadow: 0 0 5px #00aaff;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes loading {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

@keyframes glow {
    0%, 100% { 
        text-shadow: 0 0 5px #00aaff, 0 0 10px #00aaff, 0 0 15px #00aaff;
    }
    50% { 
        text-shadow: 0 0 10px #00aaff, 0 0 20px #00aaff, 0 0 30px #00aaff;
    }
}

/* Instructions overlay */
.instructions {
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 0.8rem;
    color: rgba(136, 204, 255, 0.7);
    line-height: 1.4;
    pointer-events: none;
    z-index: 200;
}

.controls-hint {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: rgba(136, 204, 255, 0.6);
    text-align: center;
    pointer-events: none;
    z-index: 200;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .loading-logo {
        font-size: 2.5rem;
    }
    
    .loading-bar {
        width: 250px;
    }
    
    .loading-text {
        font-size: 0.8rem;
    }
}