/* =====================================================================
   ASCENSION — le Dofusarium, et sa cérémonie.
   Une vraie carte de Dofus (tools/dofus-ascension.py), posée à ses
   proportions au centre de l'écran, comme la Maison : six Dofus sur leurs
   piédestaux, la stèle au centre, Goultard qui s'y promène. Le lime reste
   la couleur de l'action et de l'Éveil.
   ===================================================================== */

/* Le ciel : bleu pâle en haut, brume claire en bas, comme autour de l'île. */
#ascend-screen { background: linear-gradient(180deg, #b9d3e6 0%, #d6e5ee 45%, #eef1ee 100%); }
.dofusarium { position: relative; flex: 1; min-height: 0; overflow: hidden; }

/* Les nuages : chacun fait de quelques bulles blanches fondues, qui
   traversent le ciel en une à deux minutes. Rien que du transform. */
.dofusarium-ciel { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.dofusarium-ciel i {
    position: absolute;
    left: -30%;
    width: 30%;
    aspect-ratio: 3 / 1;
    background:
        radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0)) 10% 70% / 45% 70% no-repeat,
        radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0)) 40% 35% / 50% 90% no-repeat,
        radial-gradient(closest-side, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0)) 72% 60% / 45% 75% no-repeat,
        radial-gradient(closest-side, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0)) 92% 75% / 30% 50% no-repeat;
    opacity: 0.85;
    animation: nuage linear infinite;
    will-change: transform;
}
.dofusarium-ciel i:nth-child(1) { top: 4%; animation-duration: 95s; animation-delay: -10s; }
.dofusarium-ciel i:nth-child(2) { top: 18%; width: 22%; animation-duration: 120s; animation-delay: -70s; opacity: 0.7; }
.dofusarium-ciel i:nth-child(3) { top: 62%; width: 36%; animation-duration: 140s; animation-delay: -40s; }
.dofusarium-ciel i:nth-child(4) { top: 78%; width: 26%; animation-duration: 105s; animation-delay: -95s; opacity: 0.75; }
.dofusarium-ciel i:nth-child(5) { top: 36%; width: 18%; animation-duration: 85s; animation-delay: -30s; opacity: 0.6; }
.dofusarium-ciel i:nth-child(6) { top: 88%; width: 40%; animation-duration: 160s; animation-delay: -120s; }
@keyframes nuage { from { transform: translateX(0); } to { transform: translateX(480%); } }
.dofusarium-map {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(100%, calc((100dvh - var(--bar-h)) * 1.4545));
    aspect-ratio: 1280 / 880;
    transform: translate(-50%, -50%);
    background: center / 100% 100% no-repeat;
    container-type: inline-size;
    /* Le bord du rendu est un brouillard blanc : on le fond dans le ciel. */
    -webkit-mask-image: radial-gradient(ellipse 58% 60% at 50% 50%, #000 72%, transparent 100%);
    mask-image: radial-gradient(ellipse 58% 60% at 50% 50%, #000 72%, transparent 100%);
}
.dofusarium-objets, .dofusarium-sol { position: absolute; inset: 0; }
/* Les deux calques se trient ensemble par la profondeur : Goultard passe
   devant ou derrière un piédestal selon sa hauteur sur la carte. */
.dofusarium-objets { pointer-events: none; }
.dofusarium-sol { cursor: pointer; }
.dofusarium-objets, .dofusarium-sol { z-index: auto; }

/* ---------- Les Dofus sur leurs piédestaux ---------- */
.socle-dofus, .stele {
    position: absolute;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    pointer-events: auto;
}
.socle-dofus:focus-visible, .stele:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.oeuf-pierre { display: block; width: 100%; height: 100%; transition: opacity 0.4s; }
.socle-dofus:hover .oeuf-pierre { filter: brightness(1.12); }

/* Éveillé : l'œuf de pierre s'efface, le vrai Dofus flotte et luit à sa place. */
/* Tous à la même taille — un œuf de la hauteur d'un œuf de pierre ordinaire
   (57 px de carte ; l'image est carrée, l'œuf n'en occupe que le milieu) —,
   centrés au pied de leur œuf : le hibou du Pourpre est plus
   large, son Dofus ne doit pas l'être. */
.oeuf-eveille {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 4.6cqi;
    height: 4.6cqi;
    margin-left: -2.3cqi;
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}
/* Exactement le cadre de l'œuf de pierre, posé sur le piédestal : l'image du
   Dofus est carrée, on la contient et on l'appuie en bas. */
.oeuf-eveille-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: 50% 100%;
    filter: drop-shadow(0 0 0.8cqi rgba(194, 232, 0, 0.55));
}
.socle-dofus.eveille .oeuf-pierre { opacity: 0; }
.socle-dofus.eveille .oeuf-eveille { opacity: 1; }
.socle-dofus.eveille .oeuf-eveille-img { animation: dofusFlotte 3.4s ease-in-out infinite; }
.socle-dofus.maxed .oeuf-eveille-img { filter: drop-shadow(0 0 1.1cqi rgba(255, 220, 120, 0.85)); }
/* Au plus haut : un halo doré qui respire derrière le Dofus, et une couronne
   de rayons qui tourne lentement — le sable est clair, il faut que ça se voie. */
.oeuf-eveille::before, .oeuf-eveille::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}
.oeuf-eveille::before {
    left: -45%;
    right: -45%;
    top: -40%;
    bottom: -25%;
    background: radial-gradient(circle, rgba(255, 250, 210, 1) 0%, rgba(255, 196, 40, 0.75) 30%, rgba(255, 170, 20, 0.25) 52%, rgba(255, 170, 20, 0) 70%);
}
.oeuf-eveille::after {
    left: -80%;
    right: -80%;
    top: -75%;
    bottom: -55%;
    background: repeating-conic-gradient(rgba(255, 214, 60, 0.75) 0deg 7deg, rgba(255, 214, 60, 0) 7deg 30deg);
    -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 62%);
    mask-image: radial-gradient(circle, #000 18%, transparent 62%);
}
.socle-dofus.maxed .oeuf-eveille::before { animation: dofusHalo 2.6s ease-in-out infinite; }
.socle-dofus.maxed .oeuf-eveille::after { opacity: 0.9; animation: dofusRayons 14s linear infinite; }
@keyframes dofusHalo { 0%, 100% { opacity: 0.7; transform: scale(0.92); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes dofusRayons { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes dofusFlotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-0.3cqi); } }

