//== home
.home {
  padding: $header-height 0;
  max-width: $grid-breakpoint;
  margin: 0 auto;
  background: #fff;

  .intro {
    padding: 80px 0 40px;
    min-height: 919px;
    text-align: center;
    background: url(../assets/image/intro/intro-bg.png) no-repeat center top -60px #f6f2fa;
    background-size: cover;

    h1 {
      padding-bottom: 0;
      line-height: normal;
      font-size: 27px;
      font-weight: 900;
      color: #471b6b;
    }

    h2 {
      padding-bottom: 18px;
      white-space: pre-line;
      font-size: 22px;
      font-weight: bold;
      color: #471b6b;
    }

    .photo {
      img {
        width: 100%;
      }
    }

    h4 {
      padding-bottom: 20px;
      font-size: 16px;
      font-weight: bold;
      color: #471b6b;
    }

    p {
      padding: 0 20px 20px;
      white-space: pre-line;
      font-size: 14px;
      line-height: 1.57;
      color: #471b6b;
    }
  }

  .wallet {
    position: relative;

    background: rgb(27,12,46);
    background: -moz-linear-gradient(top, rgb(27,12,46) 0%, rgb(67,40,99) 100%);
    background: -webkit-linear-gradient(top, rgb(27,12,46) 0%,rgb(67,40,99) 100%);
    background: linear-gradient(to bottom, rgb(27,12,46) 0%,rgb(67,40,99) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1b0c2e', endColorstr='#432863',GradientType=0 );

    $wallet-photo-width: 186px;
    .photo {
      position: relative;
      float: left;
      width: $wallet-photo-width;
      top: -57px;
      img {
        width: 100%;
      }
    }

    .ment {
      box-sizing: border-box;
      float: left;
      width: calc(100% - #{$wallet-photo-width});
      padding-top: 70px;

      h4 {
        padding-bottom: 20px;
        white-space: pre-line;
        font-size: 24px;
        font-weight: normal;
        line-height: 1.17;
        letter-spacing: normal;
        color: #ffffff;

        b {
          font-weight: bold;
        }
      }

      p {
        white-space: pre-line;
        padding-right: 20px;
        font-size: 14px;
        font-weight: normal;
        font-style: normal;
        font-stretch: normal;
        line-height: normal;
        letter-spacing: normal;
        color: #fff;
      }
    }

    .carousel {
      position: relative;
      top: -57px;

      .cell {
        box-sizing: border-box;
        display: block;
        width: 100%;
        height: 147px;
        margin: 0 auto;
        padding: 20px;
        border-radius: 14px;
        background-color: #230f3b;

        h3 {
          line-height: 1.3;
          padding-bottom: 10px;

          &:after {
            content: ' ';
            display: block;
            clear: both;
          }

          font-size: 14px;
          font-weight: bold;
          color: #ffffff;

          span {
            display: inline-block;
            float: right;
            font-size: 10px;
            color: #ffc400;
          }
        }

        p {
          font-size: 14px;
          font-weight: normal;
          color: #fff;
        }
      }

      .swiper-slide {
        width: 85%;
        /* Center slide text vertically */
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        -webkit-align-items: center;
        align-items: center;
      }

      .swiper-container {
        padding-bottom: 30px;
      }

      .swiper-pagination {
        bottom: 0
      }
      .swiper-pagination-bullet-active {
        background: #fff;
      }

      .swiper-pagination-bullet {
        width: 12px;
        height: 12px;
        background: #fff;
      }

    }
  }

  .pkg-download {
    padding: 60px 0;
    text-align: center;

    .photo {
      width: 209px;
      padding-bottom: 10px;
      margin: 0 auto;
      img { width: 100% }
    }

    h4 {
      padding-bottom: 20px;
      font-size: 16px;
      font-weight: bold;
      color: #471b6b;
    }

    p {
      padding-bottom: 22px;
      white-space: pre-line;
      font-size: 12px;
      color: #471b6b;
    }

    .js-download {
      box-shadow: 0 2px 15px 0 rgba(230, 96, 255, 0.3);
      border: solid 3px rgba(35, 15, 59, 0.1);
      background-color: #f6f2fa;
    }

    .msg-ver {
      padding-top: 20px;
      width: 90%;
      margin: 0 auto;
      font-size: 12px;
    }
  }

  .js-download {
    text-align: center;
    box-sizing: border-box;
    width: 196px;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    border: solid 3px rgba(35, 15, 59, 0.1);
    background-color: #f6f2fa;

    &:active {
      box-shadow: none;
    }

    .photo {
      padding: 0;
    }

    img {
      width: 100%;
      margin: 0;
    }

    &__photo1.photo {
      padding-bottom: 4px;
      width: 43px;
      margin: 0 auto;
    }

    &__photo2.photo {
      width: 127px;
      margin: 0 auto;
    }

    &__ment {
      font-size: 12px;
      line-height: 1.52;
      color: #230f3b;
    }
  }

  .lineup {
    color: #fff;
    background: #000;

    h3 {
      padding: 60px 0 25px;
      font-size: 32px;
      text-align: center;
      color: #ffffff;
    }

    p {
      padding: 0 30px 40px;
      white-space: pre-line;
      font-size: 14px;
      font-weight: normal;
      text-align: center;
    }

    .cell {
      position: relative;
      box-sizing: border-box;
      height: 100vh;
      max-height: 812px;
      background-size: cover;
      background-repeat: no-repeat;
      background-position: center center;

      .game-info {
        position: absolute;
        left: 20px; right: 20px;
        bottom: 10px;
        .row > .photo {
          float: left;
          width: 98px;
          height: 98px;
          img {
            width: 100%;
          }
        }

        .assets {
          float: right;
          padding-top: 10px;
          text-align: right;

          h6 {
            padding-bottom: 5px;
            font-size: 11px;
          }

          ul {
            display: block;
          }
          li {
            display: inline-block;
            padding-left: 3px;
            text-align: center;
            vertical-align: top;

            .symbol {
              width: 44px;
              height: 44px;
              line-height: 40px;
              margin: 0 auto;
              margin-bottom: 2px;
              border-radius: 8px;
              text-align: center;
              background-color: rgba(255,255,255,.15);
              i {
                display: inline-block;
                font-size: 25px;
                color: #fff;
                vertical-align: middle;
              }
            }
          }
          span {
            display: block;
            font-size: 11px;
            color: #999;
          }
        }
      }

      .summery {
        padding: 10px 0;
        text-align: left;

        .commingsoon {
          line-height: 0;
          img {
            width: 59px;
            vertical-align: top;
          }
        }

        h2 {
          line-height: 1.2;
          font-size: 36px;
          font-weight: normal;
          letter-spacing: -1px;
          color: #fff;
        }

        .type {
          padding-bottom: 16px;
          font-size: 14px;
          font-weight: bold;
          color: #ffffff;
        }

        p {
          white-space: pre-line;
          padding: 0;
          text-align: left;
          font-size: 14px;
          color: #ffffff;
        }
      }
    }
  }

  .what {
    padding: 60px 0;
    h3 {
      padding-bottom: 25px;
      font-size: 32px;
      font-weight: 900;
      text-align: center;
      letter-spacing: -.5px;
      color: #471b6b;
    }

    p {
      padding: 0 25px 36px;
      white-space: pre-line;
      font-size: 14px;
      line-height: 1.57;
      letter-spacing: -.5px;
      text-align: center;
      color: #471b6b;
    }

    .cell {
      position: relative;
      width: 95%;
      max-width: 330px;
      border-radius: 14px;
      margin: 0 auto;
      overflow: hidden;

      .photo {
        box-sizing: border-box;
        display: inline-block;
        width: 50px;
        vertical-align: middle;
        img { width: 100%}
      }

      .script {
        display: inline-block;
        padding-left: 10px;
        font-size: 14px;
        font-weight: normal;
        line-height: 1.57;
        color: #4d4d4d;
        vertical-align: middle;
      }

      &-f {
        padding: 15px;
        background-color: #f2f2f2;
        font-size: 0;
      }

      &-t {
        padding: 15px;
        background-color: #471b6b;
        font-size: 0;

        .photo {
          display: inline-block;
          padding: 4px;
          border-radius: 11px;
          background-color: #f6f2fa;
          vertical-align: middle;
          img { width: 100%}
        }

        .script {
          max-width: calc(100% - 60px);
          color: #fff;
          font-weight: normal;
        }
      }

      &-vs {
        position: absolute;
        top: 50%; left: 50%;
        transform: translate(-50%, -50%);
        padding: 6px 22px;
        border-radius: 13px 0 13px 0;
        font-size: 10px;
        font-weight: bold;
        color: #fff;
        background: red;

      }
    }

    .swiper-container {
      padding-bottom: 30px;
    }

    .swiper-pagination {
      left: 0;
      bottom: 0;
      width: 100%;
      text-align: center;
    }
    .swiper-pagination-bullet-active {
      background: $base-font-color;
    }

    .swiper-pagination-bullet {
      width: 12px;
      height: 12px;
      margin: 0 4px;
    }
  }

  .earn {
    padding: 25px 0 20px;
    text-align: center;
    background: url('../assets/image/earn-mb-bg.jpg') no-repeat center center;
    background-size: cover;

    font-size: 14px;

    h3 {
      padding-bottom: 126px;
      font-size: 24px;
      font-weight: bold;
      color: #ffffff;
    }

    .js-earn-download {
      width: 147px;
      height: 44px;
      line-height: 40px;
      border-radius: 22px;
      border: solid 2px #979797;
      font-size: 14px;
      color: #fff;
      background-color: rgba(255, 255, 255, 0.15);
    }

    .msg-ver {
      padding: 10px 20px 0;
      color: #fff;
    }
  }

  .faq {
    padding: 60px 0;

    h3 {
      padding-bottom: 25px;
      text-align: center;
      font-size: 28px;
      font-weight: bold;
      text-align: center;
      color: #471b6b;
    }
    .accordion {
      border-bottom: 1px solid #e8e8e8;
      h4 {
        position: relative;
        border-top: 1px solid #e8e8e8;
        padding: 15px 20px;
        font-size: 14px;
        font-weight: normal;
        line-height: 1.57;
        color: #999;
        cursor: pointer;

        .ico {
          display: inline-block;
          width: 24px;
          height: 24px;
          margin-right: 10px;
          line-height: 22px;
          border-radius: 6px;
          text-align: center;
          font-size: 12px;
          color: #fff;
          background-color: #ffc400;
          vertical-align: top;
        }

        .script {
          display: inline-block;
          width: calc(100% - 70px);
          vertical-align: top;
        }

        &:after {
          position: absolute;
          right: 25px; top: calc(50% - 6px);
          transform: translateY(-50%);
          content: '';
          display: inline-block;
          width: 0;
          height: 0;
          border-top: 6px solid transparent;
          border-left: 8px solid  #4d4d4d;
          border-bottom: 6px solid transparent;
          transform: rotate(0);

          transition: transform .3s ease;
        }
      }

      .answer {
        position: relative;
        background-color: #f6f2fa;

        overflow: hidden;

        .row {
          padding: 0 20px;
          transition: padding .3s ease;
        }

        .ico {
          display: inline-block;
          float: left;
          width: 24px;
          height: 0;
          line-height: 22px;
          border-radius: 6px;
          text-align: center;
          color: #fff;
          background-color: #471b6b;
          vertical-align: top;
          transition: height .3s ease;
        }

        p {
          float: left;
          white-space: pre-line;
          width: calc(100% - 24px);
          padding-left: 10px;
          font-size: 0;
          line-height: 0;
          color: #4d4d4d;
          vertical-align: top;
          transition: line-height .3s ease;
        }

        a {
          color: #1ebde9;
          text-decoration: underline;
        }
      }

      .on {
        h4:after {
          transform: rotate(90deg);
        }
        .answer {
          .row {
            padding: 15px 20px;
          }
          .ico {
            height: 24px;
          }

          p {
            font-size: 14px;
            line-height: 1.57;
          }
        }
      }
    }
  }

  .follow {
    h3 {
      padding-bottom: 25px;
      font-size: 32px;
      text-align: center;
      color: #471b6b;
    }

    li {
      display: block;
      width: 100%;
      padding: 0 15px 5px;
    }

    a {
      position: relative;
      box-sizing: border-box;
      display: block;
      width: 100%;
      height: 60px;
      padding: 7px 25px 0;
      font-size: 14px;
      border-radius: 8px;
      border: solid 1px rgba(35, 15, 59, 0.1);
      color: #230f3b;
      background-color: #ffffff;
      cursor: pointer;

      &:after {
        position: absolute;
        right: 20px; top:50%;
        transform: translateY(-50%);
        content: '';
        display: inline-block;
        width: 0;
        height: 0;
        border-top: 6px solid transparent;
        border-left: 8px solid  #d8d8d8;
        border-bottom: 6px solid transparent;
      }

      .ico {
        position: relative;
        display: inline-block;
        line-height: 1;
        font-size: 32px;
        vertical-align: middle;
        i {
          vertical-align: middle;
        }

        img {
          width: 32px;
          vertical-align: middle;

          &.locale {
            position: absolute;
            top: 22px; left: 22px;
            width: 22px;
          }
        }
      }

      .name {
        display: inline-block;
        white-space: pre-line;
        padding-left: 20px;
        line-height: 1;
        vertical-align: middle;

        span {
          display: inline-block;
          padding-bottom: 4px;
          font-size: 12px;
          color: #999;
        }
      }

      .icon {
        &-twitter {
          color: #1b9fee;
        }

        &-medium {
          color: #000;
        }

        &-telegram {
          color: #1ebde9;
        }

        &-facebook {
          color: #4268b2;
        }
      }

    }

  }

  .js-floating {
    box-sizing: border-box;
    position: fixed;
    right: 12px; bottom: 12px;
    z-index: $header-index + 2;

    li {
      position: absolute;
      bottom: 0;
      display: block;
      padding: 0 0 18px 16px;
      opacity: 0;
      transition: all .2s ease;
    }

    a {
      display: block;
      width: 40px;
      height: 40px;
      line-height: 38px;
      border-radius: 50%;
      font-size: 18px;
      text-align: center;
      color: #fff;
      background: #833dbb;

      transition: all .2s ease;

      i,
      span {
        display: inline-block;
        vertical-align: middle;
      }

      span {
        display: none;
      }

      &:hover {
        background: #ffc400;
      }
    }

    .link-telegram {
      i {
        margin-right: 2px;
        font-size: 22px;
      }
    }

    .js-openUrl {
      position: relative;
      display: block;
      width: 74px;
      height: 74px;
      line-height: 1;
      border-radius: 50%;
      overflow: hidden;
      color: #fff;
      font-size: 11px;
      text-align: center;
      background: #833dbb;
      box-shadow: 5px 5px 10px 1px rgba(29, 8, 54, 0.28);

      transition: all .2s ease;

      img {
        width: 27px;
        vertical-align: top;
        margin-bottom: 4px;
      }
    }

    &.active {

      li {
        opacity: 1;
      }

      .link-telegram {
        bottom: 64px + 24px + 25px;
      }

      .link-email {
        bottom: 64px;
      }

      .js-openUrl {
        background:  #ffc400;
      }


    }

  }
}

@media screen and (min-width: $grid-breakpoint) {
  .home {
    padding: #{$header-pc-height + $header-height} 0 $header-pc-height;
    max-width: none;
    margin: 0 auto;

    .intro {
      padding: 55px 0 130px;
      min-height: auto;
      background-image: url(../assets/image/intro/intro-pc-bg.png);

      h1 {
        font-size: 46px;
      }

      h2 {
        font-size: 40px;
      }

      .photo {
        max-width: 756px;
        margin: 0 auto;
        img {
          width: 100%;
        }
      }

      h4 {
        font-size: 30px;
      }

      p {
        font-size: 16px;
      }
    }

    .wallet {
      position: relative;

      $wallet-photo-width: 409px;
      .photo {
        position: relative;
        top: -57px;
        float: left;
        width: 40%;
        max-width: $wallet-photo-width;
        padding-bottom: 40px;
        img {
          width: 100%;
        }
      }

      .ment {
        box-sizing: border-box;
        float: left;
        width: 60%;
        padding-top: 70px;

        h4 {
          font-size: 40px;

          b {
            font-weight: bold;
          }
        }

        p {
          padding-bottom: 30px;
          font-size: 16px;
        }
      }

      .carousel {
        position: relative;
        float: left;
        width: 60%;
        top: 0;
        font-size: 0;
        padding: 0;

        ul {
          display: block;
          width: 100%;
        }
        li {
          display: inline-block;
          width: 50%;
          padding: 5px 10px 5px 0;
          vertical-align: top;
        }

        .cell {
          width: 100%;

          h3, p {
            font-size: 14px;
          }
        }

      }
    }

    .pkg-download {
      background: url(../assets/image/pkg-download-pc-bg.png) center top no-repeat;

      .photo {
        display: inline-block;
        vertical-align: middle;
      }

      .ment {
        display: inline-block;
        padding: 0 44px;
        vertical-align: middle;

        h4 {
          font-size: 30px;
        }

        p {
          font-size: 16px;
          text-align: left;
        }
      }

      .pkg-box {
        display: inline-block;
      }

      .msg-ver {
        width: 100%;
        position: relative;
        padding-top: 0;
        text-align: right;
        font-size: 14px;
        color: #999;
      }

    }

    .lineup {

      h3 {
        font-size: 46px;
      }

      p {
        white-space: pre-line;
        font-size: 16px;
      }

      .game-list {
        max-width: 1080px;
        margin: 0 auto;
        font-size: 0;
        text-align: center;
      }

      .cell {
        display: inline-block;
        position: relative;
        box-sizing: border-box;
        width: 360px;
        height: 840px;
        max-height: none;

        background-size: 100%;
        background-position: center top;

        .summery {
          padding-bottom: 80px;
        }
      }
    }

    .what {
      position: relative;
      padding: 80px 0;

      h3 {
        font-size: 46px;
      }

      p {
        font-size: 16px;
      }

      overflow: hidden;

      .carousel {
        position: relative;
        width:1700px;
        left: 50%;
        transform: translateX(-50%);
      }

      .cell {
        position: relative;
        width: 550px;
        max-width: none;
        top: 0;
        opacity: 1;
        zoom: 1;

        transition: all .3s ease;

        .script {
          font-size: 16px;
        }

        &-f {
          padding: 15px 5px 15px 15px;
        }

        &-t {
          padding: 15px 5px 15px 15px;

          .script {
            max-width: calc(100% - 70px);
          }
        }
      }

      .swiper-slide {
        &-prev,
        &-next {
          .cell {
            top: 10px;
            opacity: .2;
            zoom: .9 ;
          }
        }
      }
    }

    .earn {
      padding: 60px 0 47px;
      background: url('../assets/image/earn-pc-bg.jpg') no-repeat center center;
      background-size: cover;

      h3 {
        padding-bottom: 126px;
        font-size: 24px;
        font-weight: bold;
        color: #ffffff;
      }

      .js-earn-download {
        width: 147px;
        height: 44px;
        line-height: 40px;
        border-radius: 22px;
        border: solid 2px #979797;
        font-size: 14px;
        color: #fff;
        background-color: rgba(255, 255, 255, 0.15);
      }
    }


    .faq {
      max-width: 1080px;
      margin: 0 auto;
      padding: 80px 0;

      h3 {
        padding-bottom: 50px;
        font-size: 40px;
      }
    }

    .follow {
      h3 {
        padding-bottom: 50px;
        font-size: 40px;
      }

      ul {
        max-width: 1080px;
        margin: 0 auto;
        font-size: 0;
      }

      li {
        box-sizing: border-box;
        display: inline-block;
        width: 33.3333%;
        padding: 5px 7.5px;
      }
    }

    .js-floating {
      right: 44px; bottom: 58px;

      li {
        display: block;
        padding-left: 20px;
      }

      a {
        width: auto;
        line-height: normal;
        text-align: left;
        border-radius: inherit;
        color: #833dbb;
        background: transparent;

        span {
          display: inline-block;
          font-size: 14px;
          font-weight: bold;
        }

        &:hover {
          color: #ffc400;
          background: transparent;
        }
      }

      .link-email {
        i {
          margin-right: 4px;
        }
      }

      .link-telegram {
        a {
          width: 88px;
        }
      }

      .js-openUrl {
        width: 97px;
        height: 97px;
        line-height: 1.08;

        img {
          width: 37px;
        }
      }

      &.active {
        .link-telegram {
          bottom: 90px + 24px + 18px;
        }

        .link-email {
          bottom: 90px;
        }
      }

    }
  }

  .introduce-step {
    padding: 80px 0;
    text-align: center;

    h3 {
      line-height: normal;
      padding-bottom: 20px;
      font-size: 40px;
      font-weight: bold;
      color: #471b6b;
    }

    p {
      white-space: pre-line;

      &.script {
        padding-bottom: 50px;
      }
    }

    ul {
      display: block;
      max-width: $max-width;
      font-size: 0;
      margin: 0 auto;

    }

    li {
      box-sizing: border-box;
      display: inline-block;
      padding-right: 55px;
      padding-bottom: 30px;
      text-align: left;
      vertical-align: top;

      &:last-child {
        padding-right: 0;
      }

      .badge {
        width: 55px;
        height: 30px;
        line-height: 30px;
        padding-left: 10px;
        border-radius: 15px;
        font-size: 12px;
        color: #ffffff;
        background-color: #471b6b;
      }

      h4 {
        padding: 34px 0 14px;
        font-size: 18px;
        color: #471b6b;
      }

      p {
        font-size: 14px;
        color: #808080;

      }
    }
  }

  .introduce {
    padding: 80px 10%;
    text-align: center;
    background: #230f3b;

    h3 {
      line-height: normal;
      padding-bottom: 50px;
      font-size: 40px;
      font-weight: bold;
      color: #fff;
    }

    img {
      width: 100%;
    }

    &-player {
      position: relative;
      max-width: 720px;
      margin: 0 auto;
    }

    .mask {
      position: absolute;
      left: 0; width: 100%;
      top: 0;  height: 100%;
      background: rgba(0,0,0,.5);
      opacity: 0;
      transition: opacity .3s ease;
    }

    .on .mask {
      opacity: 1;
    }

    .js-play {
      position: absolute;
      left: 50%; top: 50%;
      transform: translate(-50%, -50%);
      max-width: 116px;
      cursor: pointer;
    }

    p {
      padding-top: 30px;
      font-size: 14px;
      text-align: center;
      color: #bdb7c4;
    }
  }

}

@media screen and (max-width: 884px) {
  .home {
    .pkg-download {
      .ment {
        width: 100%;
        p {
          text-align: center;
        }
      }

      .msg-ver {
        padding-top: 10px;
        text-align: center;
      }
    }

    .introduce-step{
      ul {
        display: block;
        width: 90%;
        margin: 0 auto;
      }
      li {
        width: 50%;
        padding-right: 0;
      }
    }

    .follow {
      li {
        width: 50%;
      }
    }
  }
}

@media screen and (max-width: 768px) {
  .home {
    .wallet {
      .carousel {
        top: -50px;
        width: 100%;
        padding: 0 20px;
      }
    }
  }
}

@media screen and (max-width: 564px) {
  .home {
    .introduce-step{
      li {
        width: 70%;
      }
    }
    .follow {
      li {
        width: 100%;
      }
    }
  }
}

@media screen and (max-width: 480px) {
  .home {
    .wallet {
      .carousel {
        padding: 0;
      }
    }
  }
}
