@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=IM+Fell+English&family=Uncial+Antiqua&display=swap');

h1, h2 {
    font-family: 'Cinzel', serif;
    color: #e0dccc;
    text-shadow: 2px 2px 4px #000;
    letter-spacing: 1.5px;
}

body, p, span, div, button {
    font-family: 'Cinzel', serif;
    
}

html, body {
    height: 100%; /* Garante que HTML e Body ocupam a altura total da viewport */
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Garante que padding e border não aumentem a largura/altura total */
}

body {
    font-family: 'Cinzel', serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 100px; /* Mais espaço para o menu do rodapé */
    background-color: #121212;
    position: relative; /* Para posicionar elementos filhos com 'absolute' ou 'fixed' relativos ao body */
    min-height: 100vh; /* Garante que o body tenha pelo menos a altura da viewport */
    overflow-x: hidden; /* Previne rolagem horizontal indesejada no body */
}

/* Um container principal para o conteúdo que não é o rodapé ou chat bubble */
#mainContentWrapper {
    flex-grow: 1; /* Permite que este wrapper ocupe o espaço disponível */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 50px; /* Para empurrar o conteúdo abaixo de uma potencial barra de título futura ou topo da página */
    box-sizing: border-box;
}

#authContainer, #playerInfoDiv, #chatContainer, 
h1, h2 {
    color: #e0dccc;
}
input[type="email"], input[type="password"], input[type="text"] {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #666;
    border-radius: 4px;
    box-sizing: border-box;
}
button {
    background: linear-gradient(145deg, #7a5c1c, #c9a94a); color: #fff; 
    text-shadow: 1px 1px 2px #000;
    color: #e0dccc;
    padding: 30px 40px;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
    margin: 5px 0px;
    font-weight: bold;
}
button, .btn {
    background-image: url('https://aden-rpg.pages.dev/assets/botao.webp'); 
        background-repeat: no-repeat;
        background-position: center center; 
        background-size: cover;
        box-sizing: border-box;
        background-color: none;
        border: none;
        cursor: pointer;

}
button:hover {
    opacity: 0.9;
}
button:disabled {
  background-image: url('https://aden-rpg.pages.dev/assets/botao.webp'); 
        background-repeat: no-repeat;
        background-position: center center; 
        background-size: cover;
        
        background-color: none;
  padding: 15 35px;
    color: white !important; 
    cursor: not-allowed;
  opacity: 0.8; 
  
}
p#authMessage, p#profileEditMessage, p#afkMessage {
    margin-top: 10px;
    font-size: 0.9em;
    color: white;
    background-color: rgba(51, 51, 51, 0.9);
    border-radius: 5px;
}

/* Estilos do Chat */
#chatBox {
    height: 200px;
    overflow-y: scroll;
    border: 1px solid #555;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #181818;
    border-radius: 4px;
}
.chat-message {
    margin-bottom: 5px;
    word-wrap: break-word;
}
.chat-message strong {
    color: #ccc;
}
#chatInput {
    width: calc(100% - 70px);
    display: inline-block;
}
#sendChatBtn {
    width: 60px;
    float: right;
    padding: 10px 0;
}

/* Estilo para o modal de edição de perfil */
#profileEditModal {
    display: none;
    position: fixed;
    top: 0;
    width: 100%;
    min-height: 100vh;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    overflow-y: auto; 
  
}
#profileEditModal > div {
    background: #2e2e2e;
    padding: 0px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 20px rgba(255,215,0,0.15);
    max-width: 400px;
    width: 90%;
    box-sizing: border-box;
    max-height: 95vh;
    overflow-y: auto;
}
    #profileEditModal:-webkit-scrollbar {
        width: 0;  
        background: transparent;
    }
        #profileEditModal {
    scrollbar-width: none;  
    -ms-overflow-style: none;
}
#profileEditModal h2 { margin-top: 0; }
#profileEditModal input, #profileEditModal select {
    width: calc(100% - 20px);
    padding: 15px 30px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #666;
    box-sizing: border-box;
}
#profileEditModal button {
    padding: 20px 40px;
    color: #e0dccc;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
    
}
#profileEditModal button:hover {
    background-color: #0d0d0d355;
}
#profileEditMessage {
    margin-top: 10px;
    font-size: 0.9em;
    color: #ff5f5f;
}

/* Estilos do Rodapé e Chat Flutuante */
/* === NOVOS ESTILOS FOOTER MENU === */
#footerMenu {
    display: flex;
    align-items: stretch; /* Faz os botões esticarem verticalmente */
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, #444, #222);
    padding: 5px 0;
    box-shadow: 0 -3px 8px rgba(0,0,0,0.3);
    z-index: 999;
    box-sizing: border-box;
    min-height: 65px; /* Altura mínima para acomodar texto e ícone */
}

