/*! UGM home games carousel — mobile full card (CTqInc01)
 * Phone coverflow clipped the active card (scene shorter than card + overflow:hidden)
 * and hard-cut side peeks → 「卡片显示不全」.
 * Mobile: one full card in view; arrows/swipe still change games.
 * UGM_HOME_GAMES_MOB:CTqInc01
 */

@media (max-width: 720px) {
  .home-section.home-section--games.home-games-carousel-section,
  .home-stage--mmo .home-stage-games .home-section.home-section--games.home-games-carousel-section,
  .page.page-cover:has(.home-stage) .home-section.home-section--games.home-games-carousel-section {
    overflow: visible !important;
  }

  .home-games-carousel {
    min-height: 0 !important;
    --carousel-gap-1: 0px !important;
    --carousel-gap-2: 0px !important;
  }

  .home-games-carousel-stage,
  .page.page-cover:has(.home-stage) .home-games-carousel-stage {
    height: auto !important;
    min-height: clamp(360px, 108vw, 430px) !important;
    overflow: visible !important;
    margin-top: 0.25rem !important;
    padding-top: 0.35rem !important;
    padding-bottom: 0.5rem !important;
  }

  .home-games-carousel-scene {
    position: relative !important;
    inset: auto !important;
    height: clamp(340px, 104vw, 410px) !important;
    min-height: clamp(340px, 104vw, 410px) !important;
    overflow: visible !important;
    perspective: none !important;
  }

  .home-games-carousel-track {
    position: absolute !important;
    inset: 0 !important;
  }

  .home-games-card,
  .home-games-hit {
    width: min(280px, 82vw) !important;
    height: min(390px, 112vw) !important;
    max-width: 82vw !important;
  }

  /* Only the active card is visible — full face, no clipped side stubs */
  .home-games-card[data-slot='1'],
  .home-games-card[data-slot='-1'],
  .home-games-card[data-slot='2'],
  .home-games-card[data-slot='-2'],
  .home-games-card[data-slot='far'],
  .home-games-card.is-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    filter: none !important;
    transform: translate(-50%, -50%) scale(0.92) !important;
  }

  .home-games-hit[data-slot='1'],
  .home-games-hit[data-slot='-1'],
  .home-games-hit[data-slot='2'],
  .home-games-hit[data-slot='-2'] {
    display: none !important;
  }

  .home-games-card[data-slot='0'],
  .home-games-card.is-active {
    opacity: 1 !important;
    visibility: visible !important;
    filter: brightness(1) !important;
    transform: translate(-50%, -50%) translateX(0) scale(1) !important;
    z-index: 30 !important;
  }

  .home-games-hit[data-slot='0'] {
    display: block !important;
    width: min(280px, 82vw) !important;
    height: min(390px, 112vw) !important;
    transform: translate(-50%, -50%) scale(1) !important;
    z-index: 5 !important;
  }

  .home-games-card-body {
    padding: 1rem 0.85rem 1.05rem !important;
  }

  .home-games-card-cta {
    min-height: 40px !important;
    font-size: 0.78rem !important;
    padding: 0.5rem 1.15rem !important;
  }

  .home-games-carousel-reflect {
    display: none !important;
  }
}

@media (max-width: 400px) {
  .home-games-card,
  .home-games-hit,
  .home-games-hit[data-slot='0'] {
    width: min(288px, 90vw) !important;
    height: min(400px, 122vw) !important;
  }

  .home-games-carousel-stage,
  .page.page-cover:has(.home-stage) .home-games-carousel-stage {
    min-height: clamp(380px, 124vw, 440px) !important;
  }

  .home-games-carousel-scene {
    height: clamp(360px, 120vw, 420px) !important;
    min-height: clamp(360px, 120vw, 420px) !important;
  }
}
