/* Splash inicial — 2 segundos com logo */
body.splash-active {
    overflow: hidden;
    height: 100%;
}

.site-splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse 90% 70% at 50% 35%, #9eefd4 0%, #45cfa8 45%, #00a859 100%);
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

.site-splash--out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-splash-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(125deg, transparent 42%, rgba(255, 255, 255, 0.08) 42%, rgba(255, 255, 255, 0.08) 44%, transparent 44%),
        repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255, 255, 255, 0.04) 20px, rgba(255, 255, 255, 0.04) 40px);
    pointer-events: none;
}

.site-splash-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 24px;
}

.site-splash-spinner-wrap {
    position: relative;
    width: 132px;
    height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-splash-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: rgba(255, 255, 255, 0.95);
    border-right-color: rgba(255, 212, 42, 0.85);
    animation: site-splash-spin 1.1s linear infinite;
}

.site-splash-ring--2 {
    inset: 8px;
    border-top-color: rgba(255, 212, 42, 0.7);
    border-right-color: rgba(255, 255, 255, 0.5);
    animation: site-splash-spin 1.6s linear infinite reverse;
}

.site-splash-logo {
    width: 88px;
    height: 88px;
    object-fit: contain;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    padding: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    animation: site-splash-pulse 2s ease-in-out infinite;
}

.site-splash-name {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.site-splash-hint {
    margin: -8px 0 0;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    animation: site-splash-blink 1.4s ease-in-out infinite;
}

@keyframes site-splash-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes site-splash-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.04);
    }
}

@keyframes site-splash-blink {
    0%, 100% {
        opacity: 0.55;
    }
    50% {
        opacity: 1;
    }
}

/* Navegação (meus-times → ranking): fundo transparente, só o loader */
.site-splash--nav {
    background: transparent;
    pointer-events: all;
}

.site-splash--nav .site-splash-bg {
    display: none;
}

.site-splash--nav .site-splash-name,
.site-splash--nav .site-splash-hint {
    display: none;
}

.site-splash--nav .site-splash-ring {
    border-top-color: #00a859;
    border-right-color: rgba(0, 168, 89, 0.35);
}

.site-splash--nav .site-splash-ring--2 {
    border-top-color: #ffd42a;
    border-right-color: rgba(255, 212, 42, 0.45);
}

.site-splash--nav .site-splash-logo {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

@media (prefers-reduced-motion: reduce) {
    .site-splash-ring,
    .site-splash-ring--2 {
        animation-duration: 2.4s;
    }

    .site-splash-logo,
    .site-splash-hint {
        animation: none;
    }
}
