/* Fundo geral */
body{
    background:#0b0b0b;
    color:white;
    font-family:Arial, sans-serif;
    margin:0;
    padding:0;
}

/* Vídeo de fundo full screen */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.4);
}

/* Conteúdo sobre o vídeo */
.page-content {
    position: relative;
    z-index: 1;
}

/* HERO */
.hero{
    background:transparent;
    padding:80px 20px;
    text-align:center;
}

.hero h1{
    font-size:40px;
    font-weight:bold;
}

.hero-logo {
    max-width: 500px;
    width: 80%;
    height: auto;
    margin-bottom: 5px; /* Reduzi de 20px para apenas 5px */
}

.download-btn {
    font-size: 22px;
    padding: 15px 40px;
    color: #fff;
    background: linear-gradient(45deg, #ff00cc, #4b00ff, #00ffff);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.download-btn span {
    position: relative;
    z-index: 1;
}

.download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #ff00cc, 0 0 40px #4b00ff, 0 0 60px #00ffff;
}

/* SEÇÃO */
.section{
    padding:40px 10px;
}

/* BOXES */
.card{
    background:#151515;
    border:none;
    color:white;
    border-radius:8px;
    padding:15px;
    margin-bottom:20px;
}

/* Ranking */
.rank-header{
    display:flex;
    justify-content:space-between;
    font-weight:bold;
    padding:6px 10px;
    margin-bottom:6px;
    color:#bbb;
}

.rank{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#1f1f1f;
    margin:5px 0;
    padding:6px 10px;
    border-radius:6px;
    font-size:14px;
    color:#fff;
}

.rank:nth-child(even){
    background:#262626;
}

