/* ==========================================
   NOVA FUNDAÇÃO: TEMA "DARK NEBULA" E-SPORTS
========================================== */
:root {
    /* Cores das Patentes (Ajustadas para mais saturação e brilho) */
    --bronze: #e59866; 
    --prata: #d5dbdb; 
    --ouro: #f1c40f;
    --platina: #00e5ff; 
    --diamante: #9b59b6; /* Mudamos diamante para um roxo cristalino premium */
    --mestre: #e74c3c; /* Vermelho sangue vivo */
    --lenda: #ff007f; /* Rosa neon cyberpunk super agressivo */
    
    /* Nova Paleta da Interface (Ultra Escura para destacar os neons) */
    --bg-dark-game: #050508; /* Quase preto absoluto, leve tom de meia-noite */
    --bg-panel: rgba(15, 15, 20, 0.7); /* Vidro fumê mais denso */
    --glass: rgba(20, 20, 25, 0.85); 
    --glass-border: rgba(255, 255, 255, 0.05); /* Borda de vidro super sutil */
    
    /* Cores de Ação */
    --neon-main: #00ffcc; /* Verde/Ciano Cyberpunk */
    --neon-second: #ff0055; /* Rosa Choque */
    --neon-accent: #7000ff; /* Roxo Profundo */
    
    /* Textos */
    --text-primary: #f8f9f9;
    --text-secondary: #839192;
}

/* ==========================================
   🛡️ CORREÇÃO: TRAVA O FUNDO DO LOBBY NA TELA
   ========================================== */
html, body {
    height: 100%;
    min-height: 100vh;
    min-height: -webkit-fill-available; /* Salva-vidas para Safari/iPhone */
}

/* ==========================================
   CONFIGURAÇÕES GERAIS E BODY
========================================== */
html {
    scroll-behavior: smooth;
}

body { 
    background-color: var(--bg-dark-game); 
    color: var(--text-primary);
    font-family: 'Rajdhani', sans-serif; 
    margin: 0; 
    padding: 0;
    
    /* Novo Fundo Global: Profundidade estilo "Vazio do Espaço" */
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(0, 255, 204, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(112, 0, 255, 0.08) 0%, transparent 40%);
    background-attachment: fixed;
    
    /* TRAVA A TELA ESTILO JOGO MOBILE */
    height: 100vh; 
    width: 100vw; 
    overflow: hidden; 
    -webkit-tap-highlight-color: transparent;
    padding-top: 70px; 
    padding-bottom: 80px; 
    box-sizing: border-box;
}

h1, h2, h3 { 
    font-family: 'Black Ops One', cursive; 
    text-transform: uppercase; 
    margin: 0; 
    letter-spacing: 1px; 
}

.text-gold { color: var(--ouro); text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
.text-blue { color: var(--neon-blue); text-shadow: 0 0 15px rgba(255, 170, 0, 0.6); } 

.container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 20px; 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}

/* ==========================================
   HUD SUPERIOR (CABEÇALHO FIXO)
========================================== */
.app-hud {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 9999;
    background: rgba(10, 10, 15, 0.9); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 242, 234, 0.2);
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 15px; box-sizing: border-box; box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.hud-profile { display: flex; align-items: center; gap: 8px; cursor: pointer; }
#hud-avatar { width: 35px; height: 35px; border-radius: 5px; border: 1px solid var(--neon-main); object-fit: cover; }
.hud-info { display: flex; flex-direction: column; line-height: 1.1; }
#hud-name { font-weight: 900; font-size: 13px; color: white; text-transform: uppercase; }

.hud-currency {
    display: flex; align-items: center; background: rgba(0,0,0,0.6);
    border: 1px solid #333; border-radius: 20px; padding: 2px 4px 2px 10px; cursor: pointer;
}
#hud-vip-saldo { font-weight: 900; font-size: 14px; margin-right: 5px; }
.hud-add { background: #00ffaa; color: black; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; margin-left: 5px; font-size: 16px; }

.btn-live {
    background: #ff0055; color: white; text-decoration: none; padding: 5px 12px;
    border-radius: 20px; font-weight: 900; font-size: 11px; animation: pulseLive 1.5s infinite;
    border: 1px solid #ffaaaa; box-shadow: 0 0 10px rgba(255,0,85,0.6);
}
.btn-live.hidden { display: none; }

/* ==========================================
   MENU INFERIOR (ESTILO APP MOBILE)
========================================== */
.bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; width: 100vw;
    background: rgba(10, 10, 16, 0.85); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(0, 242, 234, 0.2); 
    justify-content: space-around; align-items: center;
    padding: 10px 0 15px 0; z-index: 99999; box-shadow: 0 -5px 20px rgba(0,0,0,0.8);
}

.nav-item {
    display: flex; flex-direction: column; align-items: center; color: #666;
    text-decoration: none; font-size: 12px; font-weight: bold;
    font-family: 'Rajdhani', sans-serif; text-transform: uppercase;
    transition: 0.3s; gap: 4px; cursor: pointer;
}
.nav-item.active { color: var(--neon-main); text-shadow: 0 0 10px rgba(0, 242, 234, 0.5); }

.nav-icon { font-size: 24px; filter: grayscale(100%) opacity(0.6); transition: 0.3s; }
.nav-item.active .nav-icon { filter: grayscale(0%) opacity(1); transform: translateY(-3px) scale(1.1); }

/* Esconde botões velhos PC se existirem */
.botoes-topo-antigos, .btn-jogo { display: none !important; }

