/* ==========================================================================
   PokeRise.online — base do site público
   Tokens, reset, tipografia, botões, topo, rodapé e componentes comuns.
   Estilos de cada página ficam no arquivo próprio (ex.: inicio.css).
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    --fundo:        #0c0c1e;
    --fundo-2:      #11112a;
    --painel:       #161636;
    --painel-2:     #1c1c44;
    --borda:        #2b2b5c;
    --borda-forte:  #3d3d7a;

    --texto:        #ececff;
    --texto-2:      #a8a8d0;
    --texto-3:      #7474a3;

    --roxo:         #7c5cff;
    --roxo-claro:   #a78bfa;
    --rosa:         #ff5c8a;
    --dourado:      #ffcb45;
    --dourado-2:    #ff9f1c;
    --verde:        #3ddc84;
    --vermelho:     #ff4d5e;

    --fonte-texto:  "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --fonte-pixel:  "Pixelify Sans", "Nunito", system-ui, sans-serif;

    --raio:         14px;
    --raio-grande:  22px;
    --sombra:       0 18px 50px rgba(0, 0, 0, .45);
    --brilho-roxo:  0 0 0 1px rgba(124, 92, 255, .35), 0 10px 40px rgba(124, 92, 255, .25);

    --largura:      1180px;
    --topo-altura:  72px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--topo-altura) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--fundo);
    color: var(--texto);
    font-family: var(--fonte-texto);
    font-size: 17px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, p, ul, ol {
    margin: 0;
}

ul[role="list"],
ol {
    list-style: none;
    padding: 0;
}

:focus-visible {
    outline: 3px solid var(--dourado);
    outline-offset: 3px;
    border-radius: 6px;
}

::selection {
    background: var(--roxo);
    color: #fff;
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--largura);
    margin-inline: auto;
    padding-inline: 20px;
}

.pular-conteudo {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--dourado);
    color: #1a1300;
    font-weight: 800;
    transition: top .2s;
}

.pular-conteudo:focus {
    top: 12px;
}

/* ---------- Botões ---------- */
.botao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-family: var(--fonte-texto);
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}

.botao:hover {
    transform: translateY(-2px);
}

.botao:active {
    transform: translateY(0);
}

