/* =========================================================
   Visual "Painel" (estilo launcher de games): barra lateral, conteúdo ao centro
   e coluna de destaques à direita. Tudo dentro de .tema-painel, para não afetar o visual neon.
   ========================================================= */
.tema-painel {
    --fundo: #121317;
    --camada: #1b1c22;
    --camada-2: #23242c;
    --vidro: #1d1e25;
    --borda: rgba(255, 255, 255, .07);
    --borda-forte: rgba(255, 255, 255, .14);
    --texto: #f2f3f7;
    --suave: #9b9dad;
    --ciano: #ff5a7a;
    --magenta: #ff3d6e;
    --violeta: #ff7a45;
    --limao: #ffffff;
    --destaque: #ff4d6d;
    --gradiente: linear-gradient(120deg, #ff3d6e, #ff7a45);
    --fonte-titulo: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --raio: 18px;
    position: relative;
    min-height: 100vh;
    background:
        radial-gradient(1100px 600px at 15% -10%, rgba(120, 90, 200, .35), transparent 60%),
        radial-gradient(900px 600px at 105% 110%, rgba(255, 61, 110, .22), transparent 60%),
        #0c0d11;
}
.tema-painel a { color: var(--texto); }
.tema-painel a:hover { color: var(--destaque); }

/* ---------- Estrutura em colunas ---------- */
.painel-app { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
    .painel-app {
        grid-template-columns: 230px minmax(0, 1fr);
        margin: 16px;
        background: rgba(23, 24, 30, .94);
        border: 1px solid var(--borda);
        border-radius: 28px;
        overflow: clip;
        box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
    }
}
@media (min-width: 1280px) {
    .painel-app {
        grid-template-columns: 236px minmax(0, 1fr) 330px;
        max-width: 1640px;
        margin: 20px auto;
        width: calc(100% - 40px);
    }
}

/* ---------- Barra lateral ---------- */
.painel-lateral { display: none; }
@media (min-width: 900px) {
    .painel-lateral {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 26px 16px 20px;
        border-right: 1px solid var(--borda);
        position: sticky;
        top: 0;
        height: calc(100vh - 32px);
    }
}
.painel-marca {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-width: 0;
    font-weight: 800;
    font-size: .92rem;
    letter-spacing: -.015em;
    color: var(--texto);
}
.painel-marca span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.15; }
.painel-marca img { flex: none; width: 32px; height: 32px; border-radius: 9px; }
@media (min-width: 1280px) { .painel-marca { font-size: .98rem; } }
.painel-menu { display: grid; gap: .25rem; }
.painel-menu a {
    position: relative;
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .65rem .8rem;
    border-radius: 12px;
    color: var(--suave);
    font-weight: 600;
    font-size: .94rem;
    transition: color .2s, background .2s;
}
.painel-menu a:hover { color: var(--texto); background: rgba(255, 255, 255, .04); }
.painel-menu a.active { color: var(--destaque); background: rgba(255, 77, 109, .1); }
.painel-menu a.active::before {
    content: "";
    position: absolute;
    left: -16px;
    top: 20%;
    bottom: 20%;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--destaque);
}
.painel-menu .icone { width: 1.4rem; text-align: center; filter: grayscale(.4); }
.painel-menu a.active .icone { filter: none; }

