/* Quantum Loader */
#quantum-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #0a0a0a 0%, #000 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.quantum-sphere {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
}

.quantum-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: #00f3ff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: corePulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px #00f3ff, 0 0 40px #00f3ff;
}

.quantum-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    border: 2px solid transparent;
    border-top: 2px solid #00f3ff;
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    animation: ringRotate 3s linear infinite;
}

.quantum-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    transform: translate(-50%, -50%);
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00f3ff;
    border-radius: 50%;
    animation: particleOrbit 4s linear infinite;
}

.particle:nth-child(1) { animation-delay: 0s; top: 0; left: 50%; }
.particle:nth-child(2) { animation-delay: 0.8s; top: 50%; right: 0; }
.particle:nth-child(3) { animation-delay: 1.6s; bottom: 0; left: 50%; }
.particle:nth-child(4) { animation-delay: 2.4s; top: 50%; left: 0; }
.particle:nth-child(5) { animation-delay: 3.2s; top: 25%; right: 25%; }

.loader-text {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    color: #00f3ff;
    margin-bottom: 20px;
    position: relative;
}

.text-glitch {
    position: relative;
    animation: textGlitch 2s infinite;
}

.progress-bar {
    width: 200px;
    height: 2px;
    background: rgba(0, 243, 255, 0.2);
    border-radius: 1px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #00f3ff;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px #00f3ff;
}

/* Main content */
#main-universe.hidden {
    opacity: 0;
    visibility: hidden;
}

#main-universe {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Анимации */
@keyframes corePulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.7; }
}

@keyframes ringRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes particleOrbit {
    0% { transform: rotate(0deg) translateX(60px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(60px) rotate(-360deg); }
}

@keyframes textGlitch {
    0%, 100% { transform: translateX(0); text-shadow: 2px 0 #ff00ff, -2px 0 #00ffff; }
    25% { transform: translateX(-2px); text-shadow: -2px 0 #ff00ff, 2px 0 #00ffff; }
    50% { transform: translateX(2px); text-shadow: 2px 0 #ff00ff, -2px 0 #00ffff; }
    75% { transform: translateX(-1px); text-shadow: -1px 0 #ff00ff, 1px 0 #00ffff; }
}