/* UGM_PLATFORM_FLAT:CTqInc01
   Money desk platforms: drop redundant BUYING FOR strip, flatten tall
   platform tiles, inject clear selected mark on the grid. */

/* 1) Hide redundant BUYING FOR (money-realm-switch) — keep top grid only */
.money-realm-switch,
.buy-panel .money-realm-switch,
.buy-panel--money .money-realm-switch,
.shop-page--money-desk .money-realm-switch {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 2) Flatten platform tiles (was ~6.5rem / 104px tall column cards) */
.ctn-item.ctn-item--grid.ctn-item--platform,
.ctn-item--platform.ctn-item--grid,
a.ctn-item.ctn-item--platform {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.55rem !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  padding: 0.55rem 0.7rem !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22) !important;
  position: relative !important;
}

.ctn-item--platform .ctn-item-platform-icon,
.ctn-item--platform .platform-icon {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
  margin: 0 !important;
}

.ctn-item--platform .ctn-item-platform-icon svg,
.ctn-item--platform .platform-icon svg {
  width: 18px !important;
  height: 18px !important;
}

.ctn-item--platform .ctn-item-label {
  margin: 0 !important;
  font-size: 0.82rem !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
  text-align: left !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.ctn-item--platform:hover,
.ctn-item--platform:focus-visible {
  transform: none !important;
  border-color: rgba(232, 184, 74, 0.45) !important;
}

/* 3) Selected mark injection — gold rim + corner check */
.ctn-item--platform.is-active,
.ctn-item.ctn-item--grid.ctn-item--platform.is-active,
a.ctn-item.ctn-item--platform.is-active,
.ctn-item--platform[aria-current="true"] {
  border-color: rgba(255, 193, 77, 0.78) !important;
  background:
    linear-gradient(165deg, rgba(255, 193, 77, 0.2), rgba(255, 193, 77, 0.05) 55%),
    rgba(14, 18, 26, 0.94) !important;
  box-shadow:
    0 0 0 1px rgba(255, 193, 77, 0.28),
    0 10px 22px rgba(255, 193, 77, 0.14) !important;
}

.ctn-item--platform.is-active::after,
.ctn-item--platform[aria-current="true"]::after {
  content: "✓" !important;
  position: absolute !important;
  top: 4px !important;
  right: 4px !important;
  width: 16px !important;
  height: 16px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #ffd56a, #e8b84a) !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35) !important;
  color: #1a1208 !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  line-height: 16px !important;
  text-align: center !important;
  display: block !important;
  opacity: 1 !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

/* Compact grid gap so flat tiles read as one control strip */
.ctn-grid:has(> .ctn-item--platform),
.shop-main .ctn-grid:has(.ctn-item--platform) {
  gap: 0.55rem !important;
}

@media (max-width: 640px) {
  .ctn-item.ctn-item--grid.ctn-item--platform,
  .ctn-item--platform.ctn-item--grid,
  a.ctn-item.ctn-item--platform {
    padding: 0.5rem 0.6rem !important;
    gap: 0.45rem !important;
  }

  .ctn-item--platform .ctn-item-label {
    font-size: 0.78rem !important;
  }
}
