/* Real scanned-style paper asset; all story text remains selectable and accessible. */
#notebook-dialog{width:min(1100px,97vw);max-height:96vh;padding:14px;background:#15120ef5;border:1px solid #81735c;color:#ede5cc;overflow:auto;box-shadow:0 20px 100px #000}
#notebook-dialog::backdrop{background:#000c;backdrop-filter:blur(7px)}
#notebook-dialog header,#notebook-dialog footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 14px;font:12px monospace}
#notebook-dialog button{background:#28241c;color:#e9ddbc;border:1px solid #756749;padding:12px;cursor:pointer;min-height:44px}
#notebook-dialog button:disabled{opacity:.3;cursor:default}
.book-spread{position:relative;width:min(100%,calc((96vh - 160px)*1.5));margin:auto;aspect-ratio:3/2;background:url('notebook-open-v8.png') center/100% 100% no-repeat}
.book-page{position:absolute;top:14%;bottom:15%;width:34%;color:#34271a;font:clamp(12px,1.25vw,15px)/1.5 Georgia,serif;overflow:auto;scrollbar-width:thin}
#book-left{left:12%}#book-right{left:54%}.book-page h3{font-size:clamp(19px,2vw,25px);margin:12px 0 6px;line-height:1.15;letter-spacing:-.02em}
.page-number,.page-date{font:10px/1.3 monospace;color:#75634a}.page-body{white-space:pre-line;margin:15px 0}.page-clue{font:12px/1.5 monospace;border-top:1px solid #69523955;padding-top:12px}
.missing-page .page-body{border:1px dashed #8c79645c;padding:24px 12px;margin-top:45px;color:#93816a;font-style:italic}
.missing-page:after{content:'';position:absolute;left:0;right:0;bottom:2px;height:24px;background:linear-gradient(135deg,transparent 10px,#80694d25 0) 0 0/19px 100%;pointer-events:none}
#notebook-btn{position:absolute;left:24px;bottom:215px;z-index:18;width:112px;background:#171612dc;border:1px solid #8c7953;color:#eee0b8;cursor:pointer;padding:5px}
#notebook-btn img{display:block;width:100%;height:56px;object-fit:cover}#notebook-btn span{font:10px monospace}
#hotbar{position:absolute;z-index:18;left:24px;bottom:52px;display:grid;grid-template-columns:repeat(8,1fr);gap:5px;width:min(690px,calc(100vw - 285px))}
#hotbar button{position:relative;min-width:0;min-height:69px;padding:21px 4px 7px;background:#171b16e8;border:1px solid #888371;color:#d9d7c6;cursor:pointer}
#hotbar kbd{position:absolute;top:4px;left:5px;font:11px monospace;color:#b9b29a}
#hotbar .slot-name{display:block;font:9px monospace;overflow:hidden;text-overflow:ellipsis}#hotbar .slot-count{display:block;font:9px monospace;margin-top:7px;color:#bab6a1}
#hotbar button:disabled{opacity:.42;cursor:default}#hotbar button.selected{border-color:#ffe6a1;box-shadow:inset 0 -2px #ffe6a1;background:#403b28ec}
#return-use{position:absolute;z-index:18;left:50%;bottom:25%;transform:translateX(-50%);padding:15px;background:#14251eeb;color:#d5f5df;border:1px solid #8fd6a5;cursor:pointer}#return-use[hidden]{display:none}
#weapon-hud{right:calc(var(--map-size) + 36px);bottom:139px;max-width:250px}
#weapon-hud .gear-slots{display:none}#aim-btn{background:#171e1eec;border:1px solid #817b69;color:#e4dcc5;padding:8px;cursor:pointer}
.status-card{bottom:140px}.campaign-note{font:12px/1.8 monospace;color:#b5af91;padding:15px}.campaign-index .level-choice{cursor:default}.campaign-index .level-choice:hover{background:transparent}
#shell:has(#start-screen:not([hidden])) #hotbar,#shell:has(#start-screen:not([hidden])) #notebook-btn,#shell:has(#spectator-hud:not([hidden])) #hotbar{display:none}
.book-page::-webkit-scrollbar{width:4px}.book-page::-webkit-scrollbar-thumb{background:#957d5766}
@media(max-width:760px){#hotbar{left:10px;bottom:10px;width:calc(100% - 184px);grid-template-columns:repeat(4,1fr);gap:3px}#hotbar button{min-height:55px;padding:17px 2px 4px}#hotbar .slot-name,#hotbar .slot-count{font-size:8px}.status-card{bottom:185px}#notebook-btn{left:10px;bottom:265px;width:92px}#weapon-hud{bottom:260px;right:12px;width:150px}.book-spread{aspect-ratio:auto;display:grid;gap:20px;background:none;padding:12px}.book-page{position:relative!important;left:auto!important;top:auto;bottom:auto;width:100%;min-height:430px;background:#d6c19a;padding:25px;font-size:15px;overflow:visible;box-shadow:inset 0 0 45px #87613b66}.book-page h3{font-size:24px}.page-clue{font-size:13px}#notebook-dialog header{font-size:10px}#notebook-dialog footer{padding:5px;font-size:10px}#notebook-dialog button{padding:10px}}