/* L'éveil : un éclat de lumière, et le Dofus qui jaillit. */
.socle-dofus.eveil .oeuf-eveille-img { animation: dofusEveil 1.1s var(--ease-out); }
@keyframes dofusEveil {
    0% { opacity: 0; transform: translateY(1cqi) scale(0.4); }
    60% { opacity: 1; transform: translateY(-1cqi) scale(1.25); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Plaque au survol : le nom et le niveau ; un Dofus qu'on peut éveiller le dit. */
.socle-dofus .bld-plaque, .stele .bld-plaque { top: auto; bottom: calc(100% + 0.4cqi); opacity: 0; transition: opacity 0.2s; }
.socle-dofus:hover .bld-plaque, .socle-dofus:focus-visible .bld-plaque,
.stele:hover .bld-plaque, .stele:focus-visible .bld-plaque { opacity: 1; }
.socle-dofus .bld-plaque small, .stele .bld-plaque small { font-size: 0.68rem; color: var(--text-dim); }
.socle-dofus.pret::after {
    content: '';
    position: absolute;
    left: 30%;
    right: 30%;
    top: -18%;
    height: 14%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--lime) 0%, transparent 70%);
    animation: dofusAppel 1.6s ease-in-out infinite;
}
@keyframes dofusAppel { 0%, 100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-0.4cqi); } }

/* ---------- La stèle ---------- */
.stele img { display: block; width: 100%; height: 100%; filter: drop-shadow(0 0.6cqi 0.6cqi rgba(0, 0, 0, 0.35)); }
.stele-lueur {
    position: absolute;
    left: -60%;
    right: -60%;
    top: 5%;
    bottom: 10%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(194, 232, 0, 0.5) 0%, rgba(194, 232, 0, 0.12) 45%, transparent 70%);
    opacity: 0;
    pointer-events: none;
}
#ascend-screen.ready .stele-lueur { animation: steleAppel 2.4s ease-in-out infinite; }
#ascend-screen.ready .stele .bld-plaque { opacity: 1; border-color: var(--lime); }
#ascend-screen.ready .stele .bld-plaque small { color: var(--lime); }
@keyframes steleAppel { 0%, 100% { opacity: 0.25; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.06); } }

