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

body {
    overflow: hidden;
    font-family: 'Segoe UI', 'PingFang SC', sans-serif;
    background: #000;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a3a2f 0%, #0d1f1a 50%, #1a2a3a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: #e8f5e9;
}

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

.loading-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 8px;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.loading-content p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 30px;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #81c784, #4fc3f7);
    animation: loading 2s ease-in-out forwards;
    border-radius: 2px;
}

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

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

#ui-overlay > * {
    pointer-events: auto;
}

#control-panel {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    color: #fff;
    max-width: 250px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#control-panel h3 {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    color: #aaa;
}

.env-buttons, .weather-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.env-btn, .weather-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ddd;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.env-btn:hover, .weather-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.env-btn.active, .weather-btn.active {
    background: rgba(129, 199, 132, 0.3);
    border-color: #81c784;
    color: #fff;
}

.divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px 0;
}

.vr-btn, .audio-btn {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.vr-btn {
    background: linear-gradient(135deg, #7c4dff, #536dfe);
    color: #fff;
}

.vr-btn:hover {
    background: linear-gradient(135deg, #9c6bff, #7c93fe);
}

.vr-btn:disabled, .vr-btn:hover:disabled {
    background: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
}

.audio-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ddd;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.audio-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

#audio-btn.unmuted {
    background: rgba(255, 183, 77, 0.3);
    border-color: #ffb74d;
}

#hint {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    text-align: center;
}

#crosshair {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
}

#crosshair::before, #crosshair::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
}

#crosshair::before {
    width: 2px;
    height: 20px;
    left: 50%;
    transform: translateX(-50%);
}

#crosshair::after {
    width: 20px;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

#vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(ellipse at center,
        transparent 50%,
        rgba(0, 0, 0, 0.3) 100%);
}
