.nav {
  display: none;
}

.header {
  position: fixed;
  z-index: 9;
  width: 100%;
  padding: 16px 20px;
  backdrop-filter: blur(12px);
  background: rgba(251, 219, 70, 0.7);
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.nav-link {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 18px;
  color: #161616;
  transition: color 0.3s ease;
}

.nav-link:hover {
  text-decoration: underline;
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  margin-left: auto;
}

.menu-svg {
  stroke: #161616;
  fill: #161616;
}

@media screen and (min-width: 1428px) {
  .header {
    padding: 29px 131px;
  }

  .nav {
    display: block;
  }

  .menu-open {
    display: none;
  }
}

/* modal  */

.modal {
  position: fixed;
  top: 66px;
  left: 0;
  z-index: 8;
  width: 100%;
  padding: 50px;
  backdrop-filter: blur(22px);
  background: rgba(251, 219, 70, 0.8);
}

.menu-nav-list {
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}

/* popup */

.popup {
  position: fixed;
  z-index: 10;
  bottom: 10px;
  left: 50%;
  width: 95%;
  transform: translateX(-50%);
  padding: 20px;
  border: 1px solid #161616;
  border-radius: 20px;
  box-shadow: 0 14px 42px 0 rgba(8, 15, 52, 0.06);
  background: #f1f1f1;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  transition: transform 0.4s ease;
}

.popup-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 187%;
  color: #161616;
  margin-bottom: 36px;
}

.popup-btn {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 112%;
  color: #161616;
  border: 1px solid #161616;
  border-radius: 56px;
  padding: 18px 26px;
  box-shadow: 0 4px 8px 0 rgba(74, 58, 255, 0.08);
  transition: color 0.3s ease, background-color 0.3s ease;
}

.popup-btn:hover {
  color: #f1f1f1;
  background: #161616;
}

.popup-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

@media screen and (min-width: 1428px) {
  .popup {
    display: flex;
    padding: 50px 130px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .popup-text {
    font-size: 16px;
    max-width: 648px;
    margin: 0;
  }
  .popup-wrap {
    gap: 20px;
  }
}

/* hero  */

.hero {
  background-image: url(./images/hero.jpg);
  background-size: cover;
  background-position: center;
  padding: 160px 20px;
  position: relative;
  overflow: hidden;
}

.hero-logo {
  width: 315px;
  margin: 0 auto;
  margin-bottom: 44px;
}

.hero-title {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 34px;
  text-transform: uppercase;
  text-align: center;
  color: #161616;
  margin-bottom: 34px;
}

.hero-link {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  max-width: 100%;
  transition: transform 0.3s ease;
}

.hero-link:hover {
  transform: scale(1.04);
}

.green-left {
  position: absolute;
  bottom: 0;
  left: -50px;
}

.green-right {
  position: absolute;
  bottom: 0;
  right: -80px;
}

@media screen and (min-width: 1428px) {
  .hero {
    padding-top: 115px;
    padding-bottom: 80px;
  }

  .hero-logo {
    width: auto;
    margin-bottom: 44px;
  }

  .hero-title {
    font-size: 46px;
    margin-bottom: 34px;
  }

  .green-left {
    bottom: 0;
    left: 0;
  }

  .green-right {
    bottom: 0;
    right: 0;
  }
}

/* spin */

#spin {
  padding-bottom: 230px;
  background: url(./images/pena.png),
    linear-gradient(180deg, #fbdb46 0%, #ffbd01 100%);
  background-size: contain, cover;
  background-position: bottom right;
  background-repeat: no-repeat;
}

.spin-text {
  padding: 18px;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  line-height: 144%;
  text-align: center;
  color: #161616;
  box-shadow: inset 0 0 12px 0 #ff7900;
  background: #ff9637;
}

.cup {
  position: absolute;
  left: 50%;
  bottom: -60px;
  width: 214px;
  transform: translateX(-50%);
}

@media screen and (min-width: 1428px) {
  #spin {
    padding-bottom: 122px;
  }
  .spin-text {
    font-size: 18px;
    width: 891px;
    margin: 0 auto;
  }

  .cup {
    left: auto;
    right: 20px;
    bottom: 0;
    width: auto;
    transform: translateX(0);
  }
}

/* features */

.features-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 133%;
  text-align: center;
  color: #fff;
  margin-bottom: 32px;
}

