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

body {
  font-family: Poppins, Poppins;
  background-color: #141414;
  color: #fff;
  overflow-x: hidden;
}

.container {
  width: 1440px;
  margin: 0 auto;
  padding: 0 72px;
  overflow-x: hidden;
}

/* common title style */
.common-h2 {
  font-weight: 600;
  font-size: 36px;
  line-height: 60px;
  text-align: center;
}
.common-gradient-h2 {
  background: linear-gradient(97deg, #ee62e8 0%, #651def 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* header section */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 72px;
}
.logo {
  display: flex;
  align-items: center;
  font-family: Roboto, Roboto;
  font-weight: bold;
  font-size: 20px;
  color: #ffffff;
  text-align: left;
  font-style: normal;
  text-transform: none;
}
.logo img {
  width: 45px;
  height: 45px;
  margin-right: 6px;
}

.header .download {
  width: 164px;
  height: 46px;
  background: linear-gradient(93deg, #8350f4 0%, #5b25d3 100%);
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  line-height: 27px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-btn {
  width: 281px;
  height: 62px;
  background: linear-gradient(97deg, #ee62e8 0%, #651def 100%);
  border-radius: 8px;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  line-height: 27px;
  text-decoration: none;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 60px;
  box-sizing: border-box;
}


/* hero section */
.hero-section {
  width: 100%;
  height: 500px;
  margin-top: 11px;
  position: relative;
}
.desktop-btn {
  display: block;
}
.mobile-btn {
  display: none !important;
}

.hero-transparent {
  position: absolute;
  top: 0;
  left: 0;
  width: 90%;
  height: 100%;
  background: linear-gradient(
    90deg,
    #141414 0%,
    #141414 50%,
    rgba(20, 20, 20, 0) 68%
  );
}
.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 80%;
  height: 100%;
  background-image: url("../img/game-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 1440px;
  margin: 0 auto;
  padding: 0 72px;
  height: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  z-index: 1;
  margin-left: 112px;
}
.hero-content p {
  font-weight: bold;
  font-size: 40px;
  line-height: 60px;
  text-align: left;
  color: #fff;
}

.hero-content p:nth-child(2) {
  background: linear-gradient(97deg, #ee62e8 0%, #651def 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content span {
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;
  margin-top: 20px;
}

.hero-pic {
  width: 582px;
  height: 378px;
  background-image: url("../img/game-pic.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  margin-right: -20px;
}

.hero-title {
  font-size: 36px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  color: #666;
  margin-bottom: 30px;
}

.hero-btn {
  padding: 15px 30px;
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #333;
  text-decoration: none;
  font-size: 16px;
  display: inline-block;
}

.hero-graphic {
  overflow: hidden;
  background-image: url("../img/pic-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-circle {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: #ccc;
  border-radius: 50%;
}

.section-container {
  position: relative;
  margin-top: 80px;
}

.bg-1-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 757px;
  background-image: url("../img/bg-move.png");
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  z-index: -1;
}
.bg-2-section {
  position: absolute;
  top: 837px;
  left: 0;
  width: 100%;
  height: 800px;
  background-image: url("../img/bg-banner.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

.section-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row-reverse;
  max-width: 1075px;
  margin: 0 auto;
  background: #1e2125;
  border-radius: 16px;
  padding: 40px;
  gap: 50px;
  margin-top: 80px;
}
.section-content:nth-child(2n) {
  flex-direction: row;
}

.section-image {
  flex: 1;
  height: 260px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.section-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.section-text p {
  font-size: 24px;
  line-height: 60px;
}
.section-text span {
  font-size: 16px;
  line-height: 24px;
  margin-top: 8px;
  color: #999;
}
.section-share {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 45px;
  font-weight: 600;
  font-size: 36px;
  color: #ffffff;
  line-height: 60px;
  margin-top: 80px;
  width: 100%;
  height: 506px;
}
.section-share img {
  width: 113px;
  height: 113px;
  object-fit: contain;
}
.bg-share {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/share-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

/* gallery section */
.gallery-section {
  position: relative;
  width: 100%;
  height: 707px;
  padding-top: 40px;
  margin-top: 80px;
  z-index: 1;
}

.bg-gallery {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/bg-banner.png");
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  z-index: -1;
}

.image-gallery {
  display: flex;
  gap: 24px;
  width: 1440px;
  margin: 60px auto 0;
  height: 415px;
  padding: 0 72px;
  box-sizing: border-box;
}

.image-item {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0px 0px 17px 0px #8458ff, 0px 0px 2px 0px #946dff;
  border-radius: 16px;
}

.image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.3s ease;
}

.image-item .active-img {
  opacity: 0;
}

.image-item .inactive-img {
  opacity: 1;
}

.image-item.active .active-img {
  opacity: 1;
}

.image-item.active .inactive-img {
  opacity: 0;
}

.image-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 1;
  z-index: 1;
}

.image-item.active .overlay {
  opacity: 0;
}

.image-item .content {
  position: absolute;
  bottom: 0;
  left: 0;
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 24px;
  box-sizing: border-box;
  z-index: 10;
}

.image-item .content img {
  width: 68px;
  height: 68px;
  position: relative;
  margin-bottom: 16px;
}

.image-item:not(.active) .content img {
  margin-bottom: 10px;
}

.image-item .content p {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
}

/* default state: first image is large, others are small */
.image-item:nth-child(1) {
  flex: 4;
}

.image-item:nth-child(n + 2) {
  flex: 1;
}

/* active state: current active image remains large, others are small */
.image-item.active {
  flex: 4;
}

.image-item:not(.active) {
  flex: 1;
}

.image-item:not(.active) .content {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  align-items: center;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.image-item:not(.active) .content p {
  font-size: 20px;
  line-height: 30px;
}

.section-banner {
  position: relative;
  width: 100%;
  height: 757px;
}

.section-banner .common-h2 {
  padding-top: 180px;
}

.section-banner a {
  margin-top: 80px;
}

.bg-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/bg-section.png");
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  z-index: -1;
}

.banner-desc {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 80px;
}
.banner-desc .text {
  width: calc(100% / 4);
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 16px;
  line-height: 24px;
  color: #999;
  text-align: center;
}
.banner-desc .text span {
  font-weight: 600;
  font-size: 48px;
  line-height: 60px;
  background: linear-gradient(90deg, #f263e7 0%, #b432ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-move {
  margin-top: 160px;
  overflow: hidden;
}

.scroll-container {
  position: relative;
  overflow: hidden;
  margin-top: 60px;
  width: 100%;
}
.scroll-container:last-child {
  margin-top: 24px;
}
.scroll-container .bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 378px;
  background: linear-gradient(
    90deg,
    #000000 0%,
    rgba(0, 0, 0, 0.5) 20%,
    rgba(155, 155, 155, 0) 50%,
    rgba(0, 0, 0, 0.5) 80%,
    #000000 100%
  );
}

.scroll-row {
  display: flex;
  gap: 24px;
  animation-duration: 30s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  width: max-content;
  position: relative;
}

.scroll-container:nth-child(1) .scroll-row {
  animation-name: scrollRight;
}

.scroll-container:nth-child(2) .scroll-row {
  animation-name: scrollLeft;
}

.scroll-container:nth-child(3) .scroll-row {
  animation-name: scrollRight;
}

.scroll-row.paused {
  animation-play-state: paused;
}

@keyframes scrollRight {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes scrollLeft {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.game-cover {
  min-width: 258px;
  height: 378px;
  flex-shrink: 0;
  object-fit: cover;
}

/* footer section */
.footer {
  padding: 40px 72px;
  text-align: center;
  color: #fff;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  line-height: 22px;
}

.footer-links {
  display: flex;
  gap: 75px;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
}

.footer-links a {
  text-decoration: none;
  color: #fff;
}

@media (max-width: 600px) {
  .common-h2 {
    font-size: 24px;
    line-height: 36px;
  }

  .container {
    width: 100%;
    padding: 0 18px;
  }

  .header {
    padding: 15px 18px;
  }
  .logo {
    font-size: 14px;
    line-height: 24px;
  }
  .logo img {
    width: 24px;
    height: 24px;
  }
  .header .download {
    width: 104px;
    height: 34px;
    font-size: 14px;
    line-height: 22px;
  }

  .download-btn {
    width: 257px;
    height: 51px;
    font-size: 16px;
    line-height: 27px;
    margin-top: 43px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .hero-section {
    height: auto;
    margin-top: 0;
    padding-top: 0;
    box-sizing: border-box;
  }
  .hero-transparent {
    display: none;
  }
  .hero-bg {
    display: none;
  }
  .hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 32px auto 0;
    box-sizing: border-box;
    width: 100%;
    height: auto;
  }
  .hero-content {
    position: relative;
    align-items: center;
    text-align: center;
    left: 0;
    margin-left: 0;
  }
  .hero-content p {
    font-size: 24px;
    line-height: 36px;
    text-align: center;
  }
  .hero-content span {
    font-size: 16px;
    line-height: 32px;
    margin-top: 24px;
  }
  .desktop-btn {
    display: none !important;
  }
  .mobile-btn {
    display: block;
  }
  .hero-pic {
    position: relative;
    width: 348px;
    height: 226px;
    margin-top: 43px;
    right: 0;
    top: 0;
    margin-right: 0;
    transform: none;
  }

  
  .gallery-section {
    height: auto;
    margin-top: 64px;
    padding: 0;
  }
  .gallery-section .common-h2 {
    padding: 0 58px;
  }
  .bg-gallery {
    display: none;
  }
  .image-item .overlay {
    display: none;
  }
  /* mobile hide inactive-img, only show active-img */
  .image-item .inactive-img {
    display: none;
  }
  .image-item .active-img {
    opacity: 1 !important;
  }
  /* mobile disable active state effect */
  .image-item.active .active-img {
    opacity: 1 !important;
  }
  .image-item.active .inactive-img {
    opacity: 1 !important;
  }
  .image-item .content {
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    transform: none !important;
    align-items: center !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: row !important;
    padding: 16px !important;
  }
  .image-item .content p {
    font-size: 14px !important;
    line-height: 21px !important;
    margin-left: 4px !important;
    margin-bottom: 0 !important;
  }
  .image-item .content img {
    width: 40px !important;
    height: 40px !important;
    margin-bottom: 0 !important;
    margin-right: 0 !important;
  }
  .image-gallery {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 24px auto 0;
    width: 100%;
    padding: 0 18px;
    height: auto;
    min-height: 221px;
    box-sizing: border-box;
  }
  .image-item {
    width: 100%;
    height: 221px;
    min-height: 221px;
    flex: none;
  }


  .section-banner {
    height: auto;
    padding-top: 0;
  }
  .section-banner .common-h2 {
    margin-top: 64px;
    padding: 0 78px;
  }
  .section-banner a {
    margin-top: 24px;
  }
  .banner-desc {
    flex-direction: column;
    margin-top: 24px;
    gap: 20px;
  }
  .banner-desc .text {
    width: 100%;
    font-size: 20px;
    line-height: 24px;
  }
  .banner-desc .text span {
    font-size: 32px;
    line-height: 48px;
  }


  .section-container {
    margin-top: 64px;
    padding: 0 18px;
  }
  .section-container .common-h2 {
    padding: 0 50px;
  }
  .section-content {
    flex-direction: column !important;
    margin-top: 24px;
    padding: 16px;
    gap: 24px;
  }
  .section-image {
    flex: none;
    width: 100%;
    height: 180px;
  }
  .section-text {
    flex: none;
    width: 100%;
  }
  .section-text p {
    font-size: 20px;
    line-height: 30px;
  }
  .section-text span {
    font-size: 14px;
    line-height: 21px;
    margin-top: 12px;
  }


  .section-move {
    margin-top: 64px;
  }
  .section-move .common-h2 {
    padding: 0 50px;
  }
  .scroll-container {
    margin-top: 24px;
  }
  .scroll-container:last-child {
    margin-top: 18px;
  }
  .scroll-row {
    gap: 18px;
  }
  .game-cover {
    min-width: 200px;
    height: 293px;
  }


  .section-share {
    margin-top: 1px;
  }
  .section-share img {
    width: 128px;
    height: 128px;
  }
  .section-share span {
    font-size: 24px;
    line-height: 36px;
    text-align: center;
  }


  .footer-content {
    flex-direction: column;
    align-items: start;
    gap: 32px;
    text-align: start;
    padding-bottom: 40px;
  }
  .footer-left {
    font-size: 16px;
    line-height: 24px;
  }
  .footer-links {
    flex-direction: column;
    gap: 32px;
    font-size: 14px;
    line-height: 21px;
  }

}
