/* La Descente — compléments au thème du site.
 *
 * La page suit la grammaire du TCG (bandeau clair, cartes Bootstrap, btn-primary) : ce fichier
 * ne dessine que ce qui est propre au jeu (écran de combat, listes des panneaux, raretés).
 * Couleurs : variables du site (--primary-rgb vert olive, --secondary-rgb cuivre).
 */

[data-descente],
.dsc-showcase {
    --dsc-p: var(--primary-rgb, 85, 107, 47);
    --dsc-s: var(--secondary-rgb, 200, 121, 65);
    --dsc-common: 120, 120, 128;
    --dsc-rare: 52, 120, 196;
    --dsc-epic: 128, 72, 184;
    --dsc-legendary: 200, 121, 65;
}

/* ---- Bandeau (même construction que .tcg-hero) --------------------------------- */
section.dsc-hero {   /* le bandeau ; .dsc-hero seul désigne aussi les lignes de héros */
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(90% 120% at 50% -20%, rgba(var(--dsc-p), .22), transparent 62%),
        radial-gradient(50% 80% at 90% 10%, rgba(var(--dsc-s), .14), transparent 70%),
        linear-gradient(180deg, rgba(var(--dsc-p), .08), rgba(var(--dsc-p), .01));
    border-bottom: 1px solid rgba(var(--dsc-p), .16);
}

/* ---- Écran de combat ------------------------------------------------------------- */
.dsc-arena { border-radius: 1rem; }

.dsc-stage {
    position: relative;
    height: min(56vh, 520px);
    min-height: 320px;
    overflow: hidden;
    background: #1d2a1a;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.dsc-stage__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 72%;
}

.dsc-stage::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 38%;
    background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent);
    pointer-events: none;
}

.dsc-stage.is-corrupted .dsc-stage__bg { filter: hue-rotate(240deg) saturate(1.2) brightness(.85); }

.dsc-monster {
    position: absolute;
    left: 50%;
    bottom: 16%;
    z-index: 2;
    width: min(60%, 330px);
    aspect-ratio: 1;
    transform: translateX(-50%);
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.dsc-monster img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45));
    pointer-events: none;
    transition: transform .08s ease-out, opacity .15s;
}
.dsc-monster:focus-visible { outline: 3px solid rgb(var(--dsc-p)); outline-offset: 4px; border-radius: 1rem; }
.dsc-monster.is-boss { width: min(70%, 390px); }
.dsc-monster.is-corrupted img { filter: hue-rotate(240deg) saturate(1.3) drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); }
.dsc-monster.is-hit img { animation: dsc-hit .12s ease-out; }
.dsc-monster.is-dying img { opacity: 0; transform: scale(.88) translateY(8%); }
.dsc-monster.is-spawning img { animation: dsc-spawn .22s ease-out; }
@keyframes dsc-hit { 40% { transform: scale(.95); filter: brightness(1.5) drop-shadow(0 8px 10px rgba(0,0,0,.45)); } }
@keyframes dsc-spawn { from { transform: scale(.7) translateY(12%); opacity: 0; } }

/* Plaque du monstre : nom, barre de vie, progression de l'étage. Pas de cadre : du texte et une
   barre de jeu posés sur le dégradé sombre du bas de la scène. */
.dsc-plate {
    position: absolute;
    left: 50%;
    bottom: .7rem;
    z-index: 3;
    width: min(88%, 380px);
    transform: translateX(-50%);
    pointer-events: none;
    text-align: center;
}
.dsc-plate__name {
    font-family: 'Marcellus', serif;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.2;
    color: #fff;
    letter-spacing: .02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 0 8px rgba(0, 0, 0, .6);
}
/* Barre de vie : cadre sombre biseauté, remplissage en dégradé avec reflet, traînée claire qui
   rattrape les dégâts avec un temps de retard, chiffres incrustés. */
.dsc-hp {
    position: relative;
    height: 1.05rem;
    margin: .3rem 0 .15rem;
    padding: 2px;
    border-radius: .35rem;
    background: linear-gradient(#1a1410, #2c221a);
    border: 1px solid rgba(255, 220, 160, .35);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .55), inset 0 1px 2px rgba(0, 0, 0, .8);
    overflow: hidden;
}
.dsc-hp__fill, .dsc-hp__trail {
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 2px;
    max-width: calc(100% - 4px);
    border-radius: .2rem;
}
.dsc-hp__trail { background: #ffe1a6; opacity: .85; transition: width .45s ease-out .2s; }
.dsc-hp__fill {
    background: linear-gradient(#ff6b5a 0%, #e0302a 45%, #a3161a 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(0, 0, 0, .25);
    transition: width .1s linear;
}
.dsc-hp__text {
    position: relative;
    z-index: 1;
    display: block;
    font-size: .66rem;
    font-weight: 800;
    line-height: calc(1.05rem - 6px);
    color: #fff;
    letter-spacing: .03em;
    text-shadow: 0 1px 1px #000, 0 0 3px rgba(0, 0, 0, .9);
    font-variant-numeric: tabular-nums;
}
.dsc-plate__meta { font-size: .72rem; font-weight: 600; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 2px rgba(0, 0, 0, .9); }
.dsc-plate__meta:empty { display: none; }
/* Boss : barre au liseré cuivré ; seigneur à éclats : liseré violet de l'Abîme. */
.dsc-stage:has(.dsc-monster.is-boss) .dsc-hp { border-color: rgba(var(--dsc-s), .9); box-shadow: 0 0 10px rgba(var(--dsc-s), .45), 0 2px 6px rgba(0, 0, 0, .55), inset 0 1px 2px rgba(0, 0, 0, .8); }
.dsc-stage:has(.dsc-monster.is-primal) .dsc-hp { border-color: rgba(190, 140, 255, .95); box-shadow: 0 0 12px rgba(160, 100, 255, .6), 0 2px 6px rgba(0, 0, 0, .55), inset 0 1px 2px rgba(0, 0, 0, .8); }

/* En-tête du boss : type, chrono, éclats. Du texte seul, étroit et centré : il ne passe ni sous
   les compétences (à gauche) ni sous les bonus (à droite). */
.dsc-boss {
    position: absolute;
    top: .6rem;
    left: 50%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: calc(100% - 11rem);
    transform: translateX(-50%);
    text-align: center;
    line-height: 1.15;
    pointer-events: none;
    color: #fff;
    text-shadow: 0 0 2px #000, 0 1px 2px #000, 0 0 12px rgba(0, 0, 0, .85);
}
.dsc-boss[hidden] { display: none; }
.dsc-boss__kind { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ffd9a8; }
.dsc-boss__time { font-family: 'Marcellus', serif; font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dsc-boss__time.is-urgent { color: #ff8a7a; animation: dsc-urgent .5s ease-in-out infinite alternate; }
@keyframes dsc-urgent { to { transform: scale(1.08); } }
.dsc-boss__reward {
    margin-top: .1rem;
    font-size: .85rem;
    font-weight: 800;
    white-space: nowrap;
    color: #e6d2ff;
    text-shadow: 0 1px 2px #000, 0 0 10px rgba(170, 110, 255, .95);
    animation: dsc-primal-text 1.6s ease-in-out infinite alternate;
}
.dsc-boss__reward[hidden] { display: none; }
@keyframes dsc-primal-text { to { text-shadow: 0 1px 2px #000, 0 0 16px rgba(200, 150, 255, 1); } }
/* Boss à éclats : auréole violette pulsante (même place que le filtre de l'image). */
.dsc-monster.is-primal img { position: relative; z-index: 1; animation: dsc-primal 1.8s ease-in-out infinite alternate; }
.dsc-monster.is-primal::before {
    content: '';
    position: absolute;
    inset: 12% 8% 4%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(170, 110, 255, .55), rgba(120, 60, 220, .2) 60%, transparent);
    filter: blur(6px);
    animation: dsc-primal-halo 1.8s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes dsc-primal { from { filter: drop-shadow(0 0 6px rgba(190, 140, 255, .75)) drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); } to { filter: drop-shadow(0 0 16px rgba(200, 150, 255, 1)) drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); } }
@keyframes dsc-primal-halo { from { opacity: .55; transform: scale(.94); } to { opacity: 1; transform: scale(1.04); } }
.dsc-monster.is-primal.is-hit img { animation: dsc-hit .12s ease-out; }
/* Coffre animé (relique) : halo doré qui frémit. */
.dsc-monster.is-mimic img { position: relative; z-index: 1; animation: dsc-mimic 1s ease-in-out infinite alternate; }
.dsc-monster.is-mimic::before {
    content: '';
    position: absolute;
    inset: 14% 8% 4%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 205, 80, .6), rgba(230, 160, 40, .2) 60%, transparent);
    filter: blur(6px);
    animation: dsc-primal-halo 1s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes dsc-mimic { from { filter: drop-shadow(0 0 6px rgba(255, 210, 90, .8)) drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); transform: rotate(-2deg); } to { filter: drop-shadow(0 0 16px rgba(255, 220, 110, 1)) drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); transform: rotate(2deg); } }
.dsc-monster.is-mimic.is-hit img { animation: dsc-hit .12s ease-out; }
@media (prefers-reduced-motion: reduce) {
    .dsc-monster.is-mimic img, .dsc-monster.is-mimic::before { animation: none; }
    .dsc-monster.is-mimic img { filter: drop-shadow(0 0 12px rgba(255, 210, 90, .9)) drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); }
}
@media (prefers-reduced-motion: reduce) {
    .dsc-boss__time.is-urgent, .dsc-boss__reward, .dsc-monster.is-primal img, .dsc-monster.is-primal::before { animation: none; }
    .dsc-monster.is-primal img { filter: drop-shadow(0 0 12px rgba(190, 140, 255, .9)) drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); }
    .dsc-hp__trail { transition: none; }
}
@media (max-width: 575.98px) {
    .dsc-boss { max-width: calc(100% - 9rem); }
    .dsc-boss__time { font-size: 1.35rem; }
}

.dsc-boosts { position: absolute; top: .75rem; right: .75rem; z-index: 3; display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }

/* ---- Compétences des invités : colonne d'icônes à gauche de l'écran de combat ----- */
.dsc-skills {
    position: absolute;
    top: .75rem;
    left: .6rem;
    bottom: 5.5rem;             /* au-dessus de la plaque du monstre */
    z-index: 5;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: .35rem;
    pointer-events: none;
}
.dsc-skills[hidden] { display: none; }
.dsc-skill {
    --cd: 0%;
    position: relative;
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
    border: 0;
    border-radius: .7rem;
    background: rgba(255, 255, 255, .94);
    color: rgb(var(--dsc-p));
    font-size: 1.05rem;
    box-shadow: 0 .2rem .5rem rgba(0, 0, 0, .25);
    overflow: hidden;
    pointer-events: auto;
    cursor: pointer;
    transition: transform .12s ease;
}
.dsc-skill:hover { transform: scale(1.06); }
.dsc-skill:focus-visible { outline: 2px solid rgb(var(--dsc-s)); outline-offset: 2px; }
.dsc-skill i { position: relative; z-index: 1; }
/* Recharge : voile sombre qui se retire dans le sens des aiguilles d'une montre. */
.dsc-skill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: conic-gradient(rgba(20, 24, 18, .62) var(--cd), transparent 0);
    z-index: 2;
    pointer-events: none;
}
.dsc-skill.is-cooling { color: rgba(38, 38, 38, .55); cursor: default; }
.dsc-skill.is-cooling:hover { transform: none; }
.dsc-skill__time {
    position: absolute;
    left: 0;
    right: 0;
    bottom: .1rem;
    z-index: 3;
    font-size: .58rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .8);
    white-space: nowrap;
}
.dsc-skill.is-active { background: rgb(var(--dsc-s)); color: #fff; box-shadow: 0 0 0 2px #fff, 0 0 .9rem rgba(var(--dsc-s), .9); }
.dsc-skill.is-amp:not(.is-cooling) { box-shadow: 0 0 0 2px rgba(var(--dsc-epic), .85), 0 .2rem .5rem rgba(0, 0, 0, .25); }
.dsc-skill.is-armed { background: rgb(var(--dsc-epic)); color: #fff; }
.dsc-skill.is-cast { animation: dsc-skill-cast .45s ease-out; }
@keyframes dsc-skill-cast { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
.dsc-skillcast {
    position: absolute;
    top: 38%;
    left: 50%;
    transform: translateX(-50%);
    padding: .3rem .8rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, .95);
    color: rgb(var(--dsc-s));
    font-family: 'Marcellus', serif;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .25);
    animation: dsc-skillcast 1.4s ease-out forwards;
}
@keyframes dsc-skillcast { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.9); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -24px); } }
@media (max-width: 575.98px) {
    .dsc-skills { left: .4rem; gap: .25rem; bottom: 4.8rem; }
    .dsc-skill { width: 2.2rem; height: 2.2rem; font-size: .9rem; border-radius: .55rem; }
}
@media (prefers-reduced-motion: reduce) {
    .dsc-skill, .dsc-skill.is-cast { transition: none; animation: none; }
}

