/* Only loaded by the nine casino/card/strategy game pages. */
@media(max-width:760px){
 dialog{max-height:calc(100svh - 24px);overflow:auto;overscroll-behavior:contain}
 .dialog-actions,.confirm-actions{flex-wrap:wrap}
 .chess-header{flex-wrap:wrap;gap:8px}
 .chess-header button{min-height:44px}
 .title-row{flex-wrap:wrap;gap:8px}
 .chess-layout>*,.status-panel>div{min-width:0}
 .status-panel{overflow-wrap:anywhere}
 .board-tools{grid-template-columns:repeat(3,minmax(0,1fr))}
 .board-tools button{white-space:normal}
 .spider-mode .spider-tableau{min-width:0;width:100%;gap:2px}
 .spider-mode .spider-scroll{margin-inline:0;padding:8px 2px}
 .spider-mode .spider-card{padding:2px 0;border-radius:3px}
 .spider-mode .spider-card>span{font-size:12px;line-height:1;text-align:center;white-space:normal}
 .spider-mode .spider-card>span b{display:block;font-size:12px}
 .spider-mode .spider-card>strong{font-size:20px}
 .spider-mode .spider-card .spider-corner{display:none}
 .spider-mode .longgame-toolbar select{font-size:16px}
 .spider-mode .spider-progress{min-width:0}
 .spider-mode .spider-stock{flex-shrink:0}
 .blackjack-mode .bj-actions button{font-size:14px;white-space:normal}
 .blackjack-mode .bj-actions button small{font-size:12px}
 .holdem-mode .he-raise-pop{max-height:65svh;overflow-y:auto}
 .holdem-mode .he-actions>.game-action{white-space:normal}
 .pool-shell header button{min-height:44px;font-size:14px}
 .pool-shell .power-label{min-width:0;flex:1 1 120px}
 .meld{min-width:0;max-width:100%}
 .meld-cards{max-width:100%}
 .hand-heading{flex-wrap:wrap;gap:8px}
 .sort-buttons{flex-wrap:wrap}
 .lv-controls{padding-bottom:max(5px,env(safe-area-inset-bottom))}
}
@media(max-width:480px){
 .blackjack-mode .bj-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
 /* A vertical roulette grid keeps individual bets usable without sideways scrolling. */
 .roulette-mode .rou-layout{min-width:0;width:100%;grid-template-columns:minmax(0,1fr);gap:6px;padding:7px}
 .roulette-mode .rou-layout>*{grid-column:1;grid-row:auto;min-width:0}
 .roulette-mode .rou-zero{min-height:44px}
 .roulette-mode .rou-numbers{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(12,44px);grid-auto-flow:column}
 .roulette-mode .rou-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px}
 .roulette-mode .rou-outside{grid-template-columns:repeat(3,minmax(0,1fr))}
 .roulette-mode .rou-field{min-height:44px}
 .roulette-mode .rou-wheel-wrap{flex-shrink:0}
 .roulette-mode .rou-history{flex-wrap:wrap}
 .roulette-mode .rou-actions{flex-wrap:wrap;padding-bottom:max(6px,env(safe-area-inset-bottom))}
}