/* ---------- L'enseigne, et les fiches ---------- */
.dofusarium-sign {
    position: absolute;
    top: 14px;
    left: 18px;
    z-index: 20;
    display: grid;
    gap: 4px;
    padding: 12px 16px 14px;
    min-width: 260px;
}
.dofusarium-sign .page-kicker { margin: 0; }
.ascend-title { margin: 0; font-family: var(--font-title); font-weight: 400; font-size: 1.7rem; color: var(--text); line-height: 1.1; }
.ascend-title span { color: var(--lime); }
.dofusarium-jauges { display: flex; align-items: center; gap: 14px; }
.dofusarium-jauges .shard-gauge { flex: 1; }
.dofus-points { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.dofus-points b { font-family: var(--font-title); font-weight: 400; font-size: 1.5rem; color: var(--lime); line-height: 1; }
.dofus-points span { font-size: 0.66rem; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.08em; }

.dofusarium-fiche {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 30;
    display: grid;
    gap: 12px;
    width: min(360px, calc(100% - 36px));
    padding: 18px 18px 16px;
    animation: popIn 0.18s var(--ease-out);
}
.dofusarium-fiche h3 { margin: 0; font-family: var(--font-title); font-weight: 400; font-size: 1.35rem; color: var(--text); }
.dofusarium-fiche .page-kicker { margin: 0; }
.ascend-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.ascend-figures > div {
    display: grid;
    gap: 2px;
    justify-items: center;
    padding: 8px 6px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--well);
}
.ascend-figures b { font-family: var(--font-display); font-size: 0.95rem; color: var(--lime-lit); font-variant-numeric: tabular-nums; }
.ascend-figures span { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); }
.ascend-hint { margin: 0; font-size: 0.86rem; color: var(--text-soft); }
#ascend-screen.ready .ascend-hint { color: var(--lime); }
#btn-ascend { width: 100%; }
#btn-ascend:disabled { filter: grayscale(0.9) brightness(0.5); }
.ascend-blurb { margin: 0; font-size: 0.74rem; line-height: 1.5; color: var(--text-dim); }

.dofus-card { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; }
.dofus-egg { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: radial-gradient(circle, rgba(194, 232, 0, 0.12), transparent 70%); }
.dofus-img { width: 62px; height: 62px; object-fit: contain; filter: grayscale(0.85) brightness(0.6); }
.dofus-card.awake .dofus-img { filter: drop-shadow(0 0 10px rgba(194, 232, 0, 0.45)); }
.dofus-card.maxed .dofus-img { filter: drop-shadow(0 0 14px rgba(255, 220, 120, 0.7)); }
.dofus-body { display: grid; gap: 3px; min-width: 0; }
.dofus-body .page-kicker { margin: 0; }
.dofus-body b { font-size: 1.05rem; color: var(--text); }
.dofus-pips { display: flex; gap: 4px; }
.dofus-pips i { width: 14px; height: 6px; border-radius: 3px; background: #0c0c0a; border: 1px solid var(--stone-500); }
.dofus-pips i.on { background: var(--lime); border-color: var(--lime-lit); }
.dofus-now { font-size: 0.84rem; color: var(--lime-lit); }
.dofus-card:not(.awake) .dofus-now { color: var(--text-dim); }
.dofus-body small, .dofus-reste { font-size: 0.72rem; color: var(--text-dim); }

@media (max-width: 900px) {
    .dofusarium-sign { left: 10px; top: 10px; min-width: 0; padding: 10px 12px; }
    .ascend-title { font-size: 1.3rem; }
    .dofusarium-fiche { right: 10px; bottom: 10px; width: calc(100% - 20px); }
}
@media (prefers-reduced-motion: reduce) {
    .socle-dofus.eveille .oeuf-eveille-img, .socle-dofus.eveil .oeuf-eveille-img, .socle-dofus.pret::after,
    .socle-dofus.maxed .oeuf-eveille::before, .socle-dofus.maxed .oeuf-eveille::after, .dofusarium-ciel i,
    #ascend-screen.ready .stele-lueur { animation: none; }
}

/* Les Éclats du profil mènent ici, et s'allument quand c'est possible. */
.res-link { border: none; background: none; font: inherit; color: inherit; cursor: pointer; }
.res-link:hover .res-value { color: var(--arcane-lit); }
.res-item.ready .res-value { color: var(--arcane-lit); text-shadow: 0 0 14px rgba(166, 139, 255, 0.6); }

/*
 * Une Ascension possible se voyait à la seule couleur du nombre — trop discret
 * pour le moment le plus important du jeu. L'Éclat scintille désormais : un
 * halo qui respire derrière lui, et l'illustration qui enfle à peine.
 *
 * Halo et échelle uniquement : ce sont les deux animations que la carte
 * graphique joue sans repeindre l'écran (voir CLAUDE.md).
 */
.res-item.ready .res-icon.shard { position: relative; }

.res-item.ready .res-icon.shard::after {
    content: '';
    position: absolute;
    inset: -60%;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle,
        rgba(166, 139, 255, 0.55) 0%,
        rgba(166, 139, 255, 0.18) 42%,
        transparent 70%);
    animation: shardCall 2.2s ease-in-out infinite;
    will-change: opacity, transform;
    z-index: -1;
}

