/* Five-game host only. Owner game modules and standalone Poker keep their CSS. */
#app{min-width:0}
.lantern-room-tools{position:sticky;top:0;z-index:20;max-width:1252px;margin:0 auto;padding:10px 24px;background:#111321f5;border-bottom:1px solid #76616c66;color:#f7efdc;font:13px/1.45 system-ui,sans-serif;box-sizing:border-box;color-scheme:dark}
.lantern-room-tools[hidden],.lantern-room-tools [hidden]{display:none!important}
.lantern-room-tools *{box-sizing:border-box}
.room-tools-row,.room-tools-actions,.room-secondary-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.room-tools-identity{display:flex;flex-direction:column;gap:2px;margin-right:auto}
.room-tools-identity strong{font:20px Georgia,serif;color:#f2d4a6}
.room-tools-identity>span{font-size:10px;color:#c0bbc6}
.lantern-room-tools :is(button,summary){min-height:44px;padding:10px 13px;border:1px solid #897077;border-radius:5px;background:#302736;color:inherit;font:600 12px/1.5 system-ui,sans-serif;cursor:pointer;touch-action:manipulation}
.lantern-room-tools button:disabled{opacity:.48;cursor:not-allowed}
.lantern-room-tools button:hover:enabled,.lantern-room-tools summary:hover{background:#47344b}
.lantern-room-tools :is(button,input,summary):focus-visible{outline:3px solid #ffb36b;outline-offset:3px}
.lantern-room-tools [data-control=start],.lantern-room-tools [data-control=ready][aria-pressed=false]{background:#ffb36b;color:#281d22;border-color:#ffca95}
.lantern-room-tools summary{list-style-position:inside;white-space:nowrap}
.room-details{margin-left:auto}
.room-details-content{position:absolute;right:24px;top:100%;width:min(440px,calc(100% - 24px));max-height:min(65dvh,520px);overflow:auto;overscroll-behavior:contain;background:#191927;border:1px solid #897077;border-radius:6px;padding:16px;box-shadow:0 12px 30px #0006;font-size:12px;line-height:1.6}
.room-details-content p{margin:12px 0;color:#c0bbc6;overflow-wrap:anywhere}
.room-details-content p:empty,.room-seat-status:empty,.room-error:empty{display:none}
.room-details-content label{display:block;color:#e9cda8;margin:12px 0 8px}
.room-details-content input{display:block;width:100%;min-width:0;min-height:44px;padding:8px;margin-top:5px;border:1px solid #6d5a67;background:#10121f;color:#f7efdc;border-radius:4px;font:12px system-ui}
.room-seat-status,.room-error{margin:6px 0 0;font-size:12px;color:#c0bbc6;overflow-wrap:anywhere}
.room-error{color:#ffc2b7}
/* Put the existing persistent wager dock alongside the felt. No input moves or
   remounts on snapshots; the reading order still describes the hand then moves. */
[data-game][data-layout=cards]>.lrt{box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) minmax(285px,340px);grid-template-areas:'heading heading' 'rules rules' 'felt moves' 'result moves' 'seats seats' 'footer footer';gap:0 24px;max-width:1252px;margin:auto;min-height:0;padding:22px 36px 26px}
[data-game][data-layout=cards] .lrt-heading{grid-area:heading;width:100%;padding-bottom:16px}
[data-game][data-layout=cards] .lrt-rules{grid-area:rules;width:100%;padding:12px 0 20px}
[data-game][data-layout=cards] [data-table]{display:contents}
[data-game][data-layout=cards] .lrt-felt{grid-area:felt;min-width:0;width:100%}
[data-game][data-layout=cards] .lrt-result{grid-area:result;width:100%;margin-top:18px}
[data-game][data-layout=cards] .lrt-seats{grid-area:seats;width:100%;margin-top:20px}
[data-game][data-layout=cards] .lrt-dock{grid-area:moves;align-self:start;width:100%;min-width:0;margin:0;padding:16px}
[data-game][data-layout=cards] .lrt-dock .lrt-bet-row{gap:10px}
[data-game][data-layout=cards] .lrt-dock .lrt-bet-row label{flex-basis:100%;min-width:0}
[data-game][data-layout=cards] .lrt-dock .lrt-bet-row button{flex:1;min-width:110px}
[data-game][data-layout=cards] .lrt-dock .lrt-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
[data-game][data-layout=cards] footer{grid-area:footer}
.room-chat{max-width:1252px;margin:auto}
@media(max-width:850px){
 [data-game][data-layout=cards]>.lrt{grid-template-columns:minmax(0,1fr);grid-template-areas:'heading' 'rules' 'felt' 'moves' 'result' 'seats' 'footer';padding:18px 16px 22px}
 [data-game][data-layout=cards] .lrt-dock{margin-top:20px}
 [data-game][data-layout=cards] .lrt-dock .lrt-bet-row label{flex-basis:120px}
 .lantern-room-tools{padding:8px 12px}
 .room-tools-row{gap:7px}
 .room-tools-identity{flex:1 1 140px;order:0}
 .room-details{order:1;margin-left:0}
 .room-tools-actions{order:2;flex-basis:100%;gap:7px}
 .room-tools-actions:empty{display:none}
 .room-details-content{right:12px}
}
@media(max-width:380px){
 [data-game][data-layout=cards]>.lrt{padding-inline:12px}
 .room-tools-identity strong{font-size:18px}
 .lantern-room-tools :is(button,summary){padding-inline:10px}
}
