:root {
  --bg: #fdf6ec;
  --card: #ffffff;
  --ink: #33322e;
  --accent: #ff6b6b;
  --accent2: #4ecdc4;
  --accent3: #ffd93d;
  --radius: 20px;
  --shadow: 0 6px 0 rgba(51, 50, 46, 0.12);
}

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

body {
  font-family: "Comic Sans MS", "Chalkboard SE", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  text-align: center;
  padding: 2rem 1rem 1rem;
}

.site-header h1 { font-size: 2.4rem; }

.site-header p {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  color: #777;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  padding: 1.5rem;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  align-content: start;
}

.game-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  border: 3px solid transparent;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.game-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--accent3);
}

.game-emoji { font-size: 3rem; display: block; }

.game-card h2 {
  margin: 0.6rem 0 0.3rem;
  font-size: 1.3rem;
}

.game-card p {
  font-size: 0.95rem;
  color: #666;
  min-height: 2.6em;
}

.game-players {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--accent2);
  color: #fff;
  font-size: 0.8rem;
  font-weight: bold;
}

.empty {
  text-align: center;
  grid-column: 1 / -1;
  font-size: 1.2rem;
  padding: 3rem;
}

.site-footer {
  text-align: center;
  padding: 1.5rem;
  color: #999;
  font-size: 0.9rem;
}

@media (max-width: 480px) {
  .site-header h1 { font-size: 1.8rem; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
