@font-face {
    font-family: 'Frank';
    src: url(../font/font_001.woff2);
}

html {
    font-family: "Montserrat", sans-serif;
    overflow: hidden;
}

body {
    overflow: hidden;
    background-color: #311b84;
    background-image: url(../images/img_001.webp);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
    margin: 0;
    width: 100vw;
    height: 100svh;
    overflow: hidden;
}

#confetti {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100svh;
    z-index: 9999 !important;
    pointer-events: none;
}

@media (min-aspect-ratio: 17/10) {
    body {
        background-size: 100% auto;
    }
}

.bigWin {
    position: absolute;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center center;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: none;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.498);
    transition: opacity 0.5s ease;
    overflow: hidden;

}

.big {
    width: 70svh;
    margin-bottom: -10svh;
    animation: 2s pulseBig infinite ease-in-out;
}

@keyframes pulseBig {

    0%,
    100% {
        scale: 1;
    }

    50% {
        scale: 1.2;
    }
}

.layerWin {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: 140%;
    max-width: none;
    z-index: -1;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transform-origin: center center;
}

.bigWin.is-active .layerWin {
    animation: layerWinSpin 8s linear infinite;
}

@keyframes layerWinSpin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.bonus-balance {
    background-image: url(../images/img_021.webp);
    background-size: 100% 100%;
    width: 36svh;
    height: 9svh;
    font-size: 4svh;
    color: white;
    border-radius: 5svh;
    text-align: center;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: bold;
    padding-top: 5svh;
}

.push {
    display: none;
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    top: -15%;
    width: 35svh;
    height: 10svh;
    z-index: 1000;
    background-image: url(../images/img_021.webp);
    background-size: 100% 100%;
    aspect-ratio: 3/1;
    animation: 1s shows forwards ease-in-out;
}

.push img {
    width: 100%;
}

@keyframes shows {
    0% {
        top: -15%;
    }

    100% {
        top: 5%;
    }
}

.main-container {
    display: flex;
    justify-content: center;
    gap: 15svh;
    height: 100%;
    z-index: 10;
}

.table-score {
    display: flex;
    gap: 2svh;
    color: white;
    padding-top: 15svh;
}

.table-score div {
    width: 9.5svh;
    text-align: center;
    font-size: 1.7svh;
    text-shadow: .1svh .1svh .7svh #F892E9;
}

.title {
    margin-bottom: 2svh;
}

.wrapper-profit {
    background-color: #B049E780;
    border-left: .5svh solid #B049E780;
    border-right: .5svh solid #B049E780;
}

.last-win {
    display: flex;
    flex-direction: column;
    gap: 0.5svh;
    max-height: 60svh;
    overflow: hidden;

}


.last-win>div {
    padding: 0.5svh;
    border-radius: 0.5svh;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wrapper-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10svh;
    z-index: 10;
    position: relative;
}

.canvas-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.topWall {
    position: absolute;
    left: 50%;
    top: 0svh;
    transform: translate(-50%);
    width: 35%;
}

.wall {
    position: absolute;
    height: 85%;
}

.leftWall {
    left: -2svh;
    top: 3.5svh;
    rotate: 5deg;
    display: none;
}

.rightWall {
    right: -2svh;
    top: 3.5svh;
    rotate: -5deg;
    display: none;
}

#canvas {
    width: 45svh;
    height: 40.5svh;
}

.top-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    left: 47%;
    transform: translate(-50%);
    top: 10svh;
    width: 50svh;
    margin-bottom: 1svh;
}

.logo {
    width: 20svh;
}

.menu {
    width: 5svh;
}

.enter-container {
    position: relative;
    z-index: 10000;
}

.ballCount {
    position: absolute;
    width: 25svh;
    left: -250%;
}

.risk-level {
    position: absolute;
    right: -200%;
    top: 9svh;
    z-index: 10;
}

.wrapper-line {
    position: absolute;
    right: -250%;
    top: 21svh;
}

.risk {
    transition: all 0.3s ease;
}

.risk img {
    transition: filter 0.3s ease;
}

.layered-container {
    transition: transform 0.3s ease;
}

