.game-caption { display:none; }
.forest-heading { display:contents; }
.round-progress { display:none; }
.multiple-indicators .central-indicator { min-width:0; overflow-x:auto; }
.multiple-indicators .central-indicator .card { flex-shrink:0; }
/* Plateau de bureau : toutes les places restent dans la fenêtre. */
@media(min-width:1000px) and (min-height:500px) {
 body:has(.app-shell.in-game) { overflow:hidden; }
 .app-shell.in-game { position:fixed; inset:0; max-width:none; padding:6px 12px; }
 .in-game .topbar { height:40px; min-height:0; border:0; padding:0; }
 .in-game .brand { font-size:22px; gap:8px; }
 .in-game .brand-mark { font-size:29px; }
 .in-game .brand small { display:none; }
 .in-game .session-meta { display:none; }
 .in-game .game-caption { display:block; position:absolute; left:200px; top:17px; max-width:calc(100% - 660px); overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font:11px Arial,sans-serif; }
 .in-game .ui-language { font-size:11px; }
 .in-game .ui-language select { padding:5px; }
 .in-game .view-controls { position:absolute; top:6px; right:160px; display:flex; gap:8px; align-items:start; z-index:30; }
 .in-game .view-controls details { margin:0; padding:8px 12px; font:11px Arial,sans-serif; background:#fdfbf3; border:1px solid #c9d0bc; border-radius:6px; }
 .in-game .view-controls details[open] { position:fixed; top:48px; right:16px; width:min(650px,calc(100vw - 32px)); max-height:calc(100dvh - 64px); overflow:auto; box-shadow:0 8px 28px #102c2740; }
 .in-game .view-controls details[open] summary { margin-bottom:10px; }
 .in-game .view-controls .display-options { padding-top:5px; }
 .in-game>main { position:absolute; inset:52px 12px 8px; }
 .in-game .table-heading,.in-game>footer { display:none; }
 .in-game .access-panel { position:fixed; z-index:45; top:58px; left:50%; transform:translateX(-50%); width:min(650px,calc(100% - 32px)); max-height:calc(100dvh - 74px); overflow:auto; box-shadow:0 8px 40px #0005; }
 .in-game main>.notice { position:fixed; top:48px; left:20px; right:20px; z-index:35; }
 .app-shell.in-game .game-surface { height:100%; max-height:none; padding-bottom:0; overflow:hidden; scrollbar-gutter:auto; }
 .app-shell.in-game.table-compact .game-surface { height:min(680px,100%); }
 .in-game .table-layout { display:grid; grid-template-rows:minmax(0,1fr) 230px; height:100%; width:100%; }
 .app-shell.in-game .game-surface .game-table { height:100%; min-height:0; padding:8px; gap:6px 14px; grid-template-columns:minmax(0,1fr) 280px minmax(0,1fr); grid-template-rows:124px minmax(0,1fr); }
 .app-shell.in-game.discard-mode-cards .game-table { grid-template-rows:150px minmax(0,1fr); }
 .in-game .game-table .seat.west { grid-column:1; grid-row:2; align-self:center; }
 .in-game .game-table .seat.east { grid-column:3; grid-row:2; align-self:center; }
 .in-game .game-table .seat.north { grid-column:1/4; grid-row:1; width:min(760px,100%); max-width:none; height:100%; display:grid; grid-template-columns:200px minmax(0,1fr) 230px; grid-template-rows:38px 24px; align-content:start; }
 .in-game .seat.north .seat-title { grid-column:1; grid-row:1; }
 .in-game .seat.north .card-backs { grid-column:1; grid-row:2; }
 .app-shell.in-game .seat.north .seat-exposed { position:static; grid-column:3; grid-row:1/3; width:230px; height:64px; }
 .in-game .seat.north .discard-label { position:absolute; left:50%; top:0; transform:translateX(-50%); margin:0; white-space:nowrap; }
 .in-game .seat.north .discards { position:absolute; left:50%; top:18px; transform:translateX(-50%); }
 .in-game .seat.north .kami-stick-slot { position:absolute; top:66px; left:60px; width:80px; }
 .app-shell.in-game .seat.north .revealed { left:auto; right:0; top:0; width:230px; }
 .app-shell.in-game .game-surface .seat-exposed { height:74px; min-height:74px; }
 /* Deux rangées contiennent jusqu'à quatre Carrés sans couper les cartes.
    La marge et l'espacement tiennent aussi dans les 230px du siège nord. */
 .app-shell.in-game .game-surface .seat.north .seat-exposed { height:124px; min-height:124px; }
 .in-game .seat.north .seat-exposed .exposed-groups { flex-wrap:wrap; justify-content:flex-start; align-content:flex-start; min-width:0; width:100%; height:auto; gap:4px; padding:3px; }
 .in-game .game-table .table-center { grid-column:2; grid-row:2; align-self:center; }
 /* Les indicateurs supplémentaires restent avec la Forêt, à la même taille.
    Jusqu'à trois cartes côte à côte ; quatre/cinq laissent leurs coins lisibles. */
 .in-game .game-table .table-center { width:278px; }
 .in-game .forest-heading { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; }
 .in-game .round-progress { display:inline-block; flex-shrink:0; white-space:nowrap; padding:5px 7px; border:1px solid #e8cf8e80; border-radius:5px; font:12px/1.2 Arial,sans-serif; }
 .in-game .multiple-indicators .forest-cross { width:278px; grid-template-columns:46px 174px 46px; column-gap:6px; }
 .in-game .multiple-indicators .central-indicator { gap:6px; justify-content:safe center; }
 .in-game .multiple-indicators .central-indicator .card+.card { margin-left:calc(-1 * var(--indicator-overlap)); }
 .app-shell.in-game .game-surface .player-zone { position:relative; min-height:0; margin:0 8px; padding:0; }
 .app-shell.in-game .player-heading { display:contents; }
 .in-game .player-heading>div:first-child { display:contents; }
 .in-game .player-heading .eyebrow { display:none; }
 .in-game .own-name { position:absolute; top:5px; left:4px; width:240px; font-size:18px; line-height:1.2; }
 .in-game .player-label { display:flex; min-width:0; align-items:baseline; }
 .in-game .player-name { min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
 .in-game .player-capital { flex-shrink:0; white-space:pre; }
 /* L'identité et la position partagent la rangée du haut (5–45px).
    La défausse dispose de toute la hauteur restante, sous cette rangée. */
 .app-shell.in-game .player-heading .own-discards { position:absolute; left:0; top:44px; bottom:32px; width:250px; display:flex; flex-direction:column; min-height:0; }
 .app-shell.in-game .player-heading .own-discards>.kami-stick-slot,
 .app-shell.in-game .player-heading .own-discards>span { flex-shrink:0; }
 .app-shell.in-game .player-heading .own-discards>.discards { flex:1; height:auto!important; min-height:0!important; max-height:none!important; }
 .app-shell.in-game .player-heading .own-exposed { position:absolute; left:240px; right:230px; top:0; width:auto; height:64px; }
 .in-game .own-exposed .exposed-groups { justify-content:safe center; }
 .in-game .position-badge { position:absolute; right:8px; top:5px; padding:3px 7px; font-size:9px; }
 .in-game .hand-play-area,.in-game .hand-column { display:contents; }
 .app-shell.in-game .game-surface .hand { position:absolute; left:240px; right:230px; bottom:32px; height:130px; min-height:130px; margin:0; }
 .app-shell.in-game .game-surface .action-rail { position:absolute; right:4px; bottom:34px; width:230px; height:174px; max-height:174px; }
 .in-game .player-utilities { position:absolute; bottom:0; left:0; right:0; height:32px; margin:0; gap:6px; flex-wrap:nowrap; overflow-x:auto; }
 .in-game .player-utilities button { flex-shrink:0; padding:6px 10px; margin:0; font-size:10px; }
 .in-game .player-utilities .table-tools { margin:0; gap:6px; }
 /* En fenêtre courte, conserver la disposition complète avec une adaptation modérée. */
 .in-game { --table-fit:1; }
 .in-game .table-layout { width:calc(100% / var(--table-fit)); height:calc(100% / var(--table-fit)); transform:scale(var(--table-fit)); transform-origin:top left; }
}
/* Des intervalles continus : le zoom et la mise à l'échelle Windows donnent
   aussi des hauteurs fractionnaires (ex. 559,33 px). */
@media(min-width:1000px) and (680px <= height < 720px) { .in-game { --table-fit:.94; } }
@media(min-width:1000px) and (620px <= height < 680px) { .in-game { --table-fit:.85; } }
@media(min-width:1000px) and (560px <= height < 620px) { .in-game { --table-fit:.76; } }
@media(min-width:1000px) and (500px <= height < 560px) { .in-game { --table-fit:.66; } }
@media(min-width:1000px) and (max-width:1100px) and (min-height:500px) {
 .in-game .game-surface .hand-card+.hand-card { margin-left:-14px; }
}
@media(min-width:1440px) and (min-height:500px) {
 .table-compact.in-game .game-surface .hand-card+.hand-card { margin-left:-23px; }
}
