/* ======================= EXPÉDITION =======================
   La carte des six mondes à gauche, la préparation à droite. On choisit le
   monde sur la carte, on règle le départ et les sceaux, on descend.

   1. Scène et carte       3. Point de départ
   2. Préparation          4. Sceaux · 5. Élixirs prêts
   ===================================================================== */

/* ---------- 1. Scène et carte ----------
   Le décor est celui du monde choisi, très assombri : la carte posée
   dessus se lit comme un parchemin étalé sur une table. */
#world-map-screen {
    background:
        radial-gradient(ellipse 60% 70% at 38% 55%, rgba(201, 171, 69, 0.1), transparent 70%),
        linear-gradient(180deg, rgba(11, 11, 8, 0.78), rgba(11, 11, 8, 0.94)),
        url('../assets/backdrops/bg_world_1.webp') center / cover no-repeat,
        var(--ink);
}

#world-map-screen[data-world="2"] {
    background:
        radial-gradient(ellipse 60% 70% at 38% 55%, rgba(255, 122, 60, 0.12), transparent 70%),
        linear-gradient(180deg, rgba(10, 7, 7, 0.78), rgba(7, 6, 8, 0.94)),
        url('../assets/backdrops/bg_world_2.webp') center / cover no-repeat,
        var(--ink);
}

#world-map-screen[data-world="3"] {
    background:
        radial-gradient(ellipse 60% 70% at 38% 55%, rgba(79, 208, 224, 0.12), transparent 70%),
        linear-gradient(180deg, rgba(13, 13, 10, 0.78), rgba(10, 10, 7, 0.94)),
        url('../assets/backdrops/bg_world_3.webp') center / cover no-repeat,
        var(--ink);
}

#world-map-screen[data-world="4"] {
    background:
        radial-gradient(ellipse 60% 70% at 38% 55%, rgba(143, 211, 199, 0.1), transparent 70%),
        linear-gradient(180deg, rgba(14, 12, 9, 0.8), rgba(9, 8, 6, 0.94)),
        url('../assets/backdrops/bg_world_4.webp') center / cover no-repeat,
        var(--ink);
}

#world-map-screen[data-world="5"] {
    background:
        radial-gradient(ellipse 60% 70% at 38% 55%, rgba(159, 216, 255, 0.1), transparent 70%),
        linear-gradient(180deg, rgba(10, 14, 18, 0.8), rgba(6, 9, 12, 0.94)),
        url('../assets/backdrops/bg_world_5.webp') center / cover no-repeat,
        var(--ink);
}

.expedition-layout {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
    gap: 26px;
    width: 100%;
    max-width: 1640px;
    margin: 0 auto;
}

.atlas-frame {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/*
 * La carte garde EXACTEMENT les proportions de son illustration : les jalons
 * sont placés en pourcentage du dessin, et le moindre recadrage les ferait
 * glisser hors de leur région. Elle prend la plus grande taille qui tient
 * dans la colonne, en largeur comme en hauteur.
 */
.world-atlas {
    position: relative;
    width: min(100%, calc((100dvh - var(--bar-h) - 90px) * 1.25));
    aspect-ratio: 2000 / 1600;
    background: url('../assets/ui/worldmap.webp') center / 100% 100% no-repeat;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.7));
}

.atlas-hint {
    margin: 0;
    font-family: var(--font-lore);
    font-style: italic;
    font-size: 1rem;
    color: var(--text-dim);
}

.world-spot {
    position: absolute;
    /* Le médaillon, pas le bloc entier, se centre sur la région : le nom vient
       dessous et ne doit pas décaler la visée. */
    transform: translate(-50%, calc(-50% - 20px));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    transition: transform var(--speed);
}

.world-spot:hover, .world-spot:focus-visible { transform: translate(-50%, calc(-50% - 24px)) scale(1.06); }
.world-spot:focus-visible { outline: none; }

