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

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.menu-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 2vh 2vw;
  padding-bottom: 20px;
  position: absolute;
}

.desktop {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  background: url("../image/bg-pc.jpg") no-repeat center center;
  background-size: cover;
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
}

.title-group {
  width: 100%;
  text-align: center;
  margin-top: 2vh;
  margin-bottom: 8vh;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0vh;
}

.title-img {
  width: clamp(214px, 30vw, 450px);
  height: auto;
  margin-bottom: -3vh;
}

.main-content {
  flex: 1;
  width: 100%;
  max-width: 1400px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3vw;
  margin: 0 auto;
  padding: 0 2vw;
}

.social-icons {
  position: fixed;
  right: 2vw;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 2.5vh;
  z-index: 100;
}

.social-icon {
  width: clamp(50px, 4vw, 70px);
  height: clamp(50px, 4vw, 70px);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.1);
}

.social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.game-section {
  width: 100%;
  display: flex;
  justify-content: center;
  position: absolute;
  top: 130px;
  left: -30px;
  z-index: 1;
  margin-bottom: -72px;
}

.game-section img {
  max-width: 650px;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.content-section {
  flex: 1;
  width: 100%;
  max-width: 1400px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3vw;
  margin: 0 auto;
  padding: 0 2vw;
}

.main-bg {
  position: absolute;
  top: 280%;
  left: 50%;
  transform: translate(-50%, -15%);

  z-index: 2;
  background: linear-gradient(to top, #0c4480 0%, #51a4ffe5 90%);
  border-radius: 22px;
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  padding: 25px 80px 26px 91px;
  height: 550px;
  width: 62vw;
}

.game-items-2col {
  display: flex;
  gap: 22px;
  justify-content: center;
  align-items: flex-start;
}
.game-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

/* responsive: mobile chuyển về 1 cột */
@media (max-width: 700px) {
  .game-items-2col {
    flex-direction: column;
    gap: 16px;
  }
}

.item-box {
  background: linear-gradient(to bottom, #093c73 0%, #0069da 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  min-height: 54px;
  height: 50px;
  gap: 10px;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.05);
}

/* icon số thứ tự */
.item-icon {
  width: auto;
  height: 36px;
  flex: none;
}

.content-flex {
  display: flex;
  align-items: center;
  flex: 1;
}

/* progress */
.progress-and-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.progress-bar-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.progress-bar-bg {
  flex: 1;
  height: 9px;
  background: #112941;
  border-radius: 7px;
  overflow: hidden;
  margin-right: 7px;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 7px;
  background: #35ff71;
  width: 0%;
  /* animation: fillBar 3.3s cubic-bezier(0.11, 0.88, 0.45, 1) infinite; */
  animation: fillRandom 3.3s ease-in-out infinite alternate;
}

.speed-label {
  color: #49ff83;
  font-size: 40px;
  font-weight: 700;
  margin-right: 10px;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px #234d36ab;
  margin-bottom: -25px;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
}

.item-title {
  /* margin-top: 5px; */
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.12);
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
}

.info-img {
  width: auto;
  height: 40px;
  object-fit: contain;
  flex: none;
  margin-left: 10px;
  margin-bottom: 13px;
}

@keyframes fillRandom {
  from {
    width: 0%;
  }
  to {
    width: var(--bar-width, 80%);
  }
}

/* 4 icon phía dưới */
.four-item-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 36px 0 24px 0;
  align-items: center;
}
@media (min-width: 1700px) {
  .four-item-list {
    grid-template-columns: repeat(4, 1fr);
  }
}
.four-item img {
  width: auto;
  height: 118px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.footer-license-copyright {
  width: 100%;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 22px 0 12px 0;
  background: none;
}
.footer-license-copyright img {
  max-width: 400px;
  width: 100%;
  height: auto;
  object-fit: contain;
}
@media (max-width: 600px) {
  .footer-license-copyright img {
    max-width: 96vw;
  }
}

.mobile {
  display: none;
}

/* Show mobile on small screens */
@media (max-width: 1025px) {
  .desktop {
    display: none !important;
  }

  .mobile {
    display: block;
    width: 100%;
    position: relative;
    background: url("../image/bg-mobile.png") no-repeat center center;
    background-size: cover;
    overflow: hidden;
    /* padding-left: ; */
  }

  .mobile-section-1 {
    width: 100%;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 15px;
  }

  .banner-wrap {
    width: 100%;
    margin-bottom: -70px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
  }
  .banner-wrap img {
    width: auto;
    max-width: 95vw;
    height: 150px;
    object-fit: contain;
    display: block;
  }

  .main-bg-overlay {
    position: relative;
    background: linear-gradient(to top, #0c4480 0%, #51a4ffe5 90%);
    border-radius: 28px;
    padding: 14px 4px 11px 4px;
    max-width: 96vw;
    margin: 40px auto 0 auto;
    box-shadow: 0 4px 18px 0 #0001;
    z-index: 1;
    height: auto;
  }

  .game-list-mobile {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 0 3px 13px 3px;
  }

  .item-box {
    background: linear-gradient(to bottom, #093c73 0%, #0069da 100%);
    border-radius: 13px;
    display: flex;
    align-items: center;
    padding: 8px 7px;
    min-height: 45px;
    gap: 7px;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.13);
  }

  .item-icon {
    width: 28px;
    height: 28px;
    flex: none;
  }

  .content-flex {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
  }
  .progress-and-title {
    display: flex;
    flex-direction: column;
    gap: 0px;
    flex: 1;
    min-width: 0;
    justify-content: flex-start;
    align-items: flex-start;
  }
  .progress-bar-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
  }
  .progress-bar-bg {
    flex: 1 1 auto;
    min-width: 0;
    height: 7px;
    background: #112941;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 3px;
  }
  .progress-bar-fill {
    position: relative;
    overflow: hidden;

    height: 100%;
    border-radius: 5px;
    background: #49ff83;
    width: 0%;
    animation: fillBar 3.2s cubic-bezier(0.11, 0.88, 0.45, 1) infinite;
  }

  .progress-bar-fill::after {
    content: "";
    position: absolute;
    top: 0;
    left: -30%;
    width: 30%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    animation: shine 1.5s infinite;
  }

  @keyframes shine {
    0% {
      left: -30%;
    }
    50% {
      left: 100%;
    }
    100% {
      left: 100%;
    }
  }

  @keyframes fillBar {
    0% {
      width: 0%;
    }
    50% {
      width: var(--bar-width, 80%);
    }
    100% {
      width: 0%;
    }
  }

  .item-box:nth-child(1) .progress-bar-fill {
    animation-delay: 0s;
  }
  .item-box:nth-child(2) .progress-bar-fill {
    animation-delay: 0.15s;
  }
  .item-box:nth-child(3) .progress-bar-fill {
    animation-delay: 0.3s;
  }
  .item-box:nth-child(4) .progress-bar-fill {
    animation-delay: 0.45s;
  }
  .item-box:nth-child(5) .progress-bar-fill {
    animation-delay: 0.6s;
  }
  .item-box:nth-child(6) .progress-bar-fill {
    animation-delay: 0.75s;
  }

  .speed-label {
    color: #49ff83;
    font-size: 24px;
    font-weight: 700;
    margin-left: 2px;
    text-shadow: 0 2px 7px #234d36ab;
    margin-top: -4px;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
  }
  .speed-label small {
    font-size: 11px;
    color: fff;
    margin-left: 1px;
    font-weight: 400;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
  }
  .item-title {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.13);
    line-height: 1;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
  }
  .info-img {
    width: auto;
    height: 40px;
    object-fit: contain;
    flex: none;
    margin-left: 5px;
  }
  .four-item-list-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px 8px;
    margin: 18px 0 7px 0;
    justify-items: center;
    align-items: center;
  }
  .four-item img {
    width: auto;
    height: 80px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }

  /* License + copyright: ảnh 1 cụm */
  .footer-license-copyright-mobile {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 10px 0 5px 0;
  }
  .footer-license-copyright-mobile img {
    max-width: 90vw;
    width: 80%;
    height: auto;
    object-fit: contain;
  }
}

.mobile-title-img {
  width: 50%;
  max-width: 280px;
  height: auto;
}
