/* Monochrome layer; original controls and location structure remain intact. */
body.descent{background:#090909!important;color:#c9c9c9!important;filter:grayscale(1)}
body.descent #content{min-height:740px}
body.descent #main{min-height:740px}
body.descent #header{color:#ddd}
body.descent div.button,body.descent button,body.descent select,body.descent input{color:#ddd;background:#111;border-color:#777}
body.descent button{font:15px Georgia,serif;cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
body.descent button:disabled{color:#666;border-color:#383838;cursor:default}
body.descent button:focus-visible,body.descent select:focus-visible{outline:2px solid #eee;outline-offset:3px}
body.descent div.button.disabled{color:#666;border-color:#444}
body.descent div.button .cooldown{background:#333}
body.descent #echoPanel{color:#ccc}
body.descent .echo-depth{background:#101010;color:#ccc}
body.descent .echo-depth.selected,body.descent .echo-depth:hover:not(:disabled){background:#242424}
body.descent .echo-depth small,body.descent .echo-lead,body.descent #echoLog,body.descent .echo-result p{color:#aaa}
body.descent #echoStats b,body.descent #echoVitals{color:#eee}
body.descent #echoControls,body.descent #echoControls *{touch-action:none}
body.descent #echoToast{max-width:90%;white-space:normal;text-align:center;font-size:13px}
body.descent #notifyGradient{background:linear-gradient(transparent,#090909)}
body.descent #stores:before,body.descent #weapons:before,body.descent #saveNotify,body.descent .eventPanel{background:#090909!important;color:#ddd}
body.descent .eventPanel:before{background:rgba(0,0,0,.7)}
body.descent .echo-workshop{color:#ddd;background:#101010;position:relative;clear:both;margin-top:20px}
body.descent .echo-workshop p{color:#aaa}
body.descent #horrorHouse{position:relative;clear:both;width:660px;max-width:100%;margin:260px 0 20px;padding-bottom:15px}
body.descent #stores,body.descent #weapons{border-color:#666}
.h-kicker{font:10px monospace;letter-spacing:.22em;text-transform:uppercase;color:#888;margin:0 0 16px}
#houseCanvas{width:100%;height:auto;display:block;border:1px solid #444;box-sizing:border-box;image-rendering:pixelated}
#houseStage{font-size:23px;font-weight:normal;letter-spacing:.06em;margin:18px 0 8px}
#houseLine{line-height:1.6;min-height:45px}
#horrorMeters{font:11px monospace;line-height:1.7;color:#999;padding:10px 0;border-top:1px solid #333}
.h-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.h-button{padding:10px 12px;min-height:44px;border:1px solid #666;text-align:left;white-space:normal;max-width:100%;line-height:1.45}
.h-small{font-size:12px;color:#999;line-height:1.6}
.h-journal-button{padding:8px 12px;border:1px solid #666}
.h-pulse-strip{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}
.h-pulse-strip label{font-size:14px}
.h-pulse-strip select{font-size:16px;padding:10px;border:1px solid #777;max-width:100%}
.h-objective{max-width:650px;line-height:1.55;border-left:2px solid #777;padding:8px 12px;color:#bbb}
#horrorOverlay[hidden]{display:none!important}
#horrorOverlay{position:fixed;z-index:1000;inset:0;background:rgba(0,0,0,.88);display:flex;align-items:center;justify-content:center;padding:18px;box-sizing:border-box;backdrop-filter:blur(3px)}
#horrorOverlay>section{position:relative;width:720px;max-width:100%;max-height:calc(100dvh - 40px);overflow-y:auto;overscroll-behavior:contain;background:#101010;border:1px solid #777;padding:28px;box-sizing:border-box;color:#ddd}
#horrorClose{display:block;margin-left:auto;padding:9px 14px;min-height:44px;border:1px solid #555}
#horrorTitle{font-weight:normal;font-size:26px;letter-spacing:.03em;margin:14px 0 20px}
#horrorBody p{font-size:16px;line-height:1.65}
#horrorBody article{padding:14px 0;border-bottom:1px solid #333}
#horrorBody h3{font-weight:normal;font-size:19px;line-height:1.4}
.h-portrait{width:128px;height:128px;image-rendering:pixelated;display:block;margin:10px auto}
.h-bestiary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.h-bestiary img{width:96px;height:96px;image-rendering:pixelated}
.h-bestiary p{font-size:13px!important}
.h-setting{display:block;padding:14px 0}
.h-setting input{display:block;width:100%;min-height:35px}
.h-journal-content>.h-button{display:block;margin-top:10px;width:100%}
body.descent[data-horror-stage="5"] #houseStage{letter-spacing:.12em}
@media(min-width:801px){body.descent #roomPanel{min-height:1100px}body.descent .menu{max-width:100%;background:#090909;padding:8px}}
@media(max-width:800px){
 body.descent #content,body.descent #main{min-height:240px}
 body.descent .echo-workshop{margin-top:24px}
 body.descent #horrorHouse{margin-top:20px}
 #horrorOverlay{padding:10px}
 #horrorOverlay>section{padding:16px;max-height:calc(100dvh - 26px)}
 #horrorTitle{font-size:23px}
 .h-bestiary{gap:12px}
 .h-pulse-strip{gap:8px}
 .h-pulse-strip select{width:155px}
 #horrorMeters{font-size:10px}
}
@media(prefers-reduced-motion:reduce){body.descent *,body.descent *:before{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.h-reduced *{animation:none!important;transition:none!important}
