/* "E Parler" (PNJ amicaux) */
#npcInteraction{
    position: fixed;
    z-index: 999;
    pointer-events: none;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    display: none;
    align-items: center;
    gap: 10px;

    padding: 10px 14px;
    border-radius: 14px;

    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.14), rgba(255,255,255,0.00) 55%),
        rgba(0,0,0,0.60);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow:
        0 14px 32px rgba(0,0,0,0.60),
        inset 0 0 0 1px rgba(255,255,255,0.06);
    backdrop-filter: blur(10px) saturate(1.12);

    user-select: none;
    color: white;
}

#npcInteraction.visible{ display: flex; }
#npcInteraction.hidden{ display: none; }

#npcInteraction #npcKey{
    width: 34px;
    height: 34px;
    padding: 10px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-family: 'Audiowide', sans-serif;
    font-weight: 800;
    letter-spacing: 0.5px;
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.20), rgba(255,255,255,0.00) 55%),
        rgba(120,255,200,0.10);
    border: 1px solid rgba(255,255,255,0.20);
    box-shadow:
        0 10px 22px rgba(0,0,0,0.55),
        0 0 18px rgba(120,255,200,0.18);
}

#npcInteraction #npcLabel{
    font-family: 'Audiowide', sans-serif;
    font-size: 1.05em;
    opacity: 0.92;
    text-shadow: 0 2px 14px rgba(0,0,0,0.75);
}

/* "E Ouvrir" (Antre de boss) */
#bossLairInteraction{
    position: fixed;
    z-index: 999;
    pointer-events: none;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    display: none;
    align-items: center;
    gap: 10px;

    padding: 10px 14px;
    border-radius: 14px;

    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.14), rgba(255,255,255,0.00) 55%),
        rgba(0,0,0,0.60);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow:
        0 14px 32px rgba(0,0,0,0.60),
        inset 0 0 0 1px rgba(255,255,255,0.06);
    backdrop-filter: blur(10px) saturate(1.12);

    user-select: none;
    color: white;
}

#bossLairInteraction.visible{ display: flex; }
#bossLairInteraction.hidden{ display: none; }

#bossLairInteraction #bossLairKey{
    width: 34px;
    height: 34px;
    padding: 10px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-family: 'Audiowide', sans-serif;
    font-weight: 800;
    letter-spacing: 0.5px;
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.20), rgba(255,255,255,0.00) 55%),
        rgba(255, 204, 0, 0.10);
    border: 1px solid rgba(255,255,255,0.20);
    box-shadow:
        0 10px 22px rgba(0,0,0,0.55),
        0 0 18px rgba(255, 204, 0, 0.18);
}

#bossLairInteraction #bossLairLabel{
    font-family: 'Audiowide', sans-serif;
    font-size: 1.05em;
    opacity: 0.92;
    text-shadow: 0 2px 14px rgba(0,0,0,0.75);
}

#bossLairInteraction .boss-lair-interaction__have{
    font-family: 'Audiowide', sans-serif;
    font-size: 0.76em;
    opacity: 0.72;
    letter-spacing: 0.15px;
    text-shadow: 0 2px 14px rgba(0,0,0,0.75);
}

#bossLairInteraction .boss-lair-interaction__have:empty{ display: none; }

#bossLairInteraction .boss-lair-interaction__text{
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#bossLairInteraction .boss-lair-interaction__req{
    font-family: 'Audiowide', sans-serif;
    font-size: 0.82em;
    opacity: 0.78;
    letter-spacing: 0.2px;
    text-shadow: 0 2px 14px rgba(0,0,0,0.75);
}

#bossLairInteraction .boss-lair-interaction__req:empty{ display: none; }

/* Couleur du texte "clé requise" selon l'antre */
#bossLairInteraction[data-kind="red"] .boss-lair-interaction__req{ color: rgba(255, 110, 90, 0.95); }
#bossLairInteraction[data-kind="blue"] .boss-lair-interaction__req{ color: rgba(120, 190, 255, 0.95); }
#bossLairInteraction[data-kind="green"] .boss-lair-interaction__req{ color: rgba(120, 255, 190, 0.95); }
#bossLairInteraction[data-kind="yellow"] .boss-lair-interaction__req{ color: rgba(255, 232, 120, 0.95); }

/* =========================
   Dialogue PNJ (bulle BD)
   ========================= */
#npcDialogue{
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    transform: translate(-50%, -100%);
    display: none;
    pointer-events: auto;
    user-select: none;
}

#npcDialogue.visible{ display: block; }
#npcDialogue.hidden{ display: none; }

#npcDialogue .npc-dialogue-bubble{
    position: relative;
    max-width: 420px;
    min-width: 260px;

    padding: 14px 16px;
    border-radius: 18px;

    background:
        radial-gradient(circle at 25% 20%, rgba(255,255,255,0.14), rgba(255,255,255,0.00) 60%),
        rgba(8, 10, 14, 0.78);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow:
        0 18px 42px rgba(0,0,0,0.62),
        inset 0 0 0 1px rgba(255,255,255,0.06);
    backdrop-filter: blur(10px) saturate(1.1);
}

