/* Menções @ (história, tempo e missões). Lista flutuante + links dentro do texto. */

#mencoes-menu {
    position: fixed;
    z-index: 2147483000;
    width: 320px;
    max-width: calc(100vw - 16px);
    max-height: 292px;
    overflow-y: auto;
    padding: 4px;
    background: linear-gradient(180deg, #1b1510, #0d0a07);
    border: 1px solid #6b531a;
    border-radius: 6px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 202, 40, .08);
    font-family: Georgia, 'Times New Roman', serif;
}
#mencoes-menu[hidden] { display: none; }
#mencoes-menu::-webkit-scrollbar { width: 5px; }
#mencoes-menu::-webkit-scrollbar-thumb { background: #6b531a; border-radius: 3px; }

#mencoes-menu .mencoes-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
}
#mencoes-menu .mencoes-item.ativo,
#mencoes-menu .mencoes-item:hover { background: rgba(255, 202, 40, .14); }

#mencoes-menu .mencoes-foto {
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #241a10 center / cover no-repeat;
    border: 1px solid #6b531a;
    color: #c9a24b;
    font: 700 14px/1 Georgia, serif;
}
#mencoes-menu .mencoes-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
#mencoes-menu .mencoes-info b {
    color: #f3e3c3;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#mencoes-menu .mencoes-info i { color: #9a8a70; font-size: 11px; }
#mencoes-menu .mencoes-tipo {
    flex: none;
    font: 700 9px/1 sans-serif;
    font-style: normal;
    letter-spacing: .08em;
    text-transform: uppercase;
}
#mencoes-menu .mencoes-tipo-personagem { color: #ffca28; }
#mencoes-menu .mencoes-tipo-regiao { color: #5ed1c4; }
#mencoes-menu .mencoes-tipo-monstro { color: #ff7a70; }

/* link dentro do texto já salvo */
.mencao-link {
    cursor: pointer;
    font-weight: 600;
    color: #ffca28;
    border-bottom: 1px dotted currentColor;
    transition: color .15s, background .15s;
}
.mencao-link::before { content: "@"; opacity: .6; margin-right: 1px; }
.mencao-link:hover,
.mencao-link:focus-visible { background: rgba(255, 202, 40, .16); outline: none; }
.mencao-link.mencao-regiao { color: #5ed1c4; }
.mencao-link.mencao-regiao:hover,
.mencao-link.mencao-regiao:focus-visible { background: rgba(94, 209, 196, .16); }
.mencao-link.mencao-monstro { color: #ff7a70; }
.mencao-link.mencao-monstro:hover,
.mencao-link.mencao-monstro:focus-visible { background: rgba(255, 122, 112, .16); }
.mencao-link.mencao-perdida { color: #9a8a70; border-bottom-style: dashed; cursor: help; }
