/* ===== ГАЛАКТИКА С ДВИЖУЩИМИСЯ ЗВЁЗДАМИ ===== */
body {
    background: radial-gradient(ellipse at center, #0a0a2a 0%, #000 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== ЗВЁЗДЫ (МЕРЦАЮТ + ДВИГАЮТСЯ) ===== */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    animation: starMove 20s linear infinite;
}

/* Разные размеры и скорости */
.star:nth-child(1) { width: 2px; height: 2px; top: 10%; left: 20%; animation-duration: 25s; animation-delay: 0s; }
.star:nth-child(2) { width: 3px; height: 3px; top: 25%; left: 45%; animation-duration: 18s; animation-delay: -3s; }
.star:nth-child(3) { width: 1px; height: 1px; top: 40%; left: 70%; animation-duration: 30s; animation-delay: -5s; }
.star:nth-child(4) { width: 2px; height: 2px; top: 55%; left: 10%; animation-duration: 22s; animation-delay: -2s; }
.star:nth-child(5) { width: 3px; height: 3px; top: 70%; left: 85%; animation-duration: 28s; animation-delay: -7s; }
.star:nth-child(6) { width: 1px; height: 1px; top: 85%; left: 30%; animation-duration: 15s; animation-delay: -4s; }
.star:nth-child(7) { width: 2px; height: 2px; top: 15%; left: 90%; animation-duration: 20s; animation-delay: -1s; }
.star:nth-child(8) { width: 3px; height: 3px; top: 35%; left: 5%; animation-duration: 26s; animation-delay: -6s; }
.star:nth-child(9) { width: 1px; height: 1px; top: 50%; left: 55%; animation-duration: 32s; animation-delay: -8s; }
.star:nth-child(10) { width: 2px; height: 2px; top: 65%; left: 40%; animation-duration: 19s; animation-delay: -2s; }
.star:nth-child(11) { width: 3px; height: 3px; top: 80%; left: 75%; animation-duration: 24s; animation-delay: -5s; }
.star:nth-child(12) { width: 1px; height: 1px; top: 5%; left: 60%; animation-duration: 27s; animation-delay: -9s; }
.star:nth-child(13) { width: 2px; height: 2px; top: 45%; left: 15%; animation-duration: 21s; animation-delay: -3s; }
.star:nth-child(14) { width: 3px; height: 3px; top: 60%; left: 95%; animation-duration: 29s; animation-delay: -7s; }
.star:nth-child(15) { width: 1px; height: 1px; top: 90%; left: 50%; animation-duration: 16s; animation-delay: -4s; }
.star:nth-child(16) { width: 2px; height: 2px; top: 20%; left: 35%; animation-duration: 23s; animation-delay: -1s; }
.star:nth-child(17) { width: 3px; height: 3px; top: 30%; left: 80%; animation-duration: 31s; animation-delay: -6s; }
.star:nth-child(18) { width: 1px; height: 1px; top: 75%; left: 20%; animation-duration: 17s; animation-delay: -2s; }
.star:nth-child(19) { width: 2px; height: 2px; top: 95%; left: 65%; animation-duration: 26s; animation-delay: -8s; }
.star:nth-child(20) { width: 3px; height: 3px; top: 8%; left: 50%; animation-duration: 33s; animation-delay: -5s; }

@keyframes starMove {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: translate(30px, -20px) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: translate(-20px, 40px) scale(0.8);
        opacity: 0.3;
    }
    75% {
        transform: translate(40px, 10px) scale(1.1);
        opacity: 0.9;
    }
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }
}

/* ===== ЗВЁЗДЫ С МЕРЦАНИЕМ (ДОПОЛНИТЕЛЬНЫЙ СЛОЙ) ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(1px 1px at 12% 15%, #fff, transparent),
        radial-gradient(2px 2px at 22% 55%, #fff, transparent),
        radial-gradient(1px 1px at 32% 25%, #fff, transparent),
        radial-gradient(2px 2px at 42% 75%, #fff, transparent),
        radial-gradient(1px 1px at 52% 5%, #fff, transparent),
        radial-gradient(2px 2px at 62% 45%, #fff, transparent),
        radial-gradient(1px 1px at 72% 85%, #fff, transparent),
        radial-gradient(2px 2px at 82% 35%, #fff, transparent),
        radial-gradient(1px 1px at 92% 65%, #fff, transparent),
        radial-gradient(2px 2px at 18% 40%, #fff, transparent),
        radial-gradient(1px 1px at 38% 50%, #fff, transparent),
        radial-gradient(2px 2px at 58% 30%, #fff, transparent),
        radial-gradient(1px 1px at 78% 60%, #fff, transparent),
        radial-gradient(2px 2px at 98% 20%, #fff, transparent),
        radial-gradient(1px 1px at 8% 80%, #fff, transparent),
        radial-gradient(2px 2px at 48% 90%, #fff, transparent);
    background-size: 200px 200px;
    opacity: 0.6;
    animation: twinkle 4s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes twinkle {
    0% { opacity: 0.2; }
    50% { opacity: 0.9; }
    100% { opacity: 0.3; }
}

/* ===== ПАДАЮЩИЕ ЗВЁЗДЫ ===== */
.shooting-star {
    position: fixed;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    pointer-events: none;
    z-index: 0;
    animation: shooting 4s linear infinite;
}

.shooting-star::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 1px;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.8), transparent);
    transform: rotate(45deg) translateX(-50px);
}

.shooting-star:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.shooting-star:nth-child(2) { top: 30%; left: 60%; animation-delay: -2s; }
.shooting-star:nth-child(3) { top: 50%; left: 30%; animation-delay: -4s; }
.shooting-star:nth-child(4) { top: 70%; left: 70%; animation-delay: -1s; }
.shooting-star:nth-child(5) { top: 85%; left: 10%; animation-delay: -3s; }
.shooting-star:nth-child(6) { top: 20%; left: 80%; animation-delay: -5s; }

@keyframes shooting {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-300px, 300px) scale(0);
        opacity: 0;
    }
}