.label {
    color: white;
    background-image: url(../images/img_022.webp);
    background-size: 100% 100%;
    font-size: 2svh;
    padding: .8svh 1svh .5svh 2.5svh;
    margin-bottom: -2svh;
    margin-top: 2svh;
    position: relative;
    text-wrap: nowrap;
    z-index: 2;
    width: 12svh;
}

.label-line {
    color: white;
    background-image: url(../images/img_022.webp);
    background-size: 100% 100%;
    font-size: 2svh;
    padding: .8svh 1svh .5svh 2.5svh;
    margin-bottom: -2svh;
    margin-top: 2svh;
    position: relative;
    text-wrap: nowrap;
    z-index: 2;
    width: 12svh;
}

.risk {
    background-image: url(../images/img_024.webp);
    background-size: 100% 100%;
    width: 20svh;
    height: 7svh;
    display: flex;
    align-items: end;
    padding-bottom: 3svh;
    justify-content: center;
    gap: 2svh;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
    z-index: 1;
    margin-left: 1svh;
    margin-right: -2svh;
}

.pointerRisk {
    position: absolute;
    right: -10%;
    width: 30%;
    top: 30%;
    rotate: -15deg;
    display: none;
}

.pointerLine {
    position: absolute;
    right: -10%;
    width: 30%;
    top: 30%;
    rotate: -15deg;
    height: auto !important;
    display: none;
}

.wrapper-btn {
    position: relative;
}

.drop-pointer {
    position: absolute;
    right: -50%;
    width: 80% !important;
    top: 60%;
    transition: opacity 0.3s ease;
    pointer-events: none;
    display: block;
    z-index: 1000;
    animation: 1s pulseDropBtn infinite ease-in-out;
}

@keyframes pulseDropBtn {

    0%,
    100% {
        scale: 1;
    }

    50% {
        scale: 1.3;
    }
}

#drop-button.disabled+.drop-pointer {
    opacity: 0;
    pointer-events: none;
}

.line {
    background-image: url(../images/img_024.webp);
    background-size: 100% 100%;
    width: 20svh;
    height: 7svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2svh 0 1.8svh;
    gap: 2svh;
    transition: transform 0.2s;
    position: relative;
    z-index: 1;
    margin-left: 1svh;
    margin-right: -2svh;
    color: white;
}

.line .bet-arrow img {
    height: 3svh;
}

.line img {
    height: 3svh;
    margin-top: .2svh;
}

.line span {
    font-size: 3svh;
}

#line {
    padding-bottom: .5svh;
}

.arr {
    rotate: 180deg;
}

.risk:hover {
    transform: scale(1.05);
}

.risk:active {
    transform: scale(0.95);
}

.line:active {
    transform: scale(0.95);
}

.ball-container .bet-arrow img {
    height: 2.4svh;
}

.fire1 {
    height: 40%;
}

.fire2 {
    height: 50%;
}

.fire3 {
    height: 60%;
}

.balls-enter {
    position: relative;
    border-radius: 50%;
    width: 9svh;
    height: 9svh;
    background: black;
    transform: translateY(16%);
    z-index: -1000;
    border: 1svh solid rgb(97, 23, 158);
    outline: .5svh solid rgb(44, 230, 246);
    box-shadow: 0svh 0svh 3svh rgb(44, 230, 246);
    animation: 5s pulse infinite ease-in-out;
    overflow: hidden;
}

#ballsCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0svh 0svh 3svh rgb(44, 230, 246);
    }

    50% {
        box-shadow: 0svh 0svh 1svh rgb(44, 230, 246);
    }
}

.lines {
    position: absolute;
    width: 4svh;
    top: 100%;
    right: -19svh;
}

.prizes {
    display: flex;
    gap: 0.6svh;
    margin-bottom: 1svh;
    box-sizing: border-box;
}

.prizes img {
    width: 100%;
}

.layered-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    min-width: 0;
    width: auto;
    height: 3svh;
    position: relative;
}

.multiplier {
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    bottom: -2svh;
    color: white;
    font-family: 'Frank';
    font-size: 1.2svh;
}

