@import url("theme.css");

body {
  min-height: 100dvh;
  overflow-y: auto;
}

.hub {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1.5rem 4rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(94, 200, 192, 0.16), transparent 55%),
    linear-gradient(180deg, #1a3a2a 0%, #0d1a12 45%, #142218 100%);
}

.hub-header {
  text-align: center;
  max-width: 40rem;
  margin-bottom: 2.5rem;
  animation: rise 0.9s ease-out both;
}

.hub-header h1 {
  font-family: "Cinzel", serif;
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  font-weight: 700;
  color: var(--gold-soft);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hub-header .tagline {
  margin-bottom: 0;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  width: min(100%, 1080px);
}

.game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  padding: 1.75rem 1.5rem 1.5rem;
  background: linear-gradient(160deg, rgba(40, 62, 44, 0.85), rgba(18, 30, 22, 0.9));
  border: 1px solid var(--panel-border);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.game-card.featured {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 1.5rem;
  padding: 2rem;
  background: linear-gradient(120deg, rgba(61, 143, 90, 0.35), rgba(18, 30, 22, 0.92));
}

.game-card.featured .game-icon {
  font-size: 3.2rem;
}

.game-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.game-icon {
  font-size: 2.4rem;
  line-height: 1;
}

.game-card h2 {
  font-family: "Cinzel", serif;
  font-size: 1.15rem;
  color: var(--gold-soft);
}

.game-card p {
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgba(243, 231, 199, 0.78);
}

.play-btn {
  margin-top: 0.35rem;
  font-family: "Cinzel", serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--gold);
  background: rgba(61, 143, 90, 0.35);
  color: #fff8e7;
}

.hub-footer {
  margin-top: 2.5rem;
  font-size: 0.78rem;
  color: rgba(243, 231, 199, 0.5);
  text-align: center;
}

@media (max-width: 560px) {
  .game-card.featured {
    flex-direction: column;
    text-align: center;
  }
  .game-card.featured .game-card-body {
    align-items: center;
  }
}
