/* Cartes du jeu : correctifs de mise en page (pas de superpositions, quelle que soit la taille de la carte) */
/* Coins : haut-gauche rareté puis images ; haut-droite numéro, exemplaires, wishlist ; bas-gauche « NEW » ; bas-droite sens de la transmission */
.tcg .tcg-rar { top: 5cqw; left: 5cqw; right: auto; max-width: 56cqw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(7px, 5cqw, 11px); line-height: 1.35; padding: .1em .6em; border-radius: 99px; }
.tcg .tcg-no { top: 5.5cqw; right: 5cqw; left: auto; max-width: 30cqw; white-space: nowrap; font-size: clamp(7px, 5.2cqw, 11px); line-height: 1.35; text-shadow: 0 1px 3px #000, 0 0 6px rgba(0,0,0,.6); }
.tcg .tcg-pics { top: 15cqw; left: 5cqw; max-width: 46cqw; font-size: clamp(7px, 5.2cqw, 11px); white-space: nowrap; line-height: 1.3; }
.tcg .tcg-dup { top: 15cqw; right: 5cqw; bottom: auto; left: auto; font-size: clamp(8px, 5.6cqw, 12px); line-height: 1.3; padding: .05em .5em; border-radius: 99px; }
.tcg .tcg-wish { top: 26cqw; right: 5.5cqw; bottom: auto; left: auto; font-size: clamp(10px, 7cqw, 15px); line-height: 1; }
.tcg .tcg-new-pill { left: 5cqw; right: auto; top: auto; bottom: calc(44% + 2.5cqw); transform: none; font-size: clamp(7px, 4.8cqw, 10px); line-height: 1.4; }
.tcg .tcg-drv { left: auto; right: 4cqw; top: auto; bottom: 4cqw; }

/* texte du bas : jamais plus haut que l'image, sans rognage au milieu d'un mot */
.tcg .tcg-body { min-height: 0; max-height: 46%; }
.tcg .tcg-name { overflow-wrap: anywhere; hyphens: auto; }
.tcg .tcg-stats span { min-width: 0; }
.tcg .tcg-stats b { overflow: hidden; text-overflow: ellipsis; }

@container (max-width: 135px) {
  .tcg-brand, .tcg-note { display: none; }
  .tcg-name { font-size: clamp(9px, 9cqw, 12px); -webkit-line-clamp: 2; }
  .tcg-stats { gap: 1.5cqw; font-size: clamp(6px, 5cqw, 8px); }
  .tcg-stats b { font-size: clamp(8px, 8cqw, 11px); }
  .tcg-drv { display: none; }
}
@container (max-width: 105px) {
  .tcg-stats { display: none; }
  .tcg .tcg-pics, .tcg .tcg-no { display: none; }
  .tcg .tcg-dup { top: 5cqw; }
  .tcg .tcg-wish { top: 17cqw; right: 5cqw; }
  .tcg .tcg-body { max-height: 40%; }
}
/* carte non débloquée : le « ? » ne dépasse jamais de l'image */
.tcg .tcg-q { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(22px, 30cqw, 56px); }
.tcg-art { contain: paint; }
