/* MKT Games home — Figma Games - 1 */

.home-app {
  max-width: min(100%, 430px);
}

.games-section {
  margin-bottom: 22px;
}

.section-heading {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.125;
  color: var(--mkt-text-on-dark);
}

.featured-card,
.mini-card {
  background: var(--mkt-card);
  color: var(--mkt-navy);
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 0 9px rgba(0, 0, 0, 0.18);
}

.featured-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.featured-top {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 23px;
  align-items: start;
  width: 100%;
}

.thumb {
  background: #d9d9d9;
  border-radius: 5px;
  object-fit: cover;
  display: block;
}

.thumb-slot {
  overflow: hidden;
}

.thumb-slot.is-loading {
  background: linear-gradient(90deg, #d8dee8 25%, #e8edf4 50%, #d8dee8 75%);
  background-size: 200% 100%;
  animation: thumb-shimmer 1s linear infinite;
}

@keyframes thumb-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.thumb-featured {
  width: 112px;
  height: 112px;
  object-position: center 20%;
}

#heroThumb[hidden] {
  display: none;
}

.thumb-other {
  width: 100%;
  height: 80px;
  margin-bottom: 0;
}

.featured-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.featured-copy h3,
.mini-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--mkt-navy);
}

.featured-copy p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 14px;
  font-weight: 500;
  color: var(--mkt-navy);
}

.bonus-line {
  justify-content: flex-end;
  gap: 5px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mkt-navy);
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.home-app [hidden] {
  display: none !important;
}

#homeLoader {
  min-height: 280px;
}

.hero-economy-loading,
.home-summary-error {
  margin: 0;
  width: 100%;
  font-size: 0.78rem;
  line-height: 1.35;
}

.hero-economy-loading {
  color: var(--mkt-muted);
}

.home-summary-error {
  padding: 8px 10px;
  border-radius: 10px;
  background: #f3f5f9;
  color: var(--mkt-text);
}

.featured-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.status-left,
.status-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-right {
  color: var(--mkt-good);
  font-size: 0.875rem;
  font-weight: 500;
}

.meta-icon {
  display: block;
  width: 24px;
  height: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  padding: 5px 15px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 14px;
  white-space: nowrap;
}

.pill-outline {
  border: 2px solid var(--mkt-navy);
  color: var(--mkt-navy);
  background: transparent;
}

.pill-green-outline {
  border: 2px solid var(--mkt-good);
  color: var(--mkt-good);
  background: #fff;
}

.pill-green {
  background: var(--mkt-good);
  color: var(--mkt-white);
  border: none;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  border: 2px solid var(--mkt-purple);
  color: var(--mkt-purple);
  background: transparent;
  border-radius: 10px;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 18px;
}

.chip-new {
  border-color: var(--mkt-bright-purple);
  color: var(--mkt-bright-purple);
}

.play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: auto;
  min-height: 40px;
  border: none;
  border-radius: 10px;
  padding: 10px 15px;
  background: var(--mkt-purple);
  color: var(--mkt-white);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 18px;
  text-decoration: none;
  cursor: pointer;
}

.play-btn img {
  display: block;
  width: 24px;
  height: 24px;
}

.other-games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 12px;
}

.mini-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 15px 10px;
}

.mini-card h3 {
  text-align: center;
}

.mini-card .chip-row {
  justify-content: center;
}

.mini-card .play-btn {
  margin-top: auto;
}

.mini-desc {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--mkt-muted);
  text-align: center;
}

.games-disclaimer {
  margin-top: 40px;
  color: var(--mkt-text-on-dark);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 16px;
  text-align: center;
}

.catalog-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.12);
  color: var(--mkt-text-on-dark);
  font-size: 0.85rem;
  text-align: center;
}

.games-section.is-loading .featured-card {
  opacity: 0.55;
  pointer-events: none;
}

@media (max-width: 360px) {
  .featured-top {
    grid-template-columns: 88px 1fr;
    gap: 12px;
  }

  .thumb-featured {
    width: 88px;
    height: 88px;
  }

  .other-games-grid {
    gap: 12px 8px;
  }
}

@media (min-width: 640px) {
  .home-app {
    max-width: min(100%, 480px);
  }
}
