:root {
  --navy: #344952;
  --milk: #fcfaf5;
  --red: #577384;
  --blue: #b7c6cd;
  --muted: #63716f;
  --line: #d5d6cd;
  --display: "Iowan Old Style", "Songti SC", "Noto Serif CJK SC", STSong, serif;
  --body: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  --utility: "SFMono-Regular", Consolas, monospace;
  color: var(--navy);
  background: var(--milk);
  font-family: var(--body);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; border-top: 5px solid #e7c4aa; }
button, input, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button, .button { cursor: pointer; border: 1px solid var(--red); background: var(--red); color: white; border-radius: 10px; padding: 15px 23px; min-height: 48px; font-size: 16px; font-weight: 600; text-decoration: none; display: inline-block; text-align: center; }
button:disabled { cursor: not-allowed; opacity: .45; }
.secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
a { color: var(--red); text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.skip-link { position: absolute; top: -100px; left: 16px; padding: 14px; background: var(--milk); z-index: 10; }
.skip-link:focus { top: 12px; }
.masthead { max-width: 1200px; padding: 25px 34px; margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; font-family: var(--display); font-size: 25px; font-weight: 600; color: var(--navy); }
.brand-symbol { background: var(--navy); color: var(--milk); width: 40px; height: 48px; display: grid; place-items: center; font: 32px var(--body); border-radius: 50%; }
.brand small { display: block; font: 11px var(--body); letter-spacing: 1px; color: var(--muted); margin-top: 5px; }
.mark { font: 10px/1.5 var(--utility); letter-spacing: 1.5px; }
.mark-line { display: block; width: 28px; height: 3px; background: var(--red); margin-top: 7px; }
main { max-width: 1132px; margin: auto; padding: 18px 0 12px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; }
h1 { font-size: clamp(38px, 4.7vw, 60px); line-height: 1.28; margin: 25px 0; letter-spacing: -.035em; }
h2 { font-size: 30px; line-height: 1.45; }
h3 { font-size: 23px; line-height: 1.6; margin: 20px 0 12px; }
p { line-height: 1.85; }
.kicker { font: 12px/1.7 var(--body); letter-spacing: 2px; color: var(--muted); }
.home { display: grid; grid-template-columns: 1.03fr 1fr; gap: clamp(32px, 5vw, 68px); align-items: center; }
.cover { margin: 0; position: relative; min-width: 0; background: var(--navy); border-radius: 70px 10px 10px 10px; overflow: hidden; }
.cover img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 66% center; display: block; }
.cover figcaption { color: var(--milk); display: flex; justify-content: space-between; gap: 12px; padding: 17px 24px; font-size: 12px; letter-spacing: 1px; border-top: 1px solid #fcfaf540; }
.cover figcaption span:last-child { font-family: var(--utility); color: var(--blue); }
.intro { padding: 12px 0; min-width: 0; }
.intro h1 em { color: var(--red); font-style: normal; }
.intro .lede { font-size: 17px; margin: 20px 0; max-width: 27em; }
.specs { display: flex; gap: 35px; margin: 26px 0; padding: 18px 0; border-block: 1px solid var(--line); }
.specs div { display: flex; align-items: baseline; gap: 7px; }
.specs b { font: 26px var(--utility); }
.specs span { font-size: 12px; color: var(--muted); }
label { display: block; font-size: 14px; margin-bottom: 10px; }
input { width: 100%; min-width: 0; border: 1px solid #8794a4; border-radius: 10px; padding: 15px; background: white; color: var(--navy); text-transform: uppercase; font-size: 16px; }
input::placeholder { color: var(--muted); }
form button { width: 100%; margin-top: 12px; display: flex; justify-content: space-between; align-items: center; }
.muted { color: var(--muted); font-size: 14px; }
.error { color: #b32d25; line-height: 1.6; min-height: 1.6em; font-size: 14px; }
.loading { text-align: center; padding: 100px 16px; }
.quiz { max-width: 780px; margin: 25px auto; background: white; padding: 34px 44px; border: 1px solid var(--line); border-top: 5px solid #e7c4aa; border-radius: 16px; position: relative; }

.progress-head { display: flex; justify-content: space-between; gap: 16px; padding-right: 22px; font-size: 13px; color: var(--muted); }
.progress-head span:last-child { font-family: var(--utility); white-space: nowrap; }
progress { appearance: none; width: 100%; height: 4px; border: 0; background: #e3e8ed; color: var(--red); accent-color: var(--red); margin: 20px 0 10px; }
progress::-webkit-progress-bar { background: #e3e8ed; }
progress::-webkit-progress-value { background: var(--red); }
progress::-moz-progress-bar { background: var(--red); }
.scene { font-size: 27px; line-height: 1.75; margin: 24px 0 30px; letter-spacing: 0; }
.options { display: grid; gap: 12px; }
.option { display: flex; gap: 16px; align-items: flex-start; text-align: left; background: white; color: var(--navy); border: 1px solid var(--line); font-size: 16px; line-height: 1.8; font-weight: 400; padding: 17px 19px; }
.option .letter { flex: none; width: 28px; height: 28px; border: 1px solid var(--line); display: grid; place-items: center; font: 13px var(--utility); }
.option[aria-pressed=true] { background: #eef2f6; border-color: var(--navy); box-shadow: inset 3px 0 var(--navy); }
.option[aria-pressed=true] .letter { color: white; background: var(--navy); border-color: var(--navy); }
.quiz-nav { display: flex; justify-content: space-between; margin-top: 28px; gap: 12px; }
.quiz-nav button { min-width: 110px; }
.report { max-width: 920px; margin: auto; }
.report-top { padding: 26px 0 24px; }
.report-top h1 { font-size: clamp(33px, 4.7vw, 49px); }
.report-top .tagline { font-size: 20px; line-height: 1.85; max-width: 38em; }
.report-hero { width: 100%; height: 240px; object-fit: cover; object-position: center 67%; border-radius: 36px 8px 8px 8px; display: block; margin-top: 25px; }
.profile-index { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.profile-index a { padding: 9px 13px; border: 1px solid var(--line); font-size: 14px; text-decoration: none; color: var(--navy); background: white; }
.profile-index span { font: 12px var(--utility); color: var(--red); margin-right: 8px; }
.report-summary { background: #eef0ec; display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; padding: 20px 25px 26px; gap: 15px; border-top: 3px solid var(--navy); }
.radar { width: 100%; height: auto; display: block; }
.dimension-list { display: grid; gap: 13px; font-size: 14px; }
.dimension-row { padding-bottom: 10px; border-bottom: 1px solid #c5cfda; }
.dimension-row strong { display: flex; justify-content: space-between; font-weight: 500; margin-bottom: 6px; gap: 10px; }
.dimension-row b { font-family: var(--utility); font-weight: 600; }
.dimension-row .ends { display: flex; justify-content: space-between; gap: 8px; }
.dimension-row span { font-size: 11px; color: var(--muted); }
.report-section { background: white; border: 1px solid var(--line); padding: 32px 40px; margin: 24px 0; scroll-margin-top: 20px; }
.report-section > h2 { margin-top: 4px; }
.report-section p { font-size: 17px; margin: 12px 0; }
.report-section .muted { font-size: 14px; }
.report-section blockquote { margin: 20px 0; padding: 16px 23px; border-left: 3px solid var(--blue); background: #f2f5f7; }
.report-section blockquote p { font-size: 15px; }
.report-section .story { font-family: var(--display); font-size: 20px; line-height: 2.1; white-space: pre-line; }
.profile-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 28px; }
.profile-heading h2 { margin: 0; }
.profile-heading .kicker { white-space: nowrap; }
.profile-number { font: 14px var(--utility); color: var(--red); display: block; margin-bottom: 10px; }
.opening { padding: 3px 0 12px; }
.opening .habitat { font-family: var(--display); font-size: 23px; line-height: 1.65; }
.weather { color: var(--muted); font-size: 14px !important; }
.weather span { display: inline-block; margin-right: 12px; color: var(--red); }
.section-label { font: 600 15px/1.7 var(--body); color: var(--red); margin: 30px 0 12px; letter-spacing: .5px; }
.story-frame { border-block: 1px solid var(--line); padding: 0 0 22px; margin: 28px 0; }
.story-frame .section-label { display: flex; justify-content: space-between; gap: 12px; }
.story-frame .section-label span { font: 12px/1.7 var(--utility); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 12px; }
.note { background: var(--navy); color: var(--milk); padding: 23px 25px; line-height: 1.85; margin-top: 28px; border-left: 5px solid var(--red); }
.note strong { font-size: 15px; font-weight: 500; }
.note p { margin-bottom: 0; }
footer { max-width: 1132px; margin: 24px auto 0; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 12px; padding: 24px 20px 36px; line-height: 1.8; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: 90vw; width: max-content; background: var(--navy); color: white; padding: 12px 20px; display: none; z-index: 5; font-size: 14px; }
#toast.show { display: block; }
dialog { width: min(640px, 94vw); max-height: 90dvh; overflow: auto; border: 1px solid var(--line); background: var(--milk); color: var(--navy); padding: 24px; }
dialog::backdrop { background: #344952c4; }
dialog img { width: 100%; height: auto; display: block; margin-bottom: 20px; }
.poster-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.poster-heading h2 { margin: 0; font-size: 25px; }
.poster-heading button { padding: 10px 15px; }
noscript { display: block; padding: 25px; text-align: center; }
.not-found { max-width: 720px; margin: 50px auto; padding: 25px; }
.not-found img { width: 100%; display: block; margin: 30px 0; }
@media (hover: hover) {
  button:not(:disabled):hover, .button:hover { background: #435f70; color: white; }
  .option:not(:disabled):hover { background: #eef2f6; color: var(--navy); border-color: var(--navy); }
  .secondary:not(:disabled):hover { background: var(--navy); }
  .profile-index a:hover { border-color: var(--red); }
}
@media (max-width: 1180px) { main { padding-inline: 28px; } footer { margin-inline: 28px; } }
@media (max-width: 800px) {
  main { padding: 12px 20px; }
  .masthead { padding: 20px; }
  .brand { font-size: 21px; gap: 10px; }
  .brand-symbol { width: 32px; height: 42px; font-size: 27px; }
  .brand small { font-size: 10px; letter-spacing: 0; }
  .mark { font-size: 8px; letter-spacing: 1px; }
  .home { grid-template-columns: 1fr; gap: 30px; }
  .cover { border-radius: 40px 10px 10px 10px; }
  .cover img { height: 245px; aspect-ratio: auto; object-position: center 54%; }
  .cover figcaption { padding: 13px 17px; font-size: 10px; }
  .intro { padding: 0; }
  .intro h1 { font-size: 38px; margin: 15px 0; }
  .intro .lede { font-size: 16px; margin: 17px 0; }
  .specs { gap: 28px; margin: 22px 0; padding: 15px 0; }
  .specs b { font-size: 23px; }
  .quiz { padding: 27px 20px 18px; margin: 10px auto; }
  .progress-head { font-size: 12px; gap: 8px; }
  .scene { font-size: 23px; margin-top: 18px; }
  .option { padding: 14px 12px; font-size: 15px; gap: 12px; }
  .quiz-nav button { font-size: 15px; padding: 14px 18px; }
  .report-top { padding: 10px 0 22px; }
  .report-top h1 { font-size: 34px; }
  .report-top .tagline { font-size: 18px; }
  .report-summary { grid-template-columns: 1fr; padding: 14px 16px 24px; gap: 0; }
  .dimension-list { grid-template-columns: 1fr 1fr; gap: 14px 18px; }
  .dimension-row .ends { display: block; }
  .dimension-row .ends span { display: block; }
  .report-section { padding: 26px 22px; }
  .report-section p { font-size: 16px; }
  .report-section .story { font-size: 19px; }
  .profile-heading { display: block; }
  .profile-heading h2 { font-size: 27px; margin-bottom: 8px; }
  .opening .habitat { font-size: 21px; }
  .report-section blockquote { padding: 13px 16px; }
  .note { padding: 19px; }
  .actions button { flex: 1 1 160px; }
  footer { margin-inline: 20px; }
  .not-found { margin-top: 20px; }
}
@media (max-width: 360px) {
  main { padding-inline: 14px; }
  .masthead { padding-inline: 14px; }
  .mark { display: none; }
  .intro h1 { font-size: 36px; }
  .specs { gap: 18px; }
  .specs div { gap: 5px; }
  .quiz { padding-inline: 16px; }
  .quiz-nav button { min-width: 0; padding-inline: 13px; }
  .report-section { padding-inline: 18px; }
}
@media (prefers-reduced-motion: no-preference) {
  .home { animation: open-page .5s ease-out both; }
  .option { transition: background .15s ease, border-color .15s ease; }
  @keyframes open-page { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
}

.care { background: #efe8db; border-radius: 16px; padding: 24px 28px; margin: 24px 0; }
.care h2 { margin-top: 0; }
.care ul { padding-left: 22px; line-height: 2; }
.spoken { border-left: 3px solid #e7c4aa; padding-left: 18px; }
