:root {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
  background: #f0f2f5;
  color: #1a1a1a;
}

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

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 32px 16px 48px;
}

/* ── Hub layout ── */
.hub {
  width: min(960px, 100%);
}

.hub-header {
  text-align: center;
  margin-bottom: 36px;
}

.hub-title {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111;
}

.hub-sub {
  margin-top: 8px;
  font-size: 1rem;
  color: #666;
}

/* ── Games grid ── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ── Game card ── */
.game-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  transition: transform 0.18s, box-shadow 0.18s;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.13);
}

.card-thumb {
  width: 100%;
  background: #e8f0f8;
  line-height: 0;
}

.thumb-canvas {
  width: 100%;
  height: auto;
  display: block;
}

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

.card-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111;
}

.card-desc {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.45;
  flex: 1;
}

.card-play-btn {
  display: inline-block;
  margin-top: 12px;
  align-self: flex-start;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  transition: background 0.15s;
}

.game-card:hover .card-play-btn {
  background: #333;
}

@media (max-width: 480px) {
  body { padding: 24px 12px 40px; }
  .hub-header { margin-bottom: 24px; }
  .games-grid { gap: 16px; }
}
