/*---------- Resete ----------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*---------- Variáveis da Página ----------*/
:root {
    --cor-branco: #FFFFFF;
    --cor-preto: #000000;
    --cor-cinza: #888888;
    --cor-cinza-claro: #B0B8C8;
    --cor-cinza-mais-claro: #D9D9D9;
    --cor-azul: #347CD4;
    --cor-azul-0: #40506D;
    --cor-azul-1: #274273;
    --cor-azul-2: #1E3256;
    --cor-azul-3: #192B4B;
    --cor-azul-4: #182641;

    --fonte-principal: 'Josefin Sans', sans-serif;
    --fonte-secundaria: 'Jockey One', sans-serif;
}

/*------------------------------ Mobile First ------------------------------*/
body {
    background-color: #000;
    color: var(--cor-branco);
    font-family: var(--fonte-principal);
    overflow: hidden;
    height: 100dvh;
}

/*---------- Imagem de Fundo (Apenas para Tablets e Computadores) ----------*/
body::before {
    content: "";
    background-image: url('../img/background.jpg');
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: 100% 120%;
    background-repeat: no-repeat;
    background-position: center center;
}

/*---------- Background ----------*/
.container {
    position: relative;
    width: 100%;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.background {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 1;
}

.background img { 
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    inset: 0;
    transition: opacity 0.8s ease;
}

/*---------- Fundo Escuro ----------*/
.background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 2;
}

/*---------- Conteúdo da Tela ----------*/
.tela {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    width: 100%;
    max-width: 400px; 
}

/*---------- Logo ----------*/
.logo {
    margin-top: 110px;
    margin-bottom: 40px;
}

.logo h1 {
    font-family: var(--fonte-principal);
    font-style: italic;
    font-size: 4rem;
    letter-spacing: 2px;
    margin-bottom: 2px;
    color: #FFFFFF;
    animation: neon-piscar 2.5s infinite alternate;
}

.logo h2 {
    font-weight: 600; 
    font-style: italic;
    font-size: 1.2rem;
    color: var(--cor-branco);
    letter-spacing: 1px;
}

@keyframes neon-piscar {
    0%, 100% { text-shadow: 0 0 4px rgba(138, 230, 255, 0.4), 0 0 8px rgba(52, 124, 212, 0.4); }
    50% { text-shadow: 0 0 8px rgba(138, 230, 255, 0.8), 0 0 15px rgba(52, 124, 212, 0.8); }
}

/*---------- Texto ----------*/
.tela p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--cor-branco);
    margin-bottom: 30px;
    padding: 0 15px;
    font-weight: 400;
}

/*---------- Botão Principal (Começar a Jogar) ----------*/
.btn-jogar {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    margin-bottom: 40px;
    font-family: var(--fonte-principal);
    font-weight: 700;
    font-style: italic;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
    border: 1.5px solid rgba(160, 210, 255, 0.45);
    border-radius: 8px;
    outline: none;
    overflow: hidden;
    user-select: none;

    background: linear-gradient(
    to bottom,
    #5ba8e8 0%,
    #347CD4 40%,
    #2060b8 100%
    );

    box-shadow:
    0 0 0 2px #0f3a80,
    0 6px 0 0 #0d2e6e,
    0 8px 10px rgba(0,0,0,0.5),
    inset 0 0 20px 6px rgba(80, 200, 255, 0.6);

    text-shadow: 1px 1px 4px rgba(0, 0, 80, 0.5);
    letter-spacing: 1px;
    transition: box-shadow 0.08s, transform 0.08s, filter 0.08s;

    animation: neon-run 2s linear infinite;
}