#npcDialogue .npc-dialogue-bubble::after{
    content: "";
    position: absolute;
    left: 38px;
    bottom: -10px;
    width: 20px;
    height: 20px;
    transform: rotate(45deg);

    background: rgba(8, 10, 14, 0.78);
    border-right: 1px solid rgba(255,255,255,0.14);
    border-bottom: 1px solid rgba(255,255,255,0.14);
    box-shadow: 10px 10px 22px rgba(0,0,0,0.25);
}

#npcDialogue .npc-dialogue-top{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

#npcDialogue .npc-dialogue-name{
    font-family: 'Audiowide', sans-serif;
    font-size: 1.98em;
    letter-spacing: 0.4px;
    opacity: 0.92;
    text-shadow: 0 2px 14px rgba(0,0,0,0.75);
    color: white;
}

#npcDialogue .npc-dialogue-hint{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 6px 10px;
    border-radius: 12px;

    font-family: 'Audiowide', sans-serif;
    font-size: 0.9em;
    letter-spacing: 0.4px;

    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.18), rgba(255,255,255,0.00) 60%),
        rgba(120,255,200,0.10);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow:
        0 10px 22px rgba(0,0,0,0.45),
        0 0 18px rgba(120,255,200,0.14);
    color: rgba(235,255,248,0.95);
}

#npcDialogue .npc-dialogue-text{
    font-family: 'Roboto', sans-serif;
    font-size: 1.02em;
    line-height: 1.35em;
    color: rgba(255,255,255,0.92);
    text-shadow: 0 2px 12px rgba(0,0,0,0.6);
    white-space: pre-wrap;
}

#npcDialogue .npc-dialogue-choices{
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

#npcDialogue .npc-choice{
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px 12px;
    border-radius: 14px;

    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    cursor: pointer;

    transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

#npcDialogue .npc-choice:hover{
    transform: translateY(-1px);
    background: rgba(255,255,255,0.08);
    border-color: rgba(120,255,200,0.22);
}

#npcDialogue .npc-choice.selected{
    background: rgba(120,255,200,0.10);
    border-color: rgba(120,255,200,0.35);
    box-shadow: 0 0 22px rgba(120,255,200,0.10);
}

#npcDialogue .npc-choice .idx{
    width: 28px;
    height: 28px;
    border-radius: 10px;
    display: grid;
    place-items: center;

    font-family: 'Audiowide', sans-serif;
    font-size: 0.92em;

    background: rgba(0,0,0,0.30);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.92);
}

#npcDialogue .npc-choice .label{
    font-family: 'Roboto', sans-serif;
    font-size: 1.0em;
    color: rgba(255,255,255,0.90);
}

/* =========================
   Badges dans les choix de dialogue (ex: Quête)
   ========================= */
#npcDialogue .npc-choice .label{
    display: flex;
    align-items: center;
    gap: 10px;
}

#npcDialogue .npc-choice-badge{
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 4px 10px;
    border-radius: 999px;

    font-family: 'Audiowide', sans-serif;
    font-size: 0.72em;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;

    color: rgba(255,255,255,0.92);

    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.18), rgba(255,255,255,0.00) 55%),
        rgba(0,0,0,0.28);

    border: 1px solid rgba(255,255,255,0.18);
    box-shadow:
        0 10px 22px rgba(0,0,0,0.55),
        inset 0 0 0 1px rgba(255,255,255,0.06);

    flex: 0 0 auto;
}

#npcDialogue .npc-choice-badge--quest{
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.22), rgba(255,255,255,0.00) 55%),
        linear-gradient(135deg, rgba(180,140,255,0.26), rgba(120,255,200,0.10));

    border-color: rgba(180,140,255,0.38);
    box-shadow:
        0 10px 22px rgba(0,0,0,0.55),
        0 0 18px rgba(180,140,255,0.18);
}

#npcDialogue .npc-choice-badge--repeatable{
    font-size: 0.66em;

    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.22), rgba(255,255,255,0.00) 55%),
        linear-gradient(135deg, rgba(255,210,90,0.28), rgba(255,255,255,0.06));

    border-color: rgba(255,210,90,0.40);

    box-shadow:
        0 10px 22px rgba(0,0,0,0.55),
        0 0 18px rgba(255,210,90,0.14);
}

#npcDialogue .npc-choice-badge--repeatable{
    font-size: 0.66em;

    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.22), rgba(255,255,255,0.00) 55%),
        linear-gradient(135deg, rgba(255,210,90,0.28), rgba(255,255,255,0.06));

    border-color: rgba(255,210,90,0.40);

    box-shadow:
        0 10px 22px rgba(0,0,0,0.55),
        0 0 18px rgba(255,210,90,0.14);
}