/* POKERANDO iPhone FIX V19 (23/10/2026)
   Corregge la collisione del piatto con le carte comuni in presenza di flop/turn/river.
   Solo layout mobile; nessuna modifica al gameplay o alle fiches. */
@media screen and (max-width:760px) and (orientation:portrait) {
  /* 1. Una corsia per ogni elemento: fiches (alto), piatto, fase, board. */
  #game .table-shell .pot-chips,
  body.pkr-red-v10 #game .table-shell .pot-chips {
    top:11%!important;
    left:50%!important;
    z-index:38!important;
    transform:translateX(-50%) scale(.58)!important;
    transform-origin:top center!important;
    pointer-events:none!important;
  }
  #game .table-shell .pot-panel,
  body.pkr-red-v10 #game .table-shell .pot-panel {
    top:26%!important;
    left:50%!important;
    transform:translate(-50%,-50%)!important;
    z-index:40!important;
    pointer-events:none!important;
  }
  #game .table-shell .phase-label,
  body.pkr-red-v10 #game .table-shell .phase-label {
    top:36%!important;
    left:50%!important;
    transform:translateX(-50%)!important;
    z-index:31!important;
    max-width:94%!important;
    box-sizing:border-box!important;
    white-space:nowrap!important;
    pointer-events:none!important;
  }
  #game .table-shell #community,
  body.pkr-red-v10 #game .table-shell #community {
    top:56%!important;
    z-index:23!important;
    transform:translate(-50%,-50%)!important;
  }
  /* Un eventuale effetto delle carte non deve coprire il numero del piatto. */
  #game .table-shell #community .poker-card,
  body.pkr-red-v10 #game .table-shell #community .poker-card {z-index:1!important}
}
/* Telefoni stretti o schermi molto bassi: più spazio alle cinque carte, senza
   far sparire il piatto e senza sovrapporlo al flop. */
@media screen and (max-width:760px) and (orientation:portrait) and (max-height:680px) {
  #game .table-shell .pot-chips,
  body.pkr-red-v10 #game .table-shell .pot-chips {top:7%!important;transform:translateX(-50%) scale(.43)!important}
  #game .table-shell .pot-panel,
  body.pkr-red-v10 #game .table-shell .pot-panel {top:22%!important;padding:4px 10px!important;min-width:105px!important}
  #game .table-shell .pot-panel strong,
  body.pkr-red-v10 #game .table-shell .pot-panel strong {font-size:21px!important}
  #game .table-shell .phase-label,
  body.pkr-red-v10 #game .table-shell .phase-label {top:36%!important;font-size:8px!important}
  #game .table-shell #community,
  body.pkr-red-v10 #game .table-shell #community {top:58%!important}
}