/* ==========================================
   SISTEMA DE PAINÉIS (Telas do Jogo)
========================================== */
.game-panel {
    position: fixed; top: 60px; left: 0; width: 100vw;
    height: calc(100vh - 130px); background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(15px); z-index: 100;
    overflow-y: auto; box-sizing: border-box; padding-bottom: 30px;
    opacity: 0; visibility: hidden; transform: translateY(30px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.game-panel.active { opacity: 1; visibility: visible; transform: translateY(0); }

/* ==========================================
   TELA 1: LOBBY E EMBLEMA DE PERFIL PREMIUM
========================================== */
.lobby-principal {
    display: flex; flex-direction: column; align-items: center; 
    /* Removemos o justify-content: center; para não esconder o topo ao rolar */
    text-align: center;
    animation: fadeInLobby 1s ease-out forwards;
    
    /* 🔒 A MURALHA DE FERRO: Prega o Lobby na tela e deixa só o miolo rolar! */
    position: fixed;
    top: 60px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 130px);
    overflow-y: auto; 
    padding-top: 30px;
    padding-bottom: 50px;
    box-sizing: border-box;
}

/* Fundo Premium do Lobby */
.lobby-principal.lobby-bg {
    background: radial-gradient(circle at 50% 10%, rgba(100, 0, 255, 0.15) 0%, rgba(0,0,0,0) 50%), var(--bg-dark-game);
    /* Removemos a borda curvada para selar os buracos pretos nas laterais e embaixo */
    border-radius: 0; 
    box-shadow: none; 
}

.lobby-principal.lobby-bg::after {
    content: ''; position: absolute; bottom: -150px; left: 50%; transform: translateX(-50%);
    width: 300px; height: 300px; background: var(--neon-main);
    filter: blur(150px); opacity: 0.1; pointer-events: none; z-index: 0;
}

/* Emblema de Perfil 3D */
.lobby-profile-badge {
    position: relative; width: 140px; height: 140px; margin: 0 auto 15px;
    cursor: pointer; transition: transform 0.3s ease; z-index: 10;
}
.lobby-profile-badge:hover { transform: scale(1.05); }

.lobby-profile-badge .lobby-badge-frame {
    width: 100%; height: 100%; border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(20, 15, 30, 0.9) 0%, rgba(5, 5, 10, 1) 100%);
    border: 3px solid var(--neon-main); padding: 8px;
    box-shadow: inset 0 0 15px var(--neon-main), 0 0 25px rgba(0, 242, 234, 0.3);
    position: relative; box-sizing: border-box;
}

.lobby-profile-badge .lobby-avatar {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1); box-shadow: 0 0 15px var(--neon-main);
}

.lobby-profile-badge .lobby-patente-panel {
    position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(20, 15, 30, 0.95), rgba(10, 10, 15, 1));
    border: 2px solid var(--neon-main); padding: 4px 18px; border-radius: 20px;
    box-shadow: 0 0 15px rgba(0, 242, 234, 0.4); white-space: nowrap; text-transform: uppercase;
    font-family: 'Black Ops One'; font-size: 13px;
}
.lobby-profile-badge .lobby-patente-text { color: var(--text-primary); text-shadow: 0 0 8px var(--neon-main); }
#lobby-nome-texto { text-shadow: 0 0 20px var(--neon-main); z-index: 1; position: relative;}

/* ==========================================
   PASSE MENSAL VITRINE (LOBBY)
========================================== */
.lobby-checkin-container {
    width: 95%; max-width: 600px; background: var(--bg-panel);
    border: 1px solid rgba(255,255,255,0.05); border-top: 2px solid var(--neon-main);
    border-radius: 16px; padding: 15px 10px; margin-top: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5); backdrop-filter: blur(15px); z-index: 1; position: relative;
}

.lobby-checkin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding: 0 5px; }
.lobby-checkin-header h3 { color: white; font-size: 16px; margin: 0; font-family: 'Black Ops One'; text-shadow: 0 0 10px var(--neon-main); }

#lobby-streak-badge {
    background: linear-gradient(135deg, var(--neon-second), #ff6600); color: white; padding: 5px 14px;
    border-radius: 20px; font-size: 11px; font-weight: bold; font-family: 'Rajdhani'; box-shadow: 0 0 15px rgba(255,0,255,0.4);
}

.lobby-checkin-grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; padding: 5px;
    max-height: 300px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--neon-main) rgba(0,0,0,0.2);
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out, padding 0.4s ease;
    transform-origin: top;
}

/* A mágica que esconde tudo macio! */
.lobby-checkin-grid.escondido {
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    opacity: 0;
    margin: 0;
    pointer-events: none;
}

.lobby-checkin-grid::-webkit-scrollbar { width: 5px; }
.lobby-checkin-grid::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 10px; }
.lobby-checkin-grid::-webkit-scrollbar-thumb { background: var(--neon-main); border-radius: 10px; }

.dia-mensal {
    display: flex; flex-direction: column; align-items: center; justify-content: space-between;
    background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.03); border-radius: 10px;
    padding: 10px 2px; transition: all 0.3s ease; text-align: center; position: relative; overflow: hidden;
}

.dia-mensal:not(.concluido):hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }

.dia-mensal.especial { border-color: rgba(255, 215, 0, 0.3); background: linear-gradient(180deg, rgba(255,215,0,0.05) 0%, rgba(0,0,0,0) 100%); }
.dia-mensal.especial .dia-premio { color: var(--ouro); text-shadow: 0 0 5px rgba(255,215,0,0.5); }

/* Dia 30 Gigante */
.dia-mensal.boss { 
    grid-column: span 5; background: linear-gradient(90deg, rgba(255,0,255,0.2) 0%, rgba(100,0,255,0.2) 100%);
    border: 1px solid var(--neon-second); box-shadow: 0 0 20px rgba(255,0,255,0.3);
    flex-direction: row; justify-content: space-around; padding: 15px; margin-top: 5px;
}

.dia-mensal.concluido { border-color: transparent; background: rgba(0, 255, 170, 0.03); opacity: 0.3; filter: grayscale(100%); }
.dia-mensal.ativo { border-color: var(--neon-main); background: rgba(0, 242, 234, 0.1); transform: scale(1.05); box-shadow: 0 0 20px var(--neon-main); z-index: 2; animation: pulseActiveDay 2s infinite; }

