* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    width: 100%;
    height: 100%;
}


body {
    width: 100%;
    min-height: 100vh;

    overflow: hidden;

    font-family: Arial, Helvetica, sans-serif;

    background: #101510;

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
}


/* =========================================================
           FUNDO PRINCIPAL
        ========================================================= */

.background {
    position: fixed;

    inset: -5%;

    z-index: -10;

    background-image:
        linear-gradient(180deg,
            rgba(8, 15, 10, 0.30),
            rgba(4, 8, 5, 0.78)),
        url("assets/fundoquis.jpg");

    background-size: cover;

    background-position: center;

    transform: scale(1.05);

    animation: backgroundMove 18s ease-in-out infinite alternate;
}


@keyframes backgroundMove {

    0% {
        transform:
            scale(1.05) translate3d(-0.5%, -0.5%, 0);
    }

    50% {
        transform:
            scale(1.08) translate3d(0.5%, 0.3%, 0);
    }

    100% {
        transform:
            scale(1.05) translate3d(-0.2%, 0.7%, 0);
    }
}


/* =========================================================
           CAMADA ESCURA
        ========================================================= */

.background-dark {
    position: fixed;

    inset: 0;

    z-index: -9;

    background:
        radial-gradient(circle at center,
            transparent 15%,
            rgba(0, 0, 0, 0.22) 50%,
            rgba(0, 0, 0, 0.70) 100%);

    pointer-events: none;
}


/* =========================================================
           VINHETA
        ========================================================= */

.vignette {
    position: fixed;

    inset: 0;

    z-index: -8;

    pointer-events: none;

    box-shadow:
        inset 0 0 180px rgba(0, 0, 0, 0.75),
        inset 0 0 60px rgba(0, 0, 0, 0.35);
}


/* =========================================================
           LUZ AMBIENTE
        ========================================================= */

.ambient-light {
    position: fixed;

    width: 700px;
    height: 700px;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    z-index: -7;

    background:
        radial-gradient(circle,
            rgba(112, 176, 72, 0.10),
            transparent 65%);

    pointer-events: none;

    animation: ambientPulse 7s ease-in-out infinite;
}


@keyframes ambientPulse {

    0%,
    100% {
        opacity: 0.65;
        transform:
            translate(-50%, -50%) scale(0.95);
    }

    50% {
        opacity: 1;
        transform:
            translate(-50%, -50%) scale(1.08);
    }
}


/* =========================================================
           PARTÍCULAS
        ========================================================= */

.particles {
    position: fixed;

    inset: 0;

    overflow: hidden;

    pointer-events: none;

    z-index: -5;
}


.particle {
    position: absolute;

    width: 4px;
    height: 4px;

    background: rgba(255, 255, 255, 0.22);

    box-shadow:
        0 0 5px rgba(255, 255, 255, 0.12);

    animation:
        particleFloat linear infinite;
}


.particle:nth-child(1) {
    left: 8%;
    bottom: -20px;
    animation-duration: 11s;
    animation-delay: 0s;
}


.particle:nth-child(2) {
    left: 18%;
    bottom: -20px;
    animation-duration: 14s;
    animation-delay: 3s;
}


.particle:nth-child(3) {
    left: 31%;
    bottom: -20px;
    animation-duration: 9s;
    animation-delay: 5s;
}


.particle:nth-child(4) {
    left: 47%;
    bottom: -20px;
    animation-duration: 13s;
    animation-delay: 1s;
}


.particle:nth-child(5) {
    left: 59%;
    bottom: -20px;
    animation-duration: 10s;
    animation-delay: 6s;
}


.particle:nth-child(6) {
    left: 71%;
    bottom: -20px;
    animation-duration: 15s;
    animation-delay: 2s;
}


.particle:nth-child(7) {
    left: 83%;
    bottom: -20px;
    animation-duration: 12s;
    animation-delay: 7s;
}


.particle:nth-child(8) {
    left: 93%;
    bottom: -20px;
    animation-duration: 10s;
    animation-delay: 4s;
}


@keyframes particleFloat {

    0% {
        transform:
            translateY(0) translateX(0) scale(0.5);

        opacity: 0;
    }

    15% {
        opacity: 0.7;
    }

    50% {
        transform:
            translateY(-50vh) translateX(25px) scale(1);
    }

    85% {
        opacity: 0.3;
    }

    100% {
        transform:
            translateY(-110vh) translateX(-20px) scale(0.7);

        opacity: 0;
    }
}


/* =========================================================
           CONTAINER PRINCIPAL
        ========================================================= */

.menu {

    width: min(430px, 90vw);

    padding: 48px 38px 38px;

    position: relative;

    text-align: center;

    background:
        linear-gradient(135deg,
            rgba(91, 53, 27, 0.98),
            rgba(55, 30, 15, 0.98));

    border: 5px solid #24150b;

    box-shadow:

        0 0 0 2px rgba(255, 255, 255, 0.04),

        0 8px 0 #171008,

        0 18px 0 #0e0b07,

        0 30px 45px rgba(0, 0, 0, 0.70);

    animation: menuEnter 0.9s cubic-bezier(.2, .8, .2, 1);

    isolation: isolate;
}


