/* Sprint 26 — Modal de conversa com NPCs */
.npc-chat-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(4, 10, 20, 0.6);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 12px;
}
.npc-chat-modal.hidden { display: none; }

.npc-chat-box {
    width: 100%;
    max-width: 460px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    background: #0d1626;
    border: 2px solid #2bff8c;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.npc-chat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #060e1a;
    border-bottom: 1px solid #1c2b45;
    color: #ffe9a8;
    font-size: 14px;
}

.npc-chat-close {
    background: none;
    border: none;
    color: #8fa3c8;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 2px 8px;
}
.npc-chat-close:hover { color: #fff; }

.npc-chat-msgs {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 180px;
}

.npc-msg { display: flex; }
.npc-msg-npc { justify-content: flex-start; }
.npc-msg-user { justify-content: flex-end; }

.npc-msg-bubble {
    max-width: 82%;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.45;
    word-break: break-word;
}
.npc-msg-npc .npc-msg-bubble {
    background: #16233c;
    color: #e8f0ff;
    border-bottom-left-radius: 3px;
}
.npc-msg-user .npc-msg-bubble {
    background: #1d5c38;
    color: #eafff2;
    border-bottom-right-radius: 3px;
}
.npc-typing .npc-msg-bubble { opacity: 0.6; }

.npc-chat-form {
    display: flex;
    gap: 8px;
    padding: 10px;
    background: #060e1a;
    border-top: 1px solid #1c2b45;
}
.npc-chat-form input {
    flex: 1;
    background: #0d1626;
    border: 1px solid #2a3c5e;
    border-radius: 8px;
    color: #fff;
    padding: 9px 12px;
    font-size: 13px;
    outline: none;
}
.npc-chat-form input:focus { border-color: #2bff8c; }
.npc-chat-form button {
    background: #2bff8c;
    color: #06281a;
    border: none;
    border-radius: 8px;
    padding: 9px 16px;
    font-weight: bold;
    cursor: pointer;
    font-size: 13px;
}
.npc-chat-form button:disabled { opacity: 0.5; cursor: default; }

/* Sprint 27 — Botão da bênção do circo */
.npc-bless-btn {
    display: block;
    width: calc(100% - 20px);
    margin: 0 10px 10px 10px;
    padding: 10px;
    background: linear-gradient(135deg, #c62828, #8e0000);
    color: #ffe9a8;
    border: 2px solid #ffd54f;
    border-radius: 10px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}
.npc-bless-btn.hidden { display: none; }
.npc-bless-btn:hover:not(:disabled) { filter: brightness(1.15); }
.npc-bless-btn:disabled { opacity: 0.6; cursor: default; }
