/* Compact table navigation uses the homepage brand, background and button tokens. */
#poker-table .table-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: 52px;
  gap: 16px;
  padding: 0 10px;
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
}

#poker-table .table-header-brand {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 11px;
  min-width: 0;
  min-height: 44px;
  color: var(--color-text);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.3px;
  line-height: 1;
}

/* Reset the old text-only table wordmark so the homepage's two-part mark applies. */
#poker-table .table-header-brand > [data-branding-wordmark]:not(.brand-mark) {
  display: inline;
  font: inherit;
  letter-spacing: inherit;
}
#poker-table .table-header-brand > .brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 38px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0;
}
#poker-table .table-header-brand .branding-site-logo {
  display: block;
  max-width: 180px;
  width: auto;
  height: 38px;
  max-height: 38px;
  object-fit: contain;
}

#poker-table .table-back,
#poker-table .table-cash-tools button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 40px;
  min-height: 40px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-secondary);
  transition: background var(--motion-fast), color var(--motion-fast), transform var(--motion-fast);
}
#poker-table .table-back { justify-self: start; gap: 8px; font-size: 12px; }
#poker-table .table-back .product-icon { transform: rotate(-90deg); }
#poker-table .table-heading .product-icon { width: 18px; height: 18px; flex: none; }
#poker-table .table-back:hover,
#poker-table .table-cash-tools button:hover { background: var(--color-surface-elevated); color: var(--color-text); }
#poker-table .table-heading :is(a, button):focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
#poker-table .table-back:active,
#poker-table .table-cash-tools button:active { transform: translateY(1px); }

#poker-table .table-cash-tools { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
#poker-table .table-wallet {
  justify-content: center;
  min-height: 40px;
  gap: 3px;
  padding: 0 2px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
}
#poker-table .table-wallet small { font-size: 9px; color: var(--color-text-secondary); }
#poker-table .table-wallet strong { font-size: 14px; color: var(--color-text); }
#poker-table .table-wallet:hover strong { color: var(--color-primary); }
#poker-table .table-deposit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 12px;
  font-size: 11px;
}

@media (max-width: 720px) {
  #poker-table .table-heading { grid-template-columns: 40px minmax(0, 1fr) auto; min-height: 48px; gap: 6px; padding-inline: 2px; }
  #poker-table .table-header-brand { gap: 8px; font-size: 15px; }
  #poker-table .table-header-brand > .brand-mark { width: 28px; height: 31px; font-size: 21px; }
  #poker-table .table-header-brand .branding-site-logo { max-width: 140px; max-height: 32px; height: 32px; }
  #poker-table .table-back .back-label { display: none; }
  #poker-table .table-cash-tools { gap: 3px; }
  #poker-table .table-back,
  #poker-table .table-cash-tools button,
  #poker-table .table-deposit { min-width: 40px; width: 40px; min-height: 44px; padding: 8px; }
  #poker-table .table-wallet { min-height: 44px; padding-inline: 2px; }
  #poker-table .table-wallet strong { font-size: 11px; }
  #poker-table .table-wallet small { font-size: 8px; }
  #poker-table .table-deposit > span { display: none; }
}

@media (max-width: 360px) {
  #poker-table:not(.tournament-table) .table-header-brand > [data-branding-wordmark]:not(.brand-mark) { display: none; }
  #poker-table:not(.tournament-table) .table-header-brand .branding-site-logo { max-width: 78px; }
  #poker-table.tournament-table .table-header-brand .branding-site-logo { max-width: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  #poker-table .table-heading :is(a, button) { transition: none; }
}