.features-sub-title {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 22px;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  margin-bottom: 16px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.features-item {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;

  h3 {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 20px;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
  }
  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    text-align: center;
    color: #fff;
  }
}

@media screen and (min-width: 1428px) {
  #features {
    padding-bottom: 54px;
  }
  .features-text {
    max-width: 700px;
    margin: 0 auto;
    margin-bottom: 32px;
  }

  .features-list {
    width: 1186px;
    margin: 0 auto;
    flex-direction: row;
    gap: 22px;
    align-items: flex-start;
    justify-content: center;
  }

  .features-item {
    width: calc((100% - 66px) / 4);
  }
}

/* about */

#about {
  padding-bottom: 175px;
  position: relative;
  overflow: hidden;
}

.solod1 {
  position: absolute;
  top: 50px;
  left: 50%;
  width: 199px;
  transform: translateX(-280px);
}

.solod2 {
  position: absolute;
  top: 200px;
  left: 50%;
  width: 180px;
  transform: translateX(90px) rotate(60deg);
}

.solod3 {
  position: absolute;
  width: 240px;
  bottom: 0;
  left: 0;
}

.solod4 {
  position: absolute;
  width: 140px;
  bottom: 40px;
  right: 0;
  transform: rotate(180deg);
}

.about-img {
  position: absolute;
  max-width: max-content;
  left: 50%;
  transform: translateX(-50%);
  max-height: 300px;
}

.about-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 133%;
  text-align: center;
  color: #161616;
  margin-top: 350px;
}

@media screen and (min-width: 1428px) {
  #about {
    padding-bottom: 50px;
  }

  .about-text {
    max-width: 1000px;
    margin: 0 auto;
    margin-top: 350px;
  }

  .solod1 {
    top: 0;
    width: auto;
    transform: translateX(-630px);
  }

  .solod2 {
    top: 0;
    left: 50%;
    width: auto;
    width: 180px;
    transform: translateX(450px) rotate(60deg);
  }

  .solod3 {
    width: auto;
    bottom: 0;
    left: 0;
  }

  .solod4 {
    width: auto;
    bottom: 40px;
    right: 0;
    transform: rotate(180deg);
  }
}

/* demo */

.demo-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  line-height: 133%;
  text-align: center;
  color: #fff;
  margin-bottom: 24px;
}

.iframe-wrap {
  position: relative;
  width: 335px;
  max-width: 100%;
  height: 203px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin: 0 auto;
  margin-top: 60px;
}

@media screen and (min-width: 768px) {
  .iframe-wrap {
    width: 500px;
    height: 290px;
  }
}

@media screen and (min-width: 1200px) {
  #demo {
    padding-bottom: 93px;
  }

  .demo-text {
    max-width: 700px;
    margin: 0 auto;
    margin-bottom: 28px;
  }

  .iframe-wrap {
    min-width: 837px;
    height: 490px;
  }
}

.close-button-frame {
  position: absolute;
  top: 0;
  right: 0;
  transform: translateY(-40px) translateX(10px);
  border: none;
  width: 30px;
  height: 30px;
  cursor: pointer;
  padding: 0;
  background-color: transparent;
  z-index: 20;
  .menu-svg {
    fill: #fff;
    stroke: #fff;
  }
}

.close-button-frame:hover {
  .menu-svg {
    fill: #ff3131;
    stroke: #ff3131;
  }
}

#gameIframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media screen and (min-width: 1428px) {
  #demo {
    background-position: center;
  }

  .demo-text {
    max-width: 700px;
    margin: 0 auto;
    margin-bottom: 32px;
  }
}

/* tips */

.toast-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 133%;
  text-align: center;
  color: #fff;
  margin-bottom: 32px;
}

.toast-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.toast-item {
  padding: 18px;
  box-shadow: inset 0 0 12px 0 #ff7900;
  background: #ff9637;

  p {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 20px;
    text-align: center;
    color: #161616;
    margin-bottom: 12px;
  }

  span {
    display: block;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: #161616;
  }
}

@media screen and (min-width: 1428px) {
  .toast-text {
    max-width: 837px;
    margin: 0 auto;
    margin-bottom: 40px;
  }

  .toast-list {
    width: 820px;
    margin: 0 auto;
    height: 410px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }

  .toast-item {
    width: 397px;
  }
}

/* mobile */