/* Remove estilos antigos e aplica novos */
#footerMenu button {
    background: none !important; /* Remove bg do .btn */
    background-image: none !important; /* Remove bg do .btn */
    border: none;
    color: #ccc; /* Cor do texto mais suave */
    padding: 5px;
    margin: 0;
    border-radius: 0;
    cursor: pointer;
    font-size: 0.8em; /* Tamanho da fonte menor */
    font-weight: bold;
    flex: 1; /* Faz todos os botões ocuparem espaço igual */
    
    /* Flexbox para alinhar ícone e texto */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    transition: background-color 0.2s;
    line-height: 1.2;
}

#footerMenu button:hover {
    background-color: #333; /* Efeito hover sutil */
    color: #fff;
}

/* Classes específicas para os elementos do novo botão */
.footer-btn-img {
    width: 48px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 4px;
}

.footer-btn-span {
    display: block;
    word-wrap: break-word; /* Quebra a palavra */
    overflow-wrap: break-word; /* Garante a quebra */
    max-width: 100%;
}

/* === ESTILOS PARA OS SUBMENUS === */
.footer-submenu {
    position: fixed;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background-color: rgba(30, 30, 30, 0.95);
    border: 1px solid #555;
    border-radius: 8px;
    padding: 5px;
    z-index: 9998; /* Abaixo do footer principal */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.4);
}

.footer-submenu-btn {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
    text-align: center;
    background: linear-gradient(to bottom, red 20%, orange 100%);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.footer-submenu-btn:hover {
    background-color: #444;
}

#chatBubble {
    position: fixed;
    bottom: 90px;
    right: 20px;
    left: auto;
    background-color: #93b7ff;
    color: #e0dccc;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1001;
}
#chatBubble:hover {
    background-color: #0d0d0d355;
}

/* Estilos para a mensagem flutuante do menu */
#floatingMessage {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.75);
    color: #e0dccc;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 99999;
    font-size: 1.1em;
    /* --- ALTERAÇÕES INCLUÍDAS ABAIXO --- */
    white-space: normal; /* Permite a quebra de linha */
    word-wrap: break-word; /* Quebra palavras longas */
    overflow-wrap: break-word; /* Quebra palavras longas (versão mais recente) */
    max-width: 80%; /* Define uma largura máxima para o balão, forçando a quebra de linha */
    text-align: center; /* Centraliza o texto dentro do balão */
    /* --- FIM DAS ALTERAÇÕES --- */
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Estilos para o popup de dano no combate */
#combatDamagePopup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #e0dccc;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 2em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    z-index: 1003;
    opacity: 0;
    transition: opacity 0.1s ease-out, transform 0.1s ease-out;
    text-align: center;
    min-width: 150px;
}
#combatDamagePopup.critical {
    color: yellow;
    font-size: 2.5em;
    border: 3px solid yellow;
    box-shadow: 0 0 15px red;
}
/* Estilos para o modal de resultado de combate */
#combatResultModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1004;
    justify-content: center;
    align-items: center;
}
#combatResultModal > div {
    background: #2e2e2e;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 25px rgba(255,215,0,0.25);
    max-width: 450px;
    width: 90%;
    box-sizing: border-box;
    color: #e0dccc;
}
#combatResultModal h2 {
    margin-top: 0;
    color: #93b7ff;
}
#combatResultModal p {
    font-size: 1.1em;
    margin-bottom: 15px;
}
#combatResultModal button {
    
    color: #e0dccc;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
}
#combatResultModal button:hover {
    background-color: #0d0d0d355;
}

/* Estilos para o botão de ataque redondo */
#attackButton {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #ff5722;
    color: #e0dccc;
    font-size: 1.5em;
    font-weight: bold;
    display: block;
    margin: 10px auto 20px auto;
    border: 4px solid #d84315;
    box-shadow: 0 0 20px rgba(255,215,0,0.15);
    transition: background-color 0.2s, transform 0.1s;
    text-align: center;
    line-height: 100px;
    padding: 0;
}

#attackButton:hover {
    background-color: #e64a19;
    transform: scale(1.05);
}

#attackButton:active {
    background-color: #bf360c;
    transform: scale(0.95);
}

/* Estilo para a imagem do monstro */



/* Estilo para a porcentagem de HP do monstro */
#monsterHealthPercentage {
    text-align: center;
    font-weight: bold;
    margin-top: 10px;
    color: #e0dccc;
}

