:root {
  color-scheme: dark;
  --paper: #081522;
  --surface: #10283d;
  --ink: #f3f7fc;
  --muted: #b9ccdc;
  --blue: #ffc078;
  --blue-dark: #ffcf99;
  --line: #8db4da40;
  font: 16px/1.65 system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(ellipse at 50% 0%, #1c4665, transparent 75%) var(--paper);
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.mp-screen {
  width: min(100%, 530px);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  padding: calc(22px + env(safe-area-inset-top)) clamp(18px, 6vw, 38px)
    calc(22px + env(safe-area-inset-bottom));
  background: radial-gradient(ellipse at 95% 5%, #265374, transparent 65%), var(--surface);
  box-shadow: 0 14px 55px #f3f7fc14;
}

.mp-brand {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(24px, 5vh, 48px);
}

.mp-lockup, .mp-block-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  letter-spacing: .1em;
}

.mp-logo { display: block; flex: none; border-radius: 11px; }

.mp-eyebrow {
  width: fit-content;
  margin-bottom: 12px;
  border-left: 4px solid #ffc078;
  padding-left: 10px;
  color: var(--blue-dark);
  font-size: .875rem;
  font-weight: 650;
}

.mp-screen h1 {
  margin: 0 0 12px;
  font-size: clamp(2.15rem, 9vw, 3.25rem);
  line-height: 1.14;
  letter-spacing: -.045em;
}

.mp-screen p { color: var(--muted); margin: 0; }
.mp-gap { flex: 1; min-height: 24px; }
.mp-options { display: grid; gap: 12px; }

.mp-option {
  display: block;
  padding: 14px 18px;
  border: 1px solid #7098bb66;
  border-radius: 12px 22px 22px 12px;
  background: #214663;
  color: var(--ink);
}

.mp-option:first-child { background: var(--blue); border-color: var(--blue); color: #25180e; }
.mp-option:hover { background: #2a5677; }
.mp-option:first-child:hover { background: var(--blue-dark); }
.mp-option strong { display: block; font-size: 1.1rem; }
.mp-option small { display: block; margin-top: 3px; font-size: .875rem; }
.mp-entry-note { margin-top: 15px; color: var(--muted); text-align: center; font-size: .875rem; }

.mp-title-line {
  display: block;
  margin-top: 5px;
  color: var(--blue);
  font-size: .62em;
  letter-spacing: 0;
}

.mp-landing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.mp-hero {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  pointer-events: none;
}

.mp-landing::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(180deg, #081522e8 0%, #08152226 31%, #08152200 54%, #081522e8 83%, #081522 100%),
    linear-gradient(90deg, #081522cc, #08152226 60%, transparent);
}

.mp-landing p {
  color: #e0ebf4;
}

.mp-download-area { margin-top: 18px; }

.mp-primary, .mp-backup, .mp-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.mp-primary {
  min-height: 52px;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--blue);
  color: #25180e;
  font-weight: 650;
}

.mp-primary:hover { background: var(--blue-dark); }
.mp-backup { margin-top: 4px; color: var(--blue-dark); font-size: .9rem; }

.mp-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}

.mp-backup:hover, .mp-legal:hover, .document-body a:hover { text-decoration: underline; }

.mp-block {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 22px;
}

.mp-block-card, .document-body main {
  width: min(100%, 720px);
  padding: clamp(20px, 6vw, 38px);
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: 18px;
  background: var(--surface);
}

.mp-block-card { max-width: 420px; }
.mp-block-card h1, .document-body h1 { margin: 18px 0 12px; font-size: 1.6rem; line-height: 1.3; }
.mp-block-card p, .mp-block-card small, .document-body p { color: var(--muted); }
.mp-block-card small { font-size: .875rem; }
.document-body { padding: 24px 14px; }
.document-body main { margin-inline: auto; }
.document-body h1 { margin-top: 0; }
.document-body h2 { font-size: 1.12rem; margin-bottom: 6px; }
.document-body a { color: var(--blue-dark); }

html.mobile-allowed .mp-block,
html:not(.mobile-allowed) .mp-entry,
.is-pending .mp-options { display: none; }
