/* Contour des cartes, dans le style du dos. --rc = couleur de la rareté. */
.card { border-width: 2px; }

/* Dos à la couleur de la rareté : on garde les reliefs du dessin et on change sa teinte. */
.single .back { background-color: var(--rc); background-blend-mode: luminosity; border-color: var(--rc); }

/* Vagues discrètes derrière le perso, en haut et en bas */
.card::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .28; background: url('/art/vagues.svg') 0 0 / 30px 15px;
  -webkit-mask-image: linear-gradient(#000, transparent 34%, transparent 62%, #000); mask-image: linear-gradient(#000, transparent 34%, transparent 62%, #000); }

/* Bord animé des Mythiques. L'image contient déjà la bordure extérieure : on retire celle de la carte.
   La double classe évite que les règles des images de personnage (position, ombre) s'appliquent au bord. */
.card.r-M { border-width: 0; border-radius: 6.5% / 4.65%; }
.card img.geemu-mythic-frame { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; z-index: 1; object-fit: fill; filter: none; image-rendering: auto; pointer-events: none; }

.card .frame { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; color: var(--rc); fill: none; stroke: currentColor; }
.frame .band { stroke: #07060ecc; stroke-width: 4.6; }
.frame .outer { stroke-width: 1.1; }
.frame .inner { stroke-width: .45; opacity: .75; }
.frame .corner { stroke-width: 1.1; stroke-linecap: square; }
.frame .pixel { fill: currentColor; stroke: none; }
.frame .shine { fill: #fff; stroke: none; opacity: .85; }

/* Textes et pastilles rentrés à l'intérieur du cadre */
/* Les persos détourés passent DEVANT le cadre et débordent sur ses bords.
   Ordre : cadre (1), perso (2), textes (3). */
.card img, .card .pic:not(.fill) { z-index: 2; left: 0; top: 10%; width: 100%; height: 88%; filter: drop-shadow(0 0 3px #0009) drop-shadow(0 4px 6px #0007); }
/* Les images avec un fond (JPG, illustrations) restent sous le cadre, sinon elles le cacheraient. */
.card img[src*=".jpg"] { z-index: 0; left: 3%; top: 14%; width: 94%; height: 76%; filter: none; }

.card .c-name, .card .c-rar, .card .c-foot, .card .c-count, .card .c-new { z-index: 3; }
/* cqw = 1 % de la largeur de la carte : les textes suivent le cadre à toutes les tailles. */
.card { container-type: inline-size; }
.card .c-name { top: 0; padding: 11.5cqw calc(11cqw + 28px) 18px 11cqw; }
.card .c-rar { top: 10cqw; right: 10cqw; border-radius: 6px; box-shadow: 0 0 0 1.5px #07060e, 0 0 0 2.5px var(--rc); }
.card .c-foot { padding: 20px 11cqw 11cqw; }
.card .c-count { right: 10cqw; top: calc(10cqw + 30px); }
.card .c-new { bottom: calc(11cqw + 32px); left: 11cqw; }
.card .c-name, .card .c-foot { text-shadow: 0 1px 3px #000; }
/* Le jeu d'origine est un titre long : il s'écrit un peu plus petit. */
.card .c-foot .origin { font-size: clamp(9px, 5cqw, 12px); line-height: 1.25; text-wrap: balance; }