/* Le médaillon : la vignette du monde, cerclée d'or. C'est lui qu'on vise.
   La carte du Monde des Douze est dense : les médaillons restent petits pour
   ne pas recouvrir les régions voisines. */
.spot-medal {
    position: relative;
    z-index: 1;
    width: clamp(46px, 4.6vw, 70px);
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    box-shadow:
        0 0 0 3px #15120c,
        0 0 0 5px rgba(201, 171, 69, 0.6),
        0 8px 18px rgba(0, 0, 0, 0.8);
    transition: box-shadow var(--speed);
}

.spot-art { display: block; width: 100%; height: 100%; object-fit: cover; }

.spot-art.vide {
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 35%, var(--stone-700), var(--ink));
    font-size: 1.6rem;
    color: var(--stone-400);
}

.world-spot.locked .spot-medal { box-shadow: 0 0 0 3px #15120c, 0 0 0 5px rgba(120, 130, 155, 0.4), 0 8px 18px rgba(0, 0, 0, 0.8); }
.world-spot.locked .spot-art { filter: grayscale(1) brightness(0.55); }
.world-spot.done .spot-medal { box-shadow: 0 0 0 3px #15120c, 0 0 0 5px rgba(82, 209, 138, 0.7), 0 8px 18px rgba(0, 0, 0, 0.8); }
.world-spot:hover .spot-medal { box-shadow: 0 0 0 3px #15120c, 0 0 0 6px var(--gold-lit), 0 10px 24px rgba(0, 0, 0, 0.85); }

/* Le monde choisi : un anneau turquoise plus large, qu'on ne peut pas manquer. */
.world-spot.current .spot-medal {
    box-shadow: 0 0 0 3px #15120c, 0 0 0 6px var(--rune), 0 0 30px rgba(194, 232, 0, 0.6), 0 10px 24px rgba(0, 0, 0, 0.85);
}

/* Le cadenas se pose SUR le médaillon, et garde ses couleurs. */
.spot-seal {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58%;
    height: 58%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.9));
}

/* Le halo dit d'un coup d'œil ce qui est ouvert, sans rien lire. */
.spot-halo {
    position: absolute;
    left: 50%;
    top: calc(clamp(56px, 6.2vw, 92px) / 2);
    width: calc(clamp(56px, 6.2vw, 92px) * 1.5);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 171, 69, 0.42), transparent 68%);
    pointer-events: none;
    transition: opacity var(--speed);
}

.world-spot.locked .spot-halo { background: radial-gradient(circle, rgba(120, 130, 155, 0.28), transparent 68%); }
.world-spot.done .spot-halo { background: radial-gradient(circle, rgba(82, 209, 138, 0.45), transparent 68%); }
.world-spot.current .spot-halo { background: radial-gradient(circle, rgba(194, 232, 0, 0.55), transparent 68%); }

/* Le monde choisi respire : c'est le seul jalon animé. */
.world-spot.current .spot-halo {
    animation: spotBeat 2.4s ease-in-out infinite;
    will-change: opacity, transform;
}

@keyframes spotBeat {
    0%, 100% { opacity: 0.72; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.14); }
}

@media (prefers-reduced-motion: reduce) { .world-spot.current .spot-halo { animation: none; } }

/* Le nom, sur une pastille sombre : elle s'étire sans se déformer, et se lit
   aussi bien sur le parchemin clair que sur le basalte du volcan. */
.spot-name {
    padding: 4px 12px 5px;
    border-radius: 999px;
    background: rgba(12, 12, 9, 0.86);
    box-shadow: 0 0 0 1px rgba(201, 171, 69, 0.45), 0 3px 10px rgba(0, 0, 0, 0.6);
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold-lit);
    white-space: nowrap;
}

