/* GACHA CARDS — Modèle de carte officiel .gcard (partagé Boutique/Collection/Forge/Marché) */


/* =========================================================
   CARTE (modèle officiel) — .gcard
   ========================================================= */
.gcard {
  --rc: #8a8a8a; --rc-rgb: 138,138,138;
  width: 186px; min-height: 272px; flex-shrink: 0; position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  background: rgba(0, 8, 0, 0.96); border: 2px solid var(--rc); border-radius: 7px;
  box-shadow: 0 0 14px rgba(var(--rc-rgb), 0.4);
}
.gcard--commune { --rc: #8a8a8a; --rc-rgb: 138,138,138; }
.gcard--rare { --rc: #4488ff; --rc-rgb: 68,136,255; }
.gcard--epique { --rc: #cc44ff; --rc-rgb: 204,68,255; }
.gcard--legendaire { --rc: #ffaa00; --rc-rgb: 255,170,0; }
.gcard--chaos { --rc: #ff4444; --rc-rgb: 255,68,68; }
.gcard-rarity { width: 100%; text-align: center; font-family: var(--f-pixel); font-size: 6px; padding: 4px 0; color: #000; letter-spacing: 1px; background: var(--rc); flex-shrink: 0; }
.gcard-count {
  position: absolute; top: 22px; right: 6px; z-index: 3; font-family: var(--f-pixel); font-size: 8px; color: var(--rc);
  padding: 2px 7px; border: 1px solid var(--rc); border-radius: 3px; background: rgba(0,0,0,0.72);
}
.gcard-visual { width: 100%; height: 100px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.gcard-visual-emoji { font-size: 50px; position: relative; z-index: 1; filter: drop-shadow(0 0 10px rgba(var(--rc-rgb), 0.4)); }
.gcard-visual.elem-feu { background: linear-gradient(180deg, #1a0000, #330000 50%, #1a0500); }
.gcard-visual.elem-eau { background: linear-gradient(180deg, #000a1a, #001133 50%, #000a1a); }
.gcard-visual.elem-terre { background: linear-gradient(180deg, #0a1a00, #1a3300 50%, #0a1a00); }
.gcard-visual.elem-lumiere { background: linear-gradient(180deg, #1a1500, #332800 50%, #1a1500); }
.gcard-visual.elem-ombre { background: linear-gradient(180deg, #0d0015, #1a0033 50%, #0d0015); }
.gcard-name { font-family: var(--f-pixel); font-size: 8px; color: var(--rc); text-align: center; margin: 6px 0 3px; padding: 0 4px; flex-shrink: 0; }
.gcard-element { font-size: 12px; padding: 1px 7px; border-radius: 3px; margin: 1px 0 2px; flex-shrink: 0; }
.gcard-stats { display: flex; flex-direction: column; gap: 3px; width: 90%; margin: 4px 0; flex-shrink: 0; }
.gcard-stat { display: flex; align-items: center; gap: 5px; }
.gcard-stat-lab { font-family: var(--f-pixel); font-size: 6px; width: 26px; text-align: right; flex-shrink: 0; }
.gcard-stat-track { flex: 1; height: 7px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.gcard-stat-fill { height: 100%; border-radius: 3px; }
.gcard-stat-val { font-family: var(--f-pixel); font-size: 6px; width: 16px; text-align: left; flex-shrink: 0; }
.gcard-stat--atk .gcard-stat-lab, .gcard-stat--atk .gcard-stat-val { color: #ff4444; }
.gcard-stat--atk .gcard-stat-fill { background: linear-gradient(90deg, #ff2222, #ff6644); box-shadow: 0 0 6px rgba(255,68,68,0.5); }
.gcard-stat--def .gcard-stat-lab, .gcard-stat--def .gcard-stat-val { color: #4488ff; }
.gcard-stat--def .gcard-stat-fill { background: linear-gradient(90deg, #2266ff, #44aaff); box-shadow: 0 0 6px rgba(68,136,255,0.5); }
.gcard-stat--hp .gcard-stat-lab, .gcard-stat--hp .gcard-stat-val { color: #44dd44; }
.gcard-stat--hp .gcard-stat-fill { background: linear-gradient(90deg, #22bb22, #66ff44); box-shadow: 0 0 6px rgba(68,221,68,0.5); }
.gcard-sep { width: 80%; height: 1px; background: var(--rc); opacity: 0.22; margin: 2px 0; flex-shrink: 0; }
.gcard-ability { text-align: center; padding: 5px 6px; margin: 0 5px 4px; border: 1px solid rgba(204,68,255,0.18); border-radius: 4px; background: rgba(204,68,255,0.04); }
.gcard-ability-cost { font-size: 12px; color: #44aaff; }
.gcard-ability-name { font-family: var(--f-pixel); font-size: 6px; color: #cc44ff; text-shadow: 0 0 6px rgba(204,68,255,0.3); margin: 2px 0; }
.gcard-ability-desc { font-size: 12px; color: #2aa64a; line-height: 1.15; }
.gcard-type { font-size: 11px; color: #2aa64a; text-transform: uppercase; margin-top: auto; padding: 3px 0 5px; flex-shrink: 0; }
/* holo au survol */
.gcard-holo {
  position: absolute; inset: 0; pointer-events: none; z-index: 5; border-radius: 7px; opacity: 0; transition: opacity .3s;
  background: linear-gradient(125deg, transparent 0%, rgba(255,0,0,0.08) 15%, rgba(255,165,0,0.08) 25%, rgba(255,255,0,0.08) 35%, rgba(0,255,0,0.08) 45%, rgba(0,255,255,0.08) 55%, rgba(0,0,255,0.08) 65%, rgba(128,0,255,0.08) 75%, transparent 100%);
  background-size: 200% 200%; mix-blend-mode: screen;
}
.gcard:hover .gcard-holo, .gcard--shine .gcard-holo { opacity: 1; }

/* ---- raretés supplémentaires du jeu réel ---- */
.gcard--secret { --rc: #d0d0d0; --rc-rgb: 208,208,208; }
.gcard--inverse { --rc: #00ffcc; --rc-rgb: 0,255,204; }
.gcard--cadeau { --rc: #ff2266; --rc-rgb: 255,34,102; }
.gcard-visual.elem-neutre { background: linear-gradient(180deg,#0a0a0a,#1a1a1a 50%,#0a0a0a); }
/* image de carte dans le visuel */
.gcard-visual-img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; z-index: 0; }
.gcard-visual-img + .gcard-visual-emoji { display: none; }
/* passif */
.gcard-passive { font-size: 11px; color: var(--amber); line-height: 1.15; text-align: center; padding: 0 6px 3px; margin: 0 5px 2px; flex-shrink: 0; }
.gcard-passive b { font-family: var(--f-pixel); font-size: 6px; color: var(--amber); margin-right: 4px; }
/* badges temp / shiny / fused */
.gcard-badges { position: absolute; top: 22px; left: 6px; z-index: 3; display: flex; flex-direction: column; gap: 3px; }
.gcard-badge { font-family: var(--f-pixel); font-size: 6px; padding: 2px 5px; border-radius: 3px; color: #000; letter-spacing: .5px; }
.gcard-badge--shiny { background: linear-gradient(90deg,#ffd24a,#fff,#4ba3ff); }
.gcard-badge--temp { background: #ff4d4d; color: #fff; }
.gcard-badge--fused { background: #c266ff; color: #fff; }
