/* #start-game {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 8vh;
    overflow: hidden;
    background: #000;
    z-index: 99999;
    user-select: none;
    -webkit-user-select: none;
} */

#start-game {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 8vh;
    overflow: hidden;
    background: url("../assets/background/adventure.webp") center center/cover no-repeat;
    animation: bgMove 35s ease-in-out infinite alternate;
    z-index: 99999;
}

.clouds {
    position: absolute;
    inset: 0;
    background: url("../assets/background/clouds.webp") repeat-x;
    background-size: auto 100%;
    animation: cloudsMove 120s linear infinite;
    z-index: -2;
}

.sun {
    position: absolute;
    left: 50%;
    top: 46%;
    width: 420px;
    height: 420px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    background:
        radial-gradient(circle,
            rgba(255, 255, 220, .95) 0%,
            rgba(255, 245, 170, .55) 25%,
            rgba(255, 220, 120, .18) 55%,
            transparent 75%);
    filter: blur(35px);
    animation:
        sunGlow 4s ease-in-out infinite,
        sunRotate 40s linear infinite;
    z-index: -1;
}

.sun::before {
    content: "";
    position: absolute;
    inset: -120px;
    border-radius: 50%;
    background:
        repeating-conic-gradient(rgba(255, 255, 220, .12) 0deg,
            rgba(255, 255, 220, .12) 2deg,
            transparent 4deg,
            transparent 16deg);
    filter: blur(10px);
}

@keyframes sunGlow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(.95);
        opacity: .45;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.12);
        opacity: 1;
    }
}

@keyframes sunRotate {
    from {
        rotate: 0deg;
    }

    to {
        rotate: 360deg;
    }
}

@keyframes cloudsMove {
    from {
        background-position: 0 0;
    }

    to {
        background-position: -3500px 0;
    }
}


#start-game::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../assets/background/adventure.webp") center center/cover no-repeat;
    animation: bgMove 35s ease-in-out infinite alternate;
    transform-origin: center;
    z-index: 0;
}

#start-game::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(0, 0, 0, .05),
            rgba(0, 0, 0, .30)),
        radial-gradient(circle at center,
            rgba(255, 245, 170, .22),
            transparent 50%);
    animation: sunGlow 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

#btn-start {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    z-index: 5;
    overflow: hidden;
    animation: float 3s ease-in-out infinite;
}

#btn-start img {
    width: 210px;
    max-width: 42vw;
    height: auto;
    display: block;
    transition:
        transform .25s,
        filter .25s;
    filter:
        drop-shadow(0 12px 20px rgba(0, 0, 0, .45));
}

#btn-start:hover img {
    transform: scale(1.05);
}

#btn-start:active img {
    transform: scale(.94);
}

#btn-start::after {
    content: "";
    position: absolute;
    top: 28px;
    left: -120%;
    width: 25%;
    height: 50%;
    /* background: linear-gradient(110deg,
            transparent,
            rgba(255, 255, 255, .75),
            transparent); */
    transform: skewX(-25deg);
    animation: shine 4s linear infinite;
}

@keyframes bgMove {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.06);
    }

}

@keyframes sunGlow {

    0%,
    100% {
        opacity: .65;
    }

    50% {
        opacity: 1;
    }

}

@keyframes float {

    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0);
    }

}

@keyframes shine {

    100% {
        left: 180%;
    }

}

@media (max-width:1200px) {

    #btn-start img {

        width: 190px;

    }

}

@media (max-width:768px) {

    #start-game {

        padding-bottom: 7vh;

    }

    #btn-start img {

        width: 170px;
        max-width: 50vw;

    }

}

@media (max-width:480px) {

    #btn-start img {

        width: 150px;
        max-width: 55vw;

    }

}

@media (prefers-reduced-motion:reduce) {

    #start-game::before,
    #start-game::after,
    #btn-start,
    #btn-start::after {

        animation: none;

    }

}

#personagens {
    position: absolute;
    left: 50%;
    bottom: 165px;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    gap: 20px;
    z-index: 50;
}

.personagem-card {
    width: 115px;
    cursor: pointer;
    transition: .25s ease;
    user-select: none;
}

.personagem-card img {
    width: 100%;
    display: block;
    filter: grayscale(1) brightness(.72);
    opacity: .65;
    transition: .25s ease;
}

.personagem-card span {
    display: block;
    margin-top: 6px;
    text-align: center;
    color: rgba(255, 255, 255, .65);
    font-size: 15px;
    font-weight: 700;
    transition: .25s;
}

.personagem-card:hover {
    transform: translateY(-6px);
}

.personagem-card:hover img {
    filter: grayscale(.3) brightness(.95);
}

.personagem-card.ativo {
    animation: personagemIdle 2.2s ease-in-out infinite;
}

.personagem-card.ativo img {
    filter: none;
    opacity: 1;
    transform: scale(1.08);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .22));
}

.personagem-card.ativo span {
    color: #fff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, .45);
}

@keyframes personagemIdle {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0);
    }
}

@media (max-width:900px) {

    #personagens {
        bottom: 120px;
        gap: 12px;
    }

    .personagem-card {
        width: 72px;
    }

    .personagem-card span {
        font-size: 11px;
    }

}