
html,body{overscroll-behavior:none}#dnhMainBgm{display:none!important}
/* One compact, non-overlapping object row in every chapter. */
#gameHost #game>header>nav,#gameHost #game>header nav{display:flex!important;flex-flow:row nowrap!important;align-items:flex-start!important;justify-content:flex-end!important;gap:clamp(4px,.55vw,9px)!important;max-width:58vw!important;overflow:visible!important}
#gameHost #game>header nav>button,#gameHost #game>header nav>.dnhLangHud{flex:0 0 auto!important}
.dnhArchiveHud{width:64px!important;height:58px!important;padding:0!important;background:transparent!important;border:0!important;filter:drop-shadow(0 4px 4px #17211c70)!important}
.dnhFoldedScroll{inset:6px 2px 7px!important;grid-template-columns:1fr .86fr 1fr!important;transform:rotate(-1.2deg)!important}
.dnhFoldedScroll i{border-color:#725341!important;background:linear-gradient(155deg,#eee1c5,#d7c8a8 48%,#b7c8bd)!important;box-shadow:inset 0 0 0 1px #fff6df,inset 0 0 0 2px #785b48aa!important}
.dnhFoldedScroll i:nth-child(2){transform:translateY(-3px)!important;background:linear-gradient(165deg,#f5e8cc,#cad5ca)!important}.dnhFoldedScroll i:nth-child(3){transform:translateY(1px)!important}
.dnhFoldedScroll b{right:19px!important;top:7px!important;font-size:9px!important;color:#74372f!important;letter-spacing:.04em!important}.dnhFoldedScroll:before,.dnhFoldedScroll:after{height:4px!important}.dnhFoldedScroll em{display:none!important}
.dnhLangHud{width:27px!important;height:58px!important}.dnhLangHud>button{width:24px!important;height:48px!important}.dnhLangMenu{display:none!important}
.dnhLangHud path{stroke:#cf8068!important;stroke-width:1.2!important;stroke-dasharray:7 3 2 3!important}.dnhLangHud .label b{font-size:12px!important}.dnhLangHud .label small{font-size:7px!important}
/* The breathing light is engraved on the object/seal edge, never outside it. */
.dnhArchiveHud.discover .dnhFoldedScroll i,.dnhArchiveHud:focus-visible .dnhFoldedScroll i{animation:dnhV22Edge 2.2s ease-in-out infinite!important}
@keyframes dnhV22Edge{0%,100%{box-shadow:inset 0 0 0 1px #fff6df,inset 0 0 0 2px #785b48aa!important}50%{box-shadow:inset 0 0 0 1px #fff7ce,inset 0 0 7px 2px #e5ba68!important}}
/* Compendium: visible exit, clean folio layers, no click-blocking cover. */
#dnhArchive[open]{z-index:100000!important;pointer-events:auto!important}.tcScroll{isolation:isolate!important}.tcClose{position:absolute!important;left:auto!important;right:22px!important;top:19px!important;bottom:auto!important;z-index:40!important;width:auto!important;height:36px!important;border-radius:2px!important;padding:0 13px!important;background:#f4e8d1!important;box-shadow:0 3px 10px #2b1b1450!important}.tcClose:before{content:"收卷 ";font-size:13px}.dnhEn~.tcClose:before{content:""}
.tcIndex,.tcDetail{min-width:0!important}.tcHero img,.tcPortrait img{object-fit:contain!important;object-position:center bottom!important}
html[data-dnh-lang="en"] .tcScroll{grid-template-columns:92px minmax(300px,.88fr) minmax(390px,1.12fr)!important}html[data-dnh-lang="en"] .tcInfoCard small,html[data-dnh-lang="en"] .tcFacts p{line-height:1.5!important}
/* English titles/objectives wrap in their own columns and never cover tasks. */
html[data-dnh-lang="en"] #gameHost .chapter{max-width:min(42vw,600px)!important;align-items:flex-start!important}html[data-dnh-lang="en"] #gameHost .chapter h1{font-size:clamp(17px,1.7vw,27px)!important;line-height:1.08!important;letter-spacing:.02em!important;margin-top:2px!important}html[data-dnh-lang="en"] #gameHost #objective{top:clamp(82px,13vh,118px)!important;max-width:min(39vw,520px)!important;font-family:Georgia,serif!important}
/* Chapter Two always covers the viewport; its canvas and hit layer share one box. */
body.chapter-2 #gameHost,body.chapter-2 #gameHost #game,body.chapter-2 #gameHost #world,body.chapter-2 #gameHost canvas#scene{inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;transform:none!important;aspect-ratio:auto!important}
body.chapter-2 #gameHost #world,body.chapter-2 #gameHost canvas#scene{position:absolute!important;object-fit:cover!important}
/* Chapter Four has no duplicate Chapter object. */
body.chapter-4 #gameHost #menu{display:none!important}
@media(max-width:820px){#gameHost #game>header>nav,#gameHost #game>header nav{gap:2px!important;max-width:61vw!important}.dnhArchiveHud{width:50px!important;height:48px!important}.dnhLangHud{height:48px!important;transform:scale(.86);transform-origin:top center}.dnhArchiveHint{right:70px!important;top:58px!important}.tcClose{right:13px!important;top:12px!important}.tcScroll{grid-template-columns:62px 1fr!important;padding:17px!important}}
