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

body {
    background: #000;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Звёзды */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle var(--duration) ease-in-out infinite;
    opacity: var(--opacity);
}

@keyframes twinkle {
    0%, 100% {
        opacity: var(--opacity);
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        transform: scale(0.5);
    }
}

.solar-system {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Свечение за планетой */
.planet-glow {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.planet {
    position: absolute;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    z-index: 10;
}

/* Диск под наклоном вокруг планеты */
.orbit-ring {
    position: absolute;
    width: 140px;
    height: 140px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: rotateX(60deg) rotateY(20deg);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Сферы */
.ball {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: orbit linear infinite;
}

.ball-1 {
    animation-duration: 3s;
    animation-delay: 0s;
}

.ball-2 {
    animation-duration: 4s;
    animation-delay: -1.5s;
}

.ball-3 {
    animation-duration: 5s;
    animation-delay: -2.5s;
}

@keyframes orbit {
    from {
        transform: rotateX(60deg) rotateY(20deg) rotateZ(0deg) translateX(70px) rotateZ(0deg) rotateY(-20deg) rotateX(-60deg);
    }
    to {
        transform: rotateX(60deg) rotateY(20deg) rotateZ(360deg) translateX(70px) rotateZ(-360deg) rotateY(-20deg) rotateX(-60deg);
    }
}

/* Маленькие планеты - в разных частях страницы */
.planet-small {
    position: fixed;
    border-radius: 50%;
}

.planet-small-1 {
    top: 15%;
    left: 10%;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.6);
    animation: drift1 25s ease-in-out infinite;
}

.planet-small-2 {
    top: 20%;
    right: 12%;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.5);
    animation: drift2 30s ease-in-out infinite;
}

.planet-small-3 {
    bottom: 18%;
    left: 15%;
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.55);
    animation: drift3 28s ease-in-out infinite;
}

@keyframes drift1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.25;
    }
    33% {
        transform: translate(50px, 30px) scale(1.1);
        opacity: 0.35;
    }
    66% {
        transform: translate(-30px, 60px) scale(0.9);
        opacity: 0.2;
    }
}

@keyframes drift2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.15;
    }
    33% {
        transform: translate(-60px, -20px) scale(0.95);
        opacity: 0.25;
    }
    66% {
        transform: translate(30px, -50px) scale(1.05);
        opacity: 0.18;
    }
}

@keyframes drift3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.2;
    }
    33% {
        transform: translate(40px, -40px) scale(1.05);
        opacity: 0.15;
    }
    66% {
        transform: translate(-50px, -20px) scale(0.95);
        opacity: 0.3;
    }
}

.orbit-ring-small {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(60deg) rotateY(20deg);
}

.ball-small {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    animation: orbit-small linear infinite;
}

.planet-small-1 .ball-small {
    animation-duration: 4s;
}

.planet-small-2 .ball-small {
    animation-duration: 5s;
    animation-delay: -2s;
}

.planet-small-3 .ball-small {
    animation-duration: 6s;
    animation-delay: -3s;
}

@keyframes orbit-small {
    from {
        transform: translate(-50%, -50%) rotateX(60deg) rotateY(20deg) rotateZ(0deg) translateX(20px) rotateZ(0deg) rotateY(-20deg) rotateX(-60deg);
    }
    to {
        transform: translate(-50%, -50%) rotateX(60deg) rotateY(20deg) rotateZ(360deg) translateX(20px) rotateZ(-360deg) rotateY(-20deg) rotateX(-60deg);
    }
}

/* Текст с печатной машинкой */
.loading-text {
    color: #666;
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 400;
    margin-top: 30px;
    z-index: 10;
    min-height: 16px;
}

.typewriter {
    border-right: none;
}

.cursor {
    animation: blink 1s step-end infinite;
}

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