:root {
  color-scheme: light;
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: min(0.106269926vw, 1px);
  color: #081b3c;
  background: #f1f7fc;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible { outline: 3px solid #005bd6; outline-offset: 4px; }

.download-page {
  width: 100%;
  max-width: 941px;
  margin: 0 auto;
  overflow: hidden;
  background: #f1f7fc url("./assets/download/page-background.webp") center top / 941rem 1672rem no-repeat;
}

.download-hero, .download-hero img { display: block; width: 100%; height: 455rem; }
.download-hero { position: relative; }
.store-card {
  margin: 0 28rem;
  padding: 20rem 28rem 14rem;
  border-radius: 26rem;
  background: linear-gradient(115deg, rgba(255,255,255,.97), rgba(255,255,255,.7));
}
.store-card h2 { margin: 0 0 0 6rem; font-size: 35rem; font-weight: 700; line-height: 50rem; letter-spacing: .3rem; }
.store-intro { margin: 0 0 9rem 6rem; color: #78869e; font-size: 23rem; line-height: 34rem; }
.platform-row {
  display: flex;
  align-items: center;
  height: 100rem;
  border: 1rem solid #e5edf8;
  border-radius: 23rem;
  padding: 0 13rem 0 0;
  background: rgba(255,255,255,.52);
  overflow: hidden;
}
.platform-row + .platform-row { margin-top: 10rem; height: 99rem; }
.platform-icon { flex: 0 0 120rem; width: 120rem; height: 95rem; object-fit: cover; }
.platform-copy { flex: 1; min-width: 0; margin-left: 19rem; }
.platform-copy h3 { margin: 0; font-size: 28rem; font-weight: 700; line-height: 37rem; }
.platform-copy h3 span { font-size: 26rem; }
.platform-copy p { margin: 0; color: #7c89a0; font-size: 22rem; line-height: 34rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 199rem;
  height: 58rem;
  border: 0;
  border-radius: 23rem;
  color: #fff;
  background: #087dff;
  box-shadow: inset 0 1rem 1rem rgba(255,255,255,.2);
  font-size: 24rem;
  font-weight: 700;
  line-height: 32rem;
  white-space: nowrap;
}
.store-button.unavailable { background: linear-gradient(110deg, #b2bdcf, #aab5c9); }
.store-notice { margin: 12rem 6rem 0; color: #7b87a0; font-size: 20.75rem; line-height: 29rem; }
.store-notice span { font-size: 20rem; letter-spacing: .25rem; }
.official-card {
  position: relative;
  height: 328rem;
  margin: 9rem 29rem 0 30rem;
  overflow: hidden;
  border: 0;
  border-radius: 25rem;
  background: #ec1423 url("./assets/download/official-background.webp") center / 100% 100% no-repeat;
  color: #fff;
  box-shadow: 0 10rem 25rem rgba(223,32,53,.08);
}
.release-version {
  position: absolute;
  top: 104rem;
  left: 215rem;
  max-width: 510rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 72rem;
  font-weight: 700;
  line-height: 82rem;
  letter-spacing: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.release-version:not(:disabled):hover { text-decoration: underline; text-decoration-thickness: 2rem; text-underline-offset: 8rem; }
.release-version:focus-visible { outline-color: #fff; }
.release-version.is-message { font-size: 44rem; }
.release-meta { position: absolute; top: 184rem; left: 216rem; margin: 0; font-size: 23rem; font-weight: 400; line-height: 32rem; }
.official-download {
  position: absolute;
  left: 32rem;
  right: 31rem;
  bottom: 19rem;
  height: 81rem;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 44rem;
  overflow: hidden;
}
.official-download img { display: block; width: 100%; height: 81rem; }
.unavailable-apk { color: #a45258; background: linear-gradient(#fff, #fff2f3); font-size: 32rem; font-weight: 700; }
.features { margin: 17rem 29rem 0; height: 194rem; }
.features img { display: block; width: 100%; height: 194rem; }
.register-link { width: 563rem; height: 82rem; display: block; margin: 16rem 0 0 190rem; border-radius: 46rem; }
.register-link > img { display: block; width: 100%; height: 82rem; }
.download-footer { height: 166rem; margin-top: -1rem; }
.download-footer img { display: block; width: 100%; height: 166rem; }
.configuration-error { display: flex; align-items: center; justify-content: space-between; gap: 15rem; margin: 12rem 30rem; padding: 15rem 20rem; border: 1rem solid #f4bcc1; border-radius: 12rem; background: #fff0f1; font-size: max(20rem, 12px); color: #a12a38; }
.configuration-error p { margin: 0; }
.configuration-error button { flex-shrink: 0; padding: 8px 12px; border: 1px solid #d5919c; border-radius: 8px; color: #a12a38; background: #fff; }
.noscript-notice { margin: 12px; padding: 12px; font-size: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.download-dialog { width: min(520px, calc(100% - 32px)); max-height: min(80vh, 680px); padding: 24px; border: 0; border-radius: 20px; color: #081b3c; font-size: 16px; line-height: 1.65; box-shadow: 0 20px 80px #132b5440; }
.download-dialog::backdrop { background: #0e234980; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-heading h2 { margin: 0; font-size: 21px; line-height: 1.5; }
.dialog-close { padding: 6px 10px; border: 1px solid #dce5f2; border-radius: 8px; color: #556884; background: #f6f9fe; }
.dialog-version { margin: 8px 0 16px; color: #71809a; }
.release-notes { white-space: pre-wrap; overflow-wrap: anywhere; }
.browser-dialog p { margin-bottom: 0; }
