body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100svh;
    font-family: "Inter", Arial, sans-serif;
    background: #161824;
    overflow: hidden;
}

.game-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    height: 100svh;
    margin: 0 auto;
    background: #161824;
    position: relative;
}

.game-content {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #3E4464;
    position: relative;
    min-height: 0;
}

#gameVideo {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.game-footer {
    background: #444659;
    padding: 48px 54px;
    flex-shrink: 0;
    border-radius: 10px;
    margin: 45px 58px;
    display: flex;
    justify-content: space-between;
}

#actionButton span {
    font-weight: 700;
    font-size: 43px;
    line-height: 17.8px;
    text-align: center;
    text-transform: uppercase;
}

#actionButton:active {
    background: #1da53d;
}

#actionButton:disabled {
    background-color: #1da53d;
    cursor: not-allowed;
}

.game-overlay {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-out;
    pointer-events: none;
}

.game-overlay.active {
    background: #3E4464;
    color: #fff;
    backdrop-filter: blur(2px);
    opacity: 1;
    visibility: visible;
    display: flex;
    pointer-events: auto;
}

.game-over-popup {
    border-radius: 30px;
    border: 2px solid #FFFFFF73;
    backdrop-filter: blur(43px);
    background: #C0C0C00D;
    max-width: 659px;
    height: 397px;
    text-align: center;
    padding: 20px;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 108px;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease-out;
    transition-delay: 0.1s;
}

.game-overlay.active .game-over-popup {
    transform: translateY(0);
    opacity: 1;
}

.game-over-popup span {
    font-weight: 900;
    font-size: 100px;
    line-height: 13px;
}

.game-over-popup .win-spins {
    color: #02FE79;
    font-size: 97px;
}

.game-over-popup .win-amount {
    color: #FFD51D;
    font-size: 97px;
}

.buttons-container {
    display: flex;
    gap: 28px;
}

#withdrawalButton {
    display: flex;
    text-decoration: none;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 20px;
    border: none;
    background: #FFD51D;
    box-shadow: 0px 5.48px 5.48px 0px #00000040;
    color: #000000;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 43px;
    line-height: 17.8px;
    text-align: center;
    text-transform: uppercase;    
    height: 100%;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s ease-out;
    white-space: normal;
    width: 380px;
}

#actionButton {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    border: none;
    background: #47cc66;
    box-shadow: 0px 5.48px 5.48px 0px #00000040;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 43px;
    line-height: 17.8px;
    text-align: center;
    text-transform: uppercase;
    height: 100%;
    cursor: pointer;
    transition: all 0.5s ease-out;
    width: 397px
}

#withdrawalButton.visible + #actionButton {
    width: 50%;
    font-size: 30px;
}

#actionButton:active {
    background: #1da53d;
}

#actionButton:disabled {
    background-color: #1da53d;
    cursor: not-allowed;
}

.game-info {
    max-width: 583px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    color: #9D9EA8;
}

.game-info-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #4C4E65;
    border-radius: 5px;
    box-shadow: 0px 1.37px 5.48px 0px #00000040;
    padding: 24px 26px 20px 26px;
}

.game-info-top button {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 17.8px;
    text-align: center;
    padding: 17px 10px;
    background: #4A4C5F;
    border-radius: 5px;
    border: none;
    color: #fff;
}

.game-info-top span {
    font-weight: 500;
    font-size: 32px;
    line-height: 17.8px;
}

.game-info-bottom {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.game-info-bottom button {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 17.8px;
    text-align: center;
    padding: 27px 20px;
    background: #4C4E65;
    border-radius: 5px;
    box-shadow: 0px 1.37px 5.48px 0px #00000040;
    border: none;
    color: #9D9EA8;
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.1em;
}

@media screen and (max-width: 1919px) {
    .game-footer {
        padding: 19px 18px;
        margin: 23px 20px 33px 28px;
    }

    #withdrawalButton {
        width: 218px;
        font-size: 23px;
    }

    #actionButton {
        width: 228px;
    }

    #actionButton span {
        font-size: 23px;
    }

    .game-info {
        max-width: 336px;
        gap: 18px;
    }

    .game-info-top {
        padding: 14px 15px;
    }

    .game-info-bottom {
        gap: 15px;
    }

    .game-info-top button {
        font-size: 21px;
        padding: 10px 8px;
    }

    .game-info-top span {
        font-size: 19px;
    }

    .game-info-bottom button {
        padding: 15px 11px;
        font-size: 19px;
    }

    .game-info-bottom button img {
        width: 25px;
        height: 25px;
    }

    .game-over-popup {
        max-width: 502px;
        height: 300px;
        gap: 70px;
    }

    .game-over-popup span {
        font-size: 77px;
        line-height: 13px;
    }

    .game-over-popup .win-spins,
    .game-over-popup .win-amount {
        font-size: 74px;
    }
}

@media screen and (max-width: 1280px) {
    .game-footer {
        flex-direction: column;
        gap: 21px;
        margin: 22px 17px 16px 17px;
    }

    .game-info {
        max-width: 100%;
        width: 100%;
    }

    .buttons-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    #withdrawalButton {
        width: 100%;
        height: 90px;
        font-size: 35px;
    }

    #actionButton {
        width: 100%;
        height: 90px;
    }

    #actionButton span {
        font-size: 35px;
    }

    .game-info-top {
        padding: 18px 17px;
    }

    .game-info-top button {
        font-size: 32px;
    }

    .game-info-top span {
        font-size: 29px;
    }

    .game-info-bottom button {
        padding:  21px 25px 19px 19px;
        font-size: 29px;
    }

    .game-info-bottom button img {
        width: 35px;
        height: 35px;
    }
}

@media screen and (max-width: 768px) {
    .game-footer {
        gap: 14px;
        margin: 15px 10px 8px 10px;
        padding: 13px 11px;
    }

    .game-info {
        gap: 9px;
    }

    .game-info-top {
        padding: 12px 10px;
    }

    .game-info-top button {
        font-size: 21px;
        padding: 9px 6px;
    }

    .game-info-top span {
        font-size: 19px;
    }

    .game-info-bottom {
        gap: 10px;
    }

    .game-info-bottom button {
        padding: 15px 10px;
        font-size: 19px;
        gap: 3px;
    }

    .game-info-bottom button img {
        width: 23px;
        height: 23px;
    }

    #withdrawalButton {
        height: 60px;
        font-size: 17px;
    }

    #actionButton {
        height: 60px;
    }

    #actionButton span {
        font-size: 17px;
    }

    .game-over-popup {
        max-width: 324px;
        height: 195px;
        gap: 50px;
    }

    .game-over-popup span {
        font-size: 49px;
    }

    .game-over-popup .win-spins,
    .game-over-popup .win-amount {
        font-size: 43px;
    }
}

@media screen and (min-height: 800px) {
    .game-container {
        margin-top: 0;
        margin-bottom: auto;
        height: 100svh;
        justify-content: flex-start;
    }

    .game-content {
        max-height: calc(100svh - 200px);
    }
}

