/* ═══════════════════════════════════════════
   Game Ranking Card (shared across games)
   ═══════════════════════════════════════════ */
.game-ranking {
    width: 100%;
    /* Se acota por el max-width del padre (.game-result-modal) */
    box-sizing: border-box;
    margin: 15px auto 0;
    padding: 16px 16px 18px;
    background: linear-gradient(135deg, #1c1408, #251a0a);
    border: 2px solid rgba(255, 179, 0, 0.45);
    border-radius: 10px;
}

.ranking-title {
    font-family: 'Pirata One', cursive;
    font-size: 0.82rem;
    color: #ffd54f;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ranking-title::before,
.ranking-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 179, 0, 0.35);
}

.ranking-rows {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ranking-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
}

.ranking-row.is-me {
    background: rgba(255, 213, 79, 0.1);
    border-color: rgba(255, 213, 79, 0.4);
}

.ranking-medal {
    font-size: 1.3rem;
    flex-shrink: 0;
    width: 26px;
    text-align: center;
    line-height: 1;
}

.ranking-avatar {
    font-size: 1.6rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ranking-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.ranking-name {
    flex: 1;
    font-family: 'Roboto', sans-serif;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.65);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.ranking-name strong {
    font-weight: 700;
    color: #fff;
}

.ranking-verified {
    font-size: 0.8rem;
    margin-left: 3px;
    vertical-align: middle;
    cursor: default;
}

.ranking-you-tag {
    font-size: 0.7rem;
    color: #ffd54f;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    background: rgba(255, 213, 79, 0.15);
    border: 1px solid rgba(255, 213, 79, 0.4);
    border-radius: 10px;
    padding: 1px 7px;
    margin-left: 6px;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}

.ranking-score {
    font-family: 'Pirata One', cursive;
    font-size: 1.05rem;
    color: #ffd54f;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.ranking-row.is-me .ranking-score {
    color: #ffe57f;
    text-shadow: 0 0 8px rgba(255, 213, 79, 0.4);
}

.ranking-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    margin: 0;
    padding: 8px 0;
}

.ranking-streak-note {
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-size: 16px !important;
    color: rgba(255, 160, 0, 0.5);
    margin: 6px 0 15px !important;
    padding: 5px 6px;
    background: rgba(255, 140, 0, 0.06);
    border: 1px solid rgba(255, 140, 0, 0.15);
    border-radius: 4px;
    line-height: 1.3;
}

.top5-inline-note {
    font-family: 'Pirata One', cursive;
    font-size: 0.88rem;
    color: #ffd54f;
    text-align: center;
    margin: 10px 0 !important;
    opacity: 0.85;
}


/* ── Streak badge en filas de ranking ── */
.ranking-streak-badge {
    flex-shrink: 0;
    min-width: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 2px 4px;
    border-radius: 10px;
    border: 1px solid;
    font-family: 'Pirata One', cursive;
    font-size: 0.8rem;
    font-weight: bold;
    line-height: 1.4;
    pointer-events: none;
}

.ranking-streak-badge.ranking-streak-empty {
    visibility: hidden;
}

.ranking-streak-badge.tier-1 {
    background: linear-gradient(135deg, #2a2510, #3d3518);
    border-color: #d4b44a;
    color: #d4b44a;
    box-shadow: 0 0 4px rgba(212, 180, 74, 0.2);
}

.ranking-streak-badge.tier-2 {
    background: linear-gradient(135deg, #2a1500, #3e1f00);
    border-color: #ff6a00;
    color: #ff6a00;
    box-shadow: 0 0 6px rgba(255, 106, 0, 0.25);
}

.ranking-streak-badge.tier-3 {
    background: linear-gradient(135deg, #1a0008, #3a0010);
    border-color: #ff2d2d;
    color: #ff2d2d;
    box-shadow: 0 0 8px rgba(255, 45, 45, 0.3);
}

.ranking-streak-badge.tier-4 {
    background: linear-gradient(135deg, #1a1a2e, #2a2040 50%, #1a1a2e);
    border-color: #e8e0f0;
    color: #f0ecf5;
    text-shadow: 0 0 4px rgba(200, 180, 255, 0.6);
    box-shadow: 0 0 10px rgba(220, 200, 255, 0.3);
}

.btn-skip-text {
    background: none;
    border: none;
    color: rgba(255, 248, 225, 0.4);
    font-size: 0.85rem;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    transition: color 0.2s;
    padding: 4px 8px;
}

.btn-skip-text:hover {
    color: rgba(255, 248, 225, 0.7);
}