.dia-num { font-size: 10px; color: #666; font-weight: 900; font-family: 'Black Ops One'; margin-bottom: 4px; }
.dia-mensal.boss .dia-num { font-size: 14px; color: white; margin: 0; }

.dia-icon { font-size: 20px; margin-bottom: 3px; filter: drop-shadow(0 0 5px rgba(255,255,255,0.3)); transition: 0.3s; }
.dia-mensal.ativo .dia-icon { transform: scale(1.2); filter: drop-shadow(0 0 8px var(--neon-main)); }
.dia-mensal.boss .dia-icon { font-size: 40px; margin: 0; animation: floatIcon 3s infinite ease-in-out; }

.dia-premio { font-size: 9px; color: var(--text-secondary); font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; }
.dia-mensal.boss .dia-premio { font-size: 18px; color: white; font-family: 'Black Ops One'; text-shadow: 0 0 15px var(--neon-second); }

/* Botão de Resgate 3D no Lobby */
#btn-checkin-lobby {
    position: relative; z-index: 1; padding: 16px 45px; margin-bottom: 5px;
    background: linear-gradient(180deg, var(--neon-second) 0%, #bb00bb 100%);
    color: white; border: none; font-weight: 900; cursor: pointer; border-radius: 50px;
    text-transform: uppercase; font-family: 'Black Ops One'; font-size: 16px; letter-spacing: 1px;
    box-shadow: 0 5px 0 #880088, 0 10px 30px rgba(255, 0, 255, 0.5); transition: all 0.1s ease;
}

#btn-checkin-lobby:hover:not(:disabled) { filter: brightness(1.1); }
#btn-checkin-lobby:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 #880088, 0 5px 15px rgba(255, 0, 255, 0.3); }
#btn-checkin-lobby:disabled { background: #333; box-shadow: 0 5px 0 #222; color: #666; opacity: 0.6; cursor: not-allowed; }

/* ==========================================
   TELA 2: DASHBOARD E RANKING (E-SPORTS UI)
========================================== */
/* Banner de Temporada Premium */
.season-wrapper {
    max-width: 800px; margin: 10px auto 25px auto;
    background: linear-gradient(90deg, rgba(0,242,234,0.08) 0%, rgba(20,15,30,0.8) 50%, rgba(255,0,127,0.08) 100%);
    border: 1px solid var(--glass-border); 
    border-radius: 12px; 
    padding: 15px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    position: relative; overflow: hidden;
}
/* Detalhe luminoso na lateral da temporada */
.season-wrapper::before {
    content: ''; position: absolute; left: 0; top: 0; width: 4px; height: 100%; 
    background: var(--neon-main); box-shadow: 0 0 15px var(--neon-main);
}
.season-info { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 10px; color: var(--text-primary); font-family: 'Black Ops One', cursive; letter-spacing: 1px; }
.progress-track { width: 100%; height: 8px; background: rgba(0,0,0,0.8); border-radius: 4px; overflow: hidden; border: 1px solid #333; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--neon-main), var(--lenda)); width: 0%; transition: width 1s ease-out; box-shadow: inset 0 0 10px rgba(255,255,255,0.3); }

/* Grid Adaptativo (Classificação em Primeiro) */
.dashboard-grid { display: grid; grid-template-columns: 1fr 320px 300px; gap: 20px; }

/* Nova Base dos Cartões (Painéis de Jogo) */
.glass-card {
    background: linear-gradient(145deg, rgba(15, 15, 20, 0.95), rgba(5, 5, 8, 0.98));
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border); 
    border-radius: 16px; /* Mais arredondado, visual de app */
    padding: 20px; 
    display: flex; flex-direction: column; gap: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.7); 
    position: relative; overflow: hidden;
    transition: transform 0.3s ease;
}
/* Luz de vidro refletida no topo do cartão */
.glass-card::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}
/* Cabeçalhos dos cartões muito mais limpos */
.card-header { 
    border-bottom: 1px solid rgba(255,255,255,0.03); 
    padding-bottom: 12px; margin-bottom: 5px; 
    display: flex; align-items: center; gap: 10px; 
}
.card-header h3 { font-size: 16px; color: var(--text-primary); text-shadow: 0 0 10px rgba(255,255,255,0.1); }
.card-icon { font-size: 20px; filter: drop-shadow(0 0 5px currentColor); }

