/* Local game help. The table keeps its full viewport; nothing appears until Help opens. */
.table-help-launch{flex:none;white-space:nowrap;border-color:#e2c877!important;color:#ffe9a8!important}
.dealer-busy #table-help-open{pointer-events:auto;opacity:1}
dialog.table-help{box-sizing:border-box;position:fixed;inset:16px 20px 16px auto;margin:auto 0;width:440px;max-width:calc(100vw - 24px);height:720px;max-height:calc(100dvh - 32px);padding:0;border:1px solid #c9b578;border-radius:16px;background:linear-gradient(135deg,#16372b,#071b14);color:#f8efd5;box-shadow:inset 0 1px #fff3,0 6px 0 #020b07,0 16px 45px #000b;font:16px/1.45 Arial,sans-serif;letter-spacing:normal;text-align:left;transform:none;overflow:hidden}
dialog.table-help:not([open]){display:none}
dialog.table-help::backdrop{background:#020c0990}
.table-help *{box-sizing:border-box}
.table-help .help-shell{height:100%;display:grid;grid-template-rows:auto auto auto minmax(60px,1fr) auto auto;gap:12px;padding:20px}
.table-help p{margin:0;color:#f3ebd6}
.table-help button{font:700 14px/1.2 Arial,sans-serif;letter-spacing:normal;min-height:36px;border:1px solid #82936f;border-radius:7px;padding:8px 11px;color:#fff1cb;background:linear-gradient(#365340,#14291e);box-shadow:inset 0 1px #fff2,0 2px #041109;cursor:pointer;text-transform:none;white-space:normal}
.table-help :is(button,input,.help-log):focus-visible{outline:3px solid #a7e7f5;outline-offset:2px}
.table-help .help-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.table-help .help-head h2{font:700 26px/1.15 Georgia,serif;margin:0;color:#f1d28c;letter-spacing:0;text-shadow:none}
.table-help .help-intro{font-size:14px;color:#d3decf}
.table-help .help-topics{display:flex;flex-wrap:wrap;gap:6px}
.table-help .help-topics button{border-radius:18px;min-height:34px;padding:7px 10px;font-size:13px}
.table-help .help-log{position:relative;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#7b9673 transparent;padding:4px 6px 4px 2px;display:flex;flex-direction:column;gap:12px}
.table-help .help-answer{flex:none;border:1px solid #668b5f70;border-radius:10px;padding:14px;background:#10291f;overflow-wrap:anywhere}
.table-help .help-answer h3{font:700 18px/1.3 Arial,sans-serif;color:#ffe3a0;margin:0 0 10px;letter-spacing:normal;text-shadow:none;text-transform:none}
.table-help .help-answer p{font:16px/1.5 Arial,sans-serif;margin:0 0 12px}
.table-help .help-answer p:last-child{margin-bottom:0}
.table-help .help-question{flex:none;align-self:flex-end;max-width:95%;padding:9px 12px;background:#263e4b;border:1px solid #8eacb34d;border-radius:10px;font:16px/1.4 Arial,sans-serif;overflow-wrap:anywhere}
.table-help .help-form{display:grid;gap:6px;margin:0}
.table-help .help-form label{font:700 14px/1.3 Arial,sans-serif;color:#f8efd5}
.table-help .help-compose{display:grid;grid-template-columns:minmax(0,1fr) 60px;gap:8px}
.table-help .help-input{width:100%;height:44px;min-width:0;padding:9px 10px;font:16px/1.4 Arial,sans-serif;color:#fff7df;background:#071810;border:1px solid #87a27a;border-radius:8px;box-shadow:inset 0 2px 4px #0007}
.table-help .help-input::placeholder{color:#b2c1af}
.table-help .help-send{background:linear-gradient(#f0dda1,#baa05c);color:#172319;border-color:#ead99c}
.table-help .help-status{font:13px/1.3 Arial,sans-serif;color:#ffe29a}
.table-help .help-status:empty{display:none}
.table-help .help-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:8px;border-top:1px solid #7e956148}
.table-help .help-footer button{font-size:13px;min-height:32px}
@media(max-width:700px){
 dialog.table-help{inset:10px;margin:auto;width:440px;max-height:calc(100dvh - 20px);max-width:calc(100vw - 20px)}
 .table-help .help-shell{padding:14px;gap:10px}
 body[data-help-game=poker] header{gap:6px}
 body[data-help-game=poker] header .brand{font-size:18px;gap:5px}
 body[data-help-game=poker] header .brand-icon{font-size:23px}
 body[data-help-game=poker] header .brand small{font-size:7px;letter-spacing:1.5px}
 body[data-help-game=poker] header :is(.compact-nav,.table-help-launch){padding:6px 7px;font-size:12px;min-width:0}
}
@media(max-height:500px){
 dialog.table-help{inset:8px;margin:auto;width:660px;max-height:calc(100dvh - 16px)}
 .table-help .help-shell{padding:12px;gap:7px;grid-template-rows:auto auto minmax(50px,1fr) auto auto}
 .table-help .help-intro{display:none}
 .table-help .help-head h2{font-size:22px}
 .table-help .help-topics{gap:5px}
 .table-help .help-topics button{min-height:30px;font-size:12px;padding:5px 8px}
 .table-help .help-footer{padding-top:4px}
 .table-help .help-form label{display:none}
}
@media(max-width:1199px) and (max-height:600px){body[data-help-game=poker] header .table-help-launch{height:28px;min-height:28px;padding:4px 10px;font-size:12px;line-height:18px}}
/* Preserve compact table layout fixes formerly bundled with the conversation feed. */
body[data-help-game=roulette]{display:flex;flex-direction:column}
body[data-help-game=roulette]>header{flex:none;width:100%}
body[data-help-game=roulette]>main{height:auto;flex:1;min-height:0;width:100%}
@media(min-width:1200px) and (max-width:2479px), (min-width:2480px) and (max-height:699px){
 body[data-help-game=poker] .player-wallet{bottom:22px}
 body[data-help-game=poker] .table.perimeter-table .seat-dock.controls{bottom:30px}
 body[data-help-game=poker] .table.perimeter-table .player-station .seat-chips{bottom:180px}
 body[data-help-game=poker] .table.perimeter-table .seat-dock .repeat-controls[open]{bottom:174px}
}
@media(min-width:1200px) and (max-width:2100px){body[data-help-game=poker] .table.perimeter-table .player-station .seat-chips{bottom:100px}}
@media(min-width:1600px) and (max-width:2100px) and (min-height:1001px){body[data-help-game=poker] .table.perimeter-table .player-station .seat-chips{bottom:180px}}
@media(max-width:1199px){body[data-help-game=poker] .table.perimeter-table .seat-dock .repeat-controls[open]{bottom:16px;max-height:calc(100dvh - 60px)}}
@media(max-width:600px) and (max-height:740px){
 body[data-help-game=roulette] #bet-help{display:none}
 body[data-help-game=poker] .table.perimeter-table{--play-circle:44px;gap:0}
 body[data-help-game=poker] .table.perimeter-table .player-station .bet-spots{row-gap:16px;margin-bottom:4px}
 body[data-help-game=poker] .table.perimeter-table .dealer-zone .card{width:38px;height:auto;aspect-ratio:5/7}
 body[data-help-game=poker] .table.perimeter-table .dealer-zone .cards{min-height:0}
 body[data-help-game=poker] .table.perimeter-table .seat-chips{grid-template-rows:39px 30px 16px}
 body[data-help-game=poker] .table.perimeter-table .seat-chips .clear-actions button{min-height:30px;padding-top:3px!important;padding-bottom:3px!important}
 body[data-help-game=poker] .table.perimeter-table .seat-dock.controls{flex-shrink:0;min-height:74px}
}
@media(min-width:901px) and (max-width:1199px) and (max-height:850px){body[data-help-game=roulette] .felt-title{display:none}body[data-help-game=roulette] .felt{padding-top:10px;padding-bottom:10px}}
@media(max-width:900px) and (min-width:601px) and (max-height:500px){
 body[data-help-game=roulette] .felt{display:grid;grid-template-columns:140px minmax(0,1fr);grid-template-rows:auto 1fr;gap:6px 10px;max-width:740px;width:100%;padding:8px 12px}
 body[data-help-game=roulette] .bet-builder{grid-column:1;grid-row:1;display:grid;gap:2px}
 body[data-help-game=roulette] .bet-builder select{min-width:0;width:100%;font-size:11px}
 body[data-help-game=roulette] .phone-bet-tabs{grid-column:1;grid-row:2;grid-template-columns:1fr 1fr;margin:0;align-self:start}
 body[data-help-game=roulette] .number-board{grid-column:2;grid-row:1/3;grid-template-columns:repeat(8,1fr);align-self:center}
 body[data-help-game=roulette] .number-board :is([data-number="0"],[data-number="00"]){grid-column:span 4!important}
 body[data-help-game=roulette] .felt[data-bet-page=outside]{grid-template-rows:repeat(4,auto)}
 body[data-help-game=roulette] .felt[data-bet-page=outside] .bet-builder{grid-row:1/3;align-self:start}
 body[data-help-game=roulette] .felt[data-bet-page=outside] .phone-bet-tabs{grid-row:3/5}
 body[data-help-game=roulette] .felt[data-bet-page=outside] .number-board{grid-row:1;grid-template-columns:repeat(6,1fr)}
 body[data-help-game=roulette] .felt[data-bet-page=outside] .number-board [data-number]{display:none}
 body[data-help-game=roulette] .felt[data-bet-page=outside] .dozens{grid-column:2;grid-row:2;margin:0}
 body[data-help-game=roulette] .felt[data-bet-page=outside] .outside{grid-column:2;grid-row:3}
 body[data-help-game=roulette] .felt[data-bet-page=outside] .special-bets{grid-column:2;grid-row:4;margin:0}
}
@media(max-width:600px) and (max-height:740px){
 body[data-help-game=poker] .table.perimeter-table .player-zone .player-hand-label.seat-result{display:flex;align-items:center;justify-content:center;gap:8px;padding:0;margin:0 auto 4px;min-height:22px}
 body[data-help-game=poker] .table.perimeter-table .player-hand-label.seat-result :is(#player-result,#player-rank){line-height:22px;margin:0;white-space:nowrap}
}
