/* arena.css */

/* --- Estilos Globais e TopBar (Baseado em mitrar.html e mines.css) --- */
body, html {
    background-color: #121212;
    color: #e0dccc;
    font-family: 'Cinzel', serif;
}

#playerTopBar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #1a1a1a;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    z-index: 1000;
}
.top-bar-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}
.top-bar-link svg { width: 30px; height: 30px; }
#pageTitle {
    color: #e0dccc;
    font-size: 1.2em;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
}

/* --- Container Principal da Arena --- */
#arenaContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: linear-gradient(
      rgba(0, 0, 30, 0.7),
      rgba(0, 0, 0, 0.3)
    ),
    url('https://aden-rpg.pages.dev/assets/arena.webp');
  background-size: cover;
  background-position: center;
  border: none;
    border-radius: 10px;
    color: #e0dccc;
    position: relative;
    margin-top: 50px; 
    min-height: calc(100vh - 50px);
    width: 100%;
    overflow-y: auto;
    text-align: center;
    padding: 2px; 
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
    box-sizing: border-box; 
    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;
}
#arenaContainer h2 {
    color: gold;
    font-size: 1.8em;
}
#arenaContainer p {
    font-size: 1.1em;
    color: #ccc;
    margin-bottom: 25px;
}
#attemptsInfo {
    margin-top: 15px;
    font-size: 1.1em;
    color: #FFC107;
    border: 1px solid gold;
    border-radius: 10px;
    background: #333;
    padding: 0 9px;
}

/* Botão de Desafio (baseado em style.css) */
.action-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: transparent;
    border: none;
    cursor: pointer;
    color: #e0dccc;
    font-weight: bold;
    padding: 15px 40px; 
    font-size: 1.1em;
    text-shadow: 1px 1px 2px #000;
    transition: filter 0.3s;
}
.action-btn:hover {
    opacity: 0.9;
}
.action-btn:disabled {
    filter: grayscale(1);
    cursor: not-allowed;
    opacity: 0.7;
}

/* --- Estilos de Overlay e Modais (Baseado em mines.css) --- */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
.spinner { /* (Adicione seu CSS de spinner aqui) */
    width: 50px;
    height: 50px;
    border: 5px solid #555;
    border-top-color: #e0dccc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: none;
    background: linear-gradient(to bottom, #000, #222);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    background-color: none;
    background: linear-gradient(to bottom, #333, #444);
    padding: 20px;
    border-radius: 10px;
    width: 95vw;
    text-align: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
    border: 3px solid #c9a94a;
    position: relative;
}

/* --- Modal de Combate PvP (Correção para tela cheia) --- */
/* 1. Aplica o fundo à tela inteira (#pvpCombatModal é o .modal-overlay) */
#pvpCombatModal {
    background-color: transparent; 
    background: none; 
    background-image: linear-gradient(
      rgba(0, 0, 30, 0.7),
      rgba(0, 0, 0, 0.3)
    ),
    url('https://aden-rpg.pages.dev/assets/arena.webp');
    background-size: cover;
    background-position: center;
    border: none;
}

/* 2. Aplica o estilo de quadrado semi-transparente apenas ao conteúdo do duelo */
#pvpCombatModal .modal-content {
    /* Remove o fundo de imagem anterior */
    background-image: none; 
    /* Define o fundo semi-transparente para o quadrado do duelo */
    border: none;
}