#authContainer,
#playerInfoDiv,
#chatContainer,
#afkContainer,
#combatResultModal,
#profileEditModal,
#footerMenu,
#combatLog,
#combatDamagePopup {
    color: #e0dccc !important;
}
#attackButton {
    animation: pulse 1.5s infinite ease-in-out;
}
#caixaLogin {
  width: 90vw;
  bottom: 0;
  position: fixed;
  margin: 0 auto;
}
#btnReg {
  display: flex;
  justify-content: space-between;
  width: 100%;
  flex: 1;
}
#btnReg {
  flex: 1;
}
#authContainer {
        width: 100vw;
        min-height: 100vh;
        background-image: url('https://aden-rpg.pages.dev/assets/aden_ini.webp'); /* Nova imagem da masmorra */
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
        
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        
        box-sizing: border-box;

        background-color: transparent; 
        max-width: none;
        margin: 0;
        box-shadow: none;
        border-radius: 0;
        position: fixed;
        padding: 30px;
        z-index: 1000; 
        top: 0;
        /* Mantém o display:none; pois a visibilidade será controlada pelo JS */
        /* display: none; */ 
    }

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 10px #a94442;
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px #a94442;
    }
}
.hp-bar, .mana-bar {
    width: 100%;
    height: 20px;
    background-color: #222;
    border: 2px solid #555;
    border-radius: 10px;
    overflow: hidden;
    margin: 5px 0;
}

.hp-fill {
    background-color: #a94442;
    height: 100%;
    transition: width 0.3s ease;
}

.mana-fill {
    background-color: #4185d5;
    height: 100%;
    transition: width 0.3s ease;
}



#playerTopBar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to right, #2c2c2c, #1a1a1a);
  padding: 5px 10px;
  width: 100%;
  box-sizing: border-box;
  color: #e0dccc;
  font-family: 'Cinzel', serif;
  border-bottom: 2px solid #444;
  top: 0;
}
#playerAvatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid gold;
  object-fit: cover;
  margin-right: 18px;
}
#playerTopInfo {
  flex-grow: 1;
}
#playerNameLevel {
  font-size: 0.9em;
  font-weight: bold;
  display: flex;
  
}
#playerNameText {
  position: flex;
}
#playerCombatPower {
  font-size: 1.1em;
  font-weight: bold;
  display: flex;
  align-items: center;
 position: absolute;
  background: linear-gradient(to bottom, white, orange, orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
#playerCurrency {
  text-align: right;
  font-size: 0.9em;
  display: flex;
  flex-direction: column;
  gap: 3px;
}


.avatar-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 10px 0;
  overflow-y: auto; 
}
 .avatar-grid::-webkit-scrollbar {
        width: 0;  
        background: transparent;
    }
        .avatar-grid {
    scrollbar-width: none;  
    -ms-overflow-style: none;
}
.avatar-option {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  object-fit: cover;
  transition: border 0.3s;
}
.avatar-option.selected {
  border-color: gold;
}

body {
  top: 0; 
  
  min-height: 100vh;
  min-width: 100vw;
}

#playerTopBar {
  display: flex;
  align-items: flex-start;
  background: linear-gradient(to bottom, #444, #222);
  padding: 5px 5px;
  width: 100%;
  box-sizing: border-box;
  color: #e0dccc;
  font-family: 'Cinzel', serif;
  border-bottom: 2px solid #555;
  flex-wrap: wrap;
  top: 0;
}

#playerAvatarContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  
}

#playerAvatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid gold;
  object-fit: cover;
}

#playerLevel {
  font-size: 1em;
  color: gold;
  align-items: left;
  text-align: left;
  font-weight: bold;
margin-right: 15px;
}

#playerTopInfo {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  right: 0;
}

#playerNameRow {
  display: flex;
  align-items: center;
  font-size: 1.1em;
  font-weight: bold;
  gap: 8px;
}

#playerEmblemsRow {
  display: flex;
  gap: 5px;
  font-size: 1em;
}

#playerStatsRow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.8em;
  font-weight: bold;
  gap: 10px;
}

#cpIcon {
  width: 16px;
  height: 24px;
  
  left: -3px;
  position: relative;
}
#emblemas {
  margin-top: 0.2em;
}
#xpBarContainer {
  position: relative;
  height: 22px;
  background-color: #444;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 5px;
  width: 100%; /* Garantir que ocupe toda a largura possível */
}
#xpBar {
  height: 100%;
  background-color: #ffc107;
  width: 50%; /* Será controlado via JS */
  transition: width 0.5s ease-in-out;
}
.emblema {
  font-size: 0.7em;
}
#xpText {
  position: absolute;
  top: 2px;
  left: 0;
  width: 100%;
  height: 100%;
  font-size: 0.9em;
  text-align: center;
  font-weight: bold;
  color: #fff;
  text-shadow: 2px 2px 2px black;
  pointer-events: none;
  z-index: 2;
}



#afkContainer {
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    height: calc(100vh - 170px); /* Ajuste: cabeçalho + margem + rodapé */
}
#afkContainer::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    min-height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -10%;
}


