/* ============================================================
   Home casino categories — match jojobet10162 reference 1:1
   ============================================================ */

.GameCategoriesWrapper {
  background: #191919;
  width: 100%;
  overflow: visible !important;
}

/* Casino / Live Casino — slider full-bleed responsive (no side crop) */
.Page-Casino .OperatorSlider.Slider,
.Page-LiveCasino .OperatorSlider.Slider,
.LiveCasinoPage .OperatorSlider.Slider {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
  background: #191919 !important;
  box-sizing: border-box !important;
}
.Page-Casino .OperatorSlider .slider,
.Page-LiveCasino .OperatorSlider .slider,
.Page-Casino .OperatorSlider .slider-frame,
.Page-LiveCasino .OperatorSlider .slider-frame,
.Page-Casino .OperatorSlider .slider-list,
.Page-LiveCasino .OperatorSlider .slider-list {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  box-sizing: border-box !important;
}
.Page-Casino .OperatorSlider .slider-list,
.Page-LiveCasino .OperatorSlider .slider-list {
  transform: translate3d(0, 0, 0) !important;
  position: relative !important;
}
.Page-Casino .OperatorSlider .slider-slide,
.Page-LiveCasino .OperatorSlider .slider-slide {
  left: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  display: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  position: absolute !important;
  top: 0 !important;
  box-sizing: border-box !important;
}
.Page-Casino .OperatorSlider .slider-slide.slide-visible,
.Page-Casino .OperatorSlider .slider-slide.slide-current,
.Page-LiveCasino .OperatorSlider .slider-slide.slide-visible,
.Page-LiveCasino .OperatorSlider .slider-slide.slide-current {
  display: block !important;
  position: relative !important;
}
.Page-Casino .OperatorSlider .SliderItem,
.Page-LiveCasino .OperatorSlider .SliderItem {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  position: relative !important;
}
.Page-Casino .OperatorSlider a.ImageAnchor,
.Page-LiveCasino .OperatorSlider a.ImageAnchor,
.Page-Casino .OperatorSlider .ImageAnchor,
.Page-LiveCasino .OperatorSlider .ImageAnchor {
  display: block !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
}
/* Bundle sets Figure absolute → collapses to 0x0; force in-flow */
.Page-Casino .OperatorSlider .Figure,
.Page-LiveCasino .OperatorSlider .Figure,
.Page-Casino .OperatorSlider figure.ComponentPicture,
.Page-LiveCasino .OperatorSlider figure.ComponentPicture,
.Page-Casino .OperatorSlider .Picture,
.Page-LiveCasino .OperatorSlider .Picture,
.Page-Casino .OperatorSlider picture {
  display: block !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  inset: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}
