
/* V17 — keep the atlas chapter header in normal document flow. */
body.chapter-3 #game .atlasDialog header.categoryIntro,
#gameHost .atlasDialog header.categoryIntro{
  all:revert!important;box-sizing:border-box!important;position:relative!important;
  inset:auto!important;display:grid!important;grid-template-columns:220px minmax(0,1fr)!important;
  gap:25px!important;align-items:center!important;width:100%!important;height:auto!important;
  min-height:181px!important;margin:0 0 18px!important;padding:17px 19px!important;
  overflow:visible!important;background:linear-gradient(105deg,#eee1c7,#f7eedc)!important;
  border:1px solid #b89a70!important;color:#4d493f!important;text-shadow:none!important;
  pointer-events:auto!important;filter:none!important;transform:none!important;z-index:auto!important;
}
#gameHost .atlasDialog header.categoryIntro>div:last-child{all:revert!important;display:block!important;min-width:0!important;position:static!important;color:#4d493f!important;text-shadow:none!important}
#gameHost .atlasDialog header.categoryIntro .eyebrow{position:static!important;margin:0 0 5px!important;color:#8a5e49!important;font:13px/1.45 "Noto Serif CJK SC","Songti SC",serif!important;letter-spacing:.14em!important;text-shadow:none!important}
#gameHost .atlasDialog header.categoryIntro h2{position:static!important;margin:3px 0 8px!important;color:#59483d!important;font:normal clamp(25px,2.3vw,34px)/1.3 "Noto Serif CJK SC","Songti SC",serif!important;letter-spacing:.14em!important;text-shadow:none!important}
#gameHost .atlasDialog header.categoryIntro p:not(.eyebrow){position:static!important;margin:0!important;color:#514c42!important;font:15px/1.78 "Noto Serif CJK SC","Songti SC",serif!important;letter-spacing:.025em!important;text-shadow:none!important;white-space:normal!important}
#gameHost .atlasDialog header.categoryIntro .sourceTags{position:static!important;display:flex!important;flex-wrap:wrap!important;gap:6px!important;margin-top:10px!important;color:#765f4f!important;text-shadow:none!important}
#gameHost .atlasDialog header.categoryIntro .categorySeal{position:relative!important;inset:auto!important;width:100%!important;min-width:0!important;height:145px!important;margin:0!important;transform:none!important;filter:none!important;text-shadow:none!important;overflow:hidden!important}
@media(max-width:720px){#gameHost .atlasDialog header.categoryIntro{grid-template-columns:1fr!important;gap:14px!important;min-height:0!important;padding:14px!important}#gameHost .atlasDialog header.categoryIntro .categorySeal{height:112px!important}}

#dnhLang{position:fixed;right:17px;top:74px;z-index:92000;display:flex;align-items:center;gap:7px;min-width:88px;justify-content:center;padding:8px 13px;border:1px solid #b18f6d;border-radius:22px;background:linear-gradient(145deg,#fbf0dcf2,#dfc9a8f2);box-shadow:0 4px 14px #21170e52;color:#604938;font:600 14px/1.2 Georgia,"Noto Serif CJK SC",serif;letter-spacing:.04em;cursor:pointer;backdrop-filter:blur(3px)}
#dnhLang:hover,#dnhLang:focus-visible{background:#fff6e5;outline:2px solid #aa654d;outline-offset:2px}#dnhLang b{color:#934d3d;font-weight:700}html[lang="en"] #dnhLang{font-family:Georgia,"Times New Roman",serif}
html[lang="en"] #gameHost,html[lang="en"] body>dialog,html[lang="en"] #dnhTools,html[lang="en"] #dnhBag{font-family:Georgia,"Times New Roman","Noto Serif",serif!important}html[lang="en"] #gameHost p,html[lang="en"] #gameHost button,html[lang="en"] #gameHost span{letter-spacing:.01em}
@media(max-width:700px){#dnhLang{right:7px;top:58px;min-width:72px;padding:7px 9px;font-size:12px}}

#dnhAudioPanel .dnhSoundRow{grid-template-columns:112px minmax(120px,1fr) 54px 72px!important;gap:12px!important}
#dnhAudioPanel .dnhSoundRow output{font:13px/1 sans-serif;color:#786553;text-align:right;font-variant-numeric:tabular-nums}
#dnhAudioPanel .dnhAudioNote{margin:18px 0 0;padding:12px 15px;border-left:3px solid #8b6750;background:#fff8e777;color:#65584b;font-size:14px;line-height:1.7}
@media(max-width:620px){#dnhAudioPanel .dnhSoundRow{grid-template-columns:78px 1fr 44px!important}#dnhAudioPanel .dnhSoundRow output{display:none}}
