/* (17/11) Cartes Gwo — le cadre (assets/img/cartes/cadre.webp, 1061×1482) teinté selon la rareté, l'image du monstre dans la fenêtre,
   le texte placé sur les zones du cadre en % (mesurées sur l'original). Tailles de texte en cqw : la carte se redimensionne d'un bloc. */
:root {
  --gc-c0: #b9b9c4; --gc-c1: #4aa3ff; --gc-c2: #b46bff; --gc-c3: #ffd36b; --gc-rouge: #ff2a3d;
  --gc-fond: #0d0a0f; --gc-panneau: #17121b; --gc-bord: rgba(255, 255, 255, .08); --gc-texte: #f3eef6; --gc-doux: #b9adc4;
}
.gc-page { background: radial-gradient(1200px 600px at 50% -10%, rgba(255, 42, 61, .18), transparent 60%), var(--gc-fond); color: var(--gc-texte); }

/* ── la carte ─────────────────────────────────────────────────────────────────────────────────────────── */
.gcarte { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; position: relative; width: 100%; aspect-ratio: 1061 / 1482; container-type: inline-size;
  perspective: 900px; cursor: pointer; user-select: none; -webkit-user-select: none; }
.gc-in { position: absolute; inset: 0; transform: rotateX(var(--ry)) rotateY(var(--rx)); transform-style: preserve-3d; transition: transform .25s ease, filter .25s;
  border-radius: 4.5cqw; overflow: hidden; background: #000; }
.gcarte:hover .gc-in { transition: transform .06s linear; }
.gc-cadre { position: absolute; inset: 0; background: url(/gwomatouw/assets/img/cartes/cadre.webp) center / 100% 100% no-repeat; z-index: 1; }
.gcarte.petite .gc-cadre { background-image: url(/gwomatouw/assets/img/cartes/cadre_petit.webp); }
.r0 .gc-cadre { filter: grayscale(1) brightness(1.18) contrast(1.05); }
.r1 .gc-cadre { filter: hue-rotate(208deg) saturate(1.35) brightness(1.05); }
.r2 .gc-cadre { filter: hue-rotate(272deg) saturate(1.4) brightness(1.08); }
.r3 .gc-cadre { animation: gc-arcenciel 6s linear infinite; }
@keyframes gc-arcenciel { from { filter: hue-rotate(0deg) saturate(1.7) brightness(1.12); } to { filter: hue-rotate(360deg) saturate(1.7) brightness(1.12); } }

/* l'art : la fenêtre du haut (x 7,5→80 %, y 10→54 %) */
.gc-art { position: absolute; left: 8.6%; top: 10.6%; width: 71.2%; height: 42.6%; z-index: 2; display: flex; align-items: flex-end; justify-content: center;
  border-radius: 3cqw; overflow: hidden; }
.gc-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 58%, rgba(255, 255, 255, .22), transparent 70%); }
.r1 .gc-art::before { background: radial-gradient(60% 55% at 50% 58%, rgba(90, 170, 255, .30), transparent 70%); }
.r2 .gc-art::before { background: radial-gradient(60% 55% at 50% 58%, rgba(190, 110, 255, .34), transparent 70%); }
.r3 .gc-art::before { background: radial-gradient(60% 55% at 50% 58%, rgba(255, 220, 120, .38), transparent 70%); }
.gc-art img { position: relative; max-width: 92%; max-height: 92%; object-fit: contain; margin-bottom: 4%; filter: drop-shadow(0 1.4cqw 1.4cqw rgba(0, 0, 0, .55));
  transform: translateZ(30px); transition: transform .3s; }
.gcarte:hover .gc-art img { transform: translateZ(30px) scale(1.04); }
.gc-art .gc-sansimage { font: 800 16cqw/1 Cinzel, serif; color: rgba(255, 255, 255, .18); align-self: center; }

