:root {
  color-scheme: light;
  --paper: #f5f1e8;
  --paper2: #fcfaf4;
  --paper3: #efe9dc;
  --ink: #293e38;
  --ink-soft: #3d5149;
  --muted: #5c6b60;
  --line: #c9cdbf;
  --line-soft: #ded9cb;
  --red: #b8412d;
  --red-dark: #963523;
  --teal: #35695c;
  --teal-light: #e0e9df;
  --gold: #b78a3d;
  --good: #4f7f5f;
  --bad: #a34a3a;
  --shadow: 0 14px 38px rgba(41, 62, 56, .12);
  --font: KingHwa, "Noto Serif SC", "Songti SC", SimSun, serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --help-accent: var(--red);
  --help-text: var(--ink);
  --help-paper: var(--paper2);
  --help-muted: var(--muted);
}
* { box-sizing: border-box; }
html { background: #e9e3d6; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(77, 92, 78, .055) .6px, transparent .6px), linear-gradient(180deg, #f8f4ea 0%, #f2ecdf 100%);
  background-size: 7px 7px, auto;
  font: 17px/1.8 var(--font);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}
.skip {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  padding: 10px 16px; color: var(--paper2); background: var(--ink);
  transition: top .2s;
}
.skip:focus { top: 12px; }
.rj-sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