.modal-content {
    background: #2e2e2e;
    border-radius: 10px;
    color: #e0dccc;
    width: 95vw;
    max-height: 98vh;
    overflow-y: auto;
    text-align: center;
  padding: 5px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
}



.modal-content button {
    
    color: #e0dccc;
    border: none;
    padding: 20px 45px;
    border-radius: 5px;
    margin-top: 6px;
    font-size: 1em;
    cursor: pointer;
}


.avatar-option {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    margin: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s, border-color 0.2s;
}

.avatar-option:hover {
    transform: scale(1.1);
}

.avatar-option.selected {
    border-color: gold;
    box-shadow: 0 0 10px gold;
}

#afk-status {
  color: white;
}

#loading-overlay {
  position: fixed; /* Fixa o overlay na tela */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000; /* Fundo preto semi-transparente */
  color: #fff;
  display: flex; /* Centraliza o conteúdo */
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Garante que fique acima de todos os outros elementos */
  transition: opacity 0.5s ease-in-out; /* Transição para o efeito de "desaparecer" */
  opacity: 1; /* Inicia visível */
}

#loading-overlay.hidden {
  opacity: 0; /* Torna-se invisível */
  pointer-events: none; /* Não bloqueia mais o clique */
}

#loading-container {
  text-align: center;
}

#progress-bar-container {
  width: 300px;
  height: 20px;
  background-color: #444;
  border-radius: 10px;
  overflow: hidden; /* Garante que a barra não vaze */
  margin-top: 10px;
}

#progress-bar {
  height: 100%;
  width: 0%; /* Começa com 0% de largura */
  background-color: #0f0; /* Cor da barra de progresso */
  transition: width 0.3s ease-in-out; /* Transição para a animação da barra */
}

#progress-text {
  display: block;
  margin-top: 10px;
  font-size: 1.2em;
}
/* === MENU LATERAL DIREITO (LOSANGOS) === */
#sideMenu {
  min-width: 70px;
  position: fixed;
  top: 50%;
  right: 0px;
  transform: translateY(-50%);
  background: linear-gradient(to bottom, #444 0%, #222 30%, #444 100%);
  padding: 20px 0;
  border-radius: 10px 0 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: -2px 0 8px rgba(0,0,0,0.4);
  z-index: 999;
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.menu-item span {
  font-size: 0.8em;
  color: #e0dccc;
  margin-top: 5px;
  text-align: center;
  font-weight: bold;
  text-shadow: 1px 1px 2px #000;
}

.diamond {
  width: 35px;
  height: 35px;
  background-image: url('https://aden-rpg.pages.dev/assets/menulateralbg.webp');
  background-size: cover;
  background-position: center;
  transform: rotate(45deg);
  border: 2px solid gold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.diamond.small {
  width: 25px;
  height: 25px;
}

.diamond img {
  width: 65%;
  height: 65%;
  transform: rotate(-45deg);
  object-fit: contain;
}

.menu-item:hover .diamond {
  transform: rotate(45deg) scale(1.1);
  box-shadow: 0 0 10px gold;
}

/* Submenus */
.submenu {
  display: none;
  flex-direction: column;
  align-items: center;
  margin-top: 5px;
  margin-right: -10px;
}

/* === MODAL GENÉRICO === */
.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

#sideMenu .submenu {
  display: none;
  position: absolute;
  right: 70px; /* distância lateral entre o menu principal e o submenu */
  margin-top: -7px;
  transform: translateY(-50%);
  flex-direction: row; /* agora ficam lado a lado */
  align-items: center;
  gap: 40px;
  background: rgba(20, 20, 20, 0.95);
  padding: 8px 9px;
  border: 1px solid #555;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  z-index: 1000;
}
#sideMenu .menu-item.expandable {
  position: relative;
}



/* Estilos para o Modal Espiral */
.spiral-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
  border-bottom: 2px solid #555;
}

.tab-btn {
  padding: 10px 20px;
  font-size: 1em;
  background-color: transparent;
  border: none;
  color: #aaa;
  cursor: pointer;
  background-image: none !important; /* Remove a imagem de fundo padrão dos botões */
}

.tab-btn.active {
  color: gold;
  border-bottom: 2px solid gold;
}

