﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    overflow: hidden;
}
body {
    width: 100%;
    height: 100vh;
    background-color: #14181F;
    position: relative;
}

body.is-loading {
    overflow: hidden;
}

body.is-loading .game-container,
body.is-loading .bonus-modal,
body.is-loading .endCard,
body.is-loading .epicWin {
    visibility: hidden;
    pointer-events: none;
}

.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #14181F;
    background-image: url('../images/bg-final.webp');
    background-repeat: no-repeat;
    background-size: cover;
    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(32vh, 55vw);
    margin: auto 0;
    object-fit: contain;
    filter: drop-shadow(0 0.8vh 1.2vh rgba(0, 0, 0, 0.45));
}

.loading-screen__bottom {
    width: min(80vw, 40vh);
    padding-bottom: 6vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2vh;
}

.loading-screen__text {
    margin: 0;
    color: #fff;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 2vh;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-indent: 0.25em;
}

.loading-screen__bar {
    width: 100%;
    height: 0.8vh;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1vh;
    overflow: hidden;
}

.loading-screen__bar-fill {
    height: 100%;
    width: 0%;
    background: #19CF19;
    border-radius: 1vh;
    transition: width 0.2s linear;
}

.game-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.result-modal {
    position: absolute;
    width: 45vh;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: none;
    pointer-events: none;
}
.result-modal.show {
    display: block;
}
.result-modal__inner {
    position: relative;
    width: 100%;
}
.result-modal__bg {
    width: 100%;
    display: block;
}
.result-modal__title {
    position: absolute;
    top: 6.5%;
    left: 50%;
    transform: translateX(-50%);
    width: 32%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 5.5%;
}
.result-modal__title-win {
    display: none;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 800;
    font-size: 3.1vh;
    color: #000;
    letter-spacing: 0.02em;
    line-height: 1;
    text-align: center;
}
.result-modal--win .result-modal__title-win {
    display: block;
}
.result-modal__title-goal {
    display: none;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 800;
    font-size: 3.1vh;
    color: #000;
    letter-spacing: 0.02em;
    line-height: 1;
    text-align: center;
}
.result-modal--goal .result-modal__title-goal {
    display: block;
}
.result-modal__title-lose {
    display: none;
    height: 3.8vh;
    width: auto;
    object-fit: contain;
}
.result-modal--lose .result-modal__title-lose {
    display: block;
}
.result-modal__message {
    position: absolute;
    top: 67%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 800;
    font-size: 5.2vh;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    line-height: 1.1;
}
.top-panel {
    width: 100%;
    height: 5vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;

}
.row-mult{
    position: absolute;
    top: 20vh;
    left: 50%;
    transform: translate(-50%);
    width: 100vh;
    aspect-ratio: 1544/45;
    z-index: 1;
    background-image: url('../images/row.webp');
    background-size: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.row {
    width: 90%;
    height: 60%;
    background-color: #FFFFFF80;
    border: .2vh solid #FFFFFF;
    border-radius: 1000px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: visible;
}
.circle {
    height: 170%;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: white;
    transition: background-color 0.4s ease;
    position: relative;
    z-index: 2;
}

.row-track {
    position: absolute;
    left: 1.5vh;
    right: 1.5vh;
    top: 50%;
    transform: translateY(-50%);
    height: 100%;
    background: #FFFFFF50;
    border-radius: 100px;
    z-index: 0;
}

.row-track-fill {
    height: 100%;
    width: 0%;
    background: #19CF19;
    border-radius: 100px;
    transition: width 0.5s ease;
}

.circle-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    height: 150%;
    aspect-ratio: 1/1;
    border-radius: 50%;
}
.circle-label {
    position: absolute;
    bottom: -6.5vh;
    color: white;
    -webkit-text-stroke: .1vh #0427B1;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-weight: bold;
    font-size: 4.6vh;
    transition: color 0.4s ease;
    white-space: nowrap;
}
.ball-track{
    position: absolute;
    top: 50%;
    left: 0%;
    height: 300%;
    z-index: 10000;
    transform: translate(0,-50%);
}

