:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #25324a;
  background: #f4f7fc;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  background: radial-gradient(ellipse at 50% 5%, #e9f0ff 0, transparent 55%);
}
.site-header {
  display: flex;
  align-items: center;
  gap: 11px;
  width: min(100%, 1040px);
  margin: 0 auto;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .02em;
}
.site-header img { display: block; }
main {
  display: grid;
  flex: 1;
  place-items: center;
  padding: 56px 0;
}
.status-card {
  width: min(100%, 480px);
  padding: 42px 32px 28px;
  text-align: center;
  background: #fff;
  border: 1px solid #e7edf6;
  border-radius: 28px;
  box-shadow: 0 12px 60px #24476b08;
}
.status-icon {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 28px;
  border-radius: 25px;
  color: #5878bc;
  background: #edf3ff;
}
.eyebrow { margin: 0 0 10px; color: #65738a; font-size: 13px; letter-spacing: .12em; }
h1 { margin: 0; font-size: clamp(23px, 5.8vw, 28px); line-height: 1.5; font-weight: 650; letter-spacing: -.025em; }
.description { margin: 16px 0 30px; color: #67758b; font-size: 15px; line-height: 1.9; }
.help-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 15px;
  border-radius: 13px;
  background: #f7f9fc;
  text-align: left;
  color: #64718a;
}
.help-note svg { flex-shrink: 0; margin-top: 1px; }
.help-note p { margin: 0; font-size: 13px; line-height: 1.7; }
footer { text-align: center; color: #68758a; font-size: 12px; letter-spacing: .04em; }
@media (max-width: 380px) {
  .page { padding-left: 18px; padding-right: 18px; }
  .status-card { padding: 34px 20px 22px; border-radius: 24px; }
  main { padding: 36px 0; }
}
.download-actions { margin: 0 0 24px; }
.download-actions:empty { display: none; }
.download-actions button { width: 100%; min-height: 48px; border: 0; border-radius: 14px; background: #3766c7; color: #fff; font: inherit; font-weight: 600; cursor: pointer; padding: 12px 18px; }
.download-actions button:disabled { cursor: wait; opacity: .6; }
h1, .description { overflow-wrap: anywhere; }

.status-icon { position: relative; overflow: hidden; }
.status-icon img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.status-icon.has-app-icon { background: transparent; }
.app-icon-fallback { font-size: 18px; font-weight: 700; letter-spacing: .06em; }

.qr-section { margin: 0 0 16px; }
.qr-section svg { display: block; width: min(224px, 100%); height: auto; margin: 0 auto; }
.qr-caption { margin: 8px 0 16px; color: #67758b; font-size: 13px; }
.share-link { display: block; width: 100%; padding: 10px 12px; border: 1px solid #dce5f2; border-radius: 10px; background: #f7f9fc; color: #3e5274; font: inherit; font-size: 12px; }
.browser-menu-hint { margin: 0 0 18px; padding: 14px; border-radius: 12px; background: #213757ed; color: white; font-size: 14px; line-height: 1.6; }

.browser-menu-hint p { margin: 0 0 10px; }
.download-actions .browser-guide-reopen { background: #fff; color: #28466f; min-height: 42px; font-size: 13px; }
.browser-guide { position: fixed; top: max(16px, env(safe-area-inset-top)); right: max(20px, env(safe-area-inset-right)); bottom: auto; left: auto; margin: 0; width: min(340px, calc(100vw - 40px)); max-height: calc(100dvh - 48px); overflow: auto; padding: 0 8px 24px; border: 0; background: transparent; color: #fff; text-align: right; }
.browser-guide::backdrop { background: rgb(12 23 41 / 78%); }
.browser-guide-arrow { font-size: 76px; line-height: 1.15; margin: 0 2px 8px 0; }
.browser-guide h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.5; }
.browser-guide p { margin: 0 0 22px; font-size: 15px; line-height: 1.85; text-align: left; }
.browser-guide button { padding: 11px 30px; min-height: 44px; border: 1px solid #fff; border-radius: 12px; background: #fff; color: #253b5c; font: inherit; font-weight: 600; cursor: pointer; }
.browser-guide button:focus-visible { outline: 3px solid #85b7ff; outline-offset: 4px; }

/* Shared entry link: ordinary landing pages do not load helper.css. */
.helper-link { display:inline-block; margin-top:20px; color:#42649b; text-decoration:none; font-size:13px; }
.helper-link:hover { text-decoration:underline; }
