/* LUXEN88 DESKTOP STRUCTURE V1
   Scope: home/root page, desktop only (>=1121px).
   Purpose: neutralize viewport-captured carousel widths and restore
   the original desktop density without changing tablet/mobile.
*/

@media screen and (min-width: 1121px) {
  /* Keep the proven original desktop 40/60 category structure explicit. */
  .section-content .block-game-category {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
  }

  .section-content .block-game-category .box-other-category {
    width: 40% !important;
  }

  .section-content .block-game-category .wrap-category-game {
    width: 60% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding-left: 1rem !important;
    overflow: visible !important;
  }

  .section-content .block-game-category .wrap-category-game .item-category-game {
    width: calc(25% - 8px) !important;
    flex: 0 0 calc(25% - 8px) !important;
  }

  /*
   * The clone captured Naive UI carousel slides at mobile widths
   * (155.333px / 115.25px). The original runtime would recalculate these
   * on desktop. Since the clean build intentionally has no source runtime,
   * render the saved game slides as the original 10%-density desktop grid.
   */
  .section-content .wrap-list-all-game .box-list-game {
    width: 100% !important;
    overflow: visible !important;
  }

  .section-content .wrap-list-all-game .box-list-game .n-carousel {
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
  }

  .section-content .wrap-list-all-game .box-list-game .n-carousel__slides {
    display: grid !important;
    grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
    transition: none !important;
  }

  .section-content .wrap-list-all-game .box-list-game .n-carousel__slide {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    margin-right: 0 !important;
    overflow: visible !important;
    transform: none !important;
  }

  .section-content .wrap-list-all-game .box-list-game .n-carousel__slide > a {
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }

  .section-content .wrap-list-all-game .box-list-game .n-carousel__dots,
  .section-content .wrap-list-all-game .box-list-game .n-carousel__arrow-group {
    display: none !important;
  }

  .section-content .wrap-list-all-game .item-list-all-game {
    width: 100% !important;
    clear: both !important;
  }
}

/* Slightly reduce density on narrower desktop only; mobile/tablet untouched. */
@media screen and (min-width: 1121px) and (max-width: 1280px) {
  .section-content .wrap-list-all-game .box-list-game .n-carousel__slides {
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
  }
}
