:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #667085;
  --line: #e6e9ef;
  --brand: #f36a2d;
  --brand-dark: #d9501b;
  --cream: #fff7ed;
  --paper: #ffffff;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, #ffe6cc 0 10%, transparent 28%),
    radial-gradient(circle at 90% 20%, #ffe8de 0 8%, transparent 26%),
    #f8f4ed;
}

button, summary { font: inherit; }

.shell {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 18px;
  width: min(100%, 520px);
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom));
}

.card {
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(23, 32, 51, .08);
  border-radius: 28px;
  padding: 24px 22px 22px;
  box-shadow: 0 20px 60px rgba(56, 42, 24, .12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #30394c;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .12em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: white;
  background: var(--brand);
  letter-spacing: 0;
}

.illustration {
  position: relative;
  height: 186px;
  margin: 10px 0 4px;
  display: grid;
  place-items: center;
}

.mascot {
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  border-radius: 38% 44% 42% 46%;
  transform: rotate(-4deg);
  color: white;
  background: var(--brand);
  box-shadow: inset -10px -12px 0 rgba(150, 56, 15, .16);
  font-size: 58px;
  font-weight: 900;
}

.bubble {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  background: white;
  box-shadow: 0 7px 18px rgba(40, 45, 55, .08);
  color: #4c566a;
  font-size: 13px;
  font-weight: 700;
}

.bubble-one { left: 8%; top: 34px; transform: rotate(-7deg); }
.bubble-two { right: 3%; bottom: 25px; transform: rotate(6deg); }

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}

h1 {
  margin: 0;
  font-size: clamp(26px, 7vw, 34px);
  line-height: 1.18;
  letter-spacing: -.03em;
}

.desc {
  margin: 14px 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.entry { min-height: 52px; }

.entry wx-open-launch-weapp { display: block; width: 100%; }

.primary,
.launch-button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  color: white;
  background: var(--brand);
  box-shadow: 0 10px 20px rgba(243, 106, 45, .24);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.primary:active,
.launch-button:active { background: var(--brand-dark); transform: translateY(1px); }

.primary:disabled { cursor: wait; opacity: .7; }

.secondary {
  width: 100%;
  margin-top: 10px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--ink);
  font-weight: 700;
}

.status {
  min-height: 24px;
  margin-top: 13px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
}

.status.error { color: #b42318; }

.help {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  color: var(--muted);
  font-size: 13px;
}

.help summary { cursor: pointer; color: #475467; font-weight: 700; text-align: center; }
.help ol { margin: 12px 0 0; padding-left: 22px; line-height: 1.8; }

footer { color: #8a8f9a; text-align: center; font-size: 12px; }

@media (max-height: 690px) {
  .shell { align-content: start; }
  .illustration { height: 145px; }
  .mascot { width: 92px; height: 92px; font-size: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
