/* Informations privées du seul joueur local ; aucune animation permanente. */
.waiting-labels { display:flex; flex-direction:column; gap:3px; min-width:0; max-width:160px; flex-shrink:0; }
.waiting-labels>strong { font-weight:600; }
.waiting-mirror-cards { display:block; overflow-x:auto; white-space:nowrap; font-weight:600; padding-bottom:2px; }
.waiting-mirror-icon { width:.8em; height:1.1em; margin-right:3px; vertical-align:-.15em; }
@media(max-width:999px), (max-height:499px) {
 .waiting-labels { max-width:125px; gap:1px; }
}
.waiting-panel { display:flex; align-items:center; gap:7px; width:max-content; max-width:100%; padding:4px 7px; border:1px solid #b9a36e; border-radius:7px; background:#fff9e9f5; color:#244834; font:12px Arial,sans-serif; }
.waiting-panel>strong { flex-shrink:0; font-weight:600; }
.waiting-cards { display:flex; align-items:center; gap:4px; min-width:0; overflow-x:auto; padding:1px 2px 4px; }
.waiting-card { position:relative; display:block; flex-shrink:0; padding-bottom:6px; }
.app-shell .game-surface .waiting-panel .card.small { width:26px; height:36px; margin:0; border-radius:3px; }
.app-shell .game-surface .waiting-panel .card.small .corner { top:2px; left:2px; font-size:11px; }
.app-shell .game-surface .waiting-panel .card.small .corner small { font-size:9px; }
.app-shell .game-surface .waiting-panel .card.small .pip { top:15px; left:0; font-size:17px; }
.waiting-source { position:absolute; bottom:0; right:-1px; min-width:12px; border-radius:6px; background:#e3ebcc; color:#244834; text-align:center; font:bold 10px/12px Arial,sans-serif; }
.waiting-mirror { position:absolute; right:1px; bottom:7px; width:10px; height:14px; border-radius:3px; background:#fffdf4; pointer-events:none; }
.app-shell .game-surface .waiting-panel .mirrored .card.small .pip { width:calc(100% - 10px); font-size:15px; }
@media(min-width:1000px) and (min-height:500px) {
 /* Les groupes du joueur utilisent aussi deux rangées à taille lisible. */
 .in-game .own-exposed .exposed-groups { min-width:0; width:100%; height:auto; flex-wrap:wrap; justify-content:flex-start; align-content:flex-start; padding:2px; gap:4px; }
 .app-shell.in-game .game-surface .player-zone:has(.own-exposed .exposed-group:nth-child(3)) .own-exposed { height:124px; min-height:124px; }
 .in-game:has(.own-exposed .exposed-group:nth-child(3)) .table-layout { grid-template-rows:minmax(0,1fr) 300px; }
 .app-shell.in-game .game-surface .own-exposed:has(.exposed-group:nth-child(2)) .card.small,
 .app-shell.in-game .game-surface .own-exposed:has(.exposed-group:nth-child(2)) .exposed-back { width:30px; height:44px; }
 .app-shell.in-game .game-surface .own-exposed:has(.exposed-group:nth-child(2)) .exposed-group .pip { font-size:17px; top:20px; }
 .app-shell.in-game .game-surface .waiting-panel { position:absolute; left:350px; bottom:165px; max-width:calc(100% - 600px); max-height:60px; z-index:3; }
 .app-shell.in-game .game-surface .player-zone:has(>.waiting-panel):has(.own-exposed .exposed-group)>.waiting-panel { max-width:calc((100% - 600px)/2); }
 .app-shell.in-game .game-surface .player-zone:has(>.waiting-panel) .own-exposed { left:calc(350px + (100% - 600px)/2); }
}
/* Réserver la hauteur nécessaire sur les fenêtres PC courtes, uniquement
   lorsque trois groupes locaux ou quatre groupes latéraux sont présents. */
@media(min-width:1000px) and (500px <= height < 800px) {
 .in-game:has(.own-exposed .exposed-group:nth-child(3),.seat:is(.west,.east) .exposed-group:nth-child(4)) { --table-fit:var(--groups-fit); }
}
@media(min-width:1000px) and (720px <= height < 800px) { .in-game { --groups-fit:.88; } }
@media(min-width:1000px) and (680px <= height < 720px) { .in-game { --groups-fit:.82; } }
@media(min-width:1000px) and (620px <= height < 680px) { .in-game { --groups-fit:.74; } }
@media(min-width:1000px) and (560px <= height < 620px) { .in-game { --groups-fit:.66; } }
@media(min-width:1000px) and (500px <= height < 560px) { .in-game { --groups-fit:.58; } }
@media(1000px <= width < 1200px) and (min-height:500px) {
 .in-game:has(.own-exposed .exposed-group:nth-child(2)) { --table-fit:min(.85,var(--groups-fit,1)); }
}
@media(min-width:1000px) and (min-height:500px) {
 .table-compact.in-game:has(.own-exposed .exposed-group:nth-child(3),.seat:is(.west,.east) .exposed-group:nth-child(4)) { --table-fit:min(.85,var(--groups-fit,1)); }
}
@media(orientation:landscape) and (min-width:560px) and (width < 1000px), (orientation:landscape) and (min-width:560px) and (height < 500px) {
 .app-shell.in-game .game-surface .waiting-panel { position:absolute; left:136px; bottom:114px; max-width:calc(100% - 268px); padding:1px 4px; gap:4px; max-height:34px; z-index:3; font-size:9px; }
 .app-shell.in-game .game-surface .waiting-panel .card.small { width:18px; height:24px; }
 .app-shell.in-game .game-surface .waiting-panel .card.small .corner { top:0; left:1px; font-size:9px; }
 .app-shell.in-game .game-surface .waiting-panel .card.small .corner small { font-size:8px; }
 .app-shell.in-game .game-surface .waiting-panel .card.small .pip { top:9px; font-size:12px; }
 .waiting-cards { gap:3px; padding-bottom:1px; }
 .waiting-card { padding-bottom:2px; }
 .waiting-source { font-size:8px; line-height:9px; min-width:9px; }
 .waiting-mirror { right:0; bottom:3px; width:7px; height:10px; }
 .app-shell.in-game .game-surface .waiting-panel .mirrored .card.small .pip { width:calc(100% - 7px); font-size:10px; }
}
