/* Games hub — page-local styles. Site CSS is ?v=20261118j. */
.games-page { padding: 8px 0 56px; }
.games-page .page-hero { padding: 12px 0 0; }
.games-page .page-hero p { max-width: 640px; }

/* To add a game: copy a .game-tile, set href, image, name, and one-line description. */
.games-hub {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 20px 0 0;
}
.game-tile {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(180deg, #0a1614, #07110f);
  border: 2px solid rgba(125, 255, 58, 0.5);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 0 22px rgba(125, 255, 58, 0.16);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.game-tile:hover,
.game-tile:focus-visible {
  border-color: #7dff3a;
  box-shadow:
    0 0 28px rgba(125, 255, 58, 0.4);
  transform: translateY(-2px);
  outline: none;
}
.game-tile-media {
  aspect-ratio: 16 / 9;
  background: #07110f;
  overflow: hidden;
}
.game-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.game-tile-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
}
.game-tile h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}
.game-tile p {
  margin: 0;
  color: #c9d4e6;
  font-size: 15px;
  line-height: 1.4;
}
.game-tile-go {
  margin-top: 8px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: #7dff3a;
  color: #08150a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 0 0 12px rgba(125, 255, 58, 0.45);
}

/* Section groups and small badges (Kids). */
.games-section { margin: 36px 0 0; }
.games-section-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 4px; }
.games-section-head h2 { margin: 0; font-size: 24px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.games-section-head p { margin: 0; flex-basis: 100%; color: #c9d4e6; font-size: 15px; }
.games-section .games-hub { margin-top: 14px; }
.game-tile-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid currentColor;
}
.game-tile-badge--family { color: #ffd84a; background: rgba(255, 216, 74, 0.08); }
.game-tile-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.game-tile-badges .game-tile-badge { align-self: auto; }
.game-tile-badge--new { color: #050b16; background: #7dff3a; border-color: #b6ff3b; box-shadow: 0 0 10px rgba(125, 255, 58, 0.45); }
.game-tile-badge--kids { color: #1a1200; background: #ffd84a; border-color: #ffe98a; font-weight: 900; letter-spacing: 0.08em; box-shadow: 0 0 12px rgba(255, 216, 74, 0.55); }
.games-section--family .game-tile { border-color: rgba(255, 216, 74, 0.45); box-shadow: 0 0 22px rgba(255, 216, 74, 0.12); }
.games-section--family .game-tile:hover, .games-section--family .game-tile:focus-visible { border-color: #ffd84a; box-shadow: 0 0 28px rgba(255, 216, 74, 0.32); }

@media (max-width: 640px) {
  .games-page { padding: 8px 0 40px; }
  .games-page .page-hero { padding: 12px 0 0; }
  .games-page .page-hero h1 { font-size: 28px; }
  .games-hub { grid-template-columns: 1fr; gap: 16px; }
  .games-section { margin-top: 28px; }
}
.game-tile-badge--spooky { color: #ffd2c8; background: rgba(90, 0, 0, 0.55); border-color: rgba(255, 90, 70, 0.75); box-shadow: 0 0 10px rgba(255, 40, 30, 0.35); }