.botao--primario {
    background: linear-gradient(135deg, var(--roxo) 0%, #9b6bff 55%, var(--rosa) 130%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(124, 92, 255, .4), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.botao--primario:hover {
    box-shadow: 0 12px 32px rgba(124, 92, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.botao--fantasma {
    background: rgba(255, 255, 255, .04);
    border-color: var(--borda-forte);
    color: var(--texto);
}

.botao--fantasma:hover {
    border-color: var(--roxo-claro);
    background: rgba(124, 92, 255, .1);
}

.botao--dourado {
    background: linear-gradient(135deg, var(--dourado) 0%, var(--dourado-2) 100%);
    color: #241600;
    box-shadow: 0 8px 24px rgba(255, 179, 46, .35), inset 0 1px 0 rgba(255, 255, 255, .4);
}

.botao--grande {
    min-height: 54px;
    padding: 16px 28px;
    font-size: 17px;
    border-radius: 14px;
}

.botao--bloco {
    width: 100%;
}

/* ---------- Marca ---------- */
.marca {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.marca__icone {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 4px 10px rgba(255, 77, 94, .35));
    transition: transform .4s ease;
}

.marca:hover .marca__icone {
    transform: rotate(-20deg);
}

.marca__nome {
    font-family: var(--fonte-pixel);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .5px;
}

.marca__dominio {
    color: var(--roxo-claro);
}

/* ---------- Topo ---------- */
.topo {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: var(--topo-altura);
    border-bottom: 1px solid transparent;
    transition: background-color .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}

.topo.topo--rolado {
    background: rgba(12, 12, 30, .82);
    border-bottom-color: var(--borda);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.topo__linha {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 100%;
}

.menu {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.menu a {
    padding: 8px 14px;
    border-radius: 10px;
    color: var(--texto-2);
    font-weight: 700;
    font-size: 15px;
    transition: color .2s, background-color .2s;
}

.menu a:hover {
    color: var(--texto);
    background: rgba(255, 255, 255, .06);
}

.menu a.so-celular {
    display: none;
}

.topo__acoes {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-botao {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0 10px;
    border: 1px solid var(--borda-forte);
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    cursor: pointer;
}

.menu-botao span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--texto);
    transition: transform .25s ease, opacity .2s ease;
}

.menu-botao[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-botao[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-botao[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Seções ---------- */
.secao {
    position: relative;
    padding-block: 110px;
}

.secao__cabecalho {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
}

.secao__sobretitulo {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    border: 1px solid rgba(167, 139, 250, .35);
    border-radius: 999px;
    background: rgba(124, 92, 255, .1);
    color: var(--roxo-claro);
    font-family: var(--fonte-pixel);
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.secao__titulo {
    font-family: var(--fonte-pixel);
    font-size: clamp(30px, 4.2vw, 46px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.3px;
}

.secao__sub {
    margin-top: 16px;
    color: var(--texto-2);
    font-size: 18px;
}

/* ---------- Componentes comuns ---------- */
.selo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border: 1px solid var(--borda-forte);
    border-radius: 999px;
    background: rgba(22, 22, 54, .7);
    color: var(--texto-2);
    font-size: 14px;
    font-weight: 700;
}

.selo__ponto {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--verde);
    box-shadow: 0 0 0 0 rgba(61, 220, 132, .6);
    animation: pulsar 2s infinite;
}

.tipo {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .1);
    color: var(--texto);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .3px;
}

.icone {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Sprite animado (Pokémon e outfit): tamanho, linha e animação definidos pelo sprites.js */
.sprite {
    display: inline-block;
    width: calc(var(--sprite-largura, 0) * 1px);
    height: calc(var(--sprite-altura, 0) * 1px);
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: calc(var(--sprite-largura, 0) * var(--sprite-quadros, 1) * 1px) calc(var(--sprite-altura, 0) * var(--sprite-linhas, 1) * 1px);
    image-rendering: pixelated;
    animation: sprite-andar var(--sprite-duracao, .6s) steps(var(--sprite-quadros, 1)) infinite;
}

@keyframes sprite-andar {
    to {
        background-position-x: calc(var(--sprite-largura, 0) * var(--sprite-quadros, 1) * -1px);
    }
}

/* Animação de entrada ao rolar (só quando o JS está ativo) */
.js [data-revelar] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}

.js [data-revelar].revelado {
    opacity: 1;
    transform: none;
}

@keyframes pulsar {
    0%   { box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); }
    70%  { box-shadow: 0 0 0 10px rgba(61, 220, 132, 0); }
    100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

/* ---------- Rodapé ---------- */
.rodape {
    border-top: 1px solid var(--borda);
    background: #09091a;
    padding-top: 56px;
}

.rodape__grade {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 32px;
}

.rodape__marca p {
    margin-top: 12px;
    max-width: 340px;
    color: var(--texto-2);
    font-size: 15px;
}

.rodape__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    align-content: flex-start;
}

.rodape__links a {
    color: var(--texto-2);
    font-weight: 700;
    font-size: 15px;
    transition: color .2s;
}

.rodape__links a:hover {
    color: var(--texto);
}

.rodape__legal {
    margin-top: 40px;
    padding-block: 22px 28px;
    border-top: 1px solid var(--borda);
    color: var(--texto-3);
    font-size: 13px;
}

.rodape__legal p + p {
    margin-top: 6px;
}

/* ---------- Responsivo ---------- */
@media (max-width: 880px) {
    .menu {
        position: absolute;
        top: var(--topo-altura);
        left: 12px;
        right: 12px;
        flex-direction: column;
        gap: 2px;
        margin: 0;
        padding: 10px;
        border: 1px solid var(--borda-forte);
        border-radius: var(--raio);
        background: rgba(17, 17, 42, .97);
        box-shadow: var(--sombra);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }

    .menu.menu--aberto {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .menu a {
        padding: 12px 14px;
        font-size: 16px;
    }

    .topo__acoes {
        margin-left: auto;
    }

    .menu-botao {
        display: flex;
    }

    .topo {
        background: rgba(12, 12, 30, .82);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }

    .secao {
        padding-block: 80px;
    }
}

@media (max-width: 520px) {
    body {
        font-size: 16px;
    }

    .container {
        padding-inline: 16px;
    }

    .esconder-celular {
        display: none;
    }

    .menu a.so-celular {
        display: block;
        margin-top: 6px;
        border-top: 1px solid var(--borda);
        border-radius: 0 0 10px 10px;
        color: var(--texto);
    }

    .marca__nome {
        font-size: 19px;
    }

    .topo .marca__dominio {
        display: none;
    }

    .topo__acoes .botao {
        padding-inline: 14px;
    }

    .secao__sub {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .js [data-revelar] {
        opacity: 1;
        transform: none;
    }
}
