.topbar{top:18px;left:20px;right:20px;height:auto;padding:0;background:none;border:0;pointer-events:none}.brand,.header-actions{pointer-events:auto}.brand{gap:10px;color:#fff7e8;text-shadow:0 2px 10px #10201790}.brand-mark{font-size:24px;width:36px;height:40px;padding-top:4px;color:#fff7e8;border:1px solid #fff8;background:#173128c9;backdrop-filter:blur(9px)}.brand strong{font-size:22px;color:#fff7e8}.brand small{font-size:8px;letter-spacing:2.5px;margin-top:1px}.header-actions{gap:8px}.text-button,.icon-button{height:36px;background:#173128c9;color:#fff7e9;border:1px solid #fff5;border-radius:20px;backdrop-filter:blur(10px)}.text-button{font-size:12px;padding:0 13px}.text-button span{margin:0}.book-icon{font-size:17px;margin-right:6px!important}.icon-button{width:36px}.top-center{display:none}
.section-panel{left:20px;top:50%;transform:translateY(-50%);width:51px;background:#172d25c9;padding:10px 7px;border:1px solid #fff4;box-shadow:0 8px 40px #13170f2b;backdrop-filter:blur(12px);border-radius:28px}.panel-label{display:none}.section-link{position:relative;display:flex;align-items:center;justify-content:center;width:37px;height:37px;padding:0;margin:4px 0;color:#f8efd9;border:0;border-radius:50%}.section-link:hover,.section-link:focus-visible,.section-link.active{background:#e8d6aa;color:#233e33}.section-number{font-size:12px;opacity:1}.section-title{position:absolute;left:48px;top:50%;transform:translateY(-50%);background:#152b23e9;color:#fff6e4;font-size:12px;padding:8px 11px;border-radius:3px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .15s}.section-link:hover .section-title,.section-link:focus-visible .section-title{opacity:1}.section-link .arrow{display:none}
.controls{bottom:20px;gap:12px;background:#172d25ce;color:#fff9ea;padding:8px 9px 8px 13px;border:1px solid #fff4;border-radius:25px;box-shadow:0 8px 35px #16120d2b;backdrop-filter:blur(11px)}.control-hint{display:flex;align-items:center;gap:3px;font-size:11px}.control-hint>span{margin-left:6px}.controls kbd{width:17px;height:17px;color:#fffbd9;border-color:#fff7}.control-rule{height:24px;background:#fff3}.mouse-icon{width:15px;height:23px;border-color:#fff9}.mouse-icon:after{top:3px;left:6px;height:6px;background:#fff9}.look-help{font-size:11px;color:#fff9ea}.primary-button{font-size:12px;border-radius:18px;padding:9px 13px;background:#e4d0a4;color:#183127}.primary-button span{margin-left:8px}.quality-button{font-size:10px;color:#fff9;border:0;padding:8px 5px}.location-pill{left:20px;bottom:24px;font-size:11px}.location-dot{width:5px;height:5px}.mini-map{right:20px;bottom:20px;width:109px;padding:9px 10px 7px;background:#172d25c9;border:1px solid #fff4;border-radius:8px;backdrop-filter:blur(10px)}.map-head{height:10px;margin:0;justify-content:flex-end;color:#eadbb8}.map-room{width:77px;height:103px;background:#eae8dbde}.map-shelf{height:7px;width:22px}.s1{top:50px;width:6px;height:23px}.s2{top:12px;width:6px;height:23px}.s3{left:12px;top:2px}.s4{right:10px;top:2px}.s5{right:18px;top:39px;height:6px;width:23px}.map-table{left:26px;top:60px;width:25px;height:15px}.map-door{left:30px;width:16px}#map-person{width:8px;height:8px}.mini-map button{position:absolute;right:8px;top:7px;width:auto;margin:0;color:#fff9;font-size:12px}#target-label{font-size:12px;padding:7px 12px;border-radius:15px}#status{top:22px;max-width:55%;padding:8px 14px;border-radius:18px;font-size:11px}
.cover-stage span,.dialog-intro{display:none}
/* Both faces of the central shelf share one deeper footprint on the map. */
.s5{height:10px}
#fame-button{width:auto;padding:0 12px;font-size:12px}
.donation-link{display:inline-block;margin:7px 0 14px;padding:11px 15px;border-radius:18px;background:#294b3b;color:#fff4dc;font-size:13px;text-decoration:none}
#fame-dialog{width:min(720px,94vw);padding:42px;background:#faf5e9}
.fame-layout{display:grid;grid-template-columns:190px 1fr;gap:30px;align-items:center}
.fame-photo-wrap{padding:9px;border:5px double #b69251;border-radius:50%;background:#3c3325;box-shadow:0 7px 19px #33241435}
.fame-photo-wrap img{display:block;width:100%;height:232px;border-radius:50%;object-fit:cover;background:#ded3bf}
#fame-name{font-size:31px;margin:12px 0 6px}#fame-nepali{font-size:19px;margin:0;color:#927144}#fame-dates{font-size:13px;margin:9px 0 15px;color:#797963}#fame-bio{font-size:15px;line-height:1.7}#fame-works{font-size:13px;color:#6e684f}#fame-source{font-size:13px;color:#365a45;text-underline-offset:3px}
.fame-bottom{border-top:1px solid #ddd2ba;margin-top:25px;padding-top:15px;display:flex;align-items:center;gap:18px;justify-content:space-between}.fame-bottom>p{font-size:10px;line-height:1.5;margin:0;max-width:400px;color:#87816d}.fame-bottom a{color:inherit}.fame-bottom>div{display:flex;align-items:center;gap:13px;white-space:nowrap;font-size:12px;color:#81785f}.fame-bottom button{width:32px;height:32px;border-radius:50%;background:#e6dcc7;color:#334e3c}
@media(max-width:600px){#fame-dialog{padding:32px 23px 20px}.fame-layout{grid-template-columns:1fr;gap:18px}.fame-photo-wrap{width:145px;margin:auto}.fame-photo-wrap img{height:170px}#fame-name{font-size:27px}.fame-bottom{align-items:flex-start}.fame-bottom>p{font-size:10px}.fame-layout .eyebrow{text-align:center}}
@media(max-width:1100px){.section-panel{top:50%;left:14px;width:47px;padding:8px 5px}.section-link{width:35px;height:35px}.mini-map{right:16px;bottom:20px;width:96px}.location-pill{bottom:28px}.controls{gap:9px}}
@media(max-width:700px){.topbar{top:11px;left:11px;right:11px;height:auto;padding:0}.brand strong{font-size:18px}.brand-mark{width:31px;height:35px;font-size:20px}.brand small{display:none}.action-label{display:none}.book-icon{margin:0!important}.text-button{width:35px;padding:0}.icon-button{width:35px}.section-panel{top:50%;left:9px;width:41px;padding:7px 3px}.section-link{width:33px;height:33px;margin:2px 0}.section-title{display:none}.mini-map{right:9px;bottom:81px;width:78px;padding:5px}.map-room{width:64px;height:85px}.map-head{height:7px}.mini-map button{top:3px;right:5px}.location-pill{left:11px;bottom:91px;font-size:10px}.controls{bottom:13px;padding:7px 8px;gap:8px}.control-hint,.control-rule,.mouse-icon{display:none}.look-help{font-size:10px}.primary-button{padding:9px 12px}.quality-button{display:none}#status{top:12px;max-width:44%;font-size:10px}.book-layout{grid-template-columns:1fr}.touch-controls{bottom:130px}#touch-controls{left:11px;bottom:132px}#touch-controls button{width:35px;height:35px;background:#173128c9;color:#fff5df;border:1px solid #ffffff50;border-radius:50%}}

/* The opened volume has six faces and turns without another WebGL context. */
#book-dialog{width:min(1120px,96vw);max-width:96vw;padding:43px 42px;background:#fbf7ee}
#book-dialog .book-layout{display:grid;grid-template-columns:minmax(270px,1fr) minmax(250px,310px) minmax(130px,160px);gap:28px;align-items:center}
#book-dialog .book-details{min-width:0}
#book-dialog .book-details h2{font-size:clamp(30px,3vw,39px);overflow-wrap:anywhere}
#book-dialog .book-details p{font-size:16px;line-height:1.6}
#book-dialog .book-details h3{font-size:14px}
#book-dialog .author-box p{font-size:14px}
#book-dialog .tags span{font-size:12px}
.book-display{--book-w:210px;--book-h:315px;--book-d:42px;--book-color:#385a44;position:relative;display:grid;place-items:center;min-width:0;min-height:445px;perspective:950px;cursor:grab;touch-action:none;background:radial-gradient(ellipse at center,#efe5ce 0%,#f6efdf 46%,#fbf7ee 75%)}
.book-display:after{content:"";position:absolute;z-index:0;width:215px;height:26px;bottom:29px;background:#3d2c1b38;filter:blur(18px);border-radius:50%;pointer-events:none}
.book-display.is-dragging{cursor:grabbing}
.book-model{position:relative;z-index:1;width:var(--book-w);height:var(--book-h);transform-style:preserve-3d;transform:rotateX(var(--book-x,-6deg)) rotateY(var(--book-y,30deg));transition:transform .18s ease-out;filter:drop-shadow(12px 18px 13px #3d312850)}
.book-display.is-dragging .book-model{transition:none}
.book-face{position:absolute;backface-visibility:hidden;box-sizing:border-box}
.book-front,.book-back{inset:0;width:100%;height:100%}
.book-front{transform:translateZ(calc(var(--book-d)/2));background:var(--book-color);border:1px solid #382b1d99;overflow:hidden}
.book-front img{display:block;width:100%;height:100%;object-fit:cover}
.book-back{transform:rotateY(180deg) translateZ(calc(var(--book-d)/2));background:linear-gradient(125deg,#0004,transparent 35%,#fff2 75%,#0004),var(--book-color);border:10px double #e5cf9a66}
.book-spine,.book-pages{top:0;left:calc((var(--book-w) - var(--book-d))/2);width:var(--book-d);height:100%}
.book-spine{transform:rotateY(-90deg) translateZ(calc(var(--book-w)/2));background:linear-gradient(90deg,#0006,#ffffff29 28%,#0005),var(--book-color);border-inline:2px solid #bca478;display:flex;justify-content:center;align-items:center}
.book-spine span{writing-mode:vertical-rl;transform:rotate(180deg);color:#ead9ac;font:600 11px 'Playfair Display',Georgia,serif;letter-spacing:1px;white-space:nowrap;max-height:calc(var(--book-h) - 25px);overflow:hidden}
.book-pages{transform:rotateY(90deg) translateZ(calc(var(--book-w)/2));background:repeating-linear-gradient(0deg,#dacdb5 0px,#f0e8d5 1px,#d5c7aa 2px,#efe4cc 3px);border:3px solid var(--book-color)}
.book-top,.book-bottom{left:0;top:calc((var(--book-h) - var(--book-d))/2);width:100%;height:var(--book-d);background:repeating-linear-gradient(90deg,#e2d5bb 0px,#f4ecd9 2px,#d6c7a8 3px)}
.book-top{transform:rotateX(90deg) translateZ(calc(var(--book-h)/2));border:3px solid var(--book-color)}
.book-bottom{transform:rotateX(-90deg) translateZ(calc(var(--book-h)/2));border:3px solid var(--book-color)}
.book-purchase{min-height:230px;align-self:stretch;display:flex;align-items:center;justify-content:center;border-left:1px solid #dbd3c0;padding-left:22px}
#book-dialog #buy-options{display:block;width:100%}
#book-dialog #buy-options a,#book-dialog #buy-options button{display:flex;align-items:center;justify-content:center;width:100%;min-height:50px;padding:12px 10px;background:#234636;color:#fff9e9;border-radius:5px;text-decoration:none;font-size:14px;font-weight:600;text-align:center;line-height:1.35}
#book-dialog #buy-options button:disabled{background:#ded9ca;color:#777364;cursor:default}
@media(max-width:900px){#book-dialog .book-layout{grid-template-columns:minmax(0,1fr) minmax(230px,280px);gap:20px}.book-purchase{grid-column:1/-1;min-height:0;border-left:0;border-top:1px solid #dbd3c0;padding:18px 0 0}#book-dialog #buy-options{max-width:240px;margin:auto}}
@media(max-width:700px){#book-dialog{width:min(470px,95vw);padding:30px 23px}#book-dialog .book-layout{display:flex;flex-direction:column;gap:17px}.book-display{order:0;width:100%;min-height:310px;--book-w:154px;--book-h:231px;--book-d:31px}.book-display:after{width:160px;bottom:17px}.book-purchase{order:1;width:100%;border:0;padding:0}.book-details{order:2;width:100%}#book-dialog #buy-options{max-width:none}#book-dialog .book-details h2{font-size:30px}}
