/* Pokerando Premium V24: UI live 9 posti, ruotato per il giocatore in sessione.
   Sovrascrive solo presentazione. Regole e saldo restano sul server PHP. */
body.pkr24-premium #game .pkr24-hud{
  position:relative;z-index:2;display:flex;align-items:center;justify-content:center;
  flex-wrap:wrap;gap:8px;padding:7px 9px;margin:5px auto 8px;
  width:min(100%,1100px);box-sizing:border-box;
  border:1px solid #b8915699;border-radius:13px;
  background:linear-gradient(110deg,#090e13,#182019,#0b1015);
  color:#ffeac0;font:800 12px/1.3 system-ui,-apple-system,sans-serif;
  box-shadow:0 4px 18px #0008;
}
body.pkr24-premium #game .pkr24-hud>span{padding:4px 9px;border-radius:20px;background:#111b1ab5;white-space:nowrap}
body.pkr24-premium #game .pkr24-hud #pkr24Turn{color:#fcda8b}
body.pkr24-premium #game .pkr24-hud #pkr24Turn.pkr24-its-you{color:#fff;background:#126e47;box-shadow:0 0 13px #3df1a777}
body.pkr24-premium #game .table-shell{isolation:isolate!important}
body.pkr24-premium #game .table-shell .pot-panel{z-index:19!important;pointer-events:none!important}
body.pkr24-premium #game .table-shell .pot-chips{z-index:18!important;pointer-events:none!important}
body.pkr24-premium #game .table-shell #community{z-index:16!important;pointer-events:none!important}
body.pkr24-premium #game .table-shell #seats{z-index:25!important;pointer-events:none!important}
body.pkr24-premium #game .table-shell #seats .seat{pointer-events:auto!important}
/* Colori premium solo quando si sceglie il tema verde, senza perdere il controllo dei temi admin. */
body.pkr24-premium.pkr-theme-green #game .table-shell{
  background:radial-gradient(ellipse at 50% 45%,#158b5a,#067348 60%,#034a34)!important;
  border:4px solid #ad8652!important;
  box-shadow:inset 0 0 0 4px #e2c18b,inset 0 0 44px #001b16a8,0 4px 8px #000c!important;
}
body.pkr24-premium #game .table-shell #seats .seat:not(.empty),
body.pkr24-premium.pkr-red-v10 #game .table-shell #seats .seat:not(.empty){
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  box-sizing:border-box!important;min-height:45px!important;
  padding:5px 6px!important;margin:0!important;
  border-radius:12px!important;border:1px solid #c69a66!important;
  background:linear-gradient(180deg,#212020f5,#050a0ef7)!important;
  box-shadow:inset 0 1px 0 #ffffff39,0 4px 12px #000d!important;
  text-align:center!important;transform:translate(-50%,-50%)!important;
  opacity:1!important;overflow:visible!important;
}
/* Il proprio posto torna visibile: è il centro prospettico, non una copia server. */
body.pkr24-premium #game .table-shell #seats .seat.me,
body.pkr24-premium.pkr-red-v10 #game .table-shell #seats .seat.me{
 display:flex!important;border:2px solid #f7d478!important;
 box-shadow:0 0 0 3px #ffd66a68,0 0 22px #d9a94aa5,0 6px 14px #000b!important;
}
body.pkr24-premium #game .table-shell #seats .seat.turn,
body.pkr24-premium #game .table-shell #seats .seat.pkr24-active{
 border:2px solid #fce9a1!important;
 box-shadow:0 0 0 2px #eaca65a0,0 0 22px #f9e0a6b3,0 4px 12px #000b!important;
 animation:none!important;
}
body.pkr24-premium #game .table-shell #seats .seat:not(.empty) .avatar,
body.pkr24-premium.pkr-red-v10 #game .table-shell #seats .seat:not(.empty) .avatar{
 position:absolute!important;left:50%!important;right:auto!important;top:-39px!important;
 transform:translateX(-50%)!important;
 width:38px!important;height:38px!important;border:2px solid #d7ae70!important;border-radius:50%!important;
 background:#1e2125!important;z-index:-1!important;overflow:hidden!important;
 box-shadow:0 2px 8px #0009!important;
}
body.pkr24-premium #game .table-shell #seats .seat .seatname,
body.pkr24-premium.pkr-red-v10 #game .table-shell #seats .seat .seatname{
 display:block!important;width:100%!important;max-width:100%!important;font-size:12px!important;
 line-height:1.1!important;white-space:nowrap!important;text-align:center!important;
 color:#fffdf1!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
