/* Les Héros de la Guilde : violet et or, pensé d'abord pour le téléphone. */
:root {
  --fond: #140c20;
  --fond-2: #1f1430;
  --carte: #2a1c40;
  --carte-2: #352452;
  --bord: #4a3470;
  --texte: #f3ecff;
  --doux: #b7a6d6;
  --or: #f1c40f;
  --or-2: #e0a800;
  --violet: #8e44ad;
  --rouge: #e74c3c;
  --vert: #2ecc71;
  --bleu: #5dade2;
  --rayon: 14px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--fond); color: var(--texte); }
body {
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100dvh;
  background: radial-gradient(circle at 50% -10%, #3b2160 0%, var(--fond) 60%) fixed;
}
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0 0 8px; line-height: 1.2; }
h2 { font-size: 20px; }
h3 { font-size: 16px; color: var(--or); }
p { margin: 0 0 10px; }
.petit { font-size: 12.5px; color: var(--doux); }
a { color: var(--or); }

/* Boutons */
.bouton, button {
  appearance: none; border: 1px solid var(--bord); background: var(--carte-2); color: var(--texte);
  font: inherit; font-weight: 600; border-radius: 12px; padding: 11px 14px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none;
  min-height: 44px; transition: transform .08s, filter .15s;
}
.bouton:active, button:active { transform: scale(.97); }
button:disabled { opacity: .45; cursor: not-allowed; }
.or { background: linear-gradient(180deg, var(--or), var(--or-2)); color: #2a1a00; border-color: #ffd95a; }
.rouge { background: linear-gradient(180deg, #ef5b4c, #c0392b); border-color: #ff8a7e; }
.vert { background: linear-gradient(180deg, #3ddc84, #239b56); border-color: #7ef0b0; color: #062a14; }
.grand { width: 100%; font-size: 17px; padding: 14px; }
.ligne-boutons { display: flex; gap: 8px; flex-wrap: wrap; }
.ligne-boutons > * { flex: 1 1 0; }

/* Connexion */
.ecran-connexion, .message { max-width: 460px; margin: 0 auto; padding: 48px 20px; text-align: center; }
.blason { font-size: 72px; filter: drop-shadow(0 0 18px rgba(241, 196, 15, .5)); }
.ecran-connexion h1 { font-size: 28px; color: var(--or); margin-bottom: 14px; }
.ecran-connexion .bouton { margin: 18px 0; }

/* En-tête et onglets */
.entete {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px; background: rgba(20, 12, 32, .92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--bord);
}
.avatar { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--or); background: var(--carte); }
.ressources { display: flex; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.ressources b { color: var(--or); }
#vue { padding: 16px 16px calc(90px + env(safe-area-inset-bottom)); max-width: 720px; margin: 0 auto; }
.onglets {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 5; display: flex;
  background: rgba(20, 12, 32, .96); border-top: 1px solid var(--bord); padding-bottom: env(safe-area-inset-bottom);
}
.onglets a {
  flex: 1; text-align: center; color: var(--doux); text-decoration: none; font-size: 11px; padding: 6px 0 8px;
  display: flex; flex-direction: column; align-items: center; min-height: 54px; justify-content: center;
}
.onglets a span { font-size: 21px; }
.onglets a.actif { color: var(--or); }

/* Cartes */
.carte { background: var(--carte); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 14px; margin-bottom: 12px; }
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.heros {
  position: relative; background: linear-gradient(180deg, var(--carte-2), var(--carte)); border: 2px solid var(--bord);
  border-radius: var(--rayon); padding: 12px 10px; text-align: center; cursor: pointer; overflow: hidden;
}
.heros .emoji { font-size: 40px; line-height: 1.1; }
.heros .emoji small { font-size: 18px; vertical-align: top; margin-left: 2px; }
/* sprite d'un héros (bande de 5 poses) : la pose de repos sur les cartes, toutes ses poses à la suite dans sa fiche */
.portrait { width: 96px; aspect-ratio: 1; margin: 0 auto; background: var(--img) 0 0 / 500% 100% no-repeat;
  filter: drop-shadow(0 3px 3px #0008); }
.portrait.anime { width: min(200px, 60vw); animation: portrait-poses 6s steps(5) infinite; }
.heros .emoji:has(.portrait) small { display: block; margin: 0; font-size: 14px; }
@keyframes portrait-poses { to { background-position-x: 125%; } }
@media (prefers-reduced-motion: reduce) { .heros .portrait.anime { animation: none; } }
.unite .element { position: absolute; top: 4px; right: 6px; font-size: 16px; }
.heros .nom { font-weight: 700; font-size: 14px; margin-top: 4px; }
.heros .etoiles { color: var(--or); letter-spacing: 1px; font-size: 13px; }
.heros .niv { font-size: 12px; color: var(--doux); }
.heros.e4 { border-color: #c39bd3; box-shadow: 0 0 14px rgba(195, 155, 211, .35); }
.heros.e7 { border-color: var(--or); box-shadow: 0 0 16px rgba(241, 196, 15, .35); }
.heros.e10 { border-color: var(--or); background: linear-gradient(180deg, #5a3d00, var(--carte)); box-shadow: 0 0 22px rgba(241, 196, 15, .6); }
.pastille {
  position: absolute; top: 6px; left: 6px; font-size: 11px; background: var(--violet); border-radius: 8px; padding: 1px 6px;
}
.pastille.droite { left: auto; right: 6px; background: #555; }
.filtres { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; }
.filtres button { min-height: 36px; padding: 6px 12px; font-size: 13px; flex: none; }
.filtres button.actif { background: var(--violet); border-color: #c39bd3; }

/* Fenêtre */
.fenetre {
  position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, .6); display: flex; align-items: flex-end;
  justify-content: center;
}
.fenetre-contenu {
  width: 100%; max-width: 560px; max-height: 88dvh; overflow-y: auto; background: var(--fond-2);
  border: 1px solid var(--bord); border-radius: 20px 20px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; margin: 10px 0; }
.stats div { background: var(--carte); border-radius: 10px; padding: 6px 2px; font-size: 13px; }
.stats b { display: block; font-size: 16px; }
.competence { padding: 8px 10px; border-left: 3px solid var(--violet); background: var(--carte); border-radius: 8px; margin-bottom: 6px; font-size: 13.5px; }
.competence.verrou { opacity: .5; border-left-color: #666; }
.toast {
  position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30;
  background: #000d; border: 1px solid var(--or); padding: 10px 16px; border-radius: 12px; max-width: 90vw; text-align: center;
}

/* Invocation */
.tirage { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; margin-top: 12px; }
.tirage .heros { animation: apparition .5s both; }
@keyframes apparition { from { transform: rotateY(90deg) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.taux { display: flex; gap: 8px; justify-content: space-between; font-size: 12.5px; color: var(--doux); margin-top: 8px; }

/* Donjon */
.etage { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 12px 0; }
.etage b { font-size: 34px; color: var(--or); min-width: 70px; text-align: center; }
.etage button { width: 52px; font-size: 22px; }

/* Combat */
.combat { display: flex; flex-direction: column; gap: 10px; }
.combat-info { display: flex; justify-content: space-between; font-size: 13px; color: var(--doux); }
.camp { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.unite {
  position: relative; width: 31%; min-width: 96px; max-width: 150px; background: var(--carte); border: 2px solid var(--bord);
  border-radius: 12px; padding: 8px 6px; text-align: center; transition: transform .15s, border-color .15s;
}
.unite.ko { opacity: .3; filter: grayscale(1); }
.unite.cible { border-color: var(--rouge); box-shadow: 0 0 12px rgba(231, 76, 60, .6); }
.unite.choisie { border-color: var(--or); }
.unite.selection { border-color: var(--or); box-shadow: 0 0 14px rgba(241, 196, 15, .6); transform: translateY(-3px); }
.unite.boss { width: 70%; max-width: 260px; border-color: #c0392b; }
.unite .emoji { font-size: 34px; line-height: 1.1; }
.unite.boss .emoji { font-size: 54px; }
.unite .nom { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre { height: 7px; background: #0006; border-radius: 4px; overflow: hidden; margin-top: 4px; }
.barre i { display: block; height: 100%; background: var(--vert); transition: width .3s; }
.barre.jauge i { background: var(--bleu); }
.barre.jauge.pleine i { background: var(--or); animation: pulse 1s infinite; }
.barre.rage i { background: var(--rouge); }
@keyframes pulse { 50% { filter: brightness(1.5); } }
.unite .pv { font-size: 11px; color: var(--doux); }
.etats { font-size: 11px; min-height: 14px; }
.unite.touche { animation: secousse .3s; }
@keyframes secousse { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.flottant {
  position: absolute; left: 50%; top: 20%; transform: translateX(-50%); font-weight: 800; font-size: 20px; pointer-events: none;
  animation: monte .9s forwards; text-shadow: 0 2px 4px #000;
}
.flottant.degat { color: #ff6b5b; }
.flottant.crit { color: var(--or); font-size: 25px; }
.flottant.soin { color: var(--vert); }
.flottant.bouclier { color: var(--bleu); }
@keyframes monte { to { transform: translate(-50%, -40px); opacity: 0; } }
.bandeau-special {
  text-align: center; font-weight: 800; color: var(--or); font-size: 18px; min-height: 26px; text-shadow: 0 0 10px #f1c40f88;
}
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.actions button.actif { outline: 2px solid var(--or); }
.sous-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.sous-actions button { justify-content: flex-start; text-align: left; font-weight: 500; }
.chrono { color: var(--or); font-weight: 700; }
.resultat { text-align: center; padding: 20px 10px; }
.resultat .grand-titre { font-size: 30px; font-weight: 800; color: var(--or); }

@media (min-width: 600px) {
  .actions { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Raretés des héros ---------- */
.heros .rarete { font-size: 11px; font-weight: 700; letter-spacing: .3px; }
/* 1★ Novice · 2★ Apprenti · 3★ Aguerri · 4★ Héroïque · 5★ Épique · 6★ Légendaire · 7★ Mythique */
.heros.r-1 .rarete { color: #c9b9a6; }
.heros.r-2 .rarete { color: #6fdc8c; }
.heros.r-3 .rarete { color: #6ec1ff; }
.heros.r-4 .rarete { color: #c77dff; }
.heros.r-5 .rarete { color: #ff9f43; }
.heros.r-6 .rarete, .heros.r-7 .rarete { color: var(--or); }
.heros.r-2 { border-color: #2e8b57; }
.heros.r-3 { border-color: #3f7fbf; }
.heros.r-4 { border-color: #9b59b6; box-shadow: 0 0 12px rgba(155, 89, 182, .35); }
.heros.r-5 { border-color: #e67e22; box-shadow: 0 0 14px rgba(230, 126, 34, .4); }
.heros.r-6 { border-color: var(--or); box-shadow: 0 0 16px rgba(241, 196, 15, .45); }
.heros.r-7 { border-color: #fff3b0; box-shadow: 0 0 20px rgba(255, 230, 120, .6); }
.citation { font-style: italic; color: var(--or); margin-top: 4px; }
.competence.ultime { border-left-color: var(--or); }
.heros.r-6::after, .heros.r-7::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, #fff5 48%, transparent 66%); background-size: 250% 100%;
  animation: reflet 2.8s infinite;
}
@keyframes reflet { from { background-position: 150% 0; } to { background-position: -100% 0; } }

/* ---------- Décor des zones (decor.js) ---------- */
#decor { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; transition: filter .8s; }
#decor:empty { display: none; }
#app { position: relative; z-index: 1; }
#decor .paysage { position: absolute; left: 0; bottom: 0; width: 100%; height: 55vh; }
#decor .plafond { position: absolute; left: 0; top: 0; width: 100%; height: 14vh; }
#decor .astre { position: absolute; top: 9vh; right: 12%; width: 90px; height: 90px; border-radius: 50%; }
#decor .astre.grand { width: 140px; height: 140px; top: 6vh; }
#decor .astre.petit { width: 60px; height: 60px; }
#decor .particules { position: absolute; inset: 0; }
#decor .particule { position: absolute; border-radius: 50%; animation-iteration-count: infinite; animation-timing-function: linear; }
.p-monte { animation-name: p-monte; }
.p-monte-lent { animation-name: p-monte; opacity: .7; }
.p-tombe { animation-name: p-tombe; }
.p-vent { animation-name: p-vent; border-radius: 2px !important; }
.p-pluie { animation-name: p-tombe; border-radius: 1px !important; }
.p-erre { animation-name: p-erre; animation-timing-function: ease-in-out !important; filter: blur(.5px); box-shadow: 0 0 10px 3px #d8ff6a88; }
.p-scintille { animation-name: p-scintille; animation-timing-function: ease-in-out !important; box-shadow: 0 0 8px 2px #b49cff; }
@keyframes p-monte { from { transform: translate(0, 60vh); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { transform: translate(var(--dx), -60vh); opacity: 0; } }
@keyframes p-tombe { from { transform: translate(0, -110vh); } to { transform: translate(var(--dx), 110vh); } }
@keyframes p-vent { from { transform: translate(-60vw, 0); } to { transform: translate(110vw, var(--dx)); } }
@keyframes p-erre { 0%, 100% { transform: translate(0, 0); opacity: .15; } 25% { transform: translate(22px, -16px); opacity: 1; }
  50% { transform: translate(-10px, -32px); opacity: .4; } 75% { transform: translate(-26px, -6px); opacity: 1; } }
@keyframes p-scintille { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } }
#decor .brume {
  position: absolute; left: 0; bottom: 8vh; width: 200%; height: 30vh; opacity: .45;
  background: radial-gradient(ellipse at 25% 50%, #dfe8d8 0, transparent 60%), radial-gradient(ellipse at 75% 60%, #dfe8d8 0, transparent 55%);
  animation: brume 38s linear infinite;
}
#decor .brume.b2 { bottom: 20vh; opacity: .25; animation-duration: 60s; animation-direction: reverse; }
@keyframes brume { to { transform: translateX(-50%); } }
#decor .eclair-flash { position: absolute; inset: 0; background: #dfe7ff; opacity: 0; animation: eclair 7s infinite; }
@keyframes eclair { 0%, 90% { opacity: 0; } 91% { opacity: .75; } 92% { opacity: 0; } 94% { opacity: .5; } 97%, 100% { opacity: 0; } }
#decor .lave { animation: pulse 1.6s infinite; }
#decor .cristal { animation: pulse 2.4s infinite; }
#decor .vague-anim { animation: houle 4s ease-in-out infinite alternate; }
#decor .vague-anim.lente { animation-duration: 6s; }
@keyframes houle { to { transform: translateX(-18px); } }
#decor .fenetre-allumee { animation: pulse 3s infinite; }
#decor .voile-boss { position: absolute; inset: 0; opacity: 0; transition: opacity 1s;
  background: radial-gradient(ellipse at center, transparent 35%, #a0000088 100%); }
#decor.boss { filter: saturate(1.3) brightness(.7); }
#decor.boss .voile-boss { opacity: 1; animation: battement 1.4s infinite; }
@keyframes battement { 0%, 100% { opacity: .55; } 15% { opacity: 1; } 30% { opacity: .65; } 45% { opacity: .95; } }
/* Avec un décor, les cartes laissent voir le paysage */
.avec-decor .unite { background: rgba(30, 18, 46, .78); backdrop-filter: blur(3px); }
.avec-decor .combat .carte, .avec-decor .carte.zone { background: rgba(30, 18, 46, .86); backdrop-filter: blur(4px); }
.avec-decor .combat-info { color: #fff; text-shadow: 0 1px 3px #000; }
.avec-decor .bandeau-special { text-shadow: 0 0 10px #000, 0 0 4px #000; }
.unite.boss { box-shadow: 0 0 22px rgba(231, 76, 60, .55); animation: menace 2.2s ease-in-out infinite; }
@keyframes menace { 50% { box-shadow: 0 0 34px rgba(231, 76, 60, .9); } }

/* Titre de zone au début du combat */
.annonce-zone {
  position: fixed; left: 0; right: 0; top: 28vh; z-index: 25; text-align: center; pointer-events: none;
  text-shadow: 0 2px 10px #000, 0 0 3px #000; animation: annonce 2.6s ease both;
}
.az-emoji { font-size: 46px; }
.az-nom { font-size: 26px; font-weight: 800; color: var(--or); letter-spacing: 1px; }
.az-sous { font-size: 14px; color: #fff; }
@keyframes annonce { 0% { opacity: 0; transform: translateY(12px); } 15%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-10px); } }

/* Arrivée d'un boss */
.arrivee-boss {
  position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  background: radial-gradient(ellipse at center, #4a0000ee 0, #0a0000f5 75%); animation: boss-entre .35s ease both; cursor: pointer;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
.arrivee-boss.sortie { animation: boss-sort .4s ease both; }
@keyframes boss-entre { from { opacity: 0; } }
@keyframes boss-sort { to { opacity: 0; transform: scale(1.06); } }
.arrivee-boss .bande {
  display: flex; white-space: nowrap; background: repeating-linear-gradient(-45deg, #f1c40f 0 18px, #1a1a1a 18px 36px);
  padding: 4px 0; font-weight: 900; font-size: 15px; letter-spacing: 3px; color: #fff; text-shadow: 0 0 4px #000, 0 0 2px #000;
}
.arrivee-boss .bande span { animation: defile 5s linear infinite; padding-right: 20px; }
.arrivee-boss .bande.bas span { animation-direction: reverse; }
@keyframes defile { to { transform: translateX(-100%); } }
.boss-coeur { position: relative; text-align: center; padding: 0 20px; }
.boss-lueur { position: absolute; left: 50%; top: 70px; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%;
  background: radial-gradient(circle, #ff3b1f88, transparent 65%); animation: pulse 1s infinite; }
.boss-emoji { position: relative; font-size: 110px; line-height: 1.1; filter: drop-shadow(0 0 22px #ff2a00);
  animation: boss-impact .7s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes boss-impact { from { transform: scale(3.2); opacity: 0; filter: blur(8px); } 70% { opacity: 1; } }
.boss-nom { position: relative; font-size: 28px; font-weight: 900; color: #ffd0c4; text-transform: uppercase; letter-spacing: 2px;
  text-shadow: 0 0 14px #ff2a00, 0 2px 0 #000; animation: boss-nom .6s .45s ease both; }
@keyframes boss-nom { from { opacity: 0; letter-spacing: 14px; } }
.boss-phrase { position: relative; margin: 12px auto 0; max-width: 440px; font-style: italic; color: #f3dcd6;
  animation: boss-nom .6s 1s ease both; }
#app.tremble { animation: tremble .6s; }
@keyframes tremble { 10%, 50%, 90% { transform: translate(-6px, 3px); } 30%, 70% { transform: translate(6px, -3px); } }

/* Combat auto */
.combat-info { align-items: center; gap: 8px; }
.bouton-auto { min-height: 32px; padding: 4px 10px; font-size: 12.5px; border-radius: 20px; }
.bouton-auto.actif { background: linear-gradient(180deg, #3ddc84, #239b56); border-color: #7ef0b0; color: #062a14; }

@media (prefers-reduced-motion: reduce) {
  #app.tremble, .boss-emoji, .unite.boss, .heros.r-6::after, .heros.r-7::after, #decor .eclair-flash { animation: none; }
}

/* Histoire d'un héros (Gor, Jacob, Lock…) */
.histoire { font-style: italic; font-size: 13.5px; background: var(--carte); border-left: 3px solid var(--or); border-radius: 8px;
  padding: 8px 10px; }

/* Catalogue « Tous les héros » : les héros pas encore débloqués restent visibles, grisés, avec un cadenas */
.heros.verrouille { filter: grayscale(.85) brightness(.75); opacity: .75; box-shadow: none; }
.heros.verrouille::after { display: none; }
.heros.verrouille:hover, .heros.verrouille:active { filter: grayscale(.4) brightness(.95); opacity: 1; }
.heros .cadenas { position: absolute; top: 6px; right: 6px; font-size: 14px; }
.titre-palier { margin: 14px 0 8px; }


.titre-palier { color: var(--or); }
.titres { padding-left: 0; list-style: none; font-size: 13.5px; }
.titres li { padding: 3px 8px; border-radius: 6px; }
.titres li.actuel { background: var(--carte); font-weight: 700; }

/* Tri des héros */
.filtres.tri { align-items: center; }
.filtres.tri span { font-size: 13px; color: var(--doux); flex: none; }
.heros .valeur-tri { font-size: 13px; font-weight: 700; color: var(--or); margin-top: 2px; }

/* ---------- Évolution (animationEvolution) ---------- */
.evo-scene { text-align: center; padding-bottom: 4px; }
.evo-materiaux { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; min-height: 20px; margin: 10px 0 18px; }
.evo-mat { width: 92px; padding: 8px 4px; cursor: default; transition: transform .55s cubic-bezier(.5, 0, .9, .4), opacity .55s, filter .55s; }
.evo-mat .emoji { font-size: 28px; }
.evo-mat .nom { font-size: 12px; }
.evo-mat .vaut { font-size: 11px; color: var(--doux); }
.evo-mat.aspire { transform: translate(var(--dx), var(--dy)) scale(.15) rotate(200deg); opacity: 0; filter: brightness(2.5); }
.evo-centre { width: 210px; margin: 0 auto; padding: 16px 10px; cursor: default; overflow: visible; }
.evo-centre .emoji { font-size: 64px; }
.evo-centre .nom { font-size: 16px; min-height: 2.4em; display: flex; align-items: center; justify-content: center; }
.evo-centre .etoiles { font-size: 20px; letter-spacing: 2px; }
.evo-centre.absorbe { animation: evo-absorbe .35s; }
.evo-centre.charge { animation: evo-charge 1s ease-in forwards; }
.evo-centre.eclat { animation: evo-eclat .9s ease-out; }
.evo-centre .etoiles .nouvelle { display: inline-block; animation: evo-etoile .7s .25s both; }
.evo-texte { margin-top: 14px; min-height: 2.6em; }
.evo-citation { font-size: 16px; animation: apparition .5s both; margin: 6px 0 12px; }
@keyframes evo-absorbe { 40% { transform: scale(1.08); filter: brightness(1.6); } }
@keyframes evo-charge {
  0% { transform: none; }
  20% { transform: translateX(-3px); } 40% { transform: translateX(3px) scale(1.03); }
  60% { transform: translateX(-4px) scale(1.05); } 80% { transform: translateX(4px) scale(1.07); }
  100% { transform: scale(1.1); filter: brightness(2.2); box-shadow: 0 0 60px 20px rgba(255, 240, 180, .8); }
}
@keyframes evo-eclat {
  0% { transform: scale(1.15); filter: brightness(4); box-shadow: 0 0 120px 60px #fff; }
  100% { transform: none; filter: none; }
}
@keyframes evo-etoile { from { transform: scale(4) rotate(-180deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .evo-mat, .evo-centre, .evo-centre * { animation-duration: .01s !important; transition-duration: .01s !important; }
}

/* Salon du raid : 6 places */
.salon-places { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 10px 0; }
.salon-place { background: var(--carte-2); border: 1px solid var(--bord); border-radius: 10px; padding: 8px; font-size: 13px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.salon-place b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.salon-place.vide { color: var(--doux); border-style: dashed; justify-content: center; text-align: center; }
.salon-place.renfort { border-color: #8e7cc3; }

/* Combat à 6 contre 6 : unités plus compactes pour tenir sur un téléphone */
.camp.serre { gap: 5px; }
.camp.serre .unite { width: 31.5%; min-width: 0; padding: 5px 4px; }
.camp.serre .unite .emoji { font-size: 26px; }
.camp.serre .unite .nom { font-size: 11px; }
.camp.serre .unite .pv { font-size: 10px; }
.camp.serre .barre { height: 5px; margin-top: 3px; }

/* Effets d'éléments en combat : sur la cible touchée (.fx) et autour de celui qui lance une Technique/un Ultime (aura) */
.fx { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.fx i { position: absolute; left: calc(14% + var(--i) * 11%); bottom: 25%; width: 9px; height: 9px; border-radius: 50%;
  opacity: 0; animation: .6s ease-out calc(var(--i) * 35ms) forwards; }
.fx::before { content: ""; position: absolute; inset: 0; border-radius: 12px; opacity: 0; animation: fx-lueur .5s ease-out forwards; }
@keyframes fx-lueur { 20% { opacity: 1; } to { opacity: 0; } }
/* 🔥 flammes et braises qui montent */
.fx-feu::before { background: radial-gradient(circle at 50% 80%, rgba(255, 140, 40, .75), rgba(255, 60, 20, .25) 55%, transparent 75%); }
.fx-feu i { background: radial-gradient(circle, #fff3a0, #ff9d2a 45%, #e4301a); box-shadow: 0 0 8px #ff7a2a; animation-name: fx-flamme; }
@keyframes fx-flamme { 0% { opacity: 1; transform: translate(0, 10px) scale(1.4); }
  to { opacity: 0; transform: translate(calc(var(--dx) / 4), -48px) scale(.3); } }
/* 💧 éclaboussure : un anneau, des gouttes qui retombent */
.fx-eau::before { inset: 15%; border-radius: 50%; border: 3px solid rgba(110, 200, 255, .9); animation-name: fx-anneau; }
@keyframes fx-anneau { 0% { opacity: 1; transform: scale(.3); } to { opacity: 0; transform: scale(1.4); } }
.fx-eau i { left: 46%; bottom: 45%; width: 7px; height: 10px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(#d6f3ff, #3a9bea); animation-name: fx-goutte; }
@keyframes fx-goutte { 0% { opacity: 1; transform: translate(0, 0); } 45% { transform: translate(calc(var(--dx) * .7), var(--dy)); }
  to { opacity: 0; transform: translate(var(--dx), 20px); } }
/* 🌪️ entailles de vent qui tournent */
.fx-vent::before { inset: 8%; border-radius: 50%; border: 3px dashed rgba(170, 255, 210, .8); animation-name: fx-tourbillon; }
@keyframes fx-tourbillon { 0% { opacity: 1; transform: rotate(0) scale(.5); } to { opacity: 0; transform: rotate(270deg) scale(1.2); } }
.fx-vent i { left: 20%; bottom: 50%; width: 60%; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, #e9fff3, #7be0a8, transparent); animation-name: fx-entaille; }
@keyframes fx-entaille { 0% { opacity: 1; transform: rotate(var(--r)) scaleX(0); } 50% { opacity: 1; transform: rotate(var(--r)) scaleX(1); }
  to { opacity: 0; transform: rotate(var(--r)) scaleX(1.2) translateX(20px); } }
/* ⛰️ rochers qui tombent et poussière */
.fx-terre::before { background: radial-gradient(ellipse at 50% 95%, rgba(170, 120, 70, .8), transparent 65%); }
.fx-terre i { width: 11px; height: 9px; border-radius: 3px 5px 2px 4px; background: linear-gradient(135deg, #b98a5a, #6b4a2b);
  animation-name: fx-rocher; }
@keyframes fx-rocher { 0% { opacity: 1; transform: translate(calc(var(--dx) / 3), -60px) rotate(0); }
  70% { opacity: 1; transform: translate(calc(var(--dx) / 3), 0) rotate(var(--r)); }
  to { opacity: 0; transform: translate(calc(var(--dx) / 2), -6px) rotate(var(--r)); } }
/* ⚡ éclair en zigzag, flash et étincelles */
.fx-eclair::before { left: 30%; right: 30%; inset-block: -10% 10%; border-radius: 0; background: #fff6a0; box-shadow: 0 0 12px #ffe14a;
  clip-path: polygon(55% 0, 20% 48%, 48% 48%, 30% 100%, 82% 38%, 54% 38%, 75% 0); animation-name: fx-foudre; animation-duration: .45s; }
@keyframes fx-foudre { 0%, 40% { opacity: 1; } 20%, 60% { opacity: .2; } to { opacity: 0; } }
.fx-eclair i { left: 48%; bottom: 45%; width: 5px; height: 5px; background: #fff6a0; box-shadow: 0 0 6px #ffd400; animation-name: fx-etincelle; }
@keyframes fx-etincelle { 0% { opacity: 1; transform: translate(0, 0); } to { opacity: 0; transform: translate(var(--dx), var(--dy)); } }
/* ☠️ poison : bulles vertes */
.fx-poison::before { background: radial-gradient(circle at 50% 70%, rgba(120, 220, 90, .45), transparent 70%); }
.fx-poison i { border: 2px solid #8be36a; background: rgba(139, 227, 106, .25); animation-name: fx-bulle; animation-duration: .75s; }
@keyframes fx-bulle { 0% { opacity: 1; transform: translate(0, 6px) scale(.5); } to { opacity: 0; transform: translate(calc(var(--dx) / 5), -40px) scale(1.2); } }
/* Aura */
.unite.aura-feu { box-shadow: 0 0 18px 4px rgba(255, 120, 40, .8); border-color: #ff8a3a; }
.unite.aura-eau { box-shadow: 0 0 18px 4px rgba(70, 170, 255, .8); border-color: #5ab8ff; }
.unite.aura-vent { box-shadow: 0 0 18px 4px rgba(110, 230, 160, .8); border-color: #7be0a8; }
.unite.aura-terre { box-shadow: 0 0 18px 4px rgba(190, 140, 80, .85); border-color: #c4935c; }
.unite.aura-eclair { box-shadow: 0 0 18px 4px rgba(255, 225, 70, .85); border-color: #ffe14a; }
@media (prefers-reduced-motion: reduce) {
  .fx i { display: none; }
  .fx::before { animation-duration: .01s !important; }
}

/* ---------- Écran titre ---------- */
.ecran-titre { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(ellipse at 50% 115%, #6b2a12 0%, #2a1236 45%, #0b0714 100%); }
.ecran-titre::before { content: ""; position: absolute; inset: -20%;
  background: radial-gradient(circle at 50% 40%, rgba(241, 196, 15, .18), transparent 55%); animation: titre-halo 6s ease-in-out infinite; }
.titre-braises { position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(2px 2px at 10% 90%, #ffb347, transparent), radial-gradient(2px 2px at 30% 95%, #ffd27a, transparent),
    radial-gradient(1.5px 1.5px at 55% 92%, #ff8c42, transparent), radial-gradient(2px 2px at 75% 97%, #ffd27a, transparent),
    radial-gradient(1.5px 1.5px at 90% 93%, #ffb347, transparent), radial-gradient(1.5px 1.5px at 45% 99%, #fff1b8, transparent);
  background-size: 100% 100%; animation: titre-braises 7s linear infinite; opacity: .9; }
.titre-contenu { position: relative; text-align: center; padding: 16px; }
.titre-blason { font-size: 76px; filter: drop-shadow(0 0 24px rgba(241, 196, 15, .7)); animation: titre-flotte 4s ease-in-out infinite; }
.titre-nom { margin: 10px 0 42px; font-family: Georgia, "Times New Roman", serif; line-height: 1.05; }
.titre-nom span { display: block; font-size: clamp(34px, 11vw, 64px); letter-spacing: .04em;
  background: linear-gradient(100deg, #b8860b 0%, #fff3b0 40%, #f1c40f 55%, #b8860b 100%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 #3b1d05) drop-shadow(0 0 18px rgba(241, 196, 15, .35));
  animation: titre-reflet 5s linear infinite, titre-entree 1.4s ease-out both; }
.titre-nom span + span { font-size: clamp(24px, 7.5vw, 42px); animation-delay: 0s, .35s; }
.bouton-start { font: 700 22px Georgia, serif; letter-spacing: .3em; padding: 14px 40px 14px 48px; color: #fff3b0; cursor: pointer;
  background: linear-gradient(#5a2d0c, #2b1406); border: 2px solid #f1c40f; border-radius: 6px;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, .35), 0 0 22px rgba(241, 196, 15, .45); animation: titre-start 1.6s ease-in-out infinite, titre-entree 1.4s .8s ease-out both; }
.bouton-start:focus-visible { outline: 3px solid #fff3b0; outline-offset: 4px; }
.titre-pied { margin-top: 36px; font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: rgba(255, 243, 176, .45); }
.ecran-titre.part { animation: titre-part .9s ease-in forwards; }
.ecran-titre.part .bouton-start { animation: titre-eclat .5s ease-out forwards; }
@keyframes titre-halo { 50% { transform: scale(1.12); opacity: .7; } }
@keyframes titre-braises { from { transform: translateY(0); } to { transform: translateY(-100%); } }
@keyframes titre-flotte { 50% { transform: translateY(-8px); } }
@keyframes titre-reflet { from { background-position: 150% 0; } to { background-position: -100% 0; } }
@keyframes titre-entree { from { opacity: 0; transform: translateY(18px) scale(.96); } }
@keyframes titre-start { 50% { box-shadow: 0 0 0 4px rgba(0, 0, 0, .35), 0 0 38px rgba(241, 196, 15, .85); color: #fff; } }
@keyframes titre-eclat { to { transform: scale(1.25); filter: brightness(2.2); opacity: 0; } }
@keyframes titre-part { 0% { filter: brightness(1); } 25% { filter: brightness(2.4); } 100% { opacity: 0; filter: brightness(1); } }
.bouton-son { position: fixed; top: 10px; right: 10px; z-index: 40; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(241, 196, 15, .5); background: rgba(20, 10, 30, .75); font-size: 18px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .ecran-titre *, .ecran-titre::before, .ecran-titre { animation: none !important; } }

/* ---------- Sprites de combat : une bande de poses (repos, attaque, dégâts, vaincu, [Ultime]) ---------- */
.unite .sprite { --pose: 0; width: 100%; max-width: 120px; margin: -4px auto 0; aspect-ratio: 1;
  background: var(--img) calc(var(--pose) * 100% / (var(--poses) - 1)) 0 / calc(var(--poses) * 100%) 100% no-repeat;
  transform-origin: 50% 100%; animation: sprite-respire 2.6s ease-in-out infinite; filter: drop-shadow(0 4px 3px #0008); }
.unite.boss .sprite { max-width: 210px; }
.camp.serre .unite .sprite { max-width: 84px; }
.unite.pose-attaque .sprite { --pose: 1; animation: sprite-elan .7s ease-out; }
.unite.pose-ultime .sprite { --pose: 4; animation: sprite-ultime .75s ease-out; filter: drop-shadow(0 0 10px var(--or)); }
.unite.touche .sprite { --pose: 2; animation: none; }
.unite.ko .sprite { --pose: 3; animation: none; }
.unite.ko:has(.sprite) { opacity: .75; filter: grayscale(.6); }
/* les héros font face aux ennemis, placés au-dessus d'eux : l'élan part vers le haut ; celui des ennemis vers le bas */
@keyframes sprite-respire { 50% { transform: scale(1.025, .975); } }
@keyframes sprite-elan { 30% { transform: translateY(var(--elan, -14px)) scale(1.12); } }
.unite[id^="u-m"] .sprite { --elan: 14px; }
@keyframes sprite-ultime { 0% { transform: scale(1); } 35% { transform: scale(1.3); filter: brightness(1.8) drop-shadow(0 0 16px #fff); } }
@media (prefers-reduced-motion: reduce) { .unite .sprite { animation: none !important; } }
.reglage-son { position: fixed; top: 54px; right: 10px; z-index: 41; width: min(240px, calc(100vw - 32px)); padding: 12px 14px;
  display: grid; gap: 10px; border-radius: 14px; border: 1px solid rgba(241, 196, 15, .45);
  background: rgba(20, 10, 30, .94); box-shadow: 0 8px 24px #000a; }
.reglage-son[hidden] { display: none; }
.reglage-son label { display: flex; justify-content: space-between; font-size: 14px; }
.reglage-son input[type=range] { width: 100%; accent-color: #f1c40f; min-height: 28px; }

/* ---------- Bannière d'invocation ---------- */
.banniere { position: relative; overflow: hidden; margin: 12px 0 6px; padding: 22px 16px 16px; border-radius: 16px; text-align: center;
  border: 1px solid rgba(241, 196, 15, .6); isolation: isolate;
  background: radial-gradient(120% 90% at 50% 0%, #6b3fa0 0%, #2a1446 55%, #160a26 100%);
  box-shadow: 0 0 24px rgba(155, 89, 182, .35), inset 0 0 30px rgba(241, 196, 15, .12); }
.banniere::before { content: ""; position: absolute; inset: -50%; z-index: -1; opacity: .35;
  background: conic-gradient(from 0deg, transparent 0 20deg, #f1c40f55 25deg, transparent 30deg 80deg, #9b59b655 85deg, transparent 90deg 140deg,
    #3498db55 145deg, transparent 150deg 200deg, #f1c40f55 205deg, transparent 210deg 260deg, #e74c3c55 265deg, transparent 270deg 320deg, #2ecc7155 325deg, transparent 330deg);
  animation: banniere-tourne 24s linear infinite; }
@keyframes banniere-tourne { to { transform: rotate(1turn); } }
.banniere h2 { margin: 6px 0 2px; font-family: Georgia, serif; color: #fff3b0; text-shadow: 0 0 12px #f1c40f88; }
.banniere p { margin: 2px 0; }
.banniere .ligne-boutons { justify-content: center; margin-top: 12px; }
.banniere-etiquette { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #1a1029; background: linear-gradient(90deg, #f1c40f, #ffe680, #f1c40f); background-size: 200% 100%;
  animation: etiquette-brille 2.5s linear infinite; }
@keyframes etiquette-brille { to { background-position: -200% 0; } }
.banniere-epique { font-weight: 700; color: #ffb347; }
.bientot { text-align: center; margin: 0 0 8px; opacity: .8; }

/* ---------- Animation d'invocation ---------- */
.invoc { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 55%, #1d0f33 0%, #07030d 75%); animation: invoc-entre .35s both; }
.invoc.part { animation: invoc-entre .3s reverse both; }
@keyframes invoc-entre { from { opacity: 0; } }
.invoc > *, .invoc-corps > * { grid-area: 1 / 1; }
.p-epique .invoc-rayons { opacity: .55; }
.invoc-corps { display: grid; place-items: center; }
.invoc-corps[hidden] { display: none; }
.invoc-passer { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 3; padding: 6px 14px;
  border-radius: 20px; background: #0008; color: #fff; border: 1px solid #fff4; font-size: 13px; }
/* cercle de runes */
.invoc-cercle { width: min(78vw, 360px); aspect-ratio: 1; position: relative; opacity: 0; transform: scale(.4) rotateX(60deg);
  transition: .9s cubic-bezier(.2, .8, .2, 1); }
.invoc-cercle i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #8fd3ff; box-shadow: 0 0 18px #4aa8ff, inset 0 0 18px #4aa8ff; }
.invoc-cercle i:first-child { animation: tourne 10s linear infinite; border-width: 3px;
  background: repeating-conic-gradient(from 0deg, transparent 0 13deg, #8fd3ff88 13deg 15deg);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%); mask: radial-gradient(circle, transparent 60%, #000 61%); }
.invoc-cercle i:nth-child(2) { inset: 12%; border-style: dashed; animation: tourne 6s linear infinite reverse; }
.invoc-cercle i:nth-child(3) { inset: 26%; border-width: 1px;
  background: repeating-conic-gradient(from 0deg, #8fd3ff55 0 4deg, transparent 4deg 30deg); animation: tourne 3s linear infinite; }
@keyframes tourne { to { transform: rotate(1turn); } }
.p-cercle .invoc-cercle { opacity: 1; transform: scale(1) rotateX(60deg); }
.p-orbe .invoc-cercle i { animation-duration: 1.2s; }
/* particules qui convergent vers le centre */
.invoc-particules { width: 0; height: 0; position: relative; }
.invoc-particules span { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #bfe6ff; box-shadow: 0 0 8px #8fd3ff;
  opacity: 0; transform: rotate(var(--a)) translateY(-45vmin); }
.p-cercle .invoc-particules span { animation: converge 1.1s var(--d) ease-in infinite; }
@keyframes converge { 0% { opacity: 0; transform: rotate(var(--a)) translateY(-45vmin); } 30% { opacity: 1; }
  100% { opacity: 0; transform: rotate(calc(var(--a) + 40deg)) translateY(0); } }
/* orbe : sa couleur annonce la rareté (bleu, or au 4★, arc-en-ciel à l'Épique) */
.invoc-orbe { --c1: #8fd3ff; --c2: #2f7bd8; width: 90px; aspect-ratio: 1; border-radius: 50%; opacity: 0; transform: translateY(40vh) scale(.3);
  background: radial-gradient(circle at 35% 30%, #fff, var(--c1) 35%, var(--c2) 70%, transparent 72%);
  box-shadow: 0 0 40px 10px var(--c1), 0 0 120px 30px var(--c2); transition: transform 1s cubic-bezier(.2, .9, .3, 1.2), opacity .4s; }
.p-orbe .invoc-orbe { opacity: 1; transform: none; animation: pulse .6s ease-in-out infinite alternate; }
@keyframes pulse { to { scale: 1.15; } }
.c-or .invoc-orbe { --c1: #ffe680; --c2: #f39c12; }
.c-or .invoc-cercle i { border-color: #ffe680; box-shadow: 0 0 18px #f1c40f, inset 0 0 18px #f1c40f; }
.c-arc .invoc-orbe { --c1: #fff; --c2: #ff7ae0; animation: pulse .3s ease-in-out infinite alternate, arc 1s linear infinite; }
.c-arc .invoc-cercle i { border-color: #fff; box-shadow: 0 0 22px #ff7ae0, inset 0 0 22px #7af0ff; animation-duration: .6s; }
@keyframes arc { to { filter: hue-rotate(1turn); } }
.secousse { animation: secousse .12s linear infinite; }
@keyframes secousse { 25% { translate: 3px -2px; } 50% { translate: -3px 2px; } 75% { translate: 2px 3px; } }
.invoc-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 2; }
.p-flash .invoc-flash { animation: flash .7s ease-out both; }
@keyframes flash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
/* apparition d'un Épique */
.invoc-scene { position: relative; z-index: 1; width: 100%; max-height: 100%; overflow: auto; padding: 16px; text-align: center; }
.invoc-epique { position: relative; display: grid; justify-items: center; gap: 4px; }
.invoc-rayons { position: absolute; left: 50%; top: 50%; width: 160vmax; aspect-ratio: 1; translate: -50% -50%; opacity: 0; transition: opacity .6s;
  pointer-events: none;
  background: repeating-conic-gradient(from 0deg, #ffb34766 0 6deg, transparent 6deg 18deg); animation: tourne 14s linear infinite;
  -webkit-mask: radial-gradient(circle, #000 0, transparent 55%); mask: radial-gradient(circle, #000 0, transparent 55%); }
.invoc-mot { margin: 0; font: 800 clamp(28px, 9vw, 46px) Georgia, serif; letter-spacing: .12em;
  background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bff95, #6bc7ff, #c56bff, #ff6b6b); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 10px #fff8);
  animation: mot-entre .6s cubic-bezier(.2, 1.6, .4, 1) both, etiquette-brille 2s linear infinite; }
@keyframes mot-entre { from { transform: scale(3); opacity: 0; } }
.invoc-epique h2 { margin: 4px 0 0; color: #fff3b0; font-family: Georgia, serif; animation: monte .5s .5s both; }
.invoc-epique .petit { animation: monte .5s .65s both; }
.invoc-etoiles { margin: 0; color: #ffd93d; font-size: 22px; letter-spacing: .15em; text-shadow: 0 0 10px #f39c12; animation: monte .5s .8s both; }
@keyframes monte { from { opacity: 0; transform: translateY(12px); } }
.invoc-sprite { width: 120px; aspect-ratio: 1; background: var(--img) 0 0 / 500% 100% no-repeat; filter: drop-shadow(0 4px 4px #000a); }
.invoc-emoji { font-size: 64px; line-height: 1.4; }
.invoc-sprite.grand, .invoc-emoji.grand { width: min(62vw, 260px); font-size: 120px; animation: epique-entre .9s .2s cubic-bezier(.2, 1.3, .4, 1) both;
  filter: drop-shadow(0 0 18px #ffd93d) drop-shadow(0 6px 6px #000a); }
@keyframes epique-entre { from { opacity: 0; transform: scale(.2) translateY(40px); } }
/* les cartes tirées */
.invoc-cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; max-width: 560px; margin: 0 auto 16px; }
.invoc-cartes.seul { grid-template-columns: minmax(160px, 220px); justify-content: center; }
.invoc-cartes.seul .invoc-sprite { width: 100%; }
.invoc-carte { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; font-size: 12.5px;
  background: #ffffff10; border: 1px solid #ffffff30; animation: carte-tourne .5s calc(var(--i) * .09s) both; }
.invoc-carte .invoc-sprite { width: 84px; }
.invoc-carte .invoc-emoji { font-size: 44px; }
.invoc-carte.r-4 { border-color: #c56bff; box-shadow: 0 0 12px #9b59b6aa; }
.invoc-carte.r-5 { border-color: #ffb347; box-shadow: 0 0 16px #ff9f1a, inset 0 0 12px #ffd93d55; }
@keyframes carte-tourne { from { transform: rotateY(90deg) scale(.6); opacity: 0; } }
/* mouvement réduit : l'invocation reste (fondus, couleurs), sans rotation, secousse ni particules */
@media (prefers-reduced-motion: reduce) {
  .invoc-cercle i, .invoc-particules span, .secousse, .invoc-rayons, .banniere::before, .banniere-etiquette, .c-arc .invoc-orbe { animation: none !important; }
  .p-orbe .invoc-orbe { animation: none; } }

/* ---------- Paliers d'une zone (Plaines) : un rond par boss de palier, les battus en or ---------- */
.paliers { display: flex; justify-content: space-between; gap: 6px; margin: 10px 0 6px; }
.paliers span { flex: 1; display: grid; place-items: center; padding: 6px 0 4px; border-radius: 12px; font-size: 22px;
  background: #0006; border: 1px solid #fff2; filter: grayscale(.8); opacity: .7; }
.paliers span small { font-size: 11px; color: #ccc; }
.paliers span.fait { filter: none; opacity: 1; border-color: var(--or); }
.paliers span.ici { filter: none; opacity: 1; border-color: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .5); }

/* ---------- Choix du donjon : une tuile par zone, avec sa barre d'avancée ---------- */
.donjons { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 10px; }
.donjons button { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: 0 8px;
  align-items: center; text-align: left; padding: 8px 10px 10px; border-radius: 12px; background: #0006;
  border: 1px solid #fff2; color: inherit; font-size: 13px; line-height: 1.2; }
.donjons button span { grid-row: span 2; font-size: 24px; }
.donjons button small { color: #ccc; }
.donjons button i { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--or); }
.donjons button.fini { border-color: var(--or); }
.donjons button.ici { border-color: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .5); }

/* ---------- Élites : un monstre de la zone, plus gros, aura rouge ---------- */
.unite.elite .sprite { filter: saturate(1.35) contrast(1.1) drop-shadow(0 0 4px #ff3b3b) drop-shadow(0 0 12px rgba(255, 40, 40, .55)); }
.unite.elite .nom::before { content: "ÉLITE "; color: #ff6b6b; font-weight: 900; font-size: 10px; letter-spacing: 1px; }

/* ---------- Annonce d'un Ultime : plein écran, au centre ---------- */
.ultime-annonce { --c1: #ff6a1a; --c2: #ffd23a; position: fixed; inset: 0; z-index: 45; display: grid; place-items: center;
  overflow: hidden; cursor: pointer; background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--c1) 55%, #000), #000f 75%);
  background-color: #000c;
  animation: ul-entre .25s ease both; }
.ultime-annonce.sortie { animation: ul-sort .28s ease both; }
.ul-feu { --c1: #ff5a12; --c2: #ffd23a; }
.ul-eau { --c1: #1f8fff; --c2: #bdf3ff; }
.ul-vent { --c1: #22c776; --c2: #d9ffe9; }
.ul-terre { --c1: #a8682a; --c2: #f3c27a; }
.ul-eclair { --c1: #f5c400; --c2: #ffffff; }
.ul-soin { --c1: #3fe08a; --c2: #fff3a6; }
@keyframes ul-entre { from { opacity: 0; } }
@keyframes ul-sort { to { opacity: 0; transform: scale(1.08); } }
.ul-rayons { position: absolute; width: 220vmax; height: 220vmax; left: 50%; top: 50%; margin: -110vmax 0 0 -110vmax;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--c2) 60%, transparent) 0 6deg, transparent 6deg 18deg);
  mask: radial-gradient(circle, #000 0, transparent 40%); mix-blend-mode: screen; animation: ul-tourne 2s linear both; }
@keyframes ul-tourne { from { transform: rotate(0) scale(.4); opacity: 0; } 20% { opacity: 1; } to { transform: rotate(40deg) scale(1.1); } }
.ul-bande { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 16px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c1) 70%, #000) 20%, color-mix(in srgb, var(--c1) 70%, #000) 80%, transparent);
  border-block: 2px solid var(--c2); transform: skewY(-6deg); animation: ul-bande .45s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes ul-bande { from { transform: skewY(-6deg) translateX(-110%); } }
.ul-heros { transform: skewY(6deg); flex: none; }
.ul-sprite { width: min(42vw, 190px); aspect-ratio: 1; margin: -40px 0;
  background: var(--img) 100% 0 / 500% 100% no-repeat; filter: drop-shadow(0 0 14px var(--c2)) drop-shadow(0 6px 4px #000a);
  animation: ul-heros .6s .1s cubic-bezier(.2, 1.6, .4, 1) both; }
.ul-emoji { font-size: 90px; filter: drop-shadow(0 0 16px var(--c2)); animation: ul-heros .6s .1s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes ul-heros { from { transform: scale(2.4); opacity: 0; filter: blur(6px) brightness(3); } }
.ul-textes { transform: skewY(6deg); min-width: 0; }
.ul-mot { font-size: 13px; font-weight: 900; letter-spacing: 6px; color: var(--c2); animation: ul-mot .5s .2s ease both; }
.ul-nom { font-size: clamp(22px, 7vw, 34px); font-weight: 900; line-height: 1.05; color: #fff; text-transform: uppercase;
  text-shadow: 0 0 12px var(--c1), 0 0 24px var(--c1), 0 3px 0 #000; overflow-wrap: anywhere; animation: ul-nomin .55s .3s cubic-bezier(.2, 1.5, .4, 1) both; }
.ul-qui { font-size: 14px; color: #fffc; margin-top: 4px; animation: ul-mot .5s .5s ease both; }
@keyframes ul-mot { from { opacity: 0; letter-spacing: 16px; } }
@keyframes ul-nomin { from { opacity: 0; transform: scale(2.2); } }
.ul-flash { position: absolute; inset: 0; background: var(--c2); opacity: 0; animation: ul-flash .5s 1.05s ease-out both; pointer-events: none; }
@keyframes ul-flash { 0% { opacity: .85; } to { opacity: 0; } }
/* particules : chaque élément a sa forme et son mouvement */
.ul-particules { position: absolute; inset: 0; pointer-events: none; }
.ul-particules i { position: absolute; left: var(--x); top: 50%; width: 10px; height: 10px; border-radius: 50%; opacity: 0;
  background: var(--c2); box-shadow: 0 0 10px var(--c1); animation: calc(var(--t) * 1.4s) var(--d) ease-out both; }
.ul-feu .ul-particules i { top: 105%; animation-name: ul-braise; background: radial-gradient(circle, #fff6b0, var(--c2) 40%, var(--c1)); }
@keyframes ul-braise { 15% { opacity: 1; } to { opacity: 0; transform: translate(var(--dx), -95vh) scale(.4); } }
.ul-eau .ul-particules i { top: -5%; width: 8px; height: 14px; border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%; animation-name: ul-goutte; }
@keyframes ul-goutte { 10% { opacity: 1; } to { opacity: 0; transform: translateY(105vh); } }
.ul-vent .ul-particules i { left: -10%; top: calc(10% + var(--i) * 3.8%); width: 70px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--c2)); animation-name: ul-rafale; }
@keyframes ul-rafale { 10% { opacity: 1; } to { opacity: 0; transform: translateX(125vw) translateY(var(--dx)); } }
.ul-terre .ul-particules i { left: 50%; width: 14px; height: 12px; border-radius: 3px; background: linear-gradient(135deg, var(--c2), var(--c1) 60%, #3a2410);
  box-shadow: none; animation-name: ul-roc; }
@keyframes ul-roc { 5% { opacity: 1; } to { opacity: 0; transform: rotate(var(--a)) translateY(-60vmin) rotate(200deg); } }
.ul-eclair .ul-particules i { top: 0; width: 6px; height: 50vh; border-radius: 0; background: linear-gradient(var(--c2), #fff, transparent);
  clip-path: polygon(40% 0, 100% 0, 60% 40%, 100% 40%, 20% 100%, 45% 55%, 0 55%); box-shadow: none; animation-name: ul-foudre;
  animation-duration: .35s; }
@keyframes ul-foudre { 0%, 40%, 80% { opacity: 1; } 20%, 60%, 100% { opacity: 0; } }
.ul-soin .ul-particules i { top: 100%; width: auto; height: auto; background: none; box-shadow: none; color: var(--c2);
  font-style: normal; font-size: 22px; text-shadow: 0 0 10px var(--c1); animation-name: ul-croix; }
.ul-soin .ul-particules i::before { content: "✚"; }
@keyframes ul-croix { 15% { opacity: 1; } to { opacity: 0; transform: translateY(-90vh) scale(1.3); } }
@media (prefers-reduced-motion: reduce) {
  .ultime-annonce *, .ultime-annonce { animation-duration: .01s !important; animation-delay: 0s !important; }
  .ul-particules, .ul-flash, .ul-rayons { display: none; }
}
.boss-sprite { width: min(60vw, 260px); aspect-ratio: 1; margin: 0 auto; background: var(--img) 0 0 / 400% 100% no-repeat; }
.boss-sprite.elite { filter: saturate(1.35) drop-shadow(0 0 22px #ff2a00); }

/* ---------- Tutoriel : bulles du combat d'entraînement, choix du premier héros ---------- */
.bulle-tuto { border-color: var(--or); background: linear-gradient(180deg, rgba(60, 40, 10, .95), rgba(30, 18, 40, .95));
  box-shadow: 0 0 16px rgba(241, 196, 15, .35); animation: bulle-entre .3s ease both; }
.bulle-tuto p { margin: 6px 0 10px; line-height: 1.45; }
.bulle-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: var(--or); }
@keyframes bulle-entre { from { opacity: 0; transform: translateY(-6px); } }
.bulle-rouvrir { display: block; margin: 4px auto 8px; }
.grille.depart .heros { cursor: pointer; }
.grille.depart .heros.choisi { outline: 3px solid var(--or); box-shadow: 0 0 18px rgba(241, 196, 15, .6); }
.tuto-accueil p { line-height: 1.5; margin: 8px 0; }
@media (prefers-reduced-motion: reduce) { .bulle-tuto { animation: none; } }

/* ---------- La guilde du Discord (guilde.js) ---------- */
.entete-guilde h2 { margin-bottom: 2px; }
.etoiles-compte { color: var(--or); font-size: 20px; letter-spacing: 2px; }
.etoiles-compte span { color: #ffffff26; }
.barre-xp { height: 10px; border-radius: 6px; background: var(--fond-2); border: 1px solid var(--bord); overflow: hidden; margin: 8px 0 4px; }
.barre-xp span { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--or)); }
.personnage { display: flex; gap: 10px; align-items: center; margin-top: 8px; padding: 8px; border-radius: 12px; background: var(--fond-2); }
.personnage .emoji { font-size: 30px; width: 56px; height: 56px; display: grid; place-items: center; position: relative; flex: none; }
.personnage .emoji small { position: absolute; right: -2px; bottom: -2px; font-size: 14px; }
.personnage .portrait { width: 56px; height: 56px; }
button small, .bouton small { font-weight: 500; font-size: 11.5px; opacity: .85; }
.rebours { display: block; }
.ligne-boutons button { flex-direction: column; gap: 0; }
.durees { display: grid; gap: 8px; }
.durees button, .boutique button { flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; }
.boutique { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 10px; }
.choix-quete { display: grid; gap: 8px; margin-bottom: 8px; }
.choix-quete button { justify-content: flex-start; text-align: left; }
.urgence { border-top: 1px solid var(--bord); padding-top: 10px; margin-top: 10px; }
.chronique { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.chronique time { color: var(--doux); font-size: 12px; margin-right: 4px; }
.ligne-forge { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--bord); }
.ligne-forge:first-of-type { border-top: 0; }
.ligne-forge button { flex: none; min-width: 96px; }
.niveaux { display: grid; gap: 4px; }
.niveaux div { display: flex; gap: 6px; align-items: baseline; padding: 4px 8px; border-radius: 8px; }
.niveaux div small { margin-left: auto; color: var(--doux); }
.niveaux .actuel { background: var(--carte-2); outline: 1px solid var(--or); }
select { font: inherit; color: var(--texte); background: var(--carte-2); border: 1px solid var(--bord); border-radius: 12px; padding: 10px; min-height: 44px; flex: 2 1 0; min-width: 0; }
.pastille.perso { background: var(--violet); }
/* Une carte = l'embed Discord d'un résultat */
.embed { position: relative; border-left: 4px solid var(--bord-embed); background: var(--fond-2); border-radius: 10px; padding: 12px 12px 10px; margin-bottom: 12px; overflow-wrap: anywhere; }
.carte > .embed:only-child, .carte > .embed:first-child { margin-bottom: 8px; }
.embed h3 { color: var(--texte); padding-right: 70px; }
.embed-texte { margin-bottom: 8px; }
.embed .cite { display: block; border-left: 3px solid var(--bord); padding-left: 8px; color: var(--doux); }
.embed-champs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px 12px; margin: 8px 0; font-size: 13.5px; }
.embed-champs .large { grid-column: 1 / -1; }
.embed-champs b { display: block; font-size: 13px; color: var(--or); }
.embed-vignette { position: absolute; top: 10px; right: 10px; width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.embed-image { display: block; width: 100%; max-height: 260px; object-fit: cover; border-radius: 8px; margin-top: 6px; }
.embed code { background: var(--carte-2); padding: 0 4px; border-radius: 4px; }

/* ---------- Combat sur téléphone : tout tient à l'écran, les ordres restent en bas ---------- */
.combat { position: relative; gap: 8px; }
.combat-info { font-size: 12.5px; }
.combat-info > span:last-child { display: flex; align-items: center; gap: 6px; flex: none; }
/* le bandeau des coups spéciaux passe par-dessus l'arène au lieu de réserver sa ligne */
.combat .bandeau-special { position: absolute; left: 0; right: 0; top: 44px; z-index: 6; min-height: 0; pointer-events: none;
  text-shadow: 0 0 10px #f1c40f88, 0 2px 4px #000, 0 0 2px #000; }
.unite { padding: 6px 4px; }
.unite .sprite { max-width: min(120px, 14dvh); }
.unite.boss .sprite { max-width: min(210px, 19dvh); }
.etats { min-height: 0; }
.etats:empty { display: none; }
/* 4 héros (ou monstres) sur une seule ligne */
.camp.serre { gap: 4px; }
.camp.serre .unite { width: calc(25% - 3px); }
.camp.serre .unite .sprite { max-width: min(84px, 11dvh); }
/* le panneau des ordres reste collé au-dessus des onglets */
.combat .ordres { position: sticky; bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 4; padding: 10px; margin-bottom: 0;
  box-shadow: 0 -6px 18px #0008; }
.combat .ordres h3 { font-size: 14.5px; margin-bottom: 8px; }
.combat .ordres h3 .petit { font-weight: 500; color: var(--doux); }
.actions { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.actions button { flex-direction: column; gap: 1px; min-height: 54px; padding: 6px 3px; font-size: 12.5px; line-height: 1.2; }
.actions button br { display: none; }
.actions button .petit { font-size: 10.5px; }
.desc-technique { margin: 8px 0 0; font-size: 12px; line-height: 1.35; }
.combat .bulle-tuto { padding: 10px 12px; margin-bottom: 0; }
.combat .bulle-tuto p { margin: 4px 0 8px; font-size: 14px; line-height: 1.4; }
.combat .bulle-tuto button { min-height: 38px; }
@media (max-width: 440px) {
  .ressources { gap: 4px 9px; font-size: 13px; }
}
/* la fiche : les boutons de choix restent visibles en bas de la fenêtre */
.pied-fenetre { position: sticky; bottom: calc(-18px - env(safe-area-inset-bottom)); display: flex; gap: 8px;
  margin: 12px -16px calc(-18px - env(safe-area-inset-bottom)); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--fond-2); border-top: 1px solid var(--bord); box-shadow: 0 -6px 14px #0006; }
.pied-fenetre button { flex: 1; }
.pied-fenetre button.or { flex: 2; }
/* le personnage : son artwork dans le Profil, touchable pour ouvrir sa fiche */
.personnage[data-action], .perso-art { cursor: pointer; }
.perso-art { text-align: center; }
.perso-art .heros { margin-bottom: 4px; }
.perso-art:active .heros { transform: scale(.98); }
/* combat (suite) : bulle du tutoriel et boss plus compacts pour que tout tienne */
.unite.boss .sprite { max-width: min(210px, 17dvh); }
.combat .bulle-tuto .ligne-boutons { justify-content: flex-end; margin: 0; }
.combat .bulle-tuto .ligne-boutons button { flex: 0 1 auto; min-height: 34px; padding: 4px 16px; }
@media (max-width: 440px) {
  .entete { gap: 8px; padding-right: 54px; }
  .ressources { gap: 3px 8px; font-size: 12.5px; }
}
/* pendant les bulles du tutoriel, l'arène se fait plus petite pour leur laisser la place */
.combat:has(.bulle-tuto) { gap: 6px; }
.combat:has(.bulle-tuto) .unite.boss .sprite { max-width: min(210px, 12dvh); }
.combat:has(.bulle-tuto) .unite .sprite { max-width: min(84px, 9dvh); }
.combat .bulle-tuto p { font-size: 13.5px; line-height: 1.35; }

/* ---------- Visite guidée (visite.js) : voile sombre, halo doré sur l'élément, bulle ---------- */
.visite { position: fixed; inset: 0; z-index: 50; }
.visite-trou { position: fixed; border-radius: 14px; pointer-events: none; transition: all .3s ease;
  box-shadow: 0 0 0 200vmax rgba(6, 3, 14, .74), 0 0 0 2px var(--or), 0 0 22px 4px rgba(241, 196, 15, .55); }
.visite.centre .visite-trou { left: 50%; top: 50%; width: 0; height: 0; box-shadow: 0 0 0 200vmax rgba(6, 3, 14, .8); }
.visite-bulle { position: fixed; left: 50%; transform: translateX(-50%); width: min(92vw, 420px); margin: 0; z-index: 1;
  border-color: var(--or); background: linear-gradient(180deg, rgba(60, 40, 10, .97), rgba(30, 18, 40, .97));
  box-shadow: 0 8px 30px #000a; animation: bulle-entre .25s ease both; transition: top .3s ease; }
.visite.centre .visite-bulle { top: 50% !important; transform: translate(-50%, -50%); }
.visite-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: var(--or); }
.visite-bulle p { margin: 6px 0 10px; font-size: 14px; line-height: 1.45; }
.visite-boutons { display: flex; gap: 8px; align-items: center; }
.visite-boutons button { min-height: 38px; padding: 6px 14px; }
.visite-boutons button.or { margin-left: auto; }
.visite-boutons button.petit { background: none; border: 0; color: var(--doux); padding: 6px 4px; }

/* ---------- L'artwork HD d'un héros (site/artworks), dans sa fiche ---------- */
.heros .emoji img.artwork { display: block; width: min(260px, 70vw); max-height: 42vh; margin: 0 auto; object-fit: contain;
  filter: drop-shadow(0 6px 10px #000a); }

/* ---------- Invoquer : l'ambiance mystique derrière l'écran ---------- */
#mystique { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; display: none;
  background: radial-gradient(90% 60% at 50% 38%, #3b1d6e 0%, #1d0d3a 45%, #0a0518 100%); }
body.page-invoquer #mystique { display: block; }
#mystique .m-cercle { position: absolute; left: 50%; top: 40%; width: 150vmax; aspect-ratio: 1; transform: translate(-50%, -50%); opacity: .22; }
#mystique .m-cercle i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid #b48cff;
  background: repeating-conic-gradient(from 0deg, transparent 0 9deg, #b48cff22 9deg 10deg); animation: tourne 90s linear infinite;
  -webkit-mask: radial-gradient(closest-side, transparent 88%, #000 89% 100%); mask: radial-gradient(closest-side, transparent 88%, #000 89% 100%); }
#mystique .m-cercle i:nth-child(2) { inset: 18%; border-style: dashed; animation-duration: 60s; animation-direction: reverse; }
#mystique .m-cercle i:nth-child(3) { inset: 34%; animation-duration: 40s; border-color: #f1c40f88; }
#mystique .m-brume { position: absolute; inset: -20%; background: radial-gradient(40% 30% at 30% 70%, #7a3fd044, transparent 70%),
  radial-gradient(35% 25% at 75% 60%, #2f6fd044, transparent 70%); animation: brume-mystique 14s ease-in-out infinite alternate; }
@keyframes brume-mystique { to { transform: translate(4%, -3%) scale(1.08); } }
#mystique .m-etoiles span { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff6c9; box-shadow: 0 0 6px #f1c40f;
  left: calc(var(--i) * 4.1% + 2%); bottom: -10px; opacity: 0; animation: monte-etoile 9s linear infinite; animation-delay: calc(var(--i) * -.37s); }
#mystique .m-etoiles span:nth-child(3n) { background: #c9b6ff; box-shadow: 0 0 6px #9b59b6; animation-duration: 12s; }
#mystique .m-etoiles span:nth-child(2n) { animation-name: monte-etoile-2; }
@keyframes monte-etoile { 10% { opacity: .9; } 90% { opacity: .6; } to { transform: translate(24px, -105vh); opacity: 0; } }
@keyframes monte-etoile-2 { 10% { opacity: .9; } 90% { opacity: .6; } to { transform: translate(-24px, -105vh); opacity: 0; } }
body.page-invoquer .entete { background: rgba(14, 6, 30, .75); }

/* ---------- La bannière : un portail, un champion en vedette, d'autres qui flottent autour ---------- */
.portail { cursor: pointer; padding-top: 14px; background: radial-gradient(110% 80% at 50% 30%, #5a2f9a 0%, #2a1446 55%, #12081f 100%); }
.portail-scene { position: relative; height: min(300px, 40vh); margin: 4px -8px 0; }
.portail-runes { position: absolute; left: 50%; top: 58%; width: min(250px, 34vh); aspect-ratio: 1; transform: translate(-50%, -50%) rotateX(62deg); }
.portail-runes i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #b48cff; box-shadow: 0 0 16px #8e5cff, inset 0 0 16px #8e5cff;
  animation: tourne 14s linear infinite; }
.portail-runes i:nth-child(2) { inset: 13%; border-style: dashed; border-color: #f1c40f; box-shadow: 0 0 12px #f1c40f88; animation-duration: 9s; animation-direction: reverse; }
.portail-runes i:nth-child(3) { inset: 28%; border-width: 1px; animation-duration: 5s; }
.portail-runes b { position: absolute; inset: 30%; border-radius: 50%; background: radial-gradient(circle, #fff8 0%, #b48cff55 40%, transparent 70%);
  filter: blur(4px); animation: pulse 2.4s ease-in-out infinite; }
.portail-autour > div { position: absolute; width: 23%; aspect-ratio: 1; opacity: .55; filter: saturate(.8) drop-shadow(0 0 8px #8e5cff);
  animation: flotte 5s ease-in-out infinite; transition: transform .6s cubic-bezier(.2, 1.6, .4, 1), opacity .6s; }
.portail-autour > div.r-4 { filter: drop-shadow(0 0 8px #c77dff); }
.portail-autour > div.r-5, .portail-autour > div.r-6 { filter: drop-shadow(0 0 10px #f1c40f); }
.portail-autour .portrait, .portail-autour .v-art { width: 100%; height: 100%; object-fit: contain; }
.portail-autour .p-0 { left: 0; top: 4%; animation-delay: -1s; }
.portail-autour .p-1 { left: 9%; top: 46%; width: 20%; animation-delay: -2.5s; }
.portail-autour .p-2 { left: 21%; top: 2%; width: 17%; opacity: .35; animation-delay: -4s; }
.portail-autour .p-3 { right: 0; top: 6%; animation-delay: -3s; }
.portail-autour .p-4 { right: 9%; top: 48%; width: 20%; animation-delay: -.5s; }
.portail-autour .p-5 { right: 21%; top: 0; width: 17%; opacity: .35; animation-delay: -2s; }
@keyframes flotte { 50% { translate: 0 -8px; } }
.portail-vedette { position: absolute; left: 50%; bottom: 4%; width: min(210px, 30vh); aspect-ratio: 1; transform: translateX(-50%); }
.portail-vedette.change .vedette { animation: vedette-sort .22s ease-in forwards; }
.vedette { width: 100%; height: 100%; animation: vedette-entre .5s cubic-bezier(.2, 1.4, .4, 1) both; filter: drop-shadow(0 0 14px #b48cff); }
.vedette.r-4 { filter: drop-shadow(0 0 14px #c77dff); }
.vedette.r-5, .vedette.r-6, .vedette.r-7 { filter: drop-shadow(0 0 18px #f1c40f); }
.vedette .portrait, .vedette .v-art { width: 100%; height: 100%; object-fit: contain; }
.vedette .portrait.anime { width: 100%; }
@keyframes vedette-entre { from { opacity: 0; transform: translateY(18px) scale(.7); } }
@keyframes vedette-sort { to { opacity: 0; transform: translateY(-10px) scale(1.15); } }
.vedette-nom { min-height: 22px; color: #fff3b0; }
.portail-etincelles span { position: absolute; left: 50%; top: 58%; width: 5px; height: 5px; border-radius: 50%; background: #fff3b0;
  box-shadow: 0 0 8px #f1c40f; opacity: 0; transform: rotate(calc(var(--i) * 25.7deg)); }
/* l'éveil, quand on touche la bannière */
.portail.eveil .portail-runes i { animation-duration: .7s; border-color: #fff3b0; box-shadow: 0 0 26px #f1c40f, inset 0 0 26px #f1c40f; }
.portail.eveil .portail-runes b { animation: eveil-coeur 1.2s ease-out; }
@keyframes eveil-coeur { 30% { inset: -10%; background: radial-gradient(circle, #fff 0%, #f1c40faa 35%, transparent 70%); } }
.portail.eveil .portail-autour .p-0, .portail.eveil .portail-autour .p-1, .portail.eveil .portail-autour .p-2 { transform: translateX(-30%) scale(1.15); opacity: .9; }
.portail.eveil .portail-autour .p-3, .portail.eveil .portail-autour .p-4, .portail.eveil .portail-autour .p-5 { transform: translateX(30%) scale(1.15); opacity: .9; }
.portail.eveil .portail-etincelles span { animation: etincelle 1s ease-out forwards; animation-delay: calc(var(--i) * .02s); }
@keyframes etincelle { 0% { opacity: 1; translate: 0 0; } to { opacity: 0; translate: 0 0; transform: rotate(calc(var(--i) * 25.7deg)) translateX(140px); } }
.portail.eveil { animation: eveil-secousse .4s; }
@keyframes eveil-secousse { 30% { transform: scale(1.015); box-shadow: 0 0 40px #f1c40faa, inset 0 0 40px #f1c40f55; } }
.ligne-taux { text-align: center; margin: 4px 0 10px; }
.ligne-taux button { background: none; border: 0; color: #d9c8ff; text-decoration: underline; min-height: 32px; }
@media (prefers-reduced-motion: reduce) {
  #mystique *, .portail-runes *, .portail-autour > div, .vedette, .portail.eveil, .portail-etincelles span { animation: none !important; }
}
/* la vedette garde sa pose de repos (pas de K.O. en vitrine) et respire doucement */
.vedette .respire { animation: respire 3.2s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes respire { 50% { transform: scale(1.035) translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .vedette .respire { animation: none; } }

/* ---------- Puissance (💪) : sur les héros, l'équipe et les donjons (vert : assez, orange : juste, rouge : trop dur) ---------- */
.heros .puissance { font-size: 12px; font-weight: bold; color: #ffd98a; }
h3 .puissance { float: right; font-size: 15px; color: #ffd98a; }
.donjons button em { font-style: normal; font-weight: bold; }
#donjon-puissance { text-align: center; padding: 6px 10px; border-radius: 10px; background: rgba(0, 0, 0, .25); }
.assez { color: #6ee08a; }
.juste { color: #ffb347; }
.trop-dur { color: #ff6b6b; }

/* ---------- L'histoire (recit.js) : une scène par-dessus l'écran, portrait, boîte de dialogue, illustration ---------- */
.recit { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer;
  background: radial-gradient(120% 80% at 50% 30%, rgba(40, 22, 70, .82), rgba(5, 2, 12, .95)); backdrop-filter: blur(3px); animation: recit-entre .35s ease both;
  padding: 0 12px calc(78px + env(safe-area-inset-bottom)); }
.recit.sort { animation: recit-sort .35s ease forwards; }
@keyframes recit-entre { from { opacity: 0; } }
@keyframes recit-sort { to { opacity: 0; } }
.recit-image { position: absolute; left: 0; right: 0; top: 16%; text-align: center; white-space: nowrap; font-size: min(64px, 14vw); line-height: 1.2; pointer-events: none; }
.recit-image span { display: inline-block; filter: drop-shadow(0 6px 12px #000c); animation: recit-flotte 3s ease-in-out infinite; animation-delay: calc(var(--k) * -.6s); }
.recit-image.pop span { animation: recit-pop .5s cubic-bezier(.2, 1.6, .4, 1) both, recit-flotte 3s ease-in-out .5s infinite; animation-delay: calc(var(--k) * .08s), calc(var(--k) * -.6s + .5s); }
@keyframes recit-pop { from { opacity: 0; transform: translateY(20px) scale(.4); } }
@keyframes recit-flotte { 50% { translate: 0 -8px; } }
.recit-bas { position: relative; display: flex; align-items: flex-end; gap: 0; max-width: 560px; width: 100%; margin: 0 auto; }
.recit-portrait { flex: 0 0 auto; width: 96px; margin-right: -14px; z-index: 1; align-self: flex-end; }
.recit-portrait.entre { animation: recit-glisse .45s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes recit-glisse { from { opacity: 0; transform: translateX(-40px); } }
.recit-portrait img { width: 100%; display: block; filter: drop-shadow(0 6px 10px #000c); }
.recit-medaillon { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; font-size: 46px; margin-bottom: 26px;
  background: radial-gradient(circle at 35% 30%, #6a4a14, #2a1636); border: 3px solid var(--or); box-shadow: 0 0 18px rgba(241, 196, 15, .5);
  animation: recit-respire 3s ease-in-out infinite; }
@keyframes recit-respire { 50% { transform: scale(1.04); box-shadow: 0 0 26px rgba(241, 196, 15, .7); } }
.recit-boite { position: relative; flex: 1; margin: 0; padding: 12px 14px 22px 26px; min-height: 108px; border-color: var(--or);
  background: linear-gradient(180deg, rgba(60, 40, 10, .97), rgba(30, 18, 40, .97)); box-shadow: 0 8px 30px #000a; }
.recit-nom { color: var(--or); font-size: 14px; }
.recit-texte { margin: 6px 0 0; font-size: 15px; line-height: 1.45; min-height: 3em; }
.recit-suite { position: absolute; right: 12px; bottom: 6px; color: var(--or); animation: recit-flotte 1s ease-in-out infinite; }
.recit-passer { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; background: rgba(0, 0, 0, .45); border: 1px solid #fff3; color: #ddd; min-height: 34px; }
.recit-pluie span { position: absolute; top: -40px; left: calc(var(--k) * 5.4% + 2%); font-size: 22px; pointer-events: none;
  animation: recit-tombe 1.8s ease-in forwards; animation-delay: calc(var(--k) * .07s); }
@keyframes recit-tombe { to { transform: translateY(75vh) rotate(200deg); opacity: 0; } }
.recit.tremble .recit-image { animation: recit-tremble .5s ease 2; }
@keyframes recit-tremble { 20% { transform: translate(-6px, 2px); } 40% { transform: translate(5px, -3px); } 60% { transform: translate(-4px, 3px); } 80% { transform: translate(3px, -1px); } }
.recit.fuite .recit-image span:first-child { animation: recit-fuit 1.4s ease-in .4s forwards; }
@keyframes recit-fuit { to { transform: translateX(70vw) rotate(15deg); opacity: 0; } }
.recit.fete .recit-image span { animation: recit-saute .6s ease-in-out infinite alternate; animation-delay: calc(var(--k) * .12s); }
@keyframes recit-saute { to { transform: translateY(-16px) rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .recit, .recit *, .recit-image span { animation: none !important; } }

/* ---------- Améliorer (ameliorer.js) : l'autel, le héros au centre, les cases en cercle autour ---------- */
.autel { text-align: center; background: radial-gradient(110% 80% at 50% 35%, #3d2466 0%, #1e1033 60%, #120a1f 100%); }
.autel.mode-evo { background: radial-gradient(110% 80% at 50% 35%, #5a4210 0%, #2a1a10 60%, #140c08 100%); }
.autel-modes { justify-content: center; }
.autel-cercle { position: relative; width: min(340px, 90vw); aspect-ratio: 1; margin: 6px auto 4px; --r: calc(min(340px, 90vw) / 2 - 33px); }
.autel-runes { position: absolute; inset: 9%; pointer-events: none; }
.autel-runes i { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed #b48cff88; animation: tourne 30s linear infinite; }
.autel-runes i:nth-child(2) { inset: 16%; border: 1px solid #f1c40f66; animation-duration: 18s; animation-direction: reverse; }
.mode-evo .autel-runes i { border-color: #f1c40f99; }
.autel-cercle.active .autel-runes i { animation-duration: 1.2s; border-color: #fff3b0; box-shadow: 0 0 18px #f1c40f; }
.case { position: absolute; left: 50%; top: 50%; width: 58px; height: 66px; margin: -33px 0 0 -29px; border-radius: 12px;
  transform: rotate(var(--a)) translate(var(--r)) rotate(calc(-1 * var(--a)));
  display: grid; place-items: center; font-size: 11px; transition: transform .45s cubic-bezier(.5, 0, .9, .4), opacity .45s, filter .45s; }
.case.vide { border: 2px dashed #ffffff33; background: #0005; font-size: 20px; opacity: .6; }
.case.lie { border: 2px solid #f1c40f66; background: #f1c40f18; font-size: 18px; }
.case.pleine { border: 2px solid var(--or); background: #000a; cursor: pointer; box-shadow: 0 0 10px #f1c40f66; overflow: hidden; }
.case .emoji { font-size: 24px; line-height: 1; }
.case .emoji .portrait { width: 40px; height: 40px; }
.case .nom { font-size: 9px; white-space: nowrap; overflow: hidden; max-width: 54px; text-overflow: ellipsis; }
.case .etoiles { font-size: 8px; }
.case.arrive { animation: case-arrive .35s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes case-arrive { from { opacity: 0; filter: brightness(2.5); } }
.case.aspire { transform: rotate(var(--a)) translate(var(--r)) rotate(calc(-1 * var(--a))) translate(var(--dx, 0), var(--dy, 0)) scale(.1) rotate(220deg);
  opacity: 0; filter: brightness(3); }
.autel-heros { position: absolute; left: 50%; top: 50%; width: 40%; transform: translate(-50%, -50%); padding: 8px 4px; cursor: pointer; }
.autel-heros .emoji { font-size: 40px; }
.autel-heros .emoji .portrait { width: 52px; height: 52px; }
.autel-heros .nom { font-size: 12px; }
.autel-heros .niv { font-size: 11px; }
.autel-heros .changer { color: var(--doux); font-size: 10px; }
.autel-heros .barre-xp { height: 5px; margin: 4px 6px 2px; border-radius: 3px; background: #0008; overflow: hidden; }
.autel-heros .barre-xp i { display: block; height: 100%; background: linear-gradient(90deg, #6ee08a, #f1c40f); transition: width .3s ease; }
.autel-heros.absorbe { animation: absorbe .3s ease; }
@keyframes absorbe { 50% { transform: translate(-50%, -50%) scale(1.08); filter: brightness(1.6); } }
.autel-heros.eclat { animation: autel-eclat .9s ease; }
@keyframes autel-eclat { 30% { transform: translate(-50%, -50%) scale(1.15); box-shadow: 0 0 50px #f1c40f, 0 0 90px #b48cff; filter: brightness(2); } }
.autel-gain { position: absolute; left: 50%; top: 10%; transform: translateX(-50%); white-space: nowrap; font-weight: bold; font-size: 20px;
  color: #fff3b0; text-shadow: 0 0 12px #f1c40f; animation: autel-gain 1.8s ease forwards; pointer-events: none; }
.autel-gain small { font-size: 13px; color: #ffd98a; }
@keyframes autel-gain { from { opacity: 0; translate: 0 20px; } 20% { opacity: 1; translate: 0 0; } 80% { opacity: 1; } to { opacity: 0; translate: 0 -20px; } }
.autel-bilan { min-height: 2.6em; margin: 4px 0 8px; }
.grille.mini { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.heros.mat { padding: 6px 4px; }
.heros.mat .emoji { font-size: 26px; }
.heros.mat .emoji .portrait { width: 48px; height: 48px; }
.heros.mat .nom { font-size: 11px; }
.heros.mat .vaut { font-size: 10px; color: #ffd98a; }
.heros.mat.pose { opacity: .35; outline: 2px solid var(--or); }
@media (prefers-reduced-motion: reduce) { .autel-runes i, .case, .autel-heros, .autel-gain { animation: none !important; transition: none !important; } }

/* ---------- Le récit d'une expédition rentrée pendant l'absence du joueur ---------- */
.retour-expedition { text-align: center; animation: retour-arrive .6s cubic-bezier(.2, 1.3, .4, 1) both; }
.retour-expedition .embed { text-align: left; }
@keyframes retour-arrive { from { opacity: 0; transform: translateY(30px) scale(.95); } }

/* ---------- Héros errant (decor.js arriveeErrant) : une carte qui glisse ; un Épique ou un Légendaire a son éclat ---------- */
.unite.errant { box-shadow: 0 0 0 2px #b48cff, 0 0 14px #b48cff88; }
.unite.errant.r-5, .unite.errant.r-6 { box-shadow: 0 0 0 2px var(--or), 0 0 18px #f1c40faa; }
.arrivee-errant { position: fixed; inset: 0; z-index: 55; display: grid; place-items: center; pointer-events: auto; cursor: pointer; }
.arrivee-errant:not(.rare) { place-items: start center; padding-top: 22vh; }
.arrivee-errant.sortie { animation: recit-sort .35s ease forwards; }
.errant-carte { display: flex; align-items: center; gap: 12px; max-width: min(92vw, 420px); padding: 10px 16px 10px 10px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(40, 22, 70, .96), rgba(16, 8, 30, .96)); border: 2px solid #b48cff; box-shadow: 0 8px 30px #000a, 0 0 22px #8e5cff66;
  animation: errant-glisse .5s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes errant-glisse { from { opacity: 0; transform: translateX(-60px) scale(.9); } }
.errant-sprite { width: 84px; aspect-ratio: 1; flex: none; background: var(--img) 0 0 / 500% 100% no-repeat; animation: sprite-respire 2.6s ease-in-out infinite; }
.errant-emoji { font-size: 54px; flex: none; }
.errant-sur { font-size: 12px; color: #d9c8ff; }
.errant-nom { font-size: 20px; font-weight: bold; color: #fff; }
.errant-etoiles { color: var(--or); letter-spacing: 1px; }
.errant-phrase { font-size: 12px; color: var(--doux); font-style: italic; margin-top: 2px; }
.arrivee-errant.rare { background: radial-gradient(circle at 50% 45%, rgba(241, 196, 15, .25), rgba(5, 2, 12, .85) 70%); animation: recit-entre .3s ease both; }
.arrivee-errant.rare .errant-carte { flex-direction: column; text-align: center; padding: 16px 20px; border-color: var(--or);
  box-shadow: 0 0 40px #f1c40faa, 0 0 90px #b48cff66; animation: errant-surgit .7s cubic-bezier(.2, 1.5, .4, 1) .25s both; }
.arrivee-errant.rare .errant-sprite { width: 150px; }
.arrivee-errant.r-5 .errant-carte { border-color: #c77dff; box-shadow: 0 0 40px #c77dffaa, 0 0 90px #8e5cff66; }
@keyframes errant-surgit { from { opacity: 0; transform: scale(.3); filter: brightness(3); } }
.errant-titre { position: absolute; top: 16%; left: 0; right: 0; text-align: center; font-size: 26px; font-weight: 900; letter-spacing: 4px;
  color: #fff3b0; text-shadow: 0 0 14px #f1c40f, 0 0 30px #f1c40f; animation: errant-titre 1s ease both; }
.arrivee-errant.r-5 .errant-titre { color: #f0dcff; text-shadow: 0 0 14px #c77dff, 0 0 30px #8e5cff; }
@keyframes errant-titre { from { opacity: 0; transform: scale(2.2); letter-spacing: 20px; } }
.errant-rayons { position: absolute; left: 50%; top: 45%; width: 160vmax; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none;
  background: repeating-conic-gradient(from 0deg, #f1c40f22 0 6deg, transparent 6deg 18deg); animation: tourne 14s linear infinite;
  -webkit-mask: radial-gradient(circle, #000 10%, transparent 60%); mask: radial-gradient(circle, #000 10%, transparent 60%); }
.arrivee-errant.r-5 .errant-rayons { background: repeating-conic-gradient(from 0deg, #c77dff22 0 6deg, transparent 6deg 18deg); }
@media (prefers-reduced-motion: reduce) { .arrivee-errant, .arrivee-errant * { animation: none !important; } }

/* Fenêtre du butin (fin de combat) */
.butin { text-align: center; }
.butin-titre { font-size: 26px; font-weight: 800; margin: 2px 0 12px; animation: butin-titre .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.butin.gagne .butin-titre { color: var(--or); text-shadow: 0 0 18px #f1c40f88; }
.butin.perdu .butin-titre { color: var(--doux); }
@keyframes butin-titre { from { transform: scale(.4); opacity: 0; } }
.butin h3 { text-align: left; margin: 14px 0 6px; }
.butin-ressources { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.butin-res { flex: 1 1 0; min-width: 90px; background: var(--carte); border: 1px solid var(--bord); border-radius: 12px; padding: 8px 6px;
  display: grid; justify-items: center; animation: butin-pop .4s ease both; }
.butin-res:nth-child(2) { animation-delay: .1s; } .butin-res:nth-child(3) { animation-delay: .2s; }
.butin-res b { font-size: 20px; color: var(--or); }
.butin-res span { font-size: 20px; line-height: 1; }
.butin-res small { color: var(--doux); font-size: 11.5px; }
@keyframes butin-pop { from { transform: translateY(10px) scale(.9); opacity: 0; } }
.butin-equipe { display: grid; gap: 6px; }
.butin-heros { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; text-align: left;
  background: var(--carte); border-radius: 12px; padding: 6px 10px; animation: butin-pop .4s ease both; }
.butin-heros.perso { border: 1px solid var(--or); }
.butin-heros .emoji { width: 52px; height: 52px; font-size: 30px; display: grid; place-items: center; position: relative; }
.butin-heros .emoji small { position: absolute; right: -2px; bottom: -2px; font-size: 12px; }
.butin-heros .portrait, .butin-nouveau .portrait { width: 100%; height: 100%; }
.butin-info { min-width: 0; font-size: 13.5px; }
.butin-info b { overflow-wrap: anywhere; }
.butin-niv { color: var(--doux); font-size: 12.5px; }
.butin-up { color: var(--vert); font-weight: 700; animation: butin-pop .4s .9s ease both; display: inline-block; }
.butin-xp { margin-top: 4px; }
.butin-xp i { width: var(--de) !important; background: var(--bleu) !important; transition: width 1.1s .3s cubic-bezier(.3, .8, .3, 1); }
.butin-xp i.remplie { width: var(--a) !important; }
.butin-gain { font-weight: 800; color: var(--bleu); font-size: 16px; text-align: right; }
.butin-gain small { display: block; font-size: 10.5px; color: var(--doux); }
.butin-nouveaux { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.butin-nouveau { width: 96px; background: var(--carte); border: 1px solid var(--bord); border-radius: 12px; padding: 8px 4px;
  display: grid; justify-items: center; gap: 2px; font-size: 12.5px; animation: butin-arrive .7s .6s cubic-bezier(.2, 1.5, .4, 1) both; }
.butin-nouveau .emoji { width: 60px; height: 60px; font-size: 34px; display: grid; place-items: center; }
.butin-nouveau .emoji small { display: none; }
.butin-nouveau small { color: var(--or); }
.butin-nouveau.r-4, .butin-nouveau.r-5 { border-color: var(--or); box-shadow: 0 0 14px #f1c40f55; }
.butin-nouveau.r-6, .butin-nouveau.r-7 { border-color: #e056fd; box-shadow: 0 0 16px #e056fd66; }
@keyframes butin-arrive { from { transform: scale(0) rotate(-12deg); opacity: 0; } }
.butin > .grand { width: 100%; margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { .butin *, .butin { animation: none !important; transition: none !important; } }

/* Quêtes du jour (quetes.js) */
.bouton-quetes { margin-left: auto; margin-right: 40px; position: relative; font-size: 22px; text-decoration: none; min-width: 44px; min-height: 44px;
  display: grid; place-items: center; }
.bouton-quetes b { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: var(--rouge); color: #fff; font-size: 11px; line-height: 18px; text-align: center; animation: butin-pop .4s ease both; }
.q-entete { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.q-entete h2 { margin: 0; }
.quete, .coffre, .palier { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 8px;
  border-radius: 12px; background: var(--fond-2); margin-bottom: 6px; }
.q-emoji, .coffre-icone { font-size: 26px; text-align: center; }
.q-info { min-width: 0; }
.q-info b { display: block; font-size: 14px; }
.q-info small { color: var(--doux); font-size: 12px; }
.q-info .barre { margin: 4px 0 2px; }
.quete.finie { border: 1px solid var(--or); box-shadow: 0 0 12px #f1c40f33; }
.quete.reclamee, .palier.pris, .coffre.ouvert { opacity: .6; }
.quete button, .coffre button, .palier button, .quete .bouton { min-height: 38px; padding: 6px 10px; font-size: 13px; }
.q-fait { color: var(--vert); font-size: 20px; font-weight: 800; padding: 0 8px; }
.coffre { margin-top: 10px; border: 1px dashed var(--bord); }
.coffre.pret { border: 1px solid var(--or); animation: coffre-brille 1.6s ease-in-out infinite; }
.coffre.pret .coffre-icone { animation: coffre-saute 1.2s ease-in-out infinite; }
@keyframes coffre-brille { 50% { box-shadow: 0 0 18px #f1c40f66; } }
@keyframes coffre-saute { 50% { transform: translateY(-4px) rotate(-6deg); } }
.medailles { color: var(--or); font-size: 18px; }
.honneur-barre { margin-bottom: 10px; }
.honneur-barre i { background: var(--or); }
.palier.verrou { opacity: .55; }
.palier.pret { border: 1px solid var(--or); }
button[disabled] { opacity: .45; cursor: default; }
@media (prefers-reduced-motion: reduce) { .coffre.pret, .coffre.pret .coffre-icone { animation: none; } }