#pvpArena {
    display: flex;
    justify-content: space-around;
    align-items: flex-start; /* Alinha pelo topo */
    width: 100%;
    margin-top: 30px;
    
}
.player-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 45%;
}
.player-name-pvp {
    font-size: 1.1em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.avatar-container {
    position: relative;
    width: 80px;
    height: 80px;
}
.player-avatar-pvp {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #ffd700;
}
.vs-separator {
    font-size: 2em;
    font-weight: bold;
    color: gold;
    padding-top: 50px;
    margin-left: -3px;
}
.player-hp-bar {
    position: relative;
    width: 100%;
    max-width: 140px;
    height: 20px;
    background-color: #333;
    border: 1px solid #777;
    border-radius: 8px;
    margin-top: 10px;
    overflow: hidden;
}
.player-hp-fill {
    height: 100%;
    background: linear-gradient(90deg, #6bff6b, #86ffb8);
    transition: width 0.3s ease;
}
.hp-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 98%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    color: #fff;
    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;
    font-size: 0.8em;
    white-space: nowrap;
}

/* --- Animação de Dano (Baseado em mines.css) --- */
.damage-number, .crit-damage-number, .evade-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    font-weight: bold;
    white-space: nowrap;
    text-shadow: 2px 2px 4px #000;
    pointer-events: none;
}
.damage-number {
    font-family: Georgia, serif;
    font-size: 23px;
    color: #fff;
    animation: floating-damage 1.5s ease-out forwards;
}
.crit-damage-number {
    font-family: Georgia, serif;
    font-size: 27px;
    color: red;
    text-shadow: -1px -1px 0 yellow, 1px -1px 0 yellow, -1px 1px 0 yellow, 1px 1px 0 yellow;
    animation: floating-damage-crit 1.5s ease-out forwards;
}
@keyframes floating-damage {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -150%) scale(1.5); }
}
@keyframes floating-damage-crit {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(1.0); }
    50% { transform: translate(-50%, -75%) scale(1.2); }
    100% { opacity: 0; transform: translate(-50%, -150%) scale(1.0); }
}

/* --- Modal de Ranking --- */
.ranking-modal-content {
    width: 95vw;
}
.close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}
#seasonInfo {
    display: block;
    font-size: 1em;
    color: #FFC107;
    margin-bottom: 15px;
}
#rankingListContainer {
  width: 98vw;
    overflow-y: auto;
    background: none;

}
#rankingList {
    list-style: none;
    padding: 2px;
    margin: 0;
    width: 88vw;
}
#rankingList li {
    display: flex;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #777;
}
#rankingList li:last-child {
    border-bottom: none;
}
.rank-position {
    font-size: 1.1em;
    font-weight: bold;
    color: #FFC107;
    width: 40px;
}
.rank-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #888;
    margin-right: 10px;
}
.rank-player-info {
    flex-grow: 1;
    text-align: left;
}
.rank-player-name {
    display: block;
    font-size: 0.9em;
    font-weight: bold;
    color: #e0dccc;
    white-space: nowrap; 
    overflow-x: hidden;
    text-overflow: ellipsis; 
    max-width: 150px;
    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;
}
.rank-guild-name {
    display: block;
    font-size: 0.8em;
    color: lightblue;
    font-weight: bold;
    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;
}
.rank-points {
    font-size: 0.9em;
    font-weight: bold;
    color: gold;
    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;
}

.ranking-tabs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 10px;
}
.ranking-tab {
  background: none;
  border: 1px solid #c9a94a!important;
  color: #e0dccc;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.ranking-tab.active {
  background-color: #c9a94a!important;
  color: #000;
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}
#rankingHistoryList {
  list-style: none;
  padding: 0;
  color: #ddd;
}
#rankingHistoryList li {
  padding: 6px;
  border-bottom: 1px solid #777!important;
  font-size: 0.95em;
}
.ranking-tab.active {
  background-color: #c9a94a!important;
  color: #000;
  box-shadow: 0 0 8px #c9a94a!important;
}
/* --- Estilos para o Top 3 da Arena --- */

/* 1º Lugar (Ouro) */
#rankingList li:nth-child(1) {
    /* Fundo sutil e borda de destaque para o item da lista */
    background: linear-gradient(180deg, #b79c09, #8b7601, #b79c09);
    border-left: 5px solid gold;
}
#rankingList li:nth-child(1) .rank-position,
#rankingList li:nth-child(1) .rank-points {
    /* Cor e sombra de texto para Ouro */
    color: #FFD700; /* Ouro */
    font-size: 0.9em; /* Destaque */
    text-shadow: 0 0 8px #FFD700, 0 0 15px #000;
}
#rankingList li:nth-child(1) .rank-avatar {
    /* Borda do avatar */
    border: 6px solid #FFD700!important;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