body.pkr24-premium #game .table-shell #seats .seat .stack,
body.pkr24-premium.pkr-red-v10 #game .table-shell #seats .seat .stack{
 width:100%!important;max-width:100%!important;font-size:12px!important;
 line-height:1.15!important;color:#fff4d8!important;text-align:center!important;
 white-space:nowrap!important;overflow:hidden!important;
}
body.pkr24-premium #game .table-shell #seats .seat .stack small{display:none!important}
body.pkr24-premium #game .table-shell #seats .seat .dealer-mark{
 position:absolute!important;right:-8px!important;top:-16px!important;margin:0!important;
 min-width:19px!important;height:19px!important;display:grid!important;place-items:center!important;
 border-radius:50%!important;border:1px solid #8a5c21!important;background:#ffdd86!important;
 color:#1e1608!important;font:900 12px/1 system-ui!important;z-index:35!important;
 box-shadow:0 2px 7px #000a!important;
}
body.pkr24-premium #game .table-shell #seats .seat .seat-mini,
body.pkr24-premium.pkr-red-v10 #game .table-shell #seats .seat .seat-mini{
 position:absolute!important;left:50%!important;right:auto!important;top:auto!important;
 bottom:calc(100% + 2px)!important;transform:translateX(-50%)!important;
 display:flex!important;flex-flow:row nowrap!important;justify-content:center!important;
 width:max-content!important;height:auto!important;min-width:0!important;max-width:none!important;
 gap:3px!important;margin:0!important;z-index:28!important;
 overflow:visible!important;filter:drop-shadow(0 3px 5px #000b)!important;
}
body.pkr24-premium #game .table-shell #seats .seat .seat-mini>.poker-card,
body.pkr24-premium.pkr-red-v10 #game .table-shell #seats .seat .seat-mini>.poker-card,
body.pkr24-premium.pkr-red-v10 #game .table-shell #seats .seat.showdown-seat:not(.me) .seat-mini>.poker-card:not(.empty){
 flex:0 0 36px!important;width:36px!important;min-width:36px!important;
 height:52px!important;min-height:52px!important;border-radius:5px!important;
 box-shadow:0 3px 0 #b5aa8d,0 5px 9px #000b!important;
}
body.pkr24-premium #game .table-shell #seats .seat .seat-bet,
body.pkr24-premium.pkr-red-v10 #game .table-shell #seats .seat .seat-bet{
 position:absolute!important;left:50%!important;right:auto!important;top:calc(100% + 5px)!important;bottom:auto!important;
 transform:translateX(-50%)!important;display:flex!important;flex-direction:row!important;
 gap:4px!important;align-items:center!important;justify-content:center!important;
 background:#111a19e8!important;border:1px solid #a17d4bba!important;
 border-radius:24px!important;padding:2px 6px!important;max-width:none!important;
 white-space:nowrap!important;box-shadow:0 3px 9px #000c!important;z-index:22!important;
}
body.pkr24-premium #game .table-shell #seats .seat .seat-bet .chips3d{transform:scale(.45)!important;transform-origin:center center!important;width:20px!important;height:16px!important;overflow:visible!important}
body.pkr24-premium #game .table-shell #seats .seat .seat-bet strong{font:900 10px/1 system-ui!important;background:none!important;color:#ffe6a0!important;border:0!important;padding:0!important;box-shadow:none!important}
body.pkr24-premium #game .table-shell #seats .seat.me .seat-bet{display:none!important}
body.pkr24-premium #game .table-shell #seats .seat.empty{
 transform:translate(-50%,-50%)!important;opacity:.38!important;
 border-radius:12px!important;max-width:80px!important;
}
/* 9 posti fisici, ordinati in funzione del posto occupato dall'utente: centro basso = me. */
body.pkr24-premium #game .table-shell #seats .pkr24-pos0{left:50%!important;top:89%!important}
body.pkr24-premium #game .table-shell #seats .pkr24-pos1{left:23%!important;top:85%!important}
body.pkr24-premium #game .table-shell #seats .pkr24-pos2{left:11%!important;top:68%!important}
body.pkr24-premium #game .table-shell #seats .pkr24-pos3{left:11%!important;top:42%!important}
body.pkr24-premium #game .table-shell #seats .pkr24-pos4{left:25%!important;top:17%!important}
body.pkr24-premium #game .table-shell #seats .pkr24-pos5{left:75%!important;top:17%!important}
body.pkr24-premium #game .table-shell #seats .pkr24-pos6{left:89%!important;top:42%!important}
body.pkr24-premium #game .table-shell #seats .pkr24-pos7{left:89%!important;top:68%!important}
body.pkr24-premium #game .table-shell #seats .pkr24-pos8{left:77%!important;top:85%!important}
body.pkr24-premium #game .table-shell .pot-panel{top:30%!important;left:50%!important;transform:translate(-50%,-50%)!important}
body.pkr24-premium #game .table-shell .pot-chips{top:16%!important;left:50%!important;transform:translateX(-50%) scale(.68)!important}
body.pkr24-premium #game .table-shell #community{top:53%!important;left:50%!important;transform:translate(-50%,-50%)!important}
body.pkr24-premium #game .table-shell .phase-label{top:42%!important;left:50%!important;transform:translateX(-50%)!important;z-index:15!important}
body.pkr24-premium #game .my-hand{border:2px solid #be975a!important;background:linear-gradient(135deg,#06131d,#071923)!important;box-shadow:0 7px 18px #0009,inset 0 0 0 1px #123a54!important}
body.pkr24-premium #game .my-hand .hand-title{color:#f7ddab!important}
body.pkr24-premium #game .actions button:not(.hidden){border-radius:12px!important}
body.pkr24-premium #game .actions #call{background:linear-gradient(#22628b,#073253)!important;border-color:#83d8fc!important}
body.pkr24-premium #game .actions #raise{background:linear-gradient(#edbc6b,#a66b24)!important;border-color:#ffdc91!important;color:#201403!important}
@media screen and (min-width:761px){
 body.pkr24-premium #game .table-shell #seats .seat:not(.empty){width:clamp(92px,10vw,130px)!important}
 body.pkr24-premium #game .table-shell #community>.poker-card{max-height:103px!important}
}
@media screen and (max-width:760px){
 body.pkr24-premium #game .pkr24-hud{font-size:10px!important;gap:3px!important;margin:2px 0 4px!important;padding:4px!important;border-radius:9px!important}
 body.pkr24-premium #game .pkr24-hud>span{padding:2px 4px!important;font-size:9px!important}
 body.pkr24-premium #game .table-column .table-outer{height:clamp(700px,186vw,810px)!important;min-height:700px!important;max-height:none!important}
 body.pkr24-premium #game .table-shell #seats .seat:not(.empty),
 body.pkr24-premium.pkr-red-v10 #game .table-shell #seats .seat:not(.empty){
   width:clamp(64px,21vw,84px)!important;max-width:84px!important;
   min-height:33px!important;padding:3px 3px!important;border-radius:8px!important;
 }
 body.pkr24-premium #game .table-shell #seats .seat:not(.empty) .avatar,
 body.pkr24-premium.pkr-red-v10 #game .table-shell #seats .seat:not(.empty) .avatar{
  top:-29px!important;width:29px!important;height:29px!important;
 }
 body.pkr24-premium #game .table-shell #seats .seat .seatname,
 body.pkr24-premium.pkr-red-v10 #game .table-shell #seats .seat .seatname{font-size:10px!important}
 body.pkr24-premium #game .table-shell #seats .seat .stack,
 body.pkr24-premium.pkr-red-v10 #game .table-shell #seats .seat .stack{font-size:10px!important}
 body.pkr24-premium #game .table-shell #seats .seat .seat-mini>.poker-card,
 body.pkr24-premium.pkr-red-v10 #game .table-shell #seats .seat .seat-mini>.poker-card,
 body.pkr24-premium.pkr-red-v10 #game .table-shell #seats .seat.showdown-seat:not(.me) .seat-mini>.poker-card:not(.empty){
  flex:0 0 clamp(25px,8vw,33px)!important;width:clamp(25px,8vw,33px)!important;
  min-width:clamp(25px,8vw,33px)!important;height:clamp(36px,11.5vw,47px)!important;
  min-height:clamp(36px,11.5vw,47px)!important;border-radius:4px!important;
 }
 body.pkr24-premium #game .table-shell #seats .seat.empty{width:clamp(44px,14vw,63px)!important;max-width:63px!important;min-height:20px!important;padding:2px!important;font-size:8px!important}
 body.pkr24-premium #game .table-shell .pot-panel{top:32%!important;min-width:105px!important}
 body.pkr24-premium #game .table-shell .pot-chips{top:19%!important;transform:translateX(-50%) scale(.60)!important}
 body.pkr24-premium #game .table-shell #community{top:54%!important}
 body.pkr24-premium #game .table-shell #seats .seat .seat-bet{top:calc(100% + 3px)!important;padding:1px 4px!important;gap:1px!important}
 body.pkr24-premium #game .table-shell #seats .seat .seat-bet strong{font-size:9px!important}
 body.pkr24-premium #game #myHand .hero-cards .poker-card{width:clamp(56px,15vw,68px)!important;height:clamp(79px,21vw,96px)!important}
 body.pkr24-premium #game .actions{gap:5px!important}
}
@media screen and (max-width:350px){
 body.pkr24-premium #game .pkr24-hud{font-size:9px!important}
 body.pkr24-premium #game .table-column .table-outer{height:700px!important}
 body.pkr24-premium #game .table-shell #seats .seat:not(.empty){width:60px!important}
}

