/* v0.9.94 · closing history animation, solo Blackjack and final table spacing */

/* Poker History closes with the exact opening motion played backwards. */
.poker-history-overlay.is-closing {
  pointer-events: none !important;
}
.poker-history-overlay.is-closing .poker-history-drawer {
  animation: pokerHistoryRailOutV094 .32s cubic-bezier(.2,.8,.2,1) both !important;
}
@keyframes pokerHistoryRailOutV094 {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: .72; transform: translateX(100%); }
}

/* Remove the Lobby/hand badge from the green Poker room bar. */
#pokerApp #pokerHandLabel {
  display: none !important;
}

/* Multiplayer Blackjack visiting cards sit slightly lower and never move on a win. */
body.multiplayer-live #multiSeats .multi-seat .seat-profile,
body.multiplayer-live #multiSeats .multi-seat.active .seat-profile,
body.multiplayer-live #multiSeats .multi-seat.multi-hand-winner .seat-profile,
body.multiplayer-live #multiSeats .multi-seat.multi-hand-loser .seat-profile {
  position: relative !important;
  inset: auto !important;
  top: 14px !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 auto !important;
  transform: none !important;
  animation: none !important;
  transition: none !important;
}
body.multiplayer-live #multiSeats .multi-seat .seat-profile > .table-avatar,
body.multiplayer-live #multiSeats .multi-seat.active .seat-profile > .table-avatar,
body.multiplayer-live #multiSeats .multi-seat.multi-hand-winner .seat-profile > .table-avatar {
  position: static !important;
  inset: auto !important;
  margin: 0 !important;
  transform: none !important;
}

/* Winning uses only the former loss-border language, recolored green. */
body.multiplayer-live #multiSeats .multi-seat.multi-hand-winner,
body.multiplayer-live #multiSeats .multi-seat.multi-hand-winner .seat-info-row,
body.multiplayer-live #multiSeats .multi-seat.multi-hand-winner .seat-profile {
  border-color: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
  animation: none !important;
}
body.multiplayer-live #multiSeats .multi-seat.multi-hand-winner.me .seat-profile {
  background: #ddff91 !important;
}
body.multiplayer-live #multiSeats .multi-seat.multi-hand-winner:not(.me) .seat-profile {
  background: linear-gradient(180deg, #3c424a, #262b31) !important;
}
body.multiplayer-live #multiSeats .multi-seat.multi-hand-winner .seat-profile > .table-avatar {
  border-color: #62df72 !important;
  animation: blackjackWinnerAvatarGreenV094 1.15s ease-in-out infinite !important;
}
@keyframes blackjackWinnerAvatarGreenV094 {
  0%, 100% {
    border-color: #62df72;
    box-shadow: 0 0 0 2px rgba(98,223,114,.28), 0 0 15px rgba(98,223,114,.34), 4px 4px 0 var(--wf-ink, #071116);
  }
  50% {
    border-color: #a7ff91;
    box-shadow: 0 0 0 4px rgba(98,223,114,.34), 0 0 25px rgba(98,223,114,.58), 4px 4px 0 var(--wf-ink, #071116);
  }
}

/* The old green winner result fields are removed; the avatar border is the result indicator. */
body.multiplayer-live #multiSeats .multi-seat.multi-hand-winner .multi-hand-result.win,
body.multiplayer-live #multiSeats .multi-seat.multi-hand-winner .seat-round-profit.positive {
  display: none !important;
}

/* Dealer visiting card keeps its design but uses the same inner edge spacing as player cards. */
body.multiplayer-live .dealer-persona {
  padding: 9px 11px !important;
  grid-template-columns: 56px minmax(86px, 1fr) auto !important;
  column-gap: 10px !important;
  row-gap: 2px !important;
}
body.multiplayer-live .dealer-persona .dealer-avatar {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px !important;
  min-height: 56px !important;
  max-width: 56px !important;
  max-height: 56px !important;
}
body.multiplayer-live .dealer-persona .dealer-copy {
  padding-right: 2px !important;
  line-height: 1.05 !important;
}
body.multiplayer-live .dealer-persona .dealer-copy strong {
  margin: 0 0 1px !important;
}
body.multiplayer-live .dealer-persona .dealer-copy small {
  margin: 0 !important;
}
body.multiplayer-live .dealer-persona .dealer-gifts {
  min-height: 18px !important;
  margin-top: 0 !important;
}
body.multiplayer-live .dealer-donate-btn {
  min-height: 48px !important;
  padding: 0 19px !important;
  margin-left: 12px !important;
  font-size: .8rem !important;
  border-width: 3px !important;
}

/* ROOM and Stand Up are equally large and easier to read. */
body.multiplayer-live .blackjack-room-code-badge,
body.multiplayer-live #multiplayerApp .blackjack-stand-badge {
  min-height: 52px !important;
  padding: 8px 14px !important;
  border-radius: 14px !important;
}
body.multiplayer-live .blackjack-room-code-badge {
  gap: 10px !important;
}
body.multiplayer-live .blackjack-room-code-badge > span {
  font-size: .72rem !important;
}
body.multiplayer-live .blackjack-room-code-badge .table-code {
  min-height: 32px !important;
  padding: 3px 8px !important;
  font-size: 1.08rem !important;
  letter-spacing: .08em !important;
}
body.multiplayer-live #multiplayerApp .blackjack-stand-badge {
  min-width: 126px !important;
  font-size: .82rem !important;
  font-weight: 1000 !important;
}

@media (max-width: 800px) {
  body.multiplayer-live #multiSeats .multi-seat .seat-profile,
  body.multiplayer-live #multiSeats .multi-seat.active .seat-profile,
  body.multiplayer-live #multiSeats .multi-seat.multi-hand-winner .seat-profile,
  body.multiplayer-live #multiSeats .multi-seat.multi-hand-loser .seat-profile {
    top: 9px !important;
  }
  body.multiplayer-live .dealer-persona {
    padding: 8px 9px !important;
    grid-template-columns: 50px minmax(0, 1fr) !important;
    column-gap: 8px !important;
  }
  body.multiplayer-live .dealer-persona .dealer-avatar {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    max-width: 50px !important;
    max-height: 50px !important;
  }
  body.multiplayer-live .dealer-donate-btn {
    min-height: 46px !important;
    margin-left: 0 !important;
    font-size: .78rem !important;
  }
  body.multiplayer-live .blackjack-room-code-badge,
  body.multiplayer-live #multiplayerApp .blackjack-stand-badge {
    min-height: 46px !important;
    padding: 7px 10px !important;
  }
  body.multiplayer-live .blackjack-room-code-badge .table-code {
    font-size: .94rem !important;
  }
  body.multiplayer-live #multiplayerApp .blackjack-stand-badge {
    min-width: 108px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .poker-history-overlay.is-closing .poker-history-drawer,
  body.multiplayer-live #multiSeats .multi-seat.multi-hand-winner .seat-profile > .table-avatar {
    animation-duration: .01ms !important;
  }
}

/* Winner state must not change the seat grid geometry. */
body.multiplayer-live #multiSeats .multi-seat.multi-hand-winner .seat-info-row {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: inherit !important;
  transform: none !important;
}
body.multiplayer-live #multiSeats .multi-seat.multi-hand-winner::before,
body.multiplayer-live #multiSeats .multi-seat.multi-hand-winner::after {
  display: none !important;
}
