/* Homepage-specific CSS (required by prompt, even for inner page) */
@media (max-width: 1023px) {
  .page-blog-zm88-platform-introduction__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-blog-zm88-platform-introduction__hero-brand,
  .page-blog-zm88-platform-introduction__hero-jackpot {
    display: none !important;
  }
  .page-blog-zm88-platform-introduction__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-blog-zm88-platform-introduction__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-blog-zm88-platform-introduction__game-trial-topbar,
  .page-blog-zm88-platform-introduction__game-trial-bottombar {
    display: none !important;
  }
  .page-blog-zm88-platform-introduction__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-blog-zm88-platform-introduction__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-blog-zm88-platform-introduction__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-blog-zm88-platform-introduction__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-blog-zm88-platform-introduction__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-blog-zm88-platform-introduction__hero-brand,
  .page-blog-zm88-platform-introduction__hero-jackpot {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-blog-zm88-platform-introduction__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-blog-zm88-platform-introduction__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-blog-zm88-platform-introduction__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-blog-zm88-platform-introduction__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-blog-zm88-platform-introduction__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
  /* PC specific styles for homepage modules, required by prompt */
  .page-blog-zm88-platform-introduction__hero-brand h1 {
    font-size: 2em; /* Example, adjust as needed */
  }
  .page-blog-zm88-platform-introduction__promo-strip {
    display: flex;
    justify-content: space-between;
    max-width: 1280px;
    margin: 16px auto;
    padding: 0 16px;
  }
  .page-blog-zm88-platform-introduction__promo-card {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 15px;
  }
  .page-blog-zm88-platform-introduction__hot-games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    max-width: 1280px;
    margin: 16px auto;
    padding: 0 16px;
  }
  .page-blog-zm88-platform-introduction__hot-games-item-name,
  .page-blog-zm88-platform-introduction__hot-games-item-rtp,
  .page-blog-zm88-platform-introduction__hot-games-item-desc {
    display: block;
    text-align: center;
  }
}

/* Mobile-specific CSS for homepage modules (required by prompt, even for inner page) */
@media (max-width: 768px) {
  /* Promo strip */
  .page-blog-zm88-platform-introduction__promo-strip-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow-x: hidden;
    gap: 10px;
  }
  .page-blog-zm88-platform-introduction__promo-card {
    flex-direction: column !important;
    text-align: center;
    padding: 10px;
  }
  .page-blog-zm88-platform-introduction__promo-card-image {
    width: 100% !important;
    height: auto !important;
    margin-bottom: 8px;
  }
  .page-blog-zm88-platform-introduction__promo-card-button {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Hot games */
  .page-blog-zm88-platform-introduction__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .page-blog-zm88-platform-introduction__hot-games-item-name,
  .page-blog-zm88-platform-introduction__hot-games-item-rtp,
  .page-blog-zm88-platform-introduction__hot-games-item-desc {
    display: none; /* Hide on mobile */
  }
  .page-blog-zm88-platform-introduction__hot-games-item-image {
    width: 100% !important;
    height: auto !important;
  }

  /* Brand intro (if present) */
  .page-blog-zm88-platform-introduction__brand-intro {
    padding: 15px;
  }

  /* Winner ticker (if present) */
  .page-blog-zm88-platform-introduction__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 10px 0;
  }
  body, main {
    padding-bottom: 50px; /* Adjust for ticker height */
  }

  /* General image and container rules for mobile */
  .page-blog-zm88-platform-introduction img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog-zm88-platform-introduction__section,
  .page-blog-zm88-platform-introduction__container,
  .page-blog-zm88-platform-introduction__card,
  .page-blog-zm88-platform-introduction__image-text-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
 }}