.rf-games {
  padding: 40px 0 80px;
  position: relative;
  background-image: url("./../../../images/games-bg.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: cover;
}

.rf-games__eyebrow {
  text-align: center;
  font-size: 16px;
  margin: 0 0 8px;
}

.rf-games__title {
  font-size: 42px;
  margin-bottom: 48px;
}

.rf-games__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.rf-game-card {
  background: transparent;
  padding: 0;
  border-radius: var(--rf-radius-md);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  color: inherit;
}

.rf-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(61, 125, 255, 0.25);
}

.rf-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--rf-radius-md);
}

.rf-game-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 6px 0;
  font-size: 13px;
}

.rf-game-card__name {
  color: #d9def0;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 65%;
}

.rf-game-card__rating {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.rf-game-card__rating span {
  color: #ffd84d;
}

.rf-games__action {
  display: flex;
  justify-content: center;
}

.rf-games__action.is-hidden {
  display: none;
}

.rf-game-card--hidden {
  display: none;
}

@media (max-width: 1024px) {
  .rf-games__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 720px) {
  .rf-games__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .rf-games__title {
    font-size: 28px;
  }
}
