.neonGame[data-game="poker"] .casinoSeatCards .casinoCard { zoom: 1.2; }
@media (max-width: 360px), (max-height: 660px) {
  .neonGame[data-game="poker"] .casinoSeatCards .casinoCard { zoom: 1.1; }
}

html body #app#app#app .neonGame[data-game="poker"]:has(.casinoOwnSeat) .neonSeat[data-seat-side="right"][data-seat-band="top"]:not(.casinoOwnSeat) .casinoChairHands {
  top: calc(100% + 4px) !important;
  bottom: auto !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
}

html body #app#app#app .neonGame[data-seat-layout="classic"] .neonArena .neonCommunity .casinoBoard {
  grid-template-columns: none !important;
  grid-auto-columns: var(--community-card-width);
  grid-auto-flow: column;
  width: max-content !important;
  justify-self: center;
  justify-content: center !important;
}

/* Wide tables have room for two boards side by side with the pot beneath. */
@media (orientation: landscape) and (min-width: 768px) and (min-height: 540px) {
  html:root body #app#app#app .neonGame[data-seat-layout="classic"][data-double-board="true"] .neonArena .neonCommunity.casinoCommunity {
    display: grid !important;
    top: 42.6% !important;
    grid-template-columns: repeat(2, max-content);
    column-gap: clamp(16px, 2.2cqw, 32px) !important;
    justify-content: center;
    transform: translate(-50%, -50%) !important;
  }

  html:root body #app#app#app .neonGame[data-seat-layout="classic"][data-double-board="true"] .neonArena .neonCommunity .casinoBoard {
    --community-card-width: min(5.2cqw, 6.5cqh);
    grid-column: 1;
    grid-row: 1;
  }

  html:root body #app#app#app .neonGame[data-seat-layout="classic"][data-double-board="true"] .neonArena .neonCommunity .casinoBoard + .casinoBoard {
    grid-column: 2;
  }
}

/* Give the single board, pot and player's hand distinct bands as Safari's visible height changes. */
@media (orientation: landscape) and (min-width: 700px) and (min-height: 480px) {
  html:root body #app#app#app .neonGame[data-seat-layout="classic"][data-double-board="false"] .neonArena .neonCommunity.casinoCommunity {
    top: 43% !important;
  }

  html:root body #app#app#app .neonGame[data-seat-layout="classic"][data-double-board="false"] .neonArena .neonCommunity .casinoBoard {
    --community-card-width: min(9cqh, 8.8cqw, var(--rail-board-limit, 100vw));
  }

  html:root body #app#app#app#app#app#app .neonGame[data-seat-layout="classic"][data-double-board="false"] .neonCommunity > .pokerPotHeader {
    flex-direction: row !important;
    gap: 4px !important;
  }

  html:root body #app#app#app .neonGame[data-seat-layout="classic"][data-double-board="false"] .neonSeat.casinoOwnSeat {
    --hand-width: min(var(--hero-width), 9.2cqh);
  }
}
