/* loading-critical.css — Pre-JS loading screen styles
   Must load before any JS to show the spinner immediately */

ex-loading,
ex-loading:not(:defined) {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #08353E !important;
    z-index: 10000 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    transition: opacity 0.5s ease;
}

ex-loading:not(:defined)::before,
ex-loading::before {
    content: '';
    width: clamp(36px, 8vmin, 48px);
    height: clamp(36px, 8vmin, 48px);
    border: clamp(2px, 0.5vmin, 3px) solid rgba(242, 203, 144, 0.2);
    border-top: clamp(2px, 0.5vmin, 3px) solid #F2CB90;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

ex-loading:defined::before {
    display: none;
}
