:root {
  --paper: #f7f4ee;
  --paper-deep: #eee9df;
  --white: #fffefa;
  --ink: #23303d;
  --muted: #65717b;
  --navy: #18384f;
  --navy-deep: #102b3d;
  --teal: #16766d;
  --teal-soft: #dcece7;
  --orange: #e88849;
  --orange-soft: #f7e7d8;
  --line: #d9d8d2;
  --focus: #0b6cbd;
  --shadow: 0 18px 50px rgba(22, 44, 59, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}

a {
  text-decoration: none;
}

footer a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  transform: translateY(-150%);
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 0.4rem;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.site-shell > main {
  flex: 1;
}

.page-container {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.narrow-container {
  width: min(820px, calc(100% - 2rem));
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.4;
}

.hero-section {
  position: relative;
  padding: 4.5rem 0 5rem;
  background:
    radial-gradient(circle at 85% 20%, rgba(22, 118, 109, 0.08), transparent 32%),
    var(--paper);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--line);
}

.hero-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

.hero-title {
  max-width: 760px;
  margin: 0;
  color: var(--navy-deep);
  font-size: clamp(2.3rem, 9vw, 5rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.22;
}

.hero-title span {
  position: relative;
  color: var(--teal);
  white-space: nowrap;
}

.hero-title span::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.16em;
  left: 0;
  height: 0.1em;
  background: var(--orange);
}

.hero-lead {
  max-width: 650px;
  margin: 2rem 0 0;
  color: #4b5a66;
  font-size: clamp(1rem, 2.3vw, 1.18rem);
  line-height: 2;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
  margin-top: 2.25rem;
}

.text-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--navy);
  font-weight: 700;
}

.text-link span {
  color: var(--orange);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 540px;
  margin: 2.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.hero-facts div {
  padding: 0 0.7rem;
  border-right: 1px solid var(--line);
}

.hero-facts div:first-child {
  padding-left: 0;
}

.hero-facts div:last-child {
  border-right: 0;
}

.hero-facts dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-facts dd {
  margin: 0.2rem 0 0;
  color: var(--navy-deep);
  font-size: clamp(0.92rem, 2.5vw, 1.12rem);
  font-weight: 800;
}

.hero-visual {
  position: relative;
  min-height: 390px;
}

.hero-orbit {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(86vw, 420px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border: 1px solid rgba(24, 56, 79, 0.2);
  border-radius: 50%;
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  inset: 17%;
  border: 1px dashed rgba(22, 118, 109, 0.25);
  border-radius: 50%;
}

.hero-orbit::after {
  inset: 38%;
  background: var(--navy);
  border: 0;
}

.orbit-label {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 82px;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-align: center;
}

.orbit-animal {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(24, 56, 79, 0.1);
  font-size: 1.8rem;
}

.orbit-animal-1 { top: -5%; left: 42%; }
.orbit-animal-2 { top: 11%; right: 4%; }
.orbit-animal-3 { top: 43%; right: -6%; }
.orbit-animal-4 { right: 10%; bottom: 6%; }
.orbit-animal-5 { bottom: -5%; left: 42%; }
.orbit-animal-6 { bottom: 9%; left: 5%; }
.orbit-animal-7 { top: 43%; left: -6%; }
.orbit-animal-8 { top: 10%; left: 8%; }

.hero-note {
  position: absolute;
  z-index: 4;
  right: max(0px, calc(50% - 230px));
  bottom: -0.5rem;
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding: 0.85rem 1.1rem;
  background: var(--white);
  border-left: 3px solid var(--orange);
  box-shadow: var(--shadow);
}

.hero-note-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--orange-soft);
  color: #a64d1f;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-weight: 800;
}

.hero-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.hero-note strong {
  color: var(--navy-deep);
}

.section-block {
  padding: 5.5rem 0;
}

.section-heading {
  margin-bottom: 2.5rem;
}