/* Monde annoncé, pas encore livré : une étiquette sous son nom. */
.spot-maj {
    margin-top: 4px;
    padding: 2px 9px 3px;
    border-radius: 999px;
    background: rgba(12, 12, 9, 0.86);
    box-shadow: 0 0 0 1px rgba(194, 232, 0, 0.45);
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--lime);
    white-space: nowrap;
}
.world-spot.locked .spot-name { color: var(--text-dim); box-shadow: 0 0 0 1px rgba(120, 130, 155, 0.35), 0 3px 10px rgba(0, 0, 0, 0.6); }
.world-spot.done .spot-name { color: var(--verdant); box-shadow: 0 0 0 1px rgba(82, 209, 138, 0.5), 0 3px 10px rgba(0, 0, 0, 0.6); }
.world-spot.current .spot-name { color: #d8fffa; box-shadow: 0 0 0 1px var(--rune), 0 0 14px rgba(194, 232, 0, 0.4); }
/*
 * Un monde à venir n'a pas encore de vignette : on laisse voir la région
 * peinte, et seul un petit cadenas s'y pose. Un gros médaillon noir la
 * cachait tout entière.
 */
.world-spot.a-venir { opacity: 0.9; }
.world-spot.a-venir .spot-medal {
    width: clamp(34px, 3vw, 44px);
    background: rgba(12, 12, 9, 0.55);
    box-shadow: 0 0 0 2px rgba(20, 17, 12, 0.8), 0 0 0 3px rgba(150, 140, 120, 0.35), 0 6px 14px rgba(0, 0, 0, 0.6);
}
.world-spot.a-venir .spot-art.vide { display: none; }
.world-spot.a-venir .spot-seal { width: 78%; height: 78%; }
.world-spot.a-venir .spot-halo { display: none; }
.world-spot.a-venir .spot-name { font-size: 0.62rem; color: #cbc3b2; background: rgba(12, 12, 9, 0.7); }

/*
 * Tenue promise par un monde, dans la fiche au survol : buste cadré sur le
 * visage. L'illustration vit dans SON propre porte-image — le repli emoji
 * remplace le contenu du parent — et c'est le porte-image qui borne la taille.
 */
.world-reward-art {
    display: inline-block;
    width: 1.9rem;
    height: 1.9rem;
    margin-right: 6px;
    border: 1px solid var(--stone-700);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    overflow: hidden;
    vertical-align: -0.7em;
}

.reward-art-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; }

/* ---------- 2. Préparation ---------- */
.prep-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background: var(--pane);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--lift);
}

.prep-world { flex-shrink: 0; }

/* L'illustration du monde en bannière, son nom posé dessus. */
.prep-banner {
    position: relative;
    margin: 0;
    height: 150px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    /* Le dégradé du monde, sous l'illustration : il tient seul la place tant
       que la bannière d'un monde n'est pas livrée. */
    background: linear-gradient(160deg, var(--art-a, #22221f), var(--art-b, #0b0b08));
}

.prep-banner-art { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }

.prep-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 11, 8, 0.05) 20%, rgba(11, 11, 8, 0.92));
}

.prep-banner figcaption {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 14px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.prep-kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rune); }
.prep-name { font-size: 1.35rem; letter-spacing: 0.06em; color: #fff; text-shadow: 0 2px 10px #000; }
.prep-floors { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.1em; color: var(--gold-lit); }

.prep-desc {
    margin: 12px 20px 0;
    font-family: var(--font-lore);
    font-style: italic;
    font-size: 1.06rem;
    line-height: 1.35;
    color: var(--text-soft);
}

.prep-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 12px 20px 0;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--well);
}

.prep-facts div { padding: 8px 10px; }
.prep-facts div + div { border-left: 1px solid var(--line-soft); }
.prep-facts dt { font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.prep-facts dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; color: var(--text); }

/* Le Gardien qui ferme la route, et la tenue qu'on rapporte de sa défaite. */
.prep-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 20px 0; }

.prep-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 7px 10px 7px 7px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--well);
}