.circle-wrap.done .circle-label {
    color: #19CF19;
}
.balance{
    height: 4vh;
    width: 20vh;
    background-color: #20252D;
    border-radius: 1vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    gap: 1vh;
        img{
        height: 60%;
    }
}
.balance{
    font-size: 3vh;
}
.bottom-panel {
    width: 100vh;
    aspect-ratio: 1610/148;
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    bottom: 5vh;
}
.bottom-panels,
.panels {
    width: 100%;
    display: block;
}
.bottom-panel__content {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.bottom-panel__cell--bet,
[data-role="bet-control"],
[data-role="cashout"] {
    pointer-events: auto;
    cursor: pointer;
}
[data-role="cashout"].is-disabled,
.bottom-panel__cell--cashout.is-disabled {
    pointer-events: none;
    cursor: default;
}
.bottom-panel__cell {
    position: absolute;
    top: 46%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1vh;
    color: #fff;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.bottom-panel__cell--difficulty {
    left: 2%;
    width: 18%;
    align-items: flex-start;
}
.bottom-panel__cell--bet {
    left: 19%;
    width: 16%;
    align-items: flex-start;
}
.bottom-panel__cell--cashout {
    left: 56%;
    width: 22%;
    align-items: center;
    text-align: center;
}
.bottom-panel__cell--lastwin {
    left: 85%;
    width: 26%;
    align-items: flex-start;
}
.bottom-panel__label {
    font-size: 1.35vh;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.1;
    opacity: 0.95;
}
.bottom-panel__value {
    font-size: 2.4vh;
    font-weight: 600;
    line-height: 1;
}
.bottom-panel__value--money {
    display: flex;
    align-items: center;
    gap: 0.5vh;
}
.bottom-panel__value--money img {
    height: 2vh;
    width: 2vh;
    flex-shrink: 0;
}
.bottom-panel__cell--cashout .bottom-panel__value--money {
    justify-content: center;
}
.game,
[data-role="game-field"] {
    width: 100%;
    height: 95vh;
    background-image: url('../images/bg.webp');
    background-size: auto 120%;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    cursor: pointer;
}
.gate,
[data-role="gate"] {
    position: absolute;
    top: 57%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vh;
    aspect-ratio: 1287/597;
    background-image: url('../images/gate.webp');
    background-size: 100% 100%;
    cursor: pointer;
}
[data-role="goalkeeper"],
[data-role="ball"],
[data-role="green-ball"] {
    pointer-events: none;
}
.ball {
    position: absolute;
    left: 50%;
    bottom: -10vh;
    transform: translateX(-50%);
    width: 15vh;
    border-radius: 50%;
    img {
        width: 100%;
    }
}
.green{
    width: 130%!important;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    z-index: -1;
    animation: 4s roll infinite ease-in-out; 
}
@keyframes roll {
    0%, 100%{
    transform: translate(-50%,-50%);
    }
    50%{
            transform: translate(-50%,-50%) rotate(360deg) scale(.8);
    }
}
.gollkeeper,
[data-role="goalkeeper"] {
    position: absolute;
    bottom: -4vh;
    left: 50%;
    width: 100vh;
    aspect-ratio: 1344/808;
    background-image: url('../images/gollkeeperDown/01.webp');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    backface-visibility: hidden;
    transform: translate(-50%) translateZ(0);
    contain: layout style paint;
    will-change: transform;
    overflow: hidden;
}
[data-role="goalkeeper"] .gk-frame,
.gollkeeper .gk-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    pointer-events: none;
    user-select: none;
}
.epicWin{
    top: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.603);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
      display: none;
}
.bonus-modal {
    top: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.603);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}
.bonus-modal__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3vh;
}
.bonus-modal__panel {
    position: relative;
    width: 45vh;
}
.bonus-modal__bg {
    width: 100%;
    display: block;
}
.bonus-modal__label {
    position: absolute;
    top: 61%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 2.4vh;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
}
.bonus-modal__amount {
    position: absolute;
    top: 82%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 800;
    font-size: 6.5vh;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    line-height: 1;
}
.bonus-modal__cta {
    position: relative;
    width: 25vh;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    animation: 2s pulse infinite ease-in-out;
}
.bonus-modal__cta-bg {
    width: 100%;
    display: block;
}
.bonus-modal__cta-text {
    position: absolute;
    top: 47%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 800;
    font-size: 3.5vh;
    color: #ffd54a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-shadow: 0.15vh 0.2vh 0 #1a1a1a, -0.12vh -0.12vh 0 #1a1a1a, 0.12vh -0.12vh 0 #1a1a1a;
    pointer-events: none;
    white-space: nowrap;
}
.epicWin .bonus-modal__inner {
    gap: 0;
}
.playBtns{
    display: none;
    width: 0;
    position: absolute;
    left: 0;
}

