:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --accent: #6c63ff;
  --text: #2b2b2b;
  --muted: #777;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 24px;
}

.header {
  text-align: center;
  margin-bottom: 32px;
}

.header h1 {
  font-family: 'Poppins', sans-serif;
  margin-bottom: 8px;
}

.header p {
  color: var(--muted);
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* CARD */
.game-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  aspect-ratio: 1 / 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(0,0,0,0.15);
}

/* IMAGE */
.game-card img {
  width: 100%;
  height: 70%;
  object-fit: cover;
}

/* TITLE */
.game-card .title {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  font-size: 1.05rem;
  background: linear-gradient(180deg, #fff, #f3f3ff);
}
