/* Global UI Elements */
#game-logo {
    position: absolute;
    top: 2.5vw;
    left: 2.5vw;
    width: 10vw;
    z-index: 50;
    pointer-events: none;
    filter: drop-shadow(0 0.5vw 1vw rgba(0, 0, 0, 0.3));
}

/* UI Layer */

.ui-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 15;
}

#game-title {
    width: 45%;
    margin-bottom: 5%;
    animation: titlePulse 3s ease-in-out infinite;
}

.asset-btn {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.asset-btn:hover {
    transform: scale(1.1);
}

.asset-btn:active {
    transform: scale(0.9);
}

/* Result Screen */
#result-text {
    width: 25%;
    margin-top: -22%;
    z-index: 25;
    animation: resultPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
        resultPulse 2s ease-in-out infinite 0.8s;

}

#popper-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 24;
}

.confetti {
    position: absolute;
    width: 0.6vw;
    height: 0.6vw;
    opacity: 0;
}


@keyframes confettiFall {
    0% {
        transform: translateY(-10vh) translateX(0) rotate(0deg);
        opacity: 1;
    }

    25% {
        transform: translateY(25vh) translateX(3vw) rotate(90deg);
    }

    50% {
        transform: translateY(50vh) translateX(-3vw) rotate(180deg);
    }

    75% {
        transform: translateY(75vh) translateX(3vw) rotate(270deg);
    }

    100% {
        transform: translateY(110vh) translateX(0) rotate(360deg);
        opacity: 0;
    }
}


.asset-btn img {
    width: 100%;
}

#start-btn:active {
    transform: scale(0.95);
    filter: brightness(0.9);
}

/* Action Buttons Layout */
.btn-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2vh;
}


.btn-wrapper button {
    cursor: pointer;
}



#start-btn {
    width: 15vw;
    margin-top: -5%;
    animation: btnDance 2s ease-in-out infinite;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


#start-btn:hover {
    transform: scale(1.1);
    filter: brightness(1.1) drop-shadow(0 0 1.5vw rgba(255, 215, 0, 0.6));
    animation-duration: 1s;
}







#action-buttons-container {
    position: absolute;
    right: 12%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2vh;
    z-index: 20;
}


.action-btn {
    width: 12vw;
    height: 12vw;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.action-btn:hover {
    transform: scale(1.1);
}

.action-btn img {
    width: 100%;
}

.action-btn.disabled {
    filter: grayscale(1) opacity(0.5);
    pointer-events: none;
}

.action-btn.disabled {
    transform: scale(0.9);
}