/* Neon Poker v0.93.8.6 — dark statistics, fixed transparent rails, dark Poker history and stable auth sliders. */

/* --------------------------------------------------------------------------
   Statistics: one high-contrast dark treatment for both Blackjack modes and
   both Roulette modes. The shared drawer is used by single- and multiplayer.
   -------------------------------------------------------------------------- */
#gameStatsOverlay .game-stats-drawer {
  color: #f7fbff !important;
  background: linear-gradient(180deg, rgba(8, 17, 23, .985), rgba(3, 9, 13, .99)) !important;
  border-left: 1px solid rgba(255,255,255,.14) !important;
  box-shadow: -18px 0 42px rgba(0,0,0,.42) !important;
}
#gameStatsOverlay .social-head,
#gameStatsOverlay .panel-heading,
#gameStatsOverlay .roulette-frequency-head {
  color: #f7fbff !important;
}
#gameStatsOverlay .eyebrow,
#gameStatsOverlay .panel-heading span,
#gameStatsOverlay .roulette-frequency-head small {
  color: #b8c6cf !important;
  opacity: 1 !important;
}
#rouletteStatisticsContent .roulette-summary-stats > div,
#blackjackStatisticsContent .blackjack-extended-stats > div,
#rouletteStatisticsContent .roulette-frequency-cell {
  color: #ffffff !important;
  background: linear-gradient(145deg, #111d24, #081117) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.055), 0 7px 18px rgba(0,0,0,.24) !important;
}
#rouletteStatisticsContent .roulette-summary-stats > div > span,
#blackjackStatisticsContent .blackjack-extended-stats > div > span,
#rouletteStatisticsContent .roulette-frequency-cell > span {
  color: #cbd6dc !important;
  opacity: 1 !important;
}
#rouletteStatisticsContent .roulette-summary-stats > div > strong,
#blackjackStatisticsContent .blackjack-extended-stats > div > strong,
#rouletteStatisticsContent .roulette-frequency-cell > strong {
  color: #ffffff !important;
  opacity: 1 !important;
}
#rouletteStatisticsContent .roulette-frequency-cell.red {
  border-color: rgba(255, 92, 112, .7) !important;
}
#rouletteStatisticsContent .roulette-frequency-cell.black {
  border-color: rgba(184, 198, 210, .36) !important;
}
#rouletteStatisticsContent .roulette-frequency-cell.green {
  border-color: rgba(97, 242, 182, .72) !important;
}
#rouletteStatisticsContent .roulette-frequency-cell.hottest {
  box-shadow: inset 0 0 0 1px var(--theme-accent, var(--gold)), 0 0 18px color-mix(in srgb, var(--theme-accent, var(--gold)) 30%, transparent) !important;
}
#gameStatsOverlay #resetStats {
  color: #ffffff !important;
}

/* Roulette multiplayer chat text stays white in every theme. */
#rouletteApp.roulette-multiplayer-active .roulette-multiplayer-chat,
#rouletteApp.roulette-multiplayer-active .roulette-multiplayer-chat .chat-message,
#rouletteApp.roulette-multiplayer-active .roulette-multiplayer-chat .chat-message p,
#rouletteApp.roulette-multiplayer-active .roulette-multiplayer-chat .chat-message strong,
#rouletteApp.roulette-multiplayer-active .roulette-multiplayer-chat .chat-message time {
  color: #ffffff !important;
}
#rouletteApp.roulette-multiplayer-active .roulette-multiplayer-chat .chat-message p {
  background: rgba(255,255,255,.075) !important;
}
#rouletteApp.roulette-multiplayer-active .roulette-multiplayer-chat .chat-message.mine p {
  background: rgba(97,242,182,.14) !important;
}

/* --------------------------------------------------------------------------
   Every right-side rail stays viewport-fixed. No rail dims or blurs the game.
   Internal content may scroll, but the rail itself never follows page scroll.
   -------------------------------------------------------------------------- */
