/* v0.9.89 · Poker history drawer, animated tabs and precise table/shop geometry */

/* Poker hand history is a dedicated drawer and no longer occupies the table sidebar. */
.poker-history-overlay {
  position: fixed !important;
  z-index: 390 !important;
  inset: 0 !important;
  display: flex !important;
  justify-content: flex-end !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: auto !important;
}
.poker-history-overlay.hidden {
  display: none !important;
}
.poker-history-backdrop {
  position: absolute !important;
  z-index: 0 !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: default !important;
}
.poker-history-drawer {
  position: relative !important;
  z-index: 1 !important;
  width: min(430px, 100vw) !important;
  height: 100vh !important;
  max-height: 100vh !important;
  margin: 0 !important;
  padding: 22px 18px !important;
  overflow: auto !important;
  border-radius: 0 !important;
  border-left: 3px solid var(--wf-ink, #071116) !important;
  color: var(--wf-text, #071116) !important;
  background: var(--wf-paper, #f4f0e6) !important;
  box-shadow: -10px 0 0 rgba(7,17,22,.26) !important;
  animation: pokerHistoryRailInV089 .32s cubic-bezier(.2,.8,.2,1) both !important;
  box-sizing: border-box !important;
}
.poker-history-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 14px !important;
  margin-bottom: 16px !important;
}
.poker-history-head h2,
.poker-history-head p {
  margin: 0 !important;
}
.poker-history-head p {
  margin-top: 5px !important;
  color: var(--wf-muted, #58636b) !important;
  font-size: .82rem !important;
  line-height: 1.4 !important;
}
.poker-history-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
  padding: 10px 12px !important;
  border: 2px solid var(--wf-ink, #071116) !important;
  border-radius: 13px !important;
  background: var(--wf-lime, #c8ff3d) !important;
  box-shadow: 3px 3px 0 var(--wf-ink, #071116) !important;
  font-size: .72rem !important;
  font-weight: 1000 !important;
  letter-spacing: .07em !important;
}
.poker-history-meta strong {
  display: grid !important;
  place-items: center !important;
  min-width: 30px !important;
  min-height: 30px !important;
  border: 2px solid var(--wf-ink, #071116) !important;
  border-radius: 50% !important;
  background: var(--wf-white, #fff) !important;
}
.poker-history-drawer .poker-hand-history {
  display: grid !important;
  gap: 11px !important;
  width: 100% !important;
  max-height: none !important;
  overflow: visible !important;
}
.poker-history-drawer .poker-history-entry,
.poker-history-drawer .poker-history-empty {
  margin: 0 !important;
  border: 2px solid var(--wf-ink, #071116) !important;
  border-radius: 15px !important;
  background: var(--wf-white, #fff) !important;
  box-shadow: 4px 4px 0 rgba(7,17,22,.82) !important;
}
body.poker-history-open {
  overflow: hidden !important;
}
@keyframes pokerHistoryRailInV089 {
  from { opacity: .72; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}


@media (prefers-reduced-motion: reduce) {
  .poker-history-drawer { animation-duration: .01ms !important; }
}

/* Multiplayer Blackjack: notably shorter, while the left edge now aligns
   exactly with the separate action/bet deck. The small right inset remains. */
@media (min-width: 1181px) {
  body.multiplayer-live #multiplayerApp .multi-table-shell {
    width: 100% !important;
    height: 864px !important;
    min-height: 864px !important;
    max-height: 864px !important;
    grid-template-rows: 640px 212px !important;
    row-gap: 12px !important;
  }
  body.multiplayer-live #multiplayerApp .multi-table-rim {
    width: calc(100% - 12px) !important;
    height: 640px !important;
    min-height: 640px !important;
    max-height: 640px !important;
    margin-left: 0 !important;
    margin-right: 12px !important;
    justify-self: start !important;
  }
  body.multiplayer-live #multiplayerApp .multi-felt {
    width: 100% !important;
    height: 620px !important;
    min-height: 620px !important;
    max-height: 620px !important;
  }
  body.multiplayer-live #multiplayerApp .multi-controls {
    width: 100% !important;
    margin: 0 !important;
  }
}

/* Gifts and Luxury: icon, centered item name and price use three explicit rows. */
#shopOverlay [data-shop-pane="gifts"] .shop-item,
#shopOverlay [data-shop-pane="luxury"] .shop-item {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: 68px minmax(42px, auto) 24px !important;
  justify-items: center !important;
  align-items: center !important;
  align-content: center !important;
}
#shopOverlay [data-shop-pane="gifts"] .shop-item > span,
#shopOverlay [data-shop-pane="luxury"] .shop-item > span {
  grid-row: 1 !important;
  align-self: center !important;
}
#shopOverlay [data-shop-pane="gifts"] .shop-item > strong,
#shopOverlay [data-shop-pane="luxury"] .shop-item > strong {
  grid-row: 2 !important;
  display: grid !important;
  place-items: center !important;
  align-self: stretch !important;
  width: 100% !important;
  min-height: 42px !important;
  padding: 0 5px !important;
  text-align: center !important;
  box-sizing: border-box !important;
}
#shopOverlay [data-shop-pane="gifts"] .shop-item > small,
#shopOverlay [data-shop-pane="luxury"] .shop-item > small {
  grid-row: 3 !important;
  align-self: center !important;
  justify-self: center !important;
  margin: 0 !important;
}

@media (max-width: 800px) {
  #shopOverlay [data-shop-pane="gifts"] .shop-item,
  #shopOverlay [data-shop-pane="luxury"] .shop-item {
    grid-template-rows: 52px minmax(38px, auto) 22px !important;
  }
  #shopOverlay [data-shop-pane="gifts"] .shop-item > strong,
  #shopOverlay [data-shop-pane="luxury"] .shop-item > strong {
    min-height: 38px !important;
  }
}
