#onaTransitionOverlay {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 35%, rgba(0, 86, 210, 0.22), transparent 28%),
        radial-gradient(circle at 50% 75%, rgba(245, 158, 11, 0.12), transparent 30%),
        linear-gradient(135deg, #01070f 0%, #020d1d 35%, #05182d 100%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s ease;
    pointer-events: none;
}

#onaTransitionOverlay.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

#onaTransitionOverlay.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.ona-transition-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    text-align: center;
    padding: 32px 24px;
    animation: onaShellFloat 3.2s ease-in-out infinite;
}

.ona-loader-stage {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 24px rgba(0, 86, 210, 0.4));
}

.ona-loader-stage::before,
.ona-loader-stage::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.ona-loader-stage::before {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.25);
}

.ona-loader-stage::after {
    inset: -12px;
    border-color: rgba(56, 189, 248, 0.18);
    animation: onaOrbit 2.5s linear infinite;
}

.ona-loader-ring {
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-top-color: rgba(245, 158, 11, 0.96);
    border-right-color: rgba(0, 86, 210, 0.9);
    border-bottom-color: rgba(56, 189, 248, 0.7);
    animation: onaSpin 1.1s linear infinite;
    box-shadow: 0 0 22px rgba(0, 86, 210, 0.28), inset 0 0 18px rgba(245, 158, 11, 0.12);
}

.ona-loader-ring::before {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: onaPulse 1.6s ease-in-out infinite;
}

.ona-loader-logo {
    width: 128px;
    height: 128px;
    object-fit: cover;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffffff 0%, #ebf2ff 100%);
    border: 3px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48), 0 0 28px rgba(0, 86, 210, 0.42), 0 0 52px rgba(245, 158, 11, 0.2);
    transform: scale(0.75);
    opacity: 0;
    animation: onaLogoReveal 0.82s cubic-bezier(0.16, 1, 0.3, 1) forwards, onaLogoGlow 2s ease-in-out infinite 0.9s;
}

.ona-loader-slogan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f8fafc;
    font-weight: 700;
    font-size: clamp(0.9rem, 2vw, 1.25rem);
    letter-spacing: 0.04em;
    text-transform: none;
    opacity: 0;
    transform: translateY(18px);
    animation: onaSloganReveal 0.8s ease 0.28s forwards;
    max-width: min(90vw, 720px);
    text-shadow: 0 0 24px rgba(245, 158, 11, 0.22);
}

.ona-loader-slogan strong {
    color: #fbbf24;
    font-weight: 800;
}

@keyframes onaSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes onaOrbit {
    0% { transform: rotate(0deg) scale(1); opacity: 0.7; }
    50% { transform: rotate(180deg) scale(1.06); opacity: 1; }
    100% { transform: rotate(360deg) scale(1); opacity: 0.7; }
}

@keyframes onaPulse {
    0%, 100% { transform: scale(0.96); opacity: 0.35; }
    50% { transform: scale(1.08); opacity: 0.9; }
}

@keyframes onaLogoReveal {
    0% {
        opacity: 0;
        transform: scale(0.68) translateY(12px) rotate(-6deg);
    }
    60% {
        opacity: 1;
        transform: scale(1.08) translateY(-4px) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(0deg);
    }
}

@keyframes onaLogoGlow {
    0%, 100% { box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48), 0 0 28px rgba(0, 86, 210, 0.42), 0 0 52px rgba(245, 158, 11, 0.2); }
    50% { box-shadow: 0 22px 50px rgba(0, 0, 0, 0.52), 0 0 38px rgba(0, 86, 210, 0.55), 0 0 72px rgba(245, 158, 11, 0.28); }
}

@keyframes onaSloganReveal {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes onaShellFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
