/* Keep the room full screen and reserve the hand's feedback space. */
.game-route #main-content .my-hand{height:clamp(164px,22dvh,190px)!important;min-height:0!important;max-height:none!important;flex:0 0 clamp(164px,22dvh,190px)!important;grid-template-rows:36px minmax(0,1fr) 22px!important;overflow:hidden}
.game-route #main-content .my-hand .hand-scroller{min-height:0!important;height:100%!important;align-items:center}
.game-route #main-content .my-hand .selection-preview,.game-route #main-content .my-hand .hand-situation{min-height:22px;margin:0!important;padding:2px 4px;line-height:18px;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
body[data-route=game] #exact-studio-root[data-mode=game]{inset:0!important;border-radius:0!important;pointer-events:none!important}
body[data-route=game] #exact-studio-root iframe{pointer-events:none!important}
/* Identity and hand counts stay above both the piles and travelling cards. */
.game-route #main-content .table-arena.room3d-ready>.opponents{z-index:8;pointer-events:none}
.game-route #main-content .table-arena.room3d-ready .table-player-name{pointer-events:auto}
.game-route #main-content .table-arena.room3d-ready .opponent{isolation:isolate}
.room-camera-controls [aria-pressed=true]{border-color:var(--gold);color:var(--gold)}
body[data-route=visit] .room3d-host[data-room3d=visit][data-ready=true]{pointer-events:none}
body[data-round-presentation-pending=true] .end-round{display:none!important}
body[data-card-motion=true] .game-command,body[data-announcement-pending=true] .game-command{pointer-events:none;opacity:.55}
@media(orientation:landscape) and (max-height:520px){
 .game-route #main-content .table-wrap{display:grid!important;grid-template-columns:minmax(0,1fr) 166px!important;grid-template-rows:minmax(0,1fr)!important;gap:10px!important;align-items:stretch;height:100%;width:100%;min-height:0}
 .game-route #main-content .table-arena{grid-column:1!important;grid-row:1!important;min-width:0!important;min-height:0!important;max-height:none!important;width:100%!important;height:100%!important}
 .game-route #main-content .my-hand{grid-column:2!important;grid-row:1!important;height:100%!important;min-height:0!important;width:166px!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:36px minmax(0,1fr) 22px 36px!important;padding:6px 8px!important;gap:4px!important}
 .game-route #main-content .my-hand .hand-title{grid-column:1!important;grid-row:1!important;display:flex!important;flex-wrap:nowrap!important;gap:4px}
 .game-route #main-content .my-hand .hand-title small{display:none}
 .game-route #main-content .my-hand .hand-scroller{grid-column:1!important;grid-row:2!important;height:100%!important;min-height:0!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;align-items:start;justify-items:center;overflow-y:auto;overflow-x:hidden;padding:5px 0!important;gap:8px!important}
 .game-route #main-content .my-hand .hand-card{width:48px!important;min-width:48px!important;height:auto!important;align-self:start;transform:none!important}
 .game-route #main-content .my-hand .hand-card img{height:auto!important;width:100%!important}
 .game-route #main-content .my-hand .selection-preview,.game-route #main-content .my-hand .hand-situation{grid-column:1!important;grid-row:3!important;min-width:0;max-width:100%}
 .game-route #main-content .my-hand .hand-actions{grid-column:1!important;grid-row:4!important;width:100%!important;height:36px!important;min-height:36px!important;max-height:36px!important;min-width:0;gap:3px!important;justify-content:space-between;align-items:center!important}
 .game-route #main-content .my-hand .hand-actions .btn{flex:1;min-width:0!important;height:36px!important;min-height:36px!important;padding-inline:4px!important;font-size:10px!important}
 .game-route #main-content .my-hand .hand-actions .btn svg{display:none}
 .game-route #main-content .my-hand .reaction-button{width:32px!important;min-width:32px!important;height:36px!important;min-height:36px!important;flex:0 0 32px!important}
}
