.section { padding: 56px 0; }

.section-title {
  margin: 0 0 28px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: var(--fw-head);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));
  gap: 28px;
}

.game {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  background: var(--bg-2);
  border: 1px solid var(--line);
  box-shadow: 0 12px 36px var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game:hover { transform: translateY(-4px); box-shadow: 0 18px 44px var(--shadow); }

.game-banner { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }

.game-body { display: flex; gap: 16px; padding: 0 20px; margin-top: -32px; }

.game-icon {
  position: relative;
  flex: none;
  width: 88px;
  height: 88px;
  border-radius: 22%;
  border: 3px solid var(--bg-2);
  background: var(--bg-2);
  box-shadow: 0 6px 18px var(--shadow);
}

.game-info { padding-top: 40px; min-width: 0; }
.game-title { margin: 0 0 6px; font-size: 24px; font-weight: var(--fw-head); }
.game-text { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.45; }

.game-link { color: inherit; text-decoration: none; }
.game-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.game-link:focus-visible { outline: none; }
.game:has(.game-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.game { position: relative; }
.store { position: relative; z-index: 2; }

.game-actions { display: flex; flex-wrap: wrap; gap: 14px; padding: 20px; margin-top: auto; }

.game-actions { align-items: center; }

.store { display: inline-flex; border-radius: 10px; }
.store img { display: block; height: 48px; width: auto; }
.store:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 520px) {
  .section { padding: 36px 0; }
  .wrap { padding: 0 16px; }
  .game-body { margin-top: -28px; }
  .game-icon { width: 72px; height: 72px; }
  .game-info { padding-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .game { transition: none; }
  .game:hover { transform: none; }
}
