﻿#loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

    #loader.show {
        display: flex;
        opacity: 1;
    }

.nexus-crystal {
    position: relative;
    width: 80px;
    height: 80px;
}

    .nexus-crystal .ring {
        position: absolute;
        box-sizing: border-box;
        width: 100%;
        height: 100%;
        border: 2px solid color-mix(in srgb, var(--neon), transparent 85%);
        border-top: 2px solid var(--neon);
        border-radius: 50%;
        animation: crystal-rotate 1.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
    }


        .nexus-crystal .ring:nth-child(1) {
            width: 100%;
            height: 100%;
            animation-duration: 1.2s;
        }

        .nexus-crystal .ring:nth-child(2) {
            width: 70%;
            height: 70%;
            top: 15%;
            left: 15%;
            animation-duration: 0.9s;
            animation-direction: reverse;
        }

        .nexus-crystal .ring:nth-child(3) {
            width: 40%;
            height: 40%;
            top: 30%;
            left: 30%;
            animation-duration: 0.6s;
        }

@keyframes crystal-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}
