/* Poker keeps a single scrolling Help body beneath a fixed header/status. */
#poker-details{box-sizing:border-box;width:min(920px,calc(100vw - 32px));height:min(820px,94dvh);max-width:none;max-height:94dvh;padding:0;overflow:hidden;background:#102e32;border-color:#c5ab6d}
#poker-details[open]{display:flex;flex-direction:column;gap:0}
#poker-details .popup-header{position:relative;flex:none;min-height:62px;padding:10px 16px;gap:10px;background:#153b3d}
#poker-details .popup-header h2{flex:1;min-width:0;font-size:20px;line-height:1.4}
#poker-details .popup-close{flex:none}
#poker-details .poker-help{min-height:44px;max-width:150px;font-size:12px;padding:8px 12px;white-space:normal}
.poker-status{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 16px;flex:none;min-height:38px;box-sizing:border-box;font-size:13px;background:#0c282e;color:#f4d889;border-block-end:1px solid #6a795c}
.poker-status>span{min-width:0;overflow-wrap:anywhere}.poker-status>strong{flex:none;font-variant-numeric:tabular-nums}
#poker-details .poker-body{padding:0;flex:1;min-height:0;display:flex;overflow:auto;scrollbar-gutter:auto}
.poker-table{position:relative;flex:1;min-height:350px;overflow:hidden;background:#17483c url('/assets/casino/table-landscape.png') center/100% 100% no-repeat;isolation:isolate}
.poker-community{position:absolute;left:50%;top:49%;transform:translate(-50%,-50%);display:grid;justify-items:center;gap:10px;z-index:1;width:58%}
.poker-street{text-transform:uppercase;font-size:11px;font-weight:bold;letter-spacing:1px;color:#e3cf91;text-shadow:0 2px #123b35}
.poker-board,.poker-hole,.poker-example,.poker-opponent-cards{display:flex;align-items:center;justify-content:center;gap:5px;direction:ltr}
.poker-card{display:inline-block;flex:none;width:54px;aspect-ratio:50/72;line-height:0;filter:drop-shadow(1px 3px 1px #001d2788);transform-origin:50% 100%;vertical-align:middle}
.poker-card svg{display:block;width:100%;height:100%;overflow:visible}.poker-card-slot{width:54px;aspect-ratio:50/72;box-sizing:border-box;border:1px dashed #b7be8c70;background:#123d3338;flex:none}
.poker-card.is-dealing{animation:poker-deal-in .3s ease-out both}
.poker-pot{display:flex;align-items:center;gap:7px;padding:5px 10px;border:1px solid #af995a;background:#0f302bd9;border-radius:20px;font-size:14px;color:#ffe5a6;white-space:nowrap}
.poker-chip{width:15px;height:15px;display:inline-block;border:3px dashed #f5e0b0;border-radius:50%;background:#ae4450;box-shadow:0 2px #762f36;flex:none}
.poker-seat{position:absolute;left:var(--seat-x);top:var(--seat-y);transform:translate(-50%,-50%);width:132px;display:grid;grid-template-columns:36px minmax(0,1fr);gap:4px 6px;align-items:center;z-index:2;padding:5px;background:#102f32ed;border:1px solid #587866;border-radius:8px;box-sizing:border-box;color:#f5eed4}
.poker-seat.is-acting{border-color:#f6d07c;box-shadow:0 0 0 2px #f6d07c55,0 0 14px #f6d07c55}.poker-seat.is-folded{opacity:.62}
.poker-portrait{display:block;overflow:hidden;width:36px;height:46px;align-self:start}.poker-portrait .portrait{display:block;width:36px;height:48px;margin:0;border:0;border-radius:0}
.poker-seat-copy{min-width:0;display:grid;gap:3px;font-size:11px;line-height:1.35}.poker-seat-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#ffe3a2}.poker-seat-copy>span{font-size:11px;color:#f3e9c8}.poker-seat-action{display:block;font-size:10px;color:#bed0bb}.poker-dealer{display:inline-grid;place-items:center;width:15px;height:15px;border-radius:50%;color:#173b3b;background:#f5dfaa;font:10px Arial}
.poker-opponent-cards{grid-column:1/-1;gap:3px}.poker-card.is-small{width:25px}.poker-opponent-cards.is-revealed{animation:poker-show-hand .35s ease-out both}
.poker-hand-rank{grid-column:1/-1;text-align:center;font-size:10px;color:#ffe3a2;}
.has-result .poker-seat.is-winner{animation:poker-winner .7s ease-out both;}
.poker-footer{flex:none;padding:10px 16px max(10px,env(safe-area-inset-bottom));border-block-start:1px solid #8a855e;background:#13383a;display:grid;gap:10px;z-index:3;box-shadow:0 -5px 16px #041e2355}
.poker-own{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;font-size:12px;color:#e7d5a0}.poker-own-stack{text-align:end;overflow-wrap:anywhere}.poker-own .poker-card{width:49px}.poker-hole{min-height:45px}
.poker-actions{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px}.poker-actions>button{flex:1;min-width:0;min-height:48px;padding:8px;font-size:14px}.poker-actions>[data-poker-action=fold]{background:#573b3c;border-color:#a07565;color:#ffe3ce}.poker-result-copy{font-size:14px;color:#ffe3a2;text-align:center}
.poker-guide{padding:16px 20px;width:100%;box-sizing:border-box;line-height:1.7;font-size:14px;user-select:text;-webkit-user-select:text}.poker-guide h3{color:#f1ce81;margin:10px 0}.poker-guide>ol{padding-inline-start:24px}.poker-guide>ol>li{margin-block:10px}.poker-rankings{list-style-position:inside;padding:0!important}.poker-rankings>li{display:flex;gap:12px;align-items:center;justify-content:space-between;border-block-end:1px solid #43675b;padding-block:10px;font-size:13px}.poker-example{flex:none;gap:3px}.poker-example .poker-card{width:30px;animation:none}
@keyframes poker-deal-in{from{opacity:0;transform:translateY(-16px) rotate(-6deg)}to{opacity:1;transform:none}}
@keyframes poker-show-hand{from{opacity:0;transform:scaleX(.15)}to{opacity:1;transform:scaleX(1)}}
@keyframes poker-winner{to{border-color:#ffe39a;box-shadow:0 0 0 2px #e8c96e88,0 0 20px #e8c96e88}}
.poker-quiet *{animation:none!important}
@media(max-width:760px){
 #poker-details{position:fixed;inset:0;margin:0;width:100%;height:100dvh;max-height:none;border:0;border-radius:0;padding-block-start:env(safe-area-inset-top);overscroll-behavior:contain}
 #poker-details .popup-header{min-height:58px;padding:6px 10px;gap:8px}#poker-details .popup-header h2{font-size:17px}#poker-details .poker-help{font-size:11px;max-width:125px;min-height:44px;padding:6px 8px}#poker-details .popup-close{width:44px;height:44px;min-height:44px}
 .poker-status{padding:6px 12px;font-size:12px;min-height:34px}.poker-table{min-height:440px;background-image:url('/assets/casino/table-portrait.png')}
 .poker-community{width:96%;top:48%;gap:8px}.poker-street{font-size:10px}.poker-card,.poker-card-slot{width:clamp(48px,15vw,64px)}.poker-board{gap:4px}.poker-pot{font-size:12px;padding:4px 8px}
 .poker-seat{left:var(--seat-x-mobile,var(--seat-x));top:var(--seat-y-mobile,var(--seat-y));width:min(104px,28vw);grid-template-columns:29px minmax(0,1fr);padding:4px;gap:3px 4px;border-radius:6px}.poker-portrait{width:29px;height:38px}.poker-portrait .portrait{width:29px;height:39px}.poker-seat-copy,.poker-seat-copy>span{font-size:10px}.poker-seat-action{font-size:9px}.poker-opponent-cards .poker-card{width:28px}.poker-opponent-cards{gap:2px}.poker-hand-rank{font-size:9px}.poker-seat.is-own .poker-portrait{display:none}.poker-seat.is-own{display:block;text-align:center;width:112px}.poker-seat.is-own .poker-seat-action{display:none}
 .poker-footer{padding:7px 10px max(8px,env(safe-area-inset-bottom));gap:6px}.poker-own{gap:6px;font-size:11px}.poker-own .poker-card{width:64px}.poker-actions{gap:6px}.poker-actions>button{font-size:12px;min-height:48px;padding:6px 4px}.poker-guide{padding:12px;font-size:13px}.poker-rankings>li{gap:6px;font-size:12px}.poker-example .poker-card{width:25px}
}
@media(max-width:760px) and (max-height:650px){.poker-opponent-cards{display:none}.poker-own .poker-card{width:56px}.poker-table{min-height:440px}.poker-seat{padding:3px}.poker-footer{gap:4px}.poker-status{min-height:30px}}
@media(prefers-reduced-motion:reduce){#poker-details *,#poker-details *::before{animation:none!important;transition:none!important}.poker-seat.is-winner{border-color:#ffe39a}}

@media(max-width:760px) and (max-height:650px){.has-result .poker-opponent-cards{display:flex}.has-result .poker-opponent-cards .poker-card{width:28px}}

.poker-seat.is-winner{border-color:#ffe39a}

/* The center temporarily composes the exact best five, then sends each card home. */
.poker-comparison{position:absolute;z-index:4;left:50%;top:48%;transform:translate(-50%,-50%);width:96%;display:grid;justify-items:center;gap:10px;pointer-events:none}
.poker-comparison-title{display:grid;gap:4px;text-align:center;max-width:100%;padding:6px 14px;background:#092c2de8;border:1px solid #d5b676;border-radius:6px;color:#ffe4a6;font-size:16px;line-height:1.35}
.poker-comparison-title bdi{overflow-wrap:anywhere}.poker-comparison-title span{font-size:14px;color:#fff2d3}
.poker-best-five{position:relative;display:flex;gap:5px;justify-content:center;align-items:center}
.poker-flight{position:relative;display:block;flex:none;width:54px;aspect-ratio:50/72;animation:poker-card-compare 3s ease-in-out both;animation-delay:var(--show-elapsed,0ms);transform-origin:center}
.poker-flight>.poker-card{width:100%;animation:none!important}.poker-flight.is-hole-card>.poker-card{outline:2px solid #ffdf80;outline-offset:3px;border-radius:3px}
.poker-comparison>small{color:#e9d29b;font-size:11px;background:#092c2de8;padding:4px 8px;border-radius:4px}
.is-comparing .poker-community .poker-board{opacity:.12}.is-comparing .poker-street{visibility:hidden}.is-comparing .poker-pot{transform:translateY(34px)}
.poker-seat.is-comparing-seat{border-color:#f6d07c;box-shadow:0 0 12px #f6d07c66}
@keyframes poker-card-compare{0%,5%{opacity:.35;transform:translate(var(--fly-x,0px),var(--fly-y,0px)) scale(var(--fly-scale,1))}22%,76%{opacity:1;transform:none}96%,100%{opacity:0;transform:translate(var(--fly-x,0px),var(--fly-y,0px)) scale(var(--fly-scale,1))}}
@media(max-width:760px){.poker-flight{width:clamp(48px,15vw,64px)}.poker-best-five{gap:4px}.poker-comparison-title{font-size:14px;max-width:90%;padding:5px 10px}.poker-comparison-title span{font-size:13px}.poker-seats-6{min-height:480px}.poker-own .poker-hole{gap:5px}.poker-seat.is-own{max-width:35vw}.poker-own .poker-card{flex-shrink:0}}
@media(prefers-reduced-motion:reduce){.poker-flight{animation:none!important}.poker-comparison{display:none}}
.poker-result-list{width:100%;box-sizing:border-box;padding:14px 18px;overflow-wrap:anywhere}.poker-result-list h3{color:#f5d28a}.poker-result-list article{padding-block:12px;border-block-end:1px solid #557565}.poker-result-list h4{margin:0 0 12px;display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap;color:#f5d28a}.poker-result-list h4 span{color:#e4ddc3}.poker-result-list .poker-card{animation:none!important}.poker-result-list .poker-best-five{justify-content:start}.poker-actions:has([data-poker-tab=results]){flex-wrap:wrap}.poker-actions [data-poker-tab=results]{flex:0 1 auto}
@media(max-width:760px){.poker-result-list{padding:12px}.poker-result-list .poker-card{width:clamp(46px,14.5vw,60px)}}
.is-comparing .poker-pot{transform:translateY(64px)}
.poker-result-player{display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}.poker-result-player>bdi{overflow-wrap:anywhere}.poker-result-list h4 .poker-result-award{font-size:12px;font-weight:normal;color:#b9ccbd;white-space:nowrap}.poker-result-list h4 .poker-result-award.is-paid{color:#ffe3a2;background:#355647;border:1px solid #8d9964;border-radius:5px;padding:3px 7px}

/* Desktop cards are never smaller than their phone counterparts. */
@media(min-width:761px){
 #poker-details{width:min(1080px,calc(100vw - 32px));height:min(900px,94dvh)}
 #poker-details .poker-body.is-table{overflow:hidden}
 .poker-table{min-height:0}
 .poker-card,.poker-card-slot,.poker-flight,.poker-own .poker-card,.poker-result-list .poker-card{width:clamp(64px,7vw,80px)}
 .poker-flight>.poker-card{width:100%}
 .poker-seat{top:clamp(72px,var(--seat-y),calc(100% - 36px));width:142px}
 .poker-opponent-cards .poker-card{width:clamp(32px,3.4vw,40px)}
 .poker-example .poker-card{width:36px}
}
@media(min-width:761px){
 .poker-footer:has(.poker-own){grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;column-gap:20px}
 .poker-own{display:contents}
 .poker-hole{grid-column:2;grid-row:1}
 .poker-own>span:first-child{grid-column:1;grid-row:1;align-self:start;text-align:center;font-size:12px;color:#e7d5a0}
 .poker-own-stack{grid-column:3;grid-row:1;align-self:center;text-align:center;font-size:12px;color:#e7d5a0}
 .poker-footer:has(.poker-own) .poker-actions{grid-column:1;grid-row:1;align-self:end;flex-wrap:wrap;padding-block-start:24px}
}
@media(min-width:761px) and (max-height:700px){
 .poker-card,.poker-card-slot,.poker-flight,.poker-own .poker-card,.poker-result-list .poker-card{width:64px}
 .poker-flight>.poker-card{width:100%}
 .poker-opponent-cards .poker-card{width:32px}
 .poker-example .poker-card{width:32px}
 .poker-seat{top:clamp(56px,var(--seat-y),calc(100% - 32px));grid-template-columns:24px minmax(0,1fr)}
 .poker-portrait{width:24px;height:32px}.poker-portrait .portrait{width:24px;height:32px}
 .poker-seat-action{display:none}.poker-community{top:52%}
}
