/* POKERANDO V8 — compact table and active-player light. Loaded last.
   This file changes layout only. It does not control hands, bets, or balances. */
#game .table-column{min-width:0}
#game .table-outer{box-sizing:border-box!important;position:relative!important;max-width:100%!important;min-width:0!important;isolation:isolate;}
#game .table-shell{position:relative!important;isolation:isolate;overflow:hidden!important;}
#game .table-shell #seats{position:absolute!important;inset:0!important;pointer-events:none!important;z-index:7!important;}
#game .table-shell #seats .seat{pointer-events:auto!important;}
/* Draw beam above felt, underneath cards and players. */
#game .table-shell .pkr-turn-spotlight{position:absolute;inset:0;pointer-events:none;z-index:2;overflow:hidden;border-radius:inherit;opacity:1;transition:opacity .3s ease;--pkr-x:50%;--pkr-y:75%;}
#game .table-shell .pkr-turn-spotlight.is-off{opacity:0;}
#game .pkr-turn-spotlight .pkr-turn-beam{position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,225,.27) 0%,rgba(255,230,145,.14) 43%,rgba(251,202,66,.10) 100%);clip-path:polygon(49% 0%,51% 0%,calc(var(--pkr-x) + 13%) var(--pkr-y),calc(var(--pkr-x) - 13%) var(--pkr-y));mix-blend-mode:screen;filter:blur(5px);opacity:.85;}
#game .pkr-turn-spotlight .pkr-turn-pool{position:absolute;width:31%;height:25%;left:var(--pkr-x);top:var(--pkr-y);transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(ellipse,rgba(255,247,165,.28) 0%,rgba(248,207,89,.15) 35%,transparent 70%);box-shadow:0 0 28px 12px rgba(255,219,96,.10);transition:left .27s ease,top .27s ease;}
#game .table-shell #seats .seat.turn:not(.empty){border-color:#ffe49d!important;box-shadow:0 0 0 2px rgba(255,219,97,.9),0 0 26px 6px rgba(255,220,105,.55),0 5px 14px #00170c!important;filter:brightness(1.14)!important;animation:none!important;z-index:15!important;}
#game .table-shell #seats .seat.turn:not(.empty)::before{content:'● TURNO';position:absolute;bottom:calc(100% + 4px);left:50%;transform:translateX(-50%);background:#f8d476;color:#172519;border:1px solid #fff4c5;box-shadow:0 0 14px #ffeb8a88;border-radius:30px;padding:2px 8px;white-space:nowrap;font:900 10px/1.1 system-ui,sans-serif;z-index:18;}
#game .seat:not(.empty) .seatname{color:#fff9e7!important;text-shadow:0 1px 2px #00150c;font-weight:900!important}
#game .seat:not(.empty) .stack{color:#c8ffe4!important;font-weight:900!important}
/* Desktop/tablet: table and betting controls remain visible without enormous oval. */
@media screen and (min-width:761px){
 body.poker-compact-v8 .wrap{max-width:1240px!important;padding:7px 12px 22px!important;}
 body.poker-compact-v8 .top-head{min-height:38px!important;margin:0 0 4px!important;gap:8px!important;}
 body.poker-compact-v8 .head-brand h1{font-size:clamp(19px,2.25vw,29px)!important;line-height:1.1!important;}
 body.poker-compact-v8 .brand-emblem{font-size:30px!important;}
 body.poker-compact-v8 .header-actions{gap:5px!important;}
 body.poker-compact-v8 .game-meta{height:23px!important;min-height:0!important;padding:2px 10px!important;margin-bottom:5px!important;font-size:11px!important;}
 body.poker-compact-v8 #game .layout{display:block!important;}
 body.poker-compact-v8 #game .table-column{width:100%!important;max-width:1050px!important;margin:0 auto!important;position:relative!important;}
 body.poker-compact-v8 #game .casino-room{height:100px!important;opacity:.16!important;}
 body.poker-compact-v8 #game .table-outer{margin:42px auto 9px!important;width:100%!important;height:auto!important;padding:8px!important;border-radius:49%/39%!important;box-shadow:0 4px 0 #4d321b,0 10px 0 #24170e,0 14px 19px #000a!important;}
 body.poker-compact-v8 #game .table-shell{height:clamp(335px,49vh,490px)!important;min-height:335px!important;border-width:5px!important;border-radius:48%/38%!important;}
 body.poker-compact-v8 #game .vip-croupier{width:clamp(110px,12vw,155px)!important;top:-76px!important;}
 body.poker-compact-v8 #game .seat{width:clamp(92px,11vw,123px)!important;min-height:43px!important;padding:3px 5px!important;border-radius:11px!important;}
 body.poker-compact-v8 #game .seat.empty{min-height:32px!important;width:clamp(75px,8vw,95px)!important;}
 body.poker-compact-v8 #game .seat:not(.empty) .seatname{font-size:clamp(11px,1.2vw,14px)!important;}
 body.poker-compact-v8 #game .seat:not(.empty) .stack{font-size:clamp(10px,1vw,12px)!important;}
 body.poker-compact-v8 #game #community{top:43%!important;}
 body.poker-compact-v8 #game #community .poker-card{width:clamp(51px,6vw,82px)!important;height:clamp(74px,8.2vw,114px)!important;}
 body.poker-compact-v8 #game .pot-panel{top:60%!important;padding:4px 12px!important;}
 body.poker-compact-v8 #game .pot-chips{top:67%!important;transform:translateX(-50%) scale(.75)!important;transform-origin:top center!important;}
 body.poker-compact-v8 #game .felt-logo{opacity:.09!important;}
 body.poker-compact-v8 #game .phase-label{top:27%!important;}
 body.poker-compact-v8 #game .my-hand{margin:7px auto 3px!important;padding:5px 10px!important;max-width:410px!important;gap:9px!important;}
 body.poker-compact-v8 #game .my-hand .poker-card{width:56px!important;height:78px!important;}
 body.poker-compact-v8 #game .notice{min-height:26px!important;margin:5px auto!important;padding:4px!important;font-size:12px!important;}
 body.poker-compact-v8 #game .actions{gap:5px!important;margin:2px auto 0!important;padding:3px!important;}
 body.poker-compact-v8 #game .actions button{min-height:37px!important;padding:7px 12px!important;}
 body.poker-compact-v8 #game .dealer-caption, body.poker-compact-v8 #game .legend{display:none!important;}
 body.poker-compact-v8 #sidePanel{display:none!important;}
 body.poker-compact-v8 #sidePanel.side-open{display:block!important;position:fixed!important;right:0!important;top:0!important;bottom:0!important;width:min(360px,90vw)!important;max-height:100dvh!important;overflow:auto!important;z-index:1000!important;background:#061912!important;padding:12px!important;}
}
/* Mobile: keep the working one-screen layout from V5; refine contrast and turn light. */
@media screen and (max-width:760px){
 body.poker-compact-v8 #game .table-outer{width:100%!important;min-width:0!important;}
 body.poker-compact-v8 #game .table-shell{width:100%!important;min-height:0!important;}
 body.poker-compact-v8 #game .table-shell #community{top:44%!important;}
 body.poker-compact-v8 #game .table-shell #community .poker-card{width:min(17.5vw,64px)!important;height:min(25vw,91px)!important;}
 body.poker-compact-v8 #game .table-shell #seats .seat.turn:not(.empty)::before{font-size:8px!important;padding:2px 5px!important;bottom:calc(100% + 2px)!important;}
 body.poker-compact-v8 #game .seat:not(.empty) .stack{font-size:10px!important;}
 body.poker-compact-v8 #game .table-shell #pot{z-index:8!important;}
 body.poker-compact-v8 #game .my-hand .poker-card{width:clamp(40px,11.5vw,52px)!important;height:clamp(55px,16vw,72px)!important;}
 body.poker-compact-v8 #game .actions{position:relative!important;z-index:40!important;}
 body.poker-compact-v8 #game .pkr-turn-spotlight .pkr-turn-pool{width:48%;height:21%;}
}
@media (prefers-reduced-motion:reduce){#game .pkr-turn-spotlight .pkr-turn-pool{transition:none!important}}

@media screen and (min-width:761px){
 body.poker-compact-v8 #game .table-shell #seats .seat:not(.empty){padding:5px 5px 5px 36px!important;text-align:left!important;}
 body.poker-compact-v8 #game .table-shell #seats .seat:not(.empty) .seatname{display:block!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;line-height:1.1!important;}
 body.poker-compact-v8 #game .table-shell #seats .seat:not(.empty) .stack{display:block!important;max-width:100%!important;overflow:visible!important;white-space:nowrap!important;line-height:1.1!important;}
 body.poker-compact-v8 #game .table-shell #seats .seat .avatar{left:5px!important;top:50%!important;transform:translateY(-50%)!important;width:25px!important;height:25px!important;}
 body.poker-compact-v8 #game .deal-deck{display:none!important;}
 body.poker-compact-v8 #game .phase-label{top:23%!important;}
}
@media screen and (max-width:760px){
 body.poker-compact-v8 #game .deal-deck{display:none!important;}
 body.poker-compact-v8 #game .phase-label{top:31%!important;}
}