.spiral-content {
  text-align: center;
  text-shadow:
        1px 1px 2px black,
        -1px -1px 2px black,
        1px -1px 2px black,
        -1px 1px 2px black, 
        0 0 2px black,
        0 0 4px black;
}
.card-info {
  display: flex;
  background: linear-gradient(to bottom, #444 0%, #222 50%, #444 100%);
  width: 180px;
  height: 60px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 1.2em;
  margin: 15px auto; /* centraliza horizontalmente */
  border-radius: 8px;
  padding: 8px;
}



.plus-btn {
  width: 32px;
  height: 32px;
  border-radius: 60%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  vertical-align: 3px;
  font-size: 30px;
  font-weight: bold;
  padding: 0;
  margin-left: 6px;
  
}

.draw-btn {
  width: 80%;
  padding: 20px 40px;
  font-size: 1.2em;
}

.close-spiral-modal {
    margin-top: 15px;
}

/* Estilos para o Modal de Compra e Confirmação */
.quantity-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}
.quantity-selector button {
    background-image: none !important;
    background-color: #555 !important;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 1.5em;
    border-radius: 5px;
}
.quantity-selector span {
    font-size: 1.5em;
    font-weight: bold;
}

/* Estilos para o Modal de Resultados */
.results-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    max-height: 400px;
    overflow-y: auto;
}
.result-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(0,0,0,0.3);
    padding: 10px;
    border-radius: 8px;
}
.result-item img {
    width: 64px;
    height: 64px;
}
.result-item span {
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 5px;
}
/* ===== EFEITOS VISUAIS ESPIRAL ===== */
#spiralModal .modal-content {
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(
      rgba(0, 0, 30, 0.7),
      rgba(0, 0, 0, 0.2)
    ),
    url('https://aden-rpg.pages.dev/assets/espiralbg.webp');
  background-size: cover;
  background-position: center;
  border: none;
  box-shadow:
    0 0 20px rgba(0, 255, 255, 0.7),
    0 0 40px rgba(0, 200, 255, 0.4),
    inset 0 0 30px rgba(0, 255, 255, 0.2);
  animation: neonPulse 3s ease-in-out infinite;
}

/* --- Animação de brilho pulsante --- */
@keyframes neonPulse {
  0%, 100% {
    box-shadow:
      0 0 15px rgba(0, 255, 255, 0.7),
      0 0 30px rgba(0, 200, 255, 0.4),
      inset 0 0 20px rgba(0, 255, 255, 0.2);
  }
  50% {
    box-shadow:
      0 0 25px rgba(0, 255, 255, 0.9),
      0 0 60px rgba(0, 255, 255, 0.6),
      inset 0 0 40px rgba(0, 255, 255, 0.3);
  }
}

/* === PARTÍCULAS FLUTUANTES MELHORADAS === */
#spiralModal .modal-content::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image:
    radial-gradient(rgba(0,255,255,0.9) 2px, transparent 3px),
    radial-gradient(rgba(0,200,255,0.7) 1.5px, transparent 3px),
    radial-gradient(rgba(0,255,200,0.5) 2px, transparent 3px),
    radial-gradient(rgba(0,255,255,0.8) 1px, transparent 2px);
  background-size: 150px 150px, 200px 200px, 300px 300px, 400px 400px;
  animation: particleFloat 35s linear infinite;
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0.4;
  filter: drop-shadow(0 0 6px rgba(0,255,255,0.7));
}

@keyframes particleFloat {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  25%  { transform: translate(15px, -20px) rotate(90deg) scale(1.05); }
  50%  { transform: translate(-10px, 25px) rotate(180deg) scale(1.1); }
  75%  { transform: translate(10px, -15px) rotate(270deg) scale(1.05); }
  100% { transform: translate(0, 0) rotate(360deg) scale(1); }
}

/* === ESTILOS PARA O MODAL DA LOJA === */
#shopModal .modal-content {
    background-image: linear-gradient(
      rgba(0, 0, 30, 0.7),
      rgba(0, 0, 0, 0.1)
    ),
    url('https://aden-rpg.pages.dev/assets/lojabg.webp');
  background-size: cover;
  background-position: center;
  border: none;
    border-radius: 10px;
    color: #e0dccc;
    width: 98%;
    max-height: 90vh;
    height: 99vh;
    overflow-y: auto;
    text-align: center;
    padding: 2px; /* Um pouco mais de espaço vertical */
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
    box-sizing: border-box; 
}

.shop-tabs {
  display: flex;
  flex-wrap: wrap;
    justify-content: space-around;
    border-bottom: 2px solid #555;
    width: 100%; 
    margin: 0 auto 5px auto;
}
    

.shop-tab-btn {
    padding: 10px 5px;
    font-size: 0.9em;
    background-color: transparent;
    border: none;
    color: #aaa;
    cursor: pointer;
    background-image: none !important;
    width: 70px;
    display: flex;
    justify-content: center;
    text-align: center;
}

.shop-tab-btn.active {
    color: gold;
    border-bottom: 2px solid gold;
}

.shop-content {
    text-align: center;
    text-shadow:
        1px 1px 2px black,
        -1px -1px 2px black,
        1px -1px 2px black,
        -1px 1px 2px black, 
        0 0 2px black,
        0 0 4px black;
}

