.poker-host .poker-board{max-width:860px;padding:12px 16px}.poker-board .classic-board-title{margin-bottom:3px}.poker-board .classic-rules-brief{margin:4px auto 9px;max-width:680px}.poker-steps{display:flex;justify-content:center;gap:7px;list-style:none;margin:0 0 12px;padding:0}.poker-steps li{flex:1;max-width:180px;padding:6px 8px;background:#182449;border:1px solid #446393;border-radius:6px;color:#a8bde0;text-align:center;font-size:14px;line-height:1.4}.poker-steps .is-current{background:#3b65f5;border-color:#6f9bff;color:#f8fbff;font-weight:750}.poker-table{padding:12px 20px 14px;background:#124854;border:2px solid #28c7ee;border-radius:12px;box-shadow:inset 0 0 0 5px #183754;max-width:720px;margin:auto}.poker-player{display:flex;align-items:center;justify-content:center;gap:10px;min-height:32px;color:#f8fbff}.poker-player strong{font-size:16px}.poker-player-note{font-size:14px;color:#b6e9ef}.poker-avatar{width:38px;height:38px;object-fit:contain}.poker-role{display:inline-flex;align-items:center;border:1px solid #5272aa;border-radius:6px;background:#182449;color:#a8e6ff;font-size:14px;font-weight:750;line-height:1.4;padding:4px 9px}.poker-strong-hand{color:#ffcf3f;border-color:#ffcf3f}.poker-player.is-turn .poker-role{border-color:#28c7ee}.poker-hand{display:grid;grid-template-columns:repeat(5,minmax(44px,1fr));gap:8px;width:min(100%,480px);margin:6px auto}.poker-hidden-hand{max-width:340px}.poker-card{display:block;position:relative;width:100%;min-width:44px;min-height:64px;padding:0!important;border:0!important;border-radius:6px!important;background:transparent!important;box-shadow:none!important;color:#f8fbff;touch-action:manipulation}.poker-card-art{display:block;width:100%;height:auto;aspect-ratio:96/132;pointer-events:none}.poker-card:disabled{opacity:1!important;filter:none!important;cursor:default}.poker-card.is-exchange{transform:translateY(-5px);outline:3px solid #ff596d;outline-offset:-1px}.poker-card.is-hint{outline:3px solid #ffcf3f;outline-offset:-1px}.poker-card-tag{position:absolute;bottom:5px;left:7px;right:7px;background:#182449;color:#a8e6ff;border-radius:3px;text-align:center;font-size:13px;line-height:1.5;padding:1px 0;pointer-events:none}.poker-card-tag:empty{display:none}.poker-card.is-exchange .poker-card-tag{background:#bd2f50;color:#fff}.poker-middle{display:flex;gap:9px;align-items:center;justify-content:center;margin:5px auto 8px;min-height:65px}.poker-pot-art{width:104px;height:55px;pointer-events:none}.poker-pot-copy{display:flex;flex-direction:column;text-align:left;line-height:1.4}.poker-pot-copy small{font-size:12px;color:#b6e9ef}.poker-pot-copy strong{font-size:25px;line-height:1.2;color:#ffcf3f;font-weight:800;font-variant-numeric:tabular-nums}.poker-pot-copy span{font-size:14px;color:#f8fbff}.poker-draw-info{font-size:14px;line-height:1.6;text-align:center;color:#b6e9ef;margin:8px 0 0;min-height:1.6em}.poker-round-summary{font-size:15px;line-height:1.6;text-align:center;font-weight:700;color:#ffcf3f;margin:8px 0 0}.poker-history{text-align:center;margin:8px 0 0}.poker-host .classic-controls{gap:7px}.poker-host .classic-action{padding:8px 12px;white-space:normal}.poker-main-action.is-hint{outline:2px solid #ffcf3f;outline-offset:1px}.poker-guide{margin:14px auto 0;max-width:680px;border:1px solid #5272aa;border-radius:8px;background:#182449;padding:14px;color:#f8fbff}.poker-guide h3{font-size:18px;margin:0 0 5px}.poker-guide p{font-size:14px;line-height:1.75;margin:5px 0 10px}.poker-rank-list{list-style:none;margin:0;padding:0}.poker-rank-list li{display:grid;grid-template-columns:minmax(170px,1fr) 1.2fr;gap:10px;border-top:1px solid #304b7c;padding:8px 0;font-size:14px;line-height:1.5}.poker-rank-list strong{color:#ffcf3f}.poker-rank-list span{color:#c6d8f5}.poker-guide .poker-guide-note{margin:10px 0 0;color:#b6e9ef}
@media(max-width:680px){.poker-host .poker-board{padding:8px}.poker-board .classic-board-title{font-size:16px}.poker-table{padding:8px 8px 10px}.poker-steps{gap:4px;margin-bottom:7px}.poker-steps li{font-size:14px;padding:5px 3px}.poker-hand{gap:5px}.poker-hidden-hand{max-width:255px;margin:4px auto}.poker-avatar{width:30px;height:30px}.poker-player{gap:6px;flex-wrap:wrap;min-height:26px}.poker-player strong{font-size:14px}.poker-role{font-size:14px;padding:3px 7px}.poker-player-note{font-size:13px}.poker-middle{min-height:48px;margin:4px auto}.poker-pot-art{width:90px;height:48px}.poker-pot-copy strong{font-size:22px}.poker-draw-info{font-size:14px;margin-top:5px}.poker-card-tag{left:5px;right:5px;font-size:12px}.poker-guide{padding:10px}.poker-rank-list li{grid-template-columns:1fr;gap:2px;padding:7px 0}.poker-host .classic-action{font-size:14px;padding:8px 9px}}
@media(max-height:480px) and (min-width:681px){.poker-host .poker-board{padding:8px;max-width:960px}.poker-table{display:grid;grid-template-columns:1fr 100px 1fr;grid-template-rows:auto 1fr auto;gap:3px 9px;padding:8px 12px;max-width:none}.poker-cpu{grid-column:1;grid-row:1}.poker-hidden-hand{grid-column:1;grid-row:2;max-width:285px}.poker-middle{grid-column:2;grid-row:1/4;flex-direction:column;gap:3px;margin:0}.poker-pot-copy{text-align:center}.poker-human{grid-column:3;grid-row:1}.poker-player-hand{grid-column:3;grid-row:2;max-width:285px}.poker-draw-info{grid-column:1/4;grid-row:3;margin:3px 0 0}.poker-round-summary{grid-column:1/4;grid-row:4}.poker-board .classic-rules-brief{margin:2px auto 5px}.poker-steps{margin-bottom:5px}.poker-steps li{padding:3px 8px}.poker-hand{margin:3px auto}.poker-history{margin-top:4px}.poker-guide{margin-top:7px}}
/* Keep the player's cards and full-sized touch targets together on small phones. */
@media(max-width:680px){
 #game-host.poker-host .arena-dock>.classic-controls{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));width:100%;max-width:480px;gap:5px!important}
 #game-host.poker-host .arena-dock .classic-action{grid-column:span 3;padding:6px 3px;font-size:14px;min-width:0;min-height:44px}
 #game-host.poker-host .arena-dock .poker-main-action{grid-column:span 4}
 #game-host.poker-host .arena-dock [data-poker-action=draw],#game-host.poker-host .arena-dock [data-poker-action=next]{grid-column:1/-1}
}
@media(max-width:680px) and (max-height:740px){
 #game-host.poker-host .poker-board{padding:5px 7px}
 .poker-board .classic-board-title,.poker-steps{display:none}
 .poker-board .classic-rules-brief{margin:0 auto 5px;line-height:1.4}
 .poker-table{padding:5px 6px 6px;border-radius:8px}
 .poker-hidden-hand{max-width:180px;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin:2px auto}
 .poker-opponent-card{min-width:0;min-height:0}
 .poker-avatar{width:22px;height:24px}
 .poker-cpu{gap:5px;min-height:24px;flex-wrap:nowrap}
 .poker-cpu .poker-role{display:none}
 .poker-cpu strong{font-size:14px}
 .poker-cpu .poker-player-note{font-size:12px;white-space:nowrap}
 .poker-middle{min-height:29px;gap:5px;margin:2px auto}
 .poker-pot-art{width:57px;height:30px}
 .poker-pot-copy{flex-direction:row;align-items:center;gap:7px}
 .poker-pot-copy small{display:none}
 .poker-pot-copy strong{font-size:18px}
 .poker-pot-copy span{font-size:13px}
 .poker-human{min-height:24px}
 .poker-human .poker-role{padding:1px 6px}
 .poker-player-hand{max-width:270px;margin:3px auto}
 .poker-draw-info{margin:3px 0 0;line-height:1.4}
 .poker-history{margin-top:3px}
}
@media(max-height:480px) and (min-width:681px){
 .poker-board .classic-board-title,.poker-steps{display:none}
 .poker-cpu .poker-role{display:none}
 .poker-cpu{gap:6px;flex-wrap:nowrap}
 .poker-cpu strong{font-size:14px;white-space:nowrap}
 .poker-cpu .poker-player-note{font-size:12px;white-space:nowrap}
 .poker-avatar{width:30px;height:32px}
}