.patentes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; text-align: center; }
.patente-card { background: rgba(255,255,255,0.03); padding: 8px; border-radius: 8px; border: 1px solid #333; display: flex; flex-direction: column; align-items: center; }
.p-shield { width: 35px; height: 35px; margin-bottom: 2px; filter: drop-shadow(0 0 5px currentColor); }
.p-info small { color: #888; font-size: 9px; display: block; }
.p-info strong { font-size: 12px; display: block; }

/* ==========================================
   LISTAS TOP 10 (HALL DA FAMA, MAGNATAS, ETC)
========================================== */
.top-list { display: flex; flex-direction: column; gap: 8px; max-height: 350px; overflow-y: auto; padding-right: 5px; }
.top-list::-webkit-scrollbar { width: 4px; }
.top-list::-webkit-scrollbar-thumb { background: var(--neon-main); border-radius: 10px; }

/* Slot Individual Estilo Mobile */
.top-item { 
    display: flex; align-items: center; gap: 12px; padding: 10px; 
    background: linear-gradient(90deg, rgba(255,255,255,0.02) 0%, transparent 100%);
    border-left: 2px solid rgba(255,255,255,0.1); border-radius: 4px 8px 8px 4px; 
    transition: all 0.2s ease; cursor: pointer; position: relative;
}
.top-item:hover { 
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    border-left-color: var(--neon-main); transform: translateX(5px);
}

.top-rank { font-family: 'Black Ops One', cursive; font-size: 16px; width: 25px; text-align: center; color: #555; text-shadow: 0 2px 5px rgba(0,0,0,0.8); }
/* Destaque brutal para o Top 3 das listas */
.top-item:nth-child(1) .top-rank { color: var(--ouro); font-size: 20px; text-shadow: 0 0 10px var(--ouro); }
.top-item:nth-child(2) .top-rank { color: var(--prata); font-size: 18px; text-shadow: 0 0 10px var(--prata); }
.top-item:nth-child(3) .top-rank { color: var(--bronze); font-size: 18px; text-shadow: 0 0 10px var(--bronze); }

.top-avatar { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; border: 1px solid rgba(255,255,255,0.2); }
.top-info { flex-grow: 1; line-height: 1.2; display: flex; flex-direction: column; }
.top-name { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 15px; color: var(--text-primary); text-transform: uppercase; letter-spacing: 0.5px; }
.top-value { font-family: 'Rajdhani', sans-serif; font-size: 12px; font-weight: 900; letter-spacing: 1px; }

/* ==========================================
   TABELA PRINCIPAL DE CLASSIFICAÇÃO
========================================== */
.search-input { 
    width: 100%; padding: 12px 15px; background: rgba(0,0,0,0.6); 
    border: 1px solid rgba(255,255,255,0.1); color: white; border-radius: 8px; 
    font-family: 'Rajdhani', sans-serif; font-size: 15px; font-weight: bold;
    box-sizing: border-box; outline: none; transition: 0.3s;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}
.search-input:focus { border-color: var(--neon-main); box-shadow: 0 0 15px rgba(0,255,204,0.3); }

.general-table-wrapper { max-height: 500px; overflow-y: auto; background: transparent; border: none; padding-right: 5px; }
.general-table-wrapper::-webkit-scrollbar { width: 4px; }
.general-table-wrapper::-webkit-scrollbar-thumb { background: var(--text-secondary); border-radius: 10px; }

/* A Mágica de Separar as Linhas (Slots) */
table { width: 100%; border-collapse: separate; border-spacing: 0 6px; } 

th { 
    background: transparent; color: var(--text-secondary); padding: 5px 10px; 
    text-align: left; position: sticky; top: 0; z-index: 2; 
    font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.05); backdrop-filter: blur(5px);
}
td { padding: 10px; background: rgba(255,255,255,0.02); font-size: 14px; transition: background 0.2s; }

/* Arredondando as bordas das linhas (slots) da tabela */
td:first-child { border-radius: 8px 0 0 8px; border-left: 2px solid transparent; font-family: 'Black Ops One', cursive; color: #777; }
td:last-child { border-radius: 0 8px 8px 0; font-family: 'Rajdhani', sans-serif; font-weight: 900; font-size: 15px; }

.clickable-row { cursor: pointer; transition: all 0.2s ease; }
.clickable-row:hover td { background: rgba(255,255,255,0.06); }
.clickable-row:hover td:first-child { border-left-color: var(--neon-main); color: white; }
.clickable-row:active { transform: scale(0.98); }

.player-cell { display: flex; align-items: center; gap: 10px; }
.table-avatar { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; box-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.player-cell span { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: 0.5px; }

.rank-badge { 
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; 
    border-radius: 6px; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); 
    font-size: 11px; font-weight: 900; font-family: 'Rajdhani', sans-serif; text-transform: uppercase;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5); letter-spacing: 0.5px;
}
.rank-badge img { width: 18px; height: 18px; object-fit: contain; filter: drop-shadow(0 0 3px currentColor); }

/* ==========================================
   PÓDIO TOP 3 (GLÓRIA E-SPORTS)
========================================== */
.podium-container {
    display: flex; justify-content: center; align-items: flex-end; 
    gap: 12px; margin-top: 25px; min-height: 220px; padding-bottom: 10px;
    position: relative;
}

/* Efeito de Luz de Palco saindo do chão para o 1º Lugar */
.podium-container::before {
    content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
    width: 70%; height: 50px; 
    background: radial-gradient(ellipse at center, rgba(255,215,0,0.15) 0%, transparent 70%);
    pointer-events: none; z-index: 0; filter: blur(10px);
}

/* O Pedestal (Base) de cada jogador */
.podium-item {
    display: flex; flex-direction: column; align-items: center; 
    cursor: pointer; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    position: relative; z-index: 1;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(0,0,0,0.5) 100%);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 10px 15px 10px; 
    border-radius: 12px 12px 20px 20px; /* Formato de totem */
    min-width: 90px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.6);
}
.podium-item:hover { 
    transform: translateY(-15px) scale(1.05) !important; 
    z-index: 20; 
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(0,0,0,0.8) 100%);
}

/* A Tag de Posição (1º, 2º, 3º) centralizada no topo do pedestal */
.podium-rank {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    padding: 4px 12px; border-radius: 8px; 
    display: flex; align-items: center; justify-content: center; 
    font-weight: 900; font-size: 14px; font-family: 'Black Ops One', cursive;
    box-shadow: 0 5px 10px rgba(0,0,0,0.9); z-index: 5; 
    border: 1px solid rgba(255,255,255,0.2);
}

.podium-avatar { object-fit: cover; border-radius: 50%; background: #050508; position: relative; z-index: 2; }

/* Nomes agora usam a fonte Rajdhani para ficarem limpos e não espremidos */
.podium-name { 
    font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 16px; 
    margin-top: 12px; text-transform: uppercase; letter-spacing: 1px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
    max-width: 95px; text-align: center;
}

.podium-pts { 
    font-family: 'Rajdhani', sans-serif; font-weight: 900; font-size: 13px; 
    color: rgba(255,255,255,0.6); margin-top: 2px; letter-spacing: 0.5px; 
}

/* ==========================================
   TELA 3: TELA DE LOGIN (OVERLAY GALAXY)
========================================== */
#login-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: radial-gradient(circle at center, #1b0c2a 0%, #000 100%); 
    z-index: 999999; display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s; overflow: hidden;
}
#galaxy-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }

