/* ==========================================================
   LANDING - RANKING IA ROTATIVO POR LOTERIA
   ========================================================== */

.landing-live-panel {
    overflow: hidden;
}

.landing-live-panel .panel-head h2 {
    font-size: 26px;
}

.ranking-rotativo {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    border-radius: 22px;
}

.ranking-track {
    display: flex;
    flex-direction: column;
    gap: 18px;
    animation: rankingScroll calc(var(--qtd-cards, 4) * 4.2s) linear infinite;
}

.ranking-track:hover {
    animation-play-state: paused;
}

@keyframes rankingScroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(calc(-1 * var(--qtd-cards, 4) * 252px));
    }
}

.ranking-card-loteria {
    min-height: 235px;
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(135deg, #f8fafc, #eef2f7);
    color: #071221;
    box-shadow: 0 20px 40px rgba(0,0,0,.18);
}

.ranking-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.ranking-card-top span {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #071221;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .5px;
}

.ranking-card-top small {
    color: #64748b;
    font-weight: 800;
}

.ranking-bicho {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.ranking-bicho > span {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(215,173,85,.22), rgba(22,163,74,.14));
    font-size: 34px;
}

.ranking-bicho small {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.ranking-bicho strong {
    display: block;
    font-size: 36px;
    line-height: 1;
    margin-top: 5px;
}

.ranking-score-line {
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: #dbe4ef;
    margin-bottom: 16px;
}

.ranking-score-line i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #16a34a, #d7ad55);
    animation: rankingFill 1.2s ease both;
}

@keyframes rankingFill {
    from {
        width: 0;
    }
}

.ranking-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.ranking-info-grid div {
    padding: 10px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.ranking-info-grid span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.ranking-info-grid strong {
    display: block;
    margin-top: 4px;
    font-size: 17px;
}

.ranking-caption {
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.5;
    margin: 14px 0 0;
}

@media (max-width: 640px) {
    .ranking-rotativo {
        min-height: 455px;
    }

    .ranking-card-loteria {
        min-height: 260px;
    }

    .ranking-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ranking-bicho strong {
        font-size: 28px;
    }

    @keyframes rankingScroll {
        0% {
            transform: translateY(0);
        }
        100% {
            transform: translateY(calc(-1 * var(--qtd-cards, 4) * 278px));
        }
    }
}