.res-item.ready .res-icon.shard .ui-art {
    animation: shardBreath 2.2s ease-in-out infinite;
    will-change: transform;
}

@keyframes shardCall {
    0%, 100% { opacity: 0.25; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1.12); }
}

@keyframes shardBreath {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.14); }
}

/* Animations coupées : l'Éclat reste simplement allumé. */
@media (prefers-reduced-motion: reduce) {
    .res-item.ready .res-icon.shard::after { animation: none; opacity: 0.7; }
    .res-item.ready .res-icon.shard .ui-art { animation: none; }
}

/* ---------- La cérémonie ----------
   Elle se joue sur l'île : les Dofus éveillés chantent, leurs rayons filent
   vers la stèle, une colonne de lumière monte, Goultard s'élève et se dissout.
   Rien que de l'opacité et des transformations (voir CLAUDE.md). */
.dofusarium.rite .dofusarium-sign, .dofusarium.rite .dofusarium-fiche { opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.socle-dofus.chante .oeuf-eveille-img { filter: drop-shadow(0 0 1.6cqi rgba(194, 232, 0, 0.95)) brightness(1.3); }
.socle-dofus.chante .oeuf-eveille-img { animation: dofusChant 0.6s var(--ease-out) both; }
@keyframes dofusChant { from { transform: scale(1); } 50% { transform: scale(1.18) translateY(-0.6cqi); } to { transform: scale(1.08) translateY(-0.3cqi); } }

.dofusarium-rayons { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1500; pointer-events: none; overflow: visible; }
.dofusarium-rayons .rayon { stroke: #e9ff8a; stroke-width: 3; stroke-linecap: round; opacity: 0; filter: drop-shadow(0 0 6px #c2e800); transition: opacity 0.35s; }
.dofusarium-rayons .rayon.on { opacity: 0.9; }

.dofusarium-colonne {
    position: absolute;
    z-index: 1400;
    left: calc(var(--colonne-x, 51%) - 3cqi);
    width: 6cqi;
    top: -10%;
    height: calc(var(--colonne-y, 44%) + 10%);
    /* Un faisceau : plein au cœur, fondu sur les bords et vers le ciel. */
    background: linear-gradient(90deg, rgba(194, 232, 0, 0), rgba(240, 255, 190, 0.95) 40%, rgba(255, 255, 235, 1) 50%, rgba(240, 255, 190, 0.95) 60%, rgba(194, 232, 0, 0));
    -webkit-mask-image: linear-gradient(0deg, #000 0%, #000 55%, transparent 100%);
    mask-image: linear-gradient(0deg, #000 0%, #000 55%, transparent 100%);
    transform-origin: 50% 100%;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
}
.dofusarium.colonne .dofusarium-colonne { animation: colonneMonte 0.9s var(--ease-out) forwards; }
@keyframes colonneMonte { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }

/* Goultard s'élève dans la colonne et se défait en Éclats. */
.maison-hero.envol .maison-hero-sprite { animation: goultardEnvol 1.5s ease-in forwards; }
@keyframes goultardEnvol {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-9cqi); opacity: 0; }
}

.ascend-rite {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    pointer-events: none;
}
.rite-sparks, .rite-mult, .rite-word { grid-area: 1 / 1; }
.rite-sparks { width: 100%; height: 100%; pointer-events: none; }
/* L'éclair : un voile blanc qui monte, puis la nuit douce du mot d'accueil. */
.ascend-rite::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 240, 1), rgba(240, 255, 200, 0.9) 60%);
    opacity: 0;
}
.ascend-rite.eclair::before { animation: riteEclair 1.4s ease-out forwards; }
@keyframes riteEclair { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0.86; } }
.ascend-rite.eclair, .ascend-rite.instant { pointer-events: auto; }
.ascend-rite.instant::before { opacity: 0.86; }

