/* Modale "tous les scores" au style de la refonte (essai 2026-12-03) */
.scores-modal-overlay{background:rgba(14,10,52,.72);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.scores-modal.mx{width:min(94vw,860px);max-width:860px;max-height:88vh;overflow:hidden;border-radius:22px;border:2px solid rgba(255,255,255,.55);background:#f5f8fd;box-shadow:0 24px 70px rgba(8,6,45,.6)}
.scores-modal.mx .scores-modal-header{justify-content:flex-start;gap:.85rem;padding:1rem 1.2rem;border:0;border-radius:0;background:linear-gradient(120deg,#46259c,#1565c0 55%,#00a3c4)}
.mx-coupe{flex:0 0 auto;width:50px;height:50px;border-radius:15px;display:flex;align-items:center;justify-content:center;font-size:1.7rem;background:linear-gradient(135deg,#ffe36b,#ffb300);box-shadow:0 6px 14px rgba(0,0,0,.25)}
.mx-titre{flex:1 1 auto;min-width:0;text-align:left}
.scores-modal.mx .scores-modal-header h2{margin:0;padding:0;border:0;font-size:1.25rem;font-weight:800;color:#fff;background:none;text-shadow:0 2px 6px rgba(0,0,0,.3)}
.scores-modal.mx .mx-sous{margin:.15rem 0 0;font-size:.84rem;color:#dbe9ff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.scores-modal.mx .scores-modal-close{flex:0 0 auto;width:42px;height:42px;font-size:1.7rem;background:rgba(255,255,255,.18);box-shadow:inset 0 0 0 1px rgba(255,255,255,.4)}
.scores-modal.mx .scores-modal-close:hover{background:#fff;color:#1565c0}
.scores-modal.mx .scores-modal-close:focus-visible{outline:3px solid #ffd633;outline-offset:2px}
.mx-barre{display:flex;gap:.6rem;padding:.7rem 1rem;background:#fff;border-bottom:1px solid #dbe8f6}
.scores-modal.mx .mx-champ{flex:1 1 auto;min-width:0;width:auto;margin:0;height:42px;padding:0 1rem;border:0;border-radius:999px;background:#eef5fd;box-shadow:inset 0 0 0 1px #cfe0f2;font-size:.95rem;color:#0b3d66}
.scores-modal.mx .mx-champ:focus{outline:none;background:#fff;box-shadow:inset 0 0 0 2px #1e9be0}
.scores-modal.mx .mx-moi{flex:0 0 auto;margin:0;padding:0 1.1rem;height:42px;border:0;border-radius:999px;background:linear-gradient(135deg,#ffe36b,#ffb300);color:#4a2d00;font-weight:800;font-size:.86rem;cursor:pointer;white-space:nowrap}
.scores-modal.mx .mx-moi:hover{box-shadow:0 0 14px rgba(255,190,30,.85)}
.scores-modal.mx .scores-modal-body{background:#f5f8fd;overscroll-behavior:contain;min-height:0}
.scores-modal.mx .scores-modal-content{padding:0 .8rem .8rem;overflow:visible;background:transparent;box-shadow:none}
.scores-modal.mx .mx-podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem;align-items:end;padding:.9rem 0 .5rem}
.scores-modal.mx .mx-podium[hidden]{display:none}
.scores-modal.mx .mx-marche{position:relative;display:flex;flex-direction:column;align-items:center;gap:.15rem;padding:.7rem .4rem .6rem;border-radius:18px;text-decoration:none;color:#0b3d66;background:linear-gradient(170deg,#eef2f8,#d9e1ee);box-shadow:0 5px 14px rgba(20,40,100,.14);transition:transform .15s,box-shadow .15s}
.scores-modal.mx a.mx-marche:hover{transform:translateY(-3px);box-shadow:0 10px 20px rgba(20,40,100,.25);text-decoration:none}
.scores-modal.mx .mx-m1{order:2;padding-top:1.1rem;padding-bottom:.95rem;background:linear-gradient(170deg,#fff4bd,#ffd54a)}
.scores-modal.mx .mx-m2{order:1}
.scores-modal.mx .mx-m3{order:3;background:linear-gradient(170deg,#ffe9d6,#f6bd8b)}
.mx-medaille{position:absolute;top:.35rem;left:.5rem;font-size:1.35rem}
.mx-rond{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;color:#fff;background:linear-gradient(135deg,#46259c,#00a3c4);box-shadow:0 0 0 3px #fff}
.mx-m1 .mx-rond{width:50px;height:50px;font-size:1.25rem}
.scores-modal.mx .mx-marche strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.9rem}
.scores-modal.mx .mx-marche b{font-size:1.15rem;font-weight:800;white-space:nowrap}
.scores-modal.mx .mx-marche small{font-size:.7rem;color:#5a6b84}
.scores-modal.mx .scores-table{display:table;width:100%;margin:0;border:0;border-collapse:separate;border-spacing:0 .35rem;background:transparent;box-shadow:none;overflow:visible}
.scores-modal.mx .scores-table th{padding:.55rem .6rem;border:0;background:#f5f8fd;box-shadow:none;color:#5a7290;font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em;text-align:left}
.scores-modal.mx .scores-table th:hover{background:#e2eefc;color:#1565c0}
.scores-modal.mx .sort-icon{margin-left:.2rem;font-size:.75rem}
.scores-modal.mx .scores-table td{padding:.55rem .6rem;border:0;background:#fff;color:#33475b;font-size:.9rem;vertical-align:middle;transition:background .15s}
.scores-modal.mx .scores-table td:first-child{border-radius:14px 0 0 14px}
.scores-modal.mx .scores-table td:last-child{border-radius:0 14px 14px 0}
.scores-modal.mx .scores-table tr[hidden]{display:none}
.scores-modal.mx .scores-table tbody tr:hover td{background:#eaf4ff;transform:none}
.scores-modal.mx .scores-table .medal-cell{width:64px;text-align:center;font-weight:800;color:#0b3d66}
.scores-modal.mx .scores-table td:nth-child(2){font-weight:800;font-size:1rem;color:#0b3d66;white-space:nowrap}
.scores-modal.mx .scores-table td:nth-child(4),.scores-modal.mx .scores-table td:nth-child(5){font-size:.8rem;color:#6a7f99;white-space:nowrap}
.scores-modal.mx .scores-table .mx-vide{opacity:.45}
.scores-modal.mx .scores-table .medal-icon{transform:none}
.scores-modal.mx .player-link{display:inline-flex;align-items:center;gap:.55rem;font-weight:700;color:#1565c0}
.scores-modal.mx .player-link::before{content:attr(data-i);flex:0 0 auto;width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.82rem;font-weight:800;color:#fff;background:linear-gradient(135deg,#5b6ee1,#00a3c4)}
.scores-modal.mx .scores-table tr.mx-top1 td{background:#fff6cc}
.scores-modal.mx .scores-table tr.mx-top2 td{background:#edf1f7}
.scores-modal.mx .scores-table tr.mx-top3 td{background:#ffeee0}
.scores-modal.mx .scores-table tr.player-row td{background:#dcf4ff!important;box-shadow:inset 0 2px 0 #1e9be0,inset 0 -2px 0 #1e9be0}
.scores-modal.mx .scores-table tr.mx-flash td{animation:mx-flash .5s ease 3}
@keyframes mx-flash{50%{filter:brightness(.86)}}
.scores-modal.mx .mx-aucun{margin:0;padding:1.5rem;text-align:center;color:#6a7f99}
.scores-modal.mx .mx-aucun[hidden]{display:none}
@media(max-width:620px){
.scores-modal.mx{top:auto;bottom:0;left:0;width:100%;max-width:100%;height:92vh;height:92dvh;max-height:92dvh;transform:translateY(40px);border-radius:22px 22px 0 0;border-width:2px 0 0}
.scores-modal.mx.show{transform:none}
.scores-modal.mx .scores-modal-header{padding:.75rem .8rem;gap:.6rem}
.mx-coupe{width:40px;height:40px;font-size:1.3rem}
.scores-modal.mx .scores-modal-header h2{font-size:1.05rem}
.mx-barre{padding:.55rem .7rem;gap:.4rem}
.scores-modal.mx .mx-moi{padding:0 .75rem;font-size:.8rem}
.scores-modal.mx .scores-modal-content{padding:0 .6rem .8rem}
.scores-modal.mx .mx-podium{gap:.35rem}
.scores-modal.mx .mx-marche b{font-size:.98rem}
.scores-modal.mx .mx-marche strong{font-size:.8rem}
.mx-medaille{font-size:1.05rem;left:.3rem}
.scores-modal.mx .scores-table,.scores-modal.mx .scores-table tbody,.scores-modal.mx .scores-table thead{display:block}
.scores-modal.mx .scores-table thead tr{display:flex;gap:.3rem;overflow-x:auto;padding:.2rem 0 .4rem}
.scores-modal.mx .scores-table thead th{display:block;position:static;flex:1 0 auto;width:auto;padding:.45rem .55rem;border-radius:999px;background:#e6eef9;text-align:center;font-size:.66rem}
.scores-modal.mx .scores-table tbody tr{display:grid;grid-template-columns:40px minmax(0,1fr) auto;grid-template-areas:"rang joueur score" "rang date temps";align-items:center;margin-bottom:.4rem;border-radius:14px;overflow:hidden;background:#fff}
.scores-modal.mx .scores-table tbody tr[hidden]{display:none}
.scores-modal.mx .scores-table tbody td{display:block!important;width:auto;border-radius:0!important;padding:.15rem .45rem;box-shadow:none}
.scores-modal.mx .scores-table tbody td:nth-child(1){grid-area:rang;align-self:stretch;display:flex!important;align-items:center;justify-content:center;padding:0}
.scores-modal.mx .scores-table tbody td:nth-child(2){grid-area:score;text-align:right;padding-top:.5rem}
.scores-modal.mx .scores-table tbody td:nth-child(3){grid-area:joueur;padding-top:.5rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.scores-modal.mx .scores-table tbody td:nth-child(4){grid-area:date;padding-bottom:.5rem;font-size:.74rem}
.scores-modal.mx .scores-table tbody td:nth-child(5){grid-area:temps;text-align:right;padding-bottom:.5rem;font-size:.74rem}
.scores-modal.mx .scores-table tbody tr.player-row{box-shadow:0 0 0 2px #1e9be0}
.scores-modal.mx .player-link::before{width:26px;height:26px;font-size:.74rem}
}
@media(max-width:620px){
.scores-modal.mx .scores-table thead tr{overflow:visible;gap:.25rem}
.scores-modal.mx .scores-table thead th{flex:1 1 auto;min-width:0;padding:.45rem .2rem;letter-spacing:0}
.scores-modal.mx .scores-table thead th .sort-icon:not(.sort-active){display:none}
.scores-modal.mx .scores-table tbody tr td{background:transparent!important;box-shadow:none!important}
.scores-modal.mx .scores-table tbody tr.mx-top1{background:#fff6cc}
.scores-modal.mx .scores-table tbody tr.mx-top2{background:#edf1f7}
.scores-modal.mx .scores-table tbody tr.mx-top3{background:#ffeee0}
.scores-modal.mx .scores-table tbody tr.player-row{background:#dcf4ff!important}
}
@media(prefers-reduced-motion:reduce){.scores-modal.mx,.scores-modal.mx .mx-marche{transition:none}.scores-modal.mx .scores-table tr.mx-flash td{animation:none}}
