/* Dimensions du cadre indépendantes du nombre de cartes ou de captures. */
.app-shell .game-surface {
 width:min(100%,1440px); height:clamp(680px,calc(100dvh - 24px),960px);
 margin-inline:auto; overflow:auto; scrollbar-gutter:stable;
}
.app-shell.table-compact .game-surface { width:min(100%,1120px); height:680px; }
.app-shell.table-large .game-surface { width:min(100%,1760px); height:960px; }
/* Les trois dimensions de cadre ne changent plus l'échelle du matériel. */
.app-shell .game-surface .game-table { padding:12px; gap:14px 20px; }
.app-shell .game-surface .player-zone { margin:0 24px; padding:8px 12px 4px; }
.app-shell .game-surface .hand { height:130px; min-height:130px; }
.app-shell .game-surface .hand .card { --hand-card:clamp(43px,4.4vw,65px); }
.app-shell .game-surface .card-backs { height:18px; min-height:18px; margin:4px 0; }
.app-shell .game-surface .card-back { height:18px; }
.app-shell .game-surface .action-rail { height:154px; max-height:154px; }
/* Les piles horizontales encadrent un vrai indicateur de taille lisible. */
.game-surface .table-center { gap:7px; }
.game-surface .forest-total { font-size:14px; }
.game-surface .forest-total strong { font-size:27px; }
.game-surface .forest-total small { font-size:12px; }
.game-surface .indicator-caption { font-size:11px; }
.game-surface .forest-cross {
 width:210px; height:164px; grid-template-columns:58px 78px 58px;
 grid-template-rows:34px 80px 34px; gap:8px;
}
.game-surface .central-indicator .card.small { width:54px; height:78px; border-radius:5px; }
.game-surface .central-indicator .card.small .corner { font-size:17px; top:6px; left:6px; }
.game-surface .central-indicator .card.small .corner small { font-size:14px; }
.game-surface .central-indicator .card.small .pip { font-size:28px; top:31px; left:0; }
.game-surface .forest-pile { font-size:12px; gap:7px; }
.game-surface .pile-back { width:27px; height:40px; flex-shrink:0; box-shadow:2px 2px #ced0ad,4px 4px #6c8065; }
.game-surface .pile-north .pile-back,.game-surface .pile-south .pile-back { width:44px; height:29px; }
.game-surface .pile-back.empty { box-shadow:none; }
.game-surface .table-center .pot { font-size:12px; }
/* Toujours réserver l'emplacement des groupes, y compris avant la capture. */
.app-shell .game-surface .seat-exposed { height:64px; min-height:64px; overflow:auto; }
.app-shell .game-surface .own-exposed { height:68px; min-height:68px; margin:0; overflow:auto; }
.exposed-groups { display:flex; align-items:center; gap:10px; width:max-content; min-width:100%; height:60px; justify-content:safe center; padding:5px; }
.exposed-group { display:flex; flex-shrink:0; align-items:center; padding:3px; border:1px solid #edd4a080; border-radius:5px; background:#092e2640; box-shadow:0 2px 5px #0003; }
.app-shell .game-surface .exposed-group .card.small,.exposed-back { width:30px; height:44px; flex-shrink:0; }
.exposed-group .card+.card,.exposed-group .exposed-back+.card,.exposed-group .card+.exposed-back,.exposed-group .exposed-back+.exposed-back { margin-left:-6px; }
.exposed-back { display:block; border:1px solid #c4c6a5; border-radius:3px; background:repeating-linear-gradient(45deg,#345644 0px,#345644 3px,#587557 3px,#587557 4px); }
.app-shell .game-surface .exposed-group .corner { font-size:12px; left:2px; top:3px; }
.app-shell .game-surface .exposed-group .corner small { font-size:10px; }
.app-shell .game-surface .exposed-group .pip { font-size:17px; left:0; top:20px; }
.game-surface .game-table .seat { position:relative; inset:auto; }
.game-surface .seat .revealed { position:absolute; top:65px; left:0; right:0; max-height:64px; overflow:auto; margin:0; z-index:2; background:var(--felt-dark); }
.game-surface .seat .revealed:empty { display:none; }
@media(min-width:761px) {
 .app-shell .game-surface .seat.north .seat-exposed { position:absolute; top:0; right:calc(100% + 15px); width:clamp(180px,calc((100vw - 500px)/2),300px); }
 .app-shell .game-surface .seat.north .revealed { top:0; right:calc(100% + 15px); left:auto; width:clamp(180px,calc((100vw - 500px)/2),300px); }
}
.app-shell .game-surface .player-heading>div:first-child { min-width:0; }
.app-shell .game-surface .player-heading .own-exposed { width:100%; height:64px; min-height:64px; }
.player-heading .own-exposed .exposed-groups { justify-content:flex-start; }
.app-shell .game-surface .own-exposed .exposed-group .card.small,
.app-shell .game-surface .own-exposed .exposed-back { width:36px; height:52px; }
.app-shell .game-surface .own-exposed .exposed-group .pip { font-size:20px; top:23px; }
@media(max-width:1000px) {
 .app-shell .game-surface .game-table { grid-template-columns:minmax(0,1fr) 210px minmax(0,1fr); gap:14px 8px; }
}
@media(max-width:760px) {
 .app-shell .game-surface { max-height:none; }
 .app-shell .game-surface .game-table { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .app-shell .game-surface .player-zone { margin-inline:12px; padding-inline:0; }
}
@media(max-width:600px) {
 .app-shell .game-surface .game-table { display:flex; flex-direction:column; }
}
