:root {
  color-scheme: light;
  font-family: 'Source Sans 3', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  color: #2c201b;
  background: #fff9f2;
  --muted: #65554d;
  --orange: #a73c0d;
  --border: #efddcf;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #55301d; outline-offset: 5px; }
.frame { width: min(1160px, calc(100% - 104px)); margin-inline: auto; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 89px;
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 750; }
.brand img { border-radius: 11px; }
.help-link { display: inline-flex; gap: 7px; align-items: center; min-height: 44px; font-size: 16px; color: var(--muted); }
.help-link span { color: var(--orange); }
.help-link:hover { color: var(--orange); }

.hero {
  display: grid;
  grid-template-columns: 1fr minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(30px, 6vw, 88px);
  padding-block: 60px 50px;
}
.hero-copy { padding-block: 13px 8px; }
.platform {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--orange);
  font-size: 17px;
  font-weight: 700;
}
.platform span { width: 8px; height: 8px; border-radius: 50%; background: #c74d14; }
h1 { margin: 0; font-size: clamp(48px, 6vw, 84px); font-weight: 800; letter-spacing: -.075em; line-height: 1.08; }
h1 span { display: block; margin-top: .12em; color: var(--orange); }
.description { max-width: 23em; margin: 23px 0 28px; color: var(--muted); font-size: clamp(18px, 1.9vw, 21px); line-height: 1.7; }
.download-action { display: flex; flex-wrap: wrap; gap: 10px 15px; align-items: center; }
#downloadAPKBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 65px;
  padding: 0 27px;
  gap: 13px;
  color: #fff;
  background: #a83b0e;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 9px 20px #7d280e2c;
  font-size: 20px;
  font-weight: 750;
  cursor: pointer;
}
#downloadAPKBtn:hover:not(:disabled) { background: #8c2e08; }
#downloadAPKBtn:active:not(:disabled) { transform: translateY(1px); }
#downloadAPKBtn:disabled { background: #a25d3d; cursor: wait; }
.download-icon { position: relative; display: inline-block; width: 21px; height: 18px; border: 2px solid currentColor; border-top: 0; border-radius: 3px; transform: translateY(2px); }
.download-icon::before { content: ''; position: absolute; width: 2px; height: 11px; top: -5px; left: 8px; background: currentColor; }
.download-icon::after { content: ''; position: absolute; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); top: 1px; left: 5px; }
.status { min-height: 1.6em; margin: 11px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.retry { min-height: 44px; border: 0; background: transparent; color: var(--orange); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(380px, 37vw, 500px);
  overflow: hidden;
  isolation: isolate;
  border-radius: 34px;
  background: radial-gradient(ellipse at 49% 38%, #ffe8c9 0%, #f8c495 51%, #f0a475 100%);
}
.art-rings {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 76%;
  aspect-ratio: 1;
  border: 1px solid #ffffffad;
  border-radius: 50%;
  box-shadow: 0 0 0 27px #ffffff29, 0 0 0 58px #ffffff25, 0 0 0 91px #ffffff21;
  transform: translate(-50%, -50%);
}
.phone {
  position: relative;
  z-index: 1;
  width: clamp(177px, 20vw, 235px);
  aspect-ratio: 0.57;
  border-radius: 34px;
  background: #45322a;
  border: 2px solid #735345;
  padding: 7px;
  box-shadow: 16px 23px 46px #6d321b55, 2px 5px 12px #78331655, inset 0 0 0 1px #b18a71;
  transform: rotate(-12deg);
}
.phone-screen {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 25px;
  overflow: hidden;
  background: radial-gradient(ellipse at 58% 34%, #fffdf8 0%, #fff0d9 74%, #f9dec2 100%);
}
.phone-screen img { width: 64%; height: auto; border-radius: 23%; box-shadow: 0 13px 22px #a9542952; }
.phone-camera { position: absolute; top: 12px; left: 50%; width: 33px; height: 10px; border-radius: 30px; background: #49372d; transform: translateX(-50%); }
.phone-home { position: absolute; bottom: 11px; left: 50%; width: 38%; height: 4px; border-radius: 4px; background: #9f7864; transform: translateX(-50%); }

.install { scroll-margin-top: 24px; padding: 28px 0 42px; border-top: 1px solid var(--border); }
.install h2 { margin: 0 0 20px; font-size: clamp(25px, 3vw, 33px); letter-spacing: -.045em; }
.install ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin: 0; padding: 0; list-style: none; }
.install li { display: flex; align-items: flex-start; gap: 13px; padding: 17px 15px; border: 1px solid var(--border); border-radius: 15px; background: #fffdf9; }
.install li > span { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 9px; color: var(--orange); background: #f9e6d5; font-size: 14px; font-weight: 750; }
.install h3 { margin: 2px 0 3px; font-size: 17px; }
.install li p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 15px; }

@media (max-width: 820px) {
  .frame { width: calc(100% - 52px); }
  .hero { gap: 30px; }
  .hero-art { height: 365px; }
  .install li { padding: 13px 10px; gap: 8px; }
}
@media (max-width: 620px) {
  .frame { width: calc(100% - 36px); }
  .site-header { min-height: 70px; }
  .brand { font-size: 17px; gap: 9px; }
  .brand img { width: 36px; height: 36px; border-radius: 9px; }
  .help-link { font-size: 14px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-block: 24px 29px; }
  .hero-copy { padding-block: 4px 0; }
  .platform { margin-bottom: 14px; font-size: 15px; }
  h1 { font-size: clamp(43px, 11vw, 66px); }
  .description { margin-block: 15px 20px; font-size: 17px; }
  #downloadAPKBtn { width: 100%; min-height: 57px; font-size: 19px; }
  .status { margin-top: 8px; }
  .hero-art { height: clamp(210px, 56vw, 320px); border-radius: 22px; }
  .phone { width: clamp(104px, 32vw, 149px); padding: 5px; border-radius: 21px; }
  .phone-screen { border-radius: 15px; }
  .phone-camera { top: 7px; width: 22px; height: 6px; }
  .phone-home { bottom: 8px; height: 3px; }
  .install { padding-top: 24px; }
  .install ol { grid-template-columns: 1fr; gap: 8px; }
  .install li { padding: 12px; gap: 12px; }
}
