* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto Condensed', sans-serif;
    background: #0a0e27;
    color: #fff;
    padding-bottom: 70px;
    overflow-x: hidden;
}

/* =========================================
   CORREÇÃO DO ALERTA (FRENTE DO MODAL)
   ========================================= */
.swal2-container {
    z-index: 999999 !important; /* Força o alerta a ficar na frente de absolutamente TUDO */
}

/* Caso use o sistema de Toast (avisos no canto da tela), garante que também fiquem na frente */
.toast, #toast-container {
    z-index: 999999 !important; 
}

/* =========================================
   Top Promo Bar
   ========================================= */
.top-promo-bar {
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.install-btn {
    background: #fff;
    color: #ff6b35;
    border: none;
    padding: 5px 15px;
    border-radius: 15px;
    font-weight: bold;
    cursor: pointer;
}

/* =========================================
   Header & Buttons (FONTE 17px + EFEITO SALTITANTE)
   ========================================= */
header {
    background: #1a1f3a;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-area .menu-icon {
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
}

.logo-area .menu-icon:hover {
    color: #667eea;
    transform: scale(1.1);
}

.logo-area img {
    height: 35px;
}

.auth-btns {
    display: flex;
    gap: 10px;
}

/* REGRA PRINCIPAL DOS BOTÕES */
.btn-login, .btn-register {
    font-family: 'Roboto Condensed', sans-serif; /* Fonte das categorias */
    font-weight: 700;
    font-size: 17px; /* Seu novo tamanho */
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    /* O SEGREDO DO PULO ESTÁ NESTA LINHA ABAIXO: */
    transition: all 0.5s cubic-bezier(.25, .8, .25, 1.55);
    /* Isso impede que o texto fique embaçado durante a animação */
    -webkit-font-smoothing: subpixel-antialiased;
    backface-visibility: hidden;
}

/* Efeito do Botão Login (Brilho e Pulo) */
.btn-login {
    background: linear-gradient(135deg, #2d3654 0%, #1e2744 100%);
    color: #fff;
    border: 1px solid #3d4866;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0; 
    left: -100%; 
    width: 50%; 
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s ease; /* Brilho passa um pouco mais lento que o pulo */
    z-index: -1;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    border-color: #667eea;
    /* O pulo acontece aqui, impulsionado pela transição cubic-bezier */
    transform: translateY(-4px) scale(1.05);
}

/* Efeito do Botão Registro (Pulso Neon e Pulo) */
.btn-register {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.4);
    animation: pulse-glow 2s infinite;
}

.btn-register:hover {
    /* O pulo acontece aqui também */
    transform: translateY(-4px) scale(1.05);
    animation: none; /* Pausa o pulso no hover para focar no pulo */
    box-shadow: 0 0 25px rgba(118, 75, 162, 0.9); /* Sombra mais forte no hover */
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 10px rgba(102, 126, 234, 0.4); }
    50% { box-shadow: 0 0 20px rgba(118, 75, 162, 0.8); }
    100% { box-shadow: 0 0 10px rgba(102, 126, 234, 0.4); }
}

/* =========================================
   Banner Slider Animado
   ========================================= */
.banner-grid {
    padding: 15px;
}

.banner-main.slider-container {
    position: relative;
    overflow: hidden; /* Esconde as imagens que estão fora da tela */
    border-radius: 8px;
    margin-bottom: 10px;
    touch-action: pan-y; /* Permite rolar a tela pra baixo sem travar no slider */
}

.slider-wrapper {
    display: flex;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); /* Deslize bem suave */
}

.slider-wrapper img {
    min-width: 100%; /* Cada imagem ocupa exatamente 100% da largura do slider */
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    pointer-events: none; /* Evita "puxar" a imagem pelo navegador sem querer */
}

/* Bolinhas Indicadoras (Estilo Apple/Premium) */
.slider-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.slider-indicators .dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s ease;
}

.slider-indicators .dot.active {
    width: 22px; /* Deixa a bolinha ativa comprida */
    background: #ff6b35; /* Laranja da promo para combinar */
    border-radius: 4px;
}

/* Restante dos banners da grade */
.banner-row { display: flex; gap: 5px; margin-bottom: 10px; }
.banner-item { flex: 1; }
.banner-item img { width: 100%; border-radius: 8px; }
.banner-sub-row { flex: 1; display: flex; flex-direction: column; gap: 5px; }

