/* =========================================
   SUPER CHEESE LOADER (Independent Module)
   ========================================= */
#superLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #FFC107;
    /* Cheesy Yellow base */
    background: radial-gradient(circle at center, #FFD54F 0%, #FFB300 100%);
    z-index: 999999;
    /* Topmost */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s cubic-bezier(0.8, 0, 0.2, 1);
    will-change: transform;
}

/* Exit Animation: Slide Up like a pizza box lid opening */
#superLoader.dismissed {
    transform: translateY(-100%);
}

/* --- CENTRAL VISUAL --- */
.sl-content {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pulsing Aura */
.sl-aura {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: slPulse 2s infinite ease-out;
    z-index: 0;
}

/* The Pizza (Spinning Slices) */
.sl-pizza-box {
    position: relative;
    width: 180px;
    height: 180px;
    z-index: 2;
    animation: slBounce 2s infinite ease-in-out;
}

.sl-slice {
    position: absolute;
    top: 0;
    left: 90px;
    /* Center horizon */
    width: 90px;
    height: 90px;
    transform-origin: 0% 100%;
    background: #E4002B;
    /* Sauce Red */
    border: 4px solid #FFC107;
    /* Cheese Border */
    border-radius: 0 100% 0 0;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.2s;
}

/* Arrange slices in a circle */
.sl-slice:nth-child(1) {
    transform: rotate(0deg) skewY(0);
}

.sl-slice:nth-child(2) {
    transform: rotate(90deg) skewY(0);
}

.sl-slice:nth-child(3) {
    transform: rotate(180deg) skewY(0);
}

.sl-slice:nth-child(4) {
    transform: rotate(270deg) skewY(0);
}

/* Ingredient Decor (Floating Particles) */
.sl-topping {
    position: absolute;
    font-size: 24px;
    opacity: 0;
    animation: slFloat 3s infinite linear;
}

/* --- PROGRESS BAR --- */
.sl-progress-wrap {
    width: 240px;
    height: 12px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    margin-top: 40px;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.sl-bar {
    height: 100%;
    width: 0%;
    background: #E4002B;
    border-radius: 20px;
    transition: width 0.2s linear;
    position: relative;
}

/* Shine effect on bar */
.sl-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(45deg,
            rgba(255, 255, 255, 0) 25%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 75%);
    background-size: 20px 20px;
    animation: slStripes 1s linear infinite;
}

/* --- TEXT --- */
.sl-text {
    margin-top: 15px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: #B00020;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    min-height: 1.5em;
    /* Prevent jump */
}

.sl-sub {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: #795548;
    margin-top: 4px;
    font-weight: 600;
}

/* --- ANIMATIONS --- */
@keyframes slPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes slBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes slFloat {
    0% {
        transform: translateY(40px) rotate(0deg);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateY(-60px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes slStripes {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 40px 40px;
    }
}

/* ACTIVE STATE: Filled slices */
.sl-slice.filled {
    opacity: 1;
    background: #FF5722;
    /* Cooked Color */
}