html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #0b0e14;
    overflow: hidden;
}

#app {
    width: 100vw;
    height: 100vh;
}

#loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at center, #141a26 0%, #0b0e14 70%);
    color: #f5f0de;
    font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
}

.loading-box {
    text-align: center;
}

.loading-title {
    font-size: 2.6em;
    letter-spacing: 0.35em;
    color: #f9d66d;
    text-shadow: 0 2px 12px rgba(218, 174, 82, 0.35);
}

.loading-text {
    margin-top: 0.8em;
    font-size: 1.05em;
    opacity: 0.8;
}

.dots {
    animation: aliado-dots 1.2s infinite steps(4);
}

@keyframes aliado-dots {
    from { opacity: 0.2; }
    to { opacity: 1; }
}

/* ---------- tela de loading real (fase de assets, renderizada pelo Blazor) ---------- */

.boot-overlay {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #141a26 0%, #0b0e14 70%);
    color: #f5f0de;
    font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
}

.boot-box {
    width: min(440px, 82vw);
    text-align: center;
}

.boot-title {
    font-size: 2.6em;
    letter-spacing: 0.35em;
    color: #f9d66d;
    text-shadow: 0 2px 12px rgba(218, 174, 82, 0.35);
}

.boot-phase {
    margin-top: 1.6em;
    font-size: 0.85em;
    letter-spacing: 0.22em;
    color: #daae52;
}

.boot-bar {
    margin-top: 0.8em;
    height: 14px;
    border-radius: 7px;
    border: 1px solid rgba(218, 174, 82, 0.55);
    background: rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.boot-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 7px;
    background: linear-gradient(180deg, #f9d66d, #daae52);
    box-shadow: 0 0 12px rgba(249, 214, 109, 0.55);
    transition: width 0.15s ease-out;
}

.boot-bar-pulse {
    animation: boot-pulse 1.1s ease-in-out infinite alternate;
}

@keyframes boot-pulse {
    from { opacity: 0.55; }
    to { opacity: 1; }
}

.boot-numbers {
    margin-top: 0.7em;
    font-size: 0.95em;
    opacity: 0.85;
    font-variant-numeric: tabular-nums;
}

.boot-current {
    margin-top: 0.35em;
    font-size: 0.8em;
    opacity: 0.55;
}

.boot-enter {
    margin-top: 1.35em;
    padding: 0.8em 1.7em;
    border: 1px solid rgba(249, 214, 109, 0.8);
    border-radius: 7px;
    background: linear-gradient(180deg, #f9d66d, #c99735);
    color: #171208;
    font: 700 0.9em 'Segoe UI', 'Helvetica Neue', sans-serif;
    letter-spacing: 0.14em;
    cursor: pointer;
    box-shadow: 0 0 18px rgba(249, 214, 109, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7em;
    min-width: 190px;
}

.boot-enter:disabled { cursor: wait; opacity: 0.84; }

.boot-spinner {
    width: 1.05em;
    height: 1.05em;
    border: 2px solid rgba(23, 18, 8, 0.28);
    border-top-color: #171208;
    border-radius: 50%;
    animation: boot-spin 0.7s linear infinite;
}

@keyframes boot-spin { to { transform: rotate(360deg); } }

.boot-enter:hover,
.boot-enter:focus-visible {
    filter: brightness(1.1);
    box-shadow: 0 0 24px rgba(249, 214, 109, 0.42);
    outline: none;
}

#blazor-error-ui {
    background: #b32121;
    color: #fff;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.3);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