.layer-neon {
    display: none;
    position: absolute;
    width: 100%;
    height: 400%;
    bottom: 0;
    background: linear-gradient(to top, #00e5ffd1 0%, transparent 70%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.layer-neon.active {
    display: block;
    opacity: 1;
}

.layer {
    position: relative;
    z-index: 1;
    width: 100%;
    background-color: #00E4FF;
}

.layer1 {
    height: 25%;
}

.layer2 {
    height: 14%;
}

.layer3 {
    height: 8%;
}

.hole-multiplier {
    background-image: url(../images/img_025.webp);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 5.2svh;
    height: 5.2svh;
    top: 68%;
    transform: translate(0, -50%);
    animation: 2s rotates infinite ease-in-out;
}

.hole-multiplier .multiplier {
    left: 17% !important;
}

@keyframes rotates {
    0% {
        transform: translate(0, -50%) rotate(0deg);
    }

    100% {
        transform: translate(0, -50%) rotate(360deg);
    }
}

@keyframes bounce-prize {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.prizes-bounce {
    animation: bounce-prize 0.3s ease-in-out;
}

.scale-up {
    transform: scale(1.2);
}

.scale-down {
    transform: scale(1);
}

.win-container {
    width: 35svh;
    height: 10svh;
    border-radius: 1svh;
    background-image: url(../images/img_026.webp);
    background-size: 100% 100%;
    font-family: 'Frank';
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1svh;
    font-size: 3svh;
    margin-top: 1svh;
}

#drop-button {
    user-select: none;
    margin-top: 3svh;
    cursor: pointer;
    background: transparent;
    border: 0.6svh solid #f3f185;
    color: white;
    font-weight: bold;
    font-size: 3svh;
    width: 13svh;
    height: 13svh;
    border-radius: 50%;
    overflow: hidden;
    z-index: 1;
    box-sizing: border-box;
    position: relative;
    box-shadow: #f3f18542 0px 7px 29px 0px;
    transition: all 0.3s;
}

#drop-button::after {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    opacity: 1;
    background-image: linear-gradient(#ffb901 50%, #ff9d02 50%);
    background-size: 10px 10px;
    animation: buttonAnimation 0.3s linear infinite;
    z-index: -1;
}


#drop-button.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}


.penta {
    position: absolute;
    top: -3%;
    left: 50%;
    transform: translate(-50%);
    width: 18svh;
    animation: 4s rotate infinite linear;
    pointer-events: none;
}

@keyframes rotate {
    0% {
        transform: translate(-50%) rotate(0);
    }

    100% {
        transform: translate(-50%) rotate(360deg);
    }
}

.pentaN {
    top: -3%;
    left: 50%;
    transform: translate(-50%) rotate(60deg);
    width: 18svh;
    position: absolute;
    animation: 8s rotate2 infinite linear;
    pointer-events: none;
}

@keyframes rotate2 {
    0% {
        transform: translate(-50%) rotate(60deg);
    }

    100% {
        transform: translate(-50%) rotate(360deg);
    }
}

@keyframes buttonAnimation {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 10px 10px;
    }
}

.cursor {
    display: block;
    position: absolute;
    width: 30% !important;
    right: -20%;
    top: 50%;
    transform: translate(-50%) rotate(-45deg);
    animation: .5s scal infinite ease-in-out;
    z-index: 100;
}

@keyframes scal {

    0%,
    100% {
        scale: 1;
    }

    50% {
        scale: .8;
    }
}

.drop-button-container {
    position: relative;
    width: 55svh;
    height: 15svh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wrapper-btn>img {
    width: 100%;
}

#drop-button:active {
    transform: scale(0.9);
}

.wrapper-bet {
    position: absolute;
    right: 1%;
    top: -2svh;
    z-index: 5;
}

.label-bet {
    color: white;
    background-image: url(../images/img_027.webp);
    background-size: 100% 100%;
    font-size: 1.3svh;
    padding: .8svh 1svh .5svh 1.5svh;
    margin-bottom: 0svh;
    margin-top: 2svh;
    margin-left: 1svh;
    position: relative;
    text-wrap: nowrap;
    z-index: 2;
    width: 12svh;
    text-transform: uppercase;
    text-align: left;
    color: #FFEE00;
}

