/* Home popular-games rail: icon + name only, no per-game cards. */
.page-home .mvp-section--games {
  margin-top: 0;
}

.page-home .mvp-section__head--games {
  align-items: center;
  margin-bottom: 8px;
}

.page-home .mvp-section__head--games h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 780;
  letter-spacing: -.015em;
  color: #172033;
}

.page-home .mvp-link--games {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #667085;
  font-size: 13px;
  font-weight: 650;
}

.page-home .mvp-games-marketplace {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)) !important;
  justify-content: stretch !important;
  align-items: start !important;
  gap: 10px 18px !important;
  width: 100% !important;
  max-width: none !important;
}

.page-home .mvp-games-marketplace__item {
  min-width: 0 !important;
  width: 100% !important;
  height: auto !important;
}

.page-home .quick-game-card--plain {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 88px !important;
  height: auto !important;
  padding: 6px 4px !important;
  display: grid !important;
  grid-template-rows: 54px auto !important;
  justify-items: center !important;
  align-content: start !important;
  gap: 7px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #111827 !important;
  text-align: center !important;
  text-decoration: none !important;
  transform: none !important;
  transition: color 150ms ease, background-color 150ms ease !important;
}

.page-home .quick-game-card--plain:hover,
.page-home .quick-game-card--plain:focus-visible {
  background: #f9fafb !important;
  color: #111827 !important;
  outline: 0 !important;
  transform: none !important;
  box-shadow: none !important;
}

.page-home .quick-game-card--plain .quick-game-card__icon {
  width: 54px !important;
  height: 54px !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 !important;
  border: 1.5px solid #e4e7ec !important;
  border-radius: 14px !important;
  background: #fff !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

.page-home .quick-game-card--plain .quick-game-card__icon img,
.page-home .quick-game-card--plain .quick-game-card__fallback {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  border: 0 !important;
  border-radius: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
}

.page-home .quick-game-card--plain .quick-game-card__title {
  max-width: 92px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: inherit !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}

/* Priority hero cards stay visual, but no longer dominate the first viewport. */
.page-home .home-priority-card {
  min-height: 220px !important;
  max-height: 240px !important;
  padding: 20px 22px !important;
}

.page-home .home-priority-card__body {
  gap: 8px !important;
}

.page-home .home-priority-card__action {
  min-height: 40px !important;
}

/* The homepage and catalog now share the same calm surface hierarchy: content
   sections are separated by spacing, not card-inside-card shadows. */
.page-home .mvp-section--categories,
.page-home .mvp-section--games,
.page-home .home-products-feed,
.page-home .marketplace-proof,
.page-home .home-faq-layout {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Specificity intentionally includes the page owner section: the late QA layer
   still contains a legacy generic chip policy, but it must not repaint home. */
html body.page-home .mvp-section--categories .mvp-category-chip {
  border: 1.5px solid #e4e7ec !important;
  background: #fff !important;
  color: #475467 !important;
  box-shadow: none !important;
  transform: none !important;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease !important;
}

html body.page-home .mvp-section--categories .mvp-category-chip:hover,
html body.page-home .mvp-section--categories .mvp-category-chip:focus-visible {
  border-color: #d0d5dd !important;
  background: #f9fafb !important;
  color: #101828 !important;
  box-shadow: none !important;
  transform: none !important;
}

html body.page-home .mvp-section--categories .mvp-category-chip.is-active,
html body.page-home .mvp-section--categories .mvp-category-chip[aria-current="page"] {
  border: 2px solid #7f56d9 !important;
  background: #fff !important;
  color: #101828 !important;
  box-shadow: none !important;
  transform: none !important;
}

.page-home .marketplace-proof__grid {
  gap: 0 !important;
  border-top: 1px solid #eaecf0;
  border-bottom: 1px solid #eaecf0;
}

.page-home .marketplace-proof__item {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.page-home .marketplace-proof__item + .marketplace-proof__item {
  border-left: 1px solid #eaecf0 !important;
}

.page-home .home-faq-layout__list details {
  border: 0 !important;
  border-radius: 0 !important;
  border-bottom: 1px solid #eaecf0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.page-home .home-faq-layout__list details:first-child {
  border-top: 1px solid #eaecf0 !important;
}

.page-home .home-faq-layout__list details:hover,
.page-home .home-faq-layout__list details:focus-within {
  background: #f9fafb !important;
  box-shadow: none !important;
}

.page-home .home-products-feed__status {
  box-shadow: none !important;
}

@media (max-width: 980px) {
  .page-home .home-priority-card {
    min-height: 196px !important;
    max-height: 216px !important;
  }
}

@media (max-width: 640px) {
  .page-home .mvp-section__head--games h2 {
    font-size: 20px;
  }

  .page-home .mvp-games-marketplace {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    width: 100% !important;
    gap: 10px 4px !important;
  }

  .page-home .mvp-games-marketplace__item,
  .page-home .quick-game-card--plain {
    width: 100% !important;
  }

  .page-home .quick-game-card--plain {
    min-height: 82px !important;
    grid-template-rows: 50px auto !important;
  }

  .page-home .quick-game-card--plain .quick-game-card__icon {
    width: 50px !important;
    height: 50px !important;
    border-radius: 13px !important;
  }

  .page-home .quick-game-card--plain .quick-game-card__icon img,
  .page-home .quick-game-card--plain .quick-game-card__fallback {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
  }

  .page-home .home-priority-card {
    min-height: 176px !important;
    max-height: 196px !important;
    padding: 17px 18px !important;
  }

  .page-home .marketplace-proof__grid {
    border: 0;
  }

  .page-home .marketplace-proof__item + .marketplace-proof__item {
    border-left: 0 !important;
    border-top: 1px solid #eaecf0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .quick-game-card--plain,
  html body.page-home .mvp-section--categories .mvp-category-chip {
    transition: none !important;
  }
}
