/* ---------- Hero ---------- */

.home-hero {
  position: relative;
  min-height: 86vh;
  min-height: 86dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) 1.5rem 4rem;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

/* Dims the slideshow so the text stays readable, then fades into the page */
.home-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 50% 45% at 50% 45%, rgba(var(--bg-rgb), 0.35), transparent 75%),
    linear-gradient(
      to bottom,
      rgba(var(--bg-rgb), 0.75) 0%,
      rgba(var(--bg-rgb), 0.55) 30%,
      rgba(var(--bg-rgb), 0.6) 70%,
      var(--bg) 100%
    );
}

.home-hero-content {
  position: relative;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.hero-logo-wrap {
  animation: float 6s ease-in-out infinite;
}

.logo-btn.hero-logo {
  width: 150px;
  height: 150px;
}

.hero-logo-hint {
  margin-top: -0.6rem;
  color: var(--text-muted);
  font-family: var(--font-pixel);
  font-size: 0.85rem;
}

@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}

.home-hero-text {
  max-width: 580px;
  color: var(--text-soft);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  font-size: 1.15rem;
  line-height: 1.65;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.4rem;
}

/* ---------- Games grid ---------- */

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.game-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-raised);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(224, 164, 106, 0.45);
  box-shadow: var(--shadow-lg);
}

.game-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.game-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover .game-card-media img {
  transform: scale(1.05);
}

.game-card-status {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--bg);
  color: var(--accent);
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.game-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem 1.4rem 1.5rem;
}

.game-card-title {
  font-size: 1.4rem;
  font-weight: 700;
}

.game-card-text {
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---------- About ---------- */

.about-block {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: 3rem;
}

.about-text p:not(.section-eyebrow) {
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.about-text a:not(.ghost-btn) {
  color: var(--accent);
  font-weight: 700;
}

.about-text .ghost-btn {
  margin-top: 0.5rem;
}

.about-badge {
  display: flex;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    radial-gradient(ellipse at center, rgba(224, 164, 106, 0.14), transparent 70%),
    var(--bg-raised);
  box-shadow: var(--shadow);
}

.about-badge img {
  width: 240px;
  height: auto;
  transition: transform 0.2s ease;
}

.about-badge a:hover img {
  transform: scale(1.04);
}

@media (max-width: 860px) {
  .about-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .games-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .logo-btn.hero-logo {
    width: 120px;
    height: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo-wrap {
    animation: none;
  }
}