.bet-container {
    background-image: url(../images/img_050.webp);
    background-size: 100% 100%;
    font-size: 2svh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2svh;
    padding: 2svh 0;
    width: 20svh;
    height: 6svh;
    margin-top: -0.5svh;
    font-weight: bold;
    color: #FFEE00;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

.bet-container span {
    color: #FFEE00;
    font-size: 2svh;
    line-height: 1;
    pointer-events: none;
}

.bet-arrow {
    border: none;
    background: transparent;
    padding: 0.4svh;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 4.5svh;
    min-width: 4.5svh;
    min-height: 4.5svh;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s;
}

.bet-arrow img {
    height: 2.4svh;
    width: auto;
    pointer-events: none;
}

.bet-arrow:hover {
    transform: scale(1.08);
}

.bet-arrow:active {
    transform: scale(0.92);
}

.bet-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.wrapper-balance {
    position: absolute;
    right: 4%;
    top: 6svh;
    z-index: 5;
}

.wrapper-ball {
    position: absolute;
    left: -1%;
    top: 6svh;
    z-index: 5;
}

.wrapper-feature {
    position: absolute;
    left: -1%;
    top: -3svh;
}

.modal-feat {
    position: absolute;
    width: 20svh;
    background-color: #1a0d4a;
    height: 30svh;
    left: 3svh;
    top: -27svh;
    z-index: 1000;
    color: white;
    outline: 2svh solid #1a0d4ab2;
    display: none;
}

.item-feat {
    padding: 1.5svh 1svh;
    font-size: 1.2svh;
    display: flex;
    flex-direction: column;
    gap: 1svh;
}

.tile-feat {
    font-size: 1.3svh;
    text-align: center;
    text-transform: uppercase;
}

.body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5svh 2svh;
}

.label-balance {
    color: white;
    background-image: url(../images/img_027.webp);
    background-size: 100% 100%;
    font-size: 1.6svh;
    padding: .8svh 1svh .5svh 1.5svh;
    margin-bottom: 0svh;
    margin-top: 2svh;
    position: relative;
    text-wrap: nowrap;
    z-index: 2;
    width: 12svh;
    text-transform: uppercase;
    color: #00E4FF;
}

.label-ball {
    color: white;
    background-image: url(../images/img_028.webp);
    background-size: 100% 100%;
    font-size: 1.3svh;
    padding: .8svh 1svh .5svh 1.5svh;
    margin-bottom: 0svh;
    margin-top: 2svh;
    position: relative;
    text-wrap: nowrap;
    z-index: 2;
    width: 12svh;
    text-transform: uppercase;
    text-align: right;
    color: white;
}

.balance-container {
    background-image: url(../images/img_029.webp);
    background-size: 100% 100%;
    padding: 1svh;
    text-align: right;
    font-size: 2svh;
    width: 14svh;
    height: 3svh;
    font-weight: bold;
    color: #FFEE00;
}

.balance-container span {
    color: #FFEE00;
    font-size: 2svh;
    padding-right: 1svh;
}

.ball-container {
    background-image: url(../images/img_030.webp);
    background-size: 100% 100%;
    padding: 1svh;
    font-size: 2svh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2svh;
    padding: 2svh 0;
    position: relative;
    width: 20svh;
    height: 6svh;
    margin-top: -2svh;
    margin-bottom: 2svh;
    font-weight: bold;
    color: #F9CA09;
    transition: transform .3s;
}

.ball-container span {
    color: #00E4FF;
    font-size: 2svh;
}

.pointerBall {
    position: absolute;
    right: -10%;
    width: 30% !important;
    top: 30%;
    rotate: -15deg;
    display: none;
}

.features-container {
    background-image: url(../images/img_030.webp);
    background-size: 100% 100%;
    font-size: 2svh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0svh;
    padding: 2svh 0;
    width: 20svh;
    height: 6svh;
    margin-top: -2svh;
    margin-bottom: 2svh;
    font-weight: bold;
    color: #F9CA09;
    transition: transform .3s;
    cursor: pointer;
    position: relative;
}

