/* JustBee Spelletjes: the hub. Letter tiles in the title and a card per game in its own colour. */

.hub-hero {
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 198, 41, .35), transparent 38%),
    radial-gradient(circle at 6% 90%, rgba(239, 106, 69, .14), transparent 40%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.hub-hero-inner {
  max-width: var(--width);
  margin: 0 auto;
  padding: 32px var(--gutter) 36px;
}

.hub-title {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: clamp(30px, 8.4vw, 62px);
  line-height: 1;
}

.tile {
  display: inline-grid;
  place-items: center;
  width: 1.08em;
  height: 1.18em;
  border: 3px solid var(--ink);
  border-radius: .22em;
  background: var(--panel);
  box-shadow: 0 4px 0 var(--ink);
  text-transform: uppercase;
  font-weight: 700;
  font-size: .78em;
}

.tile:nth-child(3n + 1) {
  background: var(--yellow);
  transform: rotate(-3deg);
}

.tile:nth-child(4n + 2) {
  background: #ffd9cc;
  transform: rotate(2deg);
}

.tile:nth-child(5n + 3) {
  background: #dfe8fb;
  transform: rotate(-1deg);
}

.hub-lead {
  margin: 20px 0 0;
  font-size: 19px;
  max-width: 44ch;
}

.hub-summary {
  margin: 10px 0 0;
  font-weight: 800;
  color: #8a5a00;
  min-height: 1.5em;
}

/* ---------- game cards */

.games {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

@media (min-width: 640px) {
  .games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 2px solid var(--ink);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 6px 0 var(--ink);
  transition: transform .12s ease;
}

.game-card:hover {
  transform: translateY(-2px) rotate(-.4deg);
}

.game-art-wrap {
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .55), transparent 45%),
    var(--accent);
  border-bottom: 2px solid var(--ink);
  padding: 16px;
  display: grid;
  place-items: center;
}

.game-art {
  width: 150px;
  height: 100px;
  overflow: visible;
}

.game-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
}

.game-name {
  font-size: 26px;
}

.game-pitch {
  margin: 0 0 6px;
  color: var(--muted);
  flex: 1;
}

.game-play {
  --accent-ink: #1f1f1f;
  background: var(--yellow);
}

.played-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 6px;
  border-radius: 999px;
  background: var(--good-soft);
  color: var(--good);
  font-weight: 800;
  font-size: 13px;
}

.played-badge::before {
  content: '✓';
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--good);
  color: #fff;
  font-size: 12px;
}

.game-card.is-played .game-play {
  background: var(--panel);
}

.how h2 {
  font-size: 24px;
}
