/* ALISHAGAMES STAGING — KARTU APK SILVER CHROME */

#appsGrid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 9px 7px !important;
  align-items: stretch !important;
}

#appsGrid .app-card {
  position: relative !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 118px !important;
  height: auto !important;
  padding: 9px 5px !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 7px !important;

  border: 2px solid #c9d2dc !important;
  border-radius: 9px 18px 7px 18px / 9px 18px 7px 18px !important;
  background: linear-gradient(
    155deg, #29252b, #09080b 55%, #020203
  ) !important;

  box-shadow:
    inset 0 2px 2px rgba(255,255,255,.35),
    inset 0 -3px 4px rgba(35,42,52,.8),
    0 0 0 1px #343b45,
    0 5px 12px rgba(0,0,0,.55) !important;

  color: #fff !important;
  overflow: hidden !important;
  isolation: isolate !important;
}

#appsGrid .app-card::after {
  content: "" !important;
  position: absolute !important;
  top: 3px !important;
  left: 3px !important;
  width: 46% !important;
  height: 43% !important;
  border-radius: inherit !important;
  background: linear-gradient(
    145deg,
    rgba(255,255,255,.42),
    rgba(220,230,245,.12) 40%,
    transparent 75%
  ) !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

#appsGrid .app-logo {
  position: relative !important;
  z-index: 1 !important;
  width: 64px !important;
  height: 64px !important;
  max-width: 100% !important;
  flex-shrink: 0 !important;
  border: 1px solid rgba(210,220,235,.45) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #101014 !important;
  box-shadow: 0 3px 8px rgba(0,0,0,.45) !important;
}

#appsGrid .app-logo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: inherit !important;
}

#appsGrid .app-card strong {
  position: relative !important;
  z-index: 1 !important;
  display: -webkit-box !important;
  width: 100% !important;
  padding: 0 2px !important;
  margin: 0 !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  text-overflow: ellipsis !important;
  overflow-wrap: anywhere !important;
  text-align: center !important;
  color: #fff !important;
  font-size: 10px !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
}

#appsGrid .app-card:active {
  transform: scale(.97) !important;
}

@media (max-width: 360px) {
  #appsGrid {
    gap: 7px 5px !important;
  }

  #appsGrid .app-logo {
    width: 56px !important;
    height: 56px !important;
  }
}

@media (min-width: 768px) {
  #appsGrid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}