.section-heading h2,
.cta-section h2,
.answer-guide-section h2 {
  margin: 0;
  color: var(--navy-deep);
  font-size: clamp(1.8rem, 6vw, 3.25rem);
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.section-heading > p,
.section-heading div + p {
  color: var(--muted);
  line-height: 2;
}

.centered-heading {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.insight-grid {
  display: grid;
  gap: 1rem;
}

.insight-card {
  padding: 2rem;
  background: var(--white);
  border-top: 3px solid var(--teal);
  box-shadow: 0 10px 30px rgba(20, 50, 68, 0.05);
}

.insight-card > span {
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.insight-card h3 {
  margin: 1.25rem 0 0.7rem;
  color: var(--navy-deep);
  font-size: 1.25rem;
}

.insight-card p {
  margin: 0;
  color: var(--muted);
}

.attribute-section {
  background: var(--paper-deep);
}

.attribute-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.attribute-card {
  min-width: 0;
  padding: 1.25rem 0.8rem;
  background: rgba(255, 254, 250, 0.8);
  border: 1px solid rgba(24, 56, 79, 0.08);
  text-align: center;
}

.attribute-icon {
  font-size: 1.7rem;
}

.attribute-card p,
.attribute-card h3,
.attribute-card span {
  overflow-wrap: anywhere;
}

.attribute-card p {
  margin: 0.65rem 0 0;
  color: var(--teal);
  font-size: 0.73rem;
  font-weight: 750;
}

.attribute-card h3 {
  margin: 0.1rem 0;
  color: var(--navy-deep);
  font-size: 0.92rem;
}

.attribute-card div > span {
  color: var(--muted);
  font-size: 0.68rem;
}

.animal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.cta-section {
  padding: 4rem 0;
  background: var(--navy);
  color: white;
}

.cta-section h2 {
  color: white;
}

.cta-section p:not(.eyebrow) {
  max-width: 640px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.light-eyebrow {
  color: #8ed0c8;
}

.cta-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.notice-section {
  padding: 2.5rem 0 4rem;
}

.notice-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.notice-icon {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-weight: 700;
}

.notice-card h2 {
  margin: 0 0 0.35rem;
  color: var(--navy-deep);
  font-size: 1rem;
}

.notice-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.page-hero {
  padding: 5.5rem 0;
  background: var(--navy);
  color: white;
}

.page-hero .eyebrow {
  color: #8ed0c8;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 9vw, 5rem);
  letter-spacing: -0.045em;
  line-height: 1.25;
}

.page-hero p:last-child {
  max-width: 680px;
  margin: 2rem 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.05rem;
}

.axes-grid {
  display: grid;
  gap: 1rem;
}

.axis-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
}

.axis-card header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
  align-items: center;
  padding: 1.4rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.axis-card header span {
  color: var(--teal);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.axis-card header h3 {
  margin: 0;
  color: var(--navy-deep);
  font-size: 1.25rem;
}

.axis-card header b {
  grid-row: 1 / 3;
  grid-column: 2;
  color: var(--paper-deep);
  font-family: Georgia, serif;
  font-size: 1.8rem;
}

.axis-poles {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 1.5rem;
}

.axis-poles > div > span {
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 1.55rem;
  font-weight: 800;
}

.axis-poles h4 {
  margin: 0.3rem 0;
  color: var(--navy-deep);
}

.axis-poles p {
  margin: 0;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.65;
}

.axis-divider {
  color: var(--teal);
  font-size: 1.1rem;
}

.attribute-detail-grid {
  display: grid;
  gap: 1rem;
}

.attribute-detail-grid article {
  padding: 1.6rem;
  background: rgba(255, 254, 250, 0.8);
  border-left: 3px solid var(--teal);
}

.attribute-detail-grid article > span {
  font-size: 2rem;
}

.attribute-detail-grid article > p:first-of-type {
  margin: 0.8rem 0 0;
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 800;
}

.attribute-detail-grid h3 {
  margin: 0.2rem 0;
  color: var(--navy-deep);
}

.attribute-detail-grid article > p:last-child {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.type-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.type-index > div {
  display: flex;
  min-width: 0;
  gap: 0.7rem;
  align-items: center;
  padding: 0.9rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.type-index > div > span {
  font-size: 1.6rem;
}

.type-index strong,
.type-index small {
  display: block;
}

.type-index strong {
  color: var(--navy-deep);
  font-size: 0.9rem;
}

.type-index small {
  color: var(--muted);
  font-size: 0.66rem;
}

.answer-guide-section {
  padding: 5rem 0;
  background: var(--white);
}

.answer-guide-grid {
  display: grid;
  gap: 3rem;
}

.answer-guide-list {
  display: grid;
  gap: 1.5rem;
}

.answer-guide-list > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.answer-guide-list span {
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.answer-guide-list p {
  margin: 0;
  color: var(--muted);
}

.answer-guide-list strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--navy-deep);
}

.diagnosis-shell {
  min-height: calc(100vh - 150px);
  padding: 2.5rem 0 5rem;
  background:
    linear-gradient(rgba(24, 56, 79, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 56, 79, 0.03) 1px, transparent 1px),
    var(--paper);
  background-size: 40px 40px;
}

.diagnosis-page,
.diagnosis-loading,
.diagnosis-error {
  width: min(820px, calc(100% - 2rem));
  margin-inline: auto;
}

.diagnosis-topline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.diagnosis-topline .eyebrow {
  margin-bottom: 0.25rem;
}

.diagnosis-topline h1 {
  margin: 0;
  color: var(--navy-deep);
  font-size: 1.35rem;
}

.reset-button,
.back-button {
  min-height: 44px;
  padding: 0.5rem 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  cursor: pointer;
}

.sample-notice {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 1.4rem;
  padding: 0.9rem 1rem;
  background: #fff7e9;
  border-left: 3px solid var(--orange);
  color: #725238;
  font-size: 0.78rem;
  line-height: 1.6;
}

.sample-notice strong {
  color: #9b4c20;
}

.diagnosis-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
  margin-top: 1.5rem;
}

.back-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.diagnosis-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.diagnosis-loading,
.diagnosis-error {
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.loading-dot {
  width: 38px;
  height: 38px;
  border: 4px solid var(--teal-soft);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.diagnosis-error > span {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  color: #a64d1f;
  background: var(--orange-soft);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 1.6rem;
  font-weight: 800;
}

.diagnosis-error h1 {
  margin: 1.2rem 0 0;
  color: var(--navy-deep);
}

.diagnosis-error p {
  color: var(--muted);
}

.diagnosis-error button {
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  color: white;
  background: var(--navy);
  border: 0;
  cursor: pointer;
}

.result-shell {
  background: var(--paper);
}

.result-hero {
  position: relative;
  padding: 4.5rem 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.08), transparent 30%),
    var(--navy);
}

.result-hero::after {
  content: "";
  position: absolute;
  right: 6%;
  bottom: -38px;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(232, 136, 73, 0.5);
  border-radius: 50%;
}

.result-hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.result-hero-copy .eyebrow {
  color: #8ed0c8;
}

.result-kicker {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.result-hero-copy h1 {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin: 0.4rem 0 0;
  color: white;
  font-size: clamp(3rem, 14vw, 6.5rem);
  letter-spacing: -0.055em;
  line-height: 1.15;
}

.result-hero-copy h1 span {
  font-size: 0.72em;
}

.result-code {
  margin: 0.75rem 0 0;
  color: #8ed0c8;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.result-catchphrase {
  max-width: 600px;
  margin: 1.5rem 0 0;
  padding-left: 1rem;
  color: white;
  border-left: 3px solid var(--orange);
  font-size: 1.08rem;
  font-weight: 700;
}

.result-content {
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.result-source-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  margin-bottom: 3.5rem;
  padding: 1.2rem;
  background: #fff7e9;
  border: 1px solid #eed4b7;
}

.result-source-notice > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #9b4c20;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-weight: 800;
}

.result-source-notice strong {
  color: #783b1c;
}

.result-source-notice p {
  margin: 0.25rem 0 0;
  color: #725238;
  font-size: 0.82rem;
  line-height: 1.75;
}

.result-heading {
  max-width: 760px;
}

.result-heading > p:last-child {
  margin-top: 1rem;
}

.axis-result-grid,
.result-sections-grid {
  display: grid;
  gap: 1rem;
}

.result-sections-grid {
  margin-top: 4rem;
}

.result-sections-grid p {
  margin: 0;
  color: var(--muted);
}

.result-attribute-name {
  color: var(--teal) !important;
  font-size: 0.8rem;
  font-weight: 800;
}

.result-sections-grid h3 {
  margin: 0.15rem 0 0.8rem;
  color: var(--navy-deep);
  font-size: 1.45rem;
}

.result-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.result-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--muted);
}

.result-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
}

.share-result-card {
  display: grid;
  gap: 2rem;
  margin-top: 4rem;
  padding: 2rem;
  background: var(--white);
  border-top: 4px solid var(--orange);
  box-shadow: var(--shadow);
}

.share-result-card h2 {
  margin: 0;
  color: var(--navy-deep);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.4;
}

.share-result-card > div:first-child > p:last-child {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: stretch;
  margin-top: 2.5rem;
}

.result-actions button,
.result-actions a,
.missing-result-card > a,
.missing-result-card > button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  font-weight: 800;
  cursor: pointer;
}

