.yandere-hero-stage .breadcrumb {
  margin-bottom: 16px;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--muted);
}

.yandere-hero-stage .breadcrumb a,
.yandere-hero-stage .breadcrumb span {
  font-family: inherit;
}

.yandere-hero-stage .breadcrumb a:hover {
  color: var(--primary);
}

.yandere-hero-stage .breadcrumb [aria-current="page"] {
  color: var(--deep);
  font-weight: 700;
}

.yandere-hero-stage .cast-preview-strip {
  display: flex;
  align-items: center;
  gap: 14px;
}

.yandere-hero-stage .cast-avatars {
  margin-bottom: 0;
  flex-shrink: 0;
}

.yandere-hero-stage .cast-caption {
  line-height: 1.38;
}

.vn-stage-card {
  background: var(--white);
  border: 2px solid var(--deep);
  border-radius: 16px;
  box-shadow: 7px 7px 0 var(--deep);
  overflow: hidden;
}

.tsundere-stage-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 22px;
  background: var(--deep);
  color: var(--white);
  border-bottom: 2px solid var(--deep);
}

.tsundere-banner-thumb {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  border: 2px solid var(--white);
  object-fit: cover;
  object-position: center 15%;
  flex-shrink: 0;
  background: var(--paper);
}

.tsundere-banner-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tsundere-banner-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--muted-dark);
}

.tsundere-banner-title {
  font-family: var(--heading);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--white);
}

.tsundere-axis-pill {
  margin-left: auto;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.stage-topbar {
  padding: 12px 22px 14px;
  background: var(--paper);
  border-bottom: 1.5px solid var(--line);
}

.stage-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.stage-meta-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.stage-qcount {
  font-family: var(--heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--deep);
  letter-spacing: -0.01em;
}

.stage-act-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--tint);
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.stage-pct {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  background: var(--white);
  border: 1.5px solid var(--deep);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.stage-topbar progress {
  display: block;
  width: 100%;
  height: 9px;
  border: 1.5px solid var(--deep);
  border-radius: 999px;
  overflow: hidden;
  appearance: none;
  background: var(--white);
}

.stage-topbar progress::-webkit-progress-bar {
  background: var(--white);
}

.stage-topbar progress::-webkit-progress-value {
  background: var(--primary);
  border-radius: 999px;
  transition: width 220ms ease;
}

.stage-topbar progress::-moz-progress-bar {
  background: var(--primary);
  border-radius: 999px;
}

.stage-body {
  padding: 20px 24px 18px;
}

.scene-axis-tag {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--accent);
}

.quiz-prompt {
  margin: 0 0 16px;
  font-family: var(--heading);
  font-size: clamp(18px, 1.9vw, 22px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--deep);
}

.quiz-prompt:focus,
.result-name:focus {
  outline: none;
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.quiz-choice {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  width: 100%;
  min-height: 64px;
  padding: 12px 14px;
  text-align: left;
  background: var(--white);
  color: var(--deep);
  border: 1.5px solid var(--deep);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--line);
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.quiz-choice:hover:not(:disabled) {
  background: var(--paper);
  border-color: var(--primary);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--primary);
}

.quiz-choice:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.quiz-choice.was-selected,
.quiz-choice.is-picked {
  background: var(--tint);
  border-color: var(--primary);
  box-shadow: 3px 3px 0 var(--primary);
}

.quiz-choice:disabled {
  opacity: 0.72;
  cursor: default;
}

.quiz-choice > span:first-child {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--tint);
  border: 1.5px solid var(--deep);
  color: var(--deep);
  font-family: var(--heading);
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.quiz-choice:hover:not(:disabled) > span:first-child,
.quiz-choice.was-selected > span:first-child,
.quiz-choice.is-picked > span:first-child {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.quiz-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.key-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  margin-left: auto;
}

.result-stage-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.result-stage-wrap:has([data-companion-result]:not([hidden])) {
  grid-template-columns: 236px minmax(0, 1fr);
  align-items: start;
}

.result-portrait-col {
  padding: 22px 0 22px 22px;
}

.result-portrait-frame {
  background: var(--paper);
  border: 2px solid var(--deep);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--deep);
  overflow: hidden;
}

.result-portrait-media {
  line-height: 0;
  border-bottom: 2px solid var(--deep);
  background: var(--tint);
}

.result-portrait-media img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 15%;
}

.result-portrait-body {
  padding: 12px 14px 14px;
  background: var(--white);
}

.result-portrait-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}

.result-portrait-row strong {
  font-family: var(--heading);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--deep);
}

.kana-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.result-portrait-sub {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.overall-meter-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px 10px;
  background: var(--paper);
  border: 1.5px solid var(--deep);
  border-radius: 10px;
}

.overall-meter-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.2;
}

.overall-meter-val {
  font-family: var(--heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.type-ab-badge {
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 9px;
  background: var(--tint);
  border: 1px solid var(--line);
  color: var(--deep);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.result-portrait-btn {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  font-size: 12px;
}

.quiz-result {
  padding: 22px 24px 24px;
}

.result-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.result-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.kana-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--tint);
  border: 1px solid var(--line);
  color: var(--deep);
  font-size: 12px;
  font-weight: 700;
}

.pct-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

.result-name {
  margin: 0 0 4px;
  font-family: var(--heading);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--deep);
}