.prep-card-art {
    flex-shrink: 0;
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: radial-gradient(circle at 50% 40%, #2a2014, #0a0907);
    box-shadow: 0 0 0 1px var(--line-strong);
}

.prep-card-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.prep-card.reward .prep-card-img { object-position: 50% 4%; transform: scale(1.35); transform-origin: 50% 10%; }
.prep-card.guardian .prep-card-art { box-shadow: 0 0 0 1px rgba(214, 64, 78, 0.6); }
.prep-card.reward.won .prep-card-art { box-shadow: 0 0 0 1px var(--verdant); }
.prep-card-text { display: flex; flex-direction: column; min-width: 0; }
.prep-card-text small { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.prep-card-text b { font-size: 0.86rem; line-height: 1.2; color: var(--text); }
.prep-card.reward.won .prep-card-text small { color: var(--verdant); }

.prep-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 4px 20px 12px;
}

.prep-section { margin-top: 16px; }

/* Une section sans contenu ne laisse pas son titre orphelin. */
.prep-section:has(> .start-floor-wrap.hidden),
.prep-section:has(> .pending-elixirs:empty) { display: none; }

.prep-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 8px;
    font-size: 0.64rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
}

.prep-label::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }

.prep-panel > .btn-cta {
    flex-shrink: 0;
    margin: 12px 20px 20px;
    min-height: 58px;
    font-size: 1.05rem;
}

/* ---------- 3. Point de départ ---------- */
.start-floor-wrap label { display: block; margin-bottom: 10px; }
.start-floor-wrap b { font-family: var(--font-display); font-size: 1rem; color: var(--gold-lit); }
.start-floor-wrap.danger-risky #start-floor-label { color: var(--gold); }
.start-floor-wrap.danger-deadly #start-floor-label { color: var(--blood-lit); }

