:root {
  color-scheme: dark;
  --bg: #020a13;
  --surface: #071724;
  --surface-strong: #0b2031;
  --line: #1c3b51;
  --text: #f4f7fa;
  --muted: #91a4b5;
  --green: #00dd86;
  --green-dark: #006f4b;
  --gold: #e7b84d;
  --danger: #ff6f7e;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  background-image: linear-gradient(rgba(2, 10, 19, 0.72), rgba(2, 10, 19, 0.94)), url('/assets/app-bg.png');
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.page-shell {
  width: min(calc(100% - 32px), 680px);
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 0 max(30px, env(safe-area-inset-bottom));
}

.brand-bar {
  display: flex;
  align-items: center;
  min-height: 56px;
  margin-bottom: 42px;
}

.brand-icon {
  width: 46px;
  height: 46px;
  margin-right: 12px;
  border: 1px solid rgba(231, 184, 77, 0.45);
  border-radius: 8px;
}

.brand-bar div {
  display: grid;
  gap: 2px;
}

.brand-bar strong {
  font-size: 17px;
}

.brand-bar div span {
  color: var(--muted);
  font-size: 12px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(0, 221, 134, 0.7);
}

.install-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  border-radius: 8px;
  background: rgba(7, 23, 36, 0.94);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.app-summary {
  display: flex;
  align-items: center;
  gap: 20px;
}

.app-icon {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(231, 184, 77, 0.55);
  border-radius: 8px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.3);
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--gold) !important;
  font-size: 11px !important;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.08;
}

.app-summary p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.install-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 28px;
  border: 1px solid #12f09a;
  border-radius: 7px;
  color: #00150d;
  background: var(--green);
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 221, 134, 0.16);
}

.install-button:active {
  transform: translateY(1px);
  background: #00c97a;
}

.install-button.is-disabled {
  border-color: #395062;
  color: var(--muted);
  background: #142735;
  box-shadow: none;
}

.device-note {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.steps {
  margin-top: 38px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0;
  font-size: 20px;
}

.section-heading span {
  color: var(--muted);
  font-size: 13px;
}

ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

li {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  min-height: 72px;
  border-bottom: 1px solid rgba(28, 59, 81, 0.7);
  color: #dce6ed;
  line-height: 1.55;
}

li b {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid var(--green-dark);
  border-radius: 50%;
  color: var(--green);
  font-size: 12px;
}

.notice {
  margin-top: 30px;
  padding: 18px 20px;
  border-left: 3px solid var(--gold);
  background: rgba(11, 32, 49, 0.75);
}

.notice strong {
  color: var(--gold);
  font-size: 14px;
}

.notice p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.udid-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-top: 14px;
  padding: 0 14px;
  border: 1px solid var(--green-dark);
  border-radius: 6px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  color: #6f8495;
  font-size: 11px;
}

footer a {
  color: #9ab2c4;
  text-underline-offset: 3px;
}

@media (max-width: 520px) {
  .page-shell {
    width: min(calc(100% - 24px), 680px);
  }

  .brand-bar {
    margin-bottom: 28px;
  }

  .install-panel {
    padding: 22px 18px;
  }

  .app-summary {
    gap: 15px;
  }

  .app-icon {
    width: 76px;
    height: 76px;
  }

  h1 {
    font-size: 29px;
  }

  .app-summary p:not(.eyebrow) {
    font-size: 12px;
  }

  footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .install-button {
    transition: background-color 160ms ease, transform 160ms ease;
  }
}