.features-container img {
    width: 6svh;
    margin-left: -1svh;
}

.pointerFeat {
    position: absolute;
    right: -10%;
    width: 30%;
    top: 30%;
    rotate: -15deg;
    display: none;
    pointer-events: none;
}

.first {
    margin-left: .2svh !important;
}

.ball-container:hover {
    transform: scale(1.05);
}

.ball-container:active {
    transform: scale(0.95);
}

#ball {
    padding-bottom: .3svh;
}

.final-container {
    position: absolute;
    background-image: url(../images/img_032.webp);
    background-size: cover;
    z-index: 200;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100svh;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    overflow: hidden;
    transition: opacity 0.5s ease-out;
    z-index: 100000;
}

.coin {
    position: absolute;
    width: 100%;
    height: 30svh;
    background-image: url('./coin.webp');
    background-size: contain;
    background-repeat: repeat-x;
    top: 0;
}

.show {
    opacity: 1;
    visibility: visible;
}

.final {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5svh;
}

.wrapper {
    display: flex;
    flex-direction: column;
    gap: 3svh;
}

.final-logo {
    width: 45svh;
}

#finish {
    user-select: none;
    margin-top: 3svh;
    cursor: pointer;
    background: transparent;
    border: 0.6svh solid #f3f185;
    color: white;
    font-weight: bold;
    font-size: 5svh;
    border-radius: 2svh;
    padding: 1svh 3svh;
    overflow: hidden;
    z-index: 1;
    box-sizing: border-box;
    position: relative;
    box-shadow: #f3f18542 0px 7px 29px 0px;
    animation: 2s pulse infinite ease-in-out;
}

@keyframes pulseFinish {

    0%,
    100% {
        scale: 1;
    }

    50% {
        scale: 1.1;
    }
}

.wrapper-btn {
    position: relative;
}

#finish::after {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    opacity: 1;
    background-image: linear-gradient(#ffb901 50%, #ff9d02 50%);
    background-size: 10px 10px;
    animation: buttonAnimation 0.3s linear infinite;
    z-index: -1;
}

#finish img {
    width: 100%;
}

#finish:active {
    transform: scale(0.9);
}

.final div {
    font-size: 7svh;
    font-weight: bold;
    text-transform: uppercase;
    color: #FFEE00;
    text-shadow: 0svh 0svh 4svh #FFEE00C7;
    text-wrap: nowrap;
    text-align: center;
}

.pointer {
    animation: 1s pointer infinite ease-in-out;
}

@keyframes pointer {

    0%,
    100% {
        scale: 1;
    }

    50% {
        scale: 1.2;
    }
}

@media (max-aspect-ratio:905/832) {
    .final-container {
        background-size: auto 100%;
        background-position: right 20% center;
    }

    .final {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1svh;
    }

    .final div {
        font-size: 5svh;
    }

    #finish {
        font-size: 4svh;
    }
}

.falling-object {
    position: absolute;
    width: 10vmin;
    top: -150px;
    z-index: 1;
    transform-origin: center center;
    animation-name: fall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(calc(100svh + 150px)) rotate(360deg);
    }
}

.falling-objects {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}