.painel-lateral-rodape { margin-top: auto; display: grid; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--borda); }
.troca-visual { color: var(--suave) !important; font-size: .85rem; padding: .3rem .8rem; }
.troca-visual:hover { color: var(--texto) !important; }
.painel-promo {
    display: grid;
    gap: .45rem;
    padding: 1rem;
    border-radius: 18px;
    background: var(--gradiente);
    color: #fff;
    box-shadow: 0 14px 30px rgba(255, 61, 110, .3);
}
.painel-promo strong { font-size: 1.05rem; }
.painel-promo span { font-size: .8rem; opacity: .9; line-height: 1.4; }
.painel-promo a {
    margin-top: .3rem;
    padding: .6rem;
    border-radius: 12px;
    background: #17181e;
    color: #fff !important;
    text-align: center;
    font-weight: 700;
    font-size: .85rem;
}
.painel-promo a:hover { background: #000; }

/* ---------- Centro ---------- */
.painel-centro { min-width: 0; padding: 14px 16px 24px; }
@media (min-width: 900px) { .painel-centro { padding: 22px 28px 28px; } }
.painel-topo { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.4rem; }
.painel-marca-celular { flex: none; }
@media (min-width: 900px) { .painel-marca-celular { display: none; } }
.painel-busca { position: relative; flex: 1; max-width: 460px; }
.painel-busca input {
    width: 100%;
    padding: .7rem 2.6rem .7rem 1.1rem;
    border-radius: 14px;
    border: 1px solid transparent;
    background: var(--camada-2);
    color: var(--texto);
    font: inherit;
    font-size: .92rem;
}
.painel-busca input:focus { outline: none; border-color: rgba(255, 77, 109, .5); box-shadow: 0 0 0 3px rgba(255, 77, 109, .12); }
.painel-busca > span { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); opacity: .6; pointer-events: none; }
.painel-acoes { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.painel-icone {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--camada-2);
    font-size: 1rem;
}
.painel-icone:hover { background: #2c2d36; }
.tema-painel .botao-entrar { background: var(--gradiente); border: 0; color: #fff; }
.tema-painel .botao-entrar:hover { color: #fff; box-shadow: 0 8px 22px rgba(255, 61, 110, .35); }
.tema-painel .avatar { box-shadow: 0 0 0 2px #17181e, 0 0 0 3px var(--destaque); background: var(--gradiente); color: #fff; }
.tema-painel .instalar { background: var(--gradiente); color: #fff; box-shadow: none; }

.painel-conteudo { position: relative; min-height: 60vh; }
.tema-painel .rodape { margin-top: 2rem; padding: 1.2rem 0 0; border-top: 1px solid var(--borda); font-size: .78rem; }
@media (max-width: 899px) { .tema-painel .rodape { padding-bottom: calc(var(--altura-nav-inferior) + 1rem); } }

/* ---------- Coluna da direita: mais clicadas (em cima) e mais buscados (embaixo) ---------- */
.painel-direita { display: grid; gap: 1rem; padding: 0 16px 1.5rem; }
@media (min-width: 900px) {
    .painel-direita { grid-column: 2; grid-template-columns: 1fr 1fr; padding: 0 28px 28px; }
}
@media (min-width: 1280px) {
    .painel-direita {
        grid-column: 3;
        grid-row: 1;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 0;
        padding: 22px 0 18px;
        border-left: 1px solid var(--borda);
        position: sticky;
        top: 0;
        height: calc(100vh - 40px);
    }
    .painel-direita .painel-bloco { min-height: 0; overflow-y: auto; padding: 0 20px 14px; scrollbar-width: thin; }
    .painel-direita .painel-bloco + .painel-bloco { border-top: 1px solid var(--borda); padding-top: 18px; }
}
.painel-bloco { min-width: 0; }
.painel-bloco-titulo { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin-bottom: .8rem; }
.painel-bloco-titulo h2 { margin: 0; font-size: 1.12rem; }
.painel-bloco-titulo a { color: var(--suave) !important; font-size: .78rem; }
.painel-bloco-titulo a:hover { color: var(--destaque) !important; }

.lista-ranking { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.lista-ranking a {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: .8rem;
    align-items: center;
    padding: .35rem;
    border-radius: 14px;
    transition: background .2s;
}
.lista-ranking a:hover { background: rgba(255, 255, 255, .04); color: var(--texto); }
.ranking-capa { position: relative; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: #fff; }
.ranking-capa img { width: 100%; height: 100%; object-fit: cover; }
.ranking-posicao {
    position: absolute;
    left: 3px;
    top: 3px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 6px;
    background: rgba(12, 13, 17, .85);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    display: grid;
    place-items: center;
}
.ranking-info { min-width: 0; display: grid; gap: .2rem; }
.ranking-titulo {
    font-weight: 600;
    font-size: .86rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ranking-preco { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; font-size: .8rem; }
.ranking-preco strong { font-weight: 800; }
.mini-desconto { padding: .05rem .35rem; border-radius: 6px; background: rgba(255, 77, 109, .16); color: #ff8aa0; font-weight: 700; font-size: .7rem; }
.mini-cupom { color: var(--suave); font-size: .7rem; }
.barra-popularidade { display: block; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; max-width: 150px; }
.barra-popularidade span { display: block; height: 100%; border-radius: inherit; background: #fff; }

/* ---------- Banner (hero) com as ofertas em destaque ---------- */
.painel-hero {
    position: relative;
    height: 380px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--camada-2);
    margin-bottom: 1.6rem;
}
@media (min-width: 700px) { .painel-hero { height: 330px; } }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.hero-slide.ativo { opacity: 1; visibility: visible; }
.hero-fundo {
    position: absolute;
    inset: -40px;
    background-size: cover;
    background-position: center;
    filter: blur(36px) brightness(.5) saturate(1.4);
}
.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(12, 13, 17, .85) 0%, rgba(12, 13, 17, .35) 60%, transparent 100%);
}
.hero-produto {
    position: absolute;
    z-index: 1;
    right: 50%;
    top: 22px;
    transform: translateX(50%);
    height: 150px;
    max-width: 70%;
    object-fit: contain;
    padding: 10px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}
@media (min-width: 700px) {
    .hero-produto { right: 6%; top: 50%; transform: translateY(-50%); height: 72%; max-width: 38%; }
}
.hero-texto { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 24px; display: grid; gap: .8rem; justify-items: start; }
@media (min-width: 700px) { .hero-texto { left: 30px; right: 48%; bottom: 30px; } }
.hero-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.hero-tags span {
    padding: .25rem .65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(6px);
    font-size: .74rem;
    font-weight: 600;
}
.hero-texto h2 {
    margin: 0;
    font-size: clamp(1.15rem, 2.4vw, 1.6rem);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-comprar {
    display: grid;
    gap: .1rem;
    padding: .65rem 1.3rem;
    border-radius: 14px;
    background: var(--gradiente);
    color: #fff !important;
    box-shadow: 0 12px 30px rgba(255, 61, 110, .4);
    transition: transform .15s;
}
.hero-comprar:hover { transform: translateY(-2px); }
.hero-comprar-rotulo { font-size: .78rem; font-weight: 600; opacity: .9; }
.hero-comprar-preco { display: flex; align-items: baseline; gap: .6rem; }
.hero-comprar-preco strong { font-size: 1.15rem; }
.hero-comprar-preco s { font-size: .82rem; opacity: .75; }
.hero-desconto {
    position: absolute;
    z-index: 2;
    top: 18px;
    right: 18px;
    padding: .35rem .7rem;
    border-radius: 12px;
    background: var(--destaque);
    color: #fff;
    font-weight: 800;
}
/* Setas do banner (as bolinhas ficam só como indicador da posição) */
.hero-seta {
    position: absolute;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(12, 13, 17, .55);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.hero-seta:hover { background: rgba(12, 13, 17, .85); transform: translateY(-50%) scale(1.06); }
.hero-seta:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hero-seta.anterior { left: 10px; }
.hero-seta.proximo { right: 10px; }
@media (max-width: 699px) { .hero-seta { top: 96px; } }
@media (min-width: 700px) {
    .hero-texto { left: 64px; }
    .hero-produto { right: calc(6% + 34px); }
}
.hero-pontos { position: absolute; z-index: 3; bottom: 14px; right: 22px; display: flex; gap: .4rem; pointer-events: none; }
.hero-pontos span {
    display: block;
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, .35);
    cursor: pointer;
    transition: width .3s, background .3s;
}
.hero-pontos span.ativo { width: 24px; background: #fff; }

/* ---------- Carrosséis ---------- */
.tema-painel .titulo-bloco h2::after { display: none; }
.tema-painel .titulo-bloco h2 { font-size: 1.2rem; }
.carrossel-controles { display: flex; align-items: center; gap: .5rem; }
.carrossel-controles a { color: var(--suave) !important; font-size: .82rem; margin-right: .3rem; white-space: nowrap; }
.carrossel-controles button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: var(--camada-2);
    color: var(--texto);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: background .2s;
}
.carrossel-controles button:hover { background: #30313b; }
.carrossel-trilho {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 4px 2px 6px;
}
.carrossel-trilho::-webkit-scrollbar { display: none; }
.carrossel-trilho:focus-visible { outline: 2px solid var(--destaque); outline-offset: 4px; border-radius: 12px; }
.carrossel-trilho > * { flex: 0 0 168px; scroll-snap-align: start; }
@media (min-width: 700px) { .carrossel-trilho > * { flex-basis: 200px; } }

/* ---------- Cards no visual painel ---------- */
.tema-painel .card-oferta,
.tema-painel .card-jogo {
    background: var(--camada-2);
    border: 1px solid transparent;
    border-radius: 18px;
    box-shadow: none;
}
.tema-painel .card-oferta:hover,
.tema-painel .card-jogo:hover { border-color: rgba(255, 77, 109, .35); box-shadow: 0 14px 30px rgba(0, 0, 0, .35); transform: translateY(-3px); }
.tema-painel .card-oferta.escolhida { box-shadow: 0 0 0 1px rgba(255, 184, 77, .55); }
.tema-painel .card-oferta .capa { border-radius: 18px 18px 0 0; }
.tema-painel .loja-oferta { color: var(--suave); }
.tema-painel .preco strong,
.tema-painel .preco-favorito strong { color: #fff; text-shadow: none; font-family: var(--fonte); }
.tema-painel .botao-oferta { background: var(--gradiente); color: #fff; box-shadow: none; }
.tema-painel .selo-desconto { background: var(--destaque); box-shadow: none; }
.tema-painel .cupom { border-color: rgba(255, 184, 77, .55); color: #ffcf7a; }

/* Elementos neon que não combinam com o painel */
.tema-painel .fundo-jogo { opacity: .22; }
.tema-painel .hero h1 .neon { -webkit-text-fill-color: var(--destaque); }

/* ---------- Troca de visual (também usada no visual neon) ---------- */
.troca-visual-icone { display: none !important; }
@media (min-width: 900px) {
    .troca-visual-icone {
        display: inline-grid !important;
        place-items: center;
        width: 34px;
        height: 34px;
        padding: 0 !important;
        border-radius: 50% !important;
    }
}
.troca-visual-rodape a { font-weight: 600; }
.troca-visual-rodape a.ativo { text-decoration: underline; }

/* ---------- Ícones de traço (menus) ---------- */
.icone-svg { display: block; flex: none; }
.painel-menu .icone-svg { opacity: .7; }
.painel-menu a.active .icone-svg,
.painel-menu a:hover .icone-svg { opacity: 1; }
.painel-busca > span { display: grid; place-items: center; }
.painel-busca > span .icone-svg { width: 18px; height: 18px; }
.painel-icone .icone-svg { width: 19px; height: 19px; }
.troca-visual-icone .icone-svg { width: 19px; height: 19px; }
.nav-inferior .icone { display: grid; place-items: center; height: 24px; filter: none; }
.nav-inferior a:not(.active) .icone { opacity: .75; }

.hero-tags .selo-acabou { font-size: .7rem; opacity: .85; }

/* Dica de instalação no iPhone: cantos e sombra do visual painel */
.tema-painel .dica-ios { border-radius: 14px; background: var(--camada); box-shadow: 0 8px 28px rgba(0, 0, 0, .5); }
.tema-painel .dica-ios-icone { color: var(--destaque); }
.tema-painel .dica-ios button:hover { background: var(--camada-2); }
