.games-hub {
  width: min(1240px, calc(100% - 32px));
  margin: 18px auto 56px;
  color: var(--text);
}

.games-hero {
  display: grid;
  gap: 8px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.games-hero > .eyebrow {
  color: var(--cyan);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.games-hero h1 {
  max-width: 70ch;
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 2.8vw, 36px);
  letter-spacing: -.035em;
  line-height: 1.14;
}

.games-hero p {
  max-width: 68ch;
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.5;
}

.game-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.game-card {
  --game: var(--blue);
  position: relative;
  min-width: 0;
  padding: 16px;
  overflow: hidden;
  border-inline-start: 3px solid var(--game);
}

.game-card::after {
  display: none;
}

.game-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.game-id {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.game-logo {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--game) 72%, var(--line));
  border-radius: 50%;
  background: color-mix(in srgb, var(--game) 24%, var(--panel2));
  color: var(--text);
  font-size: .75rem;
  font-weight: 850;
}

.game-title h2 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.3;
}

.game-format {
  margin-top: 3px;
  color: var(--muted);
  font-size: .75rem;
}

.verify {
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel2);
  color: var(--muted);
  font-size: .7rem;
  font-weight: 750;
  white-space: nowrap;
}

.game-desc {
  min-height: 0;
  margin: 10px 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}

.latest {
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel2);
}

.latest-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.latest-top b {
  color: var(--text);
  font-size: .82rem;
}

.latest-top span {
  color: var(--muted);
  font-size: .74rem;
  font-variant-numeric: tabular-nums;
}

.nums {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.num {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding-inline: 6px;
  border: 1px solid color-mix(in srgb, var(--game) 76%, white);
  border-radius: 50%;
  background: color-mix(in srgb, var(--game) 76%, var(--panel));
  color: white;
  font-size: .76rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.num.extra {
  border-color: var(--line);
  background: var(--panel);
  /* .num pins color:#fff for the coloured main balls; the extra balls reuse the
     themed panel background, so in light mode they were white on white. */
  color: var(--text);
}

.payout {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 8px;
  color: var(--muted);
  font-size: .76rem;
}

.game-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.game-nav a {
  display: grid;
  min-height: 44px;
  place-items: center;
  padding: 7px 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel2);
  color: var(--text);
  font-size: .74rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.game-nav a:hover {
  border-color: var(--game);
}

.activity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  color: var(--muted);
  font-size: .75rem;
}

.activity a {
  color: var(--cyan);
  font-weight: 750;
  text-decoration: none;
}

.activity a:hover {
  text-decoration: underline;
}

.notice {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--green) 35%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--green) 8%, var(--panel));
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.5;
}

.notice strong {
  color: var(--text);
}

@media (max-width: 700px) {
  .games-hub {
    width: min(100% - 20px, 560px);
    margin-top: 12px;
  }

  .games-hero {
    padding: 16px;
  }

  .game-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .game-card {
    padding: 13px;
  }

  .game-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .verify {
    display: none;
  }

  .activity {
    align-items: flex-start;
    flex-direction: column;
  }
}
