/* Desktop presentation layer — loaded last, only >=1024px.
 * The captured page is a 375px mobile app; this file turns the same DOM into a
 * desktop portal (hero, horizontal category bar, 6-up game grid, no bottom tab bar).
 * It never changes copy, images or links. */
@media (min-width: 1024px) {
  html { overflow: auto !important; height: auto !important; min-height: 100%; }
  body {
    overflow: visible !important;
    overflow-x: hidden !important;
    height: auto !important;
    min-height: 100vh !important;
    background: #eceef3 !important;
  }
  .home-view-main, .home-view-notice-card, .home-view-jackpot-row,
  .home-view-category-bar, .home-view-category-track,
  .home-view-section, .home-view-section-grid { box-sizing: border-box !important; }
  /* marketing popups are mobile-sized art; keep the desktop portal clean */
  .popup-mask { display: none !important; }
  uni-page-body {
    --app-content-width: 100% !important;
    width: 100% !important;
    max-width: 1320px !important;
    min-height: 100vh !important;
    height: auto !important;
    zoom: 1 !important;
    margin: 0 auto !important;
    background: #fff !important;
    box-shadow: 0 0 80px rgba(16, 18, 27, .08);
  }
  #app, uni-app, uni-page, uni-page-wrapper, uni-page-body,
  .home-view-host, .home-view, .home-view-shell { height: auto !important; min-height: 100vh; }
  .home-view-shell {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 1320px !important;
    margin: 0 auto;
    padding: 0 32px 56px !important;
  }

  /* header */
  .home-view-header {
    height: 78px !important;
    padding: 0 !important;
    background: rgba(255, 255, 255, .95) !important;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #efe8d5;
    position: sticky;
    top: 0;
    z-index: 90;
  }
  .home-view-logo-image { width: 158px !important; }
  .home-view-logo-image img { width: auto !important; height: 44px !important; }
  .home-view-header-actions { gap: 10px; }
  .home-view-search-button {
    width: 42px !important; height: 42px !important;
    border-radius: 12px; background: #faf7ee;
  }
  .home-view-search-icon-image { width: 22px !important; height: 22px !important; }
  .home-view-mail-icon { width: 24px !important; height: 24px !important; }

  /* hero + welcome */
  .home-view-main { width: 100% !important; max-width: 100% !important; padding: 22px 0 0 !important; box-sizing: border-box !important; }
  .home-view-banner {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 1020 / 300;
    min-height: 300px;
    margin: 0 0 18px !important;
    border-radius: 18px;
    overflow: hidden;
    background: #101116;
  }
  .home-view-banner-swiper, .uni-swiper-wrapper, .uni-swiper-slides,
  .uni-swiper-slide-frame, uni-swiper-item,
  .home-view-banner-image, .home-view-banner-image > div {
    width: 100% !important; height: 100% !important;
  }
  /* the capture froze the carousel mid-transition; use the download-app slide on desktop */
  .uni-swiper-slide-frame { transform: translate3d(0, 0, 0) !important; }
  uni-swiper-item { display: none !important; transform: translate3d(0, 0, 0) !important; }
  uni-swiper-item:nth-child(4) { display: block !important; }
  .home-view-banner-image > div {
    background-size: 100% 100% !important;
    background-position: center center !important;
  }
  .home-view-banner-image img { width: 100% !important; height: 100% !important; object-fit: cover; }
  .home-view-banner-dots { bottom: 12px; }

  .home-view-notice-card {
    width: 100% !important;
    height: auto !important;
    margin: 0 0 18px !important;
    padding: 16px 22px !important;
    border-radius: 16px;
    background: #fff !important;
    border: 1px solid #f2ead6;
    box-shadow: 0 8px 28px rgba(60, 45, 10, .05);
  }
  .home-view-notice-row { height: auto !important; margin-bottom: 12px; overflow: visible !important; }
  .home-view-notice-marquee { max-width: none !important; flex: 1; overflow: visible !important; }
  .home-view-notice-text {
    font-size: 13.5px !important;
    white-space: normal !important;
    line-height: 1.65 !important;
    display: block;
    padding-right: 46px;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
  }
  .home-view-jackpot-row {
    display: flex !important;
    align-items: center !important;
    gap: 30px !important;
    height: auto !important;
  }
  .home-view-account-card {
    flex: 0 0 360px !important;
    width: 360px !important;
    height: 112px !important;
    border-radius: 14px;
  }
  .home-view-account-guest-title { font-size: 18px !important; }
  .home-view-account-guest-sub { font-size: 12px !important; }
  .home-view-account-auth-login,
  .home-view-account-auth-register { min-width: 86px !important; height: 34px !important; line-height: 34px !important; font-size: 13px !important; }
  .home-view-shortcuts {
    flex: 1 1 auto !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
    max-width: 560px;
    margin-left: auto !important;
    width: auto !important;
  }
  .home-view-shortcut { min-width: 0; }
  .home-view-shortcut-icon { width: 34px !important; height: 34px !important; }
  .home-view-shortcut-label { font-size: 12px !important; }

  /* category bar */
  .home-view-category-bar {
    width: 100% !important;
    height: auto !important;
    padding: 4px 0 !important;
    margin: 0 0 16px !important;
    position: sticky;
    top: 78px;
    background: rgba(255, 255, 255, .97) !important;
    border-bottom: 1px solid #f1ead7;
    z-index: 80;
    overflow: visible !important;
  }
  .home-view-category-track {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    gap: 2px;
    padding: 0 2px;
    height: 78px !important;
  }
  .home-view-category-item {
    flex: 1 1 0 !important;
    min-width: 0;
    height: 78px !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  .home-view-category-icon-image { width: 30px !important; height: 30px !important; }
  .home-view-category-label { font-size: 12.5px !important; white-space: nowrap; }

  /* game sections */
  .home-view-section-list { width: 100% !important; }
  .home-view-section {
    width: 100% !important;
    height: auto !important;
    margin: 0 0 28px !important;
  }
  .home-view-section-header { height: auto !important; margin-bottom: 12px; }
  .home-view-section-title { font-size: 20px !important; }
  .home-view-section-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 18px !important;
    width: 100% !important;
    height: auto !important;
  }
  .home-view-game-card {
    width: auto !important;
    height: auto !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #fff;
    box-shadow: 0 8px 22px rgba(20, 20, 30, .08);
  }
  .home-view-game-thumb {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 4;
    border-radius: 14px !important;
  }
  .home-view-game-thumb > div {
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
  }
  .home-view-game-thumb img { width: 100% !important; height: 100% !important; object-fit: cover; }
  .home-view-section-load { display: none !important; }
  .home-view-section-more { font-size: 13px !important; }

  .home-view-compliance {
    width: 100% !important;
    height: auto !important;
    padding: 26px 0 8px !important;
    margin-top: 18px;
    border-top: 1px solid #f0ead8;
  }
  .home-view-compliance-copyright { font-size: 12px !important; }

  /* no mobile tab bar on desktop */
  .footer-shell { display: none !important; }

  /* floating download CTA */
  #tk-dl { right: 32px !important; bottom: 28px !important; height: 52px; padding: 0 26px; font-size: 14px; }

  /* register / login modal */
  .auth-popup__card {
    width: 440px !important;
    max-width: calc(100vw - 48px) !important;
    max-height: calc(100vh - 150px) !important;
    overflow-y: auto !important;
    border-radius: 18px !important;
    padding-bottom: 18px !important;
  }
  .auth-popup__logo {
    width: 220px !important;
    height: 64px !important;
    margin: 6px auto 4px !important;
  }
  .auth-popup__logo > div {
    width: 100% !important;
    height: 100% !important;
    background-size: contain !important;
    background-position: center center !important;
  }
  .auth-popup__close-pill {
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    margin: 12px auto 0 !important;
    background: #fff !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
    overflow: hidden;
  }
  .auth-popup__close-pill > div {
    width: 100% !important;
    height: 100% !important;
    background-size: contain !important;
    background-position: center center !important;
  }
  .auth-popup__submit { height: 46px !important; font-size: 16px !important; }
}

@media (min-width: 1384px) {
  #tk-dl { right: calc((100vw - 1320px) / 2 + 32px) !important; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .home-view-shell { padding: 0 22px 40px !important; }
  .home-view-section-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .home-view-banner { height: auto !important; min-height: 250px; }
  .home-view-account-card { flex-basis: 320px !important; width: 320px !important; }
  .home-view-shortcuts { max-width: 470px; }
}