.shop-item {
    display: flex;
    align-items: center;
    width: 90%;
    margin: 15px auto;
    padding: 10px;
    border-radius: 8px;
    background: linear-gradient(180deg, #A68C42, #333, #A68C42);
    border: 1px solid rgba(255,215,0,0.3);
    color: white;
    text-shadow:
        1px 1px 2px black,
        -1px -1px 2px black,
        1px -1px 2px black,
        -1px 1px 2px black, 
        0 0 2px black,
        0 0 4px black;
}

.shop-item-img {
    width: 120px;
    height: 160px;
    object-fit: contain;
    margin-right: 15px;
}

.shop-item-details {
    text-align: left;
    flex-grow: 1;
}

.shop-item-details h3 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    color: #fff;
}

.shop-item-details p {
    margin: 0 0 10px 0;
    font-size: 0.9em;
    color: #ccc;
}

.shop-item-cost {
    display: flex;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    color: gold;
    margin-bottom: 10px;
}

.shop-item-cost img {
    width: 24px;
    height: 24px;
    margin-right: 5px;
}

.shop-buy-btn {
    padding: 15px 30px !important;
    width: 100%;
    font-size: 1em;
}

.recharge-item .shop-item-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.recharge-item .shop-item-details span {
    font-size: 1.4em;
    font-weight: bold;
    color: #4CAF50;
}

/* Aba de Vídeos */
.video-rewards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.video-reward-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(0,0,0,0.6);
    border-radius: 8px;
    padding: 10px;
    width: 150px;
}

.video-reward-card img {
    width: 80px;
    height: 100px;
    object-fit: contain;
}

.video-reward-card span {
    margin: 10px 0;
    font-weight: bold;
    font-size: 0.9em;
}

.video-reward-card button {
    width: 100%;
    padding: 15px 10px !important;
    font-size: 0.9em;
}
#confirmModalButtons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 25px;
}





/* Estilos para o Sistema de PV */

/* Bolha de Notificação no Ícone do Menu */
.menu-item .diamond {
  position: relative;
}

.notification-dot {
  position: absolute;
  top: -19px;
  right: 2px;
  width: 14px;
  height: 14px;
  background-color: red;
  border-radius: 50%;
  border: 2px solid white;
  display: block;
}

/* Modal e Abas */
.pv-modal-content {
  width: 95vw;
  max-width: 500px;
}

.pv-tabs {
  display: flex;
  border-bottom: 1px solid #555;
  margin-bottom: 10px;
}

.pv-tab-btn {
  flex-grow: 1;
  padding: 10px;
  background-color: transparent;
  border: none;
  color: #ccc;
  font-size: 1.1em;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

.pv-tab-btn.active {
  color: white;
  border-bottom: 3px solid gold;
}

.pv-content {
  height: 60vh;
  overflow-y: auto;
}

/* Lista de Conversas e Mensagens de Sistema */
#pv-conversation-list, #pv-system-messages-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.conversation-item, .system-message-item {
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  cursor: pointer;
  border-left: 3px solid transparent;
}

.conversation-item:hover, .system-message-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.conversation-item.unread, .system-message-item.unread {
  font-weight: bold;
  border-left: 3px solid gold;
}

.conversation-name, .system-message-title {
  margin: 0;
  font-size: 1em;
  color: #fff;
}

.conversation-preview, .system-message-preview {
  margin: 0;
  font-size: 0.8em;
  color: #aaa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Visão do Chat */
#pv-chat-view {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #555;
  max-height: 40px;
}

.chat-header h3 {
  margin: 0;
  color: #00aaff;
}

#pv-delete-convo-btn {
  background-color: #8B0000;
  color: white;
  border: none;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 0.8em;
}

#pv-chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-message {
  padding: 8px 12px;
  border-radius: 15px;
  max-width: 70%;
  word-wrap: break-word;
}

