/* 책장과 동화책은 기존 목재·종이 화면 안에서만 꾸민다. */
#bookshopShelf { position:fixed; z-index:3; padding:0; border:0; background:transparent; cursor:pointer; }
#bookshopShelf[hidden] { display:none; }
#bookshopShelf span { position:absolute; bottom:0; left:50%; transform:translateX(-50%); white-space:nowrap; padding:8px 14px; color:#fff5dc; background:#805335; border:2px solid #edcf9d; border-radius:12px; box-shadow:0 2px 3px #32211766; font:16px Storybook,sans-serif; }
#bookshopShelf:focus-visible { outline:3px solid #fff3cc; outline-offset:3px; }
#bookshopShelf:active span { background:#604029; }
body #modal #mcard .bs-intro { margin:4px 0 8px; color:#5a493b; text-align:center; font-size:16px; }
body #modal #mcard:has(.bs-library) { background:#f6e7ce!important; }
.bs-row { display:flex; justify-content:center; align-items:flex-end; gap:14px; padding:20px 12px 0; border-bottom:15px solid #946039; background:linear-gradient(#533c2b22,#533c2b05 75%); box-shadow:0 6px 0 #5e4029,0 14px 18px #51342433; margin:0 -2px 28px; }
.bs-book { width:calc((100% - 28px)/3); max-width:120px; min-width:0; min-height:44px; border:0; padding:0 0 5px; background:none; color:#473528; cursor:pointer; text-align:center; }
.bs-cover { position:relative; display:block; aspect-ratio:3/4.3; background:var(--book-color); border:2px solid #51402f; border-left:7px solid var(--book-color); border-radius:3px 5px 5px 3px; box-shadow:4px 2px 0 #e0d3b8,6px 3px 0 #544330,8px 6px 8px #36211755; overflow:hidden; }
.bs-cover-art,.bs-picture { background-size:200% 300%; background-repeat:no-repeat; }
.bs-cover-art { position:absolute; inset:0; }
.bs-cover strong { position:absolute; inset:0 0 auto; padding:8px 4px; min-height:3em; font:17px/1.25 Storybook,sans-serif; color:#fffbea; background:linear-gradient(var(--book-color),#403527c9); text-shadow:0 1px #302618; }
.bs-book small { display:block; padding-top:8px; font-size:12px; color:#4b3b2a; }
.bs-book:hover .bs-cover,.bs-book:focus-visible .bs-cover { outline:3px solid #dbc484; outline-offset:3px; }
.bs-book:focus-visible { outline:3px solid #805335; outline-offset:5px; }
.bs-book:active .bs-cover { filter:brightness(.9); }
.bs-credit { margin:2px 0 0; font-size:13px; color:#66533f; text-align:center; }
body #modal #mcard:has(.bs-reader) { background:#f6edda!important; }
.bs-spread { padding:10px 14px 14px; background:linear-gradient(90deg,#dfceb1 0,#fff8e7 3%,#fff9ec 95%,#e5d5bb); border:1px solid #d9c7a7; border-radius:3px 10px 10px 3px; box-shadow:3px 4px 0 #ddcfb9,5px 6px 0 #bcaa8f; }
.bs-picture { width:min(100%,240px); aspect-ratio:470/557; margin:0 auto 16px; border-radius:3px; background-color:#e9ddc4; }
body #modal #mcard .bs-copy p { margin:0 0 12px; font-family:'Malgun Gothic',sans-serif; font-size:max(16px,1rem); line-height:1.8; color:#3f3328; word-break:keep-all; overflow-wrap:anywhere; }
.bs-page { display:block; text-align:center; font-size:13px; color:#73634e; padding-top:4px; }
.bs-controls { position:sticky; bottom:-15px; display:flex; justify-content:space-between; gap:8px; padding:16px 0 4px; background:#f6edda; }
body #modal #mcard .bs-controls button { min-height:44px; flex:1; font-size:16px; padding:8px 4px; }
@media (max-width:350px) { .bs-row { gap:11px; padding-inline:7px; } .bs-book { width:calc((100% - 22px)/3); } .bs-cover strong { font-size:15px; } .bs-spread { padding-inline:10px; } .bs-picture { width:min(100%,210px); } }
@media (min-width:700px) {
  body #modal .mwrap:has(.bs-reader) { width:min(760px,calc(100vw - 40px))!important; }
  .bs-spread { display:grid; grid-template-columns:1fr 1fr; gap:30px; padding:24px; background:linear-gradient(90deg,#fff8e7 0,#fff9ec 46%,#d9c7a7 50%,#fff9ec 54%,#fff8e7); }
  .bs-picture { width:100%; margin:0; }
  .bs-copy { align-self:center; }
}