/* Panneau Invités : compétences et Porteur. */
.dsc-skillrow { display: flex; gap: .6rem; align-items: flex-start; }
.dsc-skillrow__icon { flex: 0 0 2.2rem; height: 2.2rem; display: inline-flex; align-items: center; justify-content: center; border-radius: .55rem; background: rgba(var(--dsc-p), .12); color: rgb(var(--dsc-p)); }
.dsc-porteur { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.dsc-porteur img, .dsc-porteur__none { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.dsc-porteur__none { display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--dsc-p), .12); color: rgb(var(--dsc-p)); font-size: 1.4rem; }
[data-descente] .min-w-0 { min-width: 0; }
.dsc-hero-porteur { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Quêtes du jour : pastille de rang (F pour tous, E confiée par une alliée). */
.dsc-quest-rank { --dsc-rank: var(--dsc-common); min-width: 1.5em; background: rgba(var(--dsc-rank), .16); color: rgb(var(--dsc-rank)); border: 1px solid rgba(var(--dsc-rank), .45); font-weight: 700; }
.dsc-quest-e { --dsc-rank: var(--dsc-legendary); border: 1px solid rgba(var(--dsc-rank), .45); background: linear-gradient(160deg, rgba(var(--dsc-rank), .12), rgba(var(--dsc-rank), .02)), #fff; }
.dsc-quest-e .dsc-quest-rank { --dsc-rank: var(--dsc-legendary); }
.dsc-quest-giver { display: flex; align-items: center; gap: .45rem; margin-bottom: .3rem; min-width: 0; }
.dsc-quest-giver > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: italic; }
.dsc-quest-giver img, .dsc-quest-giver > span:first-child:not(:last-child) { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(var(--dsc-legendary), .6); }

.dsc-fx { position: absolute; inset: 0; z-index: 4; overflow: hidden; pointer-events: none; }
.dsc-dmg {
    position: absolute;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
    animation: dsc-float .9s ease-out forwards;
}
/* Clics automatiques : plus petits ; autoclicker en bleu pâle, Frénésie en cuivre. */
.dsc-dmg.is-auto, .dsc-dmg.is-skill { font-size: .78rem; opacity: .9; }
.dsc-dmg.is-auto { color: #cfe6ff; }
.dsc-dmg.is-skill { color: #ffc89a; }
.dsc-dmg.is-crit.is-auto, .dsc-dmg.is-crit.is-skill { font-size: 1.3rem; }
.dsc-coin { position: absolute; bottom: 30%; font-size: .85rem; font-weight: 700; color: #ffe08a; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); animation: dsc-float 1s ease-out forwards; }
@keyframes dsc-float { to { transform: translateY(-64px); opacity: 0; } }

/* ---- Coup critique ------------------------------------------------------------------
   Chiffre plus gros qui « claque » avec l'étiquette Critique, flash, onde de choc derrière le
   monstre, secousse de la scène (propriété `translate`, qui se cumule au `transform` existant). */
.dsc-dmg.is-crit {
    z-index: 2;
    font-size: 1.9rem;
    color: #ffd27a;
    -webkit-text-stroke: 1px rgba(90, 30, 0, .55);
    text-shadow: 0 0 12px rgba(255, 170, 60, .9), 0 2px 4px rgba(0, 0, 0, .9);
    animation: dsc-critpop 1.1s cubic-bezier(.2, 1.4, .4, 1) forwards;
}
.dsc-dmg.is-crit::before {
    content: attr(data-label);
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%) rotate(-6deg);
    font-size: .55em;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #fff;
    -webkit-text-stroke: 0;
}
@keyframes dsc-critpop {
    0% { transform: scale(.3); opacity: 0; }
    15% { transform: scale(1.35); opacity: 1; }
    30% { transform: scale(1); }
    100% { transform: translateY(-80px) scale(1); opacity: 0; }
}
.dsc-critflash {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 55%, rgba(255, 236, 190, .55), rgba(255, 190, 90, .15) 45%, transparent 75%);
    animation: dsc-critflash .3s ease-out forwards;
}
@keyframes dsc-critflash { from { opacity: 1; } to { opacity: 0; } }
.dsc-critburst {
    position: absolute;
    left: 50%;
    top: 52%;
    width: 70%;
    aspect-ratio: 1;
    margin-left: -35%;
    margin-top: -35%;
    border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, rgba(255, 220, 140, .85) 0 4deg, transparent 4deg 22deg);
    -webkit-mask: radial-gradient(circle, transparent 18%, #000 30%, transparent 70%);
    mask: radial-gradient(circle, transparent 18%, #000 30%, transparent 70%);
    animation: dsc-critburst .45s ease-out forwards;
}
@keyframes dsc-critburst { from { transform: scale(.3) rotate(0); opacity: 1; } to { transform: scale(1.4) rotate(25deg); opacity: 0; } }
.dsc-critburst.impact-impact-givre { filter: hue-rotate(170deg) saturate(.7) brightness(1.3); }
.dsc-critburst.impact-impact-arcane { filter: hue-rotate(230deg); }
.dsc-stage.is-crit .dsc-stage__bg,
.dsc-stage.is-crit .dsc-monster { animation: dsc-shake .28s linear; }
@keyframes dsc-shake {
    15% { translate: -6px 3px; }
    35% { translate: 5px -4px; }
    55% { translate: -4px 2px; }
    75% { translate: 3px -1px; }
    100% { translate: 0 0; }
}

/* ---- Chargement ---------------------------------------------------------------------
   Tant que la partie n'est pas chargée : flamme animée et barre au lieu d'un monstre vide. */
.dsc-loader { display: none; }
.dsc-stage.is-loading > :not(.dsc-loader):not(.dsc-stage__bg) { visibility: hidden; }
.dsc-stage.is-loading .dsc-loader {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: radial-gradient(ellipse at 50% 60%, rgba(255, 170, 70, .16), transparent 55%), linear-gradient(#1d2a1a, #0d130b);
    color: #f3e9d2;
}
.dsc-loader__torch { position: relative; width: 46px; height: 64px; filter: drop-shadow(0 0 14px rgba(255, 150, 50, .8)); }
.dsc-loader__torch span {
    position: absolute;
    left: 50%;
    bottom: 0;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    transform-origin: 50% 100%;
    animation: dsc-flame 1s ease-in-out infinite alternate;
}
.dsc-loader__torch span:nth-child(1) { width: 46px; height: 64px; margin-left: -23px; background: #e8641c; }
.dsc-loader__torch span:nth-child(2) { width: 30px; height: 44px; margin-left: -15px; background: #ffb347; animation-delay: -.3s; }
.dsc-loader__torch span:nth-child(3) { width: 16px; height: 24px; margin-left: -8px; background: #fff3c4; animation-delay: -.6s; }
@keyframes dsc-flame {
    0% { transform: scale(1, 1) skewX(0); }
    50% { transform: scale(.92, 1.08) skewX(-4deg); }
    100% { transform: scale(1.04, .94) skewX(3deg); }
}
.dsc-loader__text { margin: 0; font-family: 'Marcellus', serif; font-size: 1.1rem; letter-spacing: .04em; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.dsc-loader__bar { width: min(60%, 220px); height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.dsc-loader__bar div { width: 40%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, transparent, #ffb347, transparent); animation: dsc-loadbar 1.2s ease-in-out infinite; }
@keyframes dsc-loadbar { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.dsc-stage.is-failed .dsc-loader__torch { filter: grayscale(1); }
.dsc-stage.is-failed .dsc-loader__torch span,
.dsc-stage.is-failed .dsc-loader__bar { animation: none; visibility: hidden; }
/* Image pas encore chargée : pas de cadre « image cassée ». */
.dsc-stage img:not([src]) { visibility: hidden; }

/* Squelettes de la liste des héros, avant le premier rendu. */
.dsc-skeletons { list-style: none; margin: 0; padding: 0; }
.dsc-skeletons li { display: flex; align-items: center; gap: .65rem; margin-bottom: .45rem; padding: .55rem .65rem; border-radius: .75rem; background: #fff; }
.dsc-skeletons span, .dsc-skeletons i, .dsc-skeletons b {
    display: block;
    border-radius: .4rem;
    background: linear-gradient(90deg, rgba(0, 0, 0, .06) 25%, rgba(0, 0, 0, .12) 50%, rgba(0, 0, 0, .06) 75%) 0 0 / 200% 100%;
    animation: dsc-shimmer 1.3s linear infinite;
}
.dsc-skeletons span { width: 48px; height: 48px; flex: 0 0 auto; border-radius: .6rem; }
.dsc-skeletons div { flex: 1; }
.dsc-skeletons i { height: .7rem; width: 60%; margin-bottom: .4rem; }
.dsc-skeletons i + i { width: 40%; margin-bottom: 0; }
.dsc-skeletons b { width: 72px; height: 32px; flex: 0 0 auto; }
@keyframes dsc-shimmer { to { background-position: -200% 0; } }

.dsc-spark { position: absolute; width: 44px; height: 44px; border-radius: 50%; animation: dsc-spark .45s ease-out forwards; }
@keyframes dsc-spark { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.dsc-spark.impact-impact-braise { background: radial-gradient(circle, #ffd27a, #e8641c 55%, transparent 70%); }
.dsc-spark.impact-impact-givre { background: radial-gradient(circle, #fff, #8fd3f4 55%, transparent 70%); }
.dsc-spark.impact-impact-arcane { background: radial-gradient(circle, #ecd4ff, #8a4fd6 55%, transparent 70%); }
.dsc-spark.impact-impact-or { background: radial-gradient(circle, #fff6c8, #d9a441 55%, transparent 70%); }
.dsc-dmg.impact-impact-braise { color: #ffc08a; }
.dsc-dmg.impact-impact-givre { color: #c6ecff; }
.dsc-dmg.impact-impact-arcane { color: #e2c4ff; }
.dsc-dmg.impact-impact-or { color: #ffe9a8; }

.dsc-golden {
    position: absolute;
    z-index: 5;
    width: 72px;
    height: 72px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    filter: drop-shadow(0 0 10px rgba(255, 210, 120, .9));
    animation: dsc-bob 1.2s ease-in-out infinite;
}
.dsc-golden img { width: 100%; height: 100%; object-fit: contain; }
@keyframes dsc-bob { 50% { transform: translateY(-8px); } }

/* Monstre doré attrapé : gerbe de pièces, puis le gain en grand. */
.dsc-gcoin {
    position: absolute;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff6c4 0 18%, #f7d35c 30%, #d49a1c 70%, #9a6a0c 100%);
    box-shadow: 0 0 6px rgba(255, 210, 90, .8), inset 0 -2px 0 rgba(120, 80, 0, .45);
    animation: dsc-gcoin 1.4s cubic-bezier(.2, .7, .4, 1) forwards;
}
@keyframes dsc-gcoin {
    0% { transform: translate(0, 0) rotate(0) scale(.6); opacity: 1; }
    35% { transform: translate(var(--dx), var(--dy)) rotate(calc(var(--spin) * .4)) scale(1); opacity: 1; }
    100% { transform: translate(calc(var(--dx) * 1.3), calc(var(--dy) + var(--fall))) rotate(var(--spin)) scale(.9); opacity: 0; }
}
.dsc-greward {
    position: absolute;
    transform: translate(-50%, -50%);
    font-family: 'Marcellus', serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: #ffe08a;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .85), 0 0 14px rgba(255, 200, 80, .8);
    white-space: nowrap;
    animation: dsc-greward 2.2s ease-out forwards;
}
@keyframes dsc-greward {
    0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); }
    15% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
    30% { transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -150%) scale(1); }
}

/* ---- Visuels du jeu : ni glisser-déposer, ni « enregistrer l'image » (clic droit, appui long) ---- */
.dsc-stage img,
.dsc-hero__portrait img,
.dsc-relic img,
.dsc-cosmetic__preview img,
.dsc-guest img,
.dsc-guest-img,
.dsc-bestiary img,
.dsc-splash__art {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}
.dsc-stage__bg,
.dsc-bestiary img,
.dsc-splash__art { pointer-events: none; }

/* ---- Plein écran ---------------------------------------------------------------- */
.dsc-play:fullscreen,
.dsc-play.is-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 1040;
    overflow-y: auto;
    padding: .75rem 0 !important;
    background: var(--bs-light-gray, #f3f3ef) !important;
}
.dsc-play:fullscreen > .container,
.dsc-play.is-fullscreen > .container { max-width: none; padding-inline: .75rem; }
.dsc-play:fullscreen #toastContainer,
.dsc-play.is-fullscreen #toastContainer { position: fixed; z-index: 1090; }
@media (min-width: 992px) {
    .dsc-play:fullscreen .dsc-stage,
    .dsc-play.is-fullscreen .dsc-stage { height: calc(100vh - 7.5rem); max-height: none; }
    .dsc-play:fullscreen .dsc-panes,
    .dsc-play.is-fullscreen .dsc-panes { max-height: calc(100vh - 8.5rem); }
}

/* ---- Panneaux -------------------------------------------------------------------- */
.dsc-tabs { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .5rem; border-bottom: 1px solid rgba(var(--dsc-p), .14); }
.dsc-tabs::-webkit-scrollbar { display: none; }
@media (min-width: 992px) { .dsc-tabs { flex-wrap: wrap; overflow: visible; } }
.dsc-tab {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .7rem;
    border: 0;
    border-radius: .75rem;
    background: none;
    color: inherit;
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
}
.dsc-tab i { color: rgb(var(--dsc-p)); }
.dsc-tab:hover { background: rgba(var(--dsc-p), .12); }
.dsc-tab.is-active { background: rgb(var(--dsc-p)); color: #fff; }
.dsc-tab.is-active i { color: inherit; }
.dsc-tab__dot { position: absolute; top: .25rem; right: .3rem; width: .45rem; height: .45rem; border-radius: 50%; background: rgb(var(--dsc-s)); }

.dsc-panes { overflow-y: auto; }
@media (min-width: 992px) { .dsc-panes { max-height: calc(56vh + 70px); min-height: 420px; } }
.dsc-pane { display: none; }
.dsc-pane.is-active { display: block; }
.dsc-pane h3 { font-family: 'Marcellus', serif; }

.dsc-muted { color: rgba(38, 38, 38, .65); }

/* Multiplicateurs d'achat : restent collés en haut pendant qu'on fait défiler la liste des héros.
   Bureau : en haut du panneau qui défile (on remonte sur sa marge intérieure pour que rien ne passe
   au-dessus). Mobile : sous le combat épinglé, dont la hauteur est posée par le JS (--dsc-arena-h). */
/* --dsc-pad : marge intérieure du haut des panneaux, que la barre collée recouvre.
   --dsc-panel-bg : fond réel de la carte .bg-light (les --bs-* n'existent qu'en contraste élevé). */
.dsc-panel { --dsc-panel-bg: rgb(var(--mdb-light-rgb, 251, 251, 251)); }
.dsc-panes { --dsc-pad: var(--mdb-card-spacer-y, 1.5rem); padding-top: var(--dsc-pad); }
.dsc-steps {
    position: sticky;
    top: calc(-1 * var(--dsc-pad, 1.5rem));
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .3rem;
    margin: calc(-1 * var(--dsc-pad, 1.5rem)) 0 .6rem;
    padding: var(--dsc-pad, 1.5rem) 0 .4rem;
    background-color: var(--dsc-panel-bg, #fbfbfb);
    box-shadow: 0 .4rem .4rem -.4rem rgba(0, 0, 0, .12);
}
.dsc-step { border: 1px solid rgba(var(--dsc-p), .35); color: rgb(var(--dsc-p)); background: #fff; padding: .15rem .6rem; }
.dsc-step.is-active { background: rgb(var(--dsc-p)); color: #fff; }
/* Bouton unique des quantités : largeur fixe, pour que « Autre » ne bouge pas d'un palier à l'autre. */
.dsc-step-cycle { min-width: 3.6rem; font-weight: 700; }
/* Quantité libre et tri des héros, au bout de la barre. */
.dsc-step-input { width: 4.2rem; padding: .15rem .4rem; text-align: center; border-color: rgba(var(--dsc-p), .35); }
.dsc-step-input.is-active { border-color: rgb(var(--dsc-p)); box-shadow: 0 0 0 1px rgb(var(--dsc-p)); font-weight: 700; }
.dsc-sort { width: auto; margin-left: auto; padding-top: .15rem; padding-bottom: .15rem; }
/* Bouton « i » (À quoi servent les rangs ?) au bout de la barre du menu Quêtes. */
.dsc-info-btn { margin-left: auto; padding-left: .5rem; padding-right: .5rem; }
.dsc-buy.is-busy { cursor: progress; opacity: .6; }
.dsc-stats .dsc-kv { padding: .25rem 0; border-bottom: 1px dashed rgba(0, 0, 0, .08); }

.dsc-heroes, .dsc-list, .dsc-relics, .dsc-achs, .dsc-guests, .dsc-board { list-style: none; margin: 0; padding: 0; }

.dsc-hero, .dsc-row {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: .45rem;
    padding: .55rem .65rem;
    border-radius: .75rem;
    background: #fff;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .05);
}
.dsc-row > div:first-child { flex: 1; min-width: 0; }
.dsc-row.dsc-cosmetic > div:first-child { flex: 0 0 56px; }
.dsc-row.is-empty { opacity: .6; }
.dsc-hero.is-locked { opacity: .55; }

.dsc-hero__portrait {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: .6rem;
    background: rgba(var(--dsc-p), .12);
    color: rgb(var(--dsc-p));
    font-family: 'Marcellus', serif;
    font-size: 1.15rem;
}
/* Portraits en pied : le personnage entier, jamais rogné. Vignette plus haute que large. */
.dsc-hero__portrait { flex-basis: 48px; width: 48px; height: 66px; background: none; border-radius: 0; overflow: visible; }
.dsc-hero__portrait img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
/* Portrait de fiche du Porteur (image rectangulaire, pas une découpe) : recadré et arrondi. */
.dsc-hero__portrait img.is-porteur, .dsc-pick__portrait img.is-porteur { object-fit: cover; object-position: center top; border-radius: .5rem; }
.dsc-hero__body { flex: 1; min-width: 0; }
.dsc-hero__name { font-weight: 700; font-size: .9rem; color: var(--bs-dark, #262626); }
.dsc-hero__lvl { color: rgb(var(--dsc-p)); font-size: .78rem; font-weight: 600; }
.dsc-hero__title, .dsc-hero__stat { font-size: .74rem; color: rgba(38, 38, 38, .65); }

.dsc-buy { flex: 0 0 auto; min-width: 5.5rem; display: flex; flex-direction: column; align-items: center; line-height: 1.15; font-size: .72rem; }
.dsc-buy strong { font-size: .82rem; }
.dsc-buy.is-on { background: rgb(var(--dsc-s)); border-color: rgb(var(--dsc-s)); }

.dsc-box { padding: .75rem; border-radius: .75rem; background: #fff; box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .05); }
.dsc-kv { display: flex; justify-content: space-between; padding: .15rem 0; font-size: .85rem; }
.dsc-badge-n { display: inline-block; min-width: 1.4rem; padding: 0 .35rem; border-radius: 999px; background: rgba(var(--dsc-s), .2); color: rgb(var(--dsc-s)); font-size: .72rem; font-weight: 700; text-align: center; }

.dsc-relics { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .5rem; }
.dsc-relic button {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    padding: .55rem .4rem;
    border: 2px solid rgba(var(--dsc-common), .35);
    border-radius: .75rem;
    background: #fff;
    color: inherit;
    font-size: .8rem;
    text-align: center;
}
.dsc-relic img { width: 44px; height: 44px; object-fit: contain; }
.dsc-relic__passive { color: rgba(38, 38, 38, .65); }
.dsc-relic button { position: relative; cursor: pointer; transition: transform .1s ease, box-shadow .15s ease, background-color .15s ease; }
.dsc-relic button:hover { transform: translateY(-1px); box-shadow: 0 .25rem .6rem rgba(0, 0, 0, .1); }
.dsc-relic button:active { transform: scale(.97); }
/* Équipée : fond teinté, bordure pleine, pastille « Équipée » ; sinon pastille discrète « Équiper ». */
.dsc-relic.is-on button { border-color: rgb(var(--dsc-p)); background: rgba(var(--dsc-p), .1); box-shadow: 0 0 0 2px rgba(var(--dsc-p), .3); }
.dsc-relic__state {
    order: 99;
    margin-top: .3rem;
    padding: .1rem .55rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--dsc-p), .45);
    color: rgb(var(--dsc-p));
    font-size: .68rem;
    font-weight: 700;
    white-space: nowrap;
}
.dsc-relic.is-on .dsc-relic__state { background: rgb(var(--dsc-p)); border-color: rgb(var(--dsc-p)); color: #fff; }
.dsc-relic:not(.is-on) button:hover .dsc-relic__state { background: rgba(var(--dsc-p), .12); }
.dsc-slots { display: inline-flex; align-items: center; gap: .25rem; margin-left: .4rem; vertical-align: middle; font-weight: 400; }
.dsc-slots i { width: .6rem; height: .6rem; border-radius: 50%; border: 2px solid rgba(var(--dsc-p), .5); }
.dsc-slots i.is-on { background: rgb(var(--dsc-p)); border-color: rgb(var(--dsc-p)); }
.dsc-slots .small { margin-left: .2rem; color: rgba(38, 38, 38, .65); }
@media (prefers-reduced-motion: reduce) { .dsc-relic button { transition: none; } .dsc-relic button:hover, .dsc-relic button:active { transform: none; } }
.dsc-relic.is-unknown { display: flex; align-items: center; justify-content: center; min-height: 86px; border: 2px dashed rgba(0, 0, 0, .12); border-radius: .75rem; color: rgba(0, 0, 0, .3); }
.rarity-rare button { border-color: rgba(var(--dsc-rare), .6); }
.rarity-epic button { border-color: rgba(var(--dsc-epic), .6); }
.rarity-legendary button { border-color: rgba(var(--dsc-legendary), .8); }
.rarity-text-rare { color: rgb(var(--dsc-rare)); }
.rarity-text-epic { color: rgb(var(--dsc-epic)); }
.rarity-text-legendary { color: rgb(var(--dsc-legendary)); }

/* Bouton secondaire plein (cuivre foncé, texte blanc lisible) : jamais de bouton transparent. */
.btn.dsc-btn-alt {
    background-color: color-mix(in srgb, rgb(var(--dsc-s)) 80%, #000) !important;
    border-color: color-mix(in srgb, rgb(var(--dsc-s)) 80%, #000) !important;
    color: #fff !important;
}
.btn.dsc-btn-alt:hover, .btn.dsc-btn-alt:focus-visible { background-color: color-mix(in srgb, rgb(var(--dsc-s)) 68%, #000) !important; }

/* Forge et réserve : un bloc par relique (montée de niveau, puis doubles et résonance). */
.dsc-forge {
    margin-bottom: .5rem;
    padding: .55rem .65rem;
    border-radius: .75rem;
    background: #fff;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .05);
}
.dsc-forge__head { display: flex; align-items: center; gap: .5rem; }
.dsc-forge__head img, .dsc-forge__head > i { flex: 0 0 32px; width: 32px; height: 32px; object-fit: contain; text-align: center; line-height: 32px; color: rgb(var(--dsc-p)); }
.dsc-forge__line { display: flex; align-items: center; gap: .6rem; margin-top: .45rem; padding-top: .45rem; border-top: 1px dashed rgba(0, 0, 0, .08); }
.dsc-forge__line > div:first-child { flex: 1; min-width: 0; }
.dsc-forge__btns { display: flex; flex-direction: column; gap: .3rem; flex: 0 0 auto; }
.dsc-forge__btns .dsc-buy { min-width: 6.5rem; }
.dsc-gauge { position: relative; overflow: visible; }
.dsc-progress.dsc-gauge > div { border-radius: .2rem; background: rgb(var(--dsc-s)); }
.dsc-gauge__cap { position: absolute; top: -.2rem; bottom: -.2rem; width: 2px; margin-left: -1px; background: rgba(38, 38, 38, .55); }
.dsc-chips { display: flex; flex-wrap: wrap; gap: .25rem; margin: .3rem 0 .15rem; }
.dsc-chip { display: inline-block; padding: .05rem .5rem; border-radius: 999px; font-size: .7rem; font-weight: 700; color: #fff; background: rgb(var(--dsc-common)); white-space: nowrap; }
.dsc-chip[data-rarity="rare"] { background: rgb(var(--dsc-rare)); }
.dsc-chip[data-rarity="epic"] { background: rgb(var(--dsc-epic)); }
.dsc-chip[data-rarity="legendary"] { background: color-mix(in srgb, rgb(var(--dsc-legendary)) 80%, #000); }
.dsc-chip.is-on { background: rgb(var(--dsc-p)); vertical-align: middle; }
.dsc-surplus-all { font-weight: 700; }
@media (max-width: 420px) {
    .dsc-forge__line { flex-direction: column; align-items: stretch; }
    .dsc-forge__btns { flex-direction: row; }
    .dsc-forge__btns .dsc-buy { flex: 1; }
}

.dsc-progress { height: .4rem; margin: .3rem 0 .15rem; border-radius: .2rem; background: rgba(0, 0, 0, .08); overflow: hidden; }
.dsc-progress div { height: 100%; background: rgb(var(--dsc-p)); }

.dsc-achs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .45rem; }
.dsc-ach { display: flex; flex-direction: column; gap: .1rem; padding: .55rem; border-radius: .7rem; background: #fff; font-size: .8rem; opacity: .8; }
.dsc-ach .dsc-progress { margin: .25rem 0 0; }
.dsc-ach .dsc-progress div { transition: width .3s ease-out; }
.dsc-ach__count { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .dsc-ach .dsc-progress div { transition: none; } }
.dsc-ach i { color: rgba(0, 0, 0, .3); }
.dsc-ach.is-on { opacity: 1; box-shadow: inset 0 0 0 1px rgba(var(--dsc-s), .45); }
.dsc-ach.is-on i { color: rgb(var(--dsc-s)); }

.dsc-board li { display: flex; align-items: center; gap: .6rem; margin-bottom: .3rem; padding: .45rem .65rem; border-radius: .6rem; background: #fff; }
.dsc-board li.is-me { box-shadow: inset 0 0 0 2px rgba(var(--dsc-p), .5); }
.dsc-board__rank { width: 1.8rem; text-align: center; font-family: 'Marcellus', serif; font-weight: 700; color: rgb(var(--dsc-p)); }
.dsc-board__name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.dsc-board__who, .dsc-board__porteur { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dsc-board__porteur { font-size: .72rem; color: rgba(38, 38, 38, .65); }
.dsc-board__floor { font-size: .8rem; color: rgba(38, 38, 38, .65); white-space: nowrap; }
/* Joueurs encadrés : ligne teintée et bordée à la couleur du cadre, avatar dans le cadre Progression. */
.dsc-board li.frame-cadre-runique { background: rgba(61, 90, 128, .08); box-shadow: inset 0 0 0 2px rgba(61, 90, 128, .55); }
.dsc-board li.frame-cadre-abime { background: rgba(var(--dsc-epic), .08); box-shadow: inset 0 0 0 2px rgba(var(--dsc-epic), .55); }
.dsc-frame-badge { font-size: .65rem; font-weight: 600; vertical-align: middle; }
.dsc-frame-badge.frame-cadre-runique { background: rgba(61, 90, 128, .15); color: #2b3a55; }
.dsc-frame-badge.frame-cadre-abime { background: rgba(var(--dsc-epic), .15); color: rgb(var(--dsc-epic)); }

.dsc-avatar { flex: 0 0 auto; display: inline-flex; line-height: 0; }
.dsc-avatar img, .dsc-avatar__fallback { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.dsc-avatar__fallback { display: inline-flex; align-items: center; justify-content: center; background: rgba(var(--dsc-p), .15); color: rgb(var(--dsc-p)); font-family: 'Marcellus', serif; line-height: 1; }

/* Aperçu des cosmétiques dans la boutique. */
.dsc-cosmetic__preview { position: relative; flex: 0 0 56px; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: .6rem; background: #2a3324; overflow: hidden; }
.dsc-cosmetic .dsc-cosmetic__preview + div { flex: 1; min-width: 0; }
.dsc-spark--still { position: absolute; inset: 6px; width: auto; height: auto; animation: none; opacity: .9; }
.dsc-dmg--still { position: relative; animation: none; font-size: .8rem; }
.dsc-cosmetic__preview:has(.dsc-avatar) { background: rgba(var(--dsc-p), .08); }

.dsc-guest { display: flex; align-items: center; gap: .6rem; margin-bottom: .4rem; padding: .5rem; border-radius: .7rem; background: #fff; font-size: .85rem; }
.dsc-guest img { width: 50px; height: 70px; object-fit: cover; border-radius: .35rem; }
.dsc-guest.is-off { opacity: .5; }
.dsc-guest-img { max-width: 150px; border-radius: .5rem; }

/* Onglet Crédits : un bloc par artiste, ses visuels en vignettes. */
.dsc-credit { margin-bottom: .6rem; padding: .6rem .65rem; border-radius: .75rem; background: #fff; box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .05); }
.dsc-credit__head { display: flex; align-items: center; gap: .6rem; }
.dsc-credit__works { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr)); gap: .45rem; list-style: none; margin: .55rem 0 0; padding: 0; }
.dsc-credit__works li { min-width: 0; text-align: center; font-size: .7rem; line-height: 1.2; color: rgba(38, 38, 38, .75); }
.dsc-credit__works img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: .2rem; border-radius: .45rem; background: rgba(var(--dsc-p), .08); }
.dsc-credit__works span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dsc-credits-cta { padding: .75rem .8rem; border-radius: .75rem; background: rgba(var(--dsc-p), .08); border: 1px dashed rgba(var(--dsc-p), .35); }
.dsc-switch { display: inline-flex; align-items: center; gap: .35rem; margin: 0; font-size: .78rem; }

.impact-text-impact-braise { color: #c8581a; }
.impact-text-impact-givre { color: #2f8fc0; }
.impact-text-impact-arcane { color: #7a45c4; }
.impact-text-impact-or { color: #a87b1e; }
.impact-text-cadre-runique { color: rgb(var(--dsc-rare)); }
.impact-text-cadre-abime { color: rgb(var(--dsc-epic)); }

.dsc-readonly { position: fixed; inset: 0; z-index: 1060; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(0, 0, 0, .45); }
.dsc-readonly[hidden] { display: none; }

/* ---- Vitrine (visiteurs) ------------------------------------------------------------ */
.dsc-bestiary { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; }
.dsc-bestiary img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.dsc-faq summary { cursor: pointer; }
.dsc-splash { position: relative; overflow: hidden; }
.dsc-splash__art { display: block; width: 100%; max-height: 360px; object-fit: cover; border-radius: 1rem; }

/* Mobile et tablette : le combat reste à l'écran, collé en haut ; seuls les panneaux défilent
   en dessous. La navbar revient quand on remonte en haut de la page. */
@media (max-width: 991.98px) {
    /* Toujours tout en haut, devant la navbar (z-index 1030) : si le jeu suivait la navbar qui
       réapparaît en remontant, une bande s'ouvrait au-dessus et le contenu y défilait. */
    /* Fond opaque (celui de la section) : rien de ce qui défile ne transparaît autour du jeu. */
    .dsc-arena-col {
        position: sticky;
        top: 0;
        z-index: 1031;
        padding-top: env(safe-area-inset-top, 0);
        background-color: #fff;
    }
    /* Combat et panneaux ne font qu'un bloc : pas d'écart entre les colonnes, combat aux coins du
       bas carrés, panneau aux coins du haut carrés. */
    .dsc-play .dsc-layout { margin-top: 0; }
    .dsc-play .dsc-layout > * { margin-top: 0; }
    .dsc-arena { border-radius: 1rem 1rem 0 0; }
    .dsc-panel { border-top-left-radius: 0 !important; border-top-right-radius: 0 !important; }
    /* Onglets toujours à l'écran, collés sous le combat ; les multiplicateurs sous les onglets. */
    .dsc-panel-head {
        position: sticky;
        top: calc(var(--dsc-arena-h, 0px) - 1px);   /* chevauche d'un pixel : aucun interstice */
        z-index: 1030;
        padding-top: .4rem !important;
        border-radius: 0 !important;
        background-color: var(--dsc-panel-bg, #fbfbfb) !important;
        /* Jupe opaque de 8 px vers le haut, sous le combat (z-index inférieur) : invisible, elle
           bouche la fente que le navigateur peut ouvrir en arrondissant les collants au défilement. */
        box-shadow: 0 -.5rem 0 var(--dsc-panel-bg, #fbfbfb);
    }
    .dsc-panel-head .dsc-tabs { padding-bottom: .4rem; }
    .dsc-panes { --dsc-pad: .5rem; }
    /* En plein écran, c'est la zone de jeu qui défile : sa marge intérieure du haut laisserait une
       bande au-dessus du combat épinglé, où les panneaux passeraient. */
    .dsc-play:fullscreen,
    .dsc-play.is-fullscreen { padding-top: 0 !important; }
    .dsc-play:fullscreen .dsc-arena-col,
    .dsc-play.is-fullscreen .dsc-arena-col {
        background-color: #fff;
        padding-top: env(safe-area-inset-top, 0);
    }
    /* Plein écran : bord à bord, ni gouttières ni coins arrondis (le panneau garde sa marge interne). */
    .dsc-play:fullscreen,
    .dsc-play.is-fullscreen { padding-bottom: 0 !important; }
    .dsc-play:fullscreen > .container,
    .dsc-play.is-fullscreen > .container { padding-inline: 0; }
    .dsc-play:fullscreen .dsc-layout,
    .dsc-play.is-fullscreen .dsc-layout { margin-inline: 0; }
    .dsc-play:fullscreen .dsc-layout > *,
    .dsc-play.is-fullscreen .dsc-layout > * { padding-inline: 0; }
    .dsc-play:fullscreen .dsc-arena,
    .dsc-play.is-fullscreen .dsc-arena,
    .dsc-play:fullscreen .dsc-panel,
    .dsc-play.is-fullscreen .dsc-panel { border-radius: 0 !important; box-shadow: none !important; }
    /* Jeu épinglé (classe posée par le JS) : la navbar et la barre d'action mobile s'effacent. */
    body.dsc-pinned .navbar {
        transform: translateY(-110%) !important;
        visibility: hidden;
        transition: transform .15s ease-in-out, visibility 0s .15s;
    }
    /* Taper (ou glisser) sur le jeu ne fait pas défiler la page : seul le jeu réagit. Les boutons
       restent cliquables ; on fait défiler les panneaux en les touchant, eux. */
    .dsc-arena { touch-action: none; overscroll-behavior: contain; }
    .dsc-stage { height: 40vh; min-height: 230px; }
    .dsc-arena .card-header, .dsc-arena .card-footer { padding-top: .35rem !important; padding-bottom: .35rem !important; }
    /* Pas de défilement propre au panneau : c'est la page qui défile, le collant suit la page. */
    .dsc-panes { max-height: none; overflow-y: visible; }
    /* Même jupe sous les onglets ; l'ombre du bas est reprise. */
    .dsc-steps { top: calc(var(--dsc-arena-h, 0px) + var(--dsc-tabs-h, 0px) - 2px); box-shadow: 0 -.5rem 0 var(--dsc-panel-bg, #fbfbfb), 0 .4rem .4rem -.4rem rgba(0, 0, 0, .12); }

    /* ---- Plein écran : combat sur toute la hauteur (décors en portrait), onglets en bas ----
       Colonne flexible de 100dvh : combat (qui prend le reste), onglets, panneau. Le panneau est
       replié tant qu'on n'a pas touché un onglet (.is-sheet, posé par le JS) ; ouvert, il défile
       lui-même et le combat se raccourcit d'autant. */
    .dsc-play:fullscreen,
    .dsc-play.is-fullscreen { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; }
    .dsc-play:fullscreen > .container,
    .dsc-play.is-fullscreen > .container { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
    .dsc-play:fullscreen .dsc-layout,
    .dsc-play.is-fullscreen .dsc-layout { flex: 1 1 auto; min-height: 0; flex-direction: column; flex-wrap: nowrap; }
    .dsc-play:fullscreen .dsc-arena-col,
    .dsc-play.is-fullscreen .dsc-arena-col { position: relative; flex: 1 0 auto; display: flex; flex-direction: column; }
    .dsc-play:fullscreen .dsc-arena,
    .dsc-play.is-fullscreen .dsc-arena { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
    .dsc-play:fullscreen .dsc-stage,
    .dsc-play.is-fullscreen .dsc-stage { flex: 1 1 auto; height: auto; min-height: 0; max-height: none; }
    .dsc-play:fullscreen .dsc-stage__bg,
    .dsc-play.is-fullscreen .dsc-stage__bg { object-position: center bottom; }
    /* Le combat garde au moins 38 % de l'écran : sur un petit téléphone, c'est le panneau qui cède. */
    .dsc-play:fullscreen .dsc-stage,
    .dsc-play.is-fullscreen .dsc-stage { min-height: 38dvh; }
    /* Monstre à la mesure de la scène : plus grand panneau replié (scène haute), borné par la
       hauteur d'écran panneau ouvert (scène basse) pour ne pas être coupé en haut. */
    .dsc-play:fullscreen .dsc-monster,
    .dsc-play.is-fullscreen .dsc-monster { width: min(80%, 460px); }
    .dsc-play:fullscreen .dsc-monster.is-boss,
    .dsc-play.is-fullscreen .dsc-monster.is-boss { width: min(90%, 520px); }
    .dsc-play.is-sheet .dsc-monster { width: min(60%, 330px, 24dvh); }
    .dsc-play.is-sheet .dsc-monster.is-boss { width: min(70%, 390px, 28dvh); }
    .dsc-play:fullscreen .dsc-layout > :last-child,
    .dsc-play.is-fullscreen .dsc-layout > :last-child { flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; }
    .dsc-play:fullscreen .dsc-panel,
    .dsc-play.is-fullscreen .dsc-panel { height: auto !important; min-height: 0; padding-bottom: env(safe-area-inset-bottom, 0); }
    .dsc-play:fullscreen .dsc-panel-head,
    .dsc-play.is-fullscreen .dsc-panel-head { flex: 0 0 auto; }
    .dsc-play:fullscreen .dsc-panes,
    .dsc-play.is-fullscreen .dsc-panes { flex: 0 1 auto; min-height: 0; }
    .dsc-play:fullscreen .dsc-panel-head,
    .dsc-play.is-fullscreen .dsc-panel-head { position: static; }
    .dsc-play:fullscreen .dsc-panes,
    .dsc-play.is-fullscreen .dsc-panes { max-height: 0; padding-top: 0; padding-bottom: 0; overflow-y: auto; overscroll-behavior: contain; transition: max-height .22s ease-out; }
    .dsc-play.is-sheet .dsc-panes { max-height: 50dvh; padding-top: var(--dsc-pad); padding-bottom: 1rem; }
    /* Le panneau défile lui-même : la barre de quantités se colle en haut du panneau. */
    .dsc-play:fullscreen .dsc-steps,
    .dsc-play.is-fullscreen .dsc-steps { top: calc(-1 * var(--dsc-pad)); }
    /* Replié : aucun onglet n'apparaît sélectionné (toucher l'un d'eux ouvre le panneau). */
    .dsc-play:fullscreen:not(.is-sheet) .dsc-tab.is-active,
    .dsc-play.is-fullscreen:not(.is-sheet) .dsc-tab.is-active { background: none; color: inherit; }
    .dsc-play:fullscreen:not(.is-sheet) .dsc-tab.is-active i,
    .dsc-play.is-fullscreen:not(.is-sheet) .dsc-tab.is-active i { color: rgb(var(--dsc-p)); }
    .dsc-play:fullscreen:not(.is-sheet) .dsc-tabs,
    .dsc-play.is-fullscreen:not(.is-sheet) .dsc-tabs { border-bottom: 0; }
}
@media (max-width: 991.98px) and (prefers-reduced-motion: reduce) {
    .dsc-play .dsc-panes { transition: none !important; }
}
@media (max-width: 575.98px) {
    .dsc-stage { height: 36vh; min-height: 210px; }
}

@media (prefers-reduced-motion: reduce) {
    .dsc-golden { animation: none; }
    .dsc-loader__torch span, .dsc-loader__bar div, .dsc-skeletons * { animation: none; }
    .dsc-monster img { transition: none; }
}

/* ---- Caserne : rangs, entraînement, missions (onglet Quêtes) ----
   --rank : couleur du rang ("r, g, b"), posée en style en ligne par le JS (balance.yaml › barracks.ranks). */
.dsc-hero.has-rank { border: 2px solid rgba(var(--rank), .75); background: rgba(var(--rank), .14); }
.dsc-hero.is-away .dsc-hero__portrait img { filter: grayscale(.8); opacity: .7; }
.dsc-hero.is-done { box-shadow: 0 0 0 2px rgba(var(--rank), .55), 0 .125rem .25rem rgba(0, 0, 0, .05); }
.dsc-rank {
    display: inline-block;
    padding: 0 .4rem;
    border: 1px solid rgba(var(--rank), .65);
    border-radius: 999px;
    background: rgba(var(--rank), .2);
    color: var(--bs-dark, #262626);
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
}
.dsc-away { display: inline-block; padding: 0 .4rem; border-radius: 999px; background: rgba(var(--dsc-s), .18); color: rgb(var(--dsc-s)); font-size: .68rem; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.dsc-subdot { display: inline-block; width: .45rem; height: .45rem; margin-left: .15rem; border-radius: 50%; background: rgb(var(--dsc-s)); vertical-align: middle; }

.dsc-rankbar { margin: .5rem 0; padding: .5rem .65rem; border-radius: .75rem; background: #fff; box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .05); }
.dsc-rankbar .dsc-progress div { background: rgb(var(--rank)); }

.dsc-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .4rem; }
.dsc-pick {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .1rem;
    min-width: 0;
    padding: .35rem .25rem;
    border: 2px solid rgba(var(--rank), .45);
    border-radius: .6rem;
    background: #fff;
    color: var(--bs-dark, #262626);
    font-size: .7rem;
    line-height: 1.2;
}
.dsc-pick:hover:not(:disabled) { background: rgba(var(--rank), .08); }
.dsc-pick.is-active { border-color: rgb(var(--rank)); background: rgba(var(--rank), .12); box-shadow: 0 0 0 2px rgba(var(--rank), .35); }
.dsc-pick:disabled { opacity: .5; cursor: not-allowed; }
.dsc-pick__portrait { display: flex; align-items: flex-end; justify-content: center; width: 34px; height: 46px; font-family: 'Marcellus', serif; }
.dsc-pick__portrait img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.dsc-pick__name { max-width: 100%; overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.dsc-pick__rank { color: rgba(38, 38, 38, .7); }
.dsc-pick__status { color: rgb(var(--dsc-s)); font-weight: 700; }

/* Gain d'une mission récupérée : texte flottant au-dessus de la carte du héros (position fixe,
   dans la zone de jeu pour rester visible en plein écran). */
.dsc-floattext {
    position: fixed;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    pointer-events: none;
    transform: translate(-50%, -100%);
    font-weight: 700;
    white-space: nowrap;
    animation: dsc-floatup 2.4s ease-out forwards;
}
.dsc-floattext span { padding: .15rem .6rem; border-radius: 999px; background: rgba(20, 20, 24, .82); color: #ffe08a; font-size: .95rem; text-shadow: 0 1px 2px rgba(0, 0, 0, .8); box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .25); }
.dsc-floattext span + span { color: #fff; font-size: .8rem; }
.dsc-floattext img { width: 22px; height: 30px; object-fit: cover; border-radius: .2rem; margin-right: .35rem; vertical-align: middle; }
/* Raretés lisibles sur le fond sombre du texte flottant. */
.dsc-floattext .rarity-float-common { color: #e6e6ea; }
.dsc-floattext .rarity-float-rare { color: #8cc2ff; }
.dsc-floattext .rarity-float-epic { color: #d3a6ff; }
.dsc-floattext .rarity-float-legendary { color: #ffc067; }
/* Coffre qu'on ouvre : la ligne sursaute. */
.dsc-row.is-opening { animation: dsc-chest-open .4s ease-out; }
/* Accélération de la caserne (bonus de Lueurs Élan / Cadence du héraut). */
.dsc-run__actions { display: flex; flex-direction: column; align-items: stretch; gap: .3rem; }
.dsc-accel { font-size: .72rem; font-weight: 700; white-space: nowrap; }
@keyframes dsc-chest-open { 0% { transform: scale(1); } 25% { transform: scale(1.03) rotate(-.6deg); } 50% { transform: scale(1.02) rotate(.6deg); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .dsc-row.is-opening { animation: none; } }
@keyframes dsc-floatup {
    0% { opacity: 0; transform: translate(-50%, -80%); }
    12% { opacity: 1; transform: translate(-50%, -100%); }
    75% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, calc(-100% - 70px)); }
}
@media (prefers-reduced-motion: reduce) {
    .dsc-floattext { animation: dsc-floatfade 2.4s linear forwards; }
    @keyframes dsc-floatfade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
}

/* ---- Plongée dans l'Abîme : teinte violette (celle des biomes corrompus) ---- */
.dsc-abyss { --dsc-abyss: 124, 77, 196; border: 1px solid rgba(var(--dsc-abyss), .45); background: linear-gradient(160deg, rgba(var(--dsc-abyss), .14), rgba(var(--dsc-abyss), .03)); }
.dsc-abyss h3 i { color: rgb(var(--dsc-abyss)); }
.dsc-abyss.is-locked { opacity: .8; border-style: dashed; }
.btn-abyss { background: rgb(124, 77, 196); border-color: rgb(124, 77, 196); color: #fff; font-weight: 700; }
.btn-abyss:hover, .btn-abyss:focus-visible { background: rgb(104, 60, 172); border-color: rgb(104, 60, 172); color: #fff; }
.btn-abyss:disabled { background: rgba(124, 77, 196, .45); border-color: transparent; color: #fff; }
.dsc-abyss-buy { background: rgb(124, 77, 196); border-color: rgb(124, 77, 196); color: #fff; }
.dsc-abyss-buy:hover:not(:disabled) { background: rgb(104, 60, 172); color: #fff; }
.dsc-abyss-buy:disabled { background: rgba(124, 77, 196, .35); border-color: transparent; color: #fff; }
.dsc-abyss-tag { display: inline-block; padding: 0 .35rem; border-radius: .4rem; font-size: .7rem; font-weight: 700; background: rgba(124, 77, 196, .16); color: rgb(124, 77, 196); }

/* ---- Avant / après des prestiges (remontée, plongée) ---- */
.dsc-swap { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; text-align: left; }
.dsc-swap__col, .dsc-swap__gain { border-radius: .6rem; padding: .6rem .7rem; }
.dsc-swap__col.is-lose { background: rgba(217, 84, 43, .08); border: 1px solid rgba(217, 84, 43, .3); }
.dsc-swap__col.is-keep { background: rgba(var(--dsc-p), .08); border: 1px solid rgba(var(--dsc-p), .3); }
.dsc-swap__gain { margin-top: .6rem; text-align: left; background: rgba(var(--dsc-s), .1); border: 1px solid rgba(var(--dsc-s), .4); }
.dsc-swap h4, .dsc-swap__gain h4 { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 .4rem; }
.dsc-swap__col.is-lose h4 { color: rgb(190, 66, 30); }
.dsc-swap__col.is-keep h4 { color: rgb(var(--dsc-p)); }
.dsc-swap__gain h4 { color: rgb(var(--dsc-s)); }
.dsc-swap ul, .dsc-swap__gain ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.dsc-swap li, .dsc-swap__gain li { display: flex; gap: .45rem; align-items: baseline; font-size: .82rem; line-height: 1.3; }
.dsc-swap li i, .dsc-swap__gain li i { flex: 0 0 1rem; text-align: center; opacity: .75; }
.dsc-swap__gain li { font-size: .9rem; font-weight: 600; }
@media (max-width: 420px) { .dsc-swap { grid-template-columns: 1fr; } }

/* ==== Cosmétiques : nouvelles familles (config/cosmetics.yaml) ==================================== */

/* -- Impacts ajoutés -- */
.dsc-spark.impact-impact-ombre { background: radial-gradient(circle, #6b6b78, #1b1b22 55%, transparent 70%); }
.dsc-spark.impact-impact-seve { background: radial-gradient(circle, #e4ffc2, #5fb34a 55%, transparent 70%); }
.dsc-spark.impact-impact-houx { background: radial-gradient(circle, #ff6b6b 0 18%, #c8323c 30%, #2f8f4e 52%, transparent 70%); }
.dsc-dmg.impact-impact-ombre { color: #c9c9d4; }
.dsc-dmg.impact-impact-seve { color: #d2f5b0; }
.dsc-dmg.impact-impact-houx { color: #ffb3b3; }
.dsc-critburst.impact-impact-ombre { filter: grayscale(1) brightness(.6); }
.dsc-critburst.impact-impact-seve { filter: hue-rotate(70deg); }
.dsc-critburst.impact-impact-houx { filter: hue-rotate(-30deg) saturate(1.4); }

/* -- Effets de mort : gerbe de particules depuis le monstre -- */
.dsc-death { position: absolute; left: 50%; top: 48%; width: 0; height: 0; pointer-events: none; }
.dsc-death i {
    position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%;
    background: #fff; opacity: 0;
    animation: dsc-death .9s cubic-bezier(.2, .7, .3, 1) var(--t, 0ms) forwards;
}
@keyframes dsc-death {
    0% { opacity: 1; transform: rotate(var(--a)) translateX(0) rotate(0); }
    70% { opacity: 1; }
    100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--d)) translateY(18px) rotate(var(--r)); }
}
.dsc-death--still { position: relative; left: auto; top: auto; }
.dsc-death--still i { animation: none; opacity: .95; transform: rotate(var(--a)) translateX(var(--d)) rotate(var(--r)); }

.death-mort-cendres i { background: radial-gradient(circle, #ffcf7a, #c4501b 60%, #3a2a22); box-shadow: 0 0 6px rgba(255, 140, 40, .7); }
.death-mort-givre i { width: 6px; height: 12px; border-radius: 1px; background: linear-gradient(#ffffff, #8fd3f4); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.death-mort-runes i { width: auto; height: auto; background: none; border-radius: 0; font-style: normal; color: #d9b8ff; font-size: 13px; text-shadow: 0 0 6px #8a4fd6; }
.death-mort-runes i::before { content: "ᚱ"; }
.death-mort-runes i:nth-child(3n)::before { content: "ᛟ"; }
.death-mort-runes i:nth-child(3n+1)::before { content: "ᚦ"; }
.death-mort-pieces i { width: 10px; height: 10px; background: radial-gradient(circle at 35% 35%, #fff6c8, #e2b13c 55%, #9a6e14); box-shadow: 0 0 4px rgba(255, 210, 90, .7); }
.death-mort-plumes i { width: 5px; height: 14px; border-radius: 50% 50% 50% 50% / 80% 80% 20% 20%; background: linear-gradient(#3b3b46, #0e0e12); }
.death-mort-confettis i { width: 6px; height: 9px; border-radius: 1px; background: var(--c); }

/* -- Traînées : une particule par point du curseur -- */
.dsc-trail {
    position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
    pointer-events: none; animation: dsc-trail .65s ease-out forwards;
}
@keyframes dsc-trail {
    from { opacity: 1; transform: translate(0, 0) scale(1); }
    to { opacity: 0; transform: translate(var(--dx, 0), 14px) scale(.25); }
}
.trail-trace-etincelles { background: radial-gradient(circle, #fff3c4, #ff8a2a 60%, transparent 72%); box-shadow: 0 0 8px rgba(255, 140, 40, .8); }
.trail-trace-givre { width: 7px; height: 7px; background: linear-gradient(135deg, #fff, #9fdcff); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.trail-trace-runes { width: auto; height: auto; margin: -.6em 0 0 -.4em; background: none; border-radius: 0; color: #e2c4ff; font-size: 15px; line-height: 1; text-shadow: 0 0 6px #8a4fd6; }
.trail-trace-runes::before { content: attr(data-g); }
.trail-trace-or { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; background: #ffe08a; box-shadow: 0 0 6px #ffd04a, 8px 4px 0 -1px #ffe9a8, -6px 6px 0 -1px #e2b13c; }
.trail-trace-guirlande { background: var(--c); box-shadow: 0 0 8px var(--c); }
/* Aperçu en boutique : 4 points en diagonale, immobiles. */
.dsc-trailprev { position: absolute; inset: 0; }
.dsc-trail--still { animation: none; left: calc(14px + var(--i) * 10px); top: calc(40px - var(--i) * 8px); opacity: calc(1 - var(--i) * .18); }
.dsc-trail--still.trail-trace-runes::before { content: "ᛟ"; }

/* -- Ambiances : particules lentes au fond de la scène (au-dessus du décor, sous le monstre) -- */
.dsc-ambiance { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.dsc-ambiance i {
    position: absolute; left: var(--x); top: var(--y); width: 4px; height: 4px; border-radius: 50%;
    transform: scale(var(--s)); opacity: 0;
    animation: dsc-amb-rise var(--dur) linear var(--delay) infinite;
}
@keyframes dsc-amb-rise {
    0% { opacity: 0; translate: 0 40px; }
    15% { opacity: .9; }
    85% { opacity: .9; }
    100% { opacity: 0; translate: 14px -90px; }
}
@keyframes dsc-amb-fall {
    0% { opacity: 0; translate: 0 -60px; }
    10% { opacity: .95; }
    90% { opacity: .95; }
    100% { opacity: 0; translate: -18px 120px; }
}
@keyframes dsc-amb-float {
    0%, 100% { opacity: .15; translate: 0 0; }
    50% { opacity: 1; translate: 10px -14px; }
}
@keyframes dsc-amb-twinkle {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}
@keyframes dsc-amb-mist {
    0%, 100% { opacity: .0; translate: -30px 0; }
    50% { opacity: .55; translate: 30px 0; }
}
.amb-amb-braises i { background: #ffb347; box-shadow: 0 0 6px #ff7a1a; }
.amb-amb-givre i { width: 3px; height: 3px; background: #e6f6ff; box-shadow: 0 0 4px #9fdcff; animation-name: dsc-amb-fall; }
.amb-amb-lucioles i { width: 5px; height: 5px; background: #e9d2ff; box-shadow: 0 0 10px 2px rgba(160, 100, 255, .8); animation-name: dsc-amb-float; }
.amb-amb-or i { width: 3px; height: 3px; background: #fff1b8; box-shadow: 0 0 6px #ffd04a; animation-name: dsc-amb-twinkle; animation-duration: calc(var(--dur) / 3); }
.amb-amb-brume i { top: auto; bottom: calc(var(--y) * .25 - 20px); width: 180px; height: 60px; border-radius: 50%; background: radial-gradient(ellipse, rgba(220, 225, 235, .35), transparent 70%); animation-name: dsc-amb-mist; animation-duration: calc(var(--dur) * 2); }
.amb-amb-neige i { width: 5px; height: 5px; background: #fff; box-shadow: 0 0 3px rgba(255, 255, 255, .8); animation-name: dsc-amb-fall; }
/* Aperçu en boutique : même couche, en miniature. */
.dsc-ambiance--mini i { width: 3px; height: 3px; }
.dsc-ambiance--mini.amb-amb-brume i { width: 50px; height: 20px; }

/* -- Titres et emblèmes -- */
.dsc-title-prev { color: #e8dcc0; font-size: 1.2rem; }
.dsc-emblem-prev { font-size: 1.6rem; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.dsc-board__emblem { margin-right: .3rem; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.dsc-board__title { font-size: .72rem; font-style: italic; color: rgb(var(--dsc-p)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* -- Boutique : filtres, à la une, origines -- */
.dsc-cos-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .5rem; }
.dsc-cos-chip { padding: .15rem .6rem; border-radius: 1rem; font-size: .75rem; background: rgba(var(--dsc-p), .08); color: rgb(var(--dsc-p)); border: 1px solid transparent; }
.dsc-cos-chip.is-on { background: rgb(var(--dsc-p)); color: #fff; }
.dsc-cos-featured { margin-bottom: .75rem; padding: .5rem; border-radius: .8rem; background: rgba(217, 164, 65, .12); box-shadow: inset 0 0 0 1px rgba(217, 164, 65, .45); }
.dsc-cos-featured > .small { color: #8a6416; }
.dsc-cos-old { opacity: .6; font-size: .68rem; }
.dsc-cos-tag { font-size: .62rem; font-weight: 600; vertical-align: middle; background: rgba(var(--dsc-p), .12); color: rgb(var(--dsc-p)); }
.dsc-cos-tag.is-season { background: rgba(47, 143, 192, .14); color: #1f6f99; }
.dsc-cos-lock { flex: 0 0 auto; max-width: 7.5rem; text-align: right; line-height: 1.2; }
.dsc-cos-try { margin-top: .3rem; padding: .1rem .5rem; font-size: .72rem; }

@media (prefers-reduced-motion: reduce) {
    .dsc-ambiance:not(.dsc-ambiance--mini), .dsc-death:not(.dsc-death--still), .dsc-trail:not(.dsc-trail--still) { display: none; }
    .dsc-ambiance--mini i { animation: none; opacity: .9; }
}

/* Emoji vaelor du Discord et rubis (monnaie des cosmétiques). */
.dsc-vaelor { width: 1.2em; height: 1.2em; vertical-align: -0.25em; object-fit: contain; }
.dsc-ruby { color: #d6334a; }

/* Visuels de l'Atelier à la place des icônes Font Awesome (art() dans descente.js). */
.dsc-art-icon { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -0.25em; object-fit: contain; }
.dsc-skill .dsc-art-icon { width: 78%; height: 78%; vertical-align: middle; }
.dsc-emblem-prev.dsc-art-icon { width: 1.8rem; height: 1.8rem; }
.dsc-pay { flex-shrink: 0; }
.dsc-pay .dsc-buy { min-width: 5.5rem; }

/* Jauge vers le prochain palier de maîtrise (×2, ×4…) sous chaque héros. */
.dsc-hero__ms { height: 4px; margin-top: .3rem; border-radius: 2px; background: rgba(0, 0, 0, .08); overflow: hidden; }
.dsc-hero__ms[hidden] { display: none; }
.dsc-hero__ms i { display: block; height: 100%; border-radius: inherit; background: rgb(var(--dsc-p)); transition: width .25s ease-out; }
@media (prefers-reduced-motion: reduce) { .dsc-hero__ms i { transition: none; } }

/* ==== Interface de jeu (27/11/2026) ===============================================================
   Codes des jeux mobiles et des jeux de cartes, sur le fond blanc du site : coins coupés plutôt que
   coins arrondis, aplats francs, contours épais, rebords durs (sans flou), boutons qui s'enfoncent,
   portraits dans une case hexagonale dont le héros déborde, étages en cases hexagonales.
   Formes : clip-path. Une forme découpée perd bordure et ombre ; d'où deux calques : ::before
   (contour + rebord, plus foncé, qui dépasse de 4 px vers le bas) et ::after (fond, en retrait). */
[data-descente] {
    --dsc-p-dark: 58, 74, 30;       /* rebord des boutons olive */
    --dsc-s-dark: 150, 86, 40;      /* rebord des boutons cuivre */
    --dsc-line: 222, 216, 203;      /* contour des cartes */
    --dsc-lip: 205, 198, 183;       /* rebord des cartes */
    --dsc-gold: 242, 193, 78;
    --dsc-cut: 12px;                /* coin coupé des cartes */
    --dsc-hex: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

/* -- Coins coupés : cartes et lignes des panneaux -- */
.dsc-hero, .dsc-row, .dsc-box, .dsc-forge, .dsc-ach, .dsc-board li, .dsc-guest, .dsc-credit, .dsc-rankbar, .dsc-skeletons li, .dsc-relic button {
    --cut: var(--dsc-cut);
    --cut-in: calc(var(--cut) - 1px);
    --edge: rgb(var(--dsc-lip));
    --face: #fff;
    position: relative;
    isolation: isolate;
    margin-bottom: calc(.55rem + 4px);
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}
:is(.dsc-hero, .dsc-row, .dsc-box, .dsc-forge, .dsc-ach, .dsc-board li, .dsc-guest, .dsc-credit, .dsc-rankbar, .dsc-skeletons li, .dsc-relic button)::before,
:is(.dsc-hero, .dsc-row, .dsc-box, .dsc-forge, .dsc-ach, .dsc-board li, .dsc-guest, .dsc-credit, .dsc-rankbar, .dsc-skeletons li, .dsc-relic button)::after {
    content: '';
    position: absolute;
    z-index: -1;
    pointer-events: none;
}
:is(.dsc-hero, .dsc-row, .dsc-box, .dsc-forge, .dsc-ach, .dsc-board li, .dsc-guest, .dsc-credit, .dsc-rankbar, .dsc-skeletons li, .dsc-relic button)::before {
    inset: 0 0 -4px 0;
    background: var(--edge);
    clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
}
:is(.dsc-hero, .dsc-row, .dsc-box, .dsc-forge, .dsc-ach, .dsc-board li, .dsc-guest, .dsc-credit, .dsc-rankbar, .dsc-skeletons li, .dsc-relic button)::after {
    inset: 2px;
    background: var(--face);
    clip-path: polygon(var(--cut-in) 0, calc(100% - var(--cut-in)) 0, 100% var(--cut-in), 100% calc(100% - var(--cut-in)), calc(100% - var(--cut-in)) 100%, var(--cut-in) 100%, 0 calc(100% - var(--cut-in)), 0 var(--cut-in));
}
.dsc-ach, .dsc-board li { --cut: 8px; }
.dsc-row.is-empty, .dsc-hero.is-locked { opacity: .6; }
/* Héros classés : contour épais à la couleur du palier, rebord du bas plus foncé, fond à peine teinté. */
.dsc-hero.has-rank { --edge: linear-gradient(rgb(var(--rank)) calc(100% - 5px), color-mix(in srgb, rgb(var(--rank)) 70%, #000) 0); --face: linear-gradient(rgba(var(--rank), .07), rgba(var(--rank), .07)), #fff; border: 0; background: none; }
.dsc-hero.has-rank::after { inset: 3px 3px 4px; }
/* Badge de rang : plaque pleine à coins coupés, texte blanc, rebord. */
.dsc-rank {
    padding: .14rem .5rem .2rem;
    border: 0;
    border-radius: 0;
    background: rgb(var(--rank));
    color: #fff;
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .02em;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .3);
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25);
    clip-path: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px);
    vertical-align: middle;
}
p.dsc-rank { display: inline-block; font-size: .9rem; }
.dsc-hero.is-done { --edge: rgb(var(--rank, var(--dsc-p))); box-shadow: none; }
.dsc-row.dsc-quest-e { --edge: rgba(var(--dsc-legendary), .7); --face: linear-gradient(160deg, rgba(var(--dsc-legendary), .14), rgba(var(--dsc-legendary), .02)), #fff; border: 0; background: none; }
.dsc-box.dsc-abyss { --edge: rgb(124, 77, 196); --face: linear-gradient(160deg, rgba(124, 77, 196, .14), rgba(124, 77, 196, .03)), #fff; border: 0; background: none; }
.dsc-ach.is-on { --edge: rgb(var(--dsc-s)); box-shadow: none; }
.dsc-board li.is-me { --edge: rgb(var(--dsc-p)); box-shadow: none; }
/* -- Classement : tableau de scores. Médailles pour le podium, ligne du joueur allumée, contour à la
   couleur du cadre d'avatar, étage dans une plaque. Fonds toujours opaques (une teinte transparente
   laissait voir le calque du contour : lignes entièrement violettes). -- */
.dsc-board li { gap: .65rem; padding: .5rem .7rem; margin-bottom: calc(.4rem + 4px); }
.dsc-board li.is-me { --edge: rgb(var(--dsc-p)); --face: linear-gradient(rgba(var(--dsc-p), .08), rgba(var(--dsc-p), .08)), #fff; }
.dsc-board li.frame-cadre-runique { --edge: rgb(61, 90, 128); --face: linear-gradient(rgba(61, 90, 128, .06), rgba(61, 90, 128, .06)), #fff; background: none; box-shadow: none; }
.dsc-board li.frame-cadre-abime { --edge: rgb(var(--dsc-epic)); --face: linear-gradient(rgba(var(--dsc-epic), .06), rgba(var(--dsc-epic), .06)), #fff; background: none; box-shadow: none; }
.dsc-board .dsc-frame-badge { display: none; }   /* le cadre se voit déjà (avatar et contour) */
.dsc-board__rank {
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #efece4;
    color: #5b5a52;
    font-family: inherit;
    font-size: .85rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    box-shadow: inset 0 -2px 0 #d9d4c8;
}
.dsc-board__rank.is-top1, .dsc-board__rank.is-top2, .dsc-board__rank.is-top3 { color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .3); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--medal-edge), 0 3px 0 var(--medal-edge); }
.dsc-board__rank.is-top1 { --medal-edge: #b5840e; background: linear-gradient(#ffe27a, #e8a915); }
.dsc-board__rank.is-top2 { --medal-edge: #7f8a96; background: linear-gradient(#eef2f6, #a9b4bf); color: #3f4852; text-shadow: none; }
.dsc-board__rank.is-top3 { --medal-edge: #8a4f22; background: linear-gradient(#f0b57e, #b86f35); }
.dsc-board__who { font-weight: 800; color: #262626; }
.dsc-board__who .fa-hand-pointer { margin-left: .3rem; font-size: .75rem; }
.dsc-board__floor {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .25rem .55rem .3rem;
    border-radius: .4rem;
    background: #efece4;
    color: #262626;
    font-size: .85rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    box-shadow: inset 0 -2px 0 #d9d4c8;
}
.dsc-board__floor i { color: rgb(var(--dsc-p)); font-size: .75rem; }
.dsc-board li.is-me .dsc-board__floor { background: rgb(var(--dsc-p)); color: #fff; box-shadow: inset 0 -2px 0 rgb(var(--dsc-p-dark)); }
.dsc-board li.is-me .dsc-board__floor i { color: #fff; }
/* Reliques : contour à la couleur de la rareté ; équipée = contour olive, fond teinté. */
.dsc-relic button { --cut: 10px; margin-bottom: 4px; --edge: rgb(var(--dsc-common)); }
.dsc-relic.rarity-rare button { --edge: rgb(var(--dsc-rare)); }
.dsc-relic.rarity-epic button { --edge: rgb(var(--dsc-epic)); }
.dsc-relic.rarity-legendary button { --edge: rgb(var(--dsc-legendary)); }
.dsc-relic.is-on button { --face: linear-gradient(rgba(var(--dsc-p), .12), rgba(var(--dsc-p), .12)), #fff; background: none; box-shadow: none; }
.dsc-relic button:hover { box-shadow: none; }
/* Pastille « Équiper » : pleine (jamais un contour seul) ; « Équipée » reste allumée en olive. */
.dsc-relic__state { border: 0; background: #efece4; color: rgb(var(--dsc-p)); box-shadow: inset 0 -2px 0 #d9d4c8; }
.dsc-relic.is-on .dsc-relic__state { background: rgb(var(--dsc-p)); color: #fff; box-shadow: inset 0 -2px 0 rgb(var(--dsc-p-dark)); }
.dsc-relic:not(.is-on) button:hover .dsc-relic__state { background: #e4e0d5; }

/* -- Héros : case hexagonale (contour olive, fond teinté) ; le personnage en sort par le haut -- */
.dsc-heroes { padding-top: 1.6rem; }
.dsc-hero + .dsc-hero { margin-top: 1.5rem; }   /* place pour le personnage qui dépasse */
.dsc-hero { gap: .85rem; padding: .7rem .75rem .7rem .7rem; }
.dsc-hero__portrait {
    position: relative;
    flex: 0 0 68px;
    width: 68px;
    height: 60px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    /* Case hexagonale : fond en SVG ; le cadre est un calque masqué (::before / ::after), teint au
       métal du palier de rang (--frame), avec un trait régulier. */
    --frame: linear-gradient(#55693a, #34441c);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 60'%3E%3Cdefs%3E%3CradialGradient id='g' cx='50%25' cy='32%25' r='72%25'%3E%3Cstop offset='0' stop-color='%23f7f4e4'/%3E%3Cstop offset='1' stop-color='%23c9d3ae'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpolygon points='17.5,2.5 50.5,2.5 65.5,30 50.5,57.5 17.5,57.5 2.5,30' fill='url(%23g)'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.dsc-hero__portrait::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: var(--frame);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 60'%3E%3Cpolygon points='17.5,2.5 50.5,2.5 65.5,30 50.5,57.5 17.5,57.5 2.5,30' fill='none' stroke='%23fff' stroke-width='3.8' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 60'%3E%3Cpolygon points='17.5,2.5 50.5,2.5 65.5,30 50.5,57.5 17.5,57.5 2.5,30' fill='none' stroke='%23fff' stroke-width='3.8' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
/* Métal du cadre selon le palier : acier, vert, bleu, violet, or. */
.dsc-hero__portrait[data-tier="0"] { --frame: linear-gradient(#c3ccd5, #6b7681 55%, #4b545d); }
.dsc-hero__portrait[data-tier="1"] { --frame: linear-gradient(#7fdc8f, #2a9445 55%, #1b6a31); }
.dsc-hero__portrait[data-tier="2"] { --frame: linear-gradient(#6cb8ff, #1f6fd6 55%, #154d9c); }
.dsc-hero__portrait[data-tier="3"] { --frame: linear-gradient(#d29bff, #7d34c4 55%, #57218f); }
.dsc-hero__portrait[data-tier="4"] { --frame: linear-gradient(#ffe69a, #e2a21c 55%, #a8650a); }
/* Insigne de rang : écusson à chevrons, posé en haut à droite de la case. */
.dsc-insignia { position: absolute; top: -.5rem; right: -.55rem; z-index: 3; width: 1.65rem; height: 1.95rem; pointer-events: auto; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.dsc-insignia svg { display: block; width: 100%; height: 100%; }
/* Cadre du personnage : la case prolongée vers le haut (×2) et sur les côtés (20 % de chaque côté).
   Découpe : libre au-dessus du milieu de la case, puis le tracé des arêtes basses de l'hexagone
   (points du SVG 68×60 ramenés au cadre : x = (13,6 + px) / 95,2 ; y = (60 + py) / 120). */
.dsc-hero__fig {
    position: absolute;
    top: -100%;
    bottom: 0;
    left: -20%;
    right: -20%;
    z-index: 1;
    pointer-events: none;
    clip-path: polygon(0 0, 100% 0, 100% 75%, 83.1% 75%, 67.3% 97.9%, 32.7% 97.9%, 16.9% 75%, 0 75%);
}
/* Le bas du contour repasse par-dessus le personnage : aucun raccord visible entre image et case. */
.dsc-hero__portrait::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: var(--frame);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 60'%3E%3Cpolyline points='2.5,30 17.5,57.5 50.5,57.5 65.5,30' fill='none' stroke='%23fff' stroke-width='3.8' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 60'%3E%3Cpolyline points='2.5,30 17.5,57.5 50.5,57.5 65.5,30' fill='none' stroke='%23fff' stroke-width='3.8' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
/* Personnage zoomé et descendu (pieds rognés), ajusté à la place : un héros large (Grenat, le golem)
   n'est plus coupé sur les côtés, il est simplement un peu moins haut. */
.dsc-hero__fig img {
    position: absolute;
    left: 7%;
    bottom: -19%;
    width: 86%;               /* un héros large (golem) ne déborde pas des côtés de la case */
    max-width: none;
    height: 102%;
    margin: 0;
    object-fit: contain;
    object-position: center bottom;
    transform: none;
    filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .25));
}
/* Portrait de fiche du Porteur (image rectangulaire) : remplit la case, découpé en hexagone. */
.dsc-hero__fig.is-porteur { top: 6%; bottom: 6%; left: 6%; right: 6%; clip-path: var(--dsc-hex); }
.dsc-hero__fig.is-porteur img { inset: 0; left: 0; bottom: auto; width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 0; transform: none; filter: none; }
.dsc-hero__portrait > span:not(.dsc-hero__fig):not(.dsc-lvl):not(.dsc-insignia) { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; font-family: 'Marcellus', serif; font-size: 1.4rem; color: rgb(var(--dsc-p-dark)); }
/* Niveau : écusson cuivré à pointe, posé sur le bas de la case. */
.dsc-lvl {
    position: absolute;
    left: 50%;
    bottom: -.85rem;
    z-index: 3;
    min-width: 2.3rem;
    padding: .18rem .35rem .42rem;
    border: 0;
    border-radius: 0;
    background: rgb(var(--dsc-s));
    color: #fff;
    font-size: .74rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 0 rgb(var(--dsc-s-dark));
    box-shadow: inset 0 -3px 0 rgb(var(--dsc-s-dark));
    clip-path: polygon(0 0, 100% 0, 100% 68%, 50% 100%, 0 68%);
    transform: translateX(-50%);
}
.dsc-lvl[hidden] { display: none; }
.dsc-hero__body { padding-left: .1rem; }
.dsc-hero__name { font-size: .95rem; font-weight: 800; }
.dsc-hero__ms { height: 7px; margin-top: .35rem; border-radius: 0; background: #ece8df; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .14); clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%); }
.dsc-hero__ms i { border-radius: 0; background: linear-gradient(rgba(255, 255, 255, .3) 0 45%, transparent 45%), rgb(var(--dsc-p)); }
.dsc-hero.is-away .dsc-hero__fig img { filter: grayscale(.8); opacity: .7; }

/* -- Boutons pleins : coins coupés, rebord intérieur (survit à la découpe), s'enfoncent au clic -- */
.dsc-play .btn-primary, .dsc-play .btn-abyss {
    --cut: 7px;
    border-radius: 0;
    font-weight: 800;
    text-transform: none;
    clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .25) !important;
    padding-bottom: calc(.375rem + 3px);
    transition: transform .05s ease, filter .12s ease;
}
.dsc-play .btn-sm.btn-primary { padding-bottom: calc(.25rem + 3px); }
.dsc-play .btn-primary:hover:not(:disabled) { filter: brightness(1.07); }
.dsc-play .btn-primary:active:not(:disabled), .dsc-play .btn-abyss:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .28), inset 0 2px 3px rgba(0, 0, 0, .25) !important; }
.dsc-play .btn-primary:disabled, .dsc-play .btn-abyss:disabled {
    border-color: #cfd0c6 !important;
    background-color: #cfd0c6 !important;
    color: #fff !important;
    opacity: 1;
}
.dsc-buy { min-width: 6rem; padding-top: .35rem; }
.dsc-buy span { font-size: .7rem; font-weight: 700; opacity: .9; }
.dsc-buy strong { display: inline-flex; align-items: center; gap: .3rem; font-size: .92rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.dsc-buy b { font-weight: 900; }
.dsc-buy__coin { color: rgb(var(--dsc-gold)); filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .35)); font-size: .8rem; }
.dsc-buy:disabled .dsc-buy__coin { color: #fff; filter: none; opacity: .8; }
.dsc-pay .dsc-buy { flex-direction: row; justify-content: center; gap: .35rem; }
.dsc-pay .dsc-buy span { font-size: .9rem; font-weight: 900; opacity: 1; }

/* -- Bouton de jeu clair (commandes de l'arène) : blanc, contour, rebord ; s'enfonce au clic -- */
.dsc-gbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    height: 2.35rem;
    margin: 0 0 3px;
    padding: 0 .8rem;
    border: 2px solid rgb(var(--dsc-line));
    border-radius: .45rem;
    background: #fff;
    color: rgb(var(--dsc-p));
    font-size: .85rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 3px 0 rgb(var(--dsc-lip));
    cursor: pointer;
    user-select: none;
    transition: transform .05s ease, box-shadow .05s ease, border-color .12s ease;
}
.dsc-gbtn--icon { width: 2.35rem; padding: 0; }
.dsc-gbtn:hover:not(:disabled) { border-color: rgba(var(--dsc-p), .55); }
.dsc-gbtn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 0 0 rgb(var(--dsc-lip)); }
.dsc-gbtn:focus-visible { outline: 3px solid rgba(var(--dsc-p), .45); outline-offset: 2px; }
.dsc-gbtn:disabled { color: #b3b1aa; background: #f4f2ed; box-shadow: 0 3px 0 #e2dfd7; cursor: default; }
.dsc-auto__input:checked + .dsc-auto { border-color: rgb(var(--dsc-p-dark)); background: rgb(var(--dsc-p)); color: #fff; box-shadow: 0 3px 0 rgb(var(--dsc-p-dark)); }
.dsc-auto__input:focus-visible + .dsc-auto { outline: 3px solid rgba(var(--dsc-p), .45); outline-offset: 2px; }

/* -- Barre de combat : bourse à gauche, étages en cases hexagonales à droite -- */
.dsc-arena__bar, .dsc-arena__foot { display: flex; align-items: center; gap: .6rem; padding: .5rem .75rem !important; background: #fff !important; }
.dsc-arena__bar { justify-content: space-between; border-bottom: 2px solid rgb(var(--dsc-line)) !important; }
.dsc-arena__foot { border-top: 2px solid rgb(var(--dsc-line)) !important; }
.dsc-wallet { min-width: 0; }
.dsc-wallet__gold { display: flex; align-items: center; gap: .45rem; }
.dsc-wallet__coin {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    border: 2px solid #c7962b;
    border-radius: 50%;
    background: rgb(var(--dsc-gold));
    color: #7a5512;
    font-size: .8rem;
    box-shadow: 0 2px 0 #b7861f;
}
.dsc-wallet__gold strong { font-size: 1.4rem; font-weight: 900; line-height: 1; color: #262626; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dsc-wallet__rates { display: flex; gap: .7rem; margin-top: .2rem; font-size: .78rem; color: rgba(38, 38, 38, .7); white-space: nowrap; }
.dsc-wallet__rates i { margin-right: .25rem; color: rgb(var(--dsc-p)); }
.dsc-wallet__rates strong { color: #262626; font-variant-numeric: tabular-nums; }

.dsc-floornav { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; min-width: 0; }
.dsc-floornav__biome { max-width: 100%; overflow: hidden; font-size: .75rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; color: rgba(38, 38, 38, .7); }
.dsc-floornav__row { display: flex; align-items: center; gap: .3rem; }
.dsc-floors { display: flex; align-items: center; gap: .3rem; margin: 0; padding: 0; list-style: none; }
.dsc-floor-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.35rem;
    margin: 0 0 3px;
    padding: 0 .3rem;
    border: 2px solid rgb(var(--dsc-line));
    border-radius: .5rem;
    background: #fff;
    color: #262626;
    font-size: .82rem;
    font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 3px 0 rgb(var(--dsc-lip));
    cursor: pointer;
    transition: transform .05s ease, box-shadow .05s ease;
}
.dsc-floor-tile i { font-size: .6rem; margin-bottom: .1rem; }
.dsc-floor-tile:hover:not(:disabled) { border-color: rgba(var(--dsc-p), .55); }
.dsc-floor-tile:active:not(:disabled) { transform: translateY(3px); box-shadow: none; }
.dsc-floor-tile:focus-visible { outline: 3px solid rgba(var(--dsc-p), .45); outline-offset: 2px; }
.dsc-floor-tile.is-guardian { border-color: rgba(var(--dsc-s), .7); color: rgb(var(--dsc-s-dark)); }
.dsc-floor-tile.is-lord { border-color: rgb(var(--dsc-s)); background: #f8e9dc; color: rgb(var(--dsc-s-dark)); }
.dsc-floor-tile.is-current { border-color: rgb(var(--dsc-p-dark)); background: rgb(var(--dsc-p)); color: #fff; box-shadow: 0 3px 0 rgb(var(--dsc-p-dark)); cursor: default; }
.dsc-floor-tile.is-locked { border-style: dashed; background: #f6f4ef; color: #b3b1aa; box-shadow: none; cursor: default; }
@media (max-width: 575.98px) {
    .dsc-hero { gap: .7rem; padding-right: .55rem; }
    .dsc-hero .dsc-buy { min-width: 5rem; padding-inline: .45rem; }
    .dsc-hero + .dsc-hero { margin-top: 2.1rem; }
    .dsc-hero__title { display: none; }
    .dsc-floor-tile.is-far { display: none; }
    .dsc-wallet__gold strong { font-size: 1.15rem; }
    .dsc-wallet__coin { width: 1.5rem; height: 1.5rem; font-size: .7rem; }
    .dsc-floornav__biome { display: none; }
}

/* Jauges : piste creuse, remplissage avec un reflet net en haut. */
.dsc-progress { height: 8px; border-radius: 4px; background: #ece8df; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12); }
.dsc-progress div { border-radius: 4px; background: linear-gradient(rgba(255, 255, 255, .3) 0 45%, transparent 45%), rgb(var(--dsc-p)); }

/* Pastilles de nombre : aplat cuivre, liseré blanc. */
.dsc-badge-n { padding: .1rem .4rem; border: 2px solid #fff; background: rgb(var(--dsc-s)); color: #fff; font-weight: 900; box-shadow: 0 1px 0 rgb(var(--dsc-s-dark)); }

/* Quantités d'achat. */
.dsc-step {
    margin-bottom: 3px;
    border: 2px solid rgb(var(--dsc-line)) !important;
    border-radius: .45rem;
    background: #fff;
    color: rgb(var(--dsc-p));
    font-weight: 800;
    box-shadow: 0 3px 0 rgb(var(--dsc-lip));
}
.dsc-step.is-active { border-color: rgb(var(--dsc-p-dark)) !important; background: rgb(var(--dsc-p)); color: #fff; box-shadow: 0 3px 0 rgb(var(--dsc-p-dark)); }
.dsc-step-input, .dsc-sort { border: 2px solid rgb(var(--dsc-line)) !important; border-radius: .45rem; }

/* -- Onglets : tuiles à coins coupés, icône + nom ; l'onglet ouvert est allumé -- */
.dsc-tabs { gap: .35rem; padding-bottom: .6rem; border-bottom: 2px solid rgb(var(--dsc-line)); }
@media (min-width: 992px) { .dsc-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); } .dsc-tabs .dsc-tab { min-width: 0; } }
.dsc-tab {
    --cut: 7px;
    flex-direction: column;
    justify-content: center;
    gap: .2rem;
    min-width: 4.1rem;
    padding: .4rem .3rem .5rem;
    border: 0;
    border-radius: 0;
    background: #efece4;
    color: #4a4a44;
    font-size: .68rem;
    font-weight: 800;
    clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
    box-shadow: inset 0 -3px 0 #d9d4c8;
}
.dsc-tab i { font-size: 1.1rem; }
.dsc-tab:hover { background: #e7e3d9; }
.dsc-tab.is-active { background: rgb(var(--dsc-p)); color: #fff; box-shadow: inset 0 -3px 0 rgb(var(--dsc-p-dark)); }
.dsc-tab:active { transform: translateY(2px); }
/* La pastille déborde de la tuile : elle est posée sur le bouton, hors de la découpe. */
.dsc-tab__dot { top: .25rem; right: .3rem; width: .65rem; height: .65rem; border: 2px solid #fff; background: #d9542b; }

/* -- Boutons clairs (Annuler, accélérer…) : blanc, contour, rebord -- */
.dsc-play .btn-light {
    margin-bottom: 3px;
    border: 2px solid rgb(var(--dsc-line)) !important;
    border-radius: .5rem;
    background-color: #fff !important;
    color: #3b3b36 !important;
    font-weight: 800;
    text-transform: none;
    box-shadow: 0 3px 0 rgb(var(--dsc-lip)) !important;
}
.dsc-play .btn-light:active:not(:disabled) { transform: translateY(3px); box-shadow: none !important; }

/* -- Bandeau du haut : plus court, compteurs en pastilles de jeu -- */
section.dsc-hero > .container { padding-top: 1.1rem !important; padding-bottom: 1.1rem !important; }
section.dsc-hero h1 { margin-bottom: .35rem !important; }
section.dsc-hero .badge.bg-light-gray-10 {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    border: 2px solid rgb(var(--dsc-line));
    border-radius: .5rem !important;
    background: #fff !important;
    color: #262626 !important;
    font-size: .82rem;
    font-weight: 700;
    box-shadow: 0 3px 0 rgb(var(--dsc-lip));
}
section.dsc-hero .badge.bg-light-gray-10 strong { font-weight: 900; }
@media (max-width: 575.98px) {
    section.dsc-hero p.text-dark-75 { display: none; }
    section.dsc-hero h1 { font-size: 1.7rem; }
}

/* -- Plein écran -- */
@media (min-width: 992px) {
    /* Arène et panneau à la hauteur de l'écran ; seule la liste du panneau défile. */
    .dsc-play:fullscreen .dsc-arena, .dsc-play.is-fullscreen .dsc-arena { display: flex; flex-direction: column; height: calc(100vh - 1.5rem); }
    .dsc-play:fullscreen .dsc-stage, .dsc-play.is-fullscreen .dsc-stage { flex: 1 1 auto; height: auto; min-height: 0; }
    .dsc-play:fullscreen .dsc-panel, .dsc-play.is-fullscreen .dsc-panel { display: flex; flex-direction: column; height: calc(100vh - 1.5rem) !important; }
    .dsc-play:fullscreen .dsc-panes, .dsc-play.is-fullscreen .dsc-panes { flex: 1 1 auto; min-height: 0; max-height: none; }
}
@media (max-width: 991.98px) {
    /* Mobile : onglets compacts (une ligne qui défile), pour laisser la hauteur au combat. */
    .dsc-tab { min-width: 3.7rem; padding: .3rem .25rem .45rem; font-size: .62rem; }
    .dsc-tab i { font-size: 1rem; }
    /* Panneau replié en plein écran : aucun onglet n'a l'air ouvert. */
    .dsc-play:fullscreen:not(.is-sheet) .dsc-tab.is-active,
    .dsc-play.is-fullscreen:not(.is-sheet) .dsc-tab.is-active { background: #efece4; color: #4a4a44; box-shadow: inset 0 -3px 0 #d9d4c8; }
    .dsc-play:fullscreen:not(.is-sheet) .dsc-tab.is-active i,
    .dsc-play.is-fullscreen:not(.is-sheet) .dsc-tab.is-active i { color: inherit; }
    .dsc-play:fullscreen .dsc-arena__bar, .dsc-play.is-fullscreen .dsc-arena__bar,
    .dsc-play:fullscreen .dsc-arena__foot, .dsc-play.is-fullscreen .dsc-arena__foot { padding-top: .35rem !important; padding-bottom: .35rem !important; }
}
@media (prefers-reduced-motion: reduce) { .dsc-gbtn, .dsc-floor-tile, .dsc-play .btn-primary { transition: none; } }
