.download-prepare.container {
  max-width: 680px;
  padding-top: 34px;
  padding-bottom: 24px;
  min-height: calc(100vh - 218px);
}
.download-back {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #7c8c83;
}
.download-prepare-card {
  padding: 32px 44px 24px;
  text-align: center;
  border: 1px solid #e0e7e2;
  background: #ffffffef;
  border-radius: 20px;
  box-shadow: 0 12px 44px -34px #34524333;
}
.download-status-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  border-radius: 13px;
  background: #fff2f2;
  color: #ad454c;
}
.download-status-icon > svg {
  width: 22px;
  height: 22px;
}
.download-status-icon.is-detecting:after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border: 2px solid transparent;
  border-top-color: #d45257;
  border-radius: 50%;
  animation: download-detect-spin 1s linear infinite;
}
.download-kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #8c9991;
  margin: 0 0 8px;
}
.download-prepare-card h1 {
  font-size: 26px;
  line-height: 1.5;
  letter-spacing: -0.4px;
  margin: 0 0 8px;
  color: #24382f;
}
.download-region-message {
  max-width: 440px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.8;
  color: #819087;
}
.download-countdown {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin: 22px 0 4px;
  padding: 0;
  color: #ad454c;
}
.download-countdown-number {
  display: block;
  min-width: 44px;
  font-size: 64px;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
  color: #ad454c;
}
.download-countdown-copy strong {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
  color: #4a5f52;
}
.download-matched-route {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 10px 0 0;
  font-size: 12px;
  color: #8d9a91;
}
.download-matched-route strong {
  padding: 3px 8px;
  border-radius: 5px;
  background: #fff3f3;
  color: #ad454c;
  font-size: 12px;
  font-weight: 600;
}
.download-progress {
  width: 168px;
  height: 3px;
  margin: 16px auto 24px;
  overflow: hidden;
  background: #f3e6e7;
  border-radius: 3px;
}
.download-progress span {
  display: block;
  height: 100%;
  background: #d98c92;
  border-radius: 3px;
  transition: width 0.25s ease;
}
.download-waiting {
  min-height: 32px;
  max-width: 360px;
  margin: 25px auto 20px;
  font-size: 13px;
  line-height: 1.8;
  color: #819087;
}
.download-prepare-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}
.download-progress + .download-prepare-actions {
  margin-top: 0;
}
.download-prepare-card .download-now,
.download-prepare-card .download-hongkong {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 320px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid #e9c9cb;
  border-radius: 11px;
  background: #fff1f1;
  color: #a83f46;
  font-size: 15px;
  font-weight: 600;
  box-shadow: none;
}
.download-prepare-card .download-now:hover,
.download-prepare-card .download-hongkong:hover {
  background: #ffe9ea;
  border-color: #dfaeb2;
  color: #98363d;
}
.download-prepare-card .download-now[aria-disabled="true"],
.download-prepare-card .download-hongkong[aria-disabled="true"] {
  opacity: .7;
  cursor: wait;
}
.download-direct {
  color: #7e9083;
  font-size: 13px;
  text-underline-offset: 3px;
}
.download-direct:hover { text-decoration: underline; }
.download-direct[aria-disabled="true"] { opacity: .7; cursor: wait; }
.download-package {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 5px 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #edf0ed;
  text-align: left;
}
.download-package strong {
  font-size: 14px;
  line-height: 1.7;
  font-weight: 600;
  color: #4a5f52;
}
.download-package > span {
  font-size: 12px;
  color: #97a39a;
}
.download-package code {
  grid-column: 1/-1;
  width: 100%;
  padding: 0;
  background: transparent;
  font:
    11px/1.8 ui-monospace,
    Consolas,
    monospace;
  color: #9aa59e;
  overflow-wrap: anywhere;
}
.download-help {
  margin: 15px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: #99a39d;
}
.download-help a {
  color: #7e9083;
  text-underline-offset: 3px;
}
.download-help a:hover {
  text-decoration: underline;
}
.download-now:focus-visible,
.download-hongkong:focus-visible {
  outline: 2px solid #d45257;
  outline-offset: 3px;
}
@keyframes download-detect-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 580px) {
  .download-prepare.container {
    padding-top: 18px;
    padding-bottom: 12px;
  }
  .download-back {
    margin-bottom: 8px;
  }
  .download-prepare-card {
    padding: 26px 24px 22px;
    border-radius: 17px;
  }
  .download-prepare-card h1 {
    font-size: 24px;
  }
  .download-region-message {
    font-size: 13px;
  }
  .download-countdown {
    gap: 9px;
    margin-top: 22px;
  }
  .download-countdown-number {
    font-size: 56px;
    min-width: 38px;
  }
  .download-countdown-copy strong {
    font-size: 17px;
  }
  .download-progress {
    margin-bottom: 20px;
  }
  .download-prepare-card .download-now,
.download-prepare-card .download-hongkong {
    max-width: none;
  }
  .download-package {
    margin-top: 19px;
    padding-top: 16px;
  }
  .download-package strong {
    font-size: 13px;
  }
  .download-package code {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .download-status-icon.is-detecting:after {
    animation: none;
  }
  .download-progress span {
    transition: none;
  }
}

.download-prepare-actions .download-hongkong {
  flex-wrap: wrap;
  gap: 0 4px;
  white-space: normal;
  line-height: 1.6;
}
.download-hongkong span {
  white-space: nowrap;
}
