/* One viewport for play, like the optimized poker client. */
header{height:48px;padding:0 12px}
.brand img{width:124px;height:40px}
header button{min-height:44px;padding:6px 10px;font-size:14px}
.intro-tools{display:flex;gap:6px}.intro-tools button{font-size:14px;padding:6px 10px;min-height:44px}
.playing main{height:calc(100svh - 48px);max-height:820px;max-width:1040px;padding:4px 12px 8px;display:flex;flex-direction:column}
.playing .intro{flex:none;min-height:44px;margin:0;gap:8px}
.playing .intro h1{font-size:28px}
.playing #game{flex:1;min-height:0;display:grid;grid-template-rows:22px minmax(0,1fr) auto auto 44px;gap:4px}
.playing .roundbar{margin:0!important;line-height:20px;font-size:12px;align-items:center}
.playing .roundbar #profile{max-width:none}
.playing #table-stage{height:auto;min-height:0;max-height:520px;container-type:size}
.playing .table-message{margin:0;max-width:none;min-height:18px}
.playing #table-detail{font-size:12px;line-height:18px}
.playing #last-trick{display:none}
.playing .action-panel{margin:0 auto;width:100%;max-width:760px;padding:4px 8px}
.chicago-call{display:flex;align-items:center;gap:10px;margin-bottom:4px}
#call-chicago{flex:none;min-width:120px;min-height:44px;font-size:14px;padding:6px 10px}
#call-chicago:disabled{opacity:1;color:var(--muted);background:var(--panel);border-color:var(--line)}
#call-reason{font-size:12px;line-height:16px;margin:0;color:var(--muted);text-align:left}
.playing #hint{font-size:12px;line-height:16px;margin:0 0 2px;min-height:0}
.playing #actions{gap:6px;flex-wrap:nowrap}.playing #actions button{font-size:14px;min-height:44px;padding:6px 10px}
.playing #game>.tools{margin:0;gap:6px;align-items:center;flex-wrap:nowrap}
.playing #game>.tools button{min-height:44px;font-size:14px;padding:6px 10px}
.playing #your-qualification{display:none}
.playing .rail-seat .qualification,.playing .rail-seat .seat-state{display:none}
.playing .your-seat{bottom:0}.playing .your-row{margin-bottom:4px}
.playing .felt{inset:36px 42px 36px}
#table-menu{width:min(720px,calc(100vw - 24px));max-height:calc(100svh - 24px);padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--ink);overscroll-behavior:contain}
#table-menu::backdrop{background:#040c19bd}
.menu-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;position:sticky;top:-16px;background:var(--bg);z-index:5;padding:8px 0;border-bottom:1px solid var(--line)}
#table-menu .panel,#table-menu #rules{margin:12px 0;padding:12px}
#table-menu #account-tools{display:flex;gap:10px}
#table-menu #account-tools a{min-height:44px;display:inline-flex;align-items:center}
#table-menu footer{margin:12px 0 0}
#table-menu #error:not([hidden]){position:static;margin:12px 0;background:var(--panel);padding:12px}
@container (max-height:380px){
 .rail-seat{width:80px}.seat-portrait{width:40px;height:40px}.nameplate{padding:2px 4px}
 .nameplate strong,.nameplate b,.nameplate small{font-size:12px;line-height:14px}
 .rail-seat .qualification,.rail-seat .seat-state{display:none}
 .position-1,.position-5{top:40%}
 .table-center{top:28%}
 #table-title{font-size:20px}#phase{font-size:12px;margin:0}
 #table-cards{margin-top:4px;gap:4px}
 #table-cards .card{width:36px;height:50px}
 .hand .card{width:48px;height:66px}.hand{min-height:66px}
}
@media(max-width:600px){
 header .preview{display:none}header>div{gap:4px}
 .playing main{padding:2px 6px 6px}
 .playing .intro{min-height:44px}.playing .intro button{max-width:none;min-width:0}
 .playing #game{grid-template-rows:22px minmax(0,1fr) auto auto 44px;gap:2px}
 .playing .roundbar #profile{display:none}
 .playing .felt{inset:30px 12px 34px;border-width:7px}
 .playing .action-panel{padding:4px}
 .playing #your-score,.playing .your-row h2{font-size:12px}
 .playing .table-message{padding:0 4px}
 .playing .rail-seat{width:64px}.playing .seat-portrait{width:42px;height:42px}
 .playing .position-2{left:14%}.playing .position-4{left:86%}
 .playing .position-1{left:11%;top:38%}.playing .position-5{left:89%;top:38%}
 .playing .nameplate{padding:2px}.playing .nameplate strong,.playing .nameplate b{font-size:12px;line-height:14px}
 .playing .rail-seat .qualification,.playing .rail-seat .seat-state{display:none}
 .playing .your-seat{width:100%}
 .playing .hand{gap:4px}
 .playing .hand .card{width:48px;height:66px}
 .playing #table-cards .card{width:32px;height:44px}
 .playing #table-stage[data-phase=offer] #table-cards .card{width:44px;height:60px}
 .playing #table-cards{gap:2px 4px;margin-top:4px}
 .playing .played-label{font-size:12px;line-height:14px;margin-top:1px}
 .playing #table-title{font-size:20px}
 .playing #table-stage[data-phase=trick] #table-title{display:none}
 .playing #table-stage[data-phase=trick] .table-center{top:24%}
}
/* Short windows use the poker client's side-by-side decision layout. */
@media(max-width:600px) and (max-height:600px){
 .playing #table-stage[data-phase=trick] #table-cards .card{width:30px;height:40px}
}
@media(min-width:601px) and (max-height:650px){
 .playing main{padding:2px 8px 6px}
 .playing #game{grid-template-columns:minmax(0,1fr) 300px;grid-template-rows:22px minmax(0,1fr) auto 44px;column-gap:12px}
 .playing .roundbar{grid-column:1/-1}
 .playing #table-stage{grid-column:1;grid-row:2/5}
 .playing .table-message{grid-column:2;grid-row:2;align-self:end}
 .playing .action-panel{grid-column:2;grid-row:3}
 .playing #game>.tools{grid-column:2;grid-row:4}
 .playing #game>.tools button{font-size:12px;padding:4px 6px}
 .playing .felt{inset:26px 16px 30px;border-width:7px}
 .playing .rail-seat{width:64px}.playing .seat-portrait{width:32px;height:32px}
 .playing .position-2{left:16%;top:8%}.playing .position-4{left:84%;top:8%}
 .playing .position-1{left:10%;top:40%}.playing .position-5{left:90%;top:40%}
 .playing .table-center{top:29%;width:56%}
 .playing #table-title{font-size:18px}.playing #table-stage[data-phase=trick] #table-title{display:none}
 .playing #table-cards{display:grid;grid-template-columns:repeat(5,max-content);gap:4px}
 .playing #table-cards .card{width:28px;height:38px}
 .playing .played-label{font-size:12px;line-height:14px;margin-top:0}
 .playing .hand .card{width:44px;height:60px}.playing .hand{min-height:60px;gap:3px}
}