.Page-Casino .OperatorSlider img,
.Page-LiveCasino .OperatorSlider img,
.Page-Casino .OperatorSlider .PictureImg,
.Page-LiveCasino .OperatorSlider .PictureImg,
.Page-Casino .OperatorSlider img.PictureImg,
.Page-LiveCasino .OperatorSlider img.PictureImg {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Sticky menu placeholder after slider creates a black gap — collapse it */
.Page-Casino .StickyPlaceholder.StickyPlaceholderHeaderMenu,
.Page-LiveCasino .StickyPlaceholder.StickyPlaceholderHeaderMenu,
.LiveCasinoPage .StickyPlaceholder.StickyPlaceholderHeaderMenu {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
.Page-Casino .OperatorSlider + .StickyPlaceholder,
.Page-LiveCasino .OperatorSlider + .StickyPlaceholder {
  display: none !important;
  height: 0 !important;
}

/* CRITICAL: never clip category grids */
.GameCategoriesWrapper .GamesSwipeable,
.GameCategoriesWrapper .MsnRow .GamesSwipeable,
.Page-Casino .GameCategoriesWrapper .MsnRow .GamesSwipeable {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  padding: 0 !important;
}

.GameCategoriesWrapper .GamesWrapper,
.GameCategoriesWrapper .GamesListContainer,
.GameCategoriesWrapper section.CasinoGames {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Section titles must NOT float over thumbnails */
.GameCategoriesWrapper .GamesList .BoxTitle,
.GameCategoriesWrapper .GamesContainerTitle,
.GameCategoriesWrapper section.CasinoGames > h2.BoxTitle {
  float: none !important;
  position: relative !important;
  top: 0 !important;
  left: auto !important;
  width: 100% !important;
  max-width: none !important;
  z-index: 2 !important;
  margin: 0 0 4px !important;
  padding: 16px 18px 0 !important;
  clear: both !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 20px !important;
  text-transform: uppercase;
}

.GameCategoriesWrapper .GamesContainerTitle a,
.GameCategoriesWrapper .GamesList .BoxTitle a {
  color: #fff !important;
  text-decoration: none !important;
}

/* Section category titles: SVG logos must not expand to viewport height */
.Page-Casino .MsnRow > a.GameCategory,
.Page-Casino section.CasinoGames > a.GameCategory,
.Page-Casino .GamesList > a.GameCategory {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: auto !important;
  height: auto !important;
  max-height: 48px !important;
  margin: 0 !important;
  padding: 14px 18px 4px !important;
  overflow: hidden !important;
}

.Page-Casino .MsnRow > a.GameCategory .GameCategoryIcon,
.Page-Casino section.CasinoGames > a.GameCategory .GameCategoryIcon,
.Page-Casino .GamesList > a.GameCategory .GameCategoryIcon {
  display: inline-flex !important;
  width: auto !important;
  height: 32px !important;
  max-height: 32px !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
  overflow: hidden !important;
}

.Page-Casino .MsnRow > a.GameCategory .GameCategoryIcon img,
.Page-Casino .MsnRow > a.GameCategory .GameCategoryIcon svg,
.Page-Casino section.CasinoGames > a.GameCategory .GameCategoryIcon img,
.Page-Casino .GamesList > a.GameCategory .GameCategoryIcon img {
  width: auto !important;
  height: 32px !important;
  max-height: 32px !important;
  max-width: 220px !important;
  object-fit: contain !important;
}

/* ---------- MOBILE ≤1099px ---------- */
@media (max-width: 1099px) {
  .GameCategoriesWrapper .MsnRow .VerticalMobileLayout .GamesListContainer {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: auto !important;
    grid-auto-rows: auto !important;
    grid-auto-flow: row !important;
    gap: 12px !important;
    row-gap: 12px !important;
    column-gap: 12px !important;
    width: 100% !important;
    padding: 10px 16px 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  @media (min-width: 480px) {
    .GameCategoriesWrapper .MsnRow .VerticalMobileLayout .GamesListContainer {
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
  }

  @media (min-width: 768px) {
    .GameCategoriesWrapper .MsnRow .VerticalMobileLayout .GamesListContainer {
      grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
  }

  .GameCategoriesWrapper .MsnRow .VerticalMobileLayout .ListGame {
    display: none !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    position: relative !important;
  }

  .GameCategoriesWrapper .MsnRow .VerticalMobileLayout .ListGame.is-shown,
  .GameCategoriesWrapper .MsnRow .VerticalMobileLayout .ListGame:nth-child(-n+10) {
    display: flex !important;
    flex-direction: column !important;
  }

  .GameCategoriesWrapper .MsnRow .VerticalMobileLayout .ListGameLink,
  .GameCategoriesWrapper .MsnRow .VerticalMobileLayout .ComponentGameThumbnail,
  .GameCategoriesWrapper .MsnRow .VerticalMobileLayout .GameThumbContainer,
  .GameCategoriesWrapper .MsnRow .VerticalMobileLayout .FrameGameThumbnail {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    flex-grow: 0 !important;
  }

  .GameCategoriesWrapper .MsnRow .VerticalMobileLayout .GameThumbailWrapper {
    position: relative !important;
    width: 100% !important;
    height: 0 !important;
    padding-top: 66.51% !important;
    flex-grow: 0 !important;
    flex-basis: auto !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    z-index: 0 !important;
  }

  .GameCategoriesWrapper .MsnRow .VerticalMobileLayout .ListGameImage,
  .GameCategoriesWrapper .MsnRow .VerticalMobileLayout .GameThumb {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 8px !important;
    object-fit: fill !important;
    pointer-events: none !important;
  }

  /* Invisible click layer — covers IMAGE only, not title */
  .GameCategoriesWrapper .MsnRow .VerticalMobileLayout .GamePlayNowButton {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 0 !important;
    padding-top: 66.51% !important;
    margin: 0 !important;
    z-index: 3 !important;
    background: transparent !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    max-height: none !important;
  }

  .GameCategoriesWrapper .MsnRow .VerticalMobileLayout .GamePlayNowText {
    display: none !important;
  }

  .GameCategoriesWrapper .MsnRow .VerticalMobileLayout .GameVendor,
  .GameCategoriesWrapper .MsnRow .VerticalMobileLayout .SubVendor,
  .GameCategoriesWrapper .MsnRow .VerticalMobileLayout .GameVendorLogo,
  .GameCategoriesWrapper .MsnRow .VerticalMobileLayout .GameTags {
    display: none !important;
  }

  /* Title BELOW image — never over thumb */
  .GameCategoriesWrapper .MsnRow .VerticalMobileLayout .GameDetails {
    display: flex !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 5px 0 0 !important;
    padding: 0 !important;
    height: auto !important;
    z-index: 1 !important;
    pointer-events: none !important;
  }

  .GameCategoriesWrapper .MsnRow .VerticalMobileLayout .GameTitle {
    display: block !important;
    position: static !important;
    max-width: 95% !important;
    margin: 0 auto !important;
    font-size: 10px !important;
    font-weight: 100 !important;
    line-height: 12px !important;
    text-align: center !important;
    color: #fff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .GameCategoriesWrapper .OperatorViewAllGames {
    display: none !important;
  }

  .GameCategoriesWrapper .LoadMoreButtonContainer {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 20px 0 !important;
    padding: 0 !important;
    clear: both !important;
  }

  .GameCategoriesWrapper .LoadMoreButtonContainer.is-hidden {
    display: none !important;
  }

  .GameCategoriesWrapper .LoadMoreButtonContainer .LoadMoreButton {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 200px !important;
    max-width: calc(100% - 32px) !important;
    padding: 16px !important;
    border: 2px solid #f9c408 !important;
    border-radius: 8px !important;
    color: #f9c408 !important;
    background: transparent !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 18px !important;
    cursor: pointer;
  }

  @media (min-width: 768px) {
    .GameCategoriesWrapper .LoadMoreButtonContainer .LoadMoreButton {
      width: 400px !important;
    }
  }
}

/* ---------- DESKTOP ≥1100px : horizontal row like reference ---------- */
@media (min-width: 1100px) {
  .GameCategoriesWrapper .GamesList .BoxTitle,
  .GameCategoriesWrapper .GamesContainerTitle,
  .GameCategoriesWrapper section.CasinoGames > h2.BoxTitle {
    float: left !important;
    width: auto !important;
    top: 0 !important;
    margin: 24px 24px 8px !important;
    padding: 0 !important;
    font-size: 22px !important;
    line-height: 28px !important;
  }

  .GameCategoriesWrapper .MsnRow .GamesListContainer {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 8px !important;
    padding: 12px 12px 0 !important;
    height: auto !important;
    clear: both !important;
  }

  .GameCategoriesWrapper .MsnRow .ListGame,
  .GameCategoriesWrapper .MsnRow .ListGame.is-shown {
    display: block !important;
    flex: 0 0 190px !important;
    width: 190px !important;
    max-width: 190px !important;
    height: auto !important;
    position: relative !important;
  }

  .GameCategoriesWrapper .MsnRow .ListGameLink,
  .GameCategoriesWrapper .MsnRow .ComponentGameThumbnail,
  .GameCategoriesWrapper .MsnRow .GameThumbContainer,
  .GameCategoriesWrapper .MsnRow .FrameGameThumbnail {
    position: relative !important;
    overflow: visible !important;
    height: auto !important;
  }

  .GameCategoriesWrapper .MsnRow .GameThumbailWrapper {
    position: relative !important;
    width: 100% !important;
    height: 0 !important;
    padding-top: 66.51% !important;
    flex-grow: 0 !important;
    overflow: hidden !important;
    border-radius: 8px !important;
  }

  .GameCategoriesWrapper .MsnRow .ListGameImage,
  .GameCategoriesWrapper .MsnRow .GameThumb {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 8px !important;
    object-fit: fill !important;
    pointer-events: none !important;
  }

  .GameCategoriesWrapper .MsnRow .GamePlayNowButton {
    display: flex !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 0 !important;
    padding-top: 66.51% !important;
    z-index: 3 !important;
    background: transparent !important;
    cursor: pointer !important;
    max-height: none !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .GameCategoriesWrapper .MsnRow .GameDetails {
    position: relative !important;
    margin-top: 8px !important;
    z-index: 1 !important;
  }

  .GameCategoriesWrapper .MsnRow .GameTitle {
    display: block !important;
    position: static !important;
  }

  .GameCategoriesWrapper .LoadMoreButtonContainer {
    display: none !important;
  }

  .GameCategoriesWrapper .OperatorViewAllGames {
    display: block;
  }
}