/* 顶部 */
.rj-topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 22px;
  padding: 13px clamp(16px, 4vw, 44px);
  color: #f4efe2; background: #1d2b25;
  border-bottom: 1px solid #45564c;
  box-shadow: 0 8px 24px rgba(18, 30, 24, .18);
}
.rj-back {
  flex: none; color: #d8d2c2; text-decoration: none; font-size: 15px;
  padding: 8px 0;
}
.rj-back:hover { color: #fff; }
.rj-brand { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.rj-brand strong { font-size: 24px; font-weight: 400; letter-spacing: .1em; white-space: nowrap; }
.rj-brand span { font-size: 12px; color: #aebbab; letter-spacing: .12em; white-space: nowrap; }
.rj-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.rj-tools button {
  min-height: 44px; padding: 8px 12px; color: #e8e3d5; background: transparent;
  border: 0; border-bottom: 1px solid transparent; font-size: 15px;
}
.rj-tools button:hover { color: #fff; border-bottom-color: var(--gold); }
.rj-tools button:disabled { color: #68786c; }
.rj-tools .game-help-button { color: #e8e3d5; border-bottom: 0; }
.rj-tools .game-help-button:hover { color: #fff; }

/* 页面 */
.rj-app { max-width: 1400px; margin: 0 auto; padding: 34px clamp(18px, 4vw, 44px) 54px; }
.rj-footer {
  max-width: 1400px; margin: 0 auto; padding: 20px clamp(18px, 4vw, 44px) 34px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.rj-footer span { min-width: 0; }
.rj-footer button { color: var(--teal); background: transparent; border: 0; padding: 6px 0; text-decoration: underline; }

/* 通用 */
.rj-kicker {
  margin: 0 0 8px; color: var(--red); font-size: 12px; letter-spacing: .16em;
  line-height: 1.5; text-transform: uppercase;
}
.rj-muted { color: var(--muted); font-size: 14px; line-height: 1.8; }
.rj-link { color: var(--teal); background: transparent; border: 0; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.rj-link:hover { color: var(--red); }
.rj-identity-name .rj-rename { min-width: 44px; min-height: 44px; }
#family-body .rj-family-members > h3 { display: none; }
.rj-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px; border: 1px solid var(--line);
  background: var(--paper2); color: var(--ink); text-decoration: none; font-size: 16px;
  transition: background .2s, border-color .2s, transform .2s;
}
.rj-button:hover { border-color: var(--teal); transform: translateY(-1px); }
.rj-button-primary { background: var(--red); border-color: var(--red); color: #fff8ee; }
.rj-button-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.rj-button-quiet { background: transparent; color: var(--teal); border-color: #a9b8aa; }
.rj-button-quiet:hover { background: #e8ede3; border-color: var(--teal); }
.rj-button-danger { background: var(--ink); color: var(--paper2); border-color: var(--ink); }
.rj-button-danger:hover { background: #101b16; }
.rj-badge {
  display: inline-block; flex: none; padding: 3px 9px; color: var(--teal);
  border: 1px solid #9fb4a6; font-size: 12px; letter-spacing: .08em;
}
.rj-pending {
  display: inline-block; flex: none; padding: 3px 8px; color: #7b7c6e;
  border: 1px solid #cfcabc; font-size: 12px;
}
.rj-card {
  min-width: 0; padding: 20px; background: var(--paper2);
  border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(41, 62, 56, .07);
}
.rj-card h2 { margin: 0 0 10px; font-size: 27px; font-weight: 400; line-height: 1.4; }
.rj-card > p { margin: 0 0 12px; }
.rj-save-note { margin: 12px 0 0; color: var(--bad); font-size: 12px; line-height: 1.7; }

/* 开场 */
.rj-intro {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
  gap: clamp(30px, 5vw, 70px); align-items: start;
}
.rj-intro-copy { padding-top: 20px; }
.rj-eyebrow { margin: 0 0 18px; color: var(--teal); font-size: 12px; letter-spacing: .22em; }
.rj-title-wrap { position: relative; display: inline-block; }
.rj-title {
  margin: 0; font-size: clamp(66px, 8.4vw, 116px); font-weight: 400;
  line-height: .98; letter-spacing: .04em;
}
.rj-title span { display: block; }
.rj-title span:last-child { color: var(--red); }
.rj-intro-stamp {
  position: absolute; right: -46px; top: 14px; display: grid; place-items: center;
  width: 58px; height: 58px; color: var(--red); border: 2px solid var(--red);
  border-radius: 50%; font-size: 17px; letter-spacing: .08em; transform: rotate(9deg);
  opacity: .85;
}
.rj-subtitle { margin: 22px 0 0; color: var(--ink-soft); font-size: 24px; letter-spacing: .06em; }
.rj-lead { max-width: 34em; margin: 22px 0 0; color: var(--muted); font-size: 18px; line-height: 2; }
.rj-resume {
  margin: 24px 0 0; padding: 10px 14px; color: var(--teal); background: #e8ede3;
  border-left: 3px solid var(--teal); font-size: 14px;
}
.rj-name-setup {
  margin: 24px 0 0; padding: 16px 18px; background: #f1ede2;
  border: 1px solid var(--line);
}
.rj-name-setup-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rj-name-setup-head label { color: var(--ink-soft); font-size: 14px; letter-spacing: .06em; }
.rj-name-input {
  width: 100%; min-width: 0; margin: 8px 0 0; padding: 10px 12px; color: var(--ink);
  background: #fffdf7; border: 1px solid #b9b39f; font: inherit; font-size: 20px;
  letter-spacing: .08em;
}
.rj-name-input:focus { outline: 2px solid var(--teal); outline-offset: 2px; border-color: var(--teal); }
.rj-name-input[aria-invalid="true"] { border-color: var(--bad); }
.rj-name-hint { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.rj-name-error { margin: 6px 0 0; color: var(--bad); font-size: 13px; line-height: 1.6; }
.rj-name-sex { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.rj-name-sex button {
  min-height: 34px; padding: 4px 13px; color: var(--ink-soft);
  background: #fffdf7; border: 1px solid #b9b39f; font: inherit; font-size: 13px;
}
.rj-name-sex button[aria-pressed="true"] { color: #fff8ee; background: var(--teal); border-color: var(--teal); }
.rj-name-label { display: block; margin: 0 0 8px; color: var(--ink-soft); font-size: 14px; }
.rj-name-row { display: flex; gap: 10px; align-items: stretch; }
.rj-name-row .rj-name-input { margin: 0; }
.rj-name-row .rj-button { flex: none; min-height: 48px; }
.rj-intro-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 0; }
.rj-content-note { margin: 22px 0 0; color: var(--muted); font-size: 13px; }
.rj-pilot-note {
  display: flex; gap: 12px; align-items: flex-start; margin: 24px 0 0; padding-top: 18px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.8;
}
.rj-pilot-note strong { flex: none; color: var(--red); font-weight: 400; }
.rj-intro-card {
  position: relative; background: var(--paper2); border: 1px solid var(--line);
  box-shadow: var(--shadow); padding: 12px;
}
.rj-intro-card::before {
  content: "省份档案"; position: absolute; left: 24px; top: -13px; padding: 3px 14px;
  color: var(--paper2); background: var(--teal); font-size: 12px; letter-spacing: .12em;
}
.rj-intro-data { padding: 20px 14px 8px; }
.rj-intro-data-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.rj-intro-data-head > div { min-width: 0; }
.rj-intro-data-head h2 { margin: 0; font-size: clamp(28px, 3.2vw, 38px); font-weight: 400; line-height: 1.22; overflow-wrap: anywhere; }
.rj-intro-links { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 18px; }

/* 场景 */
.rj-scene-wrap {
  position: relative; margin: 0; padding: 8px; background: #18241f;
  border: 1px solid #2d4036;
}
.rj-scene-wrap canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.rj-scene-caption {
  margin: 7px 2px 0; color: #b9c3b4; font-size: 12px; letter-spacing: .1em;
  line-height: 1.5; text-align: right;
}

/* 数据与属性 */
.rj-data-list { margin: 0; padding: 0; }
.rj-data-list > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 8px 0; border-bottom: 1px dotted var(--line);
}
.rj-data-list > div:last-child { border-bottom: 0; }
.rj-data-list dt { color: var(--muted); font-size: 14px; }
.rj-data-list dd { margin: 0; text-align: right; font-size: 15px; font-variant-numeric: tabular-nums; }
.rj-data-list dd small { color: var(--muted); font-size: 11px; }
.rj-stats { display: grid; gap: 9px; margin: 16px 0; }
.rj-stat-head { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
.rj-stat-head span:last-child { color: var(--ink); font-variant-numeric: tabular-nums; }
.rj-stat-track { height: 6px; margin-top: 3px; background: #e2ded2; overflow: hidden; }
.rj-stat-track i { display: block; height: 100%; }
.rj-chips { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.rj-chips span {
  padding: 1px 7px; color: var(--muted); background: #efeadd;
  border: 1px solid #ddd6c6; font-size: 11px; line-height: 1.7; white-space: nowrap;
}
.rj-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 0; }
.rj-tags span { padding: 2px 8px; color: var(--teal); border: 1px solid #aebcac; font-size: 11px; }

/* 人生三栏 */
.rj-life {
  display: grid; grid-template-columns: 280px minmax(0, 1fr) 294px;
  gap: 24px; align-items: start;
}
.rj-identity { position: sticky; top: 90px; }
.rj-identity-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.rj-seal {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px;
  color: var(--red); border: 2px solid var(--red); border-radius: 50%;
  font-size: 22px; transform: rotate(-6deg);
}
.rj-identity-name { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rj-identity-head h2 { margin: 0; font-size: 26px; font-weight: 400; line-height: 1.3; }
.rj-identity-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.rj-rename { padding: 2px 0; color: var(--muted); font-size: 12px; text-decoration: none; border-bottom: 1px dotted #a9b8aa; }
.rj-rename:hover { color: var(--red); border-color: var(--red); }
.rj-family { margin: 0 0 8px; color: var(--ink-soft); font-size: 14px; line-height: 1.8; }
.rj-family-meta { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.rj-life-list { margin-top: 6px; }
.rj-province-side { position: sticky; top: 90px; display: grid; gap: 18px; }
.rj-side-note p { margin-bottom: 8px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.rj-event-column { min-width: 0; }
.rj-life-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin: 0 0 12px; padding: 0 2px;
}
.rj-life-bar .rj-kicker { margin: 0 0 2px; }
.rj-life-bar strong { font-size: 15px; font-weight: 400; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.rj-age-track { width: 34%; max-width: 240px; height: 4px; background: #ddd8ca; }
.rj-age-track span { display: block; height: 100%; background: var(--red); opacity: .7; }

/* 事件 */
.rj-event-card {
  min-width: 0; background: var(--paper2); border: 1px solid var(--line);
  border-top: 3px solid var(--red); box-shadow: var(--shadow); outline: none;
}
.rj-event-card:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.rj-event-body { padding: 24px 28px 26px; }
.rj-event-body h1 { margin: 0 0 12px; font-size: clamp(28px, 3.2vw, 40px); font-weight: 400; line-height: 1.35; letter-spacing: .02em; }
.rj-event-text { margin: 0 0 16px; color: var(--ink-soft); font-size: 18px; line-height: 1.95; white-space: pre-line; }
.rj-fact { margin: 0 0 15px; padding: 9px 0 0; border-top: 1px solid var(--line-soft); }
.rj-fact summary { color: var(--teal); font-size: 13px; cursor: pointer; }
.rj-fact ul { margin: 10px 0 0; padding-left: 1.2em; color: var(--muted); font-size: 13px; line-height: 1.9; }
.rj-fact li + li { margin-top: 6px; }
.rj-source-inline { white-space: nowrap; }
.rj-source-inline a, .rj-fact a { color: var(--teal); text-underline-offset: 2px; }
.rj-focus-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rj-focus, .rj-choice {
  display: block; width: 100%; min-height: 44px; padding: 12px 15px; text-align: left;
  color: var(--ink); background: #fbf8f0; border: 1px solid var(--line);
  transition: border-color .18s, background .18s, transform .18s;
}
.rj-focus:hover, .rj-choice:hover:not(:disabled) { border-color: var(--teal); background: #f1f0e4; transform: translateY(-1px); }
.rj-focus strong, .rj-choice strong { display: block; font-size: 17px; font-weight: 400; line-height: 1.6; }
.rj-focus > span, .rj-choice > span { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.rj-choice:disabled { opacity: .52; background: #f1eee5; }
.rj-choice .rj-reason { display: block; margin-top: 5px; color: var(--bad); font-size: 12px; font-style: normal; }
.rj-choices { display: grid; gap: 8px; }
.rj-continue { display: flex; justify-content: flex-end; margin-top: 18px; }
.rj-result {
  margin-top: 18px; padding: 18px 20px; background: #efe9da;
  border-left: 3px solid var(--red);
}
.rj-result p { margin: 0 0 10px; color: var(--ink-soft); font-size: 17px; line-height: 1.9; }
.rj-result .rj-result-label { color: var(--red); font-size: 12px; letter-spacing: .14em; }
.rj-result .rj-button { margin-top: 8px; }

@media (min-width: 901px) {
  .rj-event-card .rj-scene-wrap canvas { height: 218px; object-fit: cover; object-position: center 66%; }
  .rj-summary-scene canvas { height: 260px; object-fit: cover; object-position: center 66%; }
}

/* 人生档案 */
.rj-summary { max-width: 1120px; margin: 0 auto; display: grid; gap: 26px; }
.rj-archive-card {
  position: relative; padding: clamp(24px, 4vw, 40px); background: var(--paper2);
  border: 1px solid var(--line); border-top: 5px solid var(--red); box-shadow: var(--shadow);
}
.rj-archive-card h1 { margin: 0 0 6px; font-size: clamp(42px, 6vw, 70px); font-weight: 400; line-height: 1.2; letter-spacing: .04em; }
.rj-archive-seal {
  position: absolute; right: 30px; top: 26px; padding: 7px 10px; color: var(--red);
  border: 2px solid var(--red); font-size: 13px; letter-spacing: .12em; transform: rotate(7deg);
  opacity: .8;
}
.rj-archive-years { margin: 0 0 20px; color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.rj-closing { margin: 0 0 22px; padding: 18px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); color: var(--ink-soft); font-size: 18px; line-height: 2; }
.rj-summary-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 20px; margin: 0 0 18px; }
.rj-summary-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dotted var(--line); }
.rj-summary-facts span { color: var(--muted); font-size: 13px; }
.rj-summary-facts strong { font-weight: 400; font-size: 15px; text-align: right; }
.rj-summary-scene { margin-top: 16px; }
.rj-summary-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.rj-timeline-card, .rj-compare-card { padding: clamp(20px, 3vw, 30px); background: var(--paper2); border: 1px solid var(--line); }
.rj-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.rj-section-head h2 { margin: 0; font-size: 27px; font-weight: 400; }
.rj-section-head span { color: var(--muted); font-size: 12px; }
.rj-timeline { margin: 0; padding: 0; list-style: none; }
.rj-timeline li {
  display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 16px;
  padding: 12px 0; border-bottom: 1px dotted var(--line);
}
.rj-timeline li:last-child { border-bottom: 0; }
.rj-timeline-age { color: var(--red); font-size: 13px; font-variant-numeric: tabular-nums; }
.rj-timeline li > div { min-width: 0; }
.rj-timeline strong { font-size: 16px; font-weight: 400; }
.rj-timeline-choice { margin: 2px 0 0 !important; color: var(--teal) !important; font-size: 13px !important; }
.rj-timeline p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.rj-timeline li.is-focus .rj-timeline-age { color: var(--teal); }
.rj-compare-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 10px 0 16px; }
.rj-compare-grid div { padding: 12px; background: #f2ede1; border: 1px solid #dfd8c8; }
.rj-compare-grid span { display: block; color: var(--muted); font-size: 12px; }
.rj-compare-grid strong { display: block; margin-top: 3px; font-size: 22px; font-weight: 400; font-variant-numeric: tabular-nums; }
.rj-compare-grid small { color: var(--muted); font-size: 11px; }
.rj-detail-title { margin: 20px 0 4px; font-size: 18px; font-weight: 400; }
.rj-archive-detail h3 { margin: 8px 0 6px; font-size: 32px; font-weight: 400; }
.rj-archive-detail .rj-summary-facts { margin-top: 16px; }

/* 弹窗 */
.rj-dialog {
  width: min(920px, calc(100% - 28px)); max-height: calc(100dvh - 36px);
  margin: auto; padding: 0; color: var(--ink); background: var(--paper2);
  border: 1px solid var(--line); box-shadow: 0 22px 60px rgba(18, 30, 24, .34);
  overflow: auto;
}
.rj-dialog::backdrop { background: rgba(18, 30, 24, .66); }
.rj-dialog-head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start;
  justify-content: space-between; gap: 18px; padding: 22px 26px 16px;
  background: var(--paper2); border-bottom: 1px solid var(--line);
}
.rj-dialog-head h2 { margin: 0; font-size: 30px; font-weight: 400; line-height: 1.3; }
.rj-dialog-head form { margin: 0; }
.rj-close {
  width: 44px; height: 44px; color: var(--muted); background: transparent;
  border: 1px solid var(--line); font-size: 26px; line-height: 1;
}
.rj-close:hover { color: var(--red); border-color: var(--red); }
.rj-dialog-body { padding: 22px 26px 30px; }
.rj-dialog-note { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.rj-dialog-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; margin-top: 22px; }
.rj-restart { width: min(560px, calc(100% - 28px)); }
.rj-restart p { margin: 0; color: var(--ink-soft); }
.rj-name-dialog { width: min(600px, calc(100% - 28px)); }

/* 图鉴 */
.rj-atlas-featured { margin: 0 0 24px; padding: 14px 16px 16px; background: #eef1e5; border: 1px solid #aebfab; }
.rj-atlas-featured .rj-section-head { margin-bottom: 10px; }
.rj-atlas-featured .rj-section-head h3 { margin: 0; color: var(--teal); font-size: 18px; font-weight: 400; letter-spacing: .12em; }
.rj-atlas-featured-card { max-width: 460px; }
.rj-atlas-featured .rj-atlas-card { background: var(--paper2); }
.rj-atlas-actions { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.rj-atlas-actions .rj-button { width: 100%; margin: 0; }
.rj-atlas-actions .rj-link { padding: 2px 0; font-size: 12px; text-align: left; }
.rj-atlas-group + .rj-atlas-group { margin-top: 26px; }
.rj-atlas-group h3 {
  margin: 0 0 10px; padding-bottom: 6px; color: var(--teal);
  border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 400; letter-spacing: .12em;
}
.rj-atlas-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rj-atlas-card {
  min-width: 0; padding: 14px; background: #f9f6ee;
  border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px;
}
.rj-atlas-card.is-ready { border-color: #9eb4a5; background: #f4f5e9; }
.rj-atlas-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.rj-atlas-head h4 { margin: 0; font-size: 21px; font-weight: 400; line-height: 1.4; }
.rj-atlas-meta { margin: 0; color: var(--muted); font-size: 11px; }
.rj-atlas-hook { flex: 1; margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.rj-atlas-card .rj-data-list > div { padding: 4px 0; }
.rj-atlas-card .rj-data-list dt, .rj-atlas-card .rj-data-list dd { font-size: 12px; }
.rj-atlas-card .rj-button { width: 100%; margin-top: 6px; padding: 7px 10px; min-height: 40px; font-size: 14px; }

/* 档案列表 */
.rj-archive-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.rj-archive-list button {
  display: block; width: 100%; padding: 14px 16px; text-align: left;
  color: var(--ink); background: #f9f6ee; border: 1px solid var(--line);
}
.rj-archive-list button:hover { border-color: var(--teal); background: #f1f0e4; }
.rj-archive-list strong { display: block; font-size: 20px; font-weight: 400; }
.rj-archive-list span { display: block; margin-top: 2px; color: var(--red); font-size: 12px; }
.rj-archive-list p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.rj-empty { margin: 0; padding: 24px; color: var(--muted); text-align: center; border: 1px dashed var(--line); }

/* 来源与省份档案 */
.rj-source-list, .rj-fact-list, .rj-scene-list { margin: 0; padding: 0; list-style: none; }
.rj-source-list li { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.rj-source-list li:last-child { border-bottom: 0; }
.rj-source-list strong { display: block; font-weight: 400; font-size: 16px; }
.rj-source-list p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.rj-source-list a { display: inline-block; margin-top: 6px; color: var(--teal); font-size: 13px; text-underline-offset: 2px; }
.rj-profile-section { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.rj-profile-section:last-child { border-bottom: 0; }
.rj-profile-section h3 { margin: 0 0 10px; color: var(--red); font-size: 18px; font-weight: 400; letter-spacing: .08em; }
.rj-profile-section p { margin: 8px 0; font-size: 14px; line-height: 1.9; }
.rj-profile-section .rj-data-list { margin-bottom: 8px; }
.rj-fact-list li { padding: 9px 0; border-bottom: 1px dotted var(--line); color: var(--ink-soft); font-size: 14px; line-height: 1.9; }
.rj-fact-list li:last-child { border-bottom: 0; }
.rj-fact-list a { color: var(--teal); text-underline-offset: 2px; }
.rj-scene-list li { padding: 10px 0; border-bottom: 1px dotted var(--line); }
.rj-scene-list li:last-child { border-bottom: 0; }
.rj-scene-list strong { font-weight: 400; font-size: 15px; }
.rj-scene-list span { margin-left: 8px; color: var(--red); font-size: 11px; }
.rj-scene-list p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }

/* 手机 */
.rj-playback { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0 16px; }
.rj-playback button { min-width: 44px; min-height: 44px; padding: 6px 10px; border: 1px solid var(--line); color: var(--ink); background: var(--paper2); font-size: 15px; }
.rj-speeds { display: flex; gap: 3px; }
.rj-speeds button[aria-pressed="true"] { background: var(--teal); color: var(--paper2); border-color: var(--teal); }
[data-playback-status] { flex-basis: 100%; color: var(--muted); font-size: 14px; }
.rj-family-members { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; }
.rj-family-members h3 { margin: 0 0 10px; font-size: 18px; font-weight: 400; }
.rj-family-member { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.rj-family-member > div { min-width: 0; }
.rj-family-member span { display: block; color: var(--muted); font-size: 13px; }
.rj-family-member strong { display: block; font-weight: 400; font-size: 18px; overflow-wrap: anywhere; }
.rj-family-member small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.rj-family-member button { flex-shrink: 0; min-width: 44px; min-height: 44px; }
.rj-family-intro, .rj-family-notice { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.rj-family-notice { padding-left: 14px; border-left: 2px solid var(--teal); }
#family-feedback { margin: 0 0 16px; color: var(--teal); line-height: 1.8; }
#family-feedback:empty { display: none; }
.rj-family-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rj-relative { min-width: 0; padding: 18px; border: 1px solid var(--line); background: var(--paper2); }
.rj-relative-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.rj-relative-head h3 { margin: 6px 0; color: var(--ink); font-size: 26px; font-weight: 400; overflow-wrap: anywhere; }
.rj-relative-head p { margin: 4px 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.rj-relative-head button { flex-shrink: 0; min-width: 44px; min-height: 44px; }
.rj-relative-relationship { margin: 12px 0; color: var(--teal); font-size: 14px; }
.rj-relative-reply { margin: 14px 0; padding-left: 12px; border-left: 2px solid var(--teal); }
.rj-relative-reply > span { color: var(--muted); font-size: 12px; }
.rj-relative-reply p, .rj-relative-empty { margin: 7px 0; color: var(--muted); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.rj-relative-actions { display: grid; gap: 8px; margin-top: 16px; }
.rj-relative-actions button { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); text-align: left; background: transparent; color: var(--ink); font: inherit; }
.rj-relative-actions strong { display: block; font-size: 16px; font-weight: 400; }
.rj-relative-actions span, .rj-relative-actions small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.rj-relative-actions button:disabled { opacity: .65; cursor: default; }
.is-remembered { border-style: dashed; }
@media (max-width: 700px) {
  .rj-family-grid { grid-template-columns: 1fr; }
  .rj-relative { padding: 16px; }
}
.rj-share-preview { display: block; width: 100%; max-width: 450px; height: auto; margin: 20px auto; }
#share-life-text { width: 100%; min-height: 180px; margin-top: 16px; padding: 12px; color: var(--ink); background: var(--paper2); border: 1px solid var(--line); font-size: 16px; line-height: 1.7; }
#family-body .rj-family-members { margin-top: 0; padding-top: 0; border: 0; }
.rj-mobile-stats { display: none; }
.rj-annual { margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--line); background: var(--paper2); }
.rj-year-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rj-year-heading strong { font-weight: 400; font-size: 20px; }
.rj-year-heading span { color: var(--teal); font-size: 14px; }
.rj-year-progress { display: block; width: 100%; height: 7px; margin: 10px 0 14px; border: none; background: #e0e5d9; accent-color: var(--teal); }
.rj-year-progress::-webkit-progress-bar { background: #e0e5d9; }
.rj-year-progress::-webkit-progress-value { background: var(--teal); }
.rj-year-progress::-moz-progress-bar { background: var(--teal); }
.rj-annual-focus-row { display: flex; align-items: center; gap: 14px; }
.rj-annual-focus-row label { flex: none; color: var(--teal); font-size: 15px; }
.rj-annual-focus-row select { min-width: 0; flex: 1; min-height: 44px; padding: 7px 10px; border: 1px solid var(--line); background: var(--paper2); color: var(--ink); font: inherit; font-size: 16px; }
.rj-annual > details { margin-top: 10px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.rj-annual summary { cursor: pointer; min-height: 28px; }
.rj-annual-feedback { color: var(--teal); font-size: 14px; line-height: 1.7; margin: 10px 0 0; }
.rj-annual-feedback:empty { display: none; }
.rj-course-status { margin: 0 0 14px; line-height: 1.6; }
.rj-course-status strong { display: block; color: var(--teal); font-size: 17px; font-weight: 400; }
.rj-course-status span { display: block; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.rj-budget { padding-top: 10px; border-top: 1px dotted var(--line); }
.rj-budget > summary { color: var(--teal); min-height: 36px; }
.rj-budget h3 { margin: 16px 0 8px; font-size: 17px; font-weight: 400; color: var(--ink); }
.rj-budget-note { color: var(--muted); font-size: 13px; line-height: 1.8; }
.rj-ledger { margin: 10px 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.rj-ledger > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; }
.rj-ledger dt { color: var(--muted); }
.rj-ledger dd { margin: 0; text-align: right; overflow-wrap: anywhere; color: var(--ink); }
.rj-ledger-total { border-top: 1px solid var(--line); margin-top: 5px; }
.rj-budget-gap { color: var(--red); font-size: 14px; line-height: 1.8; }
.rj-budget-gap:empty { display: none; }
.rj-settled-budget { font-size: 14px; margin: 12px 0; }
.rj-settled-budget > summary { color: var(--teal); cursor: pointer; min-height: 36px; overflow-wrap: anywhere; }
.rj-year-life > p { color: var(--muted); font-size: 15px; line-height: 1.8; }
.rj-year-status { border-top-color: var(--teal); }
.rj-year-status h1 { font-size: clamp(26px, 3vw, 38px); }
.rj-year-life details { margin: 20px 0; border-left: 2px solid var(--teal); padding-left: 14px; }
.rj-annual-history { margin-top: 22px; padding: 16px; border: 1px solid var(--line); background: var(--paper2); }
.rj-annual-history > summary { cursor: pointer; color: var(--teal); min-height: 44px; display: flex; align-items: center; }
.rj-birth-year-label { display: block; margin: 16px 0 8px; color: var(--teal); }
.rj-birth-year { width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid var(--line); background: var(--paper2); color: var(--ink); font: inherit; }
.rj-friend { margin: 20px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.rj-friend h3 { margin: 0 0 10px; font-size: 17px; font-weight: 400; }
.rj-friend strong { font-size: 20px; font-weight: 400; }
.rj-friend p { margin: 4px 0 8px; color: var(--teal); font-size: 14px; }
.rj-friend small { color: var(--muted); font-size: 13px; line-height: 1.7; }
.rj-cause { margin: 20px 0; padding: 12px 16px; border-left: 2px solid var(--teal); background: #edf0e6; font-size: 15px; line-height: 1.8; }
.rj-cause span { display: block; color: var(--teal); font-size: 13px; margin-bottom: 4px; }
.rj-memory-button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 9px 14px; margin: 0 8px 14px 0; border: 1px solid #a9b8aa; background: transparent; color: var(--teal); font: inherit; font-size: 15px; }
.rj-memory-button[aria-pressed="true"] { background: #e7ecdf; border-color: var(--teal); }
.rj-memory-button:disabled { color: var(--muted); border-color: var(--line); cursor: default; }
.rj-memory-intro { margin-top: 0; line-height: 1.8; }
.rj-reflection { display: block; width: 100%; margin-top: 10px; padding: 12px; resize: vertical; border: 1px solid var(--line); background: var(--paper2); color: var(--ink); font: inherit; font-size: 17px; line-height: 1.8; }
.rj-reflection-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.rj-reflection-actions span { color: var(--muted); font-size: 14px; }
.rj-memory-list { padding: 0; list-style: none; }
.rj-memory-list > li { padding: 20px 0; border-top: 1px solid var(--line); }
.rj-memory-list > li > span { color: var(--teal); font-size: 14px; }
.rj-memory-list h3 { margin: 6px 0 12px; font-size: 23px; font-weight: 400; }
.rj-memory-list p { margin: 8px 0; line-height: 1.8; overflow-wrap: anywhere; }
.rj-memory-list .rj-memory-button { margin: 8px 0 0; }
.rj-kept-memories { margin: 24px 0; padding: 20px 0; border-block: 1px solid var(--line); text-align: left; }
.rj-kept-memories h3 { margin: 0 0 16px; font-size: 23px; font-weight: 400; }
.rj-kept-memories ol { list-style: none; margin: 0; padding: 0; }
.rj-kept-memories li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; margin: 16px 0; }
.rj-kept-memories li > span { color: var(--red); }
.rj-kept-memories p { margin: 6px 0; font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.rj-kept-memories blockquote { margin: 20px 0 0; padding-left: 16px; border-left: 2px solid var(--red); line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 1180px) {
  .rj-life { grid-template-columns: 240px minmax(0, 1fr); }
  .rj-province-side { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); position: static; }
  .rj-atlas-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  html { scroll-padding-top: calc(var(--rj-header-height, 112px) + 90px); }
  .rj-intro { grid-template-columns: 1fr; gap: 30px; }
  .rj-intro-copy { padding-top: 0; }
  .rj-intro-stamp { right: -38px; top: 5px; width: 48px; height: 48px; font-size: 14px; }
  .rj-life { grid-template-columns: 1fr; }
  .rj-identity, .rj-province-side { position: static; }
  .rj-identity { order: 2; }
  .rj-event-column { order: 1; }
  .rj-mobile-stats {
    position: sticky; top: var(--rj-header-height, 112px); z-index: 12;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
    margin: 0 0 16px; padding: 9px 12px; background: var(--paper2);
    border: 1px solid var(--line);
  }
  .rj-mobile-stats div { min-width: 0; text-align: center; }
  .rj-mobile-stats dt { color: var(--muted); font-size: 14px; line-height: 1.5; }
  .rj-mobile-stats dd { margin: 2px 0 0; color: var(--ink); font-size: 20px; line-height: 1.4; font-variant-numeric: tabular-nums; }
  .rj-province-side { order: 3; }
  .rj-summary-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rj-compare-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rj-focus-grid { grid-template-columns: 1fr; }
  .rj-atlas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  body { font-size: 17px; }
  .rj-topbar {
    display: grid; grid-template-columns: auto minmax(0, 1fr);
    gap: 5px 10px; padding: 10px 14px; align-items: center;
  }
  .rj-brand { grid-column: 2; grid-row: 1; }
  .rj-brand strong { font-size: 21px; }
  .rj-brand span { display: none; }
  .rj-back { grid-column: 1; grid-row: 1; font-size: 14px; }
  .rj-tools { grid-column: 1 / -1; grid-row: 2; width: 100%; justify-content: space-between; gap: 0; }
  .rj-tools button { flex: 1 1 auto; padding: 7px 8px; font-size: 14px; text-align: center; }
  .rj-tools .game-help-button { flex: 0 0 44px; margin-right: 0; justify-self: start; }
  .rj-app { padding: 22px 14px 40px; }
  .rj-footer { padding: 18px 14px 28px; display: block; }
  .rj-footer span { display: block; margin-top: 6px; }
  .rj-title { font-size: clamp(58px, 20vw, 86px); }
  .rj-subtitle { font-size: 20px; }
  .rj-lead { font-size: 16px; }
  .rj-intro-stamp { right: -32px; top: 2px; width: 42px; height: 42px; font-size: 12px; }
  .rj-intro-actions .rj-button { width: 100%; }
  .rj-name-row { flex-wrap: wrap; }
  .rj-name-row .rj-button { width: 100%; }
  .rj-intro-card { padding: 8px; }
  .rj-intro-data { padding: 18px 8px 8px; }
  .rj-intro-data-head h2 { font-size: 32px; }
  .rj-event-body { padding: 20px 17px 24px; }
  .rj-event-text { font-size: 17px; }
  .rj-life-bar { align-items: flex-start; }
  .rj-age-track { margin-top: 6px; width: 30%; }
  .rj-scene-wrap { padding: 5px; }
  .rj-summary-facts { grid-template-columns: 1fr; }
  .rj-timeline li { grid-template-columns: 56px minmax(0, 1fr); gap: 10px; }
  .rj-archive-seal { position: static; display: inline-block; margin-bottom: 12px; }
  .rj-dialog { width: calc(100% - 18px); max-height: calc(100dvh - 18px); }
  .rj-dialog-head { padding: 16px 16px 12px; }
  .rj-dialog-head h2 { font-size: 25px; }
  .rj-dialog-body { padding: 16px 16px 24px; }
  .rj-atlas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .rj-atlas-card { padding: 10px; }
  .rj-atlas-head h4 { font-size: 18px; }
  .rj-atlas-hook { font-size: 12px; }
  .rj-atlas-card .rj-data-list { display: none; }
}
@media (max-width: 380px) {
  .rj-tools button { font-size: 13px; padding: 6px; }
  .rj-brand strong { font-size: 19px; }
  .rj-title { font-size: 54px; }
  .rj-atlas-grid { grid-template-columns: 1fr; }
  .rj-summary-facts div { display: block; }
  .rj-summary-facts strong { display: block; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.rj-health { margin-top: 16px; padding-top: 14px; border-top: 1px dotted var(--line); }
.rj-health > summary { color: var(--teal); }
.rj-health p, .rj-settled-health p { font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.rj-health-glance { display: block; margin-top: 5px; color: var(--muted); font-size: 14px; font-weight: 400; line-height: 1.7; overflow-wrap: anywhere; }
.rj-health-measures { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 12px 0 16px; }
.rj-health-measures div { display: flex; gap: 12px; }
.rj-health-measures dt { color: var(--muted); }
.rj-health-measures dd { margin: 0; font-variant-numeric: tabular-nums; }
.rj-health-factors { margin: 12px 0; padding-left: 1.3em; color: var(--muted); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.rj-health-feedback { color: var(--teal); }
.rj-health-feedback:empty { display: none; }
.rj-settled-health { margin: 12px 0; padding-left: 12px; border-left: 2px solid var(--teal); }
.rj-interest { margin-top: 16px; padding-top: 14px; border-top: 1px dotted var(--line); }
.rj-interest > summary { color: var(--teal); }
.rj-interest-glance { display: block; margin-top: 5px; color: var(--muted); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.rj-interest .rj-annual-focus-row { margin-top: 16px; }
.rj-interest-detail, .rj-interest-factors, .rj-settled-interest p { font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.rj-interest-factors { padding-left: 1.3em; color: var(--muted); }
.rj-interest-feedback { color: var(--teal); font-size: 14px; }
.rj-interest-feedback:empty { display: none; }
.rj-interest-tracks { margin: 18px 0; }
.rj-interest-tracks div { padding: 10px 0; border-bottom: 1px dotted var(--line); }
.rj-interest-tracks dt { color: var(--ink); }
.rj-interest-tracks dd { margin: 4px 0 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.rj-settled-interest { margin: 12px 0; padding-left: 12px; border-left: 2px solid var(--gold); }
.rj-interest-summary, .rj-review { margin: 28px 0; padding-top: 22px; border-top: 1px solid var(--line); }
.rj-interest-summary h3, .rj-review > h3 { margin: 0 0 14px; font-size: 24px; font-weight: 400; }
.rj-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rj-review-item { padding: 18px; border: 1px solid var(--line); background: var(--paper2); min-width: 0; }
.rj-review-item h4 { margin: 0 0 10px; font-size: 18px; font-weight: 400; }
.rj-review-item p, .rj-review-item summary { font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.rj-review-item summary { color: var(--teal); }
.rj-review-item ol { padding-left: 1.2em; }
.rj-review-item li + li { margin-top: 18px; }
.rj-review-item li span, .rj-review-item li strong { display: block; font-size: 14px; font-weight: 400; }
.rj-review-item li span { color: var(--red); }
@media (max-width: 700px) { .rj-review-grid { grid-template-columns: 1fr; } }

/* 当前事件优先，年度细项由玩家按需展开。 */
.rj-year-plan { margin-bottom: 16px; border-block: 1px solid var(--line); }
.rj-year-plan > summary { min-height: 48px; padding: 10px 0; cursor: pointer; color: var(--teal); }
.rj-year-plan > summary span { margin-left: 14px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.rj-year-plan .rj-annual { margin: 0 0 14px; }
.rj-event-card > .rj-scene-wrap { border-top: 1px solid var(--line); }
.rj-event-context { margin-top: 18px; }
.rj-event-context > summary { min-height: 44px; padding: 8px 0; color: var(--teal); cursor: pointer; }
.rj-result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.rj-result-actions .rj-button, .rj-result-actions .rj-memory-button { margin: 0; }
.rj-save-warning { margin: 16px auto 0; padding: 14px 20px; max-width: 1000px; border: 1px solid var(--red); background: var(--paper2); color: var(--red-dark); }
.rj-save-warning p { margin: 0 0 6px; }
.rj-save-warning button { min-height: 44px; margin-right: 20px; }
.rj-save-warning[hidden] { display: none; }
.rj-stage-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; scroll-margin-top: calc(var(--rj-header-height, 90px) + 16px); }
.rj-stage-nav button { min-height: 44px; padding: 8px 12px; color: var(--teal); border: 1px solid var(--line); background: var(--paper2); }
.rj-story-stage { border-top: 1px solid var(--line); padding: 12px 0; scroll-margin-top: calc(var(--rj-header-height, 90px) + 16px); }
.rj-story-stage > summary { min-height: 44px; padding: 8px 0; cursor: pointer; color: var(--teal); }
.rj-story-stage > .rj-link { min-height: 44px; }
.rj-review-more { margin-top: 18px; }
.rj-review-more > summary { min-height: 44px; cursor: pointer; padding: 8px 0; color: var(--teal); }
.rj-settled-family { margin: 12px 0; padding-left: 12px; border-left: 1px solid var(--teal); font-size: 14px; }
.rj-summary-actions { margin: 18px 0 24px; }
.rj-tip { margin: 14px 0; padding: 10px 0; border-block: 1px dotted var(--line); color: var(--muted); }
.rj-tip p { margin: 0; font-size: 14px; line-height: 1.8; }
.rj-tip > div { display: flex; flex-wrap: wrap; gap: 12px; }
.rj-tip button { min-height: 44px; font-size: 14px; }
.rj-growth-detail, .rj-ending-narrative { margin: 16px 0; }
.rj-growth-detail > summary, .rj-ending-narrative > summary { min-height: 44px; padding: 8px 0; color: var(--teal); cursor: pointer; }
.rj-growth-detail p, .rj-growth-detail li, .rj-no-gain { font-size: 14px; line-height: 1.8; }
.rj-growth-detail ul { margin: 8px 0; padding-left: 1.3em; }
.rj-career-result { margin: 14px 0; padding-top: 12px; border-top: 1px dotted var(--line); }
.rj-career-result p { font-size: 14px; line-height: 1.8; }
.rj-career-year-note { color: var(--muted); font-size: 14px; line-height: 1.8; }
.rj-growth-preview-note { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.8; }
.rj-career { margin-top: 16px; padding-top: 14px; border-top: 1px dotted var(--line); }
.rj-career > summary { color: var(--teal); min-height: 44px; padding-block: 8px; cursor: pointer; }
.rj-career p, .rj-career-measures { font-size: 14px; overflow-wrap: anywhere; }
.rj-career-measures div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dotted var(--line); }
.rj-career-measures dd { margin: 0; }
.rj-ending-people { margin: 26px 0; padding-top: 22px; border-top: 1px solid var(--line); }
.rj-ending-people h2 { margin: 0 0 14px; font-size: 24px; font-weight: 400; }
.rj-ending-people dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.rj-ending-people dt { color: var(--muted); font-size: 14px; }
.rj-ending-people dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.rj-career-summary { margin: 28px 0; padding-top: 22px; border-top: 1px solid var(--line); }
.rj-career-summary h3 { margin: 0 0 14px; font-size: 24px; font-weight: 400; }
.rj-share-editions { display: flex; flex-wrap: wrap; gap: 8px; }
.rj-share-editions button { min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); background: var(--paper2); color: var(--ink); }
.rj-share-editions [aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--paper2); }
.rj-share-image { max-height: 52dvh; overflow: auto; margin-top: 16px; overscroll-behavior: contain; scrollbar-color: var(--teal) var(--paper3); transition: none !important; }
.rj-share-image .rj-share-preview { margin: 0 auto; transition: none !important; }
.rj-share-image.is-original .rj-share-preview { width: var(--share-width, 900px); max-width: none; margin: 0; }
#share-life-caption { font-size: 14px; line-height: 1.8; }
@media (max-width: 700px) {
  .rj-ending-people dl { grid-template-columns: 1fr; }
  .rj-share-image { max-height: 42dvh; }
  .rj-year-plan > summary span { margin-left: 10px; }
  .rj-playback { gap: 6px; padding-bottom: 10px; }
  .rj-playback button { font-size: 14px; padding: 6px 8px; }
  [data-playback-status] { flex-basis: auto; font-size: 12px; }
  .rj-save-warning { margin-inline: 14px; padding: 12px 14px; }
  .rj-summary-actions { gap: 8px; }
  .rj-summary-actions .rj-button { padding: 9px 12px; font-size: 15px; }
}