/* cores top 3 */
.rank.gold{ background:linear-gradient(90deg,#6b5300,#d4af37); color:white; font-weight:bold; }
.rank.silver{ background:linear-gradient(90deg,#444,#c0c0c0); color:white; font-weight:bold; }
.rank.bronze{ background:linear-gradient(90deg,#5a2e00,#cd7f32); color:white; font-weight:bold; }

/* Colunas */
.rank span:first-child{ text-align:left; }
.rank span:last-child{ text-align:right; }

/* NAVBAR */
.navbar{
    background:#111 !important;
}

/* FOOTER */
footer{
    background:#000;
    padding:20px;
    text-align:center;
    color:#aaa;
    margin-top:40px;
}

.character-gallery {
    display: flex;
    flex-wrap: nowrap; /* impede quebra de linha */
    justify-content: center; /* centraliza todas */
    gap: 0; /* remove gap, controlamos com margin */
    overflow-x: auto;
    padding: 0 5px;
}

.character-img {
    flex: 0 0 auto;
    max-width: 90px; /* PC ou celular grande */
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    margin: 0 3px; /* controla espaço entre as imagens */
    transition: transform 0.3s, border-color 0.3s;
}

@media (min-width: 768px){
    .character-img {
        max-width: 100px;
        margin: 0 7px;
    }
}

.character-img:hover {
    transform: scale(1.1);
    border-color: #4b00ff;
}

/* PC */
@media (min-width: 768px) {
    .character-gallery {
        justify-content: center;
        gap: 15px; /* mais espaçamento no PC */
        overflow-x: visible;
    }

    .character-img {
        max-width: 100px;
    }
}

/* Container do vídeo do personagem */
.character-video-container {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.character-video-container video {
    width: 100%;
    height: auto;
}

/* Responsivo: mantém todas as fotos visíveis sem quebrar a linha */
@media (max-width: 768px){
    .character-img {
        max-width: 67px;
        margin: 0 0px;
    }
}
/* --- ESTILO PARA CELULAR (MOBILE) --- */
@media (max-width: 767px) {
    /* Ajuste da logo para não empurrar os botões */
.hero {
    background: transparent;
    padding: 40px 20px 20px 20px; /* Reduzi o topo de 80px para 40px e o fundo para 20px */
    text-align: center;
}
    .hero-logo {
        max-width: 200px !important;
    }

    /* FORÇA OS BOTÕES A FICAREM PEQUENOS */
    .download-btn {
        height: 35px !important;    /* Altura fixa */
        padding: 0 !important;       /* Remove o padding de 40px do PC */
        font-size: 8px !important;   /* Fonte minúscula */
        min-width: 0 !important;     /* Deixa o botão encolher */
        width: 100% !important;      /* Faz ele preencher a coluna de 25% */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 4px !important;
        margin-bottom: 5px !important;
    }

    /* Alvo no span para garantir que o texto não quebre */
    .download-btn span {
        font-size: 8px !important;
        letter-spacing: 0px !important;
        white-space: nowrap !important; /* Impede o texto de pular linha */
    }

    /* Ajuste das colunas do Bootstrap para não sobrepor */
    .hero .col, .hero .col-3 {
        padding-left: 2px !important;  /* Quase nada de espaço entre colunas */
        padding-right: 2px !important;
    }
    
    .hero .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* --- ESTILO PARA PC (Telas Grandes) --- */
@media (min-width: 768px) {
    .download-btn {
        font-size: 22px;
        padding: 15px 40px;
        min-width: 180px;
    }
    .download-btn span {
        font-size: 20px; 
    }
}

/* --- COLE ISSO NO FINAL DO SEU STYLE.CSS --- */

@media (max-width: 767px) {
    /* Diminui o respiro do topo no celular */
    .hero {
        padding: 30px 10px !important;
    }

    /* Força a logo a diminuir para não empurrar os botões */
    .hero-logo {
        max-width: 180px !important;
        width: 60% !important;
    }

    /* Garante que a linha não quebre e os botões fiquem lado a lado */
    .hero .row.row-cols-4 {
        display: flex !important;
        flex-wrap: nowrap !important;
        margin-left: -5px !important;
        margin-right: -5px !important;
    }

    /* Força cada coluna a ter exatamente 25% da largura */
    .hero .col-3 {
        flex: 0 0 25% !important;
        max-width: 25% !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
    }

    /* Reduz o botão drasticamente apenas no celular */
    .hero .download-btn {
        height: 34px !important;    /* Altura fina */
        padding: 0 !important;       /* Remove os 40px de padding do PC */
        font-size: 9px !important;   /* Fonte pequena */
        min-width: 0 !important;     /* Deixa o botão encolher */
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 4px !important;
    }

    /* Garante que o texto dentro do botão acompanhe o tamanho */
    .hero .download-btn span {
        font-size: 9px !important;
        white-space: nowrap !important;
        letter-spacing: -0.5px;
    }
}

/* Estilo do Botão Flutuante */
.btn-whatsapp-flutuante {
    position: fixed;
    width: 150px;
    height: 45px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.btn-whatsapp-flutuante img {
    width: 25px;
    height: 25px;
    margin-right: 8px;
}

.btn-whatsapp-flutuante span {
    color: white;
}

.btn-whatsapp-flutuante:hover {
    transform: scale(1.1);
    color: white;
    background-color: #128c7e;
    text-decoration: none;
}

/* Ajuste para não tampar nada importante no Mobile */
@media (max-width: 767px) {
    .btn-whatsapp-flutuante {
        width: 120px;
        height: 40px;
        font-size: 14px;
        bottom: 15px;
        right: 15px;
    }
    .btn-whatsapp-flutuante img {
        width: 20px;
        height: 20px;
    }
}

/* Estilo do Carrossel - Ajuste Inteligente */
#carouselHome {
    max-width: 850px;
    margin: 20px auto;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.2);
    background-color: rgba(0,0,0,0.8); /* Fundo bem escuro para fotos menores */
}

.carousel-inner {
    height: 350px; /* Altura fixa para manter o layout estável */
    display: flex;
    align-items: center; /* Centraliza a foto verticalmente se for pequena */
}

.carousel-item img {
    max-height: 350px; /* Não deixa a foto passar da altura do box */
    max-width: 100%;  /* Não deixa a foto passar da largura do box */
    width: 850px;      /* Mantém a proporção real da largura */
    height: 350px;     /* Mantém a proporção real da altura */
    margin: 0 auto;   /* Centraliza horizontalmente */
    object-fit: contain; 
}

@media (max-width: 768px){
    #carouselHome, .carousel-inner { height: 200px; }
    .carousel-item img { max-height: 200px; }
}

.character-img.active-char {
    border-color: #ff0000; /* Cor da borda quando selecionado */
    transform: scale(1.1);
}

/* ============================================================
    BOTÃO RECARGA ULTRA - NAVEGANDO E COM SUPER BRILHO (GLOW)
   ============================================================ */

@keyframes percursoTotal {
    0%   { top: 20%; left: 10%; }
    25%  { top: 10%; left: 70%; }
    50%  { top: 70%; left: 60%; }
    75%  { top: 80%; left: 15%; }
    100% { top: 20%; left: 10%; }
}

@keyframes superBrilhoOuro {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.7), 0 0 5px rgba(255, 255, 255, 0.5) inset; }
    50% { box-shadow: 0 0 35px rgba(255, 215, 0, 0.9), 0 0 50px rgba(255, 100, 0, 0.7), 0 0 15px rgba(255, 255, 255, 0.8) inset; }
}

.btn-recarga-flutuante {
    position: fixed !important;
    width: 200px; /* Reduzi um pouco para não poluir tanto */
    height: 65px;
    background: linear-gradient(135deg, #fff700 0%, #ffbf00 50%, #ff8800 100%);
    color: #000 !important;
    border: 3px solid #b8860b;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-weight: 900;
    font-size: 18px;
    text-transform: uppercase;
    z-index: 9999;
    animation: percursoTotal 20s infinite linear, superBrilhoOuro 2.5s infinite ease-in-out;
    transition: 0.3s;
}

.btn-recarga-flutuante:hover {
    animation-play-state: paused; /* O botão para de fugir quando o mouse está em cima */
    transform: scale(1.1);
}

.btn-recarga-flutuante img { width: 45px; height: 45px; margin-right: 10px; }

.btn-guia-flutuante {
    position: fixed;
    width: 150px;
    height: 45px;
    bottom: 75px;
    right: 20px;
    background: linear-gradient(45deg, #00ffff, #008080); /* Gradiente para dar profundidade */
    color: #000 !important;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-weight: bold;
    z-index: 9999;
    /* Brilho neon suave ao redor */
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4); 
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.3s;
}

.btn-guia-flutuante:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.8);
    background: #fff;
}

/* Efeito de Zoom no Hover */
.item-img-container {
    overflow: hidden; /* Garante que a imagem não saia da borda ao crescer */
}

.item-img-container img {
    transition: transform 0.5s ease; /* Velocidade do zoom */
    cursor: zoom-in;
}

.item-img-container:hover img {
    transform: scale(1.2); /* Aumenta 20% o tamanho */
}

