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

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

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

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0f;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s;
}

.loading-content {
    text-align: center;
}

.laser-loader {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    position: relative;
}

.laser-loader::before,
.laser-loader::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #00ffff, transparent);
    animation: laser-spin 1s linear infinite;
}

.laser-loader::before {
    left: 48px;
}

.laser-loader::after {
    left: 48px;
    animation-delay: 0.5s;
    background: linear-gradient(to bottom, transparent, #ff00ff, transparent);
}

@keyframes laser-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#loading-screen h2 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #00ffff;
    text-shadow: 0 0 20px #00ffff;
}

#loading-screen p {
    color: #888;
    font-size: 0.9em;
}

#controls-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid #00ffff;
    border-radius: 15px;
    padding: 20px;
    max-width: 350px;
    z-index: 1000;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #00ffff;
}

.panel-header h3 {
    font-size: 1.2em;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

.icon-btn {
    background: transparent;
    border: 2px solid #00ffff;
    color: #00ffff;
    font-size: 1.5em;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.icon-btn:hover {
    background: #00ffff;
    color: #0a0a0f;
    box-shadow: 0 0 15px #00ffff;
}

.control-group {
    margin-bottom: 20px;
}

.control-group label {
    display: block;
    margin-bottom: 8px;
    color: #00ffff;
    font-size: 0.9em;
}

.control-group input[type="range"] {
    width: 100%;
    height: 6px;
    background: rgba(0, 255, 255, 0.2);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #00ffff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px #00ffff;
}

.control-group input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #00ffff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px #00ffff;
}

.control-group select {
    width: 100%;
    padding: 10px;
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid #00ffff;
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Orbitron', monospace;
    font-size: 0.9em;
    cursor: pointer;
}

.control-group select option {
    background: #0a0a0f;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #00ffff;
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.action-btn {
    padding: 12px;
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid #00ffff;
    border-radius: 8px;
    color: #00ffff;
    font-family: 'Orbitron', monospace;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s;
    text-shadow: 0 0 5px #00ffff;
}

.action-btn:hover {
    background: #00ffff;
    color: #0a0a0f;
    box-shadow: 0 0 20px #00ffff;
    transform: translateY(-2px);
}

.action-btn:active {
    transform: translateY(0);
}

#info-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    border-top: 2px solid #00ffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    font-size: 0.85em;
}

.info-left {
    display: flex;
    gap: 20px;
}

#fps-counter {
    color: #ffff00;
    font-weight: bold;
}

.hint {
    color: #888;
}

.info-right a {
    color: #ff00ff;
    text-decoration: none;
    transition: all 0.3s;
}

.info-right a:hover {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

#mobile-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.warning-content {
    text-align: center;
    padding: 40px;
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid #ffff00;
    border-radius: 15px;
    max-width: 500px;
}

.warning-content h2 {
    color: #ffff00;
    margin-bottom: 20px;
    text-shadow: 0 0 15px #ffff00;
}

.warning-content p {
    margin-bottom: 15px;
    color: #fff;
}

#close-warning {
    margin-top: 20px;
    padding: 15px 30px;
    background: #00ffff;
    border: none;
    border-radius: 8px;
    color: #0a0a0f;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

#close-warning:hover {
    background: #ffff00;
    box-shadow: 0 0 20px #ffff00;
}

@media (max-width: 768px) {
    #controls-panel {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        padding: 15px;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    #info-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .info-left {
        flex-direction: column;
        gap: 5px;
    }
}

/* Glow animations */
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 255, 0.3); }
    50% { box-shadow: 0 0 40px rgba(0, 255, 255, 0.6); }
}

#controls-panel {
    animation: glow-pulse 3s infinite;
}