#mobile {
  position: relative;
  overflow: hidden;
  padding-bottom: 278px;
}

.mobile-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 133%;
  text-align: center;
  color: #161616;
  margin-bottom: 40px;
}

.mobile-sub-title {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 22px;
  line-height: 109%;
  text-align: center;
  color: #161616;
  margin-bottom: 22px;
}

.mobile-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 133%;
  text-align: center;
  color: #161616;
}

.bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 335px;
}

@media screen and (min-width: 1428px) {
  #mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    padding-left: 0;
    padding-bottom: 40px;
  }

  .bar {
    position: static;
    width: auto;
    max-width: max-content;
  }

  .mobile-text {
    font-size: 18px;
  }
}

/* crawl */

#crawl {
  padding-bottom: 232px;
  background-image: url(./images/pena.png);
  background-size: contain;
  background-position: bottom right;
  position: relative;
  overflow: hidden;
  background-repeat: no-repeat;
}

.solod5 {
  position: absolute;
  top: 30%;
  left: -80px;
  width: 180px;
  transform: rotate(-90deg);
}

.solod6 {
  position: absolute;
  bottom: 250px;
  right: 0;
  width: 180px;
  transform: translateX(90px) rotate(60deg);
  z-index: -1;
}

.solod7 {
  position: absolute;
  width: 130px;
  bottom: 170px;
  left: -40px;
  transform: rotate(-70deg);
}

.solod8 {
  position: absolute;
  width: 210px;
  bottom: 0;
  right: -50px;
  transform: rotate(180deg);
}

.crawl-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 133%;
  text-align: center;
  color: #161616;
  padding: 18px;
  box-shadow: inset 0 0 12px 0 #ff7900;
  background: #ff9637;
}

@media screen and (min-width: 1428px) {
  #crawl {
    padding-bottom: 96px;
  }

  .solod5 {
    top: auto;
    left: 30%;
    bottom: 0;
    width: auto;
    transform: rotate(-90deg);
  }

  .solod6 {
    bottom: auto;
    right: auto;
    top: 0;
    left: 25%;
    width: 180px;
    transform: translateX(90px) rotate(0);
    z-index: 0;
  }

  .solod7 {
    width: 150px;
    bottom: 0;
    left: 0;
    transform: rotate(-70deg);
  }

  .solod8 {
    width: 210px;
    bottom: auto;
    right: -30px;
    top: -30px;
    transform: rotate(0);
  }

  .crawl-text {
    font-size: 18px;
    max-width: 810px;
    margin: 0 auto;
  }

  .cup-bottom {
    left: 20px;
    right: auto;
  }
}

/* desclimer */

.desclimer {
  background-image: url(./images/disclaimer.jpg);
  background-size: cover;
  background-position: center;
}

.desclimer-wrap {
  padding: 18px;
  box-shadow: inset 0 0 12px 0 #ff7900;
  background: #ff9637;
}

.desc-text {
  font-family: var(--font-family);
  font-weight: 900;
  font-size: 20px;
  line-height: 150%;
  text-align: center;
  color: #161616;
}

@media screen and (min-width: 1428px) {
  .desclimer-wrap {
    width: 1240px;
    margin: 0 auto;
  }

  .desc-text {
    font-size: 20px;
    max-width: 1240px;
    margin: 0 auto;
  }
}

/* footer */

.footer {
  padding: 20px;
  background: linear-gradient(360deg, #fbdb46 0%, #ffa629 100%);
}

.footer-text {
  font-family: var(--font-family);
  font-weight: 900;
  font-size: 14px;
  color: #161616;
  margin-bottom: 22px;
  text-align: center;
}

.footer-logo {
  display: block;
  width: 100px;
  margin: 0 auto;
  margin-bottom: 9px;
}

.footer-wrap {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-family: var(--font-family);
  font-weight: 900;
  font-size: 16px;
  text-transform: uppercase;
  color: #161616;
}

.link:hover {
  text-decoration: underline;
}

@media screen and (min-width: 1428px) {
  .footer {
    padding: 20px 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .footer-wrap {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 32px;
  }

  .footer-logo {
    width: 130px;
    margin: 0;
  }

  .footer-text {
    margin: 0;
  }
}

/* ********************* */

.hidden {
  display: none;
}

.popup-click {
  transform: translateY(120%) translateX(-50%);
}
