:root {
  --footer-height: 220px;
  /* ปรับเป็น px หรือ vh เช่น 25vh */

  --bp-sm: 640px;
  /* mobile up to */
  --bp-md: 1024px;
  /* tablet up to */
}

body {
  background-image: url("./../images/BG.png");
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position: center top;
  margin: 0;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

.FxTop {
  position: absolute;
  left: 50vw;
  top: 0;
  transform: translateX(-50%);
  mix-blend-mode: screen;
  width: 100%;
}

.FxTop img {
  z-index: -1;
  width: 100%;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.logo img {
  max-width: 100%;
  /* ขยายเต็ม container แต่ไม่เกินขนาดจริง */
  /*height: auto;*/
  /* รักษาอัตราส่วน */
  height: 12vh;
  /* vw % ของความกว้างหน้าจอ */
  /* vh % ของความสูงหน้าจอ */
  display: block;
}

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  /* ให้คลิกทะลุผ่านรูปได้ */
  overflow: visible;
  z-index: 1000;
  display: block;
}

.footer .footer-img {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* กำหนดชั้นซ้อน: back อยู่ล่างสุด front อยู่บน */
.footer .back {
  z-index: 1;
  /* Group 3.png */
}

.footer .front {
  z-index: 2;
  /* Group 4.png */
}

.glass-backdrop {
  position: absolute;
  top: 13.8rem;
  mix-blend-mode: plus-lighter;
  z-index: -1;
}

.glass-backdrop img {
  width: 80%;
}

.glass-backdrop.left {
  left: 1.5rem;
}

.glass-backdrop.right {
  display: flex;
  justify-content: right;
  right: 1.5rem;
}

.character {
  z-index: 10;
  display: flex;
  justify-content: center;
  width: 100%;
}

.character img {
  margin-right: 2rem;
  width: 45%;
}

.thunder {
  z-index: 20;
  display: flex;
  justify-content: center;
  position: absolute;
  top: 9.6rem;
  left: 50vw;
  width: 100%;
  transform: translate(-46.2%, 0);
  mix-blend-mode: plus-lighter;
  pointer-events: none;
}

.thunder img {
  width: 65%;
}

.btns {
  z-index: 30;
  display: flex;
  justify-content: center;
  /*position: absolute;
  top: 75vh;
  left: 50vw;
  transform: translate(-50%, -50%);*/
  margin-top: -3.5rem;

}

.btns img {
  width: 100%;
}

.btns a {
  z-index: 30;
}

.socials {
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

.socials img {
  width: 100%;
}

.socials a {
  z-index: 30;
}

.btn-download img {
  transition: transform 0.3s ease, content 0.3s ease;
}

.btn-download:hover img {
  content: url("./../images/btn-download-hover.png");
  transform: scale(1.1);
}

.btn-account img {
  transition: transform 0.3s ease, content 0.3s ease;
}

.btn-account:hover img {
  content: url("./../images/btn-account-hover.png");
}

.btn-face img {
  transition: transform 0.3s ease, content 0.3s ease;
}

.btn-face:hover img {
  content: url("./../images/social/face-hover.png");
}

.btn-dis img {
  transition: transform 0.3s ease, content 0.3s ease;
}

.btn-dis:hover img {
  content: url("./../images/social/dis-hover.png");
}

.btn-group img {
  transition: transform 0.3s ease, content 0.3s ease;
}

.btn-group:hover img {
  content: url("./../images/social/group-hover.png");
}

/* ====== Tablet ====== */
@media (max-width: 1024px) {

  .logo {
    padding-top: 5rem;
  }

  .character {
    margin-top: 6rem;
  }

  .character img {
    width: 70%;
  }

  .glass-backdrop {
    top: 30rem;
  }

  .glass-backdrop img {
    width: 60%;
  }

  .glass-backdrop.left {
    left: 0.01rem;
  }

  .glass-backdrop.right {
    right: 0.01rem;
  }

  .thunder {
    top: 22rem;
  }

  .thunder img {
    width: 110%;
  }

  /* ====== Mobile Horizontal ====== */
  @media (max-height: 599px) {

    .logo {
      padding-top: 2rem;
    }

    .logo img {
      /*max-width: 80%;*/
      /* ลดขนาดบนมือถือ */
      height: 15vh;
    }

    .glass-backdrop {
      top: 4rem;
    }

    .glass-backdrop img {
      width: 60%;
    }

    .glass-backdrop.left {
      left: 0.5rem;
    }

    .glass-backdrop.right {
      right: 0.5rem;
    }

    .character {
      margin-top: -3rem;
    }

    .character img {
      width: 40%;
    }

    .thunder {
      top: 4rem;
      overflow-x: hidden;
      left: 46vw;
    }

    .thunder img {
      width: 60%;
    }

    .btns a {
      width: 25%;
    }

    .socials {
      padding-top: 0.05rem;
    }

    .socials a {
      width: 15%;
    }

    .footer {
      display: none;
    }
  }
}

/* ====== Mobile ====== */
@media (max-width: 599px) {
  main {
    padding-top: 2.5rem;
  }

  .character {
    margin-top: unset;
  }

  .logo img {
    /*max-width: 80%;*/
    /* ลดขนาดบนมือถือ */
    height: 10vh;
  }

  .glass-backdrop {
    top: 19rem;
  }

  .glass-backdrop img {
    width: 50%;
  }

  .glass-backdrop.left {
    left: 0.5rem;
  }

  .glass-backdrop.right {
    right: 0.5rem;
  }

  .character img {
    width: 80%;
  }

  .thunder {
    overflow-x: hidden;
    left: 46vw;
    top: 14rem;
  }

  .thunder img {
    width: 150%;
  }

  .socials a {
    width: 30%;
  }
}