.login-box {
    background: var(--glass); backdrop-filter: blur(15px);
    border: 2px solid var(--neon-main); border-radius: 20px;
    padding: 30px 20px; width: 90%; max-width: 420px; text-align: center;
    box-shadow: 0 0 30px rgba(0, 242, 234, 0.3); max-height: 90vh; overflow-y: auto;
}
.login-box::-webkit-scrollbar { width: 0px; }
#login-arena-logo { display: block; max-width: 250px; max-height: 120px; width: auto; height: auto; margin: 0 auto 15px auto; object-fit: contain; }

.login-box h2 { color: var(--neon-main); margin-bottom: 20px; font-size: 28px; }
.login-input {
    width: 100%; padding: 15px; margin-bottom: 15px; background: rgba(0,0,0,0.6); border: 1px solid #444; 
    color: white; border-radius: 8px; font-family: 'Rajdhani'; font-size: 16px; box-sizing: border-box; text-align: center; outline: none; transition: 0.3s;
}
.login-input:focus { border-color: var(--neon-main); box-shadow: 0 0 10px rgba(0, 242, 234, 0.5); }
.btn-login {
    width: 100%; padding: 15px; background: linear-gradient(90deg, var(--neon-main), var(--neon-accent));
    color: black; border: none; font-weight: 900; cursor: pointer; border-radius: 8px; text-transform: uppercase; 
    font-family: 'Rajdhani'; font-size: 18px; transition: 0.3s; box-shadow: 0 4px 15px rgba(255, 170, 0, 0.4);
}
.btn-login:hover { transform: scale(1.05); filter: brightness(1.2); }

/* ==========================================
   MODAL DO PERFIL DO JOGADOR
========================================== */
.site-modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.85); z-index: 99999; align-items: center; justify-content: center;
    backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.3s ease;
}
.site-modal-overlay.active { opacity: 1; display: flex; }

