/* Load after the legacy inline rules. Reserve real space for every seat,
   status and control, including full tables, showdown and enlarged text. */
.poker-page{min-width:0;overflow-wrap:anywhere;padding-bottom:var(--safe-bottom)}
.poker-page-header{flex-wrap:wrap}.poker-page-header>div{min-width:0}
.poker-wallet{max-width:100%;margin-left:auto}.poker-wallet b{overflow-wrap:anywhere}
.poker-guidance{grid-template-columns:38px minmax(0,1fr)}
.poker-rule-strip{flex-wrap:wrap;overflow:visible}.poker-rule-strip span{max-width:100%;white-space:normal}
.poker-table{display:grid;grid-template-columns:minmax(100px,1fr) minmax(270px,2.4fr) minmax(100px,1fr);grid-template-areas:'s3 s4 s5' 's2 board s6' 's1 s0 s7' 'chat chat chat';gap:16px;padding:16px;min-height:0;align-items:center}
.poker-table .poker-seat{position:relative;inset:auto!important;transform:none;width:100%;min-width:0;max-width:180px;min-height:90px;justify-self:center;align-self:stretch;margin:0;padding:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}
.poker-table .s0{grid-area:s0}.poker-table .s1{grid-area:s1}.poker-table .s2{grid-area:s2}.poker-table .s3{grid-area:s3}.poker-table .s4{grid-area:s4}.poker-table .s5{grid-area:s5}.poker-table .s6{grid-area:s6}.poker-table .s7{grid-area:s7}
.poker-table .poker-center{grid-area:board;position:relative;inset:auto;transform:none;width:100%;min-width:0}
.poker-seat-name{max-width:100%}.poker-seat-balance,.poker-lobby-time{max-width:100%;overflow-wrap:anywhere}
.poker-table .poker-seat-bet,.poker-table .poker-action-bubble,.poker-table .poker-win-badge{position:static;inset:auto;transform:none;max-width:100%;min-width:0;width:auto;white-space:normal;overflow-wrap:anywhere;margin:2px 0 0;animation:none}
.poker-table .poker-action-bubble:after{display:none}
.poker-table .poker-seat.winner{transform:none}
.poker-table .poker-win-amount{font-size:13px;max-width:100%;overflow-wrap:anywhere}
.poker-table .poker-danmaku{grid-area:chat;position:relative;inset:auto;height:auto;min-width:0;display:grid;gap:5px;z-index:3;pointer-events:auto}
.poker-table .poker-danmaku:empty{display:none}
.poker-table .poker-danmaku span{position:static;inset:auto;transform:none;animation:none;max-width:100%;width:auto;white-space:normal;overflow-wrap:anywhere;box-shadow:none}
.poker-community .playing-card{flex-shrink:0}
.poker-my-hand{width:100%;overflow-wrap:anywhere}
.poker-page .poker-command,.poker-page .poker-command.my-turn{position:relative;inset:auto;width:100%;max-height:none;margin:11px 0 0;overflow:visible;z-index:auto;backdrop-filter:none;scroll-margin-block:100px}
.poker-command-header>div{min-width:0}.poker-action-grid button{overflow-wrap:anywhere;white-space:normal}
.poker-page .poker-raise{display:block;min-width:0}
.poker-page .poker-raise-top{flex-wrap:wrap}.poker-raise-top label{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0}
.poker-page .poker-raise-range{display:block;width:100%;max-width:100%;height:52px;min-height:52px;margin:4px 0;padding:0 2px;border:0;background:transparent;appearance:none;-webkit-appearance:none;cursor:pointer;touch-action:pan-y}
.poker-raise-range::-webkit-slider-runnable-track{height:12px;background:#d4b88b;border:1px solid #a77d42;border-radius:99px}
.poker-raise-range::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:32px;height:32px;margin-top:-11px;border-radius:50%;border:3px solid #fff4da;background:#87412a;box-shadow:0 2px 6px #3218}
.poker-raise-range::-moz-range-track{height:12px;background:#d4b88b;border:1px solid #a77d42;border-radius:99px}
.poker-raise-range::-moz-range-thumb{width:28px;height:28px;border:3px solid #fff4da;border-radius:50%;background:#87412a}
.poker-raise-range:focus-visible{outline:3px solid #1677ff;outline-offset:2px}
.poker-page #pokerRaiseTo{width:100%;max-width:240px;min-height:52px;font-size:22px;padding:10px}
.poker-page .poker-raise-top{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.poker-page .poker-raise-confirm{min-height:52px;width:100%;margin-top:12px;background:#2e7145;color:white}
.poker-raise-stepper{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:12px 0}
.poker-page .poker-raise-stepper button{min-width:0;min-height:48px;padding:6px;font-size:17px;touch-action:manipulation}
.poker-page .poker-slider-label{display:block;font-size:12px}
.poker-page .poker-raise-cost{font-size:13px;line-height:1.6}
.poker-page .poker-raise-quick{grid-template-columns:repeat(2,minmax(0,1fr))}
.poker-page .poker-raise-quick button{min-width:0;white-space:normal;overflow-wrap:anywhere}
.poker-page .poker-result-winner{flex-wrap:wrap}.poker-result-winner>*{min-width:0;overflow-wrap:anywhere}
.poker-history-row{grid-template-columns:58px minmax(0,1fr) auto}.poker-history-row>*{min-width:0}
body.poker-game-active .main{padding-bottom:var(--safe-bottom)}
@media(max-width:700px){
 .poker-table{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:'s3 s4' 's2 s5' 'board board' 's1 s6' 's0 s7' 'chat chat';gap:12px;padding:12px}
 .poker-table .poker-seat{max-width:none;min-height:86px}
 .poker-table .poker-center{max-width:390px;justify-self:center}
 .poker-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .poker-history-row{grid-template-columns:52px minmax(0,1fr)}.poker-history-row span:last-child{grid-column:2}
}
@media(max-width:360px){.poker-room{padding:6px}.poker-table{padding:8px;gap:10px}.poker-page-header h1{font-size:22px}.poker-command{padding:10px}.poker-community .playing-card{width:33px;flex-basis:33px}}
@media(prefers-reduced-motion:reduce){.poker-table .poker-seat{animation:none}}