@keyframes neon-run {
    0%   { box-shadow: 0 0 0 2px #0f3a80, 0 6px 0 0 #0d2e6e, 0 8px 10px rgba(0,0,0,0.5), inset 18px 0 28px -4px rgba(80,220,255,0.95), inset 0 0 8px rgba(80,220,255,0.2); }
    25%  { box-shadow: 0 0 0 2px #0f3a80, 0 6px 0 0 #0d2e6e, 0 8px 10px rgba(0,0,0,0.5), inset 0 18px 28px -4px rgba(80,220,255,0.95), inset 0 0 8px rgba(80,220,255,0.2); }
    50%  { box-shadow: 0 0 0 2px #0f3a80, 0 6px 0 0 #0d2e6e, 0 8px 10px rgba(0,0,0,0.5), inset -18px 0 28px -4px rgba(80,220,255,0.95), inset 0 0 8px rgba(80,220,255,0.2); }
    75%  { box-shadow: 0 0 0 2px #0f3a80, 0 6px 0 0 #0d2e6e, 0 8px 10px rgba(0,0,0,0.5), inset 0 -18px 28px -4px rgba(80,220,255,0.95), inset 0 0 8px rgba(80,220,255,0.2); }
    100% { box-shadow: 0 0 0 2px #0f3a80, 0 6px 0 0 #0d2e6e, 0 8px 10px rgba(0,0,0,0.5), inset 18px 0 28px -4px rgba(80,220,255,0.95), inset 0 0 8px rgba(80,220,255,0.2); }
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.btn-jogar::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 10px;
    background: conic-gradient(
    from var(--angle, 0deg),
    transparent 0%,
    transparent 60%,
    rgba(80, 200, 255, 0.4) 70%,
    rgba(140, 230, 255, 1) 80%,
    rgba(220, 245, 255, 1) 85%,
    rgba(140, 230, 255, 1) 90%,
    rgba(80, 200, 255, 0.4) 95%,
    transparent 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 3px;
    animation: spin-angle 2s linear infinite;
    pointer-events: none;
    filter: blur(1px);
}

/*--- halo externo que acompanha o ponto de luz ---*/
.btn-jogar::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 12px;
    background: conic-gradient(
    from var(--angle, 0deg),
    transparent 0%,
    transparent 75%,
    rgba(80, 200, 255, 0.15) 80%,
    rgba(140, 230, 255, 0.5) 85%,
    rgba(80, 200, 255, 0.15) 90%,
    transparent 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    padding: 6px;
    animation: spin-angle 2s linear infinite;
    pointer-events: none;
    filter: blur(4px);
}

@keyframes spin-angle {
    to { --angle: 360deg; }
}

.btn-jogar:hover {
    filter: brightness(1.1);
}

.btn-jogar:active {
    transform: translateY(6px);
    box-shadow:
    0 0 0 2px #0f3a80,
    0 0px 0 0 #0d2e6e,
    0 2px 6px rgba(0,0,0,0.4),
    inset 0 0 14px 4px rgba(80, 210, 255, 0.5);
    animation: none;
}
.btn-jogar:active::before,
.btn-jogar:active::after {
    animation: none;
    opacity: 0;
}

/*---------- Botões Secundários (Entrar e Criar Conta) ----------*/
.botoes-auth {
    display: flex;
    flex-direction: column; 
    align-items: center;
    width: 100%;
}

.btn-entrar,
.btn-cadastrar {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: var(--cor-branco);
    font-size: 1.125rem;
    font-weight: 500;
    padding: 7px 15px;
    margin-bottom: 20px;
    border-radius: 30px; 
    background-color: rgba(24, 38, 65, 0.7);
    border: 2px solid var(--cor-azul); 
    transition: all 0.3s ease;
}

/*---------- Botão Regras e Ajudas ----------*/
.btn-regras-ajudas {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: var(--cor-branco);
    font-size: 1rem;
    font-weight: 600;
    padding: 10px 10px;
    margin-top: 25px;
    margin-bottom: 20px;
    border-radius: 10px; 
    background-color: rgba(24, 38, 65, 0.5); 
    border: none; 
    transition: all 0.3s ease;
}

.btn-entrar:hover,
.btn-cadastrar:hover,
.btn-regras-ajudas:hover {
    background-color: rgba(131, 181, 241, 0.173);
    transform: scale(1.04);
}

/*---------- Rodapé ----------*/
footer {
    margin-top: 0px;
}

footer small {
    font-size: 12px;
    color: var(--cor-cinza);
    font-weight: 300;
}

/*------------------------------ Telas Médias (Tablets e Notebooks Pequenos) ------------------------------*/
@media (min-width: 900px) {
    body {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .container {
        width: 90%;
        max-width: 900px; 
        height: 600px; 
        border-radius: 20px;
        box-shadow: 0px 0px 7px #347CD4;
        overflow: hidden; 
    }

    .logo {
        margin-top: 50px; 
    }

    .tela p {
        padding: 0 40px; 
        max-width: 700px; 
    }

    .botoes-auth {
        flex-direction: row; 
        justify-content: center;
        gap: 20px; 
        margin-bottom: 25px; 
    }

    .btn-entrar,
    .btn-cadastrar {
        margin-bottom: 0; 
        padding: 8px 20px; 
        
    }
    
    .btn-regras-ajudas {
        margin-top: 10px;
    }
}

/*------------------------------ Telas Grandes ------------------------------*/
@media (min-width: 1400px) {
    .container {
        max-width: 1200px;
        height: 85dvh;
    }

    .logo h1 {
        font-size: 5rem;
    }

    .logo h2 {
        font-size: 1.5rem;
    }

    .tela p {
        font-size: 1.125rem;
        max-width: 750px; 
    }

    .btn-jogar {
        font-size: 2rem;
        padding: 15px 40px;
    }

}