.result-actions button,
.missing-result-card > a,
.missing-result-card > button {
  color: white;
  background: var(--navy);
  border: 2px solid var(--navy);
}

.result-actions a {
  color: var(--navy);
  background: transparent;
  border: 2px solid var(--navy);
}

.result-loading,
.missing-result-card {
  width: min(720px, calc(100% - 2rem));
  min-height: 520px;
  margin-inline: auto;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.missing-result-card {
  padding-block: 5rem;
}

.missing-result-card > span:first-child {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 1.8rem;
  font-weight: 800;
}

.missing-result-card .eyebrow {
  margin: 1.5rem 0 0.6rem;
}

.missing-result-card h1 {
  margin: 0;
  color: var(--navy-deep);
  font-size: clamp(1.8rem, 6vw, 2.8rem);
}

.missing-result-card > p:not(.eyebrow) {
  max-width: 540px;
  margin: 1rem 0 2rem;
  color: var(--muted);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (min-width: 640px) {
  .page-container {
    width: min(1180px, calc(100% - 3.5rem));
  }

  .hero-actions {
    flex-direction: row;
    align-items: center;
  }

  .attribute-grid,
  .animal-grid,
  .type-index {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .attribute-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diagnosis-topline {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .diagnosis-actions {
    flex-direction: row;
    justify-content: space-between;
  }

  .result-actions {
    flex-direction: row;
    justify-content: center;
  }

  .result-actions button,
  .result-actions a {
    min-width: 210px;
  }
}

@media (min-width: 880px) {
  .hero-section {
    padding: 6.5rem 0 7rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
    gap: 2rem;
  }

  .hero-visual {
    min-height: 480px;
  }

  .hero-orbit {
    top: 20px;
    width: min(34vw, 430px);
  }

  .hero-note {
    bottom: 1rem;
  }

  .split-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 4rem;
    align-items: end;
  }

  .split-heading > p {
    margin: 0;
  }

  .insight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .attribute-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .animal-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cta-inner,
  .answer-guide-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
    gap: 5rem;
  }

  .axes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .type-index {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .result-hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  }

  .axis-result-grid,
  .result-sections-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-sections-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .share-result-card {
    grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
    align-items: center;
    padding: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Character-led visual system */
.character-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 24%, rgba(232, 136, 73, 0.14), transparent 26%),
    radial-gradient(circle at 91% 72%, rgba(22, 118, 109, 0.12), transparent 24%),
    linear-gradient(135deg, #fbf8f0 0%, #f3eee3 100%);
}

.hero-stamp {
  display: inline-flex;
  margin: 0 0 1rem;
  padding: 0.35rem 0.8rem;
  color: #70401f;
  background: #fff0e4;
  border: 1px dashed rgba(168, 72, 24, 0.35);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  transform: rotate(-1deg);
}

.character-hero .hero-title {
  font-size: clamp(2.45rem, 9vw, 5rem);
}

.character-hero .hero-title span {
  display: block;
  width: fit-content;
}

.character-stage {
  isolation: isolate;
  min-height: 430px;
}

.stage-backdrop {
  position: absolute;
  z-index: -1;
  inset: 7% 1% 3% 7%;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.96), transparent 42%),
    #dfece6;
  border: 1px solid rgba(23, 50, 77, 0.11);
  border-radius: 48% 52% 46% 54% / 54% 42% 58% 46%;
  transform: rotate(2deg);
}

.stage-backdrop span {
  position: absolute;
  color: rgba(23, 50, 77, 0.13);
  font-family: Georgia, serif;
  font-size: clamp(1rem, 4vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.stage-backdrop span:nth-child(1) { top: 10%; left: 9%; }
.stage-backdrop span:nth-child(2) { top: 25%; right: 7%; transform: rotate(9deg); }
.stage-backdrop span:nth-child(3) { right: 10%; bottom: 10%; transform: rotate(-8deg); }

.hero-character {
  position: absolute;
  transform-origin: 50% 100%;
}

.hero-character figure {
  border-color: rgba(23, 50, 77, 0.14);
  box-shadow: 0 16px 40px rgba(23, 50, 77, 0.14);
}

.hero-character-1 { z-index: 5; bottom: 0; left: 2%; width: 47%; transform: rotate(-4deg); }
.hero-character-2 { z-index: 4; right: 1%; bottom: 2%; width: 43%; transform: rotate(4deg); }
.hero-character-3 { z-index: 2; top: 5%; left: 30%; width: 37%; transform: rotate(2deg); }
.hero-character-4 { z-index: 3; top: 18%; left: 1%; width: 33%; transform: rotate(-7deg); }
.hero-character-5 { z-index: 1; top: 7%; right: 3%; width: 32%; transform: rotate(7deg); }
.hero-character-1,
.hero-character-4 { animation: character-float 5s ease-in-out infinite; }
.hero-character-4 { animation-delay: -2.2s; }

.hero-character-count {
  position: absolute;
  z-index: 7;
  right: 4%;
  bottom: 1%;
  display: grid;
  min-width: 150px;
  padding: 0.75rem 1rem;
  background: rgba(255, 254, 250, 0.96);
  border: 1px solid rgba(23, 50, 77, 0.12);
  border-radius: 1.1rem;
  box-shadow: 0 10px 30px rgba(23, 50, 77, 0.12);
}

.hero-mini-paws {
  color: var(--orange);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
}

.hero-character-count strong { color: var(--navy-deep); font-size: 1.25rem; }
.hero-character-count small { color: var(--muted); font-size: 0.68rem; }

@keyframes character-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

.discovery-section {
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(23, 50, 77, 0.025) 50%, transparent 50.2%),
    var(--paper);
}

.animals-section {
  background: #ece7dc;
  scroll-margin-top: 5rem;
}

.animal-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.type-index > div {
  align-items: center;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.type-index > div > figure {
  width: 58px;
  height: 58px;
  padding: 0.2rem;
  border-radius: 0.8rem;
  box-shadow: none;
}

.type-index small {
  line-height: 1.35;
}

/* Neutral character cues on the questionnaire, without suggesting a type. */
.diagnosis-shell {
  position: relative;
  overflow: hidden;
}

.diagnosis-page {
  position: relative;
  z-index: 1;
}

.diagnosis-paw-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.diagnosis-paw-field span {
  position: absolute;
  color: rgba(23, 50, 77, 0.05);
  font-size: clamp(2.5rem, 10vw, 6rem);
  transform: rotate(24deg) scaleX(0.72);
}

.diagnosis-paw-field span:nth-child(1) { top: 5%; left: -1%; }
.diagnosis-paw-field span:nth-child(2) { top: 32%; right: 1%; }
.diagnosis-paw-field span:nth-child(3) { bottom: 20%; left: 3%; }
.diagnosis-paw-field span:nth-child(4) { right: 8%; bottom: 4%; }

.diagnosis-topline-note {
  max-width: 520px;
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.diagnosis-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.diagnosis-topline .reset-button {
  grid-column: 1 / -1;
  justify-self: start;
}

.mystery-animal-card {
  display: grid;
  width: 82px;
  height: 92px;
  flex: 0 0 auto;
  place-items: center;
  align-content: center;
  background: #fffefa;
  border: 1px dashed rgba(23, 50, 77, 0.32);
  border-radius: 1.2rem;
  box-shadow: 0 10px 28px rgba(23, 50, 77, 0.08);
  transform: rotate(3deg);
}

.mystery-animal-card span {
  color: rgba(23, 50, 77, 0.35);
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 900;
}

.mystery-animal-card small {
  color: var(--muted);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.reveal-shell {
  display: grid;
  place-items: center;
  padding-inline: 1rem;
}

/* Result page: an illustrated field notebook rather than a trading card. */
.result-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(232, 136, 73, 0.15), transparent 25%),
    radial-gradient(circle at 84% 75%, rgba(22, 118, 109, 0.13), transparent 28%),
    #efeade;
}

.result-hero::after {
  border-color: rgba(23, 50, 77, 0.16);
}

.result-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.result-pattern span {
  position: absolute;
  color: rgba(23, 50, 77, 0.08);
  font-size: clamp(2rem, 8vw, 6rem);
  font-weight: 900;
}

.result-pattern span:nth-child(1) { top: 9%; left: 4%; }
.result-pattern span:nth-child(2) { right: 8%; top: 12%; }
.result-pattern span:nth-child(3) { left: 36%; bottom: 4%; transform: rotate(-12deg); }
.result-pattern span:nth-child(4) { right: 3%; bottom: 5%; }

.result-hero-grid {
  position: relative;
  z-index: 1;
}

.result-hero-copy .eyebrow { color: var(--teal); }
.result-kicker { color: #536169; }
.result-hero-copy h1 {
  color: var(--navy-deep);
  font-size: clamp(3rem, 8vw, 4.6rem);
  white-space: nowrap;
  word-break: keep-all;
}
.result-code {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.35rem 0.75rem;
  color: white;
  background: var(--navy);
  border-radius: 999px;
}

.result-work-style {
  max-width: 540px;
  margin: 1.4rem 0 0;
  padding-left: 1rem;
  color: #70401f;
  border-left: 3px solid var(--orange);
  font-weight: 750;
}

.work-style-panel {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 4rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1.65rem;
  box-shadow: var(--shadow);
}

.work-style-label {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  color: var(--teal);
}

.work-style-label span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  background: var(--teal-soft);
  border-radius: 50%;
  font-size: 1.25rem;
}

.work-style-label small { font-size: 0.65rem; font-weight: 900; letter-spacing: 0.12em; }
.work-style-panel h2 { margin: 0; color: var(--navy-deep); font-size: clamp(1.35rem, 4vw, 2rem); }
.work-style-panel p { margin: 0.5rem 0 0; color: var(--muted); }
.work-style-panel .visual-motif { font-size: 0.82rem; }
.work-style-panel ul { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.work-style-panel li { padding: 0.4rem 0.8rem; color: #70401f; background: #fff0e4; border: 1px solid rgba(168, 72, 24, 0.14); border-radius: 999px; font-size: 0.78rem; font-weight: 800; }

.axis-results { margin-bottom: 3rem; }

.radar-disclaimer {
  margin: 1rem 0 3.5rem;
  padding: 0.9rem 1rem;
  color: #70401f;
  background: #fff7e9;
  border-left: 3px solid var(--orange);
  font-size: 0.82rem;
}

.share-result-card {
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: 1.65rem;
}

.share-character-preview {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px dashed var(--line);
}

.share-character-preview > div > span { color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.share-character-preview h2 { margin-top: 0.2rem; font-size: clamp(2.4rem, 10vw, 4.5rem); }
.share-character-preview p:not(.eyebrow) { margin: 0.8rem 0 0; color: #70401f; font-weight: 750; }
.share-character-preview small { display: block; margin-top: 0.7rem; color: var(--teal); font-weight: 800; }
.share-character-preview figure { margin-inline: auto; }

.shared-result-hero {
  min-height: calc(100vh - 150px);
  padding-block: 4rem 5rem;
}

.shared-result-copy {
  max-width: 760px;
  margin-bottom: 2rem;
}

.shared-result-copy h1 { margin: 0; color: var(--navy-deep); font-size: clamp(2rem, 7vw, 4rem); line-height: 1.3; }
.shared-result-copy > p:last-child { color: var(--muted); }
.shared-result-copy .shared-result-catchphrase { margin: 0.75rem 0 0; color: var(--teal); font-size: clamp(1rem, 2.5vw, 1.3rem); font-weight: 850; }
.shared-result-action { display: flex; justify-content: center; margin-top: 2rem; }
.shared-result-action a { display: inline-flex; min-height: 52px; align-items: center; gap: 0.6rem; padding: 0.7rem 1.5rem; color: white; background: var(--navy); border-radius: 999px; font-weight: 800; }

@media (min-width: 640px) {
  .animal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diagnosis-topline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
  }
  .diagnosis-topline .reset-button {
    grid-column: auto;
    justify-self: end;
  }
  .share-character-preview { grid-template-columns: minmax(0, 1fr) minmax(220px, 0.65fr); }
}

@media (min-width: 880px) {
  .character-hero .hero-grid { grid-template-columns: minmax(0, 1.03fr) minmax(430px, 0.97fr); }
  .character-stage { min-height: 540px; }
  .hero-character-count { bottom: 3%; }
  .animal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .animal-grid article {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
  }
  .animal-grid article > div:first-child {
    min-height: 185px;
  }
  .animal-grid article > div:first-child > * {
    width: min(100%, 170px);
    height: auto;
    aspect-ratio: 1;
  }
  .animal-grid article h3,
  .animal-grid article h3 + p {
    word-break: keep-all;
    overflow-wrap: normal;
  }
  .result-hero-grid { grid-template-columns: minmax(300px, 0.68fr) minmax(560px, 1.32fr); }
  .work-style-panel { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; padding: 2rem; }
}

/* End of the character-led responsive theme. */

/* -------------------------------------------------------------------------
   WordPress theme components (compiled utility-class equivalents)
   ---------------------------------------------------------------------- */

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  background: rgba(252, 250, 245, 0.96);
  border-bottom: 1px solid rgba(23, 50, 77, 0.1);
  backdrop-filter: blur(12px);
}

.admin-bar .site-header { top: 32px; }

.site-header__inner {
  display: flex;
  min-height: 64px;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.5rem;
}

.site-brand {
  display: inline-flex;
  min-width: 0;
  gap: 0.65rem;
  align-items: center;
  color: #17324d;
}

.site-brand__paw {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  background: #e8f2ef;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: transform 180ms ease;
}

.site-brand:hover .site-brand__paw { transform: rotate(-6deg); }
.site-brand span:last-child { display: grid; min-width: 0; line-height: 1.25; }
.site-brand small { display: none; color: #2a7b78; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.16em; }
.site-brand strong { overflow: hidden; font-size: 0.88rem; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.site-brand--custom .custom-logo-link { display: inline-flex; align-items: center; }
.site-brand--custom .custom-logo { display: block; width: auto; max-width: min(48vw, 260px); height: 46px; object-fit: contain; }

.site-nav,
.site-footer ul {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
}

.site-nav__about { display: none !important; color: #3e4a50; }
.site-nav__about:hover { color: #17324d; background: #e8f2ef; }
.site-nav__cta { color: white; background: #17324d; box-shadow: 0 4px 12px rgba(23, 50, 77, 0.12); }
.site-nav__cta:hover { background: #244a6d; }

.site-footer { color: white; background: #17324d; border-top: 1px solid rgba(23, 50, 77, 0.1); }
.site-footer__inner { padding-block: 2.5rem; }
.site-footer__top { display: flex; flex-direction: column; gap: 1.5rem; justify-content: space-between; }
.site-footer__brand { display: inline-flex; gap: 0.45rem; align-items: center; color: white; font-weight: 850; }
.site-footer__top p { max-width: 560px; margin: 0.5rem 0 0; color: rgba(255, 255, 255, 0.7); font-size: 0.86rem; }
.site-footer ul { flex-wrap: wrap; gap: 1rem; }
.site-footer nav a { color: rgba(255, 255, 255, 0.86); font-size: 0.82rem; font-weight: 750; }
.site-footer nav a:hover { color: white; text-decoration: underline; text-underline-offset: 0.25em; }
.site-footer__legal { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.15); }
.site-footer__legal p { max-width: 900px; margin: 0 0 0.8rem; color: rgba(255, 255, 255, 0.6); font-size: 0.72rem; line-height: 1.7; }

.primary-button,
.outline-button {
  display: inline-flex;
  min-height: 52px;
  gap: 0.65rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.35rem;
  border: 2px solid var(--navy);
  border-radius: 999px;
  font-weight: 850;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}

.primary-button { color: white; background: var(--navy); box-shadow: 0 10px 24px rgba(24, 56, 79, 0.16); }
.primary-button:hover { transform: translateY(-2px); background: var(--navy-deep); }
.primary-button span,
.outline-button span { transition: transform 180ms ease; }
.primary-button:hover span,
.outline-button:hover span { transform: translateX(4px); }
.outline-button { color: white; border-color: white; background: transparent; }
.outline-button:hover { color: var(--navy); background: white; }

.animal-image {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  margin: 0;
  padding: 0.65rem;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(23, 50, 77, 0.1);
  border-radius: 1.35rem;
  box-shadow: 0 16px 36px rgba(23, 50, 77, 0.09);
}

.animal-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translate(var(--animal-x, 0), var(--animal-y, 0)) scale(var(--animal-scale, 1));
  transform-origin: center;
}

.animal-image--thumbnail { width: 80px; height: 80px; padding: 0.35rem; }
.animal-image--compact { width: 112px; height: 112px; padding: 0.45rem; }
.animal-image--card { width: min(100%, 288px); }
.animal-image--hero { width: min(100%, 480px); }

.animal-type-card {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: #fffefa;
  border: 1px solid rgba(23, 50, 77, 0.1);
  border-top: 4px solid var(--type-color, #2a7b78);
  border-radius: 1.65rem;
  box-shadow: 0 14px 34px rgba(23, 50, 77, 0.08);
}

.animal-type-card--compact {
  display: grid;
  grid-template-columns: 7.25rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.85rem;
}

.animal-type-card--featured { display: grid; gap: 1.75rem; padding: 1.25rem; }
.animal-type-card__visual { display: grid; place-items: center; background: #f8f5ec; border-radius: 1.35rem; }
.animal-type-card--compact .animal-type-card__visual { min-height: 116px; padding: 0.25rem; }
.animal-type-card--compact .animal-image { width: 100%; height: auto; box-shadow: none; }
.animal-type-card--featured .animal-type-card__visual { min-height: 280px; padding: 1rem; }
.animal-type-card__body { min-width: 0; align-self: center; }
.animal-type-card__title-row { display: flex; gap: 0.75rem; align-items: flex-start; justify-content: space-between; }
.animal-type-card__code { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 0.25rem; color: #2a7b78; font-size: 0.66rem; font-weight: 900; letter-spacing: 0.12em; }
.animal-type-card__code span { padding: 0.12rem 0.5rem; background: #e7f1ee; border-radius: 999px; }
.animal-type-card h3 { margin: 0; color: #17324d; font-size: 1.3rem; font-weight: 900; line-height: 1.25; word-break: keep-all; }
.animal-type-card--featured h3 { font-size: clamp(2rem, 6vw, 2.65rem); }
.animal-type-card__attribute { margin: 0.35rem 0 0; color: #536169; font-size: 0.82rem; font-weight: 750; }
.animal-type-card__icon { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; background: #f8f5ec; border-radius: 50%; }
.animal-type-card__motif { margin: 0.65rem 0 0; color: #536169; font-size: 0.74rem; line-height: 1.6; }
.animal-type-card__motif > span { margin-right: 0.4rem; color: #d97732; }
.animal-type-card__motif strong { display: inline-flex; margin-right: 0.6rem; padding: 0.15rem 0.55rem; color: #1f6967; background: #e7f1ee; border-radius: 999px; font-size: 0.68rem; }
.animal-type-card__catchphrase { margin: 1rem 0 0; padding-left: 0.75rem; color: #17324d; border-left: 4px solid #d97732; font-weight: 850; }
.animal-type-card__summary { margin: 1rem 0 0; color: #536169; }
.trait-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.trait-chips li { padding: 0.25rem 0.7rem; color: #1f6967; background: #f1f7f5; border: 1px solid rgba(42, 123, 120, 0.2); border-radius: 999px; font-size: 0.72rem; font-weight: 750; }
.animal-type-card__work { margin: 1.1rem 0 0; padding: 0.75rem 1rem; color: #70401f; background: #fff5ec; border: 1px solid rgba(217, 119, 50, 0.2); border-radius: 0.9rem; font-size: 0.8rem; }
.animal-type-card__work strong { margin-right: 0.5rem; color: #a84818; }

.hero-character .animal-image { width: 100%; padding: 0.3rem; }
.type-index .animal-image { width: 58px; height: 58px; padding: 0.2rem; border-radius: 0.8rem; box-shadow: none; }

.diagnosis-shell { min-height: calc(100vh - 64px); padding: 2.5rem 0 4rem; background: linear-gradient(rgba(24, 56, 79, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(24, 56, 79, 0.03) 1px, transparent 1px), var(--paper); background-size: 40px 40px; }
.diagnosis-progress { margin-bottom: 1.25rem; padding: 1rem 1.15rem; background: rgba(255, 254, 250, 0.9); border: 1px solid var(--line); border-radius: 1rem; }
.diagnosis-progress__labels { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.55rem; color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; }
.diagnosis-progress__labels strong { color: var(--navy); font-size: 0.82rem; }
.diagnosis-progress__bar { height: 8px; overflow: hidden; background: #e5e2da; border-radius: 999px; }
.diagnosis-progress__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), #72b7ad); border-radius: inherit; transition: width 260ms ease; }

.question-card { padding: 1.25rem; background: #fffefa; border: 1px solid var(--line); border-radius: 1.65rem; box-shadow: var(--shadow); }
.question-card fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.question-card legend { width: 100%; padding: 0; color: var(--navy-deep); font-size: clamp(1.25rem, 4vw, 1.7rem); font-weight: 850; line-height: 1.55; }
.answer-options { display: grid; gap: 0.85rem; margin-top: 1.35rem; }
.answer-option { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; min-height: 76px; gap: 0.8rem; align-items: center; width: 100%; padding: 0.85rem 1rem; color: #273139; background: white; border: 2px solid #d7d8d3; border-radius: 1rem; text-align: left; cursor: pointer; transition: transform 180ms ease, border-color 180ms ease, background 180ms ease; }
.answer-option:hover { transform: translateY(-2px); border-color: #72b7ad; }
.answer-option.is-selected { color: #123e3c; background: #e7f3ef; border-color: var(--teal); }
.answer-option__letter { display: grid; width: 34px; height: 34px; place-items: center; color: var(--teal); background: #e7f1ee; border-radius: 50%; font-family: Georgia, serif; font-weight: 900; }
.answer-option__check { color: transparent; font-weight: 900; }
.answer-option.is-selected .answer-option__check { color: var(--teal); }

.diagnosis-reveal { width: min(680px, calc(100% - 2rem)); padding: 1.5rem; background: #fffefa; border: 1px solid var(--line); border-radius: 1.65rem; box-shadow: var(--shadow); text-align: center; }
.diagnosis-reveal h1 { margin: 0; color: var(--navy-deep); font-size: clamp(1.6rem, 6vw, 2.7rem); }
.diagnosis-reveal__character { display: grid; place-items: center; margin-top: 1.25rem; }
.diagnosis-reveal__character .animal-image { width: min(72vw, 300px); }
.diagnosis-reveal__character p { margin: 0.8rem 0 0; color: var(--teal); font-size: 0.75rem; font-weight: 850; letter-spacing: 0.1em; }
.diagnosis-reveal__character strong { color: var(--navy-deep); font-size: 1.8rem; }
.diagnosis-reveal__meter { height: 8px; margin: 1.25rem 0 0.75rem; overflow: hidden; background: #e5e2da; border-radius: 999px; }
.diagnosis-reveal__meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--teal)); transition: width 120ms linear; }
.diagnosis-reveal button { min-height: 44px; color: var(--muted); background: transparent; border: 0; font-weight: 750; text-decoration: underline; cursor: pointer; }
.diagnosis-result-link { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; margin-top: 1rem; padding: 0.7rem 1.3rem; color: #fff; background: var(--teal); border-radius: 999px; font-weight: 850; text-decoration: none; }

.axis-gauge,
.radar-card,
.result-section-card { padding: 1.25rem; background: #fffefa; border: 1px solid var(--line); border-radius: 1.35rem; box-shadow: 0 10px 28px rgba(23, 50, 77, 0.06); }
.axis-gauge header { display: flex; gap: 0.75rem; align-items: center; justify-content: space-between; }
.axis-gauge header p { margin: 0; color: var(--navy); font-weight: 850; }
.axis-gauge header strong { padding: 0.2rem 0.55rem; color: #70401f; background: #fff0e4; border-radius: 999px; font-size: 0.68rem; }
.axis-gauge__labels,
.axis-gauge__numbers { display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.axis-gauge__labels { margin-top: 1rem; color: var(--muted); font-size: 0.72rem; }
.axis-gauge__labels span { display: flex; gap: 0.35rem; align-items: center; }
.axis-gauge__labels b { color: var(--teal); font-size: 0.9rem; }
.axis-gauge__track { position: relative; height: 13px; margin-top: 0.55rem; background: #e3aa7f; border-radius: 999px; }
.axis-gauge__fill { display: block; height: 100%; background: var(--teal); border-radius: 999px 0 0 999px; }
.axis-gauge__track i { position: absolute; top: 50%; width: 3px; height: 24px; transform: translate(-50%, -50%); background: var(--navy-deep); border-radius: 99px; }
.axis-gauge__numbers { margin-top: 0.35rem; color: var(--navy); font-size: 0.78rem; }
.axis-gauge > p { margin: 0.85rem 0 0; color: var(--muted); font-size: 0.8rem; line-height: 1.7; }

.radar-card { margin-top: 3rem; padding: 1.25rem; }
.radar-card__heading { display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.radar-card__heading .eyebrow { margin-bottom: 0.35rem; }
.radar-card__heading h2 { margin: 0; color: var(--navy-deep); font-size: clamp(1.3rem, 4vw, 2rem); }
.radar-card__heading .animal-image { width: 72px; height: 72px; }
.radar-chart { display: block; width: min(100%, 560px); height: auto; margin: 1rem auto 0; overflow: visible; }
.radar-chart__grid polygon,
.radar-chart__grid line { fill: none; stroke: rgba(23, 50, 77, 0.17); stroke-width: 1; }
.radar-chart__data { fill: rgba(22, 118, 109, 0.3); stroke: var(--teal); stroke-width: 3; stroke-linejoin: round; }
.radar-chart__labels text { fill: var(--navy); font-size: 11px; font-weight: 800; }
.radar-chart__labels tspan + tspan { fill: var(--muted); font-size: 9px; font-weight: 650; }

.result-section-card header { display: flex; gap: 0.8rem; align-items: center; padding-bottom: 0.85rem; border-bottom: 1px solid var(--line); }
.result-section-card header > span { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; color: var(--teal); background: var(--teal-soft); border-radius: 50%; font-weight: 900; }
.result-section-card--orange header > span { color: #a84818; background: #fff0e4; }
.result-section-card header p { margin: 0; color: var(--teal); font-size: 0.62rem; font-weight: 900; letter-spacing: 0.12em; }
.result-section-card header h2 { margin: 0.15rem 0 0; color: var(--navy-deep); font-size: 1.05rem; }
.result-section-card__content { padding-top: 1rem; }
.result-section-card__content p { margin: 0; }
.result-section-card__content p + p { margin-top: 0.8rem; }
.result-section-card__content .result-list { margin-top: 0.9rem; margin-bottom: 0.9rem; }
.result-section-card__content .result-list:first-child { margin-top: 0; }
.result-section-card__content .result-list:last-child { margin-bottom: 0; }
.shared-result-content { padding-top: clamp(2rem, 5vw, 4rem); }

.share-buttons { display: grid; grid-template-columns: 1fr; gap: 0.65rem; }
.share-buttons > p { grid-column: 1 / -1; margin: 0; color: var(--navy); font-weight: 850; }
.share-buttons a,
.share-buttons button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0.65rem 1rem; color: var(--navy); background: white; border: 2px solid var(--navy); border-radius: 999px; font-weight: 800; cursor: pointer; }
.share-buttons .share-button--x { color: white; background: #111; border-color: #111; }
.share-feedback { grid-column: 1 / -1; min-height: 1.5em; margin: 0; color: var(--teal) !important; font-size: 0.78rem; font-weight: 750; }

.content-card { padding: 1.5rem; background: #fffefa; border: 1px solid var(--line); border-radius: 1.35rem; box-shadow: var(--shadow); }
.content-card h1 { color: var(--navy-deep); }

@media (min-width: 640px) {
  .site-brand small { display: block; }
  .site-brand strong { font-size: 1rem; }
  .site-nav__about { display: inline-flex !important; }
  .site-footer__top { flex-direction: row; align-items: flex-start; }
  .animal-type-card--compact { grid-template-columns: 8rem minmax(0, 1fr); }
  .animal-image--compact { width: 128px; height: 128px; }
  .animal-type-card--featured { padding: 1.75rem; }
  .answer-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .share-buttons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .question-card { padding: 1.75rem; }
}

@media (min-width: 880px) {
  .animal-type-card--featured { grid-template-columns: minmax(17rem, 0.9fr) minmax(0, 1.1fr); align-items: center; padding: 2.25rem; }
  .animal-type-card--featured .animal-type-card__visual { min-height: 352px; }
  .animal-type-card--compact { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .animal-type-card--compact .animal-type-card__visual { min-height: 185px; }
  .animal-type-card--compact .animal-image { width: min(100%, 170px); }
  .radar-card { padding: 2rem; }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-brand__paw,
  .primary-button,
  .outline-button,
  .answer-option,
  .diagnosis-progress__bar span,
  .diagnosis-reveal__meter span { transition: none; }
}
