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

:root {
  --bg: #12101a;
  --surface: #1c1928;
  --border: #2e2a40;
  --text: #f2eee6;
  --text-dim: #9c96b0;
}

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

.hub {
  max-width: 960px;
  margin: 0 auto;
  padding: 72px 24px 48px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hub-header h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  letter-spacing: -0.02em;
}

.hub-header p {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 1.1rem;
}

.game-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.game-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
  outline: none;
}

.game-art {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--accent) 25%, var(--accent-bg)) 0%, var(--accent-bg) 75%);
}

.game-art span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}

.game-info {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.game-info h2 { font-size: 1.25rem; }

.game-info p {
  color: var(--text-dim);
  line-height: 1.45;
  flex: 1;
}

.game-meta {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.hub-footer {
  margin-top: auto;
  padding-top: 64px;
  font-size: 0.9rem;
}

.hub-footer a {
  color: var(--text-dim);
  text-decoration: none;
}

.hub-footer a:hover { color: var(--text); }
