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

body {
    overflow: hidden;
    background: #1a1a2e;
    font-family: 'Press Start 2P', monospace;
}

#scene-container {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
}

#scene-container canvas {
    image-rendering: pixelated;
}

/* HUD Styling - GTA 1 inspired */
#hud {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    pointer-events: none;
    z-index: 100;
}

#message-box {
    position: absolute;
    top: 15px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #333;
    padding: 8px 15px;
    color: #00ff00;
    font-family: 'VT323', monospace;
    font-size: 18px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #00ff00;
    animation: textScroll 0.5s ease-out;
}

@keyframes textScroll {
    from {
        transform: translateX(-10px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

#score {
    position: absolute;
    top: 15px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.multiplier {
    color: #ff6600;
    font-size: 12px;
    text-shadow: 0 0 5px #ff6600;
}

.score-value {
    color: #ffff00;
    font-size: 20px;
    font-family: 'VT323', monospace;
    letter-spacing: 3px;
    text-shadow: 0 0 10px #ffff00, 2px 2px 0 #000;
}

#health-bar {
    position: absolute;
    top: 55px;
    left: 20px;
    width: 150px;
    height: 12px;
    background: #330000;
    border: 2px solid #660000;
}

#health-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #ff0000, #ff4444);
    transition: width 0.3s ease;
}

#health-value {
    position: absolute;
    top: 53px;
    left: 180px;
    color: #ff4444;
    font-size: 14px;
    text-shadow: 0 0 5px #ff0000;
}

/* Controls hint */
#controls-hint {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    pointer-events: none;
    z-index: 100;
}

#controls-hint span {
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 15px;
    color: #888;
    font-size: 10px;
    border: 1px solid #444;
}

/* Footer */
#footer {
    position: fixed;
    bottom: 15px;
    right: 20px;
    color: #555;
    font-size: 10px;
    z-index: 100;
}

#footer a {
    color: #666;
    text-decoration: none;
}

#footer a:hover {
    color: #ff6b9d;
}

/* Loading screen */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0a0a15;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.loading-text {
    color: #00ff00;
    font-size: 16px;
    margin-bottom: 30px;
    animation: blink 1s infinite;
}

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

.loading-bar {
    width: 300px;
    height: 20px;
    background: #111;
    border: 2px solid #333;
}

.loading-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #00cc00);
    animation: loadingProgress 1.5s ease-out forwards;
}

@keyframes loadingProgress {
    from { width: 0%; }
    to { width: 100%; }
}

/* Scanline overlay effect */
#scene-container::after {
    content: '';
    position: fixed;
    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 3px
    );
    pointer-events: none;
    z-index: 50;
}

/* Mobile responsive */
@media (max-width: 768px) {
    #message-box {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .score-value {
        font-size: 16px;
    }
    
    #health-bar {
        width: 100px;
    }
    
    #health-value {
        left: 130px;
    }
    
    #controls-hint {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    #controls-hint span {
        font-size: 8px;
    }
}

@media (max-width: 480px) {
    #message-box {
        font-size: 10px;
        max-width: 150px;
        word-wrap: break-word;
    }
    
    .score-value {
        font-size: 14px;
    }
    
    .multiplier {
        font-size: 10px;
    }
}