.site-modal-box {
    background: linear-gradient(135deg, #151520, #0a0a10);
    border: 2px solid var(--neon-main); border-radius: 20px; padding: 30px 20px;
    width: 90%; max-width: 380px; text-align: center; position: relative;
    box-shadow: 0 0 50px rgba(0, 242, 234, 0.3);
    transform: scale(0.5); opacity: 0; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* A MÁGICA ACONTECE AQUI: Limita a altura e cria o scroll interno */
    max-height: 85vh;
    overflow-y: auto;
}

/* Opcional: Deixa a barrinha de rolagem do modal bonita igual a do lobby */
.site-modal-box::-webkit-scrollbar { width: 4px; }
.site-modal-box::-webkit-scrollbar-track { background: transparent; }
.site-modal-box::-webkit-scrollbar-thumb { background: var(--neon-main); border-radius: 10px; }

.site-modal-overlay.active .site-modal-box { transform: scale(1); opacity: 1; }

.btn-close-modal {
    position: absolute; top: 15px; right: 20px; background: transparent; border: none;
    color: #888; font-size: 24px; font-weight: bold; cursor: pointer; transition: 0.2s;
}
.btn-close-modal:hover { color: #ff0055; transform: scale(1.2); }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.stat-card { background: rgba(0,0,0,0.4); border: 1px solid #333; border-radius: 12px; padding: 15px 10px; text-align: center; }
.stat-card span { display: block; font-size: 11px; color: #aaa; text-transform: uppercase; font-weight: bold; margin-bottom: 5px; }
.stat-card strong { display: block; font-size: 22px; font-family: 'Black Ops One'; }

/* Mini Calendário Semanal no Modal */
.checkin-box {
    background: rgba(0,0,0,0.5); border: 1px solid #333; border-radius: 12px;
    padding: 15px; margin-top: 20px; text-align: center; box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}
.checkin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.checkin-header h4 { margin: 0; color: var(--neon-main); font-size: 16px; text-shadow: 0 0 10px rgba(255, 170, 0, 0.4); }
#checkin-streak { background: #ff4500; color: white; padding: 4px 12px; border-radius: 20px; font-weight: 900; font-size: 12px; box-shadow: 0 0 10px rgba(255, 69, 0, 0.5); }

.timeline-container { display: flex; justify-content: space-between; position: relative; margin-bottom: 20px; padding: 0 5px; }
.timeline-container::before {
    content: ''; position: absolute; top: 18px; left: 20px; right: 20px; height: 3px; background: #222; z-index: 1; border-radius: 2px;
}
.day-node { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 14%; }
.day-circle {
    width: 35px; height: 35px; border-radius: 50%; background: #111; border: 2px solid #444;
    display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 14px; color: #888; transition: 0.3s;
}
.day-node.active .day-circle { background: var(--ouro); border-color: #fff; color: black; box-shadow: 0 0 15px var(--ouro); transform: scale(1.1); }
.day-node.missed .day-circle { background: #ff0055; border-color: #fff; color: white; box-shadow: 0 0 15px #ff0055; animation: pulseLive 1.5s infinite; }
.day-node.completed .day-circle { background: #00ffaa; border-color: #00ffaa; color: black; }
.day-reward { font-size: 9px; color: #888; text-transform: uppercase; line-height: 1.1; font-weight: bold; }
.day-node.active .day-reward { color: var(--ouro); }

.btn-checkin-normal { width: 100%; padding: 12px; background: linear-gradient(90deg, #ff00ff, #00ffff); color: black; border: none; font-weight: 900; cursor: pointer; border-radius: 8px; text-transform: uppercase; font-family: 'Rajdhani'; font-size: 16px; box-shadow: 0 0 15px rgba(255, 0, 255, 0.4); transition: 0.2s; }
.btn-checkin-normal:disabled { background: #333; color: #666; box-shadow: none; cursor: not-allowed; }
.btn-checkin-recuperar { width: 100%; padding: 12px; background: linear-gradient(90deg, #ff0055, #ffaa00); color: white; border: none; font-weight: 900; cursor: pointer; border-radius: 8px; text-transform: uppercase; font-family: 'Rajdhani'; font-size: 15px; box-shadow: 0 0 15px rgba(255, 0, 85, 0.4); transition: 0.2s; animation: pulseLive 1.5s infinite; }

/* ==========================================
   TELA 4: LOJA DE PACOTES E SKINS VIP
========================================== */
.store-container { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-top: 20px; margin-bottom: 40px; }
.product-card { 
    background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-radius: 15px; width: 260px; padding: 25px 15px; text-align: center; 
    display: flex; flex-direction: column; transition: 0.3s; position: relative; 
}
.product-card:hover { transform: translateY(-10px); }
.product-icon { font-size: 50px; margin-bottom: 10px; filter: drop-shadow(0 0 10px currentColor); }
.product-title { font-family: 'Black Ops One', cursive; font-size: 20px; margin: 0 0 5px 0; }

.product-price { font-size: 24px; font-weight: 900; margin-bottom: 15px; background: rgba(0,0,0,0.5); padding: 8px; border-radius: 8px; }
.product-price span { font-size: 12px; color: #aaa; font-weight: normal; display: block; }

.product-benefits { list-style: none; padding: 0; margin: 0 0 20px 0; text-align: left; flex-grow: 1; font-size: 12px; color: #ddd; }
.product-benefits li { margin-bottom: 8px; display: flex; align-items: center; gap: 5px; }

.buy-btn { width: 100%; padding: 12px; font-family: 'Rajdhani', sans-serif; font-weight: 900; font-size: 16px; border: none; border-radius: 8px; cursor: pointer; text-transform: uppercase; transition: 0.2s; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.buy-btn:hover { filter: brightness(1.2); transform: scale(1.05); }

/* Estilos de Cartões da Loja */
.card-vip { border: 2px solid var(--ouro); box-shadow: 0 0 15px rgba(255, 215, 0, 0.2); }
.card-vip .product-title { color: var(--ouro); text-shadow: 0 0 10px var(--ouro); }
.card-vip .buy-btn { background: linear-gradient(90deg, #ffd700, #ffaa00); color: black; }

.card-ostentacao { border: 2px solid #00ffaa; box-shadow: 0 0 15px rgba(0, 255, 170, 0.2); }
.card-ostentacao .product-title { color: #00ffaa; text-shadow: 0 0 10px #00ffaa; }
.card-ostentacao .buy-btn { background: linear-gradient(90deg, #00ffaa, #00bb77); color: black; }

.card-prime { border: 2px solid #ff8c00; box-shadow: 0 0 15px rgba(255, 140, 0, 0.2); }
.card-prime .product-title { color: #ff8c00; text-shadow: 0 0 10px #ff8c00; }
.card-prime .buy-btn { background: linear-gradient(90deg, #ff8c00, #ffa500); color: black; font-weight: 900; }

.card-naruto { border: 2px solid #ff4500; box-shadow: 0 0 15px rgba(255, 69, 0, 0.2); }
.card-naruto .product-title { color: #ff4500; text-shadow: 0 0 10px #ff4500; }
.card-naruto .buy-btn { background: linear-gradient(90deg, #ff4500, #ff8c00); color: white; font-weight: 900; }

.card-rei { border: 2px solid #ff0055; box-shadow: 0 0 20px rgba(255, 0, 85, 0.3); transform: scale(1.05); }
.card-rei:hover { transform: scale(1.1); }
.card-rei .product-title { color: #ffcc00; text-shadow: 0 0 10px red; }
.card-rei .buy-btn { background: linear-gradient(90deg, #ff0055, #ffcc00); color: white; }
.tag-popular { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #ff0055; padding: 4px 12px; border-radius: 20px; font-weight: 900; font-size: 10px; border: 2px solid white; animation: pulseTag 1.5s infinite alternate; }

.card-deus { border: 2px solid #00ffff; box-shadow: 0 0 15px rgba(0, 255, 255, 0.2); }
.card-deus .product-title { color: #00ffff; text-shadow: 0 0 10px #00ffff; }
.card-deus .buy-btn { background: linear-gradient(90deg, #00ffff, #0088ff); color: white; }

.card-zeus { border: 2px solid #0055ff; box-shadow: 0 0 15px rgba(0, 85, 255, 0.2); }
.card-zeus .product-title { color: #00ffff; text-shadow: 0 0 10px #ffffff; }
.card-zeus .buy-btn { background: linear-gradient(90deg, #0055ff, #00ffff); color: white; font-weight: 900; }

.card-vampiro { border: 2px solid #ff0000; box-shadow: 0 0 15px rgba(255, 0, 0, 0.2); }
.card-vampiro .product-title { color: #ffaaaa; text-shadow: 0 0 10px #ff0000; }
.card-vampiro .buy-btn { background: linear-gradient(90deg, #ff0000, #8b0000); color: white; }

.card-cristal { border: 2px solid #b9f2ff; box-shadow: 0 0 15px rgba(185, 242, 255, 0.2); }
.card-cristal .product-title { color: #b9f2ff; text-shadow: 0 0 10px #b9f2ff; }
.card-cristal .buy-btn { background: linear-gradient(90deg, #ffffff, #b9f2ff); color: black; }

.card-mitica { border: 2px dashed #ff00ff; box-shadow: 0 0 25px rgba(255, 0, 255, 0.3); animation: pulsePromo 2s infinite alternate;}
.card-mitica .product-title { color: #ffaa00; text-shadow: 0 0 10px #ff00ff; }
.card-mitica .buy-btn { background: linear-gradient(90deg, #00ffff, #ff00ff); color: black; }

.card-custom { border: 2px dashed #ff00ff; }
.card-custom .product-title { color: #ff00ff; text-shadow: 0 0 10px #ff00ff; }
.card-custom .buy-btn { background: linear-gradient(90deg, #ff00ff, #aa00ff); color: white; }

.card-recompensa { border: 2px dashed #00ff00; box-shadow: 0 0 15px rgba(0, 255, 0, 0.2); }
.card-recompensa:hover { box-shadow: 0 0 30px rgba(0, 255, 0, 0.5); transform: scale(1.05); }
.card-recompensa .product-title { color: #00ff00; text-shadow: 0 0 10px #00ff00; }
.card-recompensa .product-price { color: #00ff00; border: 1px solid #00ff00; background: rgba(0, 255, 0, 0.1); }
.card-recompensa .buy-btn { background: linear-gradient(90deg, #00ffaa, #00bb77); color: black; font-weight: 900; }

.qty-container { background: rgba(0,0,0,0.5); padding: 8px; border-radius: 8px; border: 1px solid #444; margin-bottom: 10px;}
.qty-controls { display: flex; justify-content: center; align-items: center; gap: 8px; }
.qty-controls button { background: #333; color: white; border: 1px solid #555; width: 25px; height: 25px; border-radius: 5px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.qty-controls button:hover { background: #ff00ff; color: white; border-color: #ff00ff; }
.qty-controls input { width: 50px; height: 25px; text-align: center; background: #111; border: 1px solid #555; color: #fff; font-weight: bold; border-radius: 5px; font-family: 'Black Ops One', cursive; }
.qty-controls input::-webkit-outer-spin-button, .qty-controls input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ==========================================
   ANIMAÇÕES E RESPONSIVIDADE
========================================== */
@keyframes fadeInLobby { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes pulseTag { from { transform: translateX(-50%) scale(1); } to { transform: translateX(-50%) scale(1.1); } }
@keyframes pulsePromo { from { box-shadow: 0 0 10px rgba(255,0,255,0.2); } to { box-shadow: 0 0 30px rgba(255,0,255,0.6); } }
@keyframes pulseActiveDay { 0% { box-shadow: 0 0 15px rgba(0,242,234,0.3); } 50% { box-shadow: 0 0 25px rgba(0,242,234,0.6); } 100% { box-shadow: 0 0 15px rgba(0,242,234,0.3); } }
@keyframes floatIcon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 1100px) {
    .dashboard-grid { grid-template-columns: 1fr; } 
    .dashboard-grid > div:nth-child(1) { order: 1; }
    .dashboard-grid > div:nth-child(2) { order: 2; }
    .dashboard-grid > div:nth-child(3) { order: 3; }
}
@media (max-width: 600px) {
    .container { padding: 10px; gap: 15px; }
    .glass-card { padding: 12px; gap: 10px; }
    th, td { padding: 8px 5px; }
    .rank-badge { font-size: 9px; padding: 1px 4px; }
    .table-avatar { width: 24px; height: 24px; }
    th:nth-child(1), td:nth-child(1) { width: 30px; text-align: center; } 
    th:nth-child(4), td:nth-child(4) { text-align: right; }
}

/* Rodapé Base */
.site-footer { text-align: center; padding: 30px 20px; margin-top: 40px; border-top: 1px solid #222; background: rgba(0, 0, 0, 0.8); color: #888; font-size: 13px; }
.site-footer a { color: var(--neon-main); text-decoration: none; margin: 0 10px; font-weight: bold; transition: color 0.2s; }
.site-footer a:hover { color: #fff; }

/* ==========================================
   NOVO SISTEMA VISUAL: PATENTES MOBILE-FIRST (Glass)
========================================== */

/* 1. O Contêiner Principal: Agora é um cartão de vidro futurista */
.profile-rank-display {
    display: flex;
    flex-direction: column; /* Coloca escudo em cima e texto embaixo (padrão mobile) */
    align-items: center;
    justify-content: center;
    gap: 12px;
    
    /* Mágica do Glassmorphism */
    background: rgba(15, 15, 20, 0.7); /* Fundo escuro translúcido */
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); /* Desfoque agressivo do fundo */
    border: 1px solid rgba(255, 255, 255, 0.08); /* Borda microscópica de vidro */
    
    border-radius: 20px; /* Cantos bem arredondados para o celular */
    padding: 25px;
    margin: 15px auto 25px auto;
    width: 90%; /* Ocupa quase a largura toda no celular */
    max-width: 320px; /* Mas não fica gigante no PC */
    box-shadow: 0 10px 40px rgba(0,0,0,0.7); /* Sombra densa para "desgrudar" da tela */
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

/* Efeito de brilho de luz refletido no topo do vidro */
.profile-rank-display::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

/* Efeito de luz neon interna que segue a cor da patente */
.profile-rank-display::after {
    content: ''; position: absolute; bottom: -50px; left: 50%; transform: translateX(-50%);
    width: 100px; height: 100px; 
    background: currentColor; /* Puxa a cor exata da classe .ouro, .lenda, etc. */
    filter: blur(70px); opacity: 0.15; pointer-events: none;
}

/* 2. O Contêiner do Escudo (Limpíssimo, sem bordas quadradas) */
.rank-shield-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 1;
}

.rank-shield-icon {
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 10px currentColor); /* Luz neon suave baseada na cor da patente */
}

/* 3. Textos da Patente: Totalmente organizados */
.rank-info-text {
    display: flex;
    flex-direction: column;
    text-align: center; /* Centralizado para o celular */
    gap: 2px;
    z-index: 1;
}

.rank-label {
    font-size: 10px;
    color: #839192; /* Cinza tech suave */
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.rank-name {
    font-size: 26px; /* Letra grande e imponente */
    font-family: 'Rajdhani', sans-serif; /* Usamos a fonte moderna tech */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white !important; /* Sempre BRANCO para não sumir */
    text-shadow: 0 0 15px currentColor; /* O brilho neon usa a cor da patente */
}

/* ==========================================
   DEFINIÇÃO DE CORES DAS CLASSES (JS)
========================================== */
.profile-rank-display.unranked { color: #888; }
.profile-rank-display.unranked .rank-name { color: #ccc; text-shadow: 0 0 10px #888; }

.profile-rank-display.bronze { color: var(--bronze); }
.profile-rank-display.bronze .rank-name { text-shadow: 0 0 10px var(--bronze); }

.profile-rank-display.prata { color: var(--prata); }
.profile-rank-display.prata .rank-name { text-shadow: 0 0 10px var(--prata); }

.profile-rank-display.ouro { color: var(--ouro); }
.profile-rank-display.ouro .rank-name { text-shadow: 0 0 10px var(--ouro); }

.profile-rank-display.platina { color: var(--platina); }
.profile-rank-display.platina .rank-name { text-shadow: 0 0 10px var(--platina); }

.profile-rank-display.diamante { color: var(--diamante); }
.profile-rank-display.diamante .rank-name { text-shadow: 0 0 15px var(--diamante); }

.profile-rank-display.mestre { color: var(--mestre); }
.profile-rank-display.mestre .rank-name { text-shadow: 0 0 15px var(--mestre); }

.profile-rank-display.lenda { color: var(--lenda); }
.profile-rank-display.lenda .rank-name { text-shadow: 0 0 20px var(--lenda); }

/* ==========================================
   ANIMAÇÕES DE ENERGIA DINÂMICAS
========================================== */
@keyframes glowGold { from { box-shadow: 0 0 20px rgba(255, 215, 0, 0.4); } to { box-shadow: 0 0 35px rgba(255, 215, 0, 0.8); } }
@keyframes glowDiamante { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.3); } }
@keyframes glowMestre { from { opacity: 0.8; transform: scale(1); } to { opacity: 1; transform: scale(1.02); } }
@keyframes glowLenda { from { border-color: #ff00ff; box-shadow: 0 0 25px #cc00ff; } to { border-color: #cc00ff; box-shadow: 0 0 45px #ff00ff; } }

/* ==========================================
   NOVO SISTEMA: FUNDO DINÂMICO DO LOBBY (Premium)
========================================== */

#lobby {
    position: relative;
    background: transparent !important;
    z-index: 1;
}

.lobby-background-fx {
    position: fixed; /* 🔒 Fixa o escudo e a luz na tela de forma absoluta */
    top: 60px; 
    left: 0; 
    width: 100vw; 
    height: calc(100vh - 130px);
    z-index: 0; 
    pointer-events: none;
    overflow: hidden;
}

/* O brilho colorido atrás do escudo */
.fx-glow {
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    opacity: 0.5; /* Brilho forte */
    transition: background 0.5s ease;
}

/* A imagem física gigante do escudo */
.fx-shield {
    position: absolute;
    top: 15%; /* Desce um pouco do topo */
    left: 50%;
    transform: translateX(-50%); /* Centraliza perfeitamente */
    width: 90%; /* Tamanho gigante na tela */
    max-width: 400px;
    opacity: 0.35; /* 35% de visibilidade (bem mais forte pra não sumir) */
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.2)); /* Leve sombra pra destacar do fundo */
    transition: all 0.5s ease;
}

/* ==========================================
   CORREÇÃO: TRAZENDO QG E BOTÃO PARA A FRENTE
========================================== */

/* Traz o texto "QG DA ARENA" para a frente do escudo */
#lobby p {
    position: relative;
    z-index: 2;
    color: #aaaaaa !important; /* Cinza premium para não ofuscar o nome */
    text-shadow: 0 2px 5px rgba(0,0,0,0.8) !important; /* Sombra preta para desgrudar da luz */
}

/* Traz o botão "TROCAR CONTA" para a frente e deixa mais moderno */
#lobby button[onclick="fazerLogout()"] {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.4) !important; /* Fundo translúcido escuro */
    border: 1px solid rgba(255, 0, 85, 0.5) !important;
    color: #ff4477 !important; /* Rosa/Vermelho neon */
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}


/* ==========================================
   🔒 MURALHA DE FERRO DEFINITIVA (ANTI-SCROLL PRETO)
   ========================================== */
html, body {
    /* Desliga o efeito "Puxar para atualizar" do celular que revela o fundo preto */
    overscroll-behavior: none !important; 
}

/* O Fundo Fixo (Não rola, não sobe, não desce nunca) */
#lobby-fx-container {
    position: fixed !important;
    top: 60px !important; /* Abaixo do HUD superior */
    left: 0 !important;
    width: 100vw !important;
    height: calc(100vh - 130px) !important; /* Respeita o menu inferior */
    background: radial-gradient(circle at 50% 10%, rgba(100, 0, 255, 0.15) 0%, rgba(0,0,0,0) 50%), var(--bg-dark-game) !important;
    z-index: 0 !important;
    pointer-events: none !important;
}

/* Devolve o brilho neon no chão do fundo que tínhamos antes */
#lobby-fx-container::after {
    content: ''; position: absolute; bottom: -100px; left: 50%; transform: translateX(-50%);
    width: 300px; height: 300px; background: var(--neon-main);
    filter: blur(150px); opacity: 0.1; pointer-events: none;
}

/* O Conteúdo do Lobby (Rola solto por cima do fundo transparente) */
#lobby {
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    width: 100vw !important;
    height: calc(100vh - 130px) !important;
    overflow-y: auto !important; /* Apenas o conteúdo de dentro do Lobby rola */
    background: transparent !important;
    z-index: 1 !important;
    padding-top: 30px !important;
    padding-bottom: 50px !important;
    box-sizing: border-box !important;
    border-radius: 0 !important; 
}