/* Portrait decisions: one scene, one context row, then the legal actions. */
.table-brief,.table-bet-options>summary{display:none}
.table-bet-options{min-width:0}
.table-bet-options[hidden]{display:none!important}
html body.table-focus .ht-actions:has(>button[hidden]){grid-template-columns:repeat(2,minmax(0,1fr))}
html body.table-focus #tableSurface .table-deck{--deck-w:20px;width:20px;height:28px}
html body.table-focus #tableSurface .table-deck>.pg-deck-card{position:absolute;inset:0;transform:rotate(-8deg)!important}
html body.table-focus #tableSurface .table-deck>.pg-deck-card:nth-child(2){translate:2px -2px}
html body.table-focus #tableSurface .table-deck>.pg-deck-card:nth-child(3){translate:4px -4px}
@media(min-width:900px){
 html body.table-focus #tableGame{max-width:1280px;display:grid;grid-template-columns:minmax(0,1fr) 340px;grid-template-rows:26px 24px minmax(0,1fr) auto;column-gap:32px;align-items:center}
 html body.table-focus .ring-replay-bar{grid-column:1;grid-row:1}
 html body.table-focus .ht-game-meta{grid-column:1;grid-row:2}
 html body.table-focus .ht-room #tableSurface{grid-column:1;grid-row:3;width:calc(100% - 96px);height:clamp(270px,calc(100dvh - 300px),500px);min-height:270px;margin:40px auto 70px}
 html body.table-focus .ht-console{grid-column:2;grid-row:1/4;align-self:center}
 html body.table-focus .ht-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
 html body.table-focus #tableRaise{grid-column:auto}
 html body.table-focus .table-study{grid-column:2;grid-row:4;margin:8px 0 0}
}
@media(max-width:600px) and (orientation:portrait){
 html body.table-focus .ht-room.is-playing{padding: max(6px,env(safe-area-inset-top)) 12px max(8px,env(safe-area-inset-bottom))}
 html body.table-focus #tableGame{display:flex;flex-direction:column;flex:0 0 auto;min-height:0}
 html body.table-focus #tableGame[hidden]{display:none!important}
 html body.table-focus .ht-heading{min-height:40px;padding:0;border:0;gap:6px}
 html body.table-focus .ht-heading button{min-height:40px;padding:7px 10px;font-size:12px}
 html body.table-focus #activeTopicLabel{display:none}
 html body.table-focus #topicBack{margin-right:auto}
 html body.table-focus .table-brief{display:block;text-align:center;font-size:12px;line-height:18px;min-height:18px;margin:0!important;color:#e7ece8!important}
 html body.table-focus .table-brief-label{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:18px}
 html body.table-focus .table-brief-context{display:block;overflow-wrap:anywhere;font-weight:400}
 html body.table-focus .ht-game-meta,html body.table-focus .ring-replay-bar{display:none}
 html body.table-focus .ring-replaying .ring-replay-bar{display:flex;min-height:40px;justify-content:center}
 html body.table-focus #replaySkip{min-height:40px;font-size:12px}
 html body.table-focus #replayStatus{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 html body.table-focus .ht-room #tableSurface{--deck-w:32px;width:min(calc(100% - 70px),236px);max-width:236px;height:clamp(270px,calc(100dvh - 370px),350px);min-height:270px;aspect-ratio:auto;margin:26px auto 44px;flex:none}
 html body.table-focus .ht-room #tableSurface .ht-center{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);width:max-content;max-width:none;gap:5px}
 html body.table-focus #tableSurface .ht-rail{border-width:9px}
 html body.table-focus #tableSurface .ht-brand{line-height:10px;font-size:7px}
 html body.table-focus #tableSurface .ht-center>strong{font-size:12px;line-height:16px;padding:3px 9px}
 html body.table-focus #tableSurface .ht-hero{transform:translate(-50%,-50%);gap:2px}
 html body.table-focus #tableSurface .ht-seat{min-width:84px;padding:4px 8px;gap:2px}
 html body.table-focus #tableSurface .ht-seat strong{font-size:12px;line-height:15px}
 html body.table-focus #tableSurface .ht-seat span{line-height:12px}
 html body.table-focus #tableSurface .ring-seat{width:44px;padding:4px 2px}
 html body.table-focus #tableSurface .ht-villain{width:52px;padding:4px 2px}
 html body.table-focus #tableSurface .ht-villain[data-table-edge=side] .ht-cards{top:calc(100% + 3px);bottom:auto}
 html body.table-focus #tableSurface .ht-villain[data-table-edge=lower]{translate:none}
 html body.table-focus #tableSurface .ht-villain[data-table-edge=lower] .ht-cards{top:auto;bottom:calc(100% + 4px);left:50%}
 html body.table-focus #tableSurface :is(.ht-villain,.ring-seat)[data-rail-half=top] :is(.ht-cards,.ring-hand){top:calc(100% + 2px);bottom:auto}
 html body.table-focus #tableSurface .table-deck{--deck-w:16px;left:46%;top:24%;width:16px;height:22px}
 html body.table-focus .ht-room #tableSurface:has(.ht-villain[data-table-edge=lower]){margin-bottom:44px}
 html body.table-focus #tableMission,html body.table-focus #tableTurn{display:none}
 html body.table-focus #tableStatus{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0!important;padding:0!important}
 html body.table-focus #tableStatus[data-error=true]{position:static;grid-column:1/-1;width:auto;height:auto;clip-path:none;color:#ffb4b4!important}
 html body.table-focus .ht-console{position:relative;display:grid;grid-template-columns:minmax(0,2fr) minmax(88px,1fr);gap:6px;padding:0;text-align:center}
 html body.table-focus .table-decision-context{grid-column:1;grid-row:1;display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:0;margin:0;min-width:0}
 html body.table-focus .table-decision-context>div{padding:3px 2px;min-width:0;background:none;border:0}
 html body.table-focus .table-decision-context>div:last-child{display:none}
 html body.table-focus .table-decision-context dt{font-size:10px;line-height:14px}
 html body.table-focus .table-decision-context dd{font-size:13px;line-height:18px;margin:0}
 html body.table-focus #tableControls{display:contents}
 html body.table-focus .table-bet-options{position:static;grid-column:2;grid-row:1;align-self:center}
 html body.table-focus .table-bet-options>summary{display:flex;align-items:center;justify-content:center;gap:4px;list-style:none;min-height:44px;border:1px solid #707b73;border-radius:8px;background:#232b27;font-size:11px;cursor:pointer}
 html body.table-focus .table-bet-options>summary::-webkit-details-marker{display:none}
 html body.table-focus .table-bet-options>summary:focus-visible{outline:3px solid #e5c98e;outline-offset:2px}
 html body.table-focus .table-bet-options>summary strong{font-size:12px;font-variant-numeric:tabular-nums}
 html body.table-focus .table-bet-options[open]>summary span{rotate:180deg}
 html body.table-focus .table-bet-options .ht-sizing{position:absolute;z-index:30;left:0;right:0;bottom:calc(100% + 8px);margin:0;padding:10px;background:#202923;box-shadow:0 8px 28px #0008;border:1px solid #819184}
 html body.table-focus .ht-sizing button{min-height:44px}
 html body.table-focus .ht-sizing .ht-size-entry{margin-top:8px;gap:5px}
 html body.table-focus .ht-size-entry input{min-height:44px;width:76px}
 html body.table-focus .table-sizing-help{font-size:10px;line-height:1.5;margin:6px 0 0!important}
 html body.table-focus .ht-actions{grid-column:1/-1;grid-row:2;gap:6px;margin:0}
 html body.table-focus .ht-actions button{min-height:48px;font-size:13px;padding:8px 3px}
 html body.table-focus #tableNext,html body.table-focus #tableResult{grid-column:1/-1}
 html body.table-focus .table-study{margin-top:10px}
 html body.table-focus .table-study summary{min-height:40px;padding:8px 4px}
 html body.table-focus .table-study summary strong{font-size:13px;line-height:18px;margin:0}
 html body.table-focus .table-study summary small{display:none}
}
@media(max-width:600px) and (max-height:640px) and (orientation:portrait){
 html body.table-focus .table-study{display:none}
}
