/* UGM_MMO_DESK_FIX:CTqInc08 — Money desk + games mast: no occlusion
   1) Amount chips must not cover Total / price
      (card max-height:520 + amount-block min-height:0 → flex-shrink overflow)
   2) GAME MARKETPLACE / CHOOSE YOUR GAME must not collide
      (sealed .home-mast__title{line-height:.92} + tiny head gap)
   3) Money hero (z-index:3) must not paint over games floor (z-index:1)
*/

/* ========== 1) Money card amount → Total ========== */
.ugm-mmo-hero-card {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}

.ugm-mmo-hero-amount-block {
  display: flex !important;
  flex-direction: column !important;
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  min-height: auto !important;
  height: auto !important;
  overflow: visible !important;
  gap: 8px !important;
  margin: 0 0 2px !important;
}

.ugm-mmo-hero-amount-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  flex: 0 0 auto !important;
  align-content: start !important;
}

.ugm-mmo-hero-amount {
  position: relative !important;
  z-index: 0 !important;
  box-sizing: border-box !important;
  height: auto !important;
  min-height: 40px !important;
}

.ugm-mmo-hero-total {
  position: relative !important;
  z-index: 2 !important;
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  margin-top: 12px !important;
  padding-top: 2px !important;
  min-height: 48px !important;
  align-items: center !important;
}

.ugm-mmo-hero-buy,
.ugm-mmo-hero-guarantee {
  position: relative !important;
  z-index: 2 !important;
  flex-shrink: 0 !important;
}

@media (max-width: 420px) {
  .ugm-mmo-hero-amount-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .ugm-mmo-hero-amount {
    min-height: 36px !important;
    font-size: 0.75rem !important;
    padding: 0 2px !important;
  }

  .ugm-mmo-hero-total {
    margin-top: 10px !important;
  }
}

/* ========== 3) Money desk clears games floor ========== */
#ugm-mmo-hero-ctqinc01,
.ugm-mmo-hero {
  position: relative !important;
  z-index: 1 !important;
  margin-bottom: clamp(0.85rem, 2.2vh, 1.35rem) !important;
  isolation: isolate;
}

.home-stage-games {
  position: relative !important;
  z-index: 2 !important;
  margin-top: clamp(0.65rem, 1.8vh, 1.15rem) !important;
  padding-top: clamp(0.35rem, 1.2vh, 0.75rem) !important;
}

/* ========== 2) Games mast kicker ↔ title ========== */
.home-stage-games .home-games-carousel-head,
.page.page-cover:has(.home-stage) .home-stage-games .home-games-carousel-head {
  gap: clamp(0.75rem, 2vh, 1.15rem) !important;
  row-gap: clamp(0.75rem, 2vh, 1.15rem) !important;
}

.home-stage-games .home-mast__meta,
.page.page-cover:has(.home-stage) .home-stage-games .home-mast__meta {
  margin-bottom: 0.2rem !important;
}

.home-stage-games .home-mast__kicker,
.page.page-cover:has(.home-stage) .home-stage-games .home-mast__kicker {
  line-height: 1.35 !important;
  margin: 0 !important;
  padding: 0.1em 0 !important;
  position: relative;
  z-index: 2;
}

.home-stage-games .home-mast__title-block,
.page.page-cover:has(.home-stage) .home-stage-games .home-mast__title-block {
  margin-top: 0.35rem !important;
  padding-top: 0.15rem !important;
}

.home-stage-games .home-mast__title,
.page.page-cover:has(.home-stage) .home-stage-games .home-mast__title {
  line-height: 1.12 !important;
  overflow: visible !important;
  padding-block: 0.08em 0.06em !important;
  margin: 0 !important;
}
