/* Home page */
.hero {
  position: relative;
  text-align: center;
  min-height: 400px;
  padding: 6rem 2rem 4rem;
  border-bottom: 1px solid var(--color-border);
  background: url("../images/indexphoto1.webp") no-repeat center / cover;
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.hero__content { position: relative; }

.hero__text {
  font-family: var(--font-heading);
  font-size: 2.2em;
  font-weight: 400;
  letter-spacing: 1px;
  min-height: 1.5em;
  transition: opacity 1s ease;
}
.hero__content p { font-size: 1.1rem; margin-bottom: 2rem; }

.fade-word {
  display: inline-block;
  margin: 0 10px;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.fade-word.visible { opacity: 1; }

.featured {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 1rem 5% 4rem;
}
.featured h3 {
  text-align: center;
  margin: 2rem 0;
  font-family: var(--font-heading);
  font-size: 2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-accent);
}
.featured__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3rem;
}

.game-card {
  display: block;
  width: 100%;
  max-width: 17rem;
  margin: auto;
  padding: 1.5rem;
  background: var(--color-surface);
  border: 2px solid #706f6f;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}
.game-card:hover { transform: scale(1.06); box-shadow: 0 0 25px rgba(243, 156, 18, 0.5); }
.game-card__image {
  height: 160px;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: #333 center / cover no-repeat;
}
.game-card h4 { font-family: var(--font-heading); font-size: 1.2rem; margin: 0.5rem 0; }
.game-card p { margin: 0.2rem 0; color: var(--color-text-muted); font-size: 0.95rem; }

@media (max-width: 806px) {
  .hero { padding-top: 3rem; }
  .hero__text .fade-word { display: block; }
  .game-card:hover { transform: none; }
  .featured__grid { gap: 1.5rem; }
}