.search-container {
    display: flex; align-items: center; gap: 10px; padding: 10px 15px;
}
.search-bar {
    flex: 1; background: #1a1f3a; border-radius: 20px; padding: 8px 15px;
    display: flex; align-items: center; gap: 10px; font-size: 12px;
}
.search-bar i { color: #ff6b35; }
.search-bar marquee { color: #aaa; }
.search-icon {
    background: #1a1f3a; width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* =========================================
   Categories Carousel
   ========================================= */
.categories-carousel-container {
    padding: 15px 0; background: #0a0e27; overflow: hidden;
}
.categories-carousel {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    /* Esconde a barra de rolagem mas permite rolar */
    scrollbar-width: none; 
    -ms-overflow-style: none;
}
.categories-carousel::-webkit-scrollbar {
    display: none;
}

.category-card {
    /* TAMANHO FIXO OBRIGATÓRIO */
    width:90px !important;
    min-width: 80px !important; /* Impede que amasse no celular */
    height: 100px !important;
    
    background: #1a1f3a; /* Fundo levemente mais claro que o site */
    border: 1px solid #2e3555;
    border-radius: 12px;
    
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0; /* O SEGREDO: Garante que todos mantêm a largura */
    position: relative; /* Para posicionar elementos absolutos se precisar */
}

.category-card.active, .category-card:hover {
    border-color: #ff6b35;
    background: #252b46;
    transform: translateY(-2px);
}

.provider-icon {
    width: 32px !important;
    height: 32px !important;
    object-fit: contain;
    margin-bottom: 6px;
}

.cat-name {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #fff;
    text-align: center;
    line-height: 1.2 !important;
    text-transform: capitalize;
    
    /* Regras para quebrar texto longo (Ex: Pragmatic Play) */
    white-space: normal !important;
    width: 100%;
    padding: 0 5px;
    
    /* Altura reservada para até 2 linhas de texto */
    min-height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* NÚMEROS (Agora visíveis e bonitos) */
.cat-count {
    font-size: 10px !important;
    color: #8a96b8 !important;
    margin-top: 4px;
    display: block !important; /* Força exibição */
    background: rgba(0,0,0,0.2);
    padding: 2px 8px;
    border-radius: 8px;
}
    
.category-card.active .cat-count { color: #8a96b8; }

/* =========================================
   Games Section
   ========================================= */
.games-section { padding: 15px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; font-size: 16px; font-weight: bold; }
.games-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.game-item { background: #1a1f3a; border-radius: 8px; overflow: hidden; cursor: pointer; transition: transform 0.2s; }
.game-item:hover { transform: scale(1.05); }
.game-img-container { position: relative; width: 100%; padding-top: 100%; overflow: hidden; }
.main-game-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.provider-badge { position: absolute; top: 5px; left: 5px; background: rgba(0, 0, 0, 0.7); color: #fff; padding: 3px 8px; border-radius: 4px; font-size: 10px; font-weight: bold; z-index: 1; }
.game-footer { padding: 8px; font-size: 11px; text-align: center; color: #ccc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* =========================================
   Footer (Rodapé Integrado e Arredondado)
   ========================================= */
footer { 
    background: linear-gradient(180deg, #111526 0%, #0a0e27 100%); /* Transição suave e escura */
    padding: 40px 20px 110px; /* 110px embaixo para o texto não ficar escondido atrás do menu fixo */
    margin-top: 20px; 
    border-top-left-radius: 35px; /* Quebra o formato quadrado */
    border-top-right-radius: 35px;
    border-top: 1px solid #1c2541; /* Linha de brilho sutil no topo */
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.15); /* Sombra suave para dar profundidade */
    position: relative;
    z-index: 1;
}

.footer-links { 
    display: flex; 
    justify-content: space-around; 
    margin-bottom: 30px; 
}

.footer-col h4 { 
    color: #fff; 
    font-size: 14px; 
    margin-bottom: 15px; 
    font-weight: 700;
}

.footer-col ul { 
    list-style: none; 
}

.footer-col ul li { 
    color: #8a96b8; 
    font-size: 12px; 
    margin-bottom: 10px; 
    cursor: pointer; 
    transition: all 0.3s ease; 
}

.footer-col ul li:hover { 
    color: #667eea; 
    transform: translateX(3px); /* Efeito legal ao passar o mouse */
}

.footer-desc { 
    font-size: 11px; 
    color: #6a7494; 
    line-height: 1.6; 
    margin-bottom: 25px; 
    text-align: center; /* Centralizado fica mais elegante no mobile */
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.social-icons { 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    margin-bottom: 25px; 
}

.social-icons img { 
    width: 32px; 
    height: 32px; 
    cursor: pointer; 
    transition: all 0.4s cubic-bezier(.25, .8, .25, 1.55); /* Efeito saltitante também nas redes sociais! */
    filter: grayscale(0.2);
}

.social-icons img:hover { 
    transform: translateY(-5px) scale(1.1); 
    filter: grayscale(0) drop-shadow(0 5px 10px rgba(102, 126, 234, 0.4));
}

.footer-bottom { 
    display: flex; 
    justify-content: space-between; 
    font-size: 11px; 
    color: #4a5578; 
    padding-top: 15px; 
    border-top: 1px solid #1c2541; 
}

/* =========================================
   Bottom Navigation (Menu Fixo Inferior)
   ========================================= */
.footer-nav {
    position: fixed; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    /* Efeito de vidro (blur) no menu inferior para ficar premium */
    background: rgba(26, 31, 58, 0.95); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid #2d3654;
    border-top-left-radius: 20px; /* Deixa o menu flutuante arredondado também */
    border-top-right-radius: 20px;
    display: flex; 
    justify-content: space-around; 
    align-items: center;
    padding: 10px 0; /* Um pouco mais gordinho */
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.4); 
    z-index: 1000;
}

.nav-link { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-decoration: none; 
    color: #6a7494; 
    font-size: 11px; 
    gap: 4px; 
    font-weight: bold;
    transition: all 0.3s ease;
}

.nav-link img { 
    width: 22px; 
    height: 22px; 
    transition: transform 0.3s ease;
    filter: grayscale(0.5); /* Ícones inativos ficam cinzas */
}

.nav-link.active { 
    color: #fff; 
}

.nav-link.active img {
    filter: grayscale(0); /* Ícone ativo ganha cor */
    transform: translateY(-2px);
}

.nav-link:hover {
    color: #8a96b8;
}

.nav-deposit-wrapper { 
    position: relative; 
    width: 60px; 
    height: 60px; 
    margin-top: -35px; /* Sobe um pouco mais o botão central */
}

.rotate-bg-css { 
    position: absolute; 
    width: 60px; 
    height: 60px; 
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb); 
    border-radius: 50%; 
    animation: rotate 3s linear infinite; 
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.5);
}

@keyframes rotate { 
    from { transform: rotate(0deg); } 
    to { transform: rotate(360deg); } 
}

.nav-deposit-wrapper .main-icon { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    width: 48px; 
    height: 48px; 
    z-index: 2; 
    transition: transform 0.3s cubic-bezier(.25, .8, .25, 1.55);
}

.nav-deposit-wrapper:hover .main-icon {
    transform: translate(-50%, -50%) scale(1.1);
}

.rotate-bg-css { position: absolute; width: 60px; height: 60px; background: linear-gradient(135deg, #667eea, #764ba2, #f093fb); border-radius: 50%; animation: rotate 3s linear infinite; }
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.nav-deposit-wrapper .main-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 50px; height: 50px; z-index: 2; }


/* =========================================
   Sidebar Menu - Base Mobile (Corrigido)
   ========================================= */
.sidebar-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); z-index: 2000;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.sidebar-overlay.active { opacity: 1; visibility: visible; }

.sidebar-menu {
    position: fixed;
    top: 0;
    left: -280px; /* Começa escondido à esquerda */
    width: 280px;
    height: 100%;
    background: #0a0e27;
    z-index: 2001;
    transition: left 0.3s ease; /* Mobile usa left para animar */
    display: flex; flex-direction: column;
    border-right: 1px solid #1c2541;
    box-shadow: 5px 0 15px rgba(0,0,0,0.5);
}
.sidebar-menu.active {
    left: 0; /* No mobile ele vem para a margem 0 perfeitamente */
}

/* Resto do visual do Sidebar */
.sidebar-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 15px; background: #111526; border-bottom: 1px solid #1c2541; }
.sidebar-header .user-info { display: flex; align-items: center; gap: 10px; font-weight: bold; font-size: 16px; color: #fff; }
.close-sidebar { background: transparent; border: none; color: #8a96b8; font-size: 20px; cursor: pointer; transition: color 0.2s; }
.close-sidebar:hover { color: #ff6b35; }
.sidebar-content { padding: 20px 15px; overflow-y: auto; flex: 1; }
.sidebar-section { margin-bottom: 25px; }
.sidebar-section h3 { font-size: 12px; color: #8a96b8; text-transform: uppercase; margin-bottom: 12px; display: flex; align-items: center; }

.sidebar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sidebar-item { background: #111526; border: 1px solid #1c2541; border-radius: 8px; padding: 12px 5px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-size: 12px; font-weight: bold; transition: all 0.3s ease; text-align: center; }
.sidebar-item img { width: 28px; height: 28px; object-fit: contain; }
.sidebar-item:hover { background: #1a223f; border-color: #3b82f6; transform: translateY(-2px); }

.sidebar-list { list-style: none; }
.sidebar-list li { margin-bottom: 8px; }
.sidebar-list a { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; padding: 12px; border-radius: 8px; background: #111526; border: 1px solid #1c2541; transition: all 0.2s ease; font-size: 13px; font-weight: 600; }
.sidebar-list a:hover { background: #1a223f; border-color: #ff6b35; }


/* =========================================
   Media Queries & Ajustes Desktop (TRAVA DO MENU)
   ========================================= */
@media (max-width: 480px) {
    .games-list { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .btn-login, .btn-register { padding: 8px 16px; font-size: 12px; }
}

@media (min-width: 768px) {
    body {
        max-width: 600px;
        margin: 0 auto;
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
        position: relative;
    }
    
    .games-list { grid-template-columns: repeat(4, 1fr); }
    
    .top-promo-bar, header, .banner-grid, .search-container,
    .categories-carousel-container, .games-section,
    .footer-links, .footer-desc, .footer-bottom {
        max-width: 600px; margin-left: auto; margin-right: auto;
    }
    
    footer { width: 100%; }
    
    .footer-nav {
        width: 100%; max-width: 600px;
        left: 50%; right: auto;
        transform: translateX(-50%); border-radius: 0;
    }

    /* Trava e Fixação do Menu no Desktop - LIVRE DE BUGS */
    .sidebar-overlay {
        width: 100%; max-width: 600px;
        left: 50%; transform: translateX(-50%);
    }

    .sidebar-menu {
        /* No PC, ignoramos o `left` nativo e forçamos ele a ficar na borda dos 600px */
        left: 50% !important; 
        margin-left: -300px;
        /* Usamos o transform para esconder o menu para a esquerda */
        transform: translateX(-100%);
        transition: transform 0.3s ease, opacity 0.3s ease;
        opacity: 0;
        pointer-events: none;
    }

    .sidebar-menu.active {
        /* A regra .active do mobile não quebra mais isso por causa do !important ali em cima */
        transform: translateX(0); /* Desliza o menu para dentro da tela */
        opacity: 1;
        pointer-events: auto;
    }
}

/* =========================================
   Itens de Oferta (Imagem de Fundo + Texto Sobreposto)
   ========================================= */
.sidebar-offer-item {
    position: relative; /* Necessário para posicionar a imagem e o texto dentro dele */
    height: 70px; /* Altura fixa para o card ficar com cara de banner */
    border: 1px solid #1c2541;
    border-radius: 12px; /* Bordas bem arredondadas */
    overflow: hidden; /* Impede que a imagem saia para fora ao dar zoom */
    text-decoration: none;
    transition: all 0.4s cubic-bezier(.25, .8, .25, 1.55); /* O efeito saltitante */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Camada escura sobre a imagem para o texto branco ler melhor */
.sidebar-offer-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(10, 14, 39, 0.8) 100%);
    z-index: 1;
    transition: background 0.3s ease;
}

/* A imagem agora é o fundo */
.sidebar-offer-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Faz a imagem preencher tudo sem distorcer */
    z-index: 0;
    transition: transform 0.5s ease; /* Zoom suave */
}

/* Texto no canto superior esquerdo */
.sidebar-offer-item span {
    position: absolute;
    top: 8px;
    left: 12px;
    z-index: 2; /* Fica por cima da camada escura */
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8); /* Sombra no texto para leitura perfeita */
    letter-spacing: 0.5px;
}

/* --- Efeitos Hover --- */
.sidebar-offer-item:hover {
    transform: translateY(-4px) scale(1.02); /* Pulo e aumento */
    border-color: #ff6b35; /* Borda laranja */
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.sidebar-offer-item:hover img {
    transform: scale(1.15); /* Zoom na imagem de fundo */
}

.sidebar-offer-item:hover::after {
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(10, 14, 39, 0.6) 100%); /* Clareia um pouco o fundo */
}
/* =========================================
   Redes Sociais no Menu Lateral
   ========================================= */
.sidebar-socials {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap; /* Se tiver muitos ícones, eles caem para a linha de baixo */
    gap: 12px;
    padding: 5px 0;
}

.sidebar-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #111526;
    border: 1px solid #1c2541;
    border-radius: 50%; /* Deixa os botões perfeitamente redondos */
    text-decoration: none;
    transition: all 0.4s cubic-bezier(.25, .8, .25, 1.55); /* Nosso efeito saltitante */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.sidebar-socials img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: grayscale(0.3); /* Deixa levemente cinza para não berrar muito na tela inicial */
    transition: all 0.3s ease;
}

.sidebar-socials a:hover {
    background: linear-gradient(135deg, #1a223f 0%, #111526 100%);
    border-color: #667eea; /* Borda acende em azul roxeado */
    transform: translateY(-5px) scale(1.1); /* Pula para cima */
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4); /* Brilho em volta */
}

.sidebar-socials a:hover img {
    filter: grayscale(0); /* Acende as cores originais da logo (whatsapp verde, instagram colorido, etc) */
    transform: scale(1.15); /* Ícone cresce um pouquinho dentro da bolinha */
}

/* =========================================
   Link "Todos os Jogos (Quantidade)"
   ========================================= */
.ver-todos-link {
    font-size: 11px;
    color: #8a96b8;
    text-decoration: none;
    font-weight: 700;
    background: rgba(28, 37, 65, 0.5); /* Fundo tipo cápsula */
    padding: 4px 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ver-todos-link i {
    font-size: 9px;
}

.ver-todos-link:hover {
    background: #1a223f;
    color: #ff6b35; /* Fica laranja */
    transform: translateX(3px); /* Desliza um pouquinho pro lado */
}

/* =========================================
   Categorias Sem Jogos (Inativas)
   ========================================= */
.categoria-vazia {
    opacity: 0.3 !important; /* Deixa apagadinho */
    filter: grayscale(100%) !important; /* Tira as cores */
    cursor: not-allowed !important; /* Mostra o cursor de "bloqueado" no PC */
    pointer-events: none !important; /* Trava o botão, impedindo o clique e o hover */
}

/* 2. LAYOUT DA GRADE DE JOGOS (6 Mobile / 8 Desktop) */
    .jogos-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .jogos-container:not(.filtrado) .game-item:nth-child(n+7) { display: none; }
    
    @media (min-width: 992px) {
        .jogos-container { grid-template-columns: repeat(4, 1fr); gap: 15px; }
        .jogos-container:not(.filtrado) .game-item:nth-child(n+7) { display: block; }
        .jogos-container:not(.filtrado) .game-item:nth-child(n+9) { display: none; }
    }

    .jogos-container.filtrado .game-item { display: none !important; }
    .jogos-container.filtrado .game-item.visivel-js { display: block !important; }
    
    /* Nome do jogo no grid (quebra de linha se for grande) */
    .game-footer {
        white-space: nowrap; 
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 12px;
        padding: 5px;
    }

/* Container da Busca */
        .search-wrapper {
            position: relative;
            margin: 15px 0;
            width: 100%;
            box-sizing: border-box; /* Garante que o tamanho não vaza */
        }
        .search-input {
            width: 100%;
            /* Ajuste aqui: 12px topo, 20px direita, 12px base, 55px esquerda */
            padding: 12px 20px 12px 55px; 
            background: #1a1f3a;
            border: 1px solid #2e3555;
            border-radius: 12px;
            color: #fff;
            font-size: 14px;
            outline: none;
            transition: all 0.3s;
            box-sizing: border-box;
        }
        .search-input:focus {
            border-color: #ff6b35;
            box-shadow: 0 0 10px rgba(255, 107, 53, 0.2);
        }
        
        .search-icon {
            position: absolute;
            left: 20px; /* Afastei um pouquinho mais da borda */
            top: 50%;
            transform: translateY(-50%);
            color: #8a96b8;
            font-size: 16px; /* Tamanho fixo para o ícone */
            pointer-events: none; /* Garante que o clique passe direto para o input */
        }

        /* Esconde elementos quando estamos buscando */
        body.searching .grupo-categoria,
        body.searching .categories-carousel-container,
        body.searching .section-header, 
        body.searching .ver-todos-link,
        body.searching .btn-carregar-cat,
        body.searching #jogosCarregaveis,
        body.searching #verMaisBtn {
            display: none !important;
        }

        /* Container de Resultados da Busca */
        #search-results-container {
            display: none;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            margin-top: 20px;
        }
        @media (min-width: 992px) {
            #search-results-container { grid-template-columns: repeat(4, 1fr); gap: 15px; }
        }
        body.searching #search-results-container {
            display: grid !important;
        }

        /* Estilo da mensagem "Nenhum jogo encontrado" */
        .no-results {
            grid-column: 1 / -1;
            text-align: center;
            padding: 40px;
            color: #8a96b8;
            font-size: 14px;
        }
</style>