#chapas-loading-screen {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1b1b1b 0%, #050505 58%, #000 100%);
    z-index: 10;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

#chapas-loading-screen.chapas-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#chapas-loader-card {
    width: min(420px, 78vw);
    padding: 28px 30px 24px;
    border-radius: 24px;
    background: rgba(0, 0, 0, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
    font-family: Arial, Helvetica, sans-serif;
    color: #fff;
    text-align: center;
}

#chapas-loader-icon {
    display: block;
    width: 104px;
    height: 104px;
    margin: 0 auto 18px;
    object-fit: contain;
    animation: chapasLoaderBounce 1.15s ease-in-out infinite;
    filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.45));
}

#chapas-loader-title {
    margin-bottom: 18px;
    font-size: 24px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.65);
}

#chapas-loader-progress-empty {
    width: 100%;
    height: 16px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.45);
}

#chapas-loader-progress-full {
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #ffffff 0%, #f7d54a 48%, #ff9d1e 100%);
    box-shadow: 0 0 18px rgba(255, 181, 31, 0.65);
    transition: width 0.16s ease-out;
}

#chapas-loader-percent {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.86);
}

@keyframes chapasLoaderBounce {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-8px) rotate(5deg);
    }
}
