/* Approved illustrated entrance and full-length history reports, 2026-10-29. */
@font-face{font-family:"Ma Shan Zheng History";src:url("/assets/fonts/MaShanZheng-history.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Noto Serif SC History";src:url("/assets/fonts/NotoSerifSC-history-500.woff2") format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"Noto Serif SC History";src:url("/assets/fonts/NotoSerifSC-history-700.woff2") format("woff2");font-weight:700;font-display:swap}
.history-standalone{background:#f6eed8;color:#163c31}
.history-standalone::before,.page-report:has(.history-report)::before{content:none}
.history-entry{position:relative;isolation:isolate;width:100%;min-height:100svh;aspect-ratio:853/1844;overflow:hidden;background:#f6eed8}
.history-entry-art{position:absolute;inset:0;z-index:-1;width:100%;height:100%;object-fit:cover;object-position:center bottom}
.history-entry-copy{width:calc(100% - 56px);max-width:390px;margin:0 auto;padding:clamp(18px,4svh,32px) 0 0;text-align:center;font-family:"Noto Serif SC",serif;font-weight:500}
.history-entry h1{margin:0;color:#103b2f;font-size:clamp(28px,8.15vw,34px);font-weight:600;line-height:1.35;letter-spacing:0}
.history-entry-meta{margin:10px 0 0;color:#284b3d;font-size:14px;line-height:1.5;font-variant-numeric:tabular-nums}
.history-entry-intro{max-width:330px;margin:12px auto 0;font-size:16px;font-weight:600;line-height:1.7;color:#173c2e;text-wrap:pretty}
.history-entry .redeem-form{width:100%;max-width:280px;margin:14px auto 0;text-align:left}
.history-entry .redeem-form>label{font-size:14px;color:#1c4235;line-height:1.5}
.history-entry .code-input{box-sizing:border-box;width:100%;height:44px;margin-top:6px;padding:9px 13px;border:1px solid #527163;border-radius:5px;background:rgba(255,253,246,.69);font-family:"Noto Serif SC",serif;font-size:16px;color:#153d31}
.history-entry .code-input::placeholder{color:#677769}
.history-entry .redeem-form>label.remember-choice{min-height:44px;margin:3px -8px 1px;padding:0 8px;background:linear-gradient(90deg,rgba(255,249,233,.94),rgba(255,249,233,.9) 80%,transparent);font-family:"Noto Serif SC",serif;font-size:16px;font-weight:600;line-height:1.5;color:#173c2e}
.history-entry .remember-choice input{width:18px;height:18px;flex-basis:18px;margin:0;accent-color:#235747}
.history-entry .submit-code{display:flex;justify-content:center;width:100%;min-height:44px;margin-top:5px;padding:9px 16px;border:0;border-radius:5px;background:#164e40;color:#fffaf0;font-size:18px;line-height:1.45}
.history-entry .submit-code:hover{background:#103e32}
.history-entry-resume{display:inline-flex;align-items:center;min-height:34px;margin-top:5px;border-bottom:1px solid currentColor;color:#244b3b;font-family:var(--gh-font-heading);font-size:13px;line-height:1.5}
.history-entry .redeem-error:not(:empty){margin:7px 0}
.history-entry:has(.redeem-error:not(:empty)){min-height:max(100svh,900px)}
.page-question,.page-review{--paper:#f8f1e2;--ink:#203d34;--olive:#597653;--muted:#526854;--line:#cdd3bd;background:var(--paper)}
.page-question::before,.page-review::before{opacity:1;background-color:#f4e7cf;background-image:linear-gradient(180deg,rgba(251,246,233,.7),rgba(251,246,233,.94) 50%,rgba(251,246,233,.85)),url("/assets/history/scenes/v2-20261029/reading-ground.png");background-position:center,center top;background-size:100% 100%,cover;background-repeat:no-repeat;background-blend-mode:normal,luminosity}
.page-report:has(.history-report){--paper:#eef2ed;--ink:#153b4d;--olive:#5a8279;--muted:#52655f;--line:#c9d5ce;background:var(--paper)}
.page-report:has(.theme-wu_zetian){--paper:#f7f0e3;--ink:#742e24;--olive:#a15947;--muted:#806954;--line:#ddc9b3}
.page-report:has(.theme-li_qingzhao){--paper:#f1f0e9;--ink:#3c4d5a;--olive:#977c8c;--muted:#60656a;--line:#d5d4cc}
.page-report:has(.theme-cao_cao){--paper:#eef0eb;--ink:#203d4a;--olive:#617f84;--muted:#596865;--line:#cbd4d0}
.page-report:has(.theme-kong_zi){--paper:#f3f1e6;--ink:#304a3c;--olive:#758977;--muted:#626957;--line:#d1d7c8}
.page-report:has(.theme-sima_qian){--paper:#f2efe5;--ink:#29434a;--olive:#6d8273;--muted:#626856;--line:#d4d8cc}
.page-report:has(.theme-huo_qubing){--paper:#eef1ee;--ink:#244451;--olive:#5e8290;--muted:#5d6b6d;--line:#cbd5d4}
.history-report{--paper:inherit;--ink:inherit;--muted:inherit;--olive:inherit;--line:inherit;position:relative;isolation:isolate;width:100%;max-width:780px;padding:0 0 76px;background:var(--paper) url("/assets/history/scenes/v2-20261029/reading-ground.png") center top/100% auto repeat-y;background-blend-mode:luminosity;color:var(--ink)}
.history-report::after{content:"";position:absolute;inset:auto 0 0;z-index:-1;height:260px;background:url("/assets/history/scenes/v2-20261029/report-footer.png") center bottom/100% auto no-repeat;pointer-events:none}
.history-report #report-content{font-family:"Noto Serif SC History","Noto Serif SC",serif}
.history-report{font-family:"Noto Serif SC History","Noto Serif SC",serif}
.history-report .report-hero{display:block;position:relative;margin:0;padding:0;overflow:visible}
.history-report .history-product-title{position:absolute;z-index:3;left:20px;top:14px;max-width:85%;margin:0;padding-bottom:4px;border-bottom:1px solid rgba(255,255,255,.65);color:#fffdf2;font-family:"Noto Serif SC History","Noto Serif SC",serif;font-size:12px;font-weight:500;line-height:1.6;text-shadow:0 1px 3px rgba(21,43,45,.65)}
.history-report .history-portrait{display:block;width:100%;max-width:none;height:auto;aspect-ratio:4/3;object-fit:contain;object-position:center;opacity:1;margin:0;-webkit-mask-image:none;mask-image:none}
.history-report .report-hero .history-person{position:relative;inset:auto;margin:-52px 10% 0 11.5%;padding:0;color:var(--ink)}
.history-report .report-hero .history-person .history-result-label{display:flex;align-items:center;gap:10px;margin:0 0 5px;font-family:"Noto Serif SC History","Noto Serif SC",serif;font-size:14px;font-weight:700;line-height:1.45;letter-spacing:.025em;color:var(--ink)}
.history-report .history-result-label::after{content:"";width:42px;height:1px;background:var(--line)}
.history-report .history-person h1{margin:-6px 0 4px;font-family:"Ma Shan Zheng History","Noto Serif SC History","Noto Serif SC",serif;font-size:clamp(68px,19vw,110px);font-weight:600;line-height:1.15;letter-spacing:0;color:var(--ink)}
.history-report .history-name-art{display:block;width:auto;height:88px;max-width:100%;margin-left:calc(-1 * var(--history-name-inset,0px));object-fit:contain;object-position:left center}
.history-report .history-person .history-epithet{display:flex;align-items:center;gap:8px;margin:0;color:var(--ink);font-family:"Noto Serif SC History","Noto Serif SC",serif;font-size:19px;font-weight:700;line-height:1.5;letter-spacing:.025em}
.history-report .history-epithet::before{content:"";flex:0 0 44px;height:1px;background:linear-gradient(to right,var(--olive) 0 9px,var(--line) 9px 100%)}
.history-report .history-overview{padding:12px 10% 23px 11.5%}
.history-report .history-overview>p,.history-report .report-panel>p{color:var(--ink);font-family:"Noto Serif SC History","Noto Serif SC",serif;font-size:16px;line-height:1.9;font-weight:400}
.history-report .history-overview>p{font-size:15px;font-weight:500;line-height:1.6}
.history-report .history-overview>p.history-context-note{font-size:12px;font-weight:500;line-height:1.8;color:var(--muted)}
.history-report .history-overview>p+p,.history-report .report-panel>p+p{margin-top:15px}
.history-report .report-panel{margin:0 28px;padding:22px 0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
.history-report .report-panel h2{display:flex;align-items:center;gap:11px;margin:0 0 15px;color:var(--ink);font-family:"Noto Serif SC History","Noto Serif SC",serif;font-size:19px;font-weight:700;line-height:1.6;letter-spacing:.025em}
.history-report .report-panel h2::after{content:"";height:1px;flex:1;min-width:14px;background:var(--line)}
.history-report .history-reference h2::before,.history-report .history-scores h2::before{content:"";height:17px;width:2px;background:var(--olive)}
.history-report .history-chart-pair{display:block;margin:0}
.history-report .history-chart-caption{color:var(--muted);font-size:12px;line-height:1.8;margin-top:13px}
.history-report .history-radar-svg{width:100%;max-width:360px;height:auto;display:block;margin:0 auto;overflow:visible}
.history-report .history-radar-svg text{font-family:"Noto Serif SC History","Noto Serif SC",serif;fill:var(--ink);font-size:14px;font-weight:500}
.history-report .history-radar-svg .radar-value{font-family:"EB Garamond","Noto Serif SC History","Noto Serif SC",serif;fill:var(--ink);font-size:17px;font-weight:500}
.history-report .history-radar-svg .radar-grid,.history-report .history-radar-svg .radar-axis{stroke:var(--line)}
.history-report .history-radar-svg .radar-profile{fill:var(--olive);stroke:var(--olive);fill-opacity:.17}
.history-report .history-radar-svg .radar-point{fill:var(--olive);stroke:var(--paper)}
.history-report .history-scores .history-bars{gap:17px;margin:5px 0 0}
.history-report .history-bar-row dt{font-family:"Noto Serif SC History","Noto Serif SC",serif;color:var(--ink);font-weight:500}
.history-report .history-bar-value{font-family:"EB Garamond","Noto Serif SC History","Noto Serif SC",serif;color:var(--ink);font-size:19px;font-weight:500}
.history-report .history-bar-track{background:var(--line);border-radius:0;height:9px}
.history-report .history-bar-fill{background:var(--olive);border-radius:0}
.history-report .report-panel h2.history-chapter-heading{display:flex;gap:8px;align-items:center}
.history-report .history-heading-title{flex-shrink:0}
.history-report .chapter-number{position:relative;flex:0 0 30px;margin-right:0;color:var(--olive);font-family:"EB Garamond",serif;font-size:29px;font-weight:400;font-style:italic;line-height:1.1;letter-spacing:0}
.history-report .chapter-number::after{content:"";position:absolute;right:0;top:5px;width:1px;height:28px;background:var(--line);transform:rotate(40deg)}
.history-report .history-evidence>summary,.history-report .history-evidence-item h3{font-family:"Noto Serif SC History","Noto Serif SC",serif;color:var(--ink)}
.history-report .history-evidence-item p{color:var(--muted)}
.history-report .report-tools,.history-report .report-history,.history-report .report-save-controls{margin:20px 28px 0;color:var(--muted)}
.history-report .report-save-controls .text-action{position:relative;isolation:isolate;max-width:280px;min-height:49px;margin:0 auto;border:0;border-radius:0;background:none;color:#fffdf5;font-family:"Noto Serif SC History","Noto Serif SC",serif;font-size:18px}
.history-report .report-save-controls .text-action::before{content:"";position:absolute;inset:-8px -9px;z-index:-1;background:var(--ink);-webkit-mask:url("/assets/history/scenes/v2-20261029/save-brush.png") center/100% auto no-repeat;mask:url("/assets/history/scenes/v2-20261029/save-brush.png") center/100% auto no-repeat}
.history-report .report-save-controls .text-action:hover{background:none;color:#fff}
.history-report .report-save-controls .arrow{filter:brightness(0) invert(1)}
.history-report .report-save-controls .text-action:hover::before{background:var(--olive)}
@media(max-width:360px){
  .history-report .report-panel h2{font-size:18px;gap:9px}
  .history-report .report-panel h2::after{min-width:0}
  .history-report .chapter-number{flex-basis:28px;margin-right:0}
}
@media(min-width:768px){
  .history-entry{max-width:620px;min-height:max(900px,100svh);margin:auto}
  .history-entry-copy{padding-top:36px}
  .history-entry h1{font-size:40px}
  .history-entry-meta{font-size:16px}
  .history-report .report-hero .history-person{margin:-70px 10% 0 11.5%}
  .history-report .history-overview{padding:15px 10% 28px 11.5%}
  .history-report .report-panel{margin:0 64px;padding:26px 0}
  .history-report .history-overview>p,.history-report .report-panel>p{font-size:17px}
  .history-report .report-panel h2{font-size:22px}
  .history-report .report-tools,.history-report .report-history,.history-report .report-save-controls{margin-inline:42px}
}
@media(max-height:760px) and (max-width:767px){
  .history-entry-copy{padding-top:15px}
  .history-entry h1{font-size:29px;line-height:1.3}
  .history-entry-meta{margin-top:6px}
  .history-entry-intro{margin-top:8px}
  .history-entry .redeem-form{margin-top:9px}
}
@media(max-height:500px) and (min-width:768px){
  .history-entry-copy{padding-top:16px}
  .history-entry h1{font-size:32px;line-height:1.3}
  .history-entry-intro{margin-top:8px}
  .history-entry .redeem-form{margin-top:9px}
}

.history-report.theme-su_shi{--history-name-inset:23px}
.history-report.theme-li_bai{--history-name-inset:16px}
.history-report.theme-cao_cao{--history-name-inset:27px}
.history-report.theme-kong_zi{--history-name-inset:25px}
.history-report.theme-huo_qubing{--history-name-inset:29px}
.history-report.theme-li_qingzhao{--history-name-inset:35px}
.history-report.theme-sima_qian{--history-name-inset:32px}
.history-report.theme-wu_zetian{--history-name-inset:40px}
.history-report.theme-xu_xiake{--history-name-inset:16px}
.history-report.theme-zhuge_liang{--history-name-inset:35px}