@keyframes menuEnter {

    from {
        opacity: 0;

        transform:
            translateY(30px) scale(0.94);
    }

    to {
        opacity: 1;

        transform:
            translateY(0) scale(1);
    }
}


/* =========================================================
           TOPO DO BLOCO — GRAMA
        ========================================================= */

.menu::before {

    content: "";

    position: absolute;

    top: -5px;
    left: -5px;
    right: -5px;

    height: 31px;

    background:
        repeating-linear-gradient(90deg,

            #3d7424 0px,
            #3d7424 8px,

            #4f8f2d 8px,
            #4f8f2d 17px,

            #5c9d34 17px,
            #5c9d34 25px);

    border-bottom: 5px solid #2d571b;

    z-index: 3;
}


/* =========================================================
           TEXTURA INTERNA DA TERRA
        ========================================================= */

.menu::after {

    content: "";

    position: absolute;

    inset: 28px 0 0;

    z-index: -1;

    opacity: 0.35;

    background-image:

        radial-gradient(square,
            rgba(27, 15, 8, 0.65) 2px,
            transparent 3px);

    background-size: 38px 38px;

    pointer-events: none;
}


/* =========================================================
           DETALHES DE PEDRA/TERRA
        ========================================================= */

.block-detail {

    position: absolute;

    width: 7px;
    height: 7px;

    background: rgba(20, 11, 6, 0.5);

    pointer-events: none;
}


.detail-1 {
    top: 85px;
    left: 24px;
}


.detail-2 {
    top: 150px;
    right: 25px;
}


.detail-3 {
    top: 230px;
    left: 45px;
}


.detail-4 {
    bottom: 70px;
    right: 28px;
}


.detail-5 {
    bottom: 35px;
    left: 80px;
}


.detail-6 {
    top: 310px;
    right: 55px;
}


/* =========================================================
           LOGO CREEPER
        ========================================================= */

.logo-wrapper {

    width: 150px;
    height: 150px;

    margin: 0 auto 15px;

    display: flex;

    align-items: center;
    justify-content: center;

    position: relative;
}


/* brilho atrás da logo */

.logo-wrapper::before {

    content: "";

    position: absolute;

    width: 130px;
    height: 130px;

    background:
        radial-gradient(circle,
            rgba(105, 190, 65, 0.28),
            transparent 68%);

    filter: blur(8px);

    animation: logoGlow 3s ease-in-out infinite;
}


@keyframes logoGlow {

    0%,
    100% {
        opacity: 0.55;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}


/* =========================================================
           IMAGEM DO CREEPER
        ========================================================= */

.logo {

    width: 120px;
    height: 120px;

    object-fit: cover;

    position: relative;

    image-rendering: pixelated;

    border: 4px solid #274c18;

    box-shadow:

        0 0 0 3px #14240d,

        6px 6px 0 #101010,

        0 0 22px rgba(84, 163, 48, 0.30);

    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}


.logo:hover {

    transform:
        scale(1.06) rotate(-1deg);

    filter:
        brightness(1.12) saturate(1.1);

    box-shadow:

        0 0 0 3px #14240d,

        7px 7px 0 #101010,

        0 0 32px rgba(105, 205, 65, 0.45);
}


/* =========================================================
           TÍTULO
        ========================================================= */

.title {

    font-size: clamp(32px, 8vw, 43px);

    font-weight: 900;

    letter-spacing: 1px;

    color: #ffffff;

    text-transform: uppercase;

    text-shadow:

        3px 3px 0 #202020,

        6px 6px 0 #111111,

        0 0 15px rgba(0, 0, 0, 0.35);

    margin-bottom: 8px;
}


.subtitle {

    color: #d6d6d6;

    font-size: 14px;

    line-height: 1.5;

    max-width: 280px;

    margin: 0 auto 30px;

    text-shadow:
        1px 1px 2px #000;
}


/* =========================================================
           LINHA DECORATIVA
        ========================================================= */

.separator {

    width: 75%;

    height: 4px;

    margin: 0 auto 25px;

    background:
        repeating-linear-gradient(90deg,

            #6a9d43 0px,
            #6a9d43 10px,

            transparent 10px,
            transparent 16px);

    opacity: 0.7;
}


/* =========================================================
           BOTÕES
        ========================================================= */

.button {

    width: 100%;

    min-height: 58px;

    margin-top: 16px;

    display: flex;

    align-items: center;
    justify-content: center;

    position: relative;

    overflow: hidden;

    text-decoration: none;

    color: white;

    font-size: 17px;

    font-weight: 900;

    letter-spacing: 0.5px;

    text-shadow:
        2px 2px 0 rgba(0, 0, 0, 0.6);

    background:
        linear-gradient(180deg,
            #6ba83b,
            #4d8b2b);

    border: 4px solid #31591c;

    box-shadow:

        inset 3px 3px 0 rgba(255, 255, 255, 0.13),

        inset -3px -3px 0 rgba(0, 0, 0, 0.16),

        0 6px 0 #203c13,

        0 10px 14px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.12s ease,
        filter 0.2s ease,
        box-shadow 0.12s ease;
}


/* brilho passando pelo botão */

.button::before {

    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 80%;
    height: 100%;

    background:
        linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.14),
            transparent);

    transform: skewX(-20deg);

    transition: left 0.5s ease;
}


.button:hover::before {

    left: 140%;
}


.button:hover {

    filter: brightness(1.10);

    transform:
        translateY(-2px);

    box-shadow:

        inset 3px 3px 0 rgba(255, 255, 255, 0.14),

        inset -3px -3px 0 rgba(0, 0, 0, 0.16),

        0 8px 0 #203c13,

        0 14px 22px rgba(0, 0, 0, 0.35);
}


.button:active {

    transform:
        translateY(5px);

    box-shadow:

        inset 3px 3px 0 rgba(255, 255, 255, 0.08),

        inset -3px -3px 0 rgba(0, 0, 0, 0.20),

        0 2px 0 #203c13;
}


/* =========================================================
           ÍCONE DO BOTÃO PRINCIPAL
        ========================================================= */

.start-icon {

    position: absolute;

    left: 18px;

    font-size: 23px;

    transition:
        transform 0.2s ease;
}


.start-button:hover .start-icon {

    transform:
        scale(1.15) rotate(-5deg);
}


/* =========================================================
           BOTÃO VOLTAR
        ========================================================= */

.back-button {

    background:
        linear-gradient(180deg,
            #5b5b5b,
            #414141);

    border-color: #303030;

    box-shadow:

        inset 3px 3px 0 rgba(255, 255, 255, 0.10),

        inset -3px -3px 0 rgba(0, 0, 0, 0.18),

        0 6px 0 #242424,

        0 10px 14px rgba(0, 0, 0, 0.20);
}


.back-button:hover {

    filter: brightness(1.12);

    box-shadow:

        inset 3px 3px 0 rgba(255, 255, 255, 0.11),

        inset -3px -3px 0 rgba(0, 0, 0, 0.18),

        0 8px 0 #242424,

        0 14px 20px rgba(0, 0, 0, 0.30);
}


/* =========================================================
           RODAPÉ
        ========================================================= */

.footer {

    margin-top: 25px;

    color: rgba(255, 255, 255, 0.42);

    font-size: 10px;

    letter-spacing: 1px;

    text-transform: uppercase;
}


/* =========================================================
           PEQUENOS PIXELS DECORATIVOS
        ========================================================= */

.pixel {

    position: absolute;

    width: 5px;
    height: 5px;

    background: #6d3f1d;

    opacity: 0.65;
}


.pixel-1 {
    top: 52px;
    left: 70px;
}


.pixel-2 {
    top: 65px;
    left: 92px;
}


.pixel-3 {
    top: 85px;
    right: 70px;
}


.pixel-4 {
    bottom: 50px;
    right: 90px;
}


.pixel-5 {
    bottom: 80px;
    left: 50px;
}


/* =========================================================
           SOMBRA NO CHÃO
        ========================================================= */

.ground-shadow {

    position: fixed;

    width: 450px;
    max-width: 80vw;

    height: 50px;

    left: 50%;
    bottom: 7%;

    transform:
        translateX(-50%);

    background:
        radial-gradient(ellipse,
            rgba(0, 0, 0, 0.65),
            transparent 70%);

    filter: blur(8px);

    z-index: -3;

    animation:
        shadowPulse 4s ease-in-out infinite;
}


@keyframes shadowPulse {

    0%,
    100% {
        transform:
            translateX(-50%) scaleX(0.9);
    }

    50% {
        transform:
            translateX(-50%) scaleX(1);
    }
}


/* =========================================================
           RESPONSIVIDADE
        ========================================================= */

@media (max-width: 600px) {

    body {
        overflow-y: auto;
        padding: 25px 0;
    }


    .menu {

        width: 88vw;

        padding:
            42px 24px 30px;
    }


    .logo-wrapper {

        width: 125px;
        height: 125px;
    }


    .logo {

        width: 100px;
        height: 100px;
    }


    .title {

        font-size: 31px;
    }


    .subtitle {

        font-size: 13px;

        margin-bottom: 24px;
    }


    .button {

        min-height: 54px;

        font-size: 15px;
    }


    .start-icon {

        left: 14px;
    }
}


/* =========================================================
           TELAS MUITO PEQUENAS
        ========================================================= */

@media (max-height: 650px) {

    .menu {

        padding-top: 32px;
        padding-bottom: 25px;
    }


    .logo-wrapper {

        width: 105px;
        height: 105px;

        margin-bottom: 5px;
    }


    .logo {

        width: 82px;
        height: 82px;
    }


    .subtitle {

        margin-bottom: 16px;
    }


    .button {

        min-height: 48px;

        margin-top: 12px;
    }


    .footer {

        margin-top: 16px;
    }
}


/* =========================================================
           REDUÇÃO DE MOVIMENTO
        ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }
}

.desenvolvido {
    position: fixed;
    bottom: 15px;
    right: 20px;

    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);

    letter-spacing: 1px;

    z-index: 100;
}