/* le nom : barre du haut */
.gc-nom { position: absolute; left: 10%; top: 3.1%; width: 66%; height: 5%; z-index: 3; display: block; line-height: 7cqw;
  font: 800 5cqw/1 Cinzel, Georgia, serif; color: #fff; text-align: center; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 0 1cqw #000, 0 .3cqw .4cqw #000; }
.gc-nom.long { font-size: 4cqw; } .gc-nom.tlong { font-size: 3.3cqw; }
/* le niveau : le rond en haut à droite */
.gc-niv { position: absolute; left: 82.4%; top: 2.6%; width: 11.4%; aspect-ratio: 1; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font: 800 4.6cqw/1 Sora, Inter, sans-serif; color: #fff; text-shadow: 0 0 1cqw #000; }
.gc-niv small { font: 700 2.1cqw/1 Inter, sans-serif; opacity: .8; letter-spacing: .08em; }
/* les trois cases de droite */
.gc-case { position: absolute; left: 83%; width: 10.2%; height: 6.4%; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; text-shadow: 0 0 .8cqw #000; font: 800 3.2cqw/1 Sora, Inter, sans-serif; text-align: center; }
.gc-case small { font: 700 1.9cqw/1.1 Inter, sans-serif; opacity: .75; margin-top: .4cqw; }
.gc-case.c1 { top: 19.9%; } .gc-case.c2 { top: 30%; } .gc-case.c3 { top: 40.1%; }
.gc-gemme { width: 4.6cqw; height: 4.6cqw; transform: rotate(45deg); border-radius: .8cqw; background: var(--gc-c0); box-shadow: 0 0 2cqw var(--gc-c0), inset 0 0 1cqw rgba(255, 255, 255, .8); }
.r1 .gc-gemme { background: var(--gc-c1); box-shadow: 0 0 2cqw var(--gc-c1), inset 0 0 1cqw #fff; }
.r2 .gc-gemme { background: var(--gc-c2); box-shadow: 0 0 2cqw var(--gc-c2), inset 0 0 1cqw #fff; }
.r3 .gc-gemme { background: conic-gradient(#ff5d7a, #ffd36b, #6bffb5, #5db2ff, #c16bff, #ff5d7a); box-shadow: 0 0 2.4cqw #fff; animation: gc-tourne 4s linear infinite; }
@keyframes gc-tourne { to { transform: rotate(405deg); } }
/* la barre du milieu et ses deux ronds */
.gc-barre { position: absolute; left: 18.5%; top: 56.6%; width: 69%; height: 4%; z-index: 3; display: block; text-align: center; line-height: 5.6cqw; padding: 0 2cqw; box-sizing: border-box;
  font: 700 3cqw/1 Inter, sans-serif; color: #f6eef0; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 0 .8cqw #000; }
.gc-rond { position: absolute; top: 55.4%; width: 7.4%; aspect-ratio: 1; z-index: 3; display: flex; align-items: center; justify-content: center;
  font: 800 3.4cqw/1 Sora, sans-serif; color: #fff; text-shadow: 0 0 .8cqw #000; }
.gc-rond.g { left: 4.9%; } .gc-rond.d { left: 87.6%; }
/* la description : la grande zone claire du bas */
.gc-desc { position: absolute; left: 11.5%; top: 66.2%; width: 77%; height: 23.2%; z-index: 3; overflow: hidden; box-sizing: border-box; padding: 2.2cqw 2.8cqw;
  border-radius: 3cqw; background: rgba(255, 252, 250, .78); box-shadow: 0 0 2cqw rgba(255, 255, 255, .6); backdrop-filter: blur(2px);
  font: 600 3.4cqw/1.36 Inter, sans-serif; color: #2b1418; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; }
.gc-desc b { color: #000; }
.gc-num { position: absolute; left: 0; right: 0; top: 91.6%; z-index: 3; text-align: center; font: 700 2.7cqw/1 'JetBrains Mono', monospace; color: rgba(43, 20, 24, .75); }
.gc-boss { position: absolute; left: 4%; top: 1.6%; z-index: 4; font-size: 6cqw; filter: drop-shadow(0 0 1cqw #000); }
.gc-neuve { position: absolute; right: -1%; top: 11%; z-index: 5; background: linear-gradient(90deg, #ff2a3d, #ff8a3d); color: #fff; font: 800 2.8cqw/1 Inter, sans-serif;
  padding: 1.2cqw 3cqw 1.2cqw 2cqw; border-radius: 2cqw 0 0 2cqw; letter-spacing: .08em; box-shadow: 0 0 3cqw rgba(255, 42, 61, .7); }
.gc-nb { position: absolute; right: 4%; bottom: 3%; z-index: 5; background: rgba(0, 0, 0, .8); color: #fff; font: 800 3cqw/1 Sora, sans-serif; padding: 1cqw 2cqw; border-radius: 9cqw; }

/* la lumière qui suit la souris, et l'irisé des holos */
.gc-lumiere { position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(45% 35% at var(--mx) var(--my), rgba(255, 255, 255, .35), transparent 70%); mix-blend-mode: soft-light; }
.gcarte:hover .gc-lumiere { opacity: 1; }
.gc-holo { position: absolute; inset: 0; z-index: 5; pointer-events: none; display: none; mix-blend-mode: color-dodge; opacity: .5;
  background: repeating-linear-gradient(115deg, rgba(255, 0, 90, .35) 0%, rgba(255, 210, 0, .35) 6%, rgba(0, 255, 160, .35) 12%, rgba(0, 160, 255, .35) 18%, rgba(190, 0, 255, .35) 24%, rgba(255, 0, 90, .35) 30%);
  background-size: 300% 300%; background-position: var(--mx) var(--my); }
.gc-holo::after { content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 30%, #fff 0 .25cqw, transparent .5cqw), radial-gradient(circle at 70% 20%, #fff 0 .2cqw, transparent .45cqw),
    radial-gradient(circle at 40% 80%, #fff 0 .25cqw, transparent .5cqw), radial-gradient(circle at 85% 65%, #fff 0 .2cqw, transparent .45cqw);
  animation: gc-scintille 2.4s ease-in-out infinite alternate; }
@keyframes gc-scintille { from { opacity: .2; } to { opacity: 1; } }
.r3 .gc-holo { display: block; }
.r2 .gc-holo { display: block; opacity: .16; }

/* lueur autour selon la rareté */
.gcarte.r1 { filter: drop-shadow(0 0 .6cqw rgba(74, 163, 255, .35)); }
.gcarte.r2 { filter: drop-shadow(0 0 1.4cqw rgba(180, 107, 255, .55)); }
.gcarte.r3 { filter: drop-shadow(0 0 2.2cqw rgba(255, 211, 107, .7)); }
.gcarte:hover { z-index: 2; }

/* non obtenue : silhouette */
.gcarte.verrou .gc-cadre { filter: grayscale(1) brightness(.45); }
.gcarte.verrou .gc-art img { filter: brightness(0) drop-shadow(0 0 1.2cqw rgba(255, 255, 255, .25)); opacity: .7; }
.gcarte.verrou .gc-desc { color: #555; font-style: italic; }
.gcarte.verrou .gc-holo, .gcarte.verrou .gc-gemme { display: none; }
.gcarte.verrou::after { content: "🔒"; position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%); font-size: 12cqw; z-index: 7; opacity: .85; }

/* le dos de carte (ouverture des boosters) */
.gc-dos { position: absolute; inset: 0; border-radius: 4.5cqw; overflow: hidden; backface-visibility: hidden; transform: rotateY(180deg);
  background: url(/gwomatouw/assets/img/cartes/cadre_petit.webp) center / 100% 100%; }
.gc-dos::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, rgba(255, 42, 61, .55), rgba(0, 0, 0, .9) 65%); }
.gc-dos::after { content: "GWO"; position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); font: 800 17cqw/1 Cinzel, serif; color: #fff;
  text-shadow: 0 0 4cqw var(--gc-rouge), 0 0 1cqw #000; letter-spacing: .06em; }

/* ── page ─────────────────────────────────────────────────────────────────────────────────────────────── */
.gc-hero { padding: 54px 0 26px; text-align: center; }
.gc-hero h1 { font: 800 clamp(2.2rem, 5vw, 3.6rem)/1.05 Cinzel, serif; margin: .2em 0; background: linear-gradient(180deg, #fff, #ff9aa4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gc-hero p { color: var(--gc-doux); max-width: 720px; margin: 0 auto; }
.gc-vitrine { display: flex; justify-content: center; gap: 2%; margin: 28px auto 0; max-width: 760px; }
.gc-vitrine .gcarte { width: 23%; flex: none; }
.gc-vitrine .gcarte:nth-child(1) { transform: rotate(-8deg) translateY(14px); } .gc-vitrine .gcarte:nth-child(2) { transform: rotate(-3deg); }
.gc-vitrine .gcarte:nth-child(3) { transform: rotate(3deg); } .gc-vitrine .gcarte:nth-child(4) { transform: rotate(8deg) translateY(14px); }
.gc-compteurs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px 0 6px; }
.gc-compteur { background: var(--gc-panneau); border: 1px solid var(--gc-bord); border-radius: 14px; padding: 10px 16px; min-width: 120px; text-align: center; }
.gc-compteur b { display: block; font: 800 1.35rem/1.1 Sora, sans-serif; color: #fff; }
.gc-compteur span { font-size: .78rem; color: var(--gc-doux); }
.gc-compteur.or b { color: var(--gc-c3); } .gc-compteur.violet b { color: var(--gc-c2); } .gc-compteur.bleu b { color: var(--gc-c1); }
.gc-onglets { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 18px 0 22px; position: sticky; top: 64px; z-index: 20; padding: 8px; }
.gc-onglets button { background: var(--gc-panneau); color: var(--gc-doux); border: 1px solid var(--gc-bord); border-radius: 999px; padding: 9px 18px; font: 700 .92rem Inter, sans-serif; cursor: pointer; }
.gc-onglets button.actif { background: linear-gradient(180deg, #ff2a3d, #b3121f); color: #fff; border-color: transparent; box-shadow: 0 6px 22px rgba(255, 42, 61, .35); }
.gc-volet { display: none; } .gc-volet.actif { display: block; animation: gc-entre .3s ease; }
@keyframes gc-entre { from { opacity: 0; transform: translateY(8px); } }
.gc-panneau { background: var(--gc-panneau); border: 1px solid var(--gc-bord); border-radius: 18px; padding: 18px; }
.gc-barre-outils { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.gc-barre-outils > * { width: auto !important; margin: 0 !important; flex: 0 1 auto; }
.gc-barre-outils input, .gc-barre-outils select { background: #0f0b12; color: #fff; border: 1px solid var(--gc-bord); border-radius: 10px; padding: 9px 12px; font: 500 .9rem Inter, sans-serif; }
.gc-btn { background: linear-gradient(180deg, #ff2a3d, #b3121f); color: #fff; border: 0; border-radius: 10px; padding: 9px 14px; font: 700 .88rem Inter, sans-serif; cursor: pointer; }
.gc-btn:disabled { opacity: .45; cursor: not-allowed; }
.gc-btn.sombre { background: #2a2130; } .gc-btn.or { background: linear-gradient(180deg, #ffd36b, #c9921d); color: #2a1a00; } .gc-btn.violet { background: linear-gradient(180deg, #b46bff, #6f2bc4); }
.gc-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 18px; }
.gc-pages { display: flex; justify-content: center; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.gc-pages button { min-width: 38px; }
.gc-vide { text-align: center; color: var(--gc-doux); padding: 30px; }
.gc-perso { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; margin-bottom: 14px; }

/* boosters */
.gc-boosters { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.gc-booster { background: var(--gc-panneau); border: 1px solid var(--gc-bord); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.gc-paquet { width: 70%; aspect-ratio: 5 / 7.4; border-radius: 14px; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #3a0910, #12030a 60%, #000); box-shadow: 0 18px 40px rgba(0, 0, 0, .6), inset 0 0 0 2px rgba(255, 255, 255, .08); container-type: inline-size;
  transition: transform .3s; }
.gc-booster:hover .gc-paquet { transform: translateY(-6px) rotate(-2deg); }
.gc-paquet::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, .12), transparent 30%); animation: gc-tourne2 6s linear infinite; }
@keyframes gc-tourne2 { to { transform: rotate(360deg); } }
.gc-paquet .crans { position: absolute; left: 0; right: 0; height: 6%; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .25) 0 4%, transparent 4% 8%); }
.gc-paquet .crans.h { top: 0; } .gc-paquet .crans.b { bottom: 0; }
.gc-paquet .logo { position: relative; font: 800 22cqw/1 Cinzel, serif; color: #fff; text-shadow: 0 0 6cqw rgba(255, 42, 61, .9); }
.gc-paquet .theme { position: relative; font: 800 7.5cqw/1.1 Sora, sans-serif; color: #fff; text-align: center; padding: 0 8%; margin-top: 4cqw; text-transform: uppercase; letter-spacing: .04em; }
.gc-paquet .cinq { position: relative; font: 700 6cqw/1 Inter, sans-serif; color: rgba(255, 255, 255, .7); margin-top: 3cqw; }
.gc-paquet.jour { background: linear-gradient(160deg, #0f5f6b, #062328 60%, #000); } .gc-paquet.jour .logo { text-shadow: 0 0 6cqw rgba(60, 230, 255, .9); }
.gc-paquet.boss { background: linear-gradient(160deg, #6b4a0f, #241503 60%, #000); } .gc-paquet.boss .logo { text-shadow: 0 0 6cqw rgba(255, 200, 60, .95); }
.gc-paquet.halloween { background: linear-gradient(160deg, #6b2a0f, #2a0b38 60%, #000); } .gc-paquet.halloween .logo { text-shadow: 0 0 6cqw rgba(255, 130, 30, .95); }
.gc-booster h3 { margin: 0; font: 800 1.1rem Sora, sans-serif; } .gc-booster p { margin: 0; color: var(--gc-doux); font-size: .85rem; text-align: center; }
.gc-payer { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.gc-chances { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.gc-chances div { background: #0f0b12; border-radius: 12px; padding: 10px; text-align: center; border: 1px solid var(--gc-bord); }
.gc-chances b { display: block; font: 800 1.1rem Sora, sans-serif; }

/* ouverture */
.gc-ouverture { position: fixed; inset: 0; z-index: 1000; background: rgba(5, 3, 7, .94); display: none; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 16px; }
.gc-ouverture.visible { display: flex; }
.gc-ouverture .paquet-anim { width: min(240px, 50vw); animation: gc-secoue .5s ease-in-out 3; }
.gc-ouverture .paquet-anim.dechire { animation: gc-dechire .55s ease-in forwards; }
@keyframes gc-secoue { 25% { transform: rotate(-4deg) scale(1.03); } 75% { transform: rotate(4deg) scale(1.03); } }
@keyframes gc-dechire { to { transform: translateY(-40vh) rotate(-12deg) scale(.6); opacity: 0; } }
.gc-tirage { display: flex; gap: 2vw; justify-content: center; flex-wrap: wrap; max-width: 1100px; }
.gc-tirage .emplacement { width: min(190px, 30vw); perspective: 1200px; }
.gc-retourne { position: relative; width: 100%; aspect-ratio: 1061 / 1482; transform-style: preserve-3d; transform: rotateY(180deg); cursor: pointer; container-type: inline-size; }
.gc-retourne.vue { animation: gc-flip .7s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes gc-flip { from { transform: rotateY(180deg) scale(1); } 50% { transform: rotateY(90deg) scale(1.08); } to { transform: rotateY(0deg) scale(1); } }
.gc-retourne .gcarte { position: absolute; inset: 0; backface-visibility: hidden; opacity: 0; }
.gc-retourne .gc-dos { transform: rotateY(180deg); opacity: 1; }
/* recto/verso échangés à mi-rotation (ne dépend pas de backface-visibility, ignoré par certains rendus) */
.gc-retourne.vue .gcarte { animation: gc-recto .7s steps(1, end) forwards; }
.gc-retourne.vue .gc-dos { animation: gc-verso .7s steps(1, end) forwards; }
@keyframes gc-recto { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 1; } }
@keyframes gc-verso { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 0; } }
.gc-tirage .emplacement { opacity: 0; transform: translateY(40px) scale(.9); animation: gc-arrive .5s ease forwards; }
@keyframes gc-arrive { to { opacity: 1; transform: none; } }
.gc-eclat { position: fixed; inset: 0; pointer-events: none; z-index: 1001; opacity: 0; }
.gc-eclat.r2 { background: radial-gradient(circle, rgba(180, 107, 255, .55), transparent 60%); animation: gc-flash 1s ease; }
.gc-eclat.r3 { background: radial-gradient(circle, rgba(255, 230, 150, .85), transparent 65%); animation: gc-flash 1.4s ease; }
@keyframes gc-flash { 20% { opacity: 1; } to { opacity: 0; } }
.gc-ouverture .titre { font: 800 1.4rem Cinzel, serif; color: #fff; text-align: center; }
.gc-ouverture .actions { display: flex; gap: 10px; }

/* fiche */
.gc-fiche { position: fixed; inset: 0; z-index: 999; background: rgba(5, 3, 7, .9); display: none; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.gc-fiche.visible { display: flex; }
.gc-fiche .boite { background: var(--gc-panneau); border: 1px solid var(--gc-bord); border-radius: 22px; padding: 22px; display: grid; grid-template-columns: minmax(220px, 330px) 1fr; gap: 26px; max-width: 920px; width: 100%; position: relative; }
.gc-fiche .fermer { position: absolute; right: 14px; top: 10px; background: none; border: 0; color: #fff; font-size: 1.8rem; cursor: pointer; }
.gc-fiche h2 { font: 800 1.6rem Cinzel, serif; margin: 0 0 4px; }
.gc-fiche dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 14px 0; font-size: .92rem; }
.gc-fiche dt { color: var(--gc-doux); } .gc-fiche dd { margin: 0; }
.gc-fiche .exemplaires { display: grid; gap: 8px; margin-top: 10px; }
.gc-fiche .exemplaire { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #0f0b12; border-radius: 12px; padding: 8px 10px; }
.gc-pastille { display: inline-block; padding: 3px 9px; border-radius: 999px; font: 800 .74rem Inter, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.gc-pastille.p0 { background: #3b3b44; color: #e9e9ef; } .gc-pastille.p1 { background: #123b66; color: #b5dbff; } .gc-pastille.p2 { background: #3f1a66; color: #e0c2ff; }
.gc-pastille.p3 { background: linear-gradient(90deg, #ff5d7a, #ffd36b, #6bffb5, #5db2ff, #c16bff); color: #1a0d00; }

/* albums, marché, fil */
.gc-albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gc-album { background: #0f0b12; border: 1px solid var(--gc-bord); border-radius: 14px; padding: 14px; }
.gc-album h4 { margin: 0 0 6px; font: 700 1rem Sora, sans-serif; }
.gc-progres { height: 9px; background: #2a2130; border-radius: 9px; overflow: hidden; margin: 8px 0; }
.gc-progres i { display: block; height: 100%; background: linear-gradient(90deg, #ff2a3d, #ffd36b); border-radius: 9px; }
.gc-album.fini { border-color: rgba(255, 211, 107, .5); box-shadow: 0 0 18px rgba(255, 211, 107, .15); }
.gc-marche { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.gc-offre { display: flex; flex-direction: column; gap: 8px; }
.gc-offre .infos { font-size: .85rem; color: var(--gc-doux); text-align: center; }
.gc-offre .infos b { color: #fff; font-size: 1rem; }
.gc-fil { display: grid; gap: 8px; }
.gc-fil-ligne { display: flex; align-items: center; gap: 12px; background: #0f0b12; border-radius: 12px; padding: 8px 12px; border: 1px solid var(--gc-bord); animation: gc-entre .4s; }
.gc-fil-ligne img { width: 46px; height: 46px; object-fit: contain; }
.gc-fil-ligne .qui { flex: 1; } .gc-fil-ligne small { color: var(--gc-doux); }
.gc-classement { width: 100%; border-collapse: collapse; font-size: .92rem; }
.gc-classement th, .gc-classement td { padding: 8px 10px; border-bottom: 1px solid var(--gc-bord); text-align: left; }
.gc-classement td.n { text-align: right; font-family: Sora, sans-serif; font-weight: 700; }
.gc-deux { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; }
.gc-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1100; background: #1f1724; border: 1px solid var(--gc-bord); color: #fff; padding: 12px 18px; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5); display: none; max-width: 90vw; }
.gc-toast.visible { display: block; animation: gc-entre .25s; } .gc-toast.erreur { border-color: #ff2a3d; }

@media (max-width: 760px) {
  .gc-fiche .boite { grid-template-columns: 1fr; } .gc-fiche .boite > .gcarte { max-width: 260px; margin: 0 auto; }
  .gc-deux { grid-template-columns: 1fr; } .gc-grille { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .gc-chances { grid-template-columns: repeat(2, 1fr); } .gc-onglets { top: 56px; }
}
@media (prefers-reduced-motion: reduce) { .r3 .gc-cadre, .gc-paquet::before, .r3 .gc-gemme { animation: none; } }

/* (17/11) 2e lot : défis, Collectionneur, deck, duel, échanges, vitrine */
.gc-trois { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 18px; }
.gc-defi { display: grid; grid-template-columns: 1fr 90px auto auto; gap: 8px; align-items: center; padding: 6px 0; font-size: .9rem; }
.gc-defi .gc-progres { margin: 0; }
.gc-mini { display: flex; gap: 8px; flex-wrap: wrap; }
.gc-mini-c { position: relative; width: 96px; }
.gc-mini-c .gcarte { cursor: default; }
.gc-x { position: absolute; top: -6px; right: -6px; z-index: 9; width: 22px; height: 22px; border-radius: 50%; border: 0; background: #ff2a3d; color: #fff; font-weight: 800; cursor: pointer; line-height: 1; }
.gc-duel { display: grid; gap: 10px; max-width: 520px; width: 100%; }
.gc-manche { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; opacity: 0; animation: gc-arrive .45s ease forwards; }
.gc-duel-c { display: flex; align-items: center; gap: 10px; }
.gc-duel-c .gcarte { width: 70px; flex: none; }
.gc-duel-c b { font: 800 1.2rem Sora, sans-serif; }
.gc-duel-c.gagne b { color: #6bffb5; } .gc-duel-c.perd { opacity: .45; }
.gc-vs { font: 800 1rem Cinzel, serif; color: var(--gc-rouge); }
@media (max-width: 900px) { .gc-trois { grid-template-columns: 1fr; } }

/* (18/11) résumé des ouvertures en lot */
.gc-lot { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; max-width: 1000px; width: 100%; max-height: 52vh; overflow-y: auto; padding: 6px; }
.gc-ouverture { overflow-y: auto; }

/* (18/11) le DOS de carte de l'utilisateur : sur les paquets de boosters et au dos des cartes à l'ouverture */
.gc-dos { background: url(/gwomatouw/assets/img/cartes/dos_petit.webp) center / 100% 100% no-repeat !important; }
.gc-dos::before, .gc-dos::after { content: none !important; }
.gc-paquet { background: url(/gwomatouw/assets/img/cartes/dos_petit.webp) center / cover no-repeat !important; justify-content: flex-end !important; padding-bottom: 12% ; }
.gc-paquet::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color; opacity: .55; }
.gc-paquet.jour::after { background: #18b8d0; }
.gc-paquet.boss::after { background: #f2b52b; }
.gc-paquet.halloween::after { background: #ff7a1a; }
.gc-paquet.noel::after { background: #3fb7ff; }
.gc-paquet.paques::after { background: #ffd2f0; }
.gc-paquet.dore::after { background: #ffd36b; opacity: .7; }
.gc-paquet .logo { display: none; }
.gc-paquet .theme { background: rgba(0, 0, 0, .65); border-radius: 8px; padding: 4px 10px; margin-top: 0; z-index: 2; }
.gc-paquet .cinq { z-index: 2; text-shadow: 0 0 6px #000; }