/* 2º Lugar (Prata) */
#rankingList li:nth-child(2) {
    /* Fundo sutil e borda de destaque para o item da lista */
    background: linear-gradient(180deg, #a88c8c, #8b6363, #a88c8c);
    border-left: 5px solid silver;
}
#rankingList li:nth-child(2) .rank-position,
#rankingList li:nth-child(2) .rank-points {
    /* Cor e sombra de texto para Prata */
    color: silver; /* Prata */
    font-size: 0.9em;
    text-shadow: 0 0 8px silver;
}
#rankingList li:nth-child(2) .rank-avatar {
    /* Borda do avatar */
    border: 6px solid silver!important;
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.7);
}

/* 3º Lugar (Bronze) */
#rankingList li:nth-child(3) {
    /* Fundo sutil e borda de destaque para o item da lista */
    background: linear-gradient(180deg, rgba(173, 99, 26, 0.5), rgba(152, 81, 11, 0.7), rgba(173, 99, 26, 0.5));;
    border-left: 5px solid #CD7F32; /* Bronze (hex) */
}
#rankingList li:nth-child(3) .rank-position,
#rankingList li:nth-child(3) .rank-points {
    /* Cor e sombra de texto para Bronze */
    color: #CD7F32; /* Bronze */
    font-size: 0.9em;
    text-shadow: 0 0 8px #CD7F32;
}
#rankingList li:nth-child(3) .rank-avatar {
    /* Borda do avatar */
    border: 6px solid #CD7F32!important;
    box-shadow: 0 0 10px rgba(205, 127, 50, 0.7);
}


/* ================================
   AJUSTE ABA "PASSADA" - ARENA
   ================================ */

/* Estrutura geral da lista passada */
#rankingListPast {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 88vw;
}

#rankingListPast li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid #777;
  background: rgba(20, 20, 20, 0.4);
  transition: background 0.2s ease, transform 0.15s ease;
}

#rankingListPast li:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: scale(1.01);
}

/* Alinhamento dos elementos internos */
#rankingListPast .rank-position {
  width: 40px;
  font-weight: bold;
  color: #FFC107;
  flex-shrink: 0;
  text-align: center;
}

#rankingListPast .rank-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid #888;
  margin-right: 10px;
  flex-shrink: 0;
}

#rankingListPast .rank-player-info {
  flex-grow: 1;
  text-align: left;
}

#rankingListPast .rank-player-name {
  font-weight: bold;
  color: #e0dccc;
  display: block;
}

#rankingListPast .rank-guild-name {
  font-size: 0.8em;
  color: #aaa;
}

#rankingListPast .rank-points {
  font-weight: bold;
  color: #fff;
  font-size: 0.85em;
  flex-shrink: 0;
  text-align: right;
  min-width: 80px;
}

/* EFEITO TOP 3 (igual ao da aba "Atual") */
#rankingListPast li:nth-child(1) {
  background: linear-gradient(180deg, #b79c09, #8b7601, #b79c09);
  border-left: 5px solid gold;
}

#rankingListPast li:nth-child(1) .rank-position,
#rankingListPast li:nth-child(1) .rank-points {
  color: #FFD700;
  text-shadow: 0 0 6px #FFD700, 0 0 10px #000;
}

#rankingListPast li:nth-child(1) .rank-avatar {
  border: 6px solid #FFD700!important;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

#rankingListPast li:nth-child(2) {
  background: linear-gradient(180deg, #a88c8c, #8b6363, #a88c8c);
  border-left: 5px solid silver;
}

#rankingListPast li:nth-child(2) .rank-position,
#rankingListPast li:nth-child(2) .rank-points {
  color: silver;
  text-shadow: 0 0 6px silver;
}

#rankingListPast li:nth-child(2) .rank-avatar {
  border: 6px solid silver!important;
  box-shadow: 0 0 10px rgba(192, 192, 192, 0.7);
}

#rankingListPast li:nth-child(3) {
  background: linear-gradient(180deg, rgba(173, 99, 26, 0.5), rgba(152, 81, 11, 0.7), rgba(173, 99, 26, 0.5));
  border-left: 5px solid #CD7F32;
}

