/* Numbered trophies belong to cumulative match standings. */
.standing-badge{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:none;padding:5px 9px;color:#493a19;background:#e8cf8b;border:0;font:700 13px/20px 'DM Sans',system-ui,sans-serif;white-space:nowrap}
.standing-badge svg{width:19px;height:19px;flex:none}
.standing-badge.place-2{color:#344b45;background:#d7dfdc}
.standing-badge.place-3{color:#634328;background:#e2c7ad}
.cumulative-score .compact-standing{gap:2px;margin-left:2px;padding:1px 4px;border-radius:3px;font-size:10px;line-height:16px}
.compact-standing svg{width:14px;height:14px}
.match-standing-summary{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 7px;padding:12px 14px;margin:4px 0 14px;border-left:3px solid #b99a4a;background:#ede6cf;color:#304c37;font-size:15px;line-height:22px}
.standings-after{margin-left:auto;color:#4b604b;font-size:12px;line-height:18px}
.score-round-finisher{font-size:13px;margin:0 0 12px;color:#50634b}
.round-score-grid .score-player{position:relative;padding:20px 14px 14px}
.round-score-grid .score-player.score-match-leader{border-color:#b99a4a}
.score-player>.standing-badge{position:absolute;top:0;right:0;border-radius:0 5px 0 6px}
.round-score-grid .score-player h3{display:block;margin:0 0 18px;padding-right:56px;min-height:20px;font-size:15px;line-height:20px}
.round-score-grid .score-cumulative{display:flex;flex-direction:column;gap:3px;margin:0 0 12px;color:#304c37;font-size:12px;line-height:18px;font-weight:500}
.score-game-total{font-size:32px;line-height:38px;font-weight:700;font-variant-numeric:tabular-nums}
.score-this-round{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:0 0 12px;color:#50634b;font-size:12px;line-height:18px}
.score-this-round .score-total{font-size:17px;line-height:22px;color:#304c37;font-variant-numeric:tabular-nums}
@media(min-width:768px) and (max-width:1199px){
 .opponent-player-card .cumulative-score .compact-standing{gap:1px;margin-left:0;padding:0 2px;font-size:9px;line-height:14px}
 .opponent-player-card .compact-standing svg{width:12px;height:12px}
}
@media(max-width:767px){
 .player-tabs .cumulative-score{gap:2px;flex-wrap:wrap;justify-content:flex-end}
 .player-tabs .cumulative-score .compact-standing{gap:0;margin:0;padding:0 1px;border-radius:2px;font-size:8px;line-height:12px}
 .player-tabs .compact-standing svg{width:9px;height:9px}
 .match-standing-summary{padding:10px 12px;font-size:14px;line-height:20px}
 .standings-after{margin-left:0;width:100%}
 .score-game-total{font-size:30px;line-height:36px}
}

/* Keep special unused cards easy to spot in both Hand and Foot lists. */
.score-player .unused-card-list{line-height:25px}
.score-player .unused-card{white-space:nowrap}
.score-player .unused-red-three,.score-player .unused-wild{display:inline-block;padding:0 4px;border-radius:3px;font-weight:700;line-height:19px}
.score-player .unused-red-three{background:#f7dfd5;color:#a32b2e}
.score-player .unused-wild{background:#f2ca61;color:#304c37}

/* Round progression stays available after the score window closes. */
.round-advance-controls{display:flex;align-items:stretch;flex-wrap:wrap;gap:10px;grid-column:1/-1;width:100%}
.round-advance-controls[hidden]{display:none!important}
.round-advance-controls button{flex:1 1 auto;min-height:46px;padding:11px 16px;border:1px solid #9aab90;border-radius:6px;font:700 14px/20px 'DM Sans',system-ui,sans-serif;white-space:nowrap;cursor:pointer}
.round-advance-controls .round-advance-primary{background:#b45839;border-color:#9b472f;color:#fff8e8;box-shadow:0 3px 0 #87452e}
.round-advance-controls .round-advance-primary:hover{background:#9f482f}
.round-advance-controls .round-advance-secondary{background:#fcf6e7;color:#304c37}
.round-advance-controls .round-advance-secondary:hover{background:#ede6d3}
.table-center .round-advance-controls{margin-top:6px}
.table-center .round-advance-controls .round-advance-secondary{flex:0 1 auto;background:transparent;border-color:#a4b497;color:#fff8e8;box-shadow:none}
.table-center .round-advance-controls .round-advance-secondary:hover{background:#ffffff12}
@media(min-width:768px) and (max-width:1199px){
 .handzone .round-advance-controls{grid-column:2;grid-row:1;width:auto;flex-wrap:nowrap;justify-self:center}
}
@media(max-width:767px){
 .action-dock .round-advance-controls{gap:8px}
 .round-advance-controls button{min-height:44px;padding:10px 12px;font-size:13px;line-height:18px}
}
