.book-shelf{margin-top:22px;--cover-width:clamp(158px,20vw,220px)}
.shelf-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:8px}
.shelf-hint{margin:0;font-size:.85rem;color:var(--muted,#c1adb9)}
.shelf-controls{display:flex;gap:8px;flex-shrink:0}
.shelf-arrow{width:44px;height:44px;border:1px solid #766046;border-radius:50%;background:#21141e;color:#ffd65c;font-size:25px;cursor:pointer}
.shelf-arrow:hover:not(:disabled){border-color:#ffd65c;background:#381829}
.shelf-arrow:disabled{opacity:.3;cursor:default}
.shelf-arrow:focus-visible,.book-card:focus-visible,.shelf-track:focus-visible{outline:3px solid #ffd65c;outline-offset:4px}
.shelf-track{display:flex;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:6px;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#9c774b #21141e;padding:12px 6px 18px;list-style:none;margin:0}
.shelf-track>li{flex:0 0 var(--cover-width);min-width:0;scroll-snap-align:start}
.book-card{display:block;color:inherit;text-decoration:none;text-align:left}
a.book-card:hover .book-face{border-color:#ffd65c;transform:translateY(-3px)}
.book-face{position:relative;width:100%;aspect-ratio:8.5/11;overflow:hidden;background:#1e1520;border:1px solid #6b4d39;border-radius:3px 7px 7px 3px;box-shadow:0 7px 16px #0006;transition:transform .18s,border-color .18s}
.book-cover{display:block;width:100%;height:100%;object-fit:contain;background:#100b13}
.book-face.wrap-right .book-cover{position:absolute;height:100%;width:auto;max-width:none;right:0;top:0;object-fit:initial}
.book-ribbon{position:absolute;left:0;right:0;bottom:14%;padding:10px 5px;text-align:center;text-transform:uppercase;font:700 clamp(11px,1.3vw,14px)/1.2 Arial,sans-serif;letter-spacing:.1em;background:#a91a3aeF;color:#fff8ef;box-shadow:0 2px 8px #0009;border-block:1px solid #e4b96d}
.book-ribbon.coming-soon{background:#edc26df2;color:#24141d}
.book-name{display:block;margin-top:12px;font:600 .93rem/1.35 Arial,sans-serif;color:#fff8ef}
.book-note{display:block;margin-top:4px;font:.8rem/1.3 Arial,sans-serif;color:var(--muted,#c1adb9)}
.mystery-face{display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#2b1925,#120d15);border:1px solid #98764d}
.mystery-face::after{content:"";position:absolute;inset:12px;border:1px solid #725536;border-radius:2px}
.mystery-mark{font:120px/1 Georgia,serif;color:#e9c586;text-shadow:0 3px 12px #000;z-index:1}
#books.books-ready #bookLinks>a.action{display:none}
@media(max-width:520px){.book-shelf{--cover-width:170px}.shelf-track{gap:14px}.shelf-hint{max-width:180px;font-size:.8rem}}
@media(prefers-reduced-motion:reduce){.book-face{transition:none}}

.book-shelf input[type=text]{width:100%}