#rankingListPast li:nth-child(3) .rank-position,
#rankingListPast li:nth-child(3) .rank-points {
  color: #CD7F32;
  text-shadow: 0 0 6px #CD7F32;
}

#rankingListPast li:nth-child(3) .rank-avatar {
  border: 6px solid #CD7F32!important;
  box-shadow: 0 0 10px rgba(205, 127, 50, 0.7);
}

/* Fim da lista */
#rankingListPast li:last-child {
  border-bottom: none;
}
#potionSlotsContainer {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-bottom: 20px;
    background: rgba(0,0,0,0.3);
    padding: 10px 12px;
    border-radius: 8px;
    gap: 8px;
}
.potion-group { 
  text-align: center; background: linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 11, 0.5), rgba(0, 0, 0, 0.4));
  border-radius: 10px;
  border: 2px solid #777;
  padding: 0 18px;
}
.potion-group h3 { font-size: 0.9em; color: #fff; margin-bottom: 5px; }
.potion-group small { font-size: 0.7em; color: #fff; }
.slots-row { display: flex; gap: 10px; justify-content: center; }
.potion-slot {
    width: 50px; height: 50px;
    background: #222; border: 1px dashed #555;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer; position: relative;
}
.potion-slot img { width: 100%; height: 100%; object-fit: contain; }
.potion-slot span { position: absolute; bottom: 0; right: 0; font-size: 0.7em; background: rgba(0,0,0,0.7); padding: 1px 3px; }

.potion-popup {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 0 0 5px black;
    animation: floatUpPotion 1.5s ease-out forwards;
    z-index: 20;
}

@keyframes floatUpPotion {
    0% { opacity: 0; transform: translate(-50%, 0) scale(0.5); }
    20% { opacity: 1; transform: translate(-50%, -20px) scale(1.2); }
    100% { opacity: 0; transform: translate(-50%, -60px) scale(1); }
}
/* Correções para Poções e Buffs na Arena */

/* Garante que os elementos flutuantes fora da div principal apareçam */
.player-side {
    overflow: visible !important; 
    position: relative;
    z-index: 5;
}

/* Container de Buffs (abaixo do HP) */
.buff-container {
    position: absolute;
    top: 100px!important; /* Ajustado para não ficar em cima do HP */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 5px;
    z-index: 50;
    pointer-events: none;
}

.active-buff-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 0 2px gold);
    animation: blinkPotion 1s infinite alternate;
}

@keyframes blinkPotion {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.6; transform: scale(0.9); }
}

/* Container das Poções Laterais com Cooldown */
.battle-potions-container {
    position: absolute;
    top: 19%!important;
    
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100; /* Z-index alto para ficar acima de tudo */
    background: rgba(0,0,0,0.6);
    padding: 5px;
    border-radius: 6px;
}

/* Slots de batalha */
.battle-potion-slot {
    width: 40px;
    height: 40px;
    position: relative;
    border: 1px solid #777;
    background: #000;
    border-radius: 4px;
}

.cooldown-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: rgba(0, 0, 0, 0.85);
    transition: height 1s linear;
}

/* Animação do texto flutuante */
@keyframes floatUpPotion {
    0% { opacity: 0; transform: translate(-50%, 0) scale(0.5); }
    20% { opacity: 3; transform: translate(-50%, -30px) scale(1.2); }
    100% { opacity: 0; transform: translate(-50%, -80px) scale(1); }
}

/*
 * Novos estilos para o Modal de Seleção de Poções na Arena
 * (Baseado em estilos de inventory.css para consistência)
 */

/* Ajusta o contêiner do modal para um visual mais premium */
#potionSelectModal .modal-content {
    max-width: 90%;
    width: 400px; /* Largura definida para o modal */
    background: linear-gradient(to bottom, #333, #1a1a1a);
    padding: 20px;
    border: 3px solid #c9a94a; /* Borda de destaque */
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* Estilo para a grade de poções */
#potionListGrid {
    display: grid;
    /* Colunas responsivas que se ajustam, permitindo 3 a 4 itens por linha */
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); 
    gap: 10px;
    padding: 10px;
    max-height: 60vh;
    overflow-y: auto;
    border: 1px solid #c9a94a;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.4);
    margin-top: 15px;
}

