#gameDialog .isn-quick-guide{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#171b12;border:1px solid #806b3c;border-radius:4px;color:#ebd8a9;padding:3px 9px;font:12px/1.25 Arial,sans-serif;min-width:0}#gameDialog .isn-quick-guide button{flex:none;min-height:28px;font:12px/1.2 Arial,sans-serif;padding:3px 7px;color:#ffe2a0;background:#2a281b;border:1px solid #a38a51;border-radius:4px}
body #gameDialog.desk-fixed.has-quick-guide #gameRoomContent{grid-template-rows:minmax(0,1fr) auto auto}
body.public-card-room[data-isn-room] #gameDialog.poker-fit.has-quick-guide #gameRoomContent{grid-template-rows:38px minmax(0,1fr) auto}
@media(max-width:650px),(max-height:500px){#gameDialog .isn-quick-guide{font-size:10px;padding:2px 5px;gap:3px}#gameDialog .isn-quick-guide button{font-size:10px;min-height:24px;padding:2px 4px}}

/* Stud hands share the felt in a responsive seat grid instead of a scrolling list. */
body[data-isn-room] #gameDialog.desk-stud .desk-viewport{display:flex;flex-direction:column;overflow:hidden;gap:3px}
body[data-isn-room] #gameDialog.desk-stud .desk-viewport>.opponent-picker{flex:none;margin:0!important;min-height:0;height:30px;z-index:20;overflow:visible}
body[data-isn-room] #gameDialog.desk-stud .opponent-picker>summary{min-height:30px!important;height:30px;padding:2px 8px!important;font-size:11px!important}
body[data-isn-room] #gameDialog.desk-stud .opponent-picker-body{position:absolute;top:31px;left:0;width:min(800px,95vw);max-height:60dvh;overflow:auto}
body[data-isn-room] #gameDialog.desk-stud .room-layout{display:block;flex:1;min-height:0;height:100%;margin:0;padding:0}
body[data-isn-room] #gameDialog.desk-stud .table-stage{height:100%;max-height:100%;min-height:0;margin:0!important;padding:0!important;container-type:size;overflow:hidden}
body[data-isn-room] #gameDialog.desk-stud .table-rail{height:29px;min-height:0;margin:0;padding:2px 5px;font-size:9px}
body[data-isn-room] #gameDialog.desk-stud .table-rail>span{display:none}
body[data-isn-room] #gameDialog.desk-stud .table-brand{display:none}
body[data-isn-room] #gameDialog.desk-stud .table-center{position:static;width:100%;height:calc(100% - 29px);display:grid;grid-template-rows:43px minmax(0,1fr);margin:0;padding:0 6px 3px;background:none;border:0;min-height:0;max-width:none}
body[data-isn-room] #gameDialog.desk-stud .table-center>.table-betting-chips{position:static;grid-row:1;display:flex;justify-content:space-between;height:43px;width:100%;padding:0;margin:0;transform:none}
body[data-isn-room] #gameDialog.desk-stud .table-betting-chip{display:flex;flex-direction:row;gap:6px;align-items:center;width:auto!important;min-width:0!important;height:38px!important;min-height:0!important;aspect-ratio:auto;border:1px solid #b28c45;border-radius:7px;padding:5px 10px!important;box-shadow:none}
body[data-isn-room] #gameDialog.desk-stud .table-betting-chip:before,body[data-isn-room] #gameDialog.desk-stud .table-betting-chip:after{display:none}
body[data-isn-room] #gameDialog.desk-stud .table-betting-chip span,body[data-isn-room] #gameDialog.desk-stud .table-betting-chip small{font:10px/1 Arial!important;width:auto;margin:0}
body[data-isn-room] #gameDialog.desk-stud .table-betting-chip strong{font:700 24px/1 Arial!important;margin:0}
body[data-isn-room] #gameDialog.desk-stud #roomCardRow{grid-row:2;display:block;width:100%;height:100%;min-height:0;margin:0;padding:0}
body[data-isn-room] #gameDialog.desk-stud .follow-queen-table{display:flex;flex-direction:column;gap:3px;height:100%;width:100%;min-height:0;padding:0}
body[data-isn-room] #gameDialog.desk-stud .stud-wild-marker{flex:none;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px;padding:2px;margin:0;min-height:0}
body[data-isn-room] #gameDialog.desk-stud .stud-wild-marker span,body[data-isn-room] #gameDialog.desk-stud .stud-wild-marker small{font-size:9px!important;line-height:1.1}
body[data-isn-room] #gameDialog.desk-stud .stud-wild-marker strong{font-size:14px!important;line-height:1.1}
body[data-isn-room] #gameDialog.desk-stud .stud-wild-log{display:none}
body[data-isn-room] #gameDialog.desk-stud .stud-player-grid{flex:1;min-height:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:4px}
body[data-isn-room] #gameDialog.desk-stud .stud-player-row{display:flex;flex-direction:column;justify-content:center;padding:3px;min-height:0;overflow:hidden;background:#103828d9}
body[data-isn-room] #gameDialog.desk-stud .stud-player-heading{flex:none;min-height:17px;margin:0 0 2px;gap:3px}
body[data-isn-room] #gameDialog.desk-stud .stud-player-heading img{width:24px;height:25px}
body[data-isn-room] #gameDialog.desk-stud .stud-player-heading strong{font-size:11px!important;letter-spacing:0}
body[data-isn-room] #gameDialog.desk-stud .stud-player-heading small{font-size:8px!important;letter-spacing:0}
body[data-isn-room] #gameDialog.desk-stud .stud-player-cards{display:flex;justify-content:space-evenly;gap:1px;min-height:0}
body[data-isn-room] #gameDialog.desk-stud .stud-card-slot{gap:1px;min-height:0;min-width:0}
body[data-isn-room] #gameDialog.desk-stud .stud-card-slot>small{font-size:8px!important;line-height:1}
body[data-isn-room] #gameDialog.desk-stud .stud-player-cards :is(.playing-card,.card-back){position:relative;width:min(3.7cqw,8cqh)!important;height:min(5.2cqw,11.2cqh)!important;min-width:0;min-height:0;margin:0;padding:2px!important;aspect-ratio:5/7;flex:none}
body[data-isn-room] #gameDialog.desk-stud .stud-player-cards .playing-card strong{font:700 clamp(9px,2cqh,15px)/1 Georgia!important}
body[data-isn-room] #gameDialog.desk-stud .stud-player-cards .playing-card em{font:clamp(10px,2.5cqh,17px)/1 Georgia!important}
body[data-isn-room] #gameDialog.desk-stud .stud-player-cards .card-back-mark{font-size:6px!important}
body[data-isn-room] #gameDialog.desk-stud .stud-card-key{flex:none;font-size:8px;margin:0;gap:2px 6px}
body[data-isn-room] #gameDialog.desk-stud .table-inline-actions{display:none}
body[data-isn-room] #gameDialog.desk-stud .stud-winning-hand{font-size:9px;line-height:1.1;padding:1px;margin:0}
body[data-isn-room] #gameDialog.desk-stud .desk-dock .betting-stats{display:flex;gap:10px;margin:0;padding:0;background:none;border:0}
body[data-isn-room] #gameDialog.desk-stud .desk-dock .betting-stats>div{display:flex;gap:5px;padding:0;background:none;border:0}
body[data-isn-room] #gameDialog.desk-stud .desk-dock .betting-stats span{font-size:10px!important}
body[data-isn-room] #gameDialog.desk-stud .desk-dock .betting-stats strong{font-size:14px!important}
body[data-isn-room] #gameDialog.desk-stud .desk-dock .betting-callout{font-size:12px;padding:0;margin:0;border:0;background:none}
body[data-isn-room] #gameDialog.desk-stud .desk-moves button{min-height:40px;font-size:15px}
@media(max-width:650px){body[data-isn-room] #gameDialog.desk-stud .stud-player-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-isn-room] #gameDialog.desk-stud .stud-player-cards :is(.playing-card,.card-back){width:min(5.6cqw,8cqh)!important;height:min(7.8cqw,11.2cqh)!important}body[data-isn-room] #gameDialog.desk-stud .stud-player-heading strong{font-size:10px!important}body[data-isn-room] #gameDialog.desk-stud .stud-player-heading img{width:20px;height:21px}body[data-isn-room] #gameDialog.desk-stud .stud-wild-marker small{display:none}body[data-isn-room] #gameDialog.desk-stud .desk-moves button{min-height:35px;font-size:13px}}
@media(orientation:landscape) and (max-height:500px){body[data-isn-room] #gameDialog.desk-stud .stud-player-grid{grid-template-columns:repeat(4,minmax(0,1fr))}body[data-isn-room] #gameDialog.desk-stud .stud-player-cards :is(.playing-card,.card-back){width:min(2.7cqw,10cqh)!important;height:min(3.8cqw,14cqh)!important}body[data-isn-room] #gameDialog.desk-stud .stud-player-heading{min-height:14px}body[data-isn-room] #gameDialog.desk-stud .stud-player-heading img{height:14px;width:14px}body[data-isn-room] #gameDialog.desk-stud .stud-player-heading strong{font-size:8px!important}body[data-isn-room] #gameDialog.desk-stud .stud-player-heading small{font-size:6px!important}body[data-isn-room] #gameDialog.desk-stud .table-center{grid-template-rows:28px minmax(0,1fr)}body[data-isn-room] #gameDialog.desk-stud .table-center>.table-betting-chips{height:28px}body[data-isn-room] #gameDialog.desk-stud .table-betting-chip{height:25px!important;padding:2px 6px!important}body[data-isn-room] #gameDialog.desk-stud .table-betting-chip strong{font-size:18px!important}body[data-isn-room] #gameDialog.desk-stud .stud-wild-marker small{display:none}body[data-isn-room] #gameDialog.desk-stud .desk-moves button{min-height:28px;font-size:12px}}

body[data-isn-room] #gameDialog.desk-stud .room-layout{flex:1 1 0!important;height:auto!important;min-height:0!important}body[data-isn-room] #gameDialog.desk-stud .room-layout>.table-stage{display:block!important;height:100%!important;min-height:0!important;border:0;box-sizing:border-box}body[data-isn-room] #gameDialog.desk-stud .table-center{min-height:0!important;box-sizing:border-box;align-items:stretch;justify-items:stretch;justify-content:normal;gap:0}body[data-isn-room] #gameDialog.desk-stud .desk-dock .betting-callout{font-size:12px!important;line-height:1.2}body[data-isn-room] #gameDialog.desk-stud .desk-dock .betting-stats strong{font-size:14px!important;line-height:1.1}

body[data-isn-room] #gameDialog.desk-stud .table-center{grid-template-rows:minmax(0,1fr)!important}body[data-isn-room] #gameDialog.desk-stud #roomCardRow{grid-row:1}body[data-isn-room] #gameDialog.desk-stud .table-center>.table-betting-chips{display:none!important}body[data-isn-room] #gameDialog.desk-stud .stud-player-row{background:#0d3421b8;border:1px solid #b39b4838}body[data-isn-room] #gameDialog.desk-stud .stud-player-row.is-you{border-color:#c8a75c}
.full-card-rules{box-sizing:border-box;width:min(680px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;padding:16px;background:#18170f;color:#fff0cc;border:1px solid #d2ae61;border-radius:10px;font:16px/1.5 system-ui;overflow-wrap:anywhere}
.full-card-rules::backdrop{background:#000b}
.full-card-rules>button{position:sticky;top:0;z-index:2;padding:10px 16px;background:#cba75f;color:#17120a;border:1px solid #efcd85;border-radius:5px;font:600 14px system-ui;cursor:pointer}
.full-card-rules .room-instruction-grid{display:block;padding:0;max-height:none;overflow:visible}
.full-card-rules .room-info-card{margin:12px 0;padding:10px;background:#25251a;border:1px solid #75613b;border-radius:6px}
.full-card-rules :is(h2,h3,p){color:inherit;font-family:inherit;line-height:1.45}
.full-card-rules h3{font-size:16px}.full-card-rules p{font-size:14px}.full-card-rules :focus-visible{outline:3px solid #ffe6a2;outline-offset:2px}
