﻿/* =========================================================
   CLASSEMENT
========================================================= */

.ranking-container {
    width: 100%;
    max-width: 700px;

    margin: 0px auto 0;

    box-sizing: border-box;

    padding: 20px;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 16px;

    box-shadow: 0 4px 15px rgba(15, 23, 42, .06);
}


/* =========================================================
   TITRE
========================================================= */

.ranking-title {
    text-align: center;

    font-size: 22px;
    font-weight: 800;

    color: #1e293b;
}


.ranking-subtitle {
    margin-top: 4px;

    text-align: center;

    font-size: 13px;

    color: #94a3b8;
}


/* =========================================================
   TYPE
========================================================= */

.ranking-type {
    margin-top: 20px;
}


.ranking-type-title {
    margin: 0 0 8px;

    padding: 9px 12px;

    background: #f1f5f9;

    border-radius: 9px;

    font-size: 16px;

    color: #334155;
}


/* =========================================================
   LISTE
========================================================= */

.ranking-list {
    display: flex;

    flex-direction: column;

    gap: 6px;
}


/* =========================================================
   LIGNE
========================================================= */

.ranking-row {
    display: flex;

    align-items: center;

    min-height: 54px;

    padding: 6px 10px;

    box-sizing: border-box;

    background: #f8fafc;

    border-radius: 10px;
}


/* =========================================================
   POSITION
========================================================= */

.ranking-position {
    width: 42px;

    flex-shrink: 0;

    text-align: center;

    font-size: 22px;
}


.rank-number {
    font-size: 15px;

    font-weight: 700;

    color: #64748b;
}


/* =========================================================
   JOUEUR
========================================================= */

.ranking-user {
    display: flex;

    align-items: center;

    gap: 10px;

    min-width: 0;

    flex: 1;
}


.ranking-avatar {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    border-radius: 50%;

    object-fit: cover;

    border: 2px solid #e2e8f0;
}


.ranking-pseudo {
    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    font-size: 15px;

    font-weight: 700;

    color: #334155;
}


/* =========================================================
   SCORE
========================================================= */

.ranking-score {
    min-width: 65px;

    text-align: right;

    font-size: 19px;

    font-weight: 800;

    color: #2563eb;
}


.score-percent {
    font-size: 13px;

    font-weight: 600;

    color: #64748b;
}


/* =========================================================
   AUCUN SCORE
========================================================= */

.ranking-empty {
    margin-top: 20px;

    padding: 25px 10px;

    text-align: center;

    color: #94a3b8;

    font-size: 14px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .ranking-container {
        padding: 12px;

        border-radius: 12px;
    }

    .ranking-title {
        font-size: 19px;
    }

    .ranking-position {
        width: 35px;
    }

    .ranking-avatar {
        width: 34px;
        height: 34px;
    }

    .ranking-pseudo {
        font-size: 14px;
    }

    .ranking-score {
        min-width: 55px;

        font-size: 17px;
    }
}
