/* Galactic background */
body {
    background: radial-gradient(ellipse at top, rgba(56, 189, 248, 0.08), transparent 70%),
    radial-gradient(ellipse at bottom, rgba(147, 51, 234, 0.08), transparent 70%),
    #0a0a0a;
    overflow-x: hidden;
}

/* Spaceship animation */
@keyframes fly-across {
    0% {
        transform: translateX(-15vw) translateY(0) rotate(8deg);
    }
    50% {
        transform: translateX(50vw) translateY(-6px) rotate(8deg);
    }
    100% {
        transform: translateX(110vw) translateY(0) rotate(8deg);
    }
}

@keyframes exhaust {
    0%, 100% {
        opacity: .25;
        filter: blur(3px);
    }
    50% {
        opacity: .6;
        filter: blur(5px);
    }
}

.spaceship {
    position: fixed;
    top: 56px;
    left: 0;
    z-index: 0;
    font-size: 22px;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    animation: fly-across 24s linear infinite;
    text-shadow: 0 0 6px rgba(125, 211, 252, .55), 0 0 14px rgba(59, 130, 246, .35);
}

.trail {
    position: absolute;
    left: -18px;
    top: 50%;
    transform: translateY(-40%);
    font-size: 14px;
    opacity: .35;
    animation: exhaust 1.2s ease-in-out infinite;
}

/* Emoji/SVG motion */
@keyframes twinkle {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: .45;
    }
    50% {
        transform: translateY(-8px) scale(1.2);
        opacity: 1;
    }
}

@keyframes drift {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    100% {
        transform: translateY(-24px) translateX(6px) rotate(3deg);
    }
}

.twinkle {
    animation: twinkle 2.2s ease-in-out infinite;
}

.drift {
    animation: drift 32s linear infinite;
    opacity: .8;
}

/* Shooting star */
@keyframes shoot {
    0% {
        transform: translateX(-20vw) translateY(0) rotate(-6deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    100% {
        transform: translateX(120vw) translateY(-10px) rotate(-6deg);
        opacity: 0;
    }
}

.shooting-star {
    position: fixed;
    bottom: 10px;
    left: 0;
    z-index: 0;
    font-size: 20px;
    animation: shoot 12s linear infinite;
    text-shadow: 0 0 8px rgba(250, 204, 21, .6);
    pointer-events: none;
    user-select: none;
}

.svg-glow {
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, .35));
    opacity: .85;
}

@media (prefers-reduced-motion: reduce) {
    .spaceship, .trail, .twinkle, .drift, .shooting-star {
        animation: none !important;
    }
}