/* Shown while the app loads: the white Moov Africa mark on the brand blue, warming to orange at the foot */
body fuse-splash-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(70% 60% at 50% 115%, rgba(236, 102, 8, 0.6) 0%, rgba(236, 102, 8, 0) 70%),
        linear-gradient(160deg, #0061CF 0%, #004CA6 50%, #003274 100%);
    background-color: #004CA6;
    color: #FFFFFF;
    z-index: 999999;
    pointer-events: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1), visibility 400ms;
}

body fuse-splash-screen .splash-mark {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 260px;
    height: 180px;
}

body fuse-splash-screen .splash-mark img {
    position: relative;
    width: 240px;
    max-width: 70vw;
    animation: splash-in 700ms cubic-bezier(0.3, 1.5, 0.5, 1) both, splash-float 2.6s ease-in-out 700ms infinite alternate;
}

/* Two rings travel outwards from behind the mark */
body fuse-splash-screen .splash-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 170px;
    height: 170px;
    margin: -85px 0 0 -85px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.55);
    opacity: 0;
    animation: splash-ring 2.4s ease-out infinite;
}

body fuse-splash-screen .splash-ring + .splash-ring {
    border-color: rgba(255, 165, 61, 0.8);
    animation-delay: 1.2s;
}

body fuse-splash-screen .splash-bar {
    width: 180px;
    height: 4px;
    margin-top: 28px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.22);
    overflow: hidden;
    animation: splash-fade 500ms ease 300ms both;
}

body fuse-splash-screen .splash-bar span {
    display: block;
    width: 40%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #FFA53D, #EC6608);
    animation: splash-slide 1.3s ease-in-out infinite;
}

@keyframes splash-in {
    from { opacity: 0; transform: scale(0.6); }
    to   { opacity: 1; transform: none; }
}

@keyframes splash-float {
    from { transform: translateY(0); }
    to   { transform: translateY(-8px); }
}

@keyframes splash-ring {
    0%   { opacity: 0.8; transform: scale(0.6); }
    100% { opacity: 0;   transform: scale(2.1); }
}

@keyframes splash-slide {
    0%   { transform: translateX(-110%); }
    100% { transform: translateX(260%); }
}

@keyframes splash-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    body fuse-splash-screen .splash-mark img,
    body fuse-splash-screen .splash-ring,
    body fuse-splash-screen .splash-bar span {
        animation: none;
    }
}

body:not(.fuse-splash-screen-hidden) {
    overflow: hidden;
}

body.fuse-splash-screen-hidden fuse-splash-screen {
    visibility: hidden;
    opacity: 0;
}
