/* POKERANDO V21 — non duplicare il proprio avatar al tavolo:
   il posto resta sul server e rimane visibile a tutti gli altri giocatori,
   ma il titolare ha gia' la propria area carte sotto il tappeto. */
#game .table-shell #seats .seat.me,
body.pkr-red-v10 #game .table-shell #seats .seat.me {display:none!important}

@media screen and (max-width:760px) and (orientation:portrait){
  /* Tre corsie verticali separate: piatto 20%, board 53%, avversari 93%. */
  body.pkr-red-v10 #game .table-shell .pot-chips,
  #game .table-shell .pot-chips {top:7%!important;left:50%!important;transform:translateX(-50%) scale(.48)!important;z-index:28!important}
  body.pkr-red-v10 #game .table-shell .pot-panel,
  #game .table-shell .pot-panel {
    top:23%!important;left:50%!important;transform:translate(-50%,-50%)!important;
    z-index:36!important;min-width:108px!important;max-width:142px!important;
    padding:5px 12px!important;box-sizing:border-box!important;
  }
  body.pkr-red-v10 #game .table-shell .pot-panel strong,
  #game .table-shell .pot-panel strong {font-size:23px!important}
  body.pkr-red-v10 #game .table-shell .phase-label,
  #game .table-shell .phase-label {top:36%!important;left:50%!important;z-index:26!important}
  body.pkr-red-v10 #game .table-shell #community,
  #game .table-shell #community {
    top:54%!important;left:50%!important;transform:translate(-50%,-50%)!important;
    z-index:23!important;width:96%!important;gap:2px!important;
  }
  body.pkr-red-v10 #game .table-shell #community .poker-card,
  #game .table-shell #community .poker-card {
    width:clamp(42px,16vw,62px)!important;
    height:clamp(62px,22.2vw,87px)!important;
    flex:0 0 clamp(42px,16vw,62px)!important;
    min-width:0!important;
  }
  /* Etichette senza collisioni: anello interno dedicato ai giocatori. */
  body.pkr-red-v10 #game .table-shell #seats .seat1,
  #game .table-shell #seats .seat1 {left:23%!important;top:93%!important}
  body.pkr-red-v10 #game .table-shell #seats .seat0,
  #game .table-shell #seats .seat0 {left:50%!important;top:93%!important}
  body.pkr-red-v10 #game .table-shell #seats .seat8,
  #game .table-shell #seats .seat8 {left:77%!important;top:93%!important}
  body.pkr-red-v10 #game .table-shell #seats .seat2,
  #game .table-shell #seats .seat2 {left:14%!important;top:75%!important}
  body.pkr-red-v10 #game .table-shell #seats .seat7,
  #game .table-shell #seats .seat7 {left:86%!important;top:75%!important}
  body.pkr-red-v10 #game .table-shell #seats .seat3,
  #game .table-shell #seats .seat3 {left:14%!important;top:36%!important}
  body.pkr-red-v10 #game .table-shell #seats .seat6,
  #game .table-shell #seats .seat6 {left:86%!important;top:36%!important}
  body.pkr-red-v10 #game .table-shell #seats .seat4,
  #game .table-shell #seats .seat4 {left:22%!important;top:13%!important}
  body.pkr-red-v10 #game .table-shell #seats .seat5,
  #game .table-shell #seats .seat5 {left:78%!important;top:13%!important}
  /* Tutte le carte dei posti bassi sono SOPRA le rispettive etichette,
     nella corsia 72-84% (mai dentro le carte comuni). */
  body.pkr-red-v10 #game .table-shell #seats .seat0 .seat-mini,
  body.pkr-red-v10 #game .table-shell #seats .seat1 .seat-mini,
  body.pkr-red-v10 #game .table-shell #seats .seat8 .seat-mini,
  #game .table-shell #seats .seat0 .seat-mini,
  #game .table-shell #seats .seat1 .seat-mini,
  #game .table-shell #seats .seat8 .seat-mini {
    left:50%!important;right:auto!important;top:auto!important;
    bottom:calc(100% + 3px)!important;transform:translateX(-50%)!important;
  }
  /* Anello laterale: due carte sempre verso il bordo, mai dentro il board. */
  body.pkr-red-v10 #game .table-shell #seats .seat2 .seat-mini,
  body.pkr-red-v10 #game .table-shell #seats .seat3 .seat-mini,
  #game .table-shell #seats .seat2 .seat-mini,
  #game .table-shell #seats .seat3 .seat-mini {
    left:calc(100% + 2px)!important;right:auto!important;top:50%!important;bottom:auto!important;
    transform:translateY(-50%)!important;
  }
  body.pkr-red-v10 #game .table-shell #seats .seat6 .seat-mini,
  body.pkr-red-v10 #game .table-shell #seats .seat7 .seat-mini,
  #game .table-shell #seats .seat6 .seat-mini,
  #game .table-shell #seats .seat7 .seat-mini {
    right:calc(100% + 2px)!important;left:auto!important;top:50%!important;bottom:auto!important;
    transform:translateY(-50%)!important;
  }
  body.pkr-red-v10 #game .table-shell #seats .seat4 .seat-mini,
  body.pkr-red-v10 #game .table-shell #seats .seat5 .seat-mini,
  #game .table-shell #seats .seat4 .seat-mini,
  #game .table-shell #seats .seat5 .seat-mini {
    left:50%!important;right:auto!important;top:calc(100% + 3px)!important;bottom:auto!important;
    transform:translateX(-50%)!important;
  }
  /* Carte degli avversari leggibili ma compatibili con lo spazio del tavolo. */
  body.pkr-red-v10 #game .table-shell #seats .seat:not(.me) .seat-mini,
  #game .table-shell #seats .seat:not(.me) .seat-mini {gap:3px!important;max-width:none!important;width:max-content!important;z-index:33!important}
  body.pkr-red-v10 #game .table-shell #seats .seat:not(.me) .seat-mini > .poker-card,
  body.pkr-red-v10 #game .table-shell #seats .seat.showdown-seat:not(.me) .seat-mini > .poker-card:not(.empty),
  #game .table-shell #seats .seat:not(.me) .seat-mini > .poker-card {
    width:clamp(28px,8.4vw,34px)!important;height:clamp(40px,12vw,48px)!important;
    min-width:clamp(28px,8.4vw,34px)!important;max-width:none!important;
    min-height:clamp(40px,12vw,48px)!important;max-height:none!important;
    flex:0 0 clamp(28px,8.4vw,34px)!important;
    border-radius:5px!important;box-shadow:0 3px 8px #0009!important;
  }
  /* I due profili inferiori non si spingono sopra il board per effetto della V20. */
  body.pkr-red-v10 #game .table-shell #seats .seat:not(.me):not(.empty){z-index:29!important}
  body.pkr-red-v10 #game .table-shell #seats .seat:not(.me):not(.empty) .seat-mini{z-index:33!important}
}
@media screen and (max-width:760px) and (orientation:portrait) and (max-height:650px){
  /* Su schermi bassi si usa il medesimo layout, riducendo solo la zona board. */
  body.pkr-red-v10 #game .table-shell #community .poker-card,
  #game .table-shell #community .poker-card{height:clamp(55px,19vw,72px)!important}
  body.pkr-red-v10 #game .table-shell .pot-panel,
  #game .table-shell .pot-panel {top:20%!important;padding:3px 9px!important}
}
/* Altezza utile ridotta da Safari/WhatsApp: le targhette non finiscono sotto il bordo. */
@media screen and (max-width:760px) and (orientation:portrait) and (max-height:650px){
  body.pkr-red-v10 #game .table-shell #seats .seat0,
  body.pkr-red-v10 #game .table-shell #seats .seat1,
  body.pkr-red-v10 #game .table-shell #seats .seat8,
  #game .table-shell #seats .seat0,
  #game .table-shell #seats .seat1,
  #game .table-shell #seats .seat8 {top:89%!important}
}
