/* ==========================================================================
   QUIZ BOX - Hand-Drawn Cartoon Sketch Page Loader System
   ========================================================================== */

#page-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0E5E6F;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    font-family: 'Marhey', 'Comic Neue', 'Kalameh', sans-serif;
    direction: rtl;
}

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

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

/* Hand-Drawn Cartoon Sketch Box Container */
.sketch-loader-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sketch-q-box {
    position: relative;
    width: 90px;
    height: 90px;
    background: #FFFFFF;
    border: 4px solid #000000;
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 6px 6px 0px #000000;
    animation: sketchBounce 1s infinite alternate ease-in-out;
}

.sketch-q-letter {
    font-family: 'Inter', 'Kalameh', sans-serif;
    font-size: 52px;
    font-weight: 900;
    color: #0E5E6F;
    -webkit-text-stroke: 2px #000000;
    line-height: 1;
    user-select: none;
}

/* Corner Hatching Accent Lines for Sketch Depth */
.hatching-line {
    position: absolute;
    background: #000000;
    border-radius: 2px;
}

.hatching-line.line-1 {
    width: 16px;
    height: 3px;
    top: -8px;
    right: 12px;
    transform: rotate(-35deg);
}

.hatching-line.line-2 {
    width: 14px;
    height: 3px;
    bottom: -6px;
    left: 8px;
    transform: rotate(40deg);
}

.hatching-line.line-3 {
    width: 12px;
    height: 3px;
    bottom: 12px;
    right: -8px;
    transform: rotate(-45deg);
}

@keyframes sketchBounce {
    0% {
        transform: translateY(0px) rotate(-2deg);
    }
    100% {
        transform: translateY(-8px) rotate(2deg);
    }
}

.loader-brand-title {
    font-size: 26px;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: 2px;
    margin-bottom: 6px;
    -webkit-text-stroke: 1.5px #000000;
    text-shadow: 3px 3px 0px #000000;
}

.loader-status-text {
    font-size: 15px;
    color: #FFFFFF;
    font-weight: bold;
    background: #000000;
    padding: 4px 14px;
    border-radius: 20px;
    border: 2px solid #FFFFFF;
    display: inline-block;
    margin-top: 6px;
    animation: pulseText 1.2s infinite alternate;
}

@keyframes pulseText {
    0% { transform: scale(0.96); }
    100% { transform: scale(1.04); }
}

@media (max-width: 480px) {
    .sketch-loader-wrapper {
        transform: scale(0.85);
    }
    .loader-brand-title {
        font-size: 20px;
    }
}
