/* V331 — navigation entre parties, sans modification des habillages du plateau. */
#btn-parties-attente{position:relative;flex:0 0 auto;}
#btn-parties-attente .attente-compte{position:absolute;right:0;top:0;min-width:17px;height:17px;padding:0 3px;display:flex;align-items:center;justify-content:center;border-radius:9px;background:#176649;color:#fff;font:800 10px/1 Arial,sans-serif;box-sizing:border-box;border:1px solid #fff;}
#btn-parties-attente .attente-compte.is-zero{background:#d4e1d8;color:#32503d;}
#parties-attente-overlay{position:fixed;inset:0;z-index:2450;background:#183b2a55;display:flex;align-items:center;justify-content:center;padding:12px;box-sizing:border-box;}
#parties-attente-overlay.hidden{display:none!important;}
#parties-attente-card{width:min(480px,100%);max-height:calc(100dvh - 24px);background:#fffdf7;border:1px solid #bbd3c2;border-radius:20px;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 18px 48px #14351f55;}
.attente-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:#185c41;color:white;flex:0 0 auto;}
.attente-header h3{margin:0;font-size:18px;color:white;}
#parties-attente-close{width:44px;min-width:44px;height:44px;min-height:44px;background:#ffffff20;color:white;border:1px solid #ffffff45;border-radius:12px;padding:0;font-size:25px;box-shadow:none;}
#parties-attente-info{padding:10px 14px 6px;font-size:13px;color:#49634f;flex:0 0 auto;margin:0;}
#parties-attente-list{padding:6px 10px 12px;overflow-y:auto;min-height:0;overscroll-behavior:contain;}
.attente-row{display:flex;gap:10px;align-items:center;width:100%;min-height:72px;text-align:left;border:1px solid #d8e5da;border-radius:12px;background:white;color:#233d2e;box-shadow:none;padding:10px 12px;margin:5px 0;}
.attente-row:hover,.attente-row:focus-visible{background:#edf5ef;border-color:#28734f;outline:2px solid #28734f;outline-offset:-2px;}
.attente-avatar{width:36px;height:36px;min-width:36px;border-radius:50%;background:#d6e9dd;color:#205338;display:grid;place-items:center;font-weight:800;overflow:hidden;}
.attente-avatar img{width:100%;height:100%;object-fit:cover;}
.attente-details{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px;}
.attente-name{font-size:15px;overflow-wrap:anywhere;}
.attente-meta{font-size:11px;color:#526959;overflow-wrap:anywhere;font-weight:500;}
.attente-score{font-size:14px;font-weight:800;white-space:nowrap;}
.attente-open{font-size:24px;color:#28734f;flex:0 0 auto;}
.attente-empty{padding:18px 10px;color:#49634f;font-size:14px;line-height:1.5;text-align:center;}
#parties-attente-retry{margin:8px auto;display:block;min-height:44px;background:#e2f0e7;color:#245c3b;border:1px solid #accbb8;border-radius:10px;padding:8px 16px;box-shadow:none;}
@media(max-width:860px){
 #view-game:not(.game-zoom) .game-icon-row-mobile .game-icon-row-group{gap:4px!important;}
 #view-game:not(.game-zoom) .game-icon-row-mobile #btn-parties-attente{width:40px!important;}
 #parties-attente-overlay{inset:auto;left:var(--attente-vv-left,0px);top:var(--attente-vv-top,0px);width:var(--attente-vv-width,100vw);height:var(--attente-vv-height,100dvh);}
 #parties-attente-card{max-height:calc(var(--attente-vv-height,100dvh) - 24px);}
}
/* Résultats : mêmes couleurs dans les poules, la recherche et les phases finales. */
#view-hebdo .hebdo-score-cell.is-score-winner{background:#176649;color:white;opacity:1;}
#view-hebdo .hebdo-score-cell.is-score-loser{background:#a33042;color:white;opacity:1;}
#view-hebdo .hebdo-score-cell:is(.is-score-draw,.is-score-neutral){background:#dce4df;color:#354e3e;opacity:1;}
#view-hebdo .hebdo-score-value.is-score-winner,#view-hebdo .hebdo-ko-game-win.is-score-winner{color:#176649!important;opacity:1!important;font-weight:900;}
#view-hebdo .hebdo-score-value.is-score-loser,#view-hebdo .hebdo-ko-game-win.is-score-loser{color:#a33042!important;opacity:1!important;font-weight:800;}
#view-hebdo .hebdo-score-value:is(.is-score-draw,.is-score-neutral),#view-hebdo .hebdo-ko-game-win:is(.is-score-draw,.is-score-neutral){color:#45594d!important;opacity:1!important;}
#view-hebdo .hebdo-ko-game-win.is-score-winner{background:#e1f1e7;border-radius:4px;}
#view-hebdo .hebdo-ko-game-win.is-score-loser{background:#fbe9ec;border-radius:4px;}
#view-hebdo .hebdo-ko-game-win:is(.is-score-neutral,.is-score-draw){background:#eef2ef;border-radius:4px;}
.hebdo-score-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:5px 14px;padding:8px;font-size:12px;background:#fffdf8;color:#334f3d;font-weight:700;}
.hebdo-score-legend .legend-winner{color:#176649;}.hebdo-score-legend .legend-loser{color:#a33042;}.hebdo-score-legend .legend-neutral{color:#45594d;}
@media(forced-colors:active){#view-hebdo .hebdo-score-cell{background:Canvas!important;color:CanvasText!important;border:1px solid CanvasText;}#view-hebdo .is-score-winner{outline:2px solid CanvasText;}.attente-row{border:1px solid CanvasText;}}
