*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f0f1a;
  --surface: #1a1a2e;
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --radius: 10px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.5px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: .95rem;
  transition: color .15s;
}
nav a:hover { color: var(--text); }

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 2rem 2rem;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: .75rem; }
.hero p  { color: var(--muted); font-size: 1.1rem; }

/* Games grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.game-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(124,58,237,.25);
}
.game-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #2d2d44;
}
.game-card-body { padding: .75rem 1rem 1rem; flex: 1; display: flex; flex-direction: column; }
.game-card-title { font-weight: 700; font-size: .95rem; margin-bottom: .25rem; }
.game-card-desc  { color: var(--muted); font-size: .8rem; line-height: 1.4; flex: 1; }
.play-btn {
  display: inline-block;
  margin-top: .75rem;
  padding: .4rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-size: .85rem;
  font-weight: 600;
  text-align: center;
  transition: background .15s;
}
.play-btn:hover { background: var(--accent-hover); }

.game-card--featured {
  grid-column: span 2;
  grid-row: span 2;
}
.game-card--featured .game-card-title { font-size: 1.3rem; }
.game-card--featured .game-card-desc  { font-size: .9rem; }
.game-card--featured .play-btn { font-size: 1rem; padding: .55rem 1.4rem; }

.thumb-placeholder { width: 100%; aspect-ratio: 16/9; background: #2d2d44; }
.empty { color: var(--muted); grid-column: 1/-1; padding: 2rem 0; }

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: .85rem;
  margin-top: auto;
}
