/* --- VARIÁVEIS GLOBAIS --- */
:root {
    --bg-dark: #0a0a0a;
    --panel-bg: rgba(18, 18, 22, 0.96);
    --border-gold: #8b7355;
    --text-gold: #d4af37;
    --green-online: #00ff00;
    --gray-offline: #b40000;
    --text-main: #e0e0e0;
    --wa-green: #25D366;
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    background: var(--bg-dark) url('../assets/bg.png') no-repeat center top fixed;
    background-size: cover;
    font-family: 'Verdana', sans-serif;
    color: var(--text-main);
    line-height: 1.5;
}

a { text-decoration: none; transition: 0.3s; }

/* --- ESTRUTURA PRINCIPAL --- */
.main-container {
    display: grid;
    grid-template-columns: 260px 1fr 260px;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto 0 auto;
    padding: 0 20px;
    flex: 1;
}

.panel {
    background: var(--panel-bg);
    border: 2px solid var(--border-gold);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(0,0,0,0.8);
    height: fit-content;
}

.panel-header {
    background: linear-gradient(to bottom, #4a3b2a, #2a1f14);
    padding: 10px;
    text-align: center;
    border-bottom: 2px solid var(--border-gold);
    font-weight: bold;
    color: var(--text-gold);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* ANTI-VAZAMENTO DE GRID APLICADO AQUI */
.content-main { 
    padding: 25px; 
    min-height: 400px; 
    max-width: 100%; 
    min-width: 0; /* Força o conteúdo a respeitar a largura máxima */
}

/* Remoção de Paddings Duplos para as sub-páginas */
.dashboard-container, 
.profile-container, 
.rank-container, 
.shop-container, 
.commands-container { 
    padding: 0; 
    width: 100%; 
    max-width: 100%; 
}

/* Oculta as bordas duplicadas no Rank */
.rank-container {
    background: transparent;
    border: none;
}

/* --- ÁREA DA LOGO --- */
.logo-area {
    text-align: center;
    padding: 20px 0;
    animation: fadeIn 1s ease-in;
    border-bottom: 2px solid var(--border-gold);
}

.logo-img {
    width: 180px;
    height: 180px; 
    object-fit: cover;
    border: 3px solid var(--border-gold);
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0,0,0,0.8), 0 0 10px rgba(212, 175, 55, 0.3);
    background: #000;
}

/* --- MENU LATERAL --- */
.nav-list { list-style: none; padding: 0; margin: 0; }
.nav-list li a {
    display: block; padding: 12px 20px; color: #ccc; border-bottom: 1px solid #333; font-size: 0.9rem;
}
.nav-list li a:hover {
    background: rgba(139, 115, 85, 0.2); color: #fff; padding-left: 25px; border-left: 4px solid var(--text-gold);
}
.nav-list li a i { width: 25px; text-align: center; color: var(--text-gold); }

/* --- BOTÕES E FORMS --- */
.form-group, .form-row { margin-bottom: 15px; }
label, .form-row label { display: block; margin-bottom: 5px; color: var(--text-gold); font-size: 0.9rem; font-weight: bold; }

input, select, .form-row input, .form-row select {
    width: 100%; padding: 12px; background: #000;
    border: 1px solid var(--border-gold); color: white; border-radius: 3px;
    box-sizing: border-box;
}
input:focus, select:focus { outline: none; border-color: #fff; }
select option { background-color: #121216; color: #fff; padding: 10px; }

.btn {
    width: 100%; padding: 12px; border: none; cursor: pointer;
    font-weight: bold; text-transform: uppercase; margin-top: 10px; border-radius: 3px;
}
.btn-login { background: #1a5fb4; color: white; border: 1px solid #4a90e2; }
.btn-download { 
    background: linear-gradient(to bottom, #2e7d32, #1b5e20); color: white; margin-top: 30px; 
    font-size: 1.3rem; padding: 20px; border: 2px solid #4caf50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}
.btn:hover { filter: brightness(1.2); }
.error-msg { color: #ff5555; font-size: 0.85rem; display: block; margin-top: 5px; }

/* --- STATUS ONLINE --- */
.status-box { text-align: center; padding: 20px; }
.server-status-indicator { color: var(--green-online); font-size: 0.9rem; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.server-status-indicator-off { color: var(--gray-offline); }

.pulsating-dot {
    display: inline-block; width: 10px; height: 10px; background: var(--green-online); border-radius: 50%; box-shadow: 0 0 10px var(--green-online); margin-right: 5px; animation: pulse 2s infinite;
}
.pulsating-dot-off {
    display: inline-block; width: 10px; height: 10px; background: var(--gray-offline); border-radius: 50%; margin-right: 5px;
}
.online-number { font-size: 2.5rem; color: var(--green-online); font-weight: bold; text-shadow: 0 0 15px rgba(0, 255, 0, 0.4); display: block; line-height: 1; }
.online-label { color: var(--green-online); font-size: 0.8rem; font-weight: bold; opacity: 0.8; margin-top: 5px; display: block; }
.social-icons { display: flex; justify-content: center; gap: 20px; padding: 20px; font-size: 1.8rem; }
.social-icons a { color: #888; }
.social-icons a:hover { color: var(--text-gold); transform: scale(1.1); }

/* --- HOME / DASHBOARD --- */
.mini-status-bar {
    background: rgba(0, 0, 0, 0.6); border-bottom: 1px solid #333; padding: 8px 20px;
    display: flex; justify-content: space-between; font-size: 0.75rem; color: #888;
    text-transform: uppercase; letter-spacing: 1px;
}
.mini-stat-item i { margin-right: 5px; color: var(--text-gold); }
.status-online { color: var(--green-online); font-weight: bold; }
.status-offline { color: var(--gray-offline); font-weight: bold; }

.welcome-box {
    background: rgba(212, 175, 55, 0.1); border: 1px solid var(--border-gold);
    padding: 20px; border-radius: 5px; margin-bottom: 30px; text-align: center;
}
.welcome-box h2 { color: var(--text-gold); margin-top: 0; }

.dashboard-header {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; /* Correção para o botão não vazar no mobile */
    gap: 15px;
    border-bottom: 2px solid var(--border-gold); padding-bottom: 15px; margin-bottom: 20px;
}
.btn-create-char {
    background: linear-gradient(to bottom, #2e7d32, #1b5e20); color: white; border: 1px solid #4caf50;
    padding: 10px 20px; border-radius: 4px; cursor: pointer; font-weight: bold; text-transform: uppercase;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3); transition: 0.3s;
}
.btn-create-char:hover { filter: brightness(1.2); box-shadow: 0 0 15px rgba(76, 175, 80, 0.6); }

.char-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 15px; margin-bottom: 30px; }

/* Nova estrutura de container em coluna */
.char-card-container { background: rgba(0, 0, 0, 0.6); border: 1px solid #444; border-radius: 5px; display: flex; flex-direction: column; transition: 0.3s; overflow: hidden; }
.char-card-container:hover { border-color: var(--text-gold); background: rgba(212, 175, 55, 0.05); }

/* A parte superior principal (igual ao card antigo) */
.char-card-main { padding: 15px; display: flex; align-items: center; gap: 15px; }
.char-info h4 { margin: 0 0 5px 0; color: #fff; font-size: 1.1rem; word-break: break-word; }

/* Área oculta do acordeão */
.char-expanded-content { padding: 0 15px 15px 15px; display: none; flex-direction: column; gap: 8px; border-top: 1px dashed #333; margin-top: 5px; padding-top: 15px; }
.expanded-stat { display: flex; justify-content: space-between; font-size: 0.85rem; color: #ccc; }

/* Botão de abrir/fechar */
.btn-expand { width: 100%; background: rgba(255, 255, 255, 0.05); color: #888; border: none; border-top: 1px solid #333; padding: 8px; cursor: pointer; font-size: 0.8rem; text-transform: uppercase; font-weight: bold; transition: 0.3s; }
.btn-expand:hover { background: rgba(212, 175, 55, 0.1); color: var(--text-gold); }
.char-info p { margin: 0; color: #aaa; font-size: 0.85rem; }
.server-badge { display: inline-block; background: #1a5fb4; color: white; padding: 2px 6px; border-radius: 3px; font-size: 0.7rem; margin-top: 5px; }

.create-char-section {
    display: none; background: rgba(18, 18, 22, 0.95); border: 1px solid var(--border-gold);
    padding: 25px; border-radius: 5px; box-shadow: inset 0 0 30px rgba(0,0,0,0.8);
    animation: slideDown 0.4s ease forwards; margin-top: 20px; margin-bottom: 30px;
}
.alert-box { padding: 15px; margin-bottom: 20px; border-radius: 4px; color: #fff; }
.alert-error { background: rgba(255,0,0,0.2); border-left: 4px solid #ff5555; }
.alert-success { background: rgba(0,255,0,0.1); border-left: 4px solid #4caf50; }
.force-show { display: block !important; }

/* --- PROFILE --- */
.profile-header { background: rgba(0, 0, 0, 0.8); border: 2px solid var(--border-gold); border-radius: 5px; padding: 30px; display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.profile-title h1 { color: var(--text-gold); font-size: 2.2rem; margin: 0 0 5px 0; text-transform: uppercase; text-shadow: 0 0 10px rgba(212, 175, 55, 0.3); word-break: break-word; }
.profile-badge { background: #1a5fb4; padding: 4px 10px; border-radius: 3px; font-size: 0.85rem; color: white; display: inline-block; margin-right: 10px; margin-bottom: 5px; }
.status-info { margin-top: 15px; font-size: 0.9rem; color: #aaa; border-top: 1px solid #333; padding-top: 10px; }
.status-info span { display: block; margin-bottom: 5px; }

.section-block { background: rgba(18, 18, 22, 0.95); border: 1px solid #444; border-radius: 5px; padding: 20px; margin-top: 20px; }
.section-title { color: var(--text-gold); border-bottom: 1px solid #333; padding-bottom: 10px; margin-top: 0; font-size: 1.2rem; text-transform: uppercase; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 15px; }
.stat-item { background: #0a0a0a; border: 1px solid #333; padding: 15px; text-align: center; border-radius: 4px; }
.stat-name { display: block; color: #888; font-size: 0.8rem; text-transform: uppercase; margin-bottom: 5px; font-weight: bold; }
.stat-val { display: block; color: #fff; font-size: 1.4rem; font-weight: bold; }
.val-hp { color: #ff5555; } .val-mp { color: #5555ff; } .val-stm { color: #55ff55; }

/* Grid dinâmico para garantir layout 100% no mobile */
.data-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(100%, 1fr)); gap: 10px; }
.data-list li { background: #0a0a0a; border: 1px solid #333; padding: 12px 15px; border-radius: 3px; display: flex; justify-content: space-between; align-items: center; }
.data-name { color: #ddd; font-weight: bold; }
.data-level { color: var(--text-gold); font-size: 0.9rem; }

.inventory-container { display: flex; justify-content: center; background: #111; padding: 12px; border: 1px solid #333; border-radius: 5px; margin-top: 15px; overflow: visible; }
.inventory-grid { display: grid; grid-template-columns: repeat(5, 48px); gap: 6px; }
.item-slot { width: 48px; height: 48px; background: #222; border: 1px solid #555; border-radius: 4px; position: relative; display: flex; justify-content: center; align-items: center; cursor: pointer; }
.item-slot:hover { border-color: var(--text-gold); background: #333; z-index: 50; }

.equipped-flag { position: absolute; top: -5px; right: -5px; background: #2e7d32; border: 1px solid #000; color: white; font-size: 0.7rem; padding: 2px 5px; border-radius: 3px; font-weight: bold; z-index: 2; }
.qty-flag { position: absolute; bottom: 2px; right: 4px; color: white; font-size: 0.8rem; font-weight: bold; text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; z-index: 2; }

.item-tooltip { display: none; position: absolute; bottom: 110%; left: 50%; transform: translateX(-50%); background: rgba(10, 10, 10, 0.95); border: 1px solid #777; padding: 10px; border-radius: 4px; width: max-content; max-width: 250px; z-index: 10; text-align: left; box-shadow: 0 5px 15px rgba(0,0,0,0.8); pointer-events: none; }
.item-slot:hover .item-tooltip { display: block; }
.tt-title { color: var(--text-gold); font-weight: bold; margin-bottom: 5px; display: block; border-bottom: 1px solid #444; padding-bottom: 3px; }
.tt-desc { color: #ccc; font-size: 0.85rem; display: block; margin-top: 3px; line-height: 1.3; }

.log-list { list-style: none; padding: 0; margin: 0; max-height: 350px; overflow-y: auto; border: 1px solid #333; border-radius: 4px; }
.log-list li { padding: 12px; border-bottom: 1px solid #222; font-size: 0.9rem; color: #ccc; word-break: break-word; }
.log-list li:last-child { border-bottom: none; }
.log-list li:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
.log-list li strong { color: var(--text-gold); }
.log-list::-webkit-scrollbar { width: 8px; }
.log-list::-webkit-scrollbar-track { background: #111; }
.log-list::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }
.log-list::-webkit-scrollbar-thumb:hover { background: var(--text-gold); }
.btn-back { display: inline-block; padding: 10px 20px; background: #2a2a30; color: white; border: 1px solid #444; border-radius: 3px; margin-top: 20px; }
.btn-back:hover { background: var(--text-gold); color: #000; }

/* --- SPRITES CSS --- */
.char-avatar-wrapper, .profile-avatar-wrapper {
    min-width: 64px; background: #111; border: 1px solid var(--border-gold);
    border-radius: 4px; overflow: hidden; position: relative; display: block;
}
.profile-avatar-wrapper { width: 128px; height: 128px; min-width: 128px; border: 2px solid #444; border-radius: 8px; box-shadow: 0 0 15px rgba(0,0,0,0.9); }
.char-avatar-wrapper { width: 64px; height: 64px; }

.char-avatar-sprite, .profile-avatar-sprite {
    position: absolute; top: 0; left: 0; width: 400%; height: auto; min-height: 100%;
    max-width: none !important; image-rendering: pixelated;
    animation: walk-anim 0.8s steps(4) infinite;
}

.sprite-container { width: 32px; height: 32px; overflow: hidden; display: flex; justify-content: flex-start; }
.auto-sprite { height: 32px !important; width: auto !important; max-width: none !important; image-rendering: pixelated; }
.animated-sprite { animation: walk-anim 0.8s infinite; animation-timing-function: steps(var(--frames, 4)); }

/* --- COMMANDS --- */
.command-section { margin-bottom: 35px; background: rgba(0, 0, 0, 0.3); border: 1px solid #333; border-radius: 6px; padding: 20px; }
.command-section h3 { color: var(--text-gold); font-size: 1.3rem; margin-top: 0; margin-bottom: 15px; border-bottom: 2px solid var(--border-gold); padding-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.command-list { list-style: none; padding: 0; margin: 0; color: #d0d0d0; font-size: 0.95rem; }
.command-list li { margin-bottom: 15px; line-height: 1.6; padding-left: 15px; border-left: 3px solid #444; transition: 0.3s; }
.command-list li:hover { border-left-color: var(--text-gold); background: rgba(212, 175, 55, 0.05); }

.hotkey {
    background: #2a2a2a; border: 1px solid #555; border-radius: 4px; padding: 3px 8px;
    color: #fff; font-family: 'Courier New', Courier, monospace; font-weight: bold;
    display: inline-block; box-shadow: 0 3px 0 #111; margin-right: 8px; margin-bottom: 5px;
    text-transform: uppercase; font-size: 0.9rem;
}
.command-note { display: block; font-size: 0.85rem; color: #999; font-style: italic; margin-top: 5px; }
.command-desc { color: #e0e0e0; }

/* --- RANK --- */
.filter-bar { display: flex; gap: 15px; margin-bottom: 20px; flex-wrap: wrap; background: rgba(0,0,0,0.5); padding: 15px; border-radius: 4px; }
.filter-group { display: flex; flex-direction: column; flex: 1; min-width: 120px; }

.table-responsive { width: 100%; max-width: 100vw; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #333; border-radius: 4px; }
.rank-table { width: 100%; border-collapse: collapse; min-width: 500px; }
.rank-table th { background: linear-gradient(to bottom, #4a3b2a, #2a1f14); color: var(--text-gold); padding: 12px; text-align: left; border-bottom: 2px solid var(--border-gold); white-space: nowrap; }
.rank-table td { padding: 12px; border-bottom: 1px solid #333; color: #ddd; vertical-align: middle; }
.rank-table tr:hover { background: rgba(212, 175, 55, 0.05); }
.rank-nick { color: #fff; font-weight: bold; font-size: 1.1rem; text-decoration: none; }
.rank-nick:hover { color: var(--text-gold); text-decoration: underline; }

.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 25px; flex-wrap: wrap; }
.page-link { padding: 8px 15px; background: #2a2a30; border: 1px solid #444; color: white; border-radius: 3px; }
.page-link:hover { background: var(--text-gold); color: #000; }
.page-active { background: var(--border-gold); color: #fff; border-color: var(--text-gold); }

/* --- SHOP --- */
.shop-intro { background: rgba(37, 211, 102, 0.05); border: 1px solid var(--wa-green); padding: 20px; border-radius: 5px; margin-bottom: 30px; text-align: center; }
.shop-intro h2 { color: var(--wa-green); margin-top: 0; margin-bottom: 10px; }
.shop-intro p { margin: 5px 0; color: #ddd; font-size: 0.9rem; }

.packages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.package-card { background: rgba(0,0,0,0.5); border: 1px solid #444; border-radius: 6px; padding: 15px; text-align: center; transition: 0.3s; }
.package-card:hover { border-color: var(--text-gold); transform: translateY(-5px); background: rgba(212, 175, 55, 0.05); box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.package-img-container { width: 100%; aspect-ratio: 1 / 1; background: #111; border: 1px solid #333; margin-bottom: 15px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 4px; }
.package-img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.package-card:hover .package-img { transform: scale(1.1); }
.package-title { color: var(--text-gold); font-size: 1.1rem; font-weight: bold; margin-bottom: 5px; }
.package-amount { font-size: 1.2rem; font-weight: bold; margin-bottom: 10px; display: block; }
.package-price { font-size: 1.5rem; color: var(--green-online); font-weight: bold; margin: 15px 0; text-shadow: 0 0 10px rgba(0,255,0,0.2); }
.btn-buy { display: block; width: 100%; padding: 10px; background: transparent; border: 1px solid var(--wa-green); color: var(--wa-green); text-transform: uppercase; font-size: 0.8rem; font-weight: bold; cursor: pointer; border-radius: 4px; transition: 0.3s; }
.btn-buy:hover { background: var(--wa-green); color: #fff; }

/* --- REGRAS E TERMOS --- */
.rules-intro, .terms-intro { margin-bottom: 30px; font-size: 1rem; color: #ccc; line-height: 1.6; }
.rule-block, .term-block { background: rgba(0, 0, 0, 0.4); border: 1px solid #333; padding: 20px; border-radius: 5px; margin-bottom: 25px; }
.rule-category-title, .term-category-title { color: var(--text-gold); font-size: 1.2rem; border-bottom: 1px solid #444; padding-bottom: 10px; margin-bottom: 15px; font-weight: bold; text-transform: uppercase; }
.rule-item { margin-bottom: 20px; }
.rule-item:last-child { margin-bottom: 0; }
.rule-name { color: #fff; font-weight: bold; font-size: 1.05rem; display: block; margin-bottom: 5px; }
.rule-desc, .term-text { color: #bbb; font-size: 0.95rem; line-height: 1.5; margin: 0; }

/* --- FOOTER --- */
footer { text-align: center; padding: 40px; background: rgba(0,0,0,0.8); border-top: 1px solid var(--border-gold); margin-top: 40px; color: #666; width: 100%; }

/* --- ANIMAÇÕES GERAIS --- */
@keyframes walk-anim {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(0, 255, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 255, 0, 0); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* --- RESPONSIVIDADE OTIMIZADA PARA MOBILE --- */
@media (min-width: 600px) {
    .data-list { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
    .logo-img { width: 150px; height: 150px; }
}

@media (max-width: 900px) {
    .main-container { 
        /* SOLUÇÃO DE CULLING: Evita que o grid estoure a largura máxima da tela */
        grid-template-columns: minmax(0, 1fr); 
    }
    .logo-area { text-align: center; padding: 40px 0 20px 0; border-bottom: none; }
    .aside-left .logo-area { display: none; }
}

@media (max-width: 768px) {
    .content-main { padding: 15px; } /* Reduz espaçamentos laterais esmagadores no celular */
    
    .filter-bar { flex-direction: column; gap: 10px; }
    .filter-group { flex: 1 1 100%; min-width: 100%; }
    .filter-group button { margin-top: 10px; }
    
    .profile-header { flex-direction: column; align-items: center; text-align: center; padding: 15px; }
    .status-info { justify-content: center; text-align: center; }
    
    .btn-create-char { width: 100%; }
}

@media (max-width: 600px) {
    .logo-img { width: 150px; height: 150px; }
}

/* ========================================================================== */
/* --- ENCICLOPÉDIA (NPCS, BOSSES E CRIATURAS) ---                            */
/* ========================================================================== */

.info-section {
    background: var(--panel-bg); 
    border: 2px solid var(--border-gold);
    border-radius: 4px; 
    margin-bottom: 30px; 
    padding: 20px;
}

.section-title {
    color: var(--text-gold); 
    font-size: 1.3rem; 
    border-bottom: 1px solid #444;
    padding-bottom: 10px; 
    margin-bottom: 20px; 
    text-transform: uppercase;
    font-weight: bold; 
    display: flex; 
    align-items: center; 
    gap: 10px;
}

/* Grid Dinâmico Automático: Adapta colunas perfeitamente do PC ao Celular */
.entity-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); 
    gap: 15px;
}

.entity-card {
    background: rgba(0, 0, 0, 0.6); 
    border: 1px solid #444;
    padding: 15px 5px; 
    text-align: center; 
    position: relative;
    transition: all 0.3s ease; 
    cursor: help; 
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.entity-card:hover {
    border-color: var(--text-gold); 
    background: rgba(212, 175, 55, 0.05); 
    transform: translateY(-3px);
}

/* Trava absoluta do tamanho da imagem (Impede de ficar gigante) */
.entity-img {
    width: 64px !important; 
    height: 64px !important; 
    object-fit: contain; 
    margin-bottom: 10px;
}

.entity-name {
    display: block; 
    color: #ccc; 
    font-size: 0.85rem; 
    font-weight: bold; 
    text-transform: uppercase;
}

.entity-card:hover .entity-name { 
    color: #fff; 
}

/* Sistema de Tooltip (Caixa de Texto ao passar o mouse) */
.tooltip-text {
    visibility: hidden; 
    width: 220px; 
    background-color: rgba(10, 10, 10, 0.95);
    color: #fff; 
    text-align: left; 
    border: 1px solid var(--text-gold); 
    padding: 10px;
    border-radius: 4px; 
    font-size: 0.8rem; 
    position: absolute; 
    z-index: 100;
    bottom: 110%; 
    left: 50%; 
    transform: translateX(-50%); 
    opacity: 0; 
    transition: opacity 0.3s;
    pointer-events: none;
}

.tooltip-text::after {
    content: ""; 
    position: absolute; 
    top: 100%; 
    left: 50%; 
    margin-left: -6px;
    border-width: 6px; 
    border-style: solid; 
    border-color: var(--text-gold) transparent transparent transparent;
}

.entity-card:hover .tooltip-text { 
    visibility: visible; 
    opacity: 1; 
}
