@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

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

body {
    font-family: 'Orbitron', 'Courier New', monospace;
    background: #0a0a0f;
    color: #ffffff;
    overflow: hidden;
    user-select: none;
}

#scene-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

.vehicle-selector {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 250px;
    background: rgba(10, 10, 31, 0.9);
    border: 2px solid #00ffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    pointer-events: auto;
}

.vehicle-selector h2 {
    font-size: 16px;
    font-weight: 900;
    color: #00ffff;
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 0 10px #00ffff;
}

.vehicle-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vehicle-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vehicle-item:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.vehicle-item.active {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.vehicle-thumbnail {
    width: 32px;
    height: 32px;
    border: 1px solid #00ffff;
    border-radius: 3px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
}

.vehicle-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-item span {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 5px #00ffff;
}

.stats-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 300px;
    background: rgba(10, 10, 31, 0.9);
    border: 2px solid #ff0080;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(255, 0, 128, 0.3);
    pointer-events: auto;
}

.stats-panel h2 {
    font-size: 16px;
    font-weight: 900;
    color: #ff0080;
    margin-bottom: 10px;
    text-align: center;
    text-shadow: 0 0 10px #ff0080;
}

.machine-name {
    font-size: 18px;
    font-weight: 900;
    color: #ffff00;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #ffff00;
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-label {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    width: 60px;
    text-shadow: 0 0 5px #ffffff;
}

.stat-bar {
    flex: 1;
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
}

.stat-fill.speed { background: linear-gradient(90deg, #00ffff, #0088ff); }
.stat-fill.accel { background: linear-gradient(90deg, #ff0080, #ff4444); }
.stat-fill.weight { background: linear-gradient(90deg, #ffff00, #ff8800); }
.stat-fill.grip { background: linear-gradient(90deg, #44ff44, #00ff88); }

.stat-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.stat-value {
    font-size: 14px;
    font-weight: 900;
    color: #ffffff;
    margin-left: 10px;
    text-shadow: 0 0 5px #ffffff;
}

.controls-info {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
    pointer-events: none;
}

.controls-info div {
    margin-bottom: 5px;
}

.hud-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid #00ffff;
    pointer-events: none;
}

.hud-corner.top-left {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.hud-corner.top-right {
    top: 10px;
    right: 10px;
    border-left: none;
    border-bottom: none;
}

.hud-corner.bottom-left {
    bottom: 50px;
    left: 10px;
    border-right: none;
    border-top: none;
}

.hud-corner.bottom-right {
    bottom: 50px;
    right: 10px;
    border-left: none;
    border-top: none;
}

.scan-line {
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    animation: scan 3s linear infinite;
    pointer-events: none;
}

@keyframes scan {
    0% { top: -2px; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.footer {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    pointer-events: auto;
}

.footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .vehicle-selector {
        width: 200px;
        padding: 15px;
    }
    
    .stats-panel {
        width: 250px;
        padding: 15px;
    }
    
    .vehicle-item span {
        font-size: 10px;
    }
    
    .machine-name {
        font-size: 16px;
    }
    
    .controls-info {
        font-size: 10px;
        bottom: 60px;
    }
}

@media (max-width: 480px) {
    .vehicle-selector,
    .stats-panel {
        position: absolute;
        top: auto;
        bottom: 60px;
        left: 10px;
        right: 10px;
        width: auto;
    }
    
    .stats-panel {
        bottom: 120px;
    }
    
    .controls-info {
        display: none;
    }
}