.mh_download_sheet {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(18, 21, 35, 0.62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.mh_download_sheet_open {
  display: flex;
}

.mh_sheet_card {
  width: min(520px, 100%);
  padding: 25px;
  border-radius: 27px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  animation: mh_sheet_up 0.35s ease both;
}

.mh_sheet_head {
  display: flex;
  align-items: center;
  gap: 13px;
}

.mh_sheet_icon {
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #f3e4c3;
  color: var(--mh_orange);
  font-size: 23px;
  font-weight: 900;
}

.mh_sheet_head h2 {
  margin: 0;
  color: var(--mh_navy);
  font-size: 20px;
}

.mh_sheet_head p {
  margin: 4px 0 0;
  color: var(--mh_muted);
  font-size: 11px;
}

.mh_apk_meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.mh_apk_meta div {
  padding: 11px 5px;
  border-radius: 13px;
  background: #f6ebd4;
  text-align: center;
}

.mh_apk_meta small {
  display: block;
  color: var(--mh_muted);
  font-size: 8px;
}

.mh_apk_meta b {
  display: block;
  margin-top: 3px;
  color: var(--mh_navy);
  font-size: 11px;
}

.mh_official_note {
  margin-top: 12px;
  padding: 11px;
  border-radius: 12px;
  background: #eafaf1;
  color: #087a42;
  font-size: 9px;
  font-weight: 800;
}

.mh_confirm_download {
  width: 100%;
  min-height: 54px;
  margin-top: 15px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(110deg, #a8643b, var(--mh_orange2));
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 13px 25px rgba(142, 80, 46, 0.25);
}

.mh_confirm_download:disabled {
  opacity: 0.7;
  cursor: wait;
}

.mh_progress_area {
  display: none;
}

.mh_progress_area_active {
  display: block;
}

.mh_progress_track {
  height: 10px;
  margin: 22px 0 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #eadcb9;
}

.mh_progress_bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mh_orange), #d3aa66);
  transition: width 0.25s ease;
}

/* Progress steps used by the download simulation (0 → 90 in steps of 18, then 100) */
.mh_progress_18 { width: 18%; }
.mh_progress_36 { width: 36%; }
.mh_progress_54 { width: 54%; }
.mh_progress_72 { width: 72%; }
.mh_progress_90 { width: 90%; }
.mh_progress_100 { width: 100%; }

.mh_progress_label {
  display: flex;
  justify-content: space-between;
  color: var(--mh_muted);
  font-size: 10px;
  font-weight: 800;
}

.mh_install_tips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.mh_install_tip {
  padding: 11px 7px;
  border-radius: 13px;
  background: #f9f0dc;
  text-align: center;
  color: #6b3a1f;
  font-size: 9px;
  font-weight: 800;
}

.mh_install_tip b {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  margin: 0 auto 6px;
  border-radius: 8px;
  background: var(--mh_orange);
  color: #fff;
}

.mh_fallback_download {
  display: none;
  margin: 10px 0 0;
  text-align: center;
  color: var(--mh_muted);
  font-size: 9px;
}

.mh_fallback_download_show {
  display: block;
}

.mh_fallback_download a {
  color: var(--mh_orange);
  font-weight: 900;
  text-decoration: underline;
}

.mh_sheet_close {
  width: 100%;
  margin-top: 16px;
  padding: 11px;
  border: 0;
  background: transparent;
  color: var(--mh_muted);
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

@keyframes mh_sheet_up {
  from {
    opacity: 0;
    transform: translateY(35px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 780px) {
  .mh_install_tips {
    gap: 5px;
  }

  .mh_sheet_card {
    padding: 20px 15px;
  }
}