#socialOverlay.social-overlay,
#gameStatsOverlay.social-overlay,
#blackjackHistoryOverlay.social-overlay,
#pokerHistoryOverlay.poker-history-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  max-width: 100vw !important;
  max-height: 100dvh !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
}
#socialOverlay .social-backdrop,
#gameStatsOverlay .social-backdrop,
#blackjackHistoryOverlay .social-backdrop,
#pokerHistoryOverlay .poker-history-backdrop {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
}
#socialOverlay .social-drawer,
#gameStatsOverlay .game-stats-drawer,
#blackjackHistoryOverlay .blackjack-history-drawer,
#pokerHistoryOverlay .poker-history-drawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  left: auto !important;
  width: min(360px, 100vw) !important;
  max-width: 360px !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overscroll-behavior: contain !important;
}
#socialOverlay .social-drawer,
#pokerHistoryOverlay .poker-history-drawer {
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
#gameStatsOverlay .game-stats-drawer,
#blackjackHistoryOverlay .blackjack-history-drawer {
  overflow: hidden !important;
}
#gameStatsOverlay .game-stats-scroll,
#blackjackHistoryOverlay .blackjack-round-history {
  min-height: 0 !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
}
body.game-stats-open,
body.blackjack-history-open,
body.poker-history-open,
body:has(#socialOverlay:not(.hidden)),
body:has(#gameStatsOverlay:not(.hidden)),
body:has(#blackjackHistoryOverlay:not(.hidden)),
body:has(#pokerHistoryOverlay:not(.hidden)) {
  overflow-y: auto !important;
  padding-right: 0 !important;
}

/* Desktop game sidebars remain anchored while the main table page scrolls. */
@media (min-width: 1181px) {
  #gameApp > .side-panel,
  #multiplayerApp > .multi-sidebar,
  #rouletteApp > .roulette-info,
  #pokerApp > .poker-sidebar {
    position: sticky !important;
    top: 12px !important;
    align-self: start !important;
  }
}

/* --------------------------------------------------------------------------
   Poker History uses a genuinely dark drawer with readable light content.
   -------------------------------------------------------------------------- */
#pokerHistoryOverlay .poker-history-drawer {
  color: #f7fbff !important;
  background: linear-gradient(180deg, #0b171d, #050b0f) !important;
  border-left: 1px solid rgba(255,255,255,.14) !important;
  box-shadow: -18px 0 42px rgba(0,0,0,.46) !important;
}
#pokerHistoryOverlay .poker-history-head h2,
#pokerHistoryOverlay .poker-history-head .eyebrow,
#pokerHistoryOverlay .poker-history-entry,
#pokerHistoryOverlay .poker-history-entry header,
#pokerHistoryOverlay .poker-history-entry > p,
#pokerHistoryOverlay .poker-history-entry time,
#pokerHistoryOverlay .poker-history-player,
#pokerHistoryOverlay .poker-history-player-head span,
#pokerHistoryOverlay .poker-history-player > b,
#pokerHistoryOverlay .poker-history-board-wrap > strong {
  color: #ffffff !important;
}
#pokerHistoryOverlay .poker-history-head p,
#pokerHistoryOverlay .poker-history-player-head small,
#pokerHistoryOverlay .poker-history-empty {
  color: #b8c6cf !important;
  opacity: 1 !important;
}
#pokerHistoryOverlay .poker-history-meta {
  color: #ffffff !important;
  background: linear-gradient(135deg, #173529, #10242d) !important;
  border-color: rgba(255,255,255,.17) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.25) !important;
}
#pokerHistoryOverlay .poker-history-meta strong {
  color: #ffffff !important;
  background: #071116 !important;
  border-color: rgba(255,255,255,.24) !important;
}
#pokerHistoryOverlay .poker-history-entry,
#pokerHistoryOverlay .poker-history-player,
#pokerHistoryOverlay .poker-history-board-wrap {
  background: linear-gradient(145deg, #111d24, #081117) !important;
  border-color: rgba(255,255,255,.15) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.24) !important;
}
#pokerHistoryOverlay .poker-history-card {
  background: #f7f3e8 !important;
  color: #15181b !important;
  border-color: #15181b !important;
  box-shadow: 0 4px 10px rgba(0,0,0,.3) !important;
}
#pokerHistoryOverlay .poker-history-card.red {
  color: #c72d46 !important;
}

/* --------------------------------------------------------------------------
   Developer authentication mode uses the same animated segmented-slider idea
   as the Login/Register control. Polling cannot visually reset a dirty choice.
   -------------------------------------------------------------------------- */
.developer-auth-mode-tabs {
  position: relative !important;
  isolation: isolate !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
  min-height: 46px !important;
  padding: 5px !important;
  overflow: hidden !important;
  border: 1px solid var(--theme-line, var(--line)) !important;
  border-radius: 14px !important;
  background: color-mix(in srgb, var(--theme-panel-b, var(--panel-strong)) 88%, #000) !important;
}
.developer-auth-mode-tabs::before {
  content: "" !important;
  position: absolute !important;
  z-index: 0 !important;
  top: 5px !important;
  bottom: 5px !important;
  left: 5px !important;
  width: calc((100% - 16px) / 2) !important;
  border: 1px solid color-mix(in srgb, var(--theme-accent, var(--mint)) 72%, #fff) !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--theme-accent, var(--mint)) 38%, #06120f),
    color-mix(in srgb, var(--theme-accent-2, var(--cyan)) 42%, #071116)) !important;
  box-shadow: 0 7px 18px color-mix(in srgb, var(--theme-accent, var(--mint)) 18%, transparent), inset 0 1px rgba(255,255,255,.14) !important;
  transform: translateX(0) !important;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), background .2s ease !important;
  pointer-events: none !important;
}
.developer-auth-mode-tabs.selects-name::before,
.developer-auth-mode-tabs:has([data-auth-mode-value="name"].active)::before {
  transform: translateX(calc(100% + 6px)) !important;
}
.developer-auth-mode-tabs button,
.developer-auth-mode-tabs button:hover,
.developer-auth-mode-tabs button:focus,
.developer-auth-mode-tabs button:active {
  position: relative !important;
  z-index: 1 !important;
  min-height: 36px !important;
  border: 0 !important;
  color: var(--theme-muted, var(--muted)) !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}
.developer-auth-mode-tabs button.active,
.developer-auth-mode-tabs button[aria-selected="true"] {
  color: #ffffff !important;
  background: transparent !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.56) !important;
}
.developer-auth-mode-tabs button:not(.active):hover {
  color: var(--theme-text, var(--text)) !important;
}

@media (max-width: 760px) {
  #socialOverlay .social-drawer,
  #gameStatsOverlay .game-stats-drawer,
  #blackjackHistoryOverlay .blackjack-history-drawer,
  #pokerHistoryOverlay .poker-history-drawer {
    width: 100vw !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
  }
}
