.popular-games {
  min-width: 0;
  padding: 0.875rem 1rem 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background: var(--bg-surface);
  color: var(--text-main);
}

.popular-games h2 {
  font-size: 1rem;
  font-weight: 600;
}

.popular-games-list {
  display: flex;
  gap: 0.875rem;
  margin: 0.375rem -0.25rem 0;
  padding: 0.25rem 0.25rem 0.375rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 0.25rem;
  scrollbar-width: thin;
}

.popular-games-list li {
  flex: 0 0 clamp(3.75rem, 17vw, 5rem);
  min-width: 0;
  scroll-snap-align: start;
}

.popular-games-list a {
  display: grid;
  gap: 0.375rem;
  border-radius: 0.375rem;
  color: inherit;
  text-align: center;
}

.popular-games-list a:hover {
  color: var(--link-hover);
}

.popular-games-cover {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 0.75rem;
  background: var(--bg-surface-2);
  object-fit: cover;
}

.popular-games-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-games-placeholder {
  color: var(--text-muted);
  font-size: 1.5rem;
  font-weight: 600;
}

.popular-games-name {
  overflow: hidden;
  font-size: 0.8125rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