.endCard {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  background-image: url('../images/bg-final.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5vh;
  overflow: hidden;
  z-index: 15;


  opacity: 0;
  pointer-events: none;
  transform: scale(1.04);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.endCard-show {
  opacity: 1;
  pointer-events: all;
  transform: scale(1);
}
.endCard__panel {
    position: relative;
    width: 50vh;
}
.endCard__bg {
    width: 100%;
    display: block;
}
.endCard__text {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35vh;
    text-align: center;
}
.endCard__line {
    margin: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 800;
    font-size: 2.35vh;
    color: #fff;
    line-height: 1.15;
    text-shadow: 0 0 0.6vh rgba(80, 160, 255, 0.85), 0 0.15vh 0.35vh rgba(0, 0, 0, 0.6);
}
.endCard .bonus-modal__cta {
    width: 25vh;
    animation: 2s pulse infinite ease-in-out;
}
@keyframes pulse {
    0%,100%{
        scale: 1;
    }
    50%{
        scale: 1.1;
    }
}
.panels{
    display: none;
}
@media (max-aspect-ratio:3832/3780) {
    .row-mult {
    position: absolute;
    top: 20vh;
    left: 50%;
    transform: translate(-50%);
    width: 80vh;
    aspect-ratio: 1544 / 45;

}
 .gate {

    top: 62%;
    width: 80vh;
}
.ball {
    bottom: -11vh;
    width: 12vh;
}
.gollkeeper{

    width: 80vh;
}
.bottom-panel {
    width: 80vh;
    aspect-ratio: 1610 / 148;
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    bottom: 5vh;
}
.bottom-panel__label {
    font-size: 1.2vh;
}
.bottom-panel__value {
    font-size: 2vh;
}
.bottom-panel__value--money img {
    height: 1.7vh;
    width: 1.7vh;
}
}
@media (max-aspect-ratio:3052/3780) {
    .row-mult {
    position: absolute;
    top: 30vh;
    left: 50%;
    transform: translate(-50%);
    width: 60vh;
    aspect-ratio: 1544 / 50;

}
    .game {
    width: 100%;
    height: 95vh;

    background-size: auto 100%;
    background-position: bottom;

}
.ball {
    bottom: -11vh;
    width: 9vh;
}
.bottom-panel {
    width: 60vh;
    aspect-ratio: 1610 / 148;
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    bottom: 11vh;
}
 .gate {


    width: 60vh;
}
.gollkeeper{

    width: 60vh;
}
.bottom-panel__label {
    font-size: 1vh;
}
.bottom-panel__value {
    font-size: 1.6vh;
}
.bottom-panel__value--money img {
    height: 1.4vh;
    width: 1.4vh;
}
}
@media (max-aspect-ratio:2272/3780) {
        .row-mult {
    position: absolute;
    top: 30vh;
    left: 50%;
    transform: translate(-50%);
    width: 45vh;
    aspect-ratio: 1544 / 50;

}
.bottom-panels{
    display: none;
}
.panels{
    display: block;
}
 .gate {

    top: 64.5%;
    width: 48vh;
}
.gollkeeper{

    width: 48vh;
    bottom: -1vh;
}
    .bottom-panel {
        width: 43vh;
        aspect-ratio: 989 / 340;
        position: absolute;
        left: 50%;
        transform: translate(-50%);
        bottom: 1vh;
    }
    .bottom-panel__content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 0.55vh 0.7vh;
        inset: -1% 4.5% 7% 4.5%;
    }
    .bottom-panel__cell {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        transform: none;
        min-height: 0;
        gap: 1.35vh;
    }
    .bottom-panel__cell--difficulty {
        grid-column: 1;
        grid-row: 1;
        align-items: flex-start;
        justify-content: center;
        padding-left: 0.4vh;
    }
    .bottom-panel__cell--bet {
        grid-column: 2;
        grid-row: 1;
        align-items: flex-end;
        justify-content: center;
        text-align: right;
        padding-right: 0.4vh;
    }
    .bottom-panel__cell--bet .bottom-panel__value--money {
        justify-content: flex-end;
    }
    .bottom-panel__cell--lastwin {
        grid-column: 1;
        grid-row: 2;
        align-items: flex-start;
        justify-content: center;
        padding-left: 0.4vh;
    }
    .bottom-panel__cell--cashout {
        grid-column: 2;
        grid-row: 2;
        align-items: end;
        justify-content: center;
        text-align: end;
    }
    .bottom-panel__cell--cashout .bottom-panel__value--money {
        justify-content: flex-end;
    }
    .bottom-panel__label {
        font-size: 1.3vh;
        font-weight: 600;
    }
    .bottom-panel__value {
        font-size: 1.5vh;
        font-weight: 800;
    }
    .bottom-panel__value--money img {
        height: 1.15vh;
        width: 1.15vh;
    }
}