/* Mobile field: bounded visible terrain, all seven real seats, one shared header row. */
@media(max-width:900px),(max-width:1200px) and (pointer:coarse){
body:not(.is-setup) .app-shell{display:grid;position:relative;box-sizing:border-box;width:100%;max-width:none;height:100dvh;min-height:0;margin:0;padding:2px 4px 4px;gap:4px;grid-template-columns:minmax(0,1fr);grid-template-rows:38px minmax(0,1fr) 236px;grid-template-areas:'mobilehead' 'board' 'controls';}
body:not(.is-setup) .status-strip{grid-area:mobilehead;position:relative;inset:auto;align-self:center;justify-self:start;width:40%;max-width:40%;height:38px;min-height:38px;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;}
body:not(.is-setup) .status-strip>div{height:34px;grid-template-columns:12px minmax(0,1fr);grid-template-rows:1fr;gap:2px;padding:0;}
body:not(.is-setup) .status-strip>div::before{grid-row:1;width:12px;height:18px;}
body:not(.is-setup) .status-strip>div::after{display:none;}
body:not(.is-setup) .status-strip span{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap;}
body:not(.is-setup) .status-strip strong{grid-column:2;grid-row:1;height:auto;font-size:11px;line-height:16px;}
body:not(.is-setup) .topbar{grid-area:mobilehead;position:relative;inset:auto;align-self:center;justify-self:end;width:max-content;max-width:60%;height:38px;min-height:38px;margin:0;padding:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;}
body:not(.is-setup) .topbar-actions{height:38px;min-width:max-content;flex-wrap:nowrap;justify-content:flex-end;gap:2px;}
body:not(.is-setup) .topbar .icon-button,body:not(.is-setup) .topbar #hudBtn{width:32px;min-width:32px;height:34px;min-height:34px;flex:0 0 32px;border-width:7px;padding:0;}
body:not(.is-setup) .topbar .icon-button svg{width:17px;height:17px;}
body:not(.is-setup) .board-wrap,body:not(.is-setup) #board{position:relative;inset:auto;box-sizing:border-box;grid-area:board;width:100%;height:100%;min-height:0!important;max-height:100%;margin:0;padding:0;overflow:hidden;transform:none;}
body:not(.is-setup) #board .poker-table{position:relative;inset:auto;display:block;box-sizing:border-box;container-type:size;width:100%;max-width:none;height:100%;min-height:0!important;max-height:100%;margin:0;padding:0;border-radius:0;transform:none;--mobile-seat-w:clamp(84px,30cqw,130px);--mobile-card-w:min(calc((100cqw - 24px - (var(--center-count) - 1) * 5px) / var(--center-count)),calc((100cqh - 170px) / 1.5),80px);}
body:not(.is-setup) #board .poker-table .table-seat{position:absolute;inset:auto;display:grid;box-sizing:border-box;width:var(--mobile-seat-w);max-width:none;min-width:0;height:42px;min-height:0;grid-template-columns:28px minmax(0,1fr);gap:5px;align-items:center;padding:3px;transform:none;translate:none;overflow:visible;}
body:not(.is-setup) #board .poker-table .table-seat .seat-avatar{width:28px;height:28px;min-width:0;min-height:0;margin:0;}
body:not(.is-setup) #board .poker-table .seat-profile{min-width:0;padding-left:5px;gap:2px;}
body:not(.is-setup) #board .poker-table .seat-profile>strong{font-size:10px;line-height:12px;}
body:not(.is-setup) #board .poker-table .seat-profile>small{font-size:8px;line-height:9px;}
body:not(.is-setup) #board .poker-table .seat-points{font-size:9px;line-height:12px;}
body:not(.is-setup) #board .poker-table .seat-points b{font-size:12px;line-height:12px;}
body:not(.is-setup) #board .poker-table .seat-0{left:50%;bottom:7px;transform:translateX(-50%);}
body:not(.is-setup) #board .poker-table .seat-1{left:7px;top:7px;}
body:not(.is-setup) #board .poker-table .seat-2{left:7px;top:55px;}
body:not(.is-setup) #board .poker-table .seat-3{right:7px;top:7px;}
body:not(.is-setup) #board .poker-table .seat-4{right:7px;top:55px;}
body:not(.is-setup) #board .poker-table .seat-5{left:7px;bottom:7px;}
body:not(.is-setup) #board .poker-table .seat-6{right:7px;bottom:7px;}
body:not(.is-setup) #board .poker-table[data-player-count='2'] .seat-1{left:50%;transform:translateX(-50%);}
body:not(.is-setup) #board .poker-table[data-player-count='3'] .seat-2{inset:7px 7px auto auto;}
body:not(.is-setup) #board .poker-table[data-player-count='4'] .seat-2,body:not(.is-setup) #board .poker-table[data-player-count='6'] .seat-2{inset:7px auto auto 50%;transform:translateX(-50%);}
body:not(.is-setup) #board .poker-table[data-player-count='6'] .seat-4{inset:auto auto 7px 7px;}
body:not(.is-setup) #board .poker-table[data-player-count='6'] .seat-5{inset:auto 7px 7px auto;}
body:not(.is-setup) #board .poker-table .table-felt,body:not(.is-setup) #board .poker-table.center-expanded .table-felt{position:absolute;inset:106px 8px 58px;display:flex;flex-direction:column;justify-content:center;align-items:center;width:auto;min-width:0;min-height:0;gap:5px;padding:0;transform:none;}
body:not(.is-setup) #board .poker-table .table-title{flex:none;max-width:100%;margin:0;font-size:9px;line-height:13px;white-space:nowrap;}
body:not(.is-setup) #board .poker-table .table-center,body:not(.is-setup) #board .poker-table.center-expanded .table-center{display:grid;grid-template-columns:repeat(var(--center-count),var(--mobile-card-w));gap:5px;justify-content:center;flex:none;width:max-content;max-width:100%;height:auto;min-height:0;padding:0;margin:0;border:0;transform:none;}
body:not(.is-setup) #board .poker-table .center-slot{width:var(--mobile-card-w);height:calc(var(--mobile-card-w)*1.45);min-height:0;max-height:none;min-width:0;padding:0;margin:0;transform:none!important;}
body:not(.is-setup) #board .poker-table .center-slot>.game-card{width:100%;height:100%;min-height:0;max-height:none;padding:0;transform:none;}
body:not(.is-setup) .controls.reference-hud{position:relative;inset:auto;grid-area:controls;box-sizing:border-box;width:100%;min-width:0;height:236px;min-height:0;margin:0;grid-template-columns:minmax(0,1fr);grid-template-rows:28px minmax(0,1fr) 52px;grid-template-areas:'hint' 'hand' 'action';}
body:not(.is-setup) .reference-hud #actionHint{position:relative;inset:auto;grid-area:hint;box-sizing:border-box;justify-self:stretch;align-self:center;width:100%;max-width:100%;height:28px;min-height:28px;max-height:28px;margin:0;padding:3px 7px;font-size:10px;line-height:12px;overflow:hidden;}
body:not(.is-setup) .reference-hud .action-hint-text{white-space:normal;line-height:11px;text-overflow:clip;overflow-wrap:anywhere;}
body:not(.is-setup) .controls.reference-hud:has(.turn-actions>#voice-controls:not([hidden])){grid-template-rows:28px minmax(0,1fr) 108px;}
}
@media(max-width:900px) and (orientation:landscape) and (max-height:600px){
body:not(.is-setup) .app-shell{grid-template-columns:minmax(0,1fr) clamp(210px,32vw,300px);grid-template-rows:38px minmax(0,1fr);grid-template-areas:'mobilehead mobilehead' 'board controls';}
body:not(.is-setup) .controls.reference-hud{height:100%;min-height:0;}
}