.toggle {
    position: relative;
    width: 6svh;
    height: 3svh;
    background: linear-gradient(145deg, #1a0d4a, #2a1570);
    border-radius: 5svh;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        inset 0 0.2svh 1svh rgba(0, 0, 0, 0.3),
        0 0.2svh 1svh rgba(0, 0, 0, 0.2);
    border: 0.2svh solid rgba(0, 228, 255, 0.3);
}

.toggle::before {
    content: '';
    position: absolute;
    width: 2.5svh;
    height: 2.5svh;
    border-radius: 50%;
    top: 50%;
    left: 0.4svh;
    transform: translateY(-50%);
    background: linear-gradient(145deg, #8B5CF6, #A78BFA);
    box-shadow:
        0 0.4svh 0.8svh rgba(0, 0, 0, 0.3),
        inset 0 -0.2svh 0.4svh rgba(0, 0, 0, 0.2),
        inset 0 0.2svh 0.4svh rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toggle.active {
    background: linear-gradient(145deg, #00C4E0, #00E4FF);
    border-color: rgba(0, 228, 255, 0.8);
    box-shadow:
        inset 0 0.2svh 1svh rgba(0, 228, 255, 0.2),
        0 0 2svh rgba(0, 228, 255, 0.4);
}

.toggle.active::before {
    left: calc(100% - 3.6svh);
    background: linear-gradient(145deg, #00E4FF, #00C4E0);
    box-shadow:
        0 0.4svh 1.2svh rgba(0, 228, 255, 0.5),
        inset 0 -0.2svh 0.4svh rgba(0, 0, 0, 0.2),
        inset 0 0.2svh 0.4svh rgba(255, 255, 255, 0.5);
}

.toggle:hover {
    transform: scale(1.05);
}

.toggle:active {
    transform: scale(0.95);
}

.toggle.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 5svh;
    top: 0;
    left: 0;
    background: radial-gradient(circle, rgba(0, 228, 255, 0.3) 0%, transparent 70%);
    animation: glow 2s ease-in-out infinite;
}

.pointerToggle {
    position: absolute;
    top: 80%;
    transform: translate(0, -50%);
    right: -60%;
    width: 80%;
    pointer-events: none;
    animation: 1s pulseTog infinite ease-in-out;
}

@keyframes pulseTog {

    0%,
    100% {
        transform: translate(0, -50%) scale(1);
    }

    50% {
        transform: translate(0, -50%) scale(1.3);
    }
}

@keyframes glow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

@media (max-aspect-ratio: 566/832) {
    .toggle {
        width: 10vw;
        height: 5vw;
        border-radius: 8vw;
        border-width: 0.3vw;
    }

    .toggle::before {
        width: 3.8vw;
        height: 3.8vw;
        left: 0.6vw;
    }

    .toggle.active::before {
        left: calc(100% - 5.4vw);
    }

    .toggle.active::after {
        border-radius: 8vw;
    }
}

@media (max-aspect-ratio:1107/832) {
    .main-container {
        flex-direction: column;
        align-items: center;
        gap: 10svh;
        margin-top: 0svh;
    }

    .wrapper-game {
        margin-top: 14svh;
        padding-top: 0svh;
    }

    .table-score {
        position: absolute;
        left: 50%;
        transform: translate(-50%);
        top: 1svh;
        display: flex;
        gap: 2svh;
        color: white;
        padding-top: 2svh;
    }

    .top-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: absolute;
        left: 47%;
        transform: translate(-50%);
        top: 0svh;
        width: 50svh;
        margin-bottom: 1svh;
    }

    .drop-button-container {
        position: relative;
        width: 55svh;
        height: 15svh;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 2svh;
    }

    #canvas {
        width: 40svh;
        height: 36svh;
    }

}

@media (max-aspect-ratio:566/832) {

    .top-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: absolute;
        left: 50%;
        transform: translate(-50%);
        top: 0svh;
        width: 90vw;
        margin-bottom: 2vw;
    }

    .logo {
        width: 30vw;
    }

    .menu {
        width: 8vw;
    }

    .balls-enter {
        position: relative;
        border-radius: 50%;
        width: 14vw;
        height: 14vw;
        background: black;
        transform: translateY(16%);
        z-index: -1000;
        border: 1.5vw solid rgb(97, 23, 158);
        outline: .8vw solid rgb(44, 230, 246);
        box-shadow: 0svh 0svh 6vw rgb(44, 230, 246);
        animation: 5s pulse infinite ease-in-out;
        overflow: hidden;
    }

    .ballCount {
        position: absolute;
        width: 35vw;
        left: -250%;
    }

    .risk-level {
        position: absolute;
        right: -200%;
        top: 14vw;
    }

    .label {

        background-size: 100% 100%;
        font-size: 3vw;
        padding: 1.2vw 1.3vw .8vw 4vw;
        margin-bottom: -3vw;
        margin-top: 3vw;
        position: relative;
        text-wrap: nowrap;
        z-index: 2;
        width: 18vw;
    }

    .risk {
        background-image: url(../images/img_024.webp);
        background-size: 100% 100%;
        width: 30vw;
        height: 10vw;
        display: flex;
        align-items: end;
        padding-bottom: 4.5vw;
        justify-content: center;
        gap: 3vw;

        margin-left: 1.3vw;
        margin-right: -3vw;
    }

    .wrapper-line {
        position: absolute;
        right: -216%;
        top: 30vw;
    }

    .label-line {

        font-size: 3vw;
        padding: 1.2vw 1.3vw .8vw 4vw;
        margin-bottom: -3vw;
        margin-top: 3vw;
        position: relative;
        text-wrap: nowrap;
        z-index: 2;
        width: 18vw;
    }

    .line {

        width: 30vw;
        height: 10vw;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 3vw 0 2.4vw;
        gap: 4vw;
        transition: transform 0.2s;
        position: relative;
        z-index: 1;
        margin-left: 1.5vw;
        margin-right: -3vw;
        color: white;
    }

    .line span {
        font-size: 5vw;
    }

    .line img {
        height: 5vw;
        margin-top: .3vw;
    }

    .line .bet-arrow img,
    .ball-container .bet-arrow img {
        height: 5vw;
    }

    .topWall {
        position: absolute;
        left: 50%;
        top: 0svh;
        transform: translate(-50%);
        width: 35%;
    }

    #canvas {
        width: 89vw;
        height: 80.1vw;
    }

    .prizes {
        display: flex;
        gap: .9vw;
        margin-bottom: 1.5vw;
        box-sizing: border-box;
    }

    .layered-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        flex: 0 0 auto;
        min-width: 0;
        width: auto;
        height: 5vw;
        position: relative;
    }

    .multiplier {
        position: absolute;
        left: 50%;
        transform: translate(-50%);
        bottom: -3vw;
        color: white;
        font-family: 'Frank';
        font-size: 2vw;
    }

    .win-container {
        width: 55vw;
        height: 15vw;

        gap: 1.5vw;
        font-size: 5vw;
        margin-top: 1.5vw;
    }

    .drop-button-container {
        position: relative;
        width: 78vw;
        height: 25vw;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 2svh;
    }

    #drop-button {
        user-select: none;
        margin-top: 5vw;
        cursor: pointer;
        background: transparent;
        border: 0.9vw solid #f3f185;
        color: white;
        font-weight: bold;
        font-size: 5vw;
        width: 20vw;
        height: 20vw;
        border-radius: 50%;
        overflow: hidden;
        z-index: 1;
        box-sizing: border-box;
        position: relative;
        box-shadow: #f3f18542 0px 7px 29px 0px;
        transition: all 0.3s;
    }

    .penta {
        position: absolute;
        top: 6%;
        left: 50%;
        transform: translate(-50%);
        width: 26vw;
        animation: 4s rotate infinite linear;
    }

    .pentaN {
        top: 6%;
        left: 50%;
        transform: translate(-50%) rotate(60deg);
        width: 26vw;
        position: absolute;
        animation: 8s rotate2 infinite linear;
    }

    .wrapper-bet {
        position: absolute;
        right: -1%;
        top: -5vw;
        z-index: 5;
    }

    .label-bet {
        font-size: 1.8vw;
        padding: 1.2vw 1.5vw 1vw 2.2vw;
        width: 17vw;
    }

    .bet-container {
        font-size: 3vw;
        gap: 1.5vw;
        padding: 3vw 0;
        width: 30vw;
        height: 9vw;
        margin-top: -1vw;
        margin-bottom: 3vw;
    }

    .bet-container span {
        font-size: 3vw;
        color: #FFEE00;
    }

    .bet-arrow {
        flex: 0 0 7vw;
        min-width: 7vw;
        min-height: 7vw;
        padding: 0.8vw;
    }

    .bet-arrow img {
        height: 4vw;
    }

    .wrapper-balance {
        position: absolute;
        right: 4%;
        top: 9vw;
    }

    .label-balance {

        background-size: 100% 100%;
        font-size: 2.4vw;
        padding: 1.2vw 1.5vw .8vw 2.2vw;
        margin-bottom: 0svh;
        margin-top: 2svh;
        position: relative;
        text-wrap: nowrap;
        z-index: 2;
        width: 18vw;
        text-transform: uppercase;
        color: #00E4FF;
    }

    .balance-container {

        padding: 1.5vw;
        text-align: right;
        font-size: 3vw;
        width: 19vw;
        height: 5vw;
        font-weight: bold;
        color: #FFEE00;
    }

    .balance-container span {
        color: #FFEE00;
        font-size: 3vw;
        padding-right: 2vw;
    }

    .wrapper-ball {
        position: absolute;
        left: -1%;
        top: 9vw;
    }

    .label-ball {

        font-size: 1.8vw;
        padding: 1.2vw 1.5vw 1vw 2.2vw;
        margin-bottom: 0svh;
        margin-top: 3vw;
        position: relative;
        text-wrap: nowrap;
        z-index: 2;
        width: 17vw;
        text-transform: uppercase;
        text-align: right;
        color: white;
    }

    .ball-container {

        padding: 1.5vw;
        font-size: 3vw;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 3vw;
        padding: 3vw 0;
        position: relative;
        width: 30vw;
        height: 9vw;
        margin-top: -3vw;
        margin-bottom: 3vw;
        font-weight: bold;
        color: #F9CA09;
        transition: transform .3s;

    }

    .ball-container span {
        img {
            width: 80% !important;
        }
    }

    .wrapper-feature {
        position: absolute;
        left: -1%;
        top: -5vw;
    }

    .features-container {

        font-size: 3vw;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0svh;
        padding: 3vw 0;
        width: 30vw;
        height: 9vw;
        margin-top: -3vw;
        margin-bottom: 3vw;
        font-weight: bold;
        color: #F9CA09;
        transition: transform .3s;
        cursor: pointer;
        position: relative;
    }

    .table-score {
        position: absolute;
        left: 50%;
        transform: translate(-50%);
        top: 5vw;
        display: flex;
        gap: 3vw;
        color: white;
        padding-top: 3vw;
    }

    .table-score div {
        width: 15vw;
        text-align: center;
        font-size: 2.8vw;
        text-shadow: .1svh .1svh .7svh #F892E9;
    }

    .features-container img {
        width: 9vw;
        margin-left: -1.5vw;
    }

    .pointerBall {
        position: absolute;
        right: -10%;
        width: 30% !important;
        top: 30%;
        rotate: -15deg;
        display: none;
    }

    .ball-container span {
        color: #00E4FF;
        font-size: 3vw;
    }

    .leftWall {
        left: -4vw;
        top: 3.5svh;
        rotate: 5deg;

    }

    .rightWall {
        right: -4vw;
        top: 3.5svh;
        rotate: -5deg;

    }

    .bigWin {
        position: absolute;
        background-size: auto 100%;
        background-repeat: no-repeat;
        background-position: center center;
        width: 100%;
        height: 100%;
        z-index: 100;
        display: none;
        justify-content: center;
        align-items: center;
    }

}

@media (max-aspect-ratio:440/832) {
    .main-container {
        padding-top: 10vw;
    }
}

/* Loading screen */
body.is-loading {
    overflow: hidden;
}

.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #311b84;
    background-image: url(../images/img_001.webp);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-screen__logo {
    width: min(38svh, 70vw);
    margin: auto 0;
}

.loading-screen__bottom {
    width: min(80vw, 40svh);
    padding-bottom: 6svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2svh;
}

.loading-screen__text {
    margin: 0;
    color: #fff;
    font-family: "Frank", system-ui, sans-serif;
    font-size: 2svh;
    letter-spacing: 0.25em;
    text-indent: 0.25em;
}

.loading-screen__bar {
    width: 100%;
    height: 0.8svh;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1svh;
    overflow: hidden;
}

.loading-screen__bar-fill {
    height: 100%;
    width: 0%;
    background: #00e4ff;
    border-radius: 1svh;
    transition: width 0.2s linear;
}

@media (min-aspect-ratio: 17/10) {
    .loading-screen {
        background-size: 100% auto;
    }
}