.result-tagline {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
}

.result-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.result-traits span {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--deep);
  font-size: 12px;
  font-weight: 600;
}

.result-copy {
  margin: 0 0 14px;
  color: var(--deep);
  font-size: 15px;
  line-height: 1.62;
}

/* Signature Tsun vs Dere Dual Tug-of-War Gauge */
.dual-meter-box {
  margin: 0 0 16px;
  padding: 13px 15px;
  background: var(--tint);
  border: 1.5px solid var(--deep);
  border-radius: 12px;
}

.dual-meter-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
}

.dual-pole {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--deep);
  white-space: nowrap;
}

.dual-pole strong {
  font-weight: 800;
}

.dual-pole em {
  font-style: normal;
  font-weight: 800;
}

.dual-pole.is-tsun em {
  color: var(--accent);
}

.dual-pole.is-dere em {
  color: var(--primary);
}

.dual-type-tag {
  white-space: nowrap;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--deep);
  color: var(--deep);
  font-size: 12px;
  font-weight: 800;
}

.dual-meter-track {
  display: flex;
  width: 100%;
  height: 13px;
  border: 1.5px solid var(--deep);
  border-radius: 999px;
  overflow: hidden;
  background: var(--white);
}

.dual-fill-tsun {
  height: 100%;
  background: var(--accent);
  border-right: 2px solid var(--white);
  transition: width 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

.dual-fill-dere {
  height: 100%;
  background: var(--primary);
  transition: width 460ms cubic-bezier(0.22, 1, 0.36, 1);
}

.dual-meter-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.affinity-wrap {
  margin: 14px 0 18px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 12px;
}

.affinity-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.affinity-head strong {
  font-family: var(--heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--deep);
}

.axis-scale-hint {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.affinity-list {
  display: grid;
  gap: 11px;
}

.tsundere-axis-row {
  display: grid;
  gap: 4px;
}

.tsundere-axis-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
}

.tsundere-axis-name {
  font-weight: 700;
  color: var(--deep);
}

.tsundere-axis-name small {
  margin-left: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.tsundere-axis-val {
  font-size: 12px;
  font-weight: 800;
  color: var(--deep);
  white-space: nowrap;
}

.affinity-track {
  height: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

@keyframes tsundereBarGrow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.affinity-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 999px;
  transform-origin: left center;
  animation: tsundereBarGrow 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tsundere-axis-row.is-peak .affinity-fill {
  background: var(--primary);
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 10px;
}

.result-actions .action-button,
.result-actions .outline-button {
  min-height: 44px;
  padding: 9px 15px;
  font-size: 13px;
}

.quiz-result label {
  display: block;
  margin: 10px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.quiz-result textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--deep);
  font-family: var(--body);
  font-size: 13px;
}

.copy-status {
  margin: 4px 0 0;
  min-height: 20px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

.result-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.result-cross-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.result-links a {
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.result-links a:hover {
  text-decoration: underline;
}

/* 5-Card Spectrum Grid for tool-page.html */
.subtype-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.subtype-range-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--deep);
  color: var(--deep);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .subtype-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .quiz-options {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }
  .result-stage-wrap:has([data-companion-result]:not([hidden])) {
    grid-template-columns: minmax(0, 1fr);
  }
  .result-portrait-col {
    padding: 18px 18px 0;
  }
  .result-portrait-frame {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    align-items: stretch;
  }
  .result-portrait-media {
    border-bottom: 0;
    border-right: 2px solid var(--deep);
  }
  .result-portrait-media img {
    height: 100%;
  }
  .result-portrait-btn {
    display: none;
  }
  .subtype-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .yandere-hero-stage {
    padding: 8px 0 24px;
  }
  .yandere-hero-stage .breadcrumb {
    margin-bottom: 6px;
    font-size: 12px;
  }
  .yandere-hero-stage .hero-split {
    gap: 12px;
  }
  .yandere-hero-stage .hero-editorial {
    padding-top: 0;
  }
  .yandere-hero-stage .hero-kicker {
    margin-bottom: 6px;
    padding: 4px 10px;
    font-size: 12px;
  }
  .yandere-hero-stage .hero-editorial h1 {
    font-size: 30px;
    margin-bottom: 6px;
  }
  .yandere-hero-stage .hero-lead {
    font-size: 14px;
    line-height: 1.48;
    margin-bottom: 0;
  }
  .yandere-hero-stage .hero-facts,
  .yandere-hero-stage .cast-preview-strip {
    display: none;
  }
  .tsundere-stage-banner {
    display: none;
  }
  .dual-type-tag {
    display: none;
  }
  .subtype-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .vn-stage-card {
    box-shadow: 4px 4px 0 var(--deep);
  }
  .stage-topbar {
    padding: 9px 14px 10px;
  }
  .stage-act-pill {
    display: none;
  }
  .stage-body,
  .quiz-result {
    padding: 14px;
  }
  .quiz-prompt {
    margin-bottom: 12px;
    font-size: 17px;
  }
  .quiz-choice {
    min-height: 48px;
    padding: 10px 12px;
    font-size: 14px;
  }
  .key-hint {
    display: none;
  }
  .result-actions > .action-button,
  .result-actions > .outline-button {
    width: 100%;
  }
}
