.table-assist{display:flex;align-items:center;gap:6px;flex:none}
#table-stats-open{white-space:nowrap;border:1px solid #d5bc75;color:#ffe8a7;background:linear-gradient(#2b4535,#13271d);border-radius:8px;font-weight:700}
.dealer-busy #table-stats-open{pointer-events:auto;opacity:1}
dialog.table-stats{width:610px;height:790px}
.table-stats .stats-shell{height:100%;display:grid;grid-template-rows:auto auto auto minmax(60px,1fr) auto auto;gap:12px;padding:20px}
.table-stats .stats-game{font-size:14px;color:#d5e2cc}
.table-stats .stats-ranges{display:flex;gap:8px}
.table-stats .stats-ranges button{flex:1}
.table-stats .stats-ranges [aria-pressed=true]{background:linear-gradient(#efd79a,#b89d5c);color:#11261a;border-color:#fff0bd}
.table-stats .stats-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:2px 5px 6px 2px;scrollbar-width:thin;scrollbar-color:#7b9673 transparent}
.table-stats .stats-body:focus-visible{outline:3px solid #a7e7f5;outline-offset:1px}
.table-stats .stats-coverage{font-size:14px;color:#e7cf90;margin-bottom:12px}
.table-stats .stats-answer{border:1px solid #668b5f70;border-radius:10px;padding:14px;background:#10291f;margin-bottom:16px;overflow-wrap:anywhere}
.table-stats .stats-answer h3,.table-stats .stats-examples h3{font:700 18px/1.3 Arial,sans-serif;color:#ffe3a0;margin:0 0 10px;letter-spacing:normal;text-transform:none}
.table-stats .stats-asked{font-size:13px;color:#d0dfd3;margin-bottom:8px}
.table-stats .stats-asked[hidden]{display:none}
.table-stats .stats-answer p{line-height:1.5}
.table-stats .stats-examples{display:grid;gap:6px;margin:0 0 18px}
.table-stats .stats-examples button{text-align:left;min-height:40px}
.table-stats .stats-table{width:100%;border-collapse:collapse;margin:0 0 14px;font:14px/1.4 Arial,sans-serif;background:transparent;table-layout:auto}
.table-stats .stats-table caption{text-align:left;font-weight:700;font-size:18px;color:#f6dda0;margin-bottom:8px}
.table-stats .stats-table :is(th,td){padding:9px 5px;border-bottom:1px solid #8a9e6b45;text-align:left;white-space:normal;background:transparent;color:#f8efd5}
.table-stats .stats-table thead th{color:#f6dda0}
.table-stats .stats-table td{font-variant-numeric:tabular-nums;min-width:100px}
.table-stats .stats-results{font-weight:700;font-size:15px;margin-bottom:14px}
.table-stats .stats-notes{position:static;width:auto;background:transparent;color:#d3dfcf;border:0;margin:0;max-height:none}
.table-stats .stats-notes summary{font:700 15px/1.4 Arial,sans-serif;cursor:pointer;min-height:34px;color:#e9d7a1}
.table-stats .stats-notes p{font:14px/1.45 Arial,sans-serif;margin:10px 0;color:#d3dfcf}
.table-stats .stats-footer{font-size:12px;color:#c3d3bd}
.stats-introduction{position:fixed;z-index:160;top:68px;left:50%;transform:translateX(-50%);width:370px;max-width:calc(100vw - 24px);box-sizing:border-box;padding:15px 17px;border:1px solid #c5aa63;border-radius:12px;background:linear-gradient(135deg,#214833,#0d261b);box-shadow:0 6px 22px #0009;color:#fff2d0;font:15px/1.4 Arial,sans-serif;letter-spacing:normal;text-align:left}
.stats-introduction[hidden]{display:none!important}
.stats-introduction strong{font-size:18px;color:#ffe19c}.stats-introduction p{margin:7px 0 12px;color:#f4ebd6}
.stats-introduction>div{display:flex;gap:8px}
.stats-introduction button{min-height:36px;padding:7px 11px;border:1px solid #c5aa63;border-radius:7px;background:#e2ca8c;color:#11291b;font:700 14px/1.3 Arial,sans-serif;cursor:pointer}
.stats-introduction button:last-child{background:#132c20;color:#fff0c4}
.stats-introduction button:focus-visible{outline:3px solid #a7e7f5;outline-offset:2px}
@media(max-width:700px){
 .table-stats .stats-shell{padding:14px;gap:9px}
 .table-stats .stats-table{font-size:13px}
 .table-stats .stats-table td{min-width:0}
 .table-stats .stats-table :is(th,td){padding:8px 4px}
 #table-stats-open{font-size:12px;padding:6px 8px;min-height:32px}
 .table-assist{gap:4px}
}
@media(max-height:500px){
 dialog.table-stats{width:700px}
 .table-stats .stats-shell{padding:12px;gap:6px;grid-template-rows:auto auto minmax(40px,1fr) auto}
 .table-stats .stats-game,.table-stats .stats-footer{display:none}
 .table-stats .stats-ranges button{min-height:30px;padding:5px}
 .stats-introduction{top:44px;padding:10px 14px}
}
@media(max-width:360px){
 body[data-help-game]{min-width:0;width:100vw}
 body[data-help-game=poker] header{width:100%;min-width:0;gap:4px;padding-left:6px;padding-right:6px;box-sizing:border-box}
 body[data-help-game=poker] header .brand{font-size:16px;gap:3px}
 body[data-help-game=poker] header .brand-icon{font-size:19px}
 body[data-help-game=poker] header :is(.compact-nav,.table-help-launch){font-size:11px;padding:5px;min-width:0}
 body[data-help-game] #table-stats-open{width:54px;min-width:54px;white-space:normal;font-size:11px;line-height:12px;padding:3px 4px}
 body[data-help-game=blackjack] .site-header{min-width:0;max-width:98%;box-sizing:border-box}
 body[data-help-game=blackjack] .tools{min-width:0;width:100%;gap:4px;justify-content:space-between}
 body[data-help-game=blackjack] .tools>button{flex:1;min-width:0;white-space:normal;font-size:11px;padding:4px}
 body[data-help-game=blackjack] .tools .table-help-launch{font-size:11px;padding:5px;min-width:0}
}
@media(min-width:501px){
 .table-stats .stats-examples{grid-template-columns:1fr 1fr}
 .table-stats .stats-examples h3{grid-column:1/-1}
}
