/* v0.9.90 · profile cards, detailed poker history and shop price alignment */

/* Poker: only the profile picture grows; the surrounding visiting-card layout stays intact. */
#pokerApp .poker-seat-panel .poker-avatar,
#pokerApp .poker-seat:hover .poker-avatar,
#pokerApp .poker-seat:focus-within .poker-avatar {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  flex: 0 0 52px !important;
  font-size: 1.7rem !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
}

/* Poker history: board, private cards, hand strength and result are readable at a glance. */
.poker-history-drawer .poker-history-entry {
  padding: 12px !important;
}
.poker-history-drawer .poker-history-entry > header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}
.poker-history-drawer .poker-history-entry > p {
  margin: 9px 0 !important;
  font-weight: 850 !important;
  line-height: 1.35 !important;
}
.poker-history-board-wrap {
  display: grid !important;
  gap: 6px !important;
  margin: 10px 0 !important;
  padding: 9px !important;
  border: 2px solid var(--wf-ink, #071116) !important;
  border-radius: 11px !important;
  background: var(--wf-paper-2, #e9e4d8) !important;
}
.poker-history-board-wrap > strong {
  font-size: .67rem !important;
  font-weight: 1000 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}
.poker-history-cards {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 5px !important;
}
.poker-history-card {
  display: inline-grid !important;
  place-items: center !important;
  min-width: 34px !important;
  height: 42px !important;
  padding: 0 5px !important;
  border: 2px solid var(--wf-ink, #071116) !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 2px 2px 0 var(--wf-ink, #071116) !important;
  color: var(--wf-ink, #071116) !important;
  font-size: .85rem !important;
  font-weight: 1000 !important;
  box-sizing: border-box !important;
}
.poker-history-card.red { color: #c72d46 !important; }
.poker-history-drawer .poker-history-entry ul {
  display: grid !important;
  gap: 8px !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.poker-history-player {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 7px 10px !important;
  padding: 9px !important;
  border: 2px solid var(--wf-ink, #071116) !important;
  border-radius: 11px !important;
  background: #fff !important;
}
.poker-history-player-head {
  display: flex !important;
  align-items: baseline !important;
  gap: 7px !important;
  min-width: 0 !important;
}
.poker-history-player-head span {
  overflow: hidden !important;
  font-weight: 1000 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.poker-history-player-head small {
  color: var(--wf-muted, #58636b) !important;
  font-size: .67rem !important;
  font-weight: 850 !important;
}
.poker-history-player > b {
  align-self: center !important;
}
.poker-history-player .poker-history-cards {
  grid-column: 1 / -1 !important;
}

/* Multiplayer Blackjack: larger poker-style player visiting card. Game cards are untouched. */
body.multiplayer-live #multiSeats .multi-seat .seat-profile {
  width: min(172px, calc(100% - 18px)) !important;
  height: 70px !important;
  min-height: 70px !important;
  max-height: 70px !important;
  padding: 7px 9px !important;
  display: grid !important;
  grid-template-columns: 52px minmax(0, 1fr) !important;
  grid-template-rows: 1fr !important;
  align-items: center !important;
  gap: 9px !important;
  border: 3px solid var(--wf-ink, #071116) !important;
  border-radius: 15px !important;
  background: var(--wf-white, #fff) !important;
  box-shadow: 4px 4px 0 var(--wf-ink, #071116) !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}
body.multiplayer-live #multiSeats .multi-seat.me .seat-profile {
  background: var(--wf-lime, #c8ff3d) !important;
  box-shadow: 5px 5px 0 var(--wf-ink, #071116) !important;
}
body.multiplayer-live #multiSeats .multi-seat .seat-profile .table-avatar {
  position: static !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  min-height: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  margin: 0 !important;
  transform: none !important;
  font-size: 1.55rem !important;
  box-sizing: border-box !important;
}
body.multiplayer-live #multiSeats .multi-seat .seat-buyin-stack {
  position: static !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 3px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  color: var(--wf-ink, #071116) !important;
}
body.multiplayer-live #multiSeats .multi-seat .seat-stack-player-name {
  order: -1 !important;
  width: 100% !important;
  overflow: hidden !important;
  color: var(--wf-ink, #071116) !important;
  font-size: .76rem !important;
  font-weight: 1000 !important;
  line-height: 1.12 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
body.multiplayer-live #multiSeats .multi-seat .seat-stack-line {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  color: var(--wf-ink, #071116) !important;
  font-size: .72rem !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
body.multiplayer-live #multiSeats .multi-seat .seat-me-badge {
  top: -8px !important;
  right: -7px !important;
}

/* Gifts/Luxury: number and “Chips” always remain on one line. */
#shopOverlay [data-shop-pane="gifts"] .shop-item > small,
#shopOverlay [data-shop-pane="luxury"] .shop-item > small {
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
}

@media (max-width: 800px) {
  #pokerApp .poker-seat-panel .poker-avatar,
  #pokerApp .poker-seat:hover .poker-avatar,
  #pokerApp .poker-seat:focus-within .poker-avatar {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    flex-basis: 42px !important;
    font-size: 1.3rem !important;
  }
  body.multiplayer-live #multiSeats .multi-seat .seat-profile {
    width: min(142px, calc(100% - 10px)) !important;
    height: 62px !important;
    min-height: 62px !important;
    max-height: 62px !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    gap: 7px !important;
    padding: 6px 7px !important;
  }
  body.multiplayer-live #multiSeats .multi-seat .seat-profile .table-avatar {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    font-size: 1.3rem !important;
  }
}

.poker-history-drawer .poker-history-entry,
.poker-history-drawer .poker-history-entry header,
.poker-history-drawer .poker-history-entry time,
.poker-history-player,
.poker-history-player-head span {
  color: var(--wf-ink, #071116) !important;
}
.poker-history-player-head small {
  color: var(--wf-muted, #58636b) !important;
}
.poker-history-player > b.positive {
  color: #16734c !important;
}
.poker-history-player > b.negative {
  color: #b12f48 !important;
}
.poker-history-no-cards {
  color: var(--wf-muted, #58636b) !important;
  font-size: .72rem !important;
  font-weight: 750 !important;
}

.poker-history-drawer .poker-history-entry {
  background: #f7f5ef !important;
}
.poker-history-board-wrap {
  color: #071116 !important;
  background: #e9e4d8 !important;
}
.poker-history-board-wrap > strong {
  color: #071116 !important;
}
.poker-history-player-head small,
.poker-history-no-cards {
  color: #4f5d66 !important;
}
