/* v0.9.53 — targeted Roulette bet controls, multiplayer chip alignment and Poker action layout. */

/* Foreign Roulette chips sit on the exact selected betting position. They are
   offset only slightly so an own chip and an opponent chip remain distinguishable. */
#rouletteApp .roulette-other-bet-chip {
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(calc(-50% + 10px), calc(-50% + 10px)) !important;
  margin: 0 !important;
}
#rouletteApp .roulette-inside-hotspot > .roulette-other-bet-chip {
  left: 50% !important;
  top: 50% !important;
  transform: translate(calc(-50% + 8px), calc(-50% + 8px)) !important;
}

/* Poker action labels are centered without decorative symbols or secondary text. */
#pokerApp #pokerActionControls .poker-action-bar-v048 {
  grid-template-columns: minmax(88px, .82fr) minmax(104px, 1fr) minmax(178px, 1.5fr) minmax(88px, .82fr) !important;
  grid-template-rows: 64px !important;
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  align-items: center !important;
  gap: 8px !important;
}
#pokerApp #pokerActionControls .poker-action-bar-v048 > .action-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;
  padding: 4px 8px !important;
  text-align: center !important;
}
#pokerApp #pokerActionControls .poker-action-bar-v048 > .action-btn > span {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  text-align: center !important;
  line-height: 1.1 !important;
}
#pokerApp #pokerActionControls .poker-action-secondary {
  display: none !important;
}

/* The raise slider is above the actual raise button surface. */
#pokerApp #pokerActionControls .poker-action-bar-v048 > .poker-raise-control-v046 {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: 22px 38px !important;
  gap: 4px !important;
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}
#pokerApp #pokerActionControls .poker-raise-slider-stack {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  padding: 0 3px !important;
  box-sizing: border-box !important;
}
#pokerApp #pokerActionControls .poker-raise-slider-stack > label {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  width: auto !important;
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  margin: 0 !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}
#pokerApp #pokerActionControls .poker-raise-slider-stack > label span {
  font-size: .64rem !important;
}
#pokerApp #pokerActionControls .poker-raise-slider-stack > label strong {
  font-size: .72rem !important;
}
#pokerApp #pokerActionControls .poker-raise-slider-stack > .poker-raise-range-v046 {
  display: block !important;
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  margin: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}
#pokerApp #pokerActionControls .poker-raise-buttons-v046 {
  display: grid !important;
  grid-template-columns: 40px minmax(72px, 1fr) 40px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  width: 100% !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  margin: 0 !important;
  padding: 3px !important;
  border: 2px solid #071116 !important;
  border-radius: 11px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
#pokerApp #pokerActionControls .poker-raise-buttons-v046 > button,
#pokerApp #pokerActionControls .poker-raise-buttons-v046 #pokerRaiseButton {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  margin: 0 !important;
  padding: 2px 5px !important;
  line-height: 1 !important;
  text-align: center !important;
  transform: none !important;
}
#pokerApp #pokerActionControls .poker-raise-buttons-v046 #pokerRaiseButton span {
  width: 100% !important;
  text-align: center !important;
}

@media (max-width: 900px) {
  #pokerApp #pokerActionControls .poker-action-bar-v048 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: 56px 78px !important;
    height: 142px !important;
    min-height: 142px !important;
    max-height: 142px !important;
  }
  #pokerApp #pokerActionControls .poker-action-bar-v048 > .action-btn {
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
  }
  #pokerApp #pokerActionControls .poker-action-bar-v048 > .poker-raise-control-v046 {
    grid-template-rows: 25px 48px !important;
    height: 78px !important;
    min-height: 78px !important;
    max-height: 78px !important;
  }
  #pokerApp #pokerActionControls .poker-raise-slider-stack {
    height: 25px !important;
    min-height: 25px !important;
    max-height: 25px !important;
  }
  #pokerApp #pokerActionControls .poker-raise-buttons-v046 {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    grid-template-columns: 38px minmax(64px, 1fr) 38px !important;
  }
  #pokerApp #pokerActionControls .poker-raise-buttons-v046 > button,
  #pokerApp #pokerActionControls .poker-raise-buttons-v046 #pokerRaiseButton {
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
  }
}
