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

:root {
  --bg: #f0f4f8;
  --card-bg: #ffffff;
  --text: #2d3748;
  --text-light: #718096;
  --accent: #4c6ef5;
  --accent-hover: #3b5bdb;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius: 12px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

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

.site-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
}

.site-header p {
  color: var(--text-light);
  margin-top: 0.4rem;
  font-size: 1.05rem;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1.5rem 3rem;
}

.game-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.game-card-icon {
  font-size: 3.5rem;
  text-align: center;
  padding: 2rem 1rem 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  line-height: 1;
}

.game-card-body {
  padding: 1.25rem;
  flex: 1;
}

.game-card-body h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.game-card-body p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.45;
}