.chat-message.sent {
  background-color: #005f8e;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

.chat-message.received {
  background-color: #555;
  color: #eee;
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

.chat-message small {
  display: block;
  font-size: 0.7em;
  color: #ccc;
  margin-top: 4px;
  text-align: right;
}

.chat-input-area {
  display: flex;
  border-top: 1px solid #777;
  padding-top: 10px;
}

#pv-chat-input {
  flex-grow: 1;
  margin-right: 10px;
}

#pv-chat-input:disabled {
  background-color: #222;
  font-style: italic;
}
#pvtutomodal .modal-content2 {
  text-align: left !important;
  color: white;
  width: 100vw !important;
  height: 100vh !important;
  border-radius: 8px;
}
.modal-overlay2 {
    position: fixed;
  
    width: 100%;
    height: 100%;
   background: linear-gradient(to bottom, #444 0%, #222 50%, #444 100%); 
    text-shadow:
        1px 1px 2px black,
        -1px -1px 2px black,
        1px -1px 2px black,
        -1px 1px 2px black, 
        0 0 2px black,
        0 0 4px black;
  
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
/* Estilos para a Bolinha de Notificação na Aba Sistema */
.pv-tab-btn.has-unread-system {
    position: relative; /* Necessário para posicionar o :after */
    padding-right: 25px; /* Adiciona espaço para a bolinha */
}

/* Bolinha vermelha (dot) na aba Sistema */
.pv-tab-btn.has-unread-system::after {
    content: '';
    position: absolute;
    top: 5px; /* Ajuste a posição vertical conforme necessário */
    right: 5px; /* Ajuste a posição horizontal conforme necessário */
    width: 8px;
    height: 8px;
    background-color: red;
    border-radius: 50%;
    border: 1px solid white; /* Opcional: para maior destaque */
}

/* Garante que o modal de sistema fica acima dos outros elementos */
#systemMessageModal {
    z-index: 10000;
}

/* === ESTILOS MODAL DE PROGRESSÃO === */
#progressionModal .modal-content {
    max-height: 80vh;
    overflow-y: auto;
}

.progression-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.progression-category {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #444;
}

.progression-category h3 {
    margin: 0 0 10px 0;
    color: gold;
    border-bottom: 1px solid #555;
    padding-bottom: 5px;
}

.mission-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mission-reward {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    flex-shrink: 0;
}

.mission-reward img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.mission-reward span {
    font-size: 0.9em;
    font-weight: bold;
    color: #ccc;
    margin-top: 4px;
}

.mission-details {
    flex-grow: 1;
    text-align: left;
}

.mission-details p {
    margin: 0;
    font-size: 0.95em;
    color: #fff;
    line-height: 1.3;
}

.mission-actions {
    width: 90px;
    flex-shrink: 0;
}

.mission-actions .claim-btn {
    width: 100%;
    padding: 15px 0 !important; /* Força o padding do botão */
    font-size: 0.85em;
    background: linear-gradient(to bottom, orange 0%, red 50%, orange 100%);
}

.mission-actions .claim-btn:disabled {
    filter: grayscale(100%) brightness(60%);
    pointer-events: none;
    background-image: url('https://aden-rpg.pages.dev/assets/botao.webp'); /* Garante que a imagem de fundo seja mantida */
    opacity: 0.7;
}

.mission-complete-message {
    font-size: 1em;
    color: #4CAF50;
    font-weight: bold;
    text-align: center;
    padding: 20px 0;
}

#copiarid {
  min-width: 45px;
  min-height: 17px;
  max-height: 15px;
  font-size: 0.7em!important;
  background: linear-gradient(to bottom, #000, #222); color: #fff; 
    text-shadow: 1px 1px 2px #000;
    display: flex;
    margin-left: -5px;
    align-items: center;
    justify-content: center;
    margin-top: -12px;
    border: 1px solid orange;
    border-radius: 6px;
}

/* ==============================
   MAPA DE ADEN INTERATIVO
   ============================== */
#mapContainer {
    width: 100vw;
    height: calc(100vh - 120px); /* Ajuste conforme o topo e o rodapé */
    overflow: hidden;
    position: relative;
    background-color: #000;
    touch-action: none; /* evita zoom duplo no mobile */
}

#mapImage {
    background-image: url('https://aden-rpg.pages.dev/assets/mapa_aden.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top left;
    width: 1500px;
    height: 1600px;
    position: absolute;
    cursor: grab;
    transform-origin: top left;
    transition: transform 0.05s linear;
    transform: scale(1);
}

/* Corrige para telas 9:16 */
@media (max-aspect-ratio: 9/16) {
  #mapContainer {
    height: 90vh;
  }
}


/* Compactar espaçamento vertical da topbar */
#playerTopBar {
  padding: 3px 6px !important; /* reduz padding interno */
  align-items: center !important;
}

#playerAvatar {
  width: 60px !important;
  height: 60px !important;
}

#playerLevel {
  font-size: 0.9em !important;
  margin: 0 !important;
  line-height: 1 !important;
  margin-left: -18px!important;
}

#playerTopInfo {
  gap: 2px !important; /* diminui espaço entre as linhas dentro da info */
}

#playerNameRow,
#playerEmblemsRow,
#playerStatsRow,
#xpBarContainer {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}

#xpBarContainer {
  height: 18px !important;
  margin-top: 2px !important;
}

#xpText {
  font-size: 0.9em !important;
  margin-top: -3px;
}


.map-hotspot {
    position: absolute; 
    z-index: 10;
    box-sizing: border-box;
    border: 0px solid gold;
    transition: background-color 0.2s ease;
}

