/* Les dimensions de l'illustration suivent celles des deux premières cartes. */
#transmission div.tns-games-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#transmission .tns-games-grid > #tns-star-attack-card,
#transmission .tns-games-grid > #tns-blackjack-card,
#transmission .tns-games-grid > .tns-game-card--tetris-vs {
  grid-column: auto;
  min-width: 0;
  border-color: var(--arcade-edge);
  background:
    radial-gradient(ellipse at 58% 26%, var(--arcade-light), transparent 64%),
    linear-gradient(147deg, var(--arcade-top), var(--arcade-bottom) 84%);
}

#tns-star-attack-card {
  --arcade-edge: #558dff;
  --arcade-light: #224bbc91;
  --arcade-top: #101e43;
  --arcade-bottom: #0c1025;
  --arcade-button: #58dfff;
}

#tns-blackjack-card {
  --arcade-edge: #d285c2;
  --arcade-light: #84285c82;
  --arcade-top: #30203f;
  --arcade-bottom: #191326;
  --arcade-button: #ff9bdc;
}

.tns-game-card--tetris-vs {
  --arcade-edge: #6bdddf;
  --arcade-light: #344cab9c;
  --arcade-top: #102c3e;
  --arcade-bottom: #19142f;
  --arcade-button: #6be6e1;
}

#transmission .tns-game-card .tns-arcade-illustration {
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 150px;
  flex: none;
  pointer-events: none;
}

#transmission .tns-arcade-illustration > img {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 4px 6px 8px;
  object-fit: contain;
}

#transmission :is(#tns-star-attack-card, #tns-blackjack-card, .tns-game-card--tetris-vs) .tns-game-play {
  align-self: flex-start;
  margin-top: auto;
  background: var(--arcade-button);
  color: #101728;
}

#transmission .tns-games-grid > .tns-game-card:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.tns-tetris-copy[lang="en"], .tns-tetris-copy[lang="pt-BR"],
html:lang(en) .tns-tetris-copy[lang="fr"], html:lang(pt) .tns-tetris-copy[lang="fr"] {
  display: none;
}
html:lang(en) .tns-tetris-copy[lang="en"], html:lang(pt) .tns-tetris-copy[lang="pt-BR"] {
  display: inline;
}

@media (max-width: 700px) {
  #transmission div.tns-games-grid { grid-template-columns: minmax(0, 1fr); }
  #transmission .tns-game-card .tns-arcade-illustration { height: clamp(108px, 36vw, 150px); }
}
