:root {
  color-scheme: light;
  --paper: #faf7ef;
  --ink: #563d30;
  --muted: #786350;
  --line: #e8dfd0;
  --accent: #805842;
  --white: #fffdf8;
  font-family: Meiryo, "Yu Gothic", YuGothic, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input, summary { font: inherit; }
button { cursor: pointer; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible + .choice-inner, summary:focus-visible {
  outline: 3px solid #a28158;
  outline-offset: 4px;
}
button:disabled { cursor: default; }
a { color: #6e5138; text-underline-offset: 4px; }
p { margin: 0; line-height: 1.9; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.55; }
h1 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); letter-spacing: .035em; }
h2 { font-size: clamp(1.15rem, 2.5vw, 1.45rem); }
h3 { font-size: 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
[tabindex="-1"]:focus { outline: none; }
.skip-link { position: absolute; top: -80px; left: 16px; z-index: 10; padding: 12px; background: white; }
.skip-link:focus { top: 12px; }
/* Logo, navigation and breakpoints match the current published home header. */
.hdy-site-header { border-bottom: 1px solid #d9cddd; line-height: 1.9; color: #514451; background-color: #f7f2f5; background-image: radial-gradient(ellipse at 95% 0, #d9d5e680, transparent 30%), radial-gradient(ellipse at 0 20%, #ead5df50, transparent 30%); }
.hdy-header-inner { max-width: 1180px; margin: auto; padding: 25px 30px 24px; display: flex; align-items: center; justify-content: space-between; gap: 30px; min-width: 0; }
.hdy-logo { display: flex; align-items: center; gap: 13px; text-decoration: none; color: #765b78; font-family: "Yu Mincho", serif; font-size: 26px; font-weight: 400; letter-spacing: .11em; }
.hdy-logo svg { display: inline-block; width: 28px; height: 28px; flex-shrink: 0; fill: none; stroke: #a27c91; stroke-width: 1.1; transform: rotate(-9deg); }
.hdy-logo small { display: block; font-family: Meiryo, "Hiragino Kaku Gothic ProN", sans-serif; font-size: 11px; letter-spacing: .05em; color: #69576c; margin-top: 7px; }
.hdy-site-header nav { display: flex; align-items: center; gap: 26px; font-family: Meiryo, "Hiragino Kaku Gothic ProN", sans-serif; font-size: 14px; font-weight: 500; }
.hdy-site-header nav a { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid transparent; color: #67586d; font-weight: 700; text-decoration: none; white-space: nowrap; }
.hdy-site-header nav a:hover { color: #93677f; border-bottom-color: #b8879b; }
.hdy-header-search { font-family: Georgia, serif; font-size: 26px; }
.hdy-site-header a:focus-visible { outline-color: #96526d; outline-offset: 5px; }
.diagnosis-tools { max-width: 1060px; margin: auto; padding: 0 32px; text-align: right; }
@media (max-width: 760px) {
  .hdy-header-inner { display: block; padding: 18px 22px 0; }
  .hdy-logo { font-size: 22px; gap: 9px; }
  .hdy-logo svg { width: 22px; height: 22px; }
  .hdy-logo small { font-size: 10px; margin-top: 5px; }
  .hdy-site-header nav { justify-content: center; margin-top: 14px; font-size: 13px; gap: 19px; }
  .hdy-site-header nav a { min-height: 43px; }
}
@media (max-width: 350px) { .hdy-site-header nav { gap: 14px; } }
.header-link { border: 0; background: transparent; color: var(--muted); font-size: 13px; padding: 12px 0 12px 10px; white-space: nowrap; }
#app { max-width: 1060px; margin: 0 auto; padding: 16px 32px 48px; }
.view { animation: arrive .18s ease-out; }
.eyebrow { color: #856546; font-size: 13px; font-weight: bold; letter-spacing: .1em; margin-bottom: 12px; }
.badge { display: inline-block; color: var(--muted); font-size: 12px; border: 1px solid var(--line); border-radius: 20px; padding: 3px 9px; letter-spacing: .07em; }
.intro { text-align: center; max-width: 760px; margin: 0 auto; }
.intro .badge { margin-bottom: 15px; }
.intro-lead { font-size: 15px; margin-top: 14px; color: var(--muted); }
.intro-animals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 12px; margin: 24px 0 22px; }
.intro-animal { min-width: 0; padding: 4px 0; }
.intro-animal .animal { width: 104px; max-width: 100%; margin: 0 auto 4px; }
.animal-name { display: block; font-size: 14px; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
.animal {
  display: block;
  aspect-ratio: 384 / 380;
  width: 160px;
  flex: 0 0 auto;
  background-image: url("./assets/characters-transparent-v4.png");
  background-size: 400% 269.4736842%;
  background-repeat: no-repeat;
}
.animal--cat { aspect-ratio: 400 / 380; background-size: 384% 269.4736842%; background-position: 0% 13.97515528%; }
.animal--hedgehog { background-position: 33.333333% 13.97515528%; clip-path: inset(0 4%); }
.animal--rabbit { background-position: 66.23263889% 13.97515528%; }
.animal--fox { aspect-ratio: 396 / 380; background-size: 387.8787879% 269.4736842%; background-position: 100% 13.97515528%; }
.animal--otter { background-position: 0% 83.07453416%; }
.animal--beaver { background-position: 33.333333% 83.07453416%; }
.animal--wolf { background-position: 66.666667% 83.07453416%; }
.animal--turtle { background-position: 100% 83.07453416%; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 13px 24px; border: 1px solid transparent; border-radius: 14px; font-size: 16px; font-weight: 700; line-height: 1.6; text-decoration: none; transition: background-color .15s, transform .15s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-primary { background: var(--accent); color: #fffaf0; box-shadow: 0 4px 0 #624431; }
.button-primary:hover:not(:disabled) { background: #6d4935; }
.button-primary:disabled { background: #d8cdbd; color: #8b7c6a; box-shadow: none; }
.button-secondary { background: var(--white); color: var(--ink); border-color: var(--line); }
.intro-start { width: min(100%, 350px); }
.intro-meta { margin-top: 14px; font-size: 13px; color: var(--muted); }
.privacy { margin-top: 12px; font-size: 12px; color: var(--muted); }
.science-note { font-size: 13px; color: var(--muted); line-height: 1.9; }
.page-foot { max-width: 760px; margin: 28px auto 0; padding-top: 18px; border-top: 1px solid var(--line); }
.page-foot .science-note { text-align: center; }
.source-details { margin-top: 14px; font-size: 14px; color: var(--muted); }
details > summary { cursor: pointer; padding: 10px 0; line-height: 1.6; }
.source-details > summary { text-align: center; }
.details-body { padding: 8px 0 12px; }
.details-body p + p { margin-top: 10px; }
.source-links { display: grid; gap: 9px; margin-top: 16px; }
.site-return { margin-top: 18px; text-align: center; font-size: 13px; }
.question-view { max-width: 610px; margin: 14px auto 0; }
.question-progress { margin-bottom: 25px; }
.progress-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 12px; color: var(--muted); margin-bottom: 9px; }
.progress-caption strong { font-size: 14px; color: var(--ink); white-space: nowrap; }
progress { appearance: none; -webkit-appearance: none; display: block; border: 0; width: 100%; height: 5px; overflow: hidden; border-radius: 5px; background: #e9dfd0; }
progress::-webkit-progress-bar { background: #e9dfd0; border-radius: 5px; }
progress::-webkit-progress-value { background: #aa8b63; border-radius: 5px; }
progress::-moz-progress-bar { background: #aa8b63; border-radius: 5px; }
.question-title { font-size: clamp(1.35rem, 3.5vw, 1.8rem); line-height: 1.75; }
.question-hint { color: var(--muted); font-size: 14px; margin-top: 12px; }
.answer-set { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.choice { display: block; position: relative; margin-bottom: 9px; cursor: pointer; }
.choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice-inner { display: flex; align-items: center; gap: 15px; min-height: 57px; padding: 13px 19px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); font-size: 16px; line-height: 1.7; transition: border-color .15s, background-color .15s; }
.choice-dot { width: 19px; height: 19px; border: 1px solid #907660; border-radius: 50%; flex: 0 0 auto; background: white; }
.choice input:checked + .choice-inner { background: #f0e8da; border-color: #997752; }
.choice input:checked + .choice-inner .choice-dot { border: 5px solid #8d6b46; }
.choice:hover .choice-inner { border-color: #bba78e; }
.question-actions { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; align-items: center; }
.back-button { min-height: 48px; background: transparent; border: 0; padding: 10px 8px; color: var(--muted); font-size: 14px; }
.question-actions .button { min-width: 190px; }
.question-foot { margin-top: 22px; text-align: center; font-size: 12px; color: var(--muted); }
.result-view { max-width: 790px; margin: 12px auto 0; }
.result-hero { text-align: center; }
.result-intro { color: var(--muted); font-size: 15px; margin: 13px auto 0; max-width: 560px; }
.result-candidates { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 21px 0 10px; }
.candidate { text-align: center; flex: 0 1 180px; padding: 10px; border-radius: 20px; background: color-mix(in srgb, var(--character-color, #d8cabc) 16%, var(--paper)); }
.candidate .animal { width: 138px; max-width: 100%; margin: 0 auto; }
.candidate:only-child { flex-basis: 275px; }
.candidate:only-child .animal { width: 220px; }
.candidate .animal-name { font-size: 14px; }
.candidate-caption { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.result-section { margin-top: 34px; }
.section-lead { font-size: 14px; color: var(--muted); margin-top: 10px; }
.observation-list { display: grid; gap: 12px; margin-top: 16px; }
.observation { padding: 19px 21px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.observation-domain { display: block; color: #806245; font-size: 13px; margin-bottom: 5px; }
.observation p { font-size: 16px; }
.empty-observation { padding: 22px; margin-top: 14px; background: #f1eade; border-radius: 16px; font-size: 14px; }
.evidence-list { margin-top: 13px; }
.evidence-item { border-bottom: 1px solid var(--line); padding: 15px 0; }
.evidence-question { font-size: 15px; line-height: 1.9; }
.evidence-answer { display: block; font-size: 13px; color: var(--muted); margin-top: 5px; }
.evidence-answer strong { color: var(--ink); font-weight: 500; }
.more-evidence { font-size: 14px; color: var(--muted); margin-top: 8px; }
.story-list { display: grid; gap: 18px; margin-top: 17px; }
.story-card { border: 1px solid var(--line); border-radius: 23px; overflow: hidden; background: var(--white); }
.story-heading { display: flex; align-items: center; gap: 18px; padding: 23px 25px 17px; background: color-mix(in srgb, var(--character-color, #d8cabc) 12%, var(--white)); }
.story-heading .animal { width: 100px; }
.story-heading h3 { font-size: 17px; }
.story-tagline { color: var(--muted); font-size: 14px; margin-top: 6px; }
.story-body { padding: 20px 25px 24px; }
.story-description { font-size: 16px; }
.phrase-caption { color: var(--muted); font-size: 13px; margin-top: 16px; }
.phrases { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 7px; }
.phrase { border: 1px solid #e6dbc9; background: #f8f1e5; border-radius: 16px 16px 16px 4px; padding: 8px 12px; font-size: 15px; line-height: 1.6; }
.reflection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 23px; padding-top: 20px; border-top: 1px solid var(--line); }
.reflection-label { display: block; font-size: 13px; color: #806245; font-weight: 700; margin-bottom: 7px; }
.reflection p { font-size: 15px; }
.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 33px; }
.reset-caption { font-size: 12px; text-align: center; color: var(--muted); margin-top: 13px; }
.library-view { max-width: 870px; margin: 10px auto 0; }
.library-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.library-lead { margin: 12px 0 24px; font-size: 15px; color: var(--muted); max-width: 630px; }
.library-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.library-grid .story-heading { padding: 19px 19px 13px; gap: 13px; }
.library-grid .story-heading .animal { width: 86px; }
.library-grid .story-body { padding: 17px 19px 20px; }
.library-grid .story-heading h3 { font-size: 16px; }
.library-grid .reflection-grid { grid-template-columns: 1fr; gap: 12px; }
.library-return { text-align: center; margin-top: 28px; }
.loading-message, .noscript-message { text-align: center; padding: 40px 20px; color: var(--muted); font-size: 14px; }
@keyframes arrive { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
  .diagnosis-tools { padding: 0 20px; }
  .header-link { font-size: 12px; }
  #app { padding: 15px 20px 35px; }
  .intro .badge { margin-bottom: 13px; }
  .intro h1 { font-size: 28px; }
  .intro-lead { font-size: 14px; margin-top: 10px; }
  .intro-animals { gap: 10px 7px; margin: 17px 0 18px; }
  .intro-animal .animal { width: 80px; margin-bottom: 5px; }
  .intro-animal .animal-name { font-size: 12px; line-height: 1.65; min-height: 40px; overflow-wrap: normal; }
  .name-species { display: block; }
  .intro-meta { margin-top: 12px; }
  .privacy { margin-top: 9px; }
  .page-foot { margin-top: 22px; padding-top: 15px; }
  .page-foot .science-note { font-size: 12px; }
  .question-view { margin-top: 7px; }
  .question-progress { margin-bottom: 20px; }
  .question-title { font-size: 21px; }
  .question-hint { font-size: 14px; margin-top: 9px; }
  .answer-set { margin-top: 19px; }
  .choice-inner { min-height: 56px; padding: 12px 15px; font-size: 16px; }
  .choice { margin-bottom: 8px; }
  .question-actions { gap: 10px; margin-top: 19px; }
  .question-actions .button { min-width: 0; padding-inline: 15px; }
  .result-view { margin-top: 5px; }
  .result-hero h1 { font-size: 25px; }
  .result-intro { font-size: 15px; }
  .candidate { flex-basis: 146px; padding: 9px; }
  .candidate .animal { width: 118px; }
  .candidate .animal-name { font-size: 14px; }
  .result-section { margin-top: 28px; }
  .observation { padding: 17px 18px; }
  .observation p { font-size: 16px; }
  .story-heading { padding: 19px 18px 14px; gap: 12px; }
  .story-heading .animal { width: 82px; }
  .story-heading h3 { font-size: 15px; }
  .story-body { padding: 17px 18px 20px; }
  .reflection-grid { grid-template-columns: 1fr; gap: 16px; }
  .result-actions { flex-direction: column; }
  .result-actions .button { width: 100%; }
  .library-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .view { animation: none; }
  .button, .choice-inner { transition: none; }
  .button:hover:not(:disabled) { transform: none; }
}

/* Embedded page: the WordPress parent owns scrolling. */
html,body{min-height:0}body{overflow-x:hidden}
