:root {
  --bg: #15171c;
  --bg-elev: #1d1f25;
  --bg-elev-2: #23262d;
  --border: #2a2c33;
  --text: #ece9e4;
  --text-muted: #8e8a83;
  --accent: #d8595c;
  --accent-hover: #e57174;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --maxw: 1100px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background:
    radial-gradient(ellipse at top, #1f2229 0%, var(--bg) 55%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent-hover); }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 72px 24px 56px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.hero__logo {
  width: 220px;
  height: 220px;
  max-width: 60vw;
  max-height: 60vw;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
  user-select: none;
}

.hero__wordmark {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  margin: 16px 0 4px;
  color: var(--text);
}

.hero__tagline {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.hero__steam-link {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.hero__steam-link:hover { border-bottom-color: var(--accent-hover); }

/* ---------- Section ---------- */
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 28px;
  padding-left: 4px;
  position: relative;
}
.section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.1em;
  background: var(--accent);
  border-radius: 2px;
  margin-right: 12px;
  vertical-align: -3px;
}

/* ---------- Games grid ---------- */
.games {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px 64px;
  flex: 1;
  width: 100%;
}

.games__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* ---------- Featured card ---------- */
.game-card.game-card--featured {
  display: flex;
  align-items: stretch;
  margin: 0 0 32px;
  border-color: rgba(216, 89, 92, 0.35);
  width: 100%;
}
.game-card--featured .game-card__media {
  flex: 0 0 auto;
  display: block;
  background: transparent;
  overflow: hidden;
}
.game-card--featured .game-card__media img {
  height: 100%;
  width: auto;
  display: block;
}
.game-card--featured .game-card__body {
  flex: 1 1 0;
  min-width: 0;
}
.game-card--featured:hover .game-card__media img {
  transform: none;
}
.game-card--featured .game-card__body {
  padding: 28px 32px;
  gap: 14px;
  justify-content: center;
}
.game-card--featured .game-card__title {
  font-size: 1.85rem;
}
.game-card--featured .game-card__desc {
  font-size: 0.98rem;
  flex: 0 0 auto;
  line-height: 1.5;
}
.game-card--featured .btn {
  font-size: 0.95rem;
  padding: 10px 20px;
  margin-top: 6px;
}

@media (max-width: 700px) {
  .game-card.game-card--featured {
    flex-direction: column;
  }
  .game-card--featured .game-card__media {
    aspect-ratio: 460 / 215;
    width: 100%;
  }
  .game-card--featured .game-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .game-card--featured .game-card__body {
    padding: 20px 22px 24px;
  }
  .game-card--featured .game-card__title {
    font-size: 1.5rem;
  }
}

.game-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: #3a3d46;
  box-shadow: var(--shadow);
}

.game-card__media {
  display: block;
  aspect-ratio: 460 / 215;
  background: var(--bg-elev-2);
  overflow: hidden;
}
.game-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.game-card:hover .game-card__media img { transform: scale(1.04); }

.game-card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.game-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.chip {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--bg-elev-2);
  color: var(--text);
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.chip--muted { color: var(--text-muted); }
.chip--accent {
  background: rgba(216, 89, 92, 0.14);
  border-color: rgba(216, 89, 92, 0.4);
  color: var(--accent-hover);
}

.game-card__title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.game-card__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}

.btn {
  align-self: flex-start;
  display: inline-block;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 9px 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  margin-top: 4px;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.footer p { margin: 0; }
.footer__links a { color: var(--text-muted); }
.footer__links a:hover { color: var(--accent-hover); }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .hero { padding: 48px 20px 40px; }
  .games { padding: 8px 20px 48px; }
  .games__grid { gap: 18px; }
}