.rite-mult {
    position: relative;
    align-self: start;
    margin-top: 12vh;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 9vw, 4.6rem);
    font-weight: 700;
    color: #5d7000;
    text-shadow: 0 0 34px rgba(194, 232, 0, 0.75);
    font-variant-numeric: tabular-nums;
    opacity: 0;
}
.ascend-rite.eclair .rite-mult { opacity: 1; transition: opacity 0.3s 0.3s; }
.ascend-rite.instant .rite-sparks, .ascend-rite.instant .rite-mult { display: none; }

.rite-word {
    position: relative;
    align-self: center;
    display: grid;
    gap: 14px;
    justify-items: center;
    max-width: 52ch;
    padding: 26px 28px;
    background: rgba(12, 12, 9, 0.92);
    border: 1px solid var(--lime);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 46px rgba(194, 232, 0, 0.3), var(--lift);
    text-align: center;
    animation: riteWord 0.5s ease both;
}
@keyframes riteWord {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
.rite-word h2 { margin: 0; font-family: var(--font-display); font-size: 1.6rem; color: var(--lime-lit); letter-spacing: 0.06em; }
.rite-word p { margin: 0; font-size: 0.94rem; line-height: 1.6; color: var(--text-soft); }

@media (prefers-reduced-motion: reduce) {
    .rite-word, .dofusarium.colonne .dofusarium-colonne, .maison-hero.envol .maison-hero-sprite { animation: none; }
    .socle-dofus.maxed .oeuf-eveille::before { opacity: 0.9; }
}

/* ---------- Options : confort et sauvegarde ---------- */
.option-row.stacked { flex-direction: column; align-items: stretch; gap: 8px; }
.comfort-group { display: flex; flex-wrap: wrap; gap: 6px; }

.comfort-pick {
    padding: 5px 13px;
    border: 1px solid var(--stone-600);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-soft);
    font-size: 0.8rem;
    cursor: pointer;
}

.comfort-pick:hover { border-color: var(--gold-deep); color: var(--text); }
.comfort-pick.on { border-color: var(--gold); background: rgba(201, 171, 69, 0.14); color: var(--gold-lit); font-weight: 700; }

.save-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }

.save-text {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--stone-600);
    border-radius: var(--radius);
    background: #090906;
    color: var(--text-soft);
    font-family: ui-monospace, Menlo, monospace;
    font-size: 0.72rem;
    resize: vertical;
    user-select: text;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.keys-hint { margin: 2px 0 10px; font-size: 0.8rem; color: var(--text-dim); }
.keys-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; margin-bottom: 10px; }

.keys-group h4 {
    margin: 2px 0 6px;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-dim);
}

.key-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    padding: 5px 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--stone-700);
    border-radius: var(--radius);
}

.key-name { flex: 1; min-width: 0; font-size: 0.84rem; color: var(--text-soft); }

/* Une touche ressemble à une touche : relief en bas, police d'affichage. */
.key-btn {
    min-width: 62px;
    padding: 3px 10px;
    font-family: var(--font-display);
    font-size: 0.74rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(180deg, var(--stone-600), var(--stone-800));
    border: 1px solid var(--stone-500);
    border-bottom-width: 3px;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color var(--speed), color var(--speed);
}

.key-btn:hover { border-color: var(--gold); }
.key-btn.unbound { color: var(--text-dim); font-weight: 400; }
.key-btn.listening { min-width: 150px; color: var(--gold-lit); border-color: var(--gold); animation: blink 1s infinite; }

.hud-icon {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    transition: color var(--speed), border-color var(--speed);
}

.hud-icon:hover { color: #fff; border-color: var(--gold); }

.options-stats div {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--stone-600);
    border-radius: var(--radius);
    padding: 11px;
    display: flex;
    flex-direction: column;
}

.options-stats b { font-family: var(--font-display); font-size: 1.15rem; color: var(--arcane-lit); }
.options-stats span { font-size: 0.66rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.12em; }

/* Surbrillance : la stèle et les six socles se cernent, leurs plaques se montrent. */
body.surbrillance .stele img { filter: drop-shadow(0 0 0.1cqi #fff) drop-shadow(0 0 0.5cqi var(--lime)) drop-shadow(0 0.6cqi 0.6cqi rgba(0, 0, 0, 0.35)); }
body.surbrillance :is(.socle-dofus, .stele) { outline: 2px dashed color-mix(in srgb, var(--lime) 75%, transparent); outline-offset: 2px; border-radius: 10px; }
body.surbrillance :is(.socle-dofus, .stele) .bld-plaque { opacity: 1; transition: none; }
