/* fonts  */
@font-face {
    font-family: 'Muller';
    src: local('Muller Heavy'), local('MullerHeavy'),
        url('../fonts/MullerHeavy.woff2') format('woff2'),
        url('../fonts/MullerHeavy.woff') format('woff'),
        url('../fonts/MullerHeavy.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Muller';
    src: local('Muller ExtraBold'), local('MullerExtraBold'),
        url('../fonts/MullerExtraBold.woff2') format('woff2'),
        url('../fonts/MullerExtraBold.woff') format('woff'),
        url('../fonts/MullerExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Muller';
    src: local('Muller Bold'), local('MullerBold'),
        url('../fonts/MullerBold.woff2') format('woff2'),
        url('../fonts/MullerBold.woff') format('woff'),
        url('../fonts/MullerBold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}


:root {
  --img: url('../img/webp/bg.webp'); 
}

*,
*::after,
*::before {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}


body {
  font-family: 'Muller', sans-serif;
  font-style: normal;
  font-weight: 900;
  background: #1A1C30;
  height: calc(var(--vh) * 100);
  background-size: cover;
}

a {
    color: inherit;
    text-decoration: none;
  }
  
ul {
  list-style: none;
}

img {
  width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
}

button {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  outline: none;
}

.main {
  max-width: 520px;
  height: 100%;
  margin: 0 auto;
  padding-top: 35px;
  position: relative;
  z-index: 5;
}

.main::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  top: 0;
  background-image: var(--img);
  background-repeat: no-repeat;
  background-size: 100% 763px;
  width: 100%;
  height: 100%;
  z-index: 10;
}

.main::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  background-image: url('../img/webp/coins.webp');
  background-repeat: no-repeat;
  background-size: cover;
  height: 150px;
}

.logo {
  color: #FFD601;
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 75px;
}

.scoreboard {
  color: #FFF;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  margin-right: 70px;
}

.game-btn {
  position: absolute;
  top: 515px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 47px;
  border-radius: 5px;
  background: #FFF000;
  z-index: 20;
}

.game-btn span {
  font-family: 'Muller', sans-serif;
  color: #1A1C30;
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  line-height: normal;
}

.popup {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  top: 0;
  z-index: -1;
}

.popup-content {
  width: 300px;
  height: 194px;
  border-radius: 10px;
  border: 3px solid #08DBB5;
  background: #3C3F65;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 250px auto 0;

  opacity: 0;
  transform: scale(0);
}

.popup-title {
  color: #FFF;
  text-align: center;
  font-size: 36px;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
  margin-bottom: 15px;
}

.popup-text {
  background: linear-gradient(180deg, #FF8A00 0%, #FFD601 46.35%, #FFF000 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  font-size: 48px;
  font-style: normal;
  font-weight: 900;
  line-height: normal;
  -webkit-text-stroke: 2px #000;
}

.popup-btn {
  display: block;
  width: 300px;
  height: 70px;
  border-radius: 10px;
  border: 1px solid #000;
  background: #08DB57;
  margin: 40px auto 0;
  position: relative;
  top: -125px;
  opacity: 0;
  transform: scale(0);
}


.popup-btn span {
  color: #000;
  text-align: center;
  font-family: 'Muller', sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 900;
  line-height: normal;
  text-transform: uppercase;
  margin-top: 5px;
  display: block;
}

.active {
  z-index: 20;
}

.active .popup-content{
  opacity: 1;
  transform: scale(1);
  transition: transform .4s .3s ease-in-out, opacity .4s .3s ease-in-out ;
}

.active .popup-btn{
  opacity: 1;
  transform: scale(1);
  top: 0;
  transition: transform .5s .8s ease-in-out, opacity .5s .8s ease-in-out, top .5s .8s ease-in-out ;
}

@media (max-height: 790px) {
  .game-btn {
    top: 500px;
  }
  .popup-content {
    margin: 120px auto 0;
  }
  .main::after {
    height: 120px;
  }
}