/**
 * Hiệu năng / CLS: ảnh có width+height trong HTML vẫn co giãn đúng theo CSS gốc.
 */
.home-page img[width][height],
body.sub-page .main img[width][height] {
  height: auto;
  max-width: 100%;
}

/* Nút store (JS có thể đổi src): giữ khung tỷ lệ 556×92 */
.home-page .install-btn #imgInstall {
  width: 100%;
  height: auto;
  max-width: 556px;
  display: block;
}

.home-page .install-inner.highlight-btn {
  display: block;
  min-height: 3.25rem;
}

/* Giảm CLS khu vực nút Google Play / APK trên màn hẹp */
@media (max-width: 640px) {
  .home-page .bg-after .bottom-box {
    min-height: 12.5rem;
  }
}

/* —— Khối tải app gốc (sunvvin.live / style.min.css v7.3.2), scoped .home-page —— */
.home-page .element_btn {
  margin-bottom: 7%;
  padding-bottom: 3%;
  padding-top: 4%;
  position: relative;
}

.home-page .element_btn .line_apps {
  background: linear-gradient(
    90deg,
    rgba(255, 239, 170, 0) 2.57%,
    #ffefaa 51.01%,
    rgba(255, 239, 170, 0) 99.46%
  );
  display: block;
  height: 0.5px;
  left: 0;
  opacity: 0.5;
  position: absolute;
  right: 0;
}

.home-page .element_btn .line_apps_bottom {
  bottom: 0;
  top: auto;
}

.home-page .element_btn > .line_apps:not(.line_apps_bottom) {
  top: 0;
}

.home-page .element_btn .btn_app {
  margin: 0 auto 2%;
  width: 85%;
}

.home-page .element_btn .note_after_real {
  color: #cfb689;
  font-size: 11px;
  text-align: center;
}

.home-page .element_btn .note_install_file,
.home-page .element_btn .note_install_file a {
  color: rgba(207, 182, 137, 0.7);
  font-weight: 400;
}

.home-page .element_btn .note_install_file {
  font-size: 12px;
}

.home-page .element_btn .note_install_file a {
  font-size: 10px;
}

/* JS gộp 2 dòng vào .install-text: dòng 1 = note_after_real, link = note_install_file */
.home-page .element_btn .install-text.note_after_real #openModalGuideApk {
  color: rgba(207, 182, 137, 0.7);
  font-weight: 400;
  font-size: 10px;
  text-decoration: underline;
  cursor: pointer;
}

@media screen and (max-width: 1400px) and (orientation: landscape) {
  .home-page .element_btn .btn_app {
    margin-bottom: 2%;
  }
  .home-page .element_btn .note_after_real {
    font-size: 12px;
  }
}

@media screen and (max-width: 1200px) and (orientation: landscape) {
  .home-page .element_btn .btn_app {
    margin-bottom: 2%;
  }
  .home-page .element_btn {
    margin-bottom: 4%;
    padding-bottom: 3%;
    padding-top: 3%;
  }
}

@media screen and (min-height: 1000px) and (min-width: 575px) and (max-width: 1100px) and (orientation: portrait) {
  .home-page .element_btn .btn_app {
    width: 70%;
  }
  .home-page .element_btn {
    margin-bottom: 4.5%;
    padding-bottom: 3.7%;
  }
  .home-page .element_btn .note_after_real {
    font-size: 17px;
  }
  .home-page .element_btn .note_install_file {
    font-size: 17px;
  }
  .home-page .element_btn .note_install_file a,
  .home-page .element_btn .install-text.note_after_real #openModalGuideApk {
    font-size: 15px;
  }
}

@media (max-width: 575px) {
  .home-page .element_btn .note_after_real {
    font-size: 11.5px;
  }
  .home-page .element_btn .note_install_file {
    font-size: 12px;
  }
  .home-page .element_btn .note_install_file a,
  .home-page .element_btn .install-text.note_after_real #openModalGuideApk {
    font-size: 10px;
  }
}

@media (max-width: 360px) {
  .home-page .element_btn .note_after_real {
    font-size: 9px;
  }
  .home-page .element_btn .note_install_file {
    font-size: 12px;
  }
}

@media screen and (max-height: 520px) and (max-width: 1100px) and (orientation: landscape) {
  .home-page .element_btn .btn_app {
    margin-bottom: 1%;
  }
  .home-page .element_btn {
    padding-bottom: 2%;
  }
  .home-page .element_btn .note_after_real {
    font-size: 8px;
  }
}

@media screen and (max-height: 360px) and (max-width: 1100px) and (orientation: landscape) {
  .home-page .element_btn .btn_app {
    margin-bottom: 0;
  }
  .home-page .element_btn {
    margin-bottom: 3%;
    padding-bottom: 2%;
    padding-top: 2%;
  }
}

@media screen and (max-height: 340px) and (max-width: 1100px) and (orientation: landscape) {
  .home-page .element_btn .note_after_real {
    font-size: 6px;
  }
  .home-page .element_btn .note_install_file {
    font-size: 12px;
  }
  .home-page .element_btn .note_install_file a,
  .home-page .element_btn .install-text.note_after_real #openModalGuideApk {
    font-size: 10px;
  }
}
