/* Phone1543: presentation only. Keep server actions and saved layout data authoritative. */
@media (pointer:coarse) and (max-width:1000px), (max-width:600px) {
 body[data-usa-client] :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),textarea,select){font-size:16px!important}
 body[data-usa-client] :is(button,a,[role=button]){touch-action:manipulation}
 body[data-usa-client] #view-login{height:var(--poker-visible-height,100dvh)!important;min-height:0!important;overflow-y:auto!important;align-items:flex-start!important;padding:48px 12px 20px!important;scroll-padding:16px}
 body[data-usa-client] #view-login .btn{min-height:44px}
 body[data-usa-client] .login-box{flex-shrink:0;margin:auto;max-width:100%}
 body[data-usa-client] .login-brand .logo{font-size:clamp(18px,5.5vw,22px);letter-spacing:1px}
 body[data-usa-client] :is(.chat1071,.settings1071,.settings1071-table){top:calc(var(--poker-visible-top,0px) + 8px)!important;max-height:calc(var(--poker-visible-height,100dvh) - 16px)!important;overscroll-behavior:contain}
 body[data-usa-client] .chat1071 header{position:sticky;top:0;z-index:1;background:#15252b;padding:8px 12px}
 body[data-usa-client] :is(.chat1071,.settings1071,.settings1071-table,#usaRoomMenuModal) button{min-height:44px}
 body[data-usa-client] #cashierModal{top:var(--poker-visible-top,0px)!important;height:var(--poker-visible-height,100dvh)!important;bottom:auto!important;overflow-y:auto;align-items:safe center!important;padding:8px}
 body[data-usa-client] #cashierModal>div{max-width:100%!important;max-height:calc(var(--poker-visible-height,100dvh) - 16px)!important;overflow-y:auto}
 body[data-usa-client] .chat1071 .z-in{flex-shrink:0;min-height:44px}
 body[data-usa-client] #pbb-chat-in{min-height:44px}
 body[data-usa-client] #pokerOffline1071:not([hidden]){top:4px;bottom:auto;left:4px;right:4px;max-width:none;pointer-events:none;font-size:13px}
}
@media(max-width:600px) and (orientation:portrait){
 /* Tile has no effect in the one-table phone layout. Free that space for touch targets. */
 body[data-usa-client] #view-desktop .usa-layout-tools [data-usa-layout]{display:none!important}
 body[data-usa-client] #view-desktop .desk-menubar.usa-has-balances{display:flex!important;flex-wrap:nowrap!important;gap:4px!important;padding:4px!important;height:52px!important;min-height:52px!important;flex-basis:52px!important}
 body[data-usa-client] #view-desktop .desk-menubar.usa-has-balances .desk-brand{flex:1 1 100px!important;min-width:70px!important;max-width:none!important;width:auto!important}
 body[data-usa-client] #view-desktop .desk-menubar .desk-brand .poker-wordmark1009{width:100%!important;max-width:160px!important}
 body[data-usa-client] #view-desktop .desk-menubar :is(#usaLobbyToggle,.usa-room-menu,#pokerSoundButton1071){width:auto!important;min-width:44px!important;height:44px!important;min-height:44px!important}
 body[data-usa-client] #view-desktop .desk-menubar .usa-layout-tools{flex:none!important;width:auto!important}
 body[data-usa-client] #view-desktop .desk-menubar .usa-account-header{flex:none!important;width:auto!important;min-height:44px!important;justify-content:center!important}
 body[data-usa-client][data-usa-controls] #view-table .pbb-v3 label input[type=checkbox]{width:18px!important;height:18px!important;min-width:18px!important;flex-basis:18px!important}
 /* Short phones shrink card stock, never saved positions or seat IDs. */
 body[data-usa-client].usa-phone-tight #view-table #tableOval .seat[data-usa-hero=true] .hole-cards>.card{width:var(--usa-hero-card)!important;height:calc(var(--usa-hero-card)*1.4)!important;min-width:0!important;min-height:0!important}
 body[data-usa-client].usa-phone-tight #view-table #tableOval .seat:not([data-usa-hero=true]) .hole-cards>.card{width:26px!important;height:36.4px!important;min-width:0!important;min-height:0!important}
}
@media(min-width:601px) and (max-width:1000px) and (max-height:500px) and (pointer:coarse){
 body[data-usa-client][data-usa-controls=left] #view-table .table-panel{grid-template-columns:clamp(214px,29vw,260px) minmax(0,1fr)!important}
 body[data-usa-client][data-usa-controls=left]:not(.usa929-bottom) #view-table .pbb-v3 #pbb-actions #actionBar .poker-action-slot>button{height:44px!important;min-height:44px!important;font-size:12px!important}
 body[data-usa-client][data-usa-controls=left]:not(.usa929-bottom) #view-table .pbb-v3 #pbb-actions #actionBar{grid-template-rows:44px repeat(3,minmax(28px,auto))!important}
}

@media(max-width:600px) and (orientation:portrait){
 body[data-usa-client].usa-phone-tight #view-table #tableOval .table-center{width:var(--usa-board-width)!important}
 body[data-usa-client].usa-phone-tight #view-table #tableOval #bottomBoard{margin-top:0!important}
 body[data-usa-client].usa-phone-tight #view-table #potDisplayWrap{height:18px!important;min-height:18px!important}
 body[data-usa-client].usa-phone-tight #view-table #potDisplayWrap .pot-amount{font-size:16px!important;line-height:18px!important}
}

@media (max-width:600px), (pointer:coarse) and (max-width:1000px){
 body[data-usa-client] #view-table #pokerFocus1071{position:static!important;inset:auto!important;transform:none!important;margin:0!important;width:auto!important;min-height:34px!important;flex:1!important}
 body[data-usa-client] #view-table #pokerFocus1071[hidden]{display:none!important}
 body[data-usa-client][data-usa-controls] #view-table>.lf-toolbar>.usa-seat-tools.usa929-local-tools:has(#pokerFocus1071:not([hidden])){grid-template-columns:repeat(4,minmax(0,1fr))!important}
 body[data-usa-client] #view-table .usa-seat-tools.poker-phone-card-tools>button{white-space:normal!important;font-size:11px!important}
}

@media(max-width:600px), (pointer:coarse) and (max-width:1000px){
 body[data-usa-client][data-usa-controls] #view-table>.lf-toolbar>.usa-seat-tools.usa929-local-tools>button{white-space:normal!important}
 body[data-usa-client] #view-table .usa-seat-tools #pokerFocus1071{order:3!important}
 body[data-usa-client] #view-table .usa-seat-tools .usa-table-options{order:4!important}
}

@media(max-width:600px) and (orientation:portrait){
 body[data-usa-client] #view-table .lf-waiting-banner{white-space:normal!important;overflow-wrap:anywhere!important;max-width:80%!important;line-height:16px!important}
}
