:root {
  color-scheme: light;
  --bg: #f4f5f7;
  --panel: #ffffff;
  --text: #030712;
  --muted: #9ca3af;
  --line: #eeeeee;
  --black: #101010;
  --black-hover: #000000;
  --green: #08c75a;
  --green-hover: #06b550;
  --button-gray: #eeeeee;
  --warning: #9a3412;
  --shadow: 0 24px 56px rgba(16, 24, 40, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.5;
}

button,
a {
  font: inherit;
}

.page {
  min-height: 100vh;
  padding: 82px 16px 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.download-shell {
  width: min(100%, 420px);
  background: var(--panel);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 54px 40px 48px;
  text-align: center;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  width: 104px;
  height: 104px;
  object-fit: contain;
  background: #ffffff;
}

h1 {
  margin: 24px 0 0;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
}

.description {
  margin: 12px 0 0;
  color: #87919f;
  font-size: 15px;
  font-weight: 700;
}

.device-notice {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.actions {
  margin-top: 34px;
  display: grid;
  gap: 13px;
}

.button {
  width: 100%;
  min-height: 55px;
  padding: 13px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-appstore {
  color: #ffffff;
  background: var(--black);
}

.button-appstore:hover {
  background: var(--black-hover);
}

.button-google {
  color: #ffffff;
  background: var(--green);
}

.button-google:hover {
  background: var(--green-hover);
}

.button-apk {
  color: #1f2937;
  background: var(--button-gray);
}

.button-icon {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
  flex: 0 0 auto;
}

.download-mark {
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.button:disabled,
.button.is-disabled {
  color: #9ca3af;
  background: #f1f1f1;
  cursor: not-allowed;
  transform: none;
}

.message {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.message.is-warning {
  color: var(--warning);
}

.qr-panel {
  margin-top: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.qr-canvas {
  width: 102px;
  height: 102px;
  max-width: 100%;
  margin: 0 auto 12px;
  display: block;
  background: #ffffff;
}

.muted {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.stats {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat strong,
.stat span {
  display: block;
}

.stat strong {
  color: #000000;
  font-size: 19px;
  line-height: 1.1;
  font-weight: 900;
}

.stat span {
  margin-top: 6px;
  color: #9aa2ad;
  font-size: 12px;
  font-weight: 800;
}

.footer {
  margin-top: 30px;
  color: #b4bac3;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.footer a,
.footer span {
  color: inherit;
  text-decoration: none;
}

.footer a:hover {
  color: #6b7280;
}

.button[hidden] {
  display: none;
}

.store-list {
  display: none;
}

@media (max-width: 520px) {
  .page {
    min-height: 100svh;
    padding: 34px 14px 34px;
    justify-content: flex-start;
  }

  .download-shell {
    border-radius: 24px;
    padding: 42px 28px 38px;
  }

  h1 {
    font-size: 32px;
  }

  .brand-logo {
    width: 96px;
    height: 96px;
  }

  .button {
    min-height: 54px;
    font-size: 15px;
  }

  .stat strong {
    font-size: 18px;
  }

  .stat span {
    font-size: 11px;
  }
}

  .store-panel {
    padding-top: 0;
  }
}
