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

html, body {
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: #2d2d4d;
}

body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hub-header {
  width: 100%;
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  text-decoration: none;
  color: #2d2d4d;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.2s ease;
}

.back-btn:hover { background: rgba(255, 255, 255, 0.95); }

.hub-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.6);
}

.spacer { width: 100px; }

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 900px;
}

.game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  border-radius: 20px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  text-align: center;
  min-height: 200px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  background: var(--card-color, #888);
}

.game-card:hover, .game-card:focus {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  outline: none;
}

.game-card .emoji {
  font-size: 3.5rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
}

.game-card .title {
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.game-card .desc {
  font-size: 0.85rem;
  font-weight: normal;
  opacity: 0.9;
  margin-top: 6px;
}

.empty-state {
  width: 100%;
  max-width: 600px;
  padding: 48px 24px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  text-align: center;
  border: 3px dashed rgba(45, 45, 77, 0.2);
}

.empty-state .big-emoji {
  font-size: 4rem;
  margin-bottom: 16px;
}

.empty-state h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.empty-state p {
  color: #555;
  line-height: 1.5;
  font-size: 1rem;
}

.empty-state code {
  background: rgba(45, 45, 77, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.95rem;
}
