/* css/ember.css : variante EMBER (fragment calciné : bords carbonisés, ligne de feu, braises qui respirent). À charger après game.css.
   Remplace l'ancien css/flame.css. La brûlure elle-même est calculée par js/cards.js (emberBurnHTML). */

:root { --color-ember: #ff5a1f; }

/* ----- Carte ----- */
.bg-ember { background: #0d0806 !important; }

/* L'illustration a chauffé : tons plus chauds, un peu assombris */
.filter-ember { filter: sepia(0.45) saturate(1.3) hue-rotate(-8deg) contrast(1.12) brightness(0.84); opacity: 0.97; }

/* La brûlure, posée juste au-dessus de l'illustration (sous le texte) */
.ember-burn { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; overflow: hidden; transform: translateZ(2px); z-index: 5; }
.ember-burn img, .ember-burn canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; }
/* Les braises éclairent un peu autour d'elles */
.ember-burn-glow { filter: drop-shadow(0 0 2px rgba(255, 110, 30, 0.85)) drop-shadow(0 0 6px rgba(255, 70, 10, 0.45)); }
/* Vignettes : braises figées qui palpitent doucement au survol */
.ember-burn-mini img { filter: drop-shadow(0 0 1.5px rgba(255, 100, 20, 0.6)); }
.inv-item:hover .ember-burn-mini img { animation: emberSmolder 2.6s ease-in-out infinite alternate; }
@keyframes emberSmolder { 0% { filter: drop-shadow(0 0 1px rgba(255, 90, 20, 0.4)) brightness(0.92); } 100% { filter: drop-shadow(0 0 3px rgba(255, 120, 30, 0.9)) brightness(1.12); } }
body.gfx-no-cardfx .ember-burn-glow { filter: none; }
body.gfx-no-cardfx .ember-burn-mini img { animation: none; }

/* Reflet de chaleur, qui suit l'inclinaison de la carte */
.holo-ember { background-image: radial-gradient(farthest-corner at var(--spot-x, 50%) var(--spot-y, 50%), rgba(255,214,150,0.55) 0%, rgba(255,110,30,0.35) 22%, rgba(120,20,10,0.2) 46%, transparent 70%);
    background-size: 100% 100%; mix-blend-mode: color-dodge; opacity: 0.6; }

/* Halo du cadre : la chaleur qui rayonne autour du fragment */
.f-ember { --f-c1: #ff5a1f; --f-c2: #7c1d06; }
.f-size-full.f-ember { --f-b1: 15px; --f-s1: 5px; --f-b2: 30px; --f-s2: 10px; --f-b3: 10px; --f-s3: 2px; }
.f-size-mini.f-ember { --f-b1: 3px; --f-s1: 1px; --f-b2: 6px; --f-s2: 2px; --f-b3: 2px; --f-s3: 1px; }

.text-ember-card { font-family: 'Playfair Display', serif !important; font-style: italic; font-weight: 700; letter-spacing: 1px;
    background: linear-gradient(180deg, #ffe7b0 0%, #ffb347 30%, #ff5a1f 65%, #9a1b0b 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.95)) drop-shadow(0 0 5px rgba(255,90,31,0.5)); }

/* ----- Booster thématique ----- */
.booster-theme-ember .booster-layer { background: #140a07; border-color: rgba(255,90,31,0.5); backface-visibility: hidden; }
.booster-theme-ember .booster-front { background: radial-gradient(ellipse at 50% 50%, #5a2410 0%, #2a120a 45%, #0d0806 100%); border-color: rgba(255,120,40,0.8);
    box-shadow: inset 0 0 18px rgba(255,90,31,0.55), inset 0 0 4px rgba(255,200,120,0.8); backface-visibility: hidden; }
.booster-theme-ember .boosterThemeLabel { color: #ffd9a0; text-shadow: 0 0 6px #ff5a1f, 0 0 2px #000; font-weight: 900; }
