/* Pantalla de carga inicial: se muestra mientras se descarga la aplicación.
   No depende de MudBlazor ni de fuentes remotas para pintarse al instante. */

.csm-boot {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 32px 24px;
    overflow: hidden;
    color: #fff;
    font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background:
        radial-gradient(700px 420px at 85% -10%, rgba(139, 92, 246, 0.28), transparent 65%),
        radial-gradient(600px 380px at -10% 110%, rgba(45, 212, 191, 0.16), transparent 65%),
        #15141F;
}

.csm-boot__content {
    position: relative;
    width: min(100%, 380px);
    text-align: center;
}

/* Abanico de cartas con los colores del logo */
.csm-boot__cards {
    position: relative;
    width: 168px;
    height: 128px;
    margin: 0 auto 28px;
}

.csm-boot__card {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 64px;
    height: 92px;
    margin-left: -32px;
    border-radius: 10px;
    border: 4px solid #F5E6C4;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    transform-origin: 50% 120%;
    animation: csm-boot-deal 2.4s ease-in-out infinite;
}

    .csm-boot__card:nth-child(1) { background: #3BAA5C; --rest: -24deg; animation-delay: 0s; }
    .csm-boot__card:nth-child(2) { background: #6C63C7; --rest: -8deg; animation-delay: .12s; }
    .csm-boot__card:nth-child(3) { background: #F2A33A; --rest: 8deg; animation-delay: .24s; }
    .csm-boot__card:nth-child(4) { background: #E5487A; --rest: 24deg; animation-delay: .36s; }

@keyframes csm-boot-deal {
    0%, 100% { transform: rotate(0deg) translateY(6px); }
    35%, 70% { transform: rotate(var(--rest)) translateY(0); }
}

.csm-boot h1 {
    margin: 0 0 6px;
    font-size: clamp(22px, 5vw, 28px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.csm-boot p {
    margin: 0 0 28px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.68);
}

.csm-boot__meter {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.csm-boot__bar {
    height: 100%;
    width: var(--blazor-load-percentage, 0%);
    min-width: 8px;
    border-radius: inherit;
    background: linear-gradient(90deg, #8B5CF6, #2DD4BF);
    transition: width .15s linear;
}

.csm-boot__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.csm-boot__percent {
    min-width: 40px;
    text-align: right;
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #fff;
}

    .csm-boot__percent::after {
        content: var(--blazor-load-percentage-text, "0%");
    }

.csm-boot__footer {
    margin-top: 48px;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

@media (prefers-reduced-motion: reduce) {
    .csm-boot__card { animation: none; transform: rotate(var(--rest)); }
    .csm-boot__bar { transition: none; }
}

@media (max-height: 560px) {
    .csm-boot__cards { display: none; }
    .csm-boot__footer { margin-top: 24px; }
}