/* Estilização de cada slot de poção (Mais estiloso) */
.inventory-item {
    background-color: #2e2e2e;
    border: 2px solid #555;
    border-radius: 8px;
    padding: 5px;
    display: flex;
    flex-direction: column; /* Empilha imagem e nome */
    align-items: center;
    justify-content: center; /* Distribui imagem no topo e nome no rodapé */
    height: 120px; /* Altura fixa para manter a grade uniforme */
    text-align: center;
    cursor: pointer;
    position: relative; /* ESSENCIAL para a posição absoluta da quantidade */
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.inventory-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    border-color: gold;
}

.inventory-item img {
    max-width: 100%;
    max-height: 50px; 
    object-fit: contain;
    margin-bottom: 5px;
}

/* 2. Quantidade no canto inferior direito (como no inventário) */
.item-quantity {
    position: absolute;
    top: 1px;
    right: 1px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 4px;
    color: #ffcc00; /* Destaque em amarelo/ouro */
    font-family: 'Cinzel', serif;
    font-size: 0.7em;
    font-weight: bold;
    padding: 2px 4px;
}

/* 3. Nome da poção mais alinhado e bonito no modal */
/* O nome é o último 'div' dentro de '.inventory-item' em arena.js */
.inventory-item > div:last-child {
    font-size: 0.9em !important; 
    color: #e0dccc !important;
    font-weight: 500;
    text-shadow: 1px 1px 1px #000;
    margin-top: auto; /* Garante alinhamento na parte inferior */
    width: 100%;
    padding: 0 2px;
    box-sizing: border-box;
    line-height: 1.1;
}

/* 3. Nome da poção mais alinhado, bonito e com ellipsis */
.inventory-item > div:last-child {
    font-size: 0.8em !important; 
    color: #e0dccc !important;
    font-weight: 500;
    text-shadow: 1px 1px 1px #000;
    margin-top: auto;
    width: 100%;
    padding: 0 2px;
    box-sizing: border-box;
    
    overflow: hidden; 
    text-overflow: ellipsis;
}

#attackBtnContainer:active { transform: scale(0.95); }
.attack-anim { animation: attack-pulse 0.2s ease-in-out; }
@keyframes attack-pulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }

#skip {
  color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1.1em;
    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);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 12px;
}

/* =======================================================================
   REMOÇÃO FORÇADA DA BARRA DO GOOGLE (FIX DEFINITIVO)
   ======================================================================= */

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

/* 2. Garante que o body nunca desça */
body {
    top: 0px !important; 
    margin-top: 0px !important;
    position: static !important; /* Previne deslocamento relativo */
}

/* 3. Esconde tooltips de tradução (popups ao passar o mouse no texto) */
#goog-gt-tt, 
.goog-te-balloon-frame {
    display: none !important;
    visibility: hidden !important;
}

/* 4. Esconde o elemento original do widget se ele tentar aparecer */
.goog-te-gadget {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* 5. Previne que o Google injete texto 'Translated by Google' */
font > font {
    background-color: transparent !important;
    box-shadow: none !important;
    position: static !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;
    border: 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;
}
/* --- EFEITO PULSE DO RANKING CP (INSERIDO) --- */
.pulse { animation: pulse 2s infinite; }
@keyframes pulse {
    0%{box-shadow:0 0 0px rgba(255,215,0,1);}
    70%{box-shadow:2px 2px 56px rgba(255,215,0,0.9);}
    100%{box-shadow:0 0 0 rgba(255,215,0,0.8);}
}

/* Trecho a ser MODIFICADO (Ranking Atual) */
#rankingList li:nth-child(1) .rank-avatar { /* Borda do avatar */ 
    border: 3px solid #FFD700; 
    /* Adicionado o efeito de pulse */
    animation: pulse 2s infinite; 
}

/* Trecho a ser MODIFICADO (Ranking Passada) */
#rankingListPast li:nth-child(1) .rank-avatar { 
    border: 3px solid #FFD700; 
    /* Adicionado o efeito de pulse */
    animation: pulse 2s infinite; 
}