/* V24.2 – avatar leggibile e carte sempre all'interno del tavolo. */
body.pkr24-premium #game .table-shell #seats .seat:not(.empty) .avatar,
body.pkr24-premium.pkr-red-v10 #game .table-shell #seats .seat:not(.empty) .avatar{
  left:-9px!important;top:50%!important;right:auto!important;
  transform:translateY(-50%)!important;z-index:41!important;
  width:32px!important;height:32px!important;
}
body.pkr24-premium #game .table-shell #seats .seat:not(.empty) .seatname,
body.pkr24-premium #game .table-shell #seats .seat:not(.empty) .stack{padding-left:10px!important;box-sizing:border-box!important}
body.pkr24-premium #game .table-shell #seats .seat.pkr24-active::after{
  content:'● TURNO';position:absolute;top:-19px;right:0;z-index:42;
  font:900 9px/1 system-ui,sans-serif;white-space:nowrap;
  padding:3px 6px;border-radius:30px;background:#fee097;color:#162218;
  box-shadow:0 0 11px #ffe07d88;border:1px solid #4d3211;
}
/* Solo per iPhone la scheda principale cresce e la mano non viene compressa. */
@media screen and (max-width:760px){
 body.pkr24-premium #game .table-shell #seats .seat:not(.empty) .avatar,
 body.pkr24-premium.pkr-red-v10 #game .table-shell #seats .seat:not(.empty) .avatar{
  width:25px!important;height:25px!important;left:-6px!important;
 }
 body.pkr24-premium #game .table-shell #seats .seat.pkr24-active::after{font-size:8px;top:-17px;padding:2px 4px}
 body.pkr24-premium #game .table-shell #seats .pkr24-pos4{top:22%!important}
 body.pkr24-premium #game .table-shell #seats .pkr24-pos5{top:22%!important}
 body.pkr24-premium #game #myHand{height:auto!important;min-height:103px!important}
 body.pkr24-premium #game #myHand .hero-cards .poker-card{min-width:54px!important}
}
@media screen and (min-width:761px){
 body.pkr24-premium #game .table-shell #seats .pkr24-pos4{top:29%!important}
 body.pkr24-premium #game .table-shell #seats .pkr24-pos5{top:29%!important}
}
/* Leggibilita: carta dei posti laterali bassi distanziata dal board su iPhone. */
@media screen and (max-width:760px){
 body.pkr24-premium #game .table-shell #seats .pkr24-pos2{top:72%!important}
 body.pkr24-premium #game .table-shell #seats .pkr24-pos7{top:72%!important}
}
