#content.rt-page {
  --rt-accent: #51388e;
  --rt-ink: #25203c;
  --rt-muted: #514b67;
  --rt-soft: #f2eef9;
  --rt-line: #ddd5eb;
  color: var(--rt-ink);
}
#content.rt-emotion {
  --rt-accent: #305b78;
  --rt-ink: #203244;
  --rt-muted: #455e6c;
  --rt-soft: #ebf5f3;
  --rt-line: #d4e5e3;
}
#content.rt-puberty {
  --rt-accent: #2f5686;
  --rt-ink: #243650;
  --rt-muted: #425975;
  --rt-soft: #edf5fc;
  --rt-line: #d2e2f1;
}
#content.rt-outer {
  --rt-accent: #3f5f46;
  --rt-ink: #27372a;
  --rt-muted: #4b6251;
  --rt-soft: #eff3e9;
  --rt-line: #d7e3d5;
}
.rt-page * { box-sizing: border-box; }
.rt-page [hidden] { display: none !important; }
#content.rt-page :is(h1, h2, h3) { word-break: keep-all; overflow-wrap: anywhere; }
#content.rt-page :is(h2, h3) { font-weight: 750; line-height: 1.43; }
#content.rt-page h2 { margin: 0 0 .75rem; font-size: clamp(1.25rem, 2.5vw, 1.6rem); color: var(--rt-ink); }
#content.rt-page h3 { margin: 0 0 .55rem; font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: var(--rt-ink); }
#content.rt-page :is(.rt-card, .rt-guide) :is(p, li, dd) { font-size: 1rem; line-height: 1.72; }
#content.rt-page :is(.rt-card, .rt-guide) p { margin: .5rem 0 1rem; }
#content.rt-page .rt-help, #content.rt-page .rt-card .rt-note { color: var(--rt-muted); font-size: .9rem; line-height: 1.65; }
#content.rt-page .rt-meta { color: var(--rt-accent); font-size: .92rem; font-weight: 750; }
.rt-page .rt-card, .rt-page .rt-guide {
  margin: 0 0 1.15rem;
  border: 1px solid var(--rt-line);
  border-radius: 16px;
  background: #fff;
  padding: clamp(1rem, 3.5vw, 1.6rem);
  min-width: 0;
}
.rt-page .rt-start {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: .9rem 1rem;
  align-items: center;
}
.rt-page .rt-illustration { display: block; width: 100%; height: auto; border-radius: 10px; }
.rt-page .rt-note { border-left: 3px solid var(--rt-accent); background: var(--rt-soft); padding: .65rem .85rem; }
#content.rt-page .rt-start-note { grid-column: 1 / -1; margin: 0; }
.rt-page .rt-actions { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
#content.rt-page :is(.rt-button, .rt-choice) {
  font-family: inherit;
  font-size: .95rem;
  line-height: 1.4;
  text-align: center;
  min-height: 46px;
  padding: .64rem .82rem;
  width: auto;
  margin: 0;
  border: 1px solid var(--rt-line);
  color: var(--rt-ink);
  background: #fff;
  border-radius: 9px;
  font-weight: 680;
  box-shadow: none;
  text-decoration: none;
  letter-spacing: 0;
}
#content.rt-page .rt-button { display: inline-flex; justify-content: center; align-items: center; }
#content.rt-page .rt-button.rt-primary { background: var(--rt-accent); color: #fff; border-color: var(--rt-accent); }
#content.rt-page .rt-button.rt-primary:hover { filter: brightness(.92); }
#content.rt-page .rt-button.rt-text-button { border-color: transparent; color: var(--rt-muted); }
#content.rt-page :is(.rt-button:not(.rt-primary), .rt-choice):hover { background: var(--rt-soft); }
#content.rt-page .rt-button:disabled { opacity: .48; cursor: default; }
#content.rt-page :focus-visible { outline: 2px solid var(--rt-accent); outline-offset: 3px; }
.rt-page :is([id], button, a) { scroll-margin-top: 5.5rem; }
.rt-page .rt-progress-heading { display: flex; justify-content: space-between; gap: .75rem; color: var(--rt-muted); font-weight: 700; font-size: .94rem; }
.rt-page progress, .rt-page meter { display: block; width: 100%; height: 12px; border: 0; border-radius: 999px; overflow: hidden; accent-color: var(--rt-accent); }
.rt-page progress { margin: .55rem 0 1.45rem; }
.rt-page :is(progress, meter)::-webkit-progress-bar { background: var(--rt-soft); border-radius: 999px; }
.rt-page progress::-webkit-progress-value { background: var(--rt-accent); border-radius: 999px; transition: width .18s ease; }
.rt-page progress::-moz-progress-bar { background: var(--rt-accent); border-radius: 999px; }
.rt-page meter::-webkit-meter-bar { background: var(--rt-soft); border: none; }
.rt-page meter::-webkit-meter-optimum-value { background: var(--rt-accent); border-radius: 999px; }
.rt-page meter::-moz-meter-bar { background: var(--rt-accent); border-radius: 999px; }
.rt-page .rt-choices { display: grid; gap: .48rem; margin-bottom: 1.05rem; }
#content.rt-page .rt-choice { text-align: left; }
#content.rt-page .rt-choice[aria-pressed="true"] { border-color: var(--rt-accent); background: var(--rt-soft); color: var(--rt-accent); }
.rt-page .rt-choice[aria-pressed="true"]::after { content: '✓'; float: right; margin-left: .5rem; }
.rt-page .rt-question-actions .rt-primary { margin-right: auto; }
.rt-page .rt-question h2 { min-height: 3em; }
.rt-page .rt-hero { background: var(--rt-soft); border-radius: 12px; padding: .95rem 1rem; margin-bottom: 1.1rem; }
.rt-page .rt-score { display: inline-block; font-size: clamp(2.2rem, 6vw, 3.5rem); font-weight: 850; line-height: 1.13; color: var(--rt-accent); }
.rt-page .rt-score-unit { color: var(--rt-muted); font-weight: 700; margin-left: .35rem; }
#content.rt-page .rt-hero p:last-child { margin-bottom: 0; }
.rt-page .rt-result-body { margin-bottom: 1.2rem; }
.rt-page .rt-chart { display: grid; gap: .75rem; margin: .75rem 0 1.25rem; }
.rt-page .rt-chart-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .25rem .8rem; align-items: baseline; }
.rt-page .rt-chart-row meter { grid-column: 1/-1; }
.rt-page .rt-chart-row strong { color: var(--rt-accent); font-weight: 750; }
.rt-page .rt-radar { width: min(100%, 340px); height: auto; display: block; margin: .6rem auto 1.05rem; }
.rt-page .rt-radar-grid { fill: none; stroke: #879c89; stroke-width: 1; }
.rt-page .rt-radar-area { fill: #c5dbc2; stroke: var(--rt-accent); stroke-width: 2; }
.rt-page .rt-radar-dot { fill: var(--rt-accent); stroke: #fff; stroke-width: 1; }
.rt-page .rt-radar-label { fill: var(--rt-ink); font-size: 14px; font-weight: 670; }
.rt-page .rt-detail { border-top: 1px solid var(--rt-line); padding: .85rem 0 0; margin: .85rem 0; }
.rt-page .rt-detail dl { margin-bottom: .7rem; }
.rt-page .rt-detail dt { font-weight: 730; }
.rt-page .rt-detail dd { margin: .12rem 0 .8rem; }
.rt-page .rt-faq details { border-top: 1px solid var(--rt-line); padding: .55rem 0; }
.rt-page :is(.rt-faq, .rt-guide) summary { cursor: pointer; font-weight: 680; line-height: 1.6; padding: .18rem 0; }
.rt-page .rt-guide section + section { margin-top: 1.2rem; }
.rt-page .rt-guide :is(ol, ul) { padding-left: 1.2rem; }
.rt-page .rt-guide a { color: var(--rt-accent); text-underline-offset: 3px; }
.rt-page .rt-parent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr)); gap: .85rem; margin: 1rem 0; }
.rt-page .rt-parent-group { min-width: 0; margin: 0; padding: .65rem .8rem .85rem; border: 1px solid var(--rt-line); border-radius: 10px; }
.rt-page .rt-parent-group legend { padding: 0 .25rem; font-weight: 750; }
.rt-page .rt-parent-item + .rt-parent-item { margin-top: .85rem; }
.rt-page .rt-parent-item label { display: block; font-weight: 640; line-height: 1.55; }
.rt-page #puberty-parent-summary dt { margin-top: .65rem; }
.rt-page #puberty-parent-summary dd { margin-bottom: .75rem; }
.rt-page .rt-status-text { width: 100%; min-height: 8rem; padding: .55rem; }
.rt-page .rt-lookup { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: .65rem; margin: 1rem 0; }
.rt-page .rt-lookup label { display: block; font-weight: 700; }
#content.rt-page :is(.rt-lookup :is(input, select), .rt-parent-item select) {
  display: block; width: 100%; min-height: 46px; margin-top: .3rem;
  padding: .5rem .65rem; color: var(--rt-ink); border: 1px solid var(--rt-line);
  border-radius: 7px; background: #fff; font: inherit; appearance: auto;
}
.rt-page .rt-word-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); align-items: start; gap: .55rem; }
.rt-page .rt-word { border: 1px solid var(--rt-line); border-radius: 9px; padding: .55rem .75rem; }
.rt-page .rt-word dl { margin-bottom: 0; }
.rt-page .rt-word dt { margin-top: .5rem; font-weight: 720; }
.rt-page .rt-word dd { margin: 0; }
.rt-page .rt-word-category { display: inline; font-size: .85rem; color: var(--rt-muted); margin-left: .4rem; }
.rt-page .rt-table-wrap { overflow: auto; }
.rt-page table { width: 100%; border-collapse: collapse; }
.rt-page :is(td, th) { padding: .45rem .5rem; border-bottom: 1px solid var(--rt-line); text-align: left; }
.rt-page table caption { text-align: left; font-weight: 700; padding: .5rem; }
.rt-page .rt-enter { animation: rt-in .24s ease-out; }
@keyframes rt-in { from { opacity: .55; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) {
  .rt-page .rt-start { grid-template-columns: minmax(0,1fr); }
  .rt-page .rt-illustration { grid-row: 2; aspect-ratio: 2.25; object-fit: cover; }
  .rt-page .rt-lookup { grid-template-columns: minmax(0,1fr); }
  .rt-page .rt-actions { gap: .45rem; }
}
@media (prefers-reduced-motion: reduce) {
  .rt-page .rt-enter { animation: none; }
  .rt-page progress::-webkit-progress-value { transition: none; }
}
