#universal-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: transparent;
}

#universal-loader:not(.is-active) {
    display: none !important;
}

.universal-loader-animation {
    --main-size: 4em;
    --text-color: #2962ff;
    --shine-color: #2962ff40;
    --shadow-color: #8fa9dc;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    user-select: none;
    position: relative;
    font-size: var(--main-size);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text-color);
    width: 7.3em;
    height: 1em;
    filter: drop-shadow(0 0 .05em var(--shine-color));
}

.universal-loader-animation .text {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    position: absolute;
}

.universal-loader-animation .text:nth-child(1) { clip-path: polygon(0% 0%, 11.11% 0%, 11.11% 100%, 0% 100%); font-size: calc(var(--main-size) / 20); margin-left: -2.1em; opacity: .6; }
.universal-loader-animation .text:nth-child(2) { clip-path: polygon(11.11% 0%, 22.22% 0%, 22.22% 100%, 11.11% 100%); font-size: calc(var(--main-size) / 16); margin-left: -.98em; opacity: .7; }
.universal-loader-animation .text:nth-child(3) { clip-path: polygon(22.22% 0%, 33.33% 0%, 33.33% 100%, 22.22% 100%); font-size: calc(var(--main-size) / 13); margin-left: -.33em; opacity: .8; }
.universal-loader-animation .text:nth-child(4) { clip-path: polygon(33.33% 0%, 44.44% 0%, 44.44% 100%, 33.33% 100%); font-size: calc(var(--main-size) / 11); margin-left: -.05em; opacity: .9; }
.universal-loader-animation .text:nth-child(5) { clip-path: polygon(44.44% 0%, 55.55% 0%, 55.55% 100%, 44.44% 100%); font-size: calc(var(--main-size) / 10); margin-left: 0; opacity: 1; }
.universal-loader-animation .text:nth-child(6) { clip-path: polygon(55.55% 0%, 66.66% 0%, 66.66% 100%, 55.55% 100%); font-size: calc(var(--main-size) / 11); margin-left: .05em; opacity: .9; }
.universal-loader-animation .text:nth-child(7) { clip-path: polygon(66.66% 0%, 77.77% 0%, 77.77% 100%, 66.66% 100%); font-size: calc(var(--main-size) / 13); margin-left: .33em; opacity: .8; }
.universal-loader-animation .text:nth-child(8) { clip-path: polygon(77.77% 0%, 88.88% 0%, 88.88% 100%, 77.77% 100%); font-size: calc(var(--main-size) / 16); margin-left: .98em; opacity: .7; }
.universal-loader-animation .text:nth-child(9) { clip-path: polygon(88.88% 0%, 100% 0%, 100% 100%, 88.88% 100%); font-size: calc(var(--main-size) / 20); margin-left: 2.1em; opacity: .6; }

.universal-loader-animation .text span {
    animation: universal-loader-scrolling 2s cubic-bezier(.1, .6, .9, .4) infinite,
        universal-loader-shadow 2s cubic-bezier(.1, .6, .9, .4) infinite;
}

.universal-loader-animation .text:nth-child(1) span { --shine-start: 4%; --shine-end: 7%; }
.universal-loader-animation .text:nth-child(2) span { --shine-start: 9%; --shine-end: 13%; }
.universal-loader-animation .text:nth-child(3) span { --shine-start: 15%; --shine-end: 18%; }
.universal-loader-animation .text:nth-child(4) span { --shine-start: 20%; --shine-end: 23%; }
.universal-loader-animation .text:nth-child(6) span { --shine-start: 29%; --shine-end: 32%; --shine-first: var(--shadow-color); --shine-last: var(--text-color); }
.universal-loader-animation .text:nth-child(7) span { --shine-start: 34%; --shine-end: 37%; --shine-first: var(--shadow-color); --shine-last: var(--text-color); }
.universal-loader-animation .text:nth-child(8) span { --shine-start: 39%; --shine-end: 42%; --shine-first: var(--shadow-color); --shine-last: var(--text-color); }
.universal-loader-animation .text:nth-child(9) span { --shine-start: 45%; --shine-end: 48%; --shine-first: var(--shadow-color); --shine-last: var(--text-color); }
.universal-loader-animation .text:not(:nth-child(5)) span {
    background: linear-gradient(to right, var(--shine-first, var(--text-color)) var(--shine-start), var(--shine-last, var(--shadow-color)) var(--shine-end));
    background-size: 200% auto;
    background-clip: text;
    color: transparent;
}

.universal-loader-animation .line {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: .05em;
    width: calc(var(--main-size) / 2);
    margin-top: .9em;
    border-radius: .05em;
}

.universal-loader-animation .line::before,
.universal-loader-animation .line::after {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    background: var(--text-color);
}
.universal-loader-animation .line::before { opacity: .3; }
.universal-loader-animation .line::after {
    border-radius: .05em;
    transform: translateX(-90%);
    animation: universal-loader-wobble 2s cubic-bezier(.5, .8, .5, .2) infinite;
}

@keyframes universal-loader-wobble {
    0%, 100% { transform: translateX(-90%); }
    50% { transform: translateX(90%); }
}
@keyframes universal-loader-scrolling {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}
@keyframes universal-loader-shadow {
    from { background-position: -98% 0; }
    to { background-position: 102% 0; }
}

@media (max-width: 600px) {
    .universal-loader-animation { --main-size: 2.5em; }
}
@media (prefers-reduced-motion: reduce) {
    .universal-loader-animation .text span,
    .universal-loader-animation .line::after { animation: none; }
}