.map-hotspot:hover {
    /* Mostra um leve brilho ao passar o mouse */
    background-color: rgba(255, 255, 255, 0.2);
}
.archived-label {
  font-size: 0.7em;
  margin-top: -8px!important;
  color: gold;
  font-weight: bold;
  position: absolute;
}

/* ... (todo o conteúdo original de style.css) ... */

/* ============================================= */
/* === ESTILOS PARA O RANKING DE JOGADORES === */
/* ============================================= */
#playerRankingModal .modal-content {
    max-height: 80vh;
    overflow-y: auto;
}

.ranking-list-players {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left !important;
}

.ranking-list-players .ranking-item {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 3px !important;
  width: 100% !important;
  padding: 6px 0;
  border-bottom: 1px solid #444;
}

.ranking-list-players .ranking-item-content {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
}

.ranking-list-players .ranking-position {
    width: 28px;
    text-align: right;
    font-size: 0.9em; 
    font-weight: bold;
    color: #ccc;
}

.ranking-list-players .ranking-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #666;
    margin-left: 8px;
    object-fit: cover;
}

.ranking-list-players .ranking-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-list-players .player-link {
    color: white;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    text-decoration: none;
}
.ranking-list-players .player-link:hover {
    color: gold;
}

.ranking-list-players .ranking-sub-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 4px;
}

.ranking-list-players .member-level {
    font-size: 0.8em;
    color: lightblue;
}

.ranking-list-players .ranking-power {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ranking-list-players .cp-icon {
    width: 16px;
    height: 22px;
    vertical-align: -3px;
}

.ranking-list-players .power-value {
    color: orange;
    font-weight: bold;
    font-size: 0.9em;
}

#playerRankingMessage {
    color: #ccc;
    font-size: 0.9em;
}
/* Estilos para os novos botões laterais */
#authSideButtons {
  position: fixed; /* Fixo na tela */
  top: 26%;        /* Centralizado verticalmente */
  right: 2px;     /* Na borda direita, ajuste este valor se necessário */
  transform: translateY(-50%); /* Ajuste fino da centralização */
  display: flex; 
  flex-direction: column;
  align-items: center;
  gap: 15px; /* Espaço entre os botões */
  z-index: 1001; /* Garante que fique acima do conteúdo principal */
  
}#authSideButtons span {
 background-color: rgba(0,0,0,0.5); 
}
.auth-side-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #f0f0f0; /* Cor do texto */
  
  font-size: 0.68em; /* Tamanho do span */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8); /* Sombra para legibilidade */
  width: 60px; /* Largura para o span */
  text-align: center;
  /* IMPORTANTE: A visibilidade deste container deve ser controlada 
     pelo mesmo script que controla o authContainer */
}

.auth-side-btn img {
  width: 22px;
  height: 25px;
  margin-bottom: 5px; /* Espaço entre imagem e span */
}

.auth-side-btn:hover {
  opacity: 0.8; /* Efeito simples ao passar o mouse */
}
#countdownTop, .preh1 {
  text-shadow: none!important;
 background: linear-gradient(to bottom, lightblue 0%, white 50%, blue 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; 
}


/* 1. Esconde o banner principal e o wrapper 'skiptranslate' */
.goog-te-banner-frame.skiptranslate, 
.skiptranslate {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
}

body {
    top: 0px !important; 
    margin-top: 0px !important;
    position: static !important; 
}
.goog-te-balloon-frame {
    display: none !important;
    visibility: hidden !important;
}

.goog-te-gadget {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
}

font > font {
    background-color: transparent !important;
    box-shadow: none !important;
    position: static !important;
}

.map-hotspot {
    background: transparent !important;
    outline: none !important;
    border: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-focus-ring-color: transparent !important;
    touch-action: manipulation;
}

.map-hotspot:active,
.map-hotspot:focus {
    background: transparent !important;
    outline: none !important;
}

/* Remove destaque e bordas de todos os elementos clicáveis */
a,
button,
img,
input[type="button"],
input[type="submit"],
input[type="checkbox"],
input[type="radio"],
label,
select,
textarea {
    outline: none !important;
    
    -webkit-tap-highlight-color: transparent !important;
    -webkit-focus-ring-color: transparent !important;
    touch-action: manipulation;
}
a:focus, a:active,
button:focus, button:active,
img:focus, img:active,
input:focus, input:active,
select:focus, select:active,
textarea:focus, textarea:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}
button, .btn {
  background-color: transparent!important;
}
.hellop {
  font-size: 1.8em;
  font-weight: bold;
  text-shadow: none;
  background: linear-gradient(to bottom, lightblue 0%, white 50%, blue 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#playerPower {
  font-size: 1.4em!important;
}
#playerCombatPower {
  margin-top: -3px!important;
}