.basel-animation-section-target {
    position: relative;
    overflow: hidden;
}

.basel-rocket-animation {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 999;
}

.basel-rocket {
    position: absolute;
    bottom: 0;
    width: 8px;
    height: 36px;
    animation: basel-rocket-launch 1.5s ease-out forwards;
}

.basel-rocket-trail {
    display: block;
    width: 4px;
    height: 32px;
    border-radius: 999px;
}

.basel-rocket-sparkle {
    position: absolute;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    animation: basel-trail-sparkle 0.8s ease-in-out infinite;
}

.basel-rocket-sparkle.s1 {
    bottom: 0;
}

.basel-rocket-sparkle.s2 {
    bottom: 8px;
    animation-delay: 0.1s;
}

.basel-rocket-sparkle.s3 {
    bottom: 16px;
    animation-delay: 0.2s;
}

.basel-rocket-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor, 0 0 16px currentColor;
    animation: basel-burst-particle 2s ease-out forwards;
}

.basel-rocket-ring,
.basel-rocket-glow {
    position: absolute;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.basel-rocket-ring {
    width: 4px;
    height: 4px;
    border: 2px solid;
    animation: basel-burst-ring 1.5s ease-out forwards;
}

.basel-rocket-glow {
    width: 8px;
    height: 8px;
    animation: basel-burst-glow 1.5s ease-out forwards;
}

@keyframes basel-rocket-launch {
    from {
        transform: translate(0, 0);
        opacity: 1;
    }

    to {
        transform: translate(var(--end-x), calc(-1 * var(--end-y)));
        opacity: 0;
    }
}

@keyframes basel-burst-particle {
    from {
        transform: translate(-50%, -50%) rotate(var(--angle)) translateY(0) scale(1);
        opacity: 1;
    }

    to {
        transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(-1 * var(--distance))) scale(0);
        opacity: 0;
    }
}

@keyframes basel-trail-sparkle {
    0%,
    100% {
        opacity: 0;
        transform: translateX(-50%) scale(0);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.5);
    }
}

@keyframes basel-burst-ring {
    from {
        width: 4px;
        height: 4px;
        opacity: 1;
    }

    to {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

@keyframes basel-burst-glow {
    from {
        width: 8px;
        height: 8px;
        opacity: 1;
    }

    to {
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .basel-rocket-animation {
        display: none;
    }
}