/* La piste se colore selon le danger : vert tenu, or risqué, rouge hors de portée. */
#start-floor.danger-track {
    background: linear-gradient(90deg,
        color-mix(in srgb, var(--verdant) 75%, #000) 0 var(--safe-end, 100%),
        color-mix(in srgb, var(--gold) 85%, #000) var(--safe-end, 100%) var(--risky-end, 100%),
        color-mix(in srgb, var(--blood-lit) 75%, #000) var(--risky-end, 100%) 100%);
}

.start-floor-scale { position: relative; height: 16px; margin-top: 6px; }

.scale-mark {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    font-size: 0.7rem;
    line-height: 1;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.scale-mark.recommended { color: var(--verdant); font-weight: 700; }

.start-floor-advice { margin: 6px 0 0; font-size: 0.82rem; line-height: 1.45; color: var(--text-soft); }
.start-floor-wrap.danger-risky .start-floor-advice { color: #e8c77a; }
.start-floor-wrap.danger-deadly .start-floor-advice { color: #ff9aa6; }

.advice-link {
    padding: 0;
    border: none;
    background: none;
    color: var(--verdant);
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

/* ---------- 4. Sceaux ----------
   La barre dit ce qui est apposé avant de partir ; le panneau les choisit. */
.seal-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    background: var(--well);
    border: 1px dashed var(--stone-500);
    border-radius: var(--radius);
    color: var(--text-dim);
    font: inherit;
    font-size: 0.84rem;
    text-align: left;
    cursor: pointer;
    transition: border-color var(--speed);
}

.seal-bar:hover { border-color: var(--line-strong); }
.seal-bar:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* Des sceaux apposés : la barre prend le rouge braise de la contrainte. */
.seal-bar.armed { border-style: solid; border-color: rgba(255, 122, 60, 0.6); background: rgba(255, 122, 60, 0.07); color: var(--text-soft); }
.seal-bar-label { font-family: var(--font-display); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.seal-bar.armed .seal-bar-label { color: #ffa472; }
.seal-bar-emblem { display: inline-flex; width: 28px; height: 28px; flex: 0 0 auto; filter: grayscale(0.7) brightness(0.8); }
.seal-bar.armed .seal-bar-emblem { filter: none; }
.seal-title-emblem { display: inline-flex; width: 30px; height: 30px; margin-right: 8px; vertical-align: -8px; }
.seal-bar-icons { display: flex; gap: 2px; }
.seal-bar-ico { display: inline-flex; width: 20px; height: 20px; }
.seal-art { width: 100%; height: 100%; object-fit: contain; }
.seal-bar-text { flex: 1; min-width: 0; }
.seal-bar-text b { color: #fff; }
.seal-bar-cta { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }

.seal-overlay {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(8, 8, 5, 0.78);
    backdrop-filter: blur(6px);
}

.seal-sheet {
    width: min(780px, 100%);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px 24px 20px;
    background: var(--pane-solid);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--lift);
}

.seal-head h2 { margin: 0 0 6px; font-size: 1.1rem; letter-spacing: 0.1em; color: var(--gold-lit); text-transform: uppercase; }
.seal-blurb { margin: 0; font-size: 0.86rem; color: var(--text-soft); line-height: 1.5; max-width: 62ch; }

.seal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 8px; }

.seal-card {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 12px;
    background: var(--well);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    color: var(--text-soft);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color var(--speed), transform var(--speed);
}

.seal-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.seal-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.seal-card.on { border-color: #ff7a3c; background: linear-gradient(90deg, rgba(255, 122, 60, 0.14), var(--well)); }
.seal-card-ico { flex: 0 0 auto; display: inline-flex; width: 42px; height: 42px; filter: grayscale(0.6) brightness(0.8); transition: filter var(--speed); }
.seal-card.on .seal-card-ico { filter: none; }
.seal-card-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.seal-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.seal-card-head b { color: var(--text); font-size: 0.92rem; }
.seal-card-desc { font-size: 0.8rem; line-height: 1.4; }
.seal-pips { display: inline-flex; gap: 3px; }
.seal-pips i { width: 8px; height: 8px; transform: rotate(45deg); background: #ff7a3c; box-shadow: 0 0 4px rgba(255, 122, 60, 0.6); }
.seal-card:not(.on) .seal-pips i { background: var(--stone-500); box-shadow: none; }

.seal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.seal-total { display: flex; flex-direction: column; gap: 2px; font-size: 0.84rem; color: var(--text-soft); }
.seal-total b { font-family: var(--font-display); font-size: 1.2rem; color: #ffa472; }
.seal-total small { color: var(--text-dim); font-size: 0.74rem; }
.seal-actions { display: flex; gap: 8px; align-items: center; }

@media (prefers-reduced-motion: reduce) {
    .seal-card { transition: none; }
    .seal-card:hover { transform: none; }
}

/* ---------- 5. Élixirs prêts ---------- */
.pending-elixirs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.pending-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-dim); }

.pending-chip {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1rem;
    background: rgba(82, 209, 138, 0.14);
    border: 1px solid rgba(82, 209, 138, 0.55);
    box-shadow: 0 0 10px rgba(82, 209, 138, 0.25);
}
/* L'illustration de l'élixir tient dans sa pastille. */
.pending-art { width: 22px; height: 22px; object-fit: contain; }

/* ---------- 6. Récompenses du monde ----------
   Tout ce qui peut tomber dans le monde choisi : panoplies pièce par pièce,
   sorts, œufs, échos, ressources. Chaque vignette a sa fiche au survol. */
.prep-butin { display: block; width: calc(100% - 40px); margin: 10px 20px 0; font-size: 0.78rem; }

.butin-box { width: min(760px, 100%); text-align: left; position: relative; }
.butin-box h1, .butin-box .modal-subtitle { text-align: center; }
.bm-fermer {
    position: absolute; top: 12px; right: 14px;
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--well); color: var(--text-soft);
    cursor: pointer;
}
.bm-fermer:hover { color: var(--text); border-color: var(--line-strong); }
.bm-section h3 { margin: 20px 0 8px; }
.bm-note { margin: 0 0 10px; font-size: 0.78rem; color: var(--text-dim); }
.bm-ligne { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-size: 0.82rem; color: var(--text-soft); }
.bm-ligne .bm-art { width: 26px; height: 26px; }

.bm-art { display: inline-grid; place-items: center; width: 100%; height: 100%; }
.bm-img { width: 100%; height: 100%; object-fit: contain; }

.bm-grille { display: flex; flex-wrap: wrap; gap: 6px; }
.bm-tuile {
    display: grid; place-items: center;
    width: 46px; height: 46px; padding: 4px;
    border-radius: 6px; border: 1px solid var(--line);
    background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.55));
    cursor: help;
}
.bm-tuile.piece { border-color: color-mix(in srgb, var(--set) 60%, var(--line)); background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--set) 30%, transparent), rgba(0, 0, 0, 0.5) 80%); }
.bm-tuile.piece.acquise { box-shadow: 0 0 0 2px var(--lime); }
.bm-tuile.oeuf .bm-img, .bm-tuile.echo .bm-img { object-position: 50% 20%; }

.bm-pan {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 8px 10px; margin-bottom: 6px;
    border: 1px solid var(--line-soft); border-left: 3px solid var(--set);
    border-radius: var(--radius); background: var(--well);
}
.bm-pan-tete { display: flex; align-items: center; gap: 10px; flex: 1 1 220px; min-width: 0; cursor: help; }
.bm-pan-tete > .bm-art { flex: 0 0 38px; width: 38px; height: 38px; }
.bm-pan-tete b { display: block; font-size: 0.86rem; color: var(--text); }
.bm-pan-tete small { font-size: 0.72rem; color: var(--text-dim); }
.bm-pieces { display: flex; gap: 6px; flex-wrap: wrap; }

.bm-ressources { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.bm-ressource { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--radius); background: var(--well); }
.bm-ressource > .bm-art { flex: 0 0 32px; width: 32px; height: 32px; }
.bm-ressource b { display: block; font-size: 0.8rem; color: var(--text); }
.bm-ressource small { font-size: 0.7rem; color: var(--text-dim); line-height: 1.3; }

/* ---------- Écrans étroits ----------
   La carte passe au-dessus de la préparation, et l'écran défile. */
@media (max-width: 1100px) {
    #world-map-screen { overflow-y: auto; }
    .expedition-layout { grid-template-columns: 1fr; flex: none; }
    .world-atlas { width: 100%; }
    .prep-panel { overflow: visible; }
    .prep-body { overflow: visible; }
    /* Le départ reste à portée de pouce pendant qu'on fait défiler la préparation. */
    .prep-panel > .btn-cta { position: sticky; bottom: 12px; z-index: 5; }
}

@media (max-width: 900px) {
    .butin-box { padding: 22px 16px; }
    .bm-tuile { width: 40px; height: 40px; }
    .bm-ressources { grid-template-columns: 1fr; }
    .spot-name { font-size: 0.58rem; padding: 3px 9px 4px; }
    .atlas-hint { display: none; }
}

/* Les affrontements directs d'un monde validé : une tuile par élite ou gardien. */
.prep-arenes { display: grid; gap: 6px; margin: 14px 20px 0; }
.prep-arenes-mot { margin: 0; font-size: 0.74rem; color: var(--text-dim); }
.arene-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 6px; }
.arene-tuile { display: grid; justify-items: center; gap: 2px; padding: 5px 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--well); color: var(--text-soft); font: inherit; cursor: pointer; min-width: 0; }
.arene-tuile:hover, .arene-tuile:focus-visible { border-color: var(--gold); color: var(--text); }
.arene-tuile.tier-boss { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.arene-tuile.tier-worldboss { border-color: color-mix(in srgb, var(--blood-lit) 55%, var(--line)); }
.arene-art { display: grid; place-items: center; width: 44px; height: 44px; }
.arene-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.arene-nom { font-size: 0.64rem; line-height: 1.15; text-align: center; overflow-wrap: anywhere; }

