/* The row of game buttons at the top of each game: a picture and a name
   each, coloured round the rainbow in order, so a new game takes the next
   colour. The current game is filled in. */
.game-buttons { margin: -0.5rem 0 0.9rem; }
.game-buttons p { margin: 0; }
.game-buttons p:first-child { font-size: 0.9rem; margin-bottom: 0.55rem; }
.game-buttons p:last-child { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.game-buttons p:last-child > a,
.game-buttons p:last-child > span {
  --gb: #e0352b;
  --gb-tint: #fde4e2;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0.9rem 0.3rem 0.7rem;
  border: 2px solid var(--gb);
  border-radius: 999px;
  background: var(--gb-tint);
  color: #2a2a2a;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  line-height: 1.3;
}
.game-buttons p:last-child > a:hover { background: #fff; }
.game-buttons p:last-child > :nth-child(7n+2) { --gb: #e8741c; --gb-tint: #fdecdb; }
.game-buttons p:last-child > :nth-child(7n+3) { --gb: #e5b400; --gb-tint: #fff6c9; }
.game-buttons p:last-child > :nth-child(7n+4) { --gb: #3fae5a; --gb-tint: #e2f5e4; }
.game-buttons p:last-child > :nth-child(7n+5) { --gb: #2b7fc4; --gb-tint: #dfeefa; }
.game-buttons p:last-child > :nth-child(7n+6) { --gb: #5a4fcf; --gb-tint: #e8e6fa; }
.game-buttons p:last-child > :nth-child(7n+7) { --gb: #a24bb0; --gb-tint: #f4e3f6; }
.game-buttons p:last-child > .is-current { background: var(--gb); color: #fff; }
.game-buttons p:last-child > .is-current:nth-child(7n+3) { color: #2a2a2a; }

/* The home page: one big tile per game, a picture over its name, in the
   same colour as the game's button in the row above each game. */
.home-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.home-tiles p { margin: 0; }
.home-tiles a {
  --gb: #e0352b;
  --gb-tint: #fde4e2;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 1.1rem 0.8rem 1rem;
  border: 3px solid var(--gb);
  border-radius: 1.4rem;
  background: var(--gb-tint);
  color: #2a2a2a;
  text-align: center;
  text-decoration: none;
  transition: transform 0.12s ease;
}
.home-tiles a:hover,
.home-tiles a:focus-visible { background: #fff; transform: translateY(-3px); }
.home-tiles .tile-pic { font-size: 3.4rem; line-height: 1.1; }
.home-tiles .tile-name { font-weight: 700; font-size: 1.2rem; margin-top: 0.4rem; }
.home-tiles .tile-note { font-size: 0.85rem; color: #555; margin-top: 0.2rem; line-height: 1.3; }
.home-tiles a.tile-orange { --gb: #e8741c; --gb-tint: #fdecdb; }
.home-tiles a.tile-yellow { --gb: #e5b400; --gb-tint: #fff6c9; }
.home-tiles a.tile-green  { --gb: #3fae5a; --gb-tint: #e2f5e4; }
.home-tiles a.tile-blue   { --gb: #2b7fc4; --gb-tint: #dfeefa; }
.home-tiles a.tile-purple { --gb: #5a4fcf; --gb-tint: #e8e6fa; }
