/* Room 104 only: lighter illustrated entrances, with the existing gallery layout. */
#series .library-door{background-image:url('assets/library-doors-pastel-v68.png');box-shadow:1px 2px 4px #66573f1c;transition:transform .2s,box-shadow .2s}
#series .library-door:hover{transform:translateY(-1px);box-shadow:1px 3px 6px #66573f26}
#series .library-door-wrap{background:none;border-bottom:1px solid #b9ad982f;box-shadow:none}
#series .door-nameplate{background:#f7f2e6;border:1px solid #b8ab8a80;box-shadow:0 1px 1px #78694d15;color:#635d4d;font-weight:500;border-radius:2px}
#series .door-nameplate::before,#series .door-nameplate::after{display:none}
#series .door-caption{color:#817967}
#series .own-library-lamp{border-color:#ada18b;border-top-color:#9a8e76;background:#fff3cd;box-shadow:0 2px 6px #eed9a752}
#series .own-library-lamp::after{opacity:.6}
#series .library-door-wrap>.community-like{border-color:#bcb7a580;background:#faf8f1;color:#777a67;font-weight:400}
/* A single shelf bay with only a cropped hint of the bay underneath. */
#series .personal-work-shelf.soft-bookshelf{display:block;min-height:0;overflow-y:auto;overflow-x:hidden;border:0;background:none;padding:0 4px 12px;scrollbar-width:thin;overscroll-behavior-y:contain}
#series .library-bookcase-stage{--case-height:clamp(270px,44svh,380px);box-sizing:border-box;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:clamp(20px,4vw,60px);height:var(--case-height);padding:calc(var(--case-height)*.12) 8% calc(var(--case-height)*.20);background:url('assets/library-full-bay-v68.png') center/100% 100% no-repeat;overflow:hidden}
#series .library-bookcase-stage>.personal-work{display:flex;align-items:flex-end;justify-content:center;align-self:end;height:auto;min-height:0;max-width:100%;margin:0;transition:transform .2s}
#series .library-bookcase-stage>.personal-work:hover:not(:disabled){transform:translateY(-2px)}
#series .library-bookcase-stage .library-book-cover{box-sizing:border-box;height:calc(var(--case-height)*.60);width:auto;max-width:100%;max-height:none;min-height:0;aspect-ratio:.7;margin:0;box-shadow:3px 3px 6px #5f503727}
#series .library-bookcase-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(20px,4vw,60px);padding:10px 6% 0}
#series .library-bookcase-controls>.work-cover-wrap{min-width:0;display:flex;flex-direction:column;align-items:center;gap:8px}
#series .library-bookcase-controls .community-like{font-weight:400;border-color:#c4bca78a;background:#fcfaf3}
#series .library-bookcase-stage .library-cover-name{font-size:clamp(17px,1.65vw,23px)}
@media(max-width:720px){
 #series .library-bookcase-stage{--case-height:clamp(210px,68vw,300px);gap:9px;padding-inline:8%}
 #series .library-bookcase-controls{gap:9px;padding-inline:8%;padding-top:8px}
 #series .library-bookcase-stage .library-book-cover{height:auto;width:100%;max-height:calc(var(--case-height)*.60);padding:14px 7px 10px}
 #series .library-bookcase-stage .library-cover-name{font-size:clamp(12px,3.4vw,16px);line-height:1.5}
 #series .library-bookcase-stage .library-cover-meta{font-size:8px}
 #series .library-bookcase-controls .community-like{min-width:0;width:100%;padding:6px 3px;font-size:10px;gap:3px}
 #series .library-bookcase-controls .work-cover-theme{max-width:100%;width:100%;font-size:10px}
}
@media(prefers-reduced-motion:reduce){#series .library-door,#series .library-bookcase-stage>.personal-work{transition:none}}
@media(max-width:720px){#series .personal-work-shelf.soft-bookshelf{overflow:visible}}
/* Replacing door cards with a bookcase must not move the document's scroll anchor. */
#series{overflow-anchor:none}
#series .library-door{background-image:none!important;background-color:transparent}

/* Quietly sculpted door illustration: lacquered wood, inset bevels and warm brass. */
#series .library-door{box-sizing:border-box;width:100%;max-width:142px;aspect-ratio:.47;padding:0;border:0;border-radius:0;background:none!important;box-shadow:none;overflow:visible;transition:transform .24s ease,filter .24s ease}
#series .library-door:hover{transform:translateY(-3px);filter:drop-shadow(0 6px 7px #59452b38)}
#series .library-door:focus-visible{outline:3px solid #a77842;outline-offset:5px}
#series .library-door .door-illustration{position:absolute;inset:0;z-index:1;display:block;width:100%;height:100%;filter:drop-shadow(0 4px 5px #4938242e);pointer-events:none}
#series .library-door .door-illustration svg{display:block;width:100%;height:100%;overflow:visible}
#series .library-door .door-object{position:absolute;z-index:3;top:54%;left:50%;width:58px;height:72px;transform:translate(-50%,-50%);display:grid;place-items:center;filter:drop-shadow(0 3px 3px #604b2e48);pointer-events:none}
#series .library-door .door-object svg{display:block;width:100%;height:100%;overflow:visible}
#series .library-door .door-nameplate{z-index:4;top:22%;left:50%;right:auto;width:74%;min-height:30px;transform:translateX(-50%);padding:4px 8px;border:1px solid #aa8954;border-radius:3px;background:linear-gradient(180deg,#fffaf0 0%,#f1e6cc 48%,#e6d5b2 100%);box-shadow:0 2px 4px #55432830,inset 0 1px #fff;color:#55452e;font-size:clamp(10px,.8vw,13px);line-height:1.3;font-weight:600}
#series .library-door .door-nameplate::before,#series .library-door .door-nameplate::after{display:block;color:#aa8954;font-size:9px}
#series .library-door.is-empty{filter:grayscale(.78);opacity:.62}
#series .library-door.is-empty:hover{transform:none;filter:grayscale(.78);}
#series .library-door-wrap{padding-top:17px;background:none;border-bottom:1px solid #b9ad982f;box-shadow:none}
@media(max-width:720px){#series .library-door{max-width:126px;aspect-ratio:.47}#series .library-door .door-object{width:48px;height:60px}#series .library-door .door-nameplate{min-height:27px;font-size:10px}}
@media(prefers-reduced-motion:reduce){#series .library-door{transition:none}}
