:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: #162943;
  background: #102238;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; padding: 0; min-height: 100svh; background: radial-gradient(ellipse at top, #26436b, #102238 70%); }
main { margin-inline: auto; width: min(100%, 514px); }
button, textarea { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:focus-visible, textarea:focus-visible { outline: 3px solid #ed9e4b; outline-offset: 3px; }
h2:focus { outline: none; }
#home { position: relative; }
.card { margin: 16px 12px; padding: clamp(17px, 5vw, 27px); background: #fff7eb; border-radius: 22px; box-shadow: 0 14px 36px #07132975; line-height: 1.55; }
h2, h3, p { margin: 0; }
h2 { font-size: clamp(1.35rem, 5vw, 1.9rem); line-height: 1.35; }
h3 { font-size: 1.02rem; margin-top: 18px; }
.eyebrow { margin: 15px 0 5px; color: #315780; font-size: .8rem; font-weight: 750; }
.hint, .progress-label { color: #52637a; font-size: .82rem; }
.hint { margin: 7px 0; }
.progress-label { display: flex; justify-content: space-between; align-items: center; }
.plain { min-height: 44px; border: 0; background: none; color: #315780; font-size: .84rem; padding: 6px; }
progress { display: block; width: 100%; height: 8px; accent-color: #2467aa; }
.options { display: grid; gap: 9px; margin: 15px 0 12px; }
.option { min-height: 50px; display: flex; align-items: center; gap: 9px; text-align: left; border-radius: 12px; padding: 8px 11px; border: 1px solid #bfcde0; color: #162943; background: #fffdf8; }
.option[aria-pressed="true"], .option:hover { background: #e7effa; border-color: #2467aa; }
.option strong { flex: 0 0 25px; color: #24578c; }
.action { min-height: 46px; border-radius: 12px; padding: 8px 12px; font-weight: 750; }
.primary { background: #205e9f; color: #fff; border: 1px solid #205e9f; }
.secondary { background: #fffdf8; color: #203d62; border: 1px solid #bfcde0; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; margin: 12px 0; }
.steps li { text-align: center; border-radius: 8px; background: #e1e9f4; padding: 4px 0; font-size: .8rem; color: #315780; }
.steps .reached { background: #205e9f; color: #fff; }
.steps [aria-current] { outline: 2px solid #ba6a27; outline-offset: 1px; font-weight: bold; }
.summary { margin: 12px 0; }
.bars { padding: 0; list-style: none; display: grid; gap: 9px; }
.bars li { display: grid; grid-template-columns: 5em 1fr 4em; gap: 7px; align-items: center; font-size: .82rem; }
.bars li span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
meter { width: 100%; height: 14px; }
meter::-webkit-meter-optimum-value { background: #2467aa; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
textarea { display: block; width: 100%; min-height: 110px; border: 1px solid #bfcde0; border-radius: 8px; padding: 8px; }

body { background: #101920; }
#home {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
  overflow: hidden;
  padding: max(38px, 9dvh, env(safe-area-inset-top)) max(6.8%, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom));
  color: #fff0d7;
  background: radial-gradient(ellipse at 99% 37%, #2d2721, transparent 65%), #101920;
}
.portrait { position: absolute; z-index: -1; inset: 28% 0 0; overflow: hidden; }
.portrait-crop { position: absolute; top: 42%; width: 100%; aspect-ratio: 852 / 995; transform: translateY(-50%); overflow: hidden; mask-image: linear-gradient(transparent, #000 12%, #000 84%, transparent); }
.portrait-crop img { display: block; width: 100%; height: auto; transform: translateY(-28.5%); }
.hero-copy { text-shadow: 0 3px 16px #101920; }
.hero-copy h1 { margin: 0 0 14px; line-height: 1.17; letter-spacing: -.045em; }
.hero-copy h1 span, .hero-copy h1 strong { display: block; }
.hero-copy h1 span { font-size: clamp(2.05rem, 8.1vw, 2.9rem); font-weight: 680; }
.hero-copy h1 strong { margin-top: 7px; font-size: clamp(2.05rem, 10vw, 3.6rem); font-weight: 850; white-space: nowrap; }
.hero-copy h1 em { color: #ffc16c; font-style: normal; }
.hero-copy p { font-size: clamp(.82rem, 3.6vw, 1.02rem); }
.hero-actions { margin-top: clamp(190px, 46dvh, 510px); text-align: center; }
.hero-actions p { margin-bottom: 10px; font-size: .86rem; }
.hero-actions .action { width: 100%; min-height: 54px; border: 0; border-radius: 999px; background: #ffe9c7; color: #142335; font-size: 1.12rem; }
.hero-actions .action:hover { background: #fff1db; }
.steps { grid-template-columns: repeat(5, 1fr); }
.option.unknown { border-style: dashed; }
@media (max-height: 620px) { #home { padding-top: max(22px, env(safe-area-inset-top)); } }
