#mrcorp-page-loader {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    background: radial-gradient(circle at 50% 42%, #1d4ed8 0, #0f3fb8 34%, #0b2767 100%);
    color: #fff;
    opacity: 1;
    visibility: visible;
    transition: opacity 260ms ease, visibility 260ms ease;
}

#mrcorp-page-loader.mrcorp-loader--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.mrcorp-loader__scene {
    position: relative;
    width: min(320px, 82vw);
    height: 82px;
    margin-bottom: 2px;
}

.mrcorp-loader__person {
    position: absolute;
    left: 14px;
    bottom: 8px;
    z-index: 2;
    font-size: 34px;
    line-height: 1;
    transform-origin: 50% 100%;
    animation: mrcorp-person-ready 1.8s ease-in-out infinite;
}

.mrcorp-loader__flame {
    position: absolute;
    left: 46px;
    bottom: 26px;
    width: 36px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), #ffe66d 35%, #ff5a1f 100%);
    filter: drop-shadow(0 0 8px rgba(255, 154, 60, 0.8));
    transform-origin: left center;
    animation: mrcorp-flame 1.8s ease-in-out infinite;
}

.mrcorp-loader__rocket {
    position: absolute;
    left: 58px;
    bottom: 18px;
    z-index: 3;
    font-size: 30px;
    line-height: 1;
    transform: rotate(42deg);
    animation: mrcorp-rocket 1.8s cubic-bezier(0.42, 0, 0.2, 1) infinite;
}

.mrcorp-loader__building {
    position: absolute;
    right: 18px;
    bottom: 10px;
    width: 54px;
    height: 48px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding: 5px;
    border-radius: 5px 5px 2px 2px;
    background: #e5eefc;
    box-shadow: inset 0 -8px 0 rgba(10, 39, 103, 0.16), 0 12px 28px rgba(0, 0, 0, 0.18);
    animation: mrcorp-building 1.8s ease-in-out infinite;
}

.mrcorp-loader__building span {
    display: block;
    border-radius: 2px;
    background: #1d4ed8;
    opacity: 0.82;
    animation: mrcorp-blocks 1.8s ease-in-out infinite;
}

.mrcorp-loader__building span:nth-child(2) {
    animation-delay: 30ms;
}

.mrcorp-loader__building span:nth-child(3) {
    animation-delay: 60ms;
}

.mrcorp-loader__building span:nth-child(4) {
    animation-delay: 90ms;
}

.mrcorp-loader__building span:nth-child(5) {
    animation-delay: 120ms;
}

.mrcorp-loader__building span:nth-child(6) {
    animation-delay: 150ms;
}

.mrcorp-loader__boom {
    position: absolute;
    right: 44px;
    bottom: 36px;
    z-index: 4;
    font-size: 32px;
    line-height: 1;
    opacity: 0;
    transform: scale(0.35);
    animation: mrcorp-boom 1.8s ease-in-out infinite;
}

.mrcorp-loader__mark {
    position: relative;
    width: 106px;
    height: 106px;
    display: grid;
    place-items: center;
}

.mrcorp-loader__emoji {
    position: relative;
    z-index: 2;
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
    font-size: 44px;
    line-height: 1;
    animation: mrcorp-bounce 1.1s ease-in-out infinite;
}

.mrcorp-loader__orbit {
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.28);
    border-top-color: #53f2a7;
    animation: mrcorp-spin 900ms linear infinite;
}

.mrcorp-loader__spark {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #53f2a7;
    box-shadow: 0 0 18px rgba(83, 242, 167, 0.75);
}

.mrcorp-loader__spark--one {
    top: 8px;
    right: 18px;
    animation: mrcorp-pulse 900ms ease-in-out infinite;
}

.mrcorp-loader__spark--two {
    left: 12px;
    bottom: 18px;
    animation: mrcorp-pulse 900ms ease-in-out 220ms infinite;
}

.mrcorp-loader__brand {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0;
}

.mrcorp-loader__text {
    min-width: 86px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    text-align: center;
}

.mrcorp-loader__text::after {
    content: "";
    animation: mrcorp-dots 1.2s steps(4, end) infinite;
}

@keyframes mrcorp-person-ready {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }
    24% {
        transform: translateY(-2px) rotate(-4deg);
    }
    56% {
        transform: translateY(0) rotate(2deg);
    }
}

@keyframes mrcorp-flame {
    0%, 18%, 84%, 100% {
        opacity: 0;
        transform: scaleX(0.2);
    }
    24%, 58% {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes mrcorp-rocket {
    0%, 18% {
        opacity: 0;
        transform: translate3d(0, 0, 0) rotate(42deg) scale(0.85);
    }
    24% {
        opacity: 1;
    }
    62% {
        opacity: 1;
        transform: translate3d(176px, -20px, 0) rotate(42deg) scale(1);
    }
    68%, 100% {
        opacity: 0;
        transform: translate3d(188px, -22px, 0) rotate(42deg) scale(0.5);
    }
}

@keyframes mrcorp-building {
    0%, 58%, 100% {
        transform: translateY(0) rotate(0);
        opacity: 1;
    }
    64% {
        transform: translateY(0) rotate(-3deg);
    }
    76%, 88% {
        transform: translateY(8px) rotate(4deg);
        opacity: 0.34;
    }
}

@keyframes mrcorp-blocks {
    0%, 58%, 100% {
        transform: translate3d(0, 0, 0) rotate(0);
        opacity: 0.82;
    }
    74% {
        transform: translate3d(6px, -10px, 0) rotate(14deg);
        opacity: 0.6;
    }
    88% {
        transform: translate3d(-5px, 12px, 0) rotate(-18deg);
        opacity: 0.25;
    }
}

@keyframes mrcorp-boom {
    0%, 58%, 100% {
        opacity: 0;
        transform: scale(0.35) rotate(-8deg);
    }
    64% {
        opacity: 1;
        transform: scale(1.25) rotate(6deg);
    }
    82% {
        opacity: 0;
        transform: scale(1.7) rotate(14deg);
    }
}

@keyframes mrcorp-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes mrcorp-bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.03);
    }
}

@keyframes mrcorp-pulse {
    0%, 100% {
        transform: scale(0.72);
        opacity: 0.58;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes mrcorp-dots {
    0% {
        content: "";
    }
    25% {
        content: ".";
    }
    50% {
        content: "..";
    }
    75%, 100% {
        content: "...";
    }
}

@media (max-width: 480px) {
    .mrcorp-loader__scene {
        transform: scale(0.86);
        transform-origin: center bottom;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mrcorp-loader__person,
    .mrcorp-loader__flame,
    .mrcorp-loader__rocket,
    .mrcorp-loader__building,
    .mrcorp-loader__building span,
    .mrcorp-loader__boom,
    .mrcorp-loader__emoji,
    .mrcorp-loader__orbit,
    .mrcorp-loader__spark,
    .mrcorp-loader__text::after {
        animation: none;
    }
}
