/* ===========================
        LOADING SCREEN
=========================== */

#loadingScreen {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,210,230,.35) 0%, transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(255,220,240,.25) 0%, transparent 40%),
        #fffafb;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: .35s;
    z-index: 999999;
}

#loadingScreen.show {
    opacity: 1;
    visibility: visible;
}

/* ===========================
        BORDA
=========================== */

#loadingScreen::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 4px solid #fff;
    box-shadow:
        0 0 0 1px #F7CEDA,
        0 0 0 10px #FCE2E3,
        0 0 0 11px #F7CEDA,
        0 0 0 15px #fff;
    pointer-events: none;
    z-index: 10;
}

/* ===========================
        BOLINHAS
=========================== */

#loadingScreen::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#ffd2e6 1px, transparent 1px);
    background-size: 7px 7px;
    opacity: .18;
    pointer-events: none;
    z-index: 1;
}

/* ===========================
          LACE
=========================== */

.loading-lace-top,
.loading-lace-bottom,
.loading-lace-left,
.loading-lace-right {
    position: absolute;
    pointer-events: none;
    z-index: 5;
}

.loading-lace-top {
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: url("https://files.catbox.moe/wikcwm.webp") repeat-x;
    background-size: auto 40px;
}

.loading-lace-bottom {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: url("https://files.catbox.moe/wikcwm.webp") repeat-x;
    background-size: auto 40px;
    transform: rotate(180deg);
}

.loading-lace-left {
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 100%;
    overflow: hidden;
}

.loading-lace-left::before {
    content: "";
    position: absolute;
    width: 100vh;
    height: 32px;
    background: url("https://files.catbox.moe/wikcwm.webp") repeat-x;
    background-size: auto 32px;
    transform-origin: top left;
    transform: rotate(-90deg) translateX(-100%);
}

.loading-lace-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 100%;
    overflow: hidden;
}

.loading-lace-right::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100vh;
    height: 32px;
    background: url("https://files.catbox.moe/wikcwm.webp") repeat-x;
    background-size: auto 32px;
    transform-origin: top left;
    transform: rotate(90deg) translateY(-100%);
}

/* ===========================
        CONTEÚDO
=========================== */

.loadingStars,
.loadingGif,
.loadingText,
.loadingBar,
.loadingSmall {
    position: relative;
    z-index: 20;
}

.loadingStars {
    font-size: 28px;
    color: #f6acc0;
    margin-bottom: 18px;
    animation: blink 1.2s infinite;
}

.loadingGif {
    width: 160px;
    image-rendering: pixelated;
    margin-bottom: 18px;
    animation: bounce 1.4s ease-in-out infinite;
}

.loadingText {
    font-family: "VT323", monospace;
    font-size: 40px;
    letter-spacing: 2px;
    color: #F6ACC0;
}

.loadingBar {
    width: 280px;
    height: 18px;
    margin-top: 25px;
    padding: 2px;
    background: #fff;
    border: 2px solid #F7CEDA;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(255,180,210,.25);
}

.loadingFill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ffd8e8, #f6acc0, #ffd8e8);
    animation: loading 2s linear forwards;
}

.loadingSmall {
    margin-top: 18px;
    font-family: "VT323", monospace;
    font-size: 24px;
    color: #d9a5b7;
}

/* ===========================
        ANIMAÇÕES
=========================== */

@keyframes loading {
    from { width: 0%; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}