/* La Lune — ton de la page (gris lunaire, vert du feu d'âme, rouge du Bastion), panneau
   « en ce moment », pastilles propres à la Lune, escouade d'Ériana-3 et mur aux portes. */

.lune {
  --moon: #cfd8e8;
  --soulfire: #a8e06c;
  --soulfire-hi: #cbf39e;
  --scarlet: #e2574a;
  --steel: #8fb4d8;
  --page-accent: var(--soulfire);
  --page-accent-hi: var(--soulfire-hi);
}
.lune ::selection { background: rgba(168, 224, 108, .3); }

/* ---------- Héros ---------- */
.lune .hero-title span:last-child { margin-top: .18em; font-size: .36em; font-weight: 500; letter-spacing: .3em; color: var(--soulfire-hi); }
.lune .hero-status { border-left-color: var(--soulfire); transition: border-color .3s; }
.lune a.hero-status:hover { border-left-color: #fff; }

/* ---------- En ce moment sur la Lune (brique commune : css/components/now.css) ---------- */
@media (min-width: 1021px) { .lune .now-grid { grid-template-columns: 1.25fr 1.25fr 1fr; } }

/* ---------- Pastilles de la Lune ---------- */
.spot[data-secret="rabbits"].found svg { animation: hop .4s ease-out 2; }
@keyframes hop { 50% { transform: translateY(-4px); } }
.spot[data-secret="nightmares"] { color: #ffb3aa; border-color: rgba(226, 87, 74, .55); }
.spot[data-secret="ghosts"] { color: #bfe3ff; }
.spot--knight { width: 40px; height: 40px; color: var(--soulfire-hi); border-color: rgba(168, 224, 108, .6); animation: knight-guard 2.4s ease-in-out infinite; }
.spot--knight svg { width: 22px; height: 22px; }
@keyframes knight-guard { 50% { box-shadow: 0 0 0 6px rgba(168, 224, 108, .12); } }
.spot--step { color: var(--soulfire-hi); border-color: rgba(168, 224, 108, .7); border-radius: 4px; animation: step-in .45s var(--ease) backwards; }
.spot--step:nth-of-type(2n) { animation-delay: .08s; }
.spot--step.found { background: var(--soulfire); border-color: var(--soulfire); }
@keyframes step-in { from { opacity: 0; transform: translate(-50%, -30%); } }
.spot--chest { color: var(--gold-hi); border-color: var(--gold); border-radius: 4px; }
.trove-timer { position: absolute; left: 0; right: 0; top: 0; z-index: 3; height: 3px; background: var(--soulfire); transform-origin: 0 50%; animation: trove-timer 9s linear forwards; }
.trove-timer[hidden] { display: none; }
@keyframes trove-timer { to { transform: scaleX(0); } }

/* terrier des lapins de jade, révélé quand les neuf sont nourris */
.burrow { display: flex; align-items: center; gap: 14px; margin: 18px 0 0; padding: 10px; border: 1px solid rgba(168, 224, 108, .4); background: rgba(168, 224, 108, .06); }
.burrow[hidden] { display: none; }
.burrow img { flex: none; width: 120px; aspect-ratio: 16 / 10; object-fit: cover; }
.burrow figcaption { font-size: .84rem; line-height: 1.5; color: var(--ink); }

/* ---------- L'escouade d'Ériana-3 ---------- */
.gouffre-lead { max-width: 860px; margin: 0 0 30px; font-family: var(--font-lore); font-style: italic; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.4; color: #e9e3d6; }
.gouffre-lead cite { display: block; margin-top: 10px; font-family: var(--font-ui); font-style: normal; font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.fireteam { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 clamp(40px, 5vw, 64px); padding: 0; list-style: none; }
.fireteam li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 18px; background: var(--panel-solid); border: 1px solid var(--line); border-left: 3px solid var(--soulfire); }
.fireteam li.survivor { border-left-color: var(--gold-hi); }
.fireteam img { width: 52px; height: 52px; border: 1px solid rgba(255, 255, 255, .3); }
.fireteam h3 { margin: 2px 0 4px; font-size: 1rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--pearl); }
.fireteam p { margin: 0; font-size: .86rem; line-height: 1.55; color: var(--muted); }
.fireteam .memento { margin-top: 6px; font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }

/* ---------- Mur aux portes de la Fosse de l'hérésie ---------- */
.doors-box { margin-top: 22px; }
.doors-box .panel-title { margin-bottom: 10px; border-color: var(--line-strong); color: var(--ink); }
.doors { display: grid; grid-template-columns: repeat(6, 34px); gap: 8px; }
.door { position: relative; width: 34px; height: 46px; padding: 0; cursor: pointer; border: 1px solid var(--line-strong); border-radius: 17px 17px 2px 2px; background: linear-gradient(180deg, #0c1410, #050806); transition: border-color .25s, box-shadow .4s, background .4s; }
.door:hover, .door:focus-visible { border-color: #fff; }
.door .chain { position: absolute; left: 50%; top: -3px; bottom: 9px; width: 0; border-left: 3px dotted rgba(214, 180, 106, .75); transform: translateX(-50%); }
.door .chain::after { content: ''; position: absolute; left: -7px; bottom: -6px; width: 9px; height: 9px; border: 2px solid rgba(214, 180, 106, .75); border-radius: 2px; }
.door.shake { animation: door-shake .4s; }
@keyframes door-shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.door.open { cursor: default; border-color: var(--soulfire); background: radial-gradient(ellipse at 50% 70%, rgba(168, 224, 108, .75), rgba(168, 224, 108, .08) 75%); box-shadow: 0 0 22px rgba(168, 224, 108, .55); }
.doors-status { min-height: 2.9em; margin: 12px 0 0; font-size: .86rem; line-height: 1.45; color: var(--muted); }
.doors-status.ok { color: var(--soulfire-hi); }
.doors-status.bad { color: #ffb08a; }

/* ---------- Coupe du sous-sol (brique commune : css/components/depths.css) ---------- */
.depths-sec { background: linear-gradient(180deg, transparent, rgba(168, 224, 108, .04) 40%, transparent); }
.stratum--surface { background: radial-gradient(ellipse 30% 60% at 78% 0%, rgba(120, 150, 210, .18), transparent 70%), linear-gradient(180deg, #070b17 0%, #131c33 79%, #3a414f 80%, #272c38 100%); }
.stratum--k1 { background: linear-gradient(180deg, #272c38, #19202d); }
.stratum--seuil { background: linear-gradient(180deg, #19202d, #111c1a); }
.stratum--nexus { background: linear-gradient(180deg, #111c1a, #0c1912); }
.stratum--sanctuaires { background: linear-gradient(180deg, #0c1912, #0a130d); }
.stratum--abimes { background: linear-gradient(180deg, #0a130d, #130b0b); }
.stratum--pyramide { background: radial-gradient(ellipse 40% 90% at 86% 100%, rgba(255, 255, 255, .09), transparent 70%), linear-gradient(180deg, #130b0b, #030305); }
.keep-tower { fill: #3a1512; stroke: var(--scarlet); stroke-width: 1; }
.way-line { stroke: rgba(168, 224, 108, .34); }
.way-line--k1 { stroke: rgba(143, 180, 216, .4); stroke-dasharray: 4 4; }
.way-line--dungeon, .way-line--keep { stroke: rgba(226, 87, 74, .5); }
.way-line--pyramid { stroke: rgba(255, 255, 255, .32); stroke-dasharray: 2 5; }
.way-line--shaft { stroke: rgba(168, 224, 108, .13); stroke-width: 16; }
.room-node--zone { color: var(--moon); }
.room-node--k1 { color: var(--steel); }
.room-node--k1 i { transform: none; }
.room-node--dungeon, .room-node--keep { color: var(--scarlet); }
.room-node--raid { color: var(--exotic); }
.room-node--pyramid { color: #fff; }

/* ---------- Cauchemars ---------- */
.lune .voice-img img { object-position: 50% 30%; }

@media (max-width: 1020px) {
  .fireteam { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .fireteam { grid-template-columns: minmax(0, 1fr); }
  .spot--knight { width: 34px; height: 34px; }
}
