:root{--ink:#f8e9d0;--muted:#d1af91;--gold:#efd09a;--amber:#d99f5b;--dark:#1b1110;--wood:#674128;--wood2:#9b673e;--panel:#30201b;--edge:#b27a49;--serif:'Cormorant Garamond',Georgia,serif;--sans:'DM Sans',Arial,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px;background:radial-gradient(ellipse at 50% -10%,#6b4834 0%,#291a17 54%,#190f0f 100%) fixed;color:var(--ink);font-family:var(--sans);font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.54}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #f9d58d;outline-offset:3px}h1,h2,h3,h4,p{margin-top:0}h1,h2,h3,h4{font-family:var(--serif);font-weight:600}h1{font-size:clamp(35px,5vw,66px);line-height:1.02}h2{font-size:clamp(30px,4vw,48px)}h3{font-size:27px}a{color:#f6c98a}.hidden{display:none!important}.site-header{position:sticky;top:0;z-index:30;background:#211512f5;border-bottom:1px solid #a97847;box-shadow:0 8px 30px #120b0b8a;backdrop-filter:blur(16px)}.header-inner{max-width:1500px;margin:auto;min-height:92px;padding:12px clamp(16px,3vw,42px);display:flex;align-items:center;justify-content:space-between;gap:20px}.wordmark{display:flex;gap:12px;text-align:left;align-items:center;background:none;border:0;color:#f7d6a3;font:600 clamp(26px,3vw,38px)/.95 var(--serif);white-space:nowrap}.wordmark small{display:block;margin-top:10px;letter-spacing:2.6px;color:#be9774;font:600 9px/1.2 var(--sans)}.wordmark-flourish{color:#e8bd82;font-size:32px}.nav{display:flex;gap:5px}.nav-btn{color:#e3c5a4;border:1px solid transparent;background:none;border-radius:10px;padding:12px 14px;display:flex;gap:8px;align-items:center;justify-content:center;font-size:12px;font-weight:600;white-space:nowrap;transition:.2s}.nav-btn:hover,.nav-btn.active{background:#62412b;border-color:#b38250;color:#ffe4b8}.nav-icon{font:28px/16px var(--serif)}.notice-bar{max-width:1500px;margin:10px auto 0;padding:13px 20px;background:#624022;border:1px solid #e1b275;color:#fff3d6;border-radius:8px}main{max-width:1500px;margin:0 auto;padding:clamp(16px,2.5vw,36px) clamp(12px,3vw,42px) 80px;min-height:calc(100dvh - 190px)}.app-footer{padding:16px;text-align:center;color:#c6a785;font:16px var(--serif);border-top:1px solid #6a432e}.app-footer span{display:block;margin:7px;font:11px var(--sans);color:#ab8d78}.eyebrow{text-transform:uppercase;letter-spacing:3px;font:700 10px var(--sans);color:#eac092}.page-heading{text-align:center;margin:7px 0 28px}.page-heading h1{color:#ffe6b7;margin:9px 0 11px}.page-heading p{color:#e2bea0;line-height:1.6;font-size:14px}.page-hero{margin-bottom:20px}.btn{min-height:42px;padding:11px 18px;border:1px solid #a9784a;border-radius:10px;color:#fbe1bb;background:linear-gradient(160deg,#69462f,#352219);font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;transition:filter .2s,transform .2s}.btn:hover{filter:brightness(1.14)}.btn:active{transform:translateY(1px)}.btn-primary{background:linear-gradient(160deg,#fbe6bd,#d4a268);border-color:#f9e0af;color:#3b2416}.btn-danger{border-color:#a35e5e;background:#462423;color:#ffc1b2}.btn-quiet{border-color:#826044;background:#291b17;color:#e8bd8a}.btn-sm{padding:8px 12px;min-height:34px;font-size:12px}.text-btn{border:0;color:#ffe1ab;background:none;padding:5px;text-decoration:underline;text-underline-offset:4px}.toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:space-between;margin:16px 0 20px}.toolbar-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.panel{border:1px solid #a9784b;background:linear-gradient(145deg,#4b3024,#291b17 76%);border-radius:16px;padding:clamp(17px,2.3vw,29px);box-shadow:0 16px 36px #130b0b70}.panel h2,.panel h3{color:#ffdfae}.muted{color:#cbaa8d}.tiny{font-size:11px}.center{text-align:center}.pill{display:inline-flex;align-items:center;padding:5px 10px;gap:6px;border-radius:100px;background:#765138;color:#ffe2b0;font-size:11px;font-weight:700}.count{font-size:11px;color:#d7b18b}.library-shell{position:relative;isolation:isolate;overflow:hidden;border:12px ridge #8d5c35;border-radius:22px;min-height:690px;padding:24px 20px 26px;background:radial-gradient(ellipse at 50% 0,#ad7245 0,#714526 42%,#33211b 93%);box-shadow:inset 0 0 120px #24130bb5,0 25px 65px #110806bb}.library-shell:before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(90deg,#1a0d0a09 0 3px,transparent 3px 39px);pointer-events:none}.library-sky{position:absolute;top:0;left:0;right:0;height:138px;background:radial-gradient(ellipse at top,#e7aa5b59,transparent 72%);pointer-events:none}.library-inside{position:relative;z-index:2;display:grid;grid-template-columns:minmax(116px,.8fr) minmax(0,5fr) minmax(116px,.8fr);align-items:stretch;gap:15px}.library-side{border-radius:110px 110px 11px 11px;border:7px ridge #9b6945;box-shadow:inset 0 0 35px #160d0ae0;overflow:hidden;min-height:555px;position:relative;background:#271713}.library-side:after{content:'';position:absolute;inset:0;background:linear-gradient(#20120b10,#28140a30 60%,#1a0f0a83);pointer-events:none}.library-side img{height:100%;width:100%;object-fit:cover;object-position:40% center;display:block}.library-side.right img{object-position:61% center}.library-plaque{text-align:center;margin:-3px 0 20px}.library-plaque .ornament{font:24px var(--serif);color:#f4d9a3}.library-plaque h2{font:600 clamp(26px,3.5vw,43px)/1 var(--serif);color:#ffe0ae;letter-spacing:1px;margin:4px 0 7px}.library-plaque p{font:11px var(--sans);color:#ecd4ba;letter-spacing:1.2px}.genre-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;align-items:stretch}.genre-niche{--theme:#3d6862;--glow:#99dec0;position:relative;overflow:hidden;isolation:isolate;border:7px ridge #93613d;border-radius:90px 90px 6px 6px;background:radial-gradient(ellipse at 51% 30%,var(--theme),#1a1415 94%);min-height:249px;display:flex;flex-direction:column;align-items:stretch;color:#ffe5c0;padding:0;box-shadow:inset 0 0 37px #0b0809d9,0 6px 13px #1c0e0acc;transition:transform .2s,filter .2s}.genre-niche:hover{transform:translateY(-5px);filter:brightness(1.11)}.genre-niche:before{content:'';position:absolute;z-index:-1;inset:0;background:radial-gradient(circle at 50% 6%,var(--glow),transparent 51%);opacity:.14}.genre-niche:after{content:'';position:absolute;inset:5px;border:1px solid #e9bd7d38;border-radius:80px 80px 0 0;pointer-events:none}.niche-decoration{height:59px;display:flex;align-items:flex-end;justify-content:center;gap:8px;color:var(--glow);filter:drop-shadow(0 0 6px var(--glow));font:clamp(23px,3vw,37px)/1 var(--serif)}.niche-decoration i{font-size:17px;font-style:normal;opacity:.78}.niche-title{padding:8px 3px 6px;margin-top:6px;background:#20120cd9;border-block:1px solid #c6935d6a;font:600 clamp(15px,1.55vw,20px)/1.1 var(--serif);text-align:center;min-height:43px;display:flex;align-items:center;justify-content:center}.niche-shelf{flex:1;display:flex;align-items:flex-end;justify-content:center;min-height:76px;padding:8px 6px 0;gap:3px;overflow:hidden;border-bottom:14px solid #94592f;box-shadow:0 7px 0 #392015,0 12px 13px #140a0a8c;position:relative}.niche-shelf:after{content:'';position:absolute;left:0;right:0;bottom:-4px;border-top:2px solid #e0ae73}.mini-spine{flex:none;width:var(--w);height:var(--h);max-height:74px;border-radius:2px 4px 0 0;border:1px solid #fae1c150;background:linear-gradient(90deg,#150c0b71,transparent 40%,#fff3 74%,#140f1b4c),var(--spine);box-shadow:2px 1px 3px #0008}.niche-count{padding:10px 4px 8px;font:11px var(--sans);color:#e9c6a7;text-align:center}.niche-empty{font:italic 16px var(--serif);color:#f1cc9c99;letter-spacing:.5px}.library-bottom{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:26px;margin-top:23px;color:#e3b98e;font:italic 18px var(--serif)}.library-bottom:before,.library-bottom:after{content:'❦';font-size:23px;color:#c59d70}.lobby-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:19px}.catalog-info{font:12px var(--sans);color:#e4c3a4}.preview-banner{background:#4d362b;border:1px dashed #d8ae77;padding:12px 18px;border-radius:10px;display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:20px;color:#f7d8a9;flex-wrap:wrap}.shelf-header{--theme:#304f48;--glow:#c7b57d;position:relative;overflow:hidden;border:8px ridge #95623d;border-radius:18px;padding:21px;background:radial-gradient(ellipse at 35% 0,var(--theme),#2c1b1b 92%);margin-bottom:20px}.shelf-header:after{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 60% 0,var(--glow),transparent 73%);opacity:.13;pointer-events:none}.shelf-header>div{position:relative;z-index:1}.shelf-header h1{font-size:clamp(35px,4vw,58px);margin:5px 0;color:#ffe6b7}.shelf-header p{color:#e7cab1;margin:0}.shelf-header .shelf-ornament{position:absolute;right:30px;top:24px;opacity:.65;font:80px var(--serif);color:var(--glow)}.shelf-wall{--theme:#3a4b47;--glow:#b8deca;border:10px ridge #875432;border-radius:16px;padding:21px;background:radial-gradient(ellipse at 50% 0,var(--theme),#201412 90%);min-height:380px;box-shadow:inset 0 0 75px #150c0ca8}.full-shelf{display:flex;align-items:flex-end;gap:4px;min-height:196px;overflow-x:auto;padding:17px 8px 0;border-bottom:22px solid #965b35;box-shadow:0 9px 0 #3e2115,0 15px 18px #120909c2;margin-bottom:39px;scrollbar-color:#c78f59 #3d271c}.book-spine{flex:none;display:flex;justify-content:center;align-items:center;writing-mode:vertical-rl;text-orientation:mixed;gap:8px;height:var(--h);width:var(--w);padding:11px 3px;overflow:hidden;color:var(--letter,#ffebc8);font:600 clamp(10px,1.3vw,13px) var(--serif);text-shadow:0 2px 3px #000c;letter-spacing:.4px;background:linear-gradient(90deg,#100c1188 0%,#fff2 18%,transparent 45%,#fffa 68%,#1b0e0c65 100%),var(--spine);border:1px solid #ffedcf69;border-radius:2px 4px 1px 1px;box-shadow:3px 2px 4px #110909ba;transition:transform .15s;position:relative}.book-spine:before,.book-spine:after{content:'';position:absolute;inset:8px auto auto 2px;left:2px;right:2px;border-top:1px solid #ffe0a56b}.book-spine:after{inset:auto 2px 8px}.book-spine:hover,.book-spine:focus-visible{transform:translateY(-9px);z-index:1}.book-spine .spine-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-height:85%;line-height:1}.book-spine .spine-author{font:500 9px var(--serif);opacity:.88;max-height:20%;overflow:hidden;white-space:nowrap}.book-spine.finished{box-shadow:inset 0 0 0 2px #dfae4b,3px 2px 4px #000}.book-spine.finished:after{content:'✦';font:11px var(--serif);border:0;position:absolute;left:auto;right:3px;bottom:9px;color:#f7d574}.empty-shelf{padding:55px 20px;text-align:center;color:#f3d9b8}.empty-shelf .big{font:72px var(--serif);color:#e1b579}.empty-shelf h3{margin-bottom:9px}.cover-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:18px}.book-cover-card{border:1px solid #9b704d;border-radius:11px;text-align:left;background:linear-gradient(140deg,#523629,#261915);padding:13px;color:#f8dcb2;min-width:0}.book-cover-card:hover{filter:brightness(1.1)}.book-cover-card .cover-art{margin:0 auto 12px}.cover-art{display:flex;align-items:center;justify-content:center;overflow:hidden;aspect-ratio:2/3;background:linear-gradient(155deg,var(--bookcolor,#4c665c),#201612);box-shadow:5px 6px 12px #110808ab, inset 3px 0 2px #fff5;border:1px solid #f3cb9666;border-radius:3px 7px 7px 3px;color:#f4e6d1;position:relative;text-align:center;width:100%;max-width:172px;padding:12px}.cover-art img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.cover-art .fallback-title{font:600 clamp(15px,2.3vw,24px)/1.06 var(--serif);text-wrap:balance;max-height:85%;overflow:hidden}.cover-art .fallback-author{position:absolute;bottom:12px;left:7px;right:7px;font:10px var(--sans);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.cover-art:before{content:'✦';position:absolute;top:12px;font:22px var(--serif);color:#fce6b87f}.book-cover-card h4{font-size:19px;line-height:1.12;margin:6px 0;overflow-wrap:anywhere}.book-cover-card p{font-size:11px;color:#cfb299;margin:0 0 8px}.book-cover-card .tag{font-size:10px}.tag{display:inline-flex;border:1px solid #ae805a;padding:4px 8px;border-radius:15px;color:#f3d7ad}.shelf-controls{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.search-field{min-width:180px;flex:1;max-width:420px}.search-field input{width:100%}.control-select{width:auto;min-width:130px}.empty-tip{font:italic 16px var(--serif);color:#dbb895}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 22px}.stat-tile{border:1px solid #976843;border-radius:13px;background:linear-gradient(#543528,#2d1e18);padding:21px 9px;text-align:center}.stat-tile strong{display:block;font:700 39px/1 var(--serif);color:#f7cf91}.stat-tile span{font:11px var(--sans);color:#dfbca1;letter-spacing:.5px}.reading-list{display:grid;gap:13px}.reading-row{display:flex;align-items:center;gap:16px;border:1px solid #9d704e;border-radius:13px;padding:13px;background:linear-gradient(120deg,#513328,#281b19);text-align:left;color:#f6d9b2;width:100%}.reading-row:hover{filter:brightness(1.12)}.reading-row .cover-art{flex:none;width:67px}.reading-row-body{flex:1;min-width:0}.reading-row h3{font-size:23px;margin:0 0 5px;overflow-wrap:anywhere}.reading-row p{color:#c9aa92;font-size:12px;margin:0 0 12px}.progress-track{height:8px;border-radius:20px;background:#1f1413;overflow:hidden;margin:7px 0}.progress-fill{display:block;background:linear-gradient(90deg,#b88451,#f3d28e);height:100%;border-radius:20px}.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:17px}.section-title{display:flex;justify-content:space-between;align-items:center;gap:9px;margin:23px 0 13px}.section-title h2{font-size:33px;margin:0}.trophy-room{border:10px ridge #805334;border-radius:19px;min-height:500px;background:radial-gradient(ellipse at center top,#765036,#241610 85%);padding:28px 20px;box-shadow:inset 0 0 100px #0e0806d1}.trophy-room-title{text-align:center;color:#fbe2b3;margin:0 0 15px}.trophy-room-sub{text-align:center;color:#dfb998;font:13px var(--sans);margin-bottom:27px}.trophy-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(158px,1fr));gap:17px}.trophy-case{min-width:0;border:8px ridge #93613d;border-radius:90px 90px 5px 5px;padding:19px 10px 0;text-align:center;color:#f4d8ac;min-height:268px;background:radial-gradient(ellipse at top,#654329,#281813 90%);box-shadow:inset 0 0 34px #0b0707,0 9px 9px #11090980}.trophy-case:hover{filter:brightness(1.13)}.trophy-case .cover-art{height:139px;width:91px;margin:auto;box-shadow:0 0 19px #f4c57b77}.trophy-case .trophy-flourish{font-size:27px;color:#f5c47e;line-height:1}.trophy-case strong{display:block;margin-top:9px;font:600 18px/1.05 var(--serif);max-height:40px;overflow:hidden}.trophy-case small{display:block;color:#e7ba80;margin:6px}.trophy-case .trophy-base{background:linear-gradient(#f1cb8a,#84502d 45%,#442516);border-top:2px solid #ffd798;height:15px;margin:11px -10px 0}.medals{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 28px}.medal{flex:1;min-width:130px;border:1px solid #8d613e;border-radius:12px;padding:17px 10px;text-align:center;background:#271b18;color:#e6bd80}.medal.locked{filter:grayscale(.9);opacity:.45}.medal b{display:block;font:34px var(--serif)}.medal span{font-size:12px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.field{display:flex;flex-direction:column;gap:8px;min-width:0}.field.full{grid-column:1/-1}.field label{font-size:12px;font-weight:700;color:#f3d3ac}.field label .optional{font-size:10px;color:#bca38d;font-weight:400}.field input,.field select,.field textarea,.search-field input,.control-select{border:1px solid #b98958;border-radius:8px;background:#fff2dd;color:#382317;padding:11px 12px;min-height:45px;max-width:100%}.field textarea{min-height:88px;resize:vertical}.field small{color:#c7a991;line-height:1.5}.field input[type=file]{color:#342119;padding:9px}.field input[type=range]{accent-color:#dd9d57}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:17px}.section-divider{border:0;border-top:1px solid #957048;margin:22px 0}.scan-stage{border:1px dashed #c6985b;border-radius:14px;min-height:180px;padding:20px;text-align:center;background:#21151399}.scan-stage video{display:block;width:100%;max-height:320px;border-radius:10px;background:#100b09;object-fit:cover}.scan-stage .scan-symbol{font:57px var(--serif);color:#e1b27c}.scan-stage p{line-height:1.5}.scan-message{margin:12px 0;color:#edcfaa}.status{font-size:12px;color:#eac395}.book-form-intro{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.modal-backdrop{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;padding:14px;background:#0d0708dc;backdrop-filter:blur(8px)}.modal-shell{width:min(810px,100%);max-height:94dvh;overflow:auto;border:2px solid #c3945e;border-radius:17px;background:linear-gradient(140deg,#543728,#271a17 85%);box-shadow:0 40px 90px #000a;padding:clamp(16px,3vw,29px)}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:18px}.modal-header h2{margin:0;font-size:35px}.modal-columns{display:grid;grid-template-columns:185px 1fr;gap:24px}.modal-columns .cover-art{max-width:185px}.modal-columns h2{font-size:37px;line-height:.95;margin:3px 0 10px;overflow-wrap:anywhere}.book-author{font-size:15px;color:#d8b999}.book-meta{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.book-meta .tag{font-size:11px}.modal-tabs{display:flex;gap:8px;margin:16px 0}.modal-tabs .btn{flex:1}.modal-book-progress{padding:12px;background:#241714;border:1px solid #795235;border-radius:9px;margin-top:12px}.toast{position:fixed;z-index:100;bottom:25px;left:50%;transform:translateX(-50%);min-width:250px;max-width:calc(100% - 28px);padding:14px 20px;border:1px solid #f4d19a;border-radius:11px;color:#2d1a13;background:#fae2ae;box-shadow:0 10px 25px #0007;text-align:center;font-weight:600}.loading-page{text-align:center;margin:25vh auto;color:#e9cba6}.spinner{border:3px solid #e7c18c38;border-top-color:#f0c687;width:32px;height:32px;border-radius:50%;animation:spin .7s linear infinite;margin:auto}@keyframes spin{to{transform:rotate(360deg)}}.small-help{color:#bfa083;font-size:12px;line-height:1.6}.backup-card{display:flex;align-items:center;gap:13px;flex-wrap:wrap}.backup-card p{margin:5px 0;color:#d0b298;font-size:12px;line-height:1.5}.cozy-empty{padding:44px 20px;text-align:center;border:1px dashed #aa825b;border-radius:15px;background:#3a271d6b}.cozy-empty .symbol{font:59px var(--serif);color:#ecbd86}.cozy-empty h3{margin-bottom:7px}.cozy-empty p{color:#d2b095;line-height:1.6}.install-note{border-left:3px solid #e4ba7d;padding:12px 15px;background:#251814}.goal-area{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.goal-area input{max-width:120px}.goal-number{font:700 37px var(--serif);color:#f5cd91}.cat-silhouette{display:inline-flex;align-items:center;justify-content:center;opacity:.83;font-size:26px;filter:drop-shadow(1px 2px 2px #120d0a)}.guide-list{line-height:1.8;color:#e2bfa3;padding-left:21px}.guide-list li{margin:6px 0}.noscript{padding:40px;text-align:center}.profile-note{font-size:13px;line-height:1.6;color:#dfc0a1}.inline-code{font-family:monospace;background:#38231d;border-radius:4px;padding:3px 5px}body.modal-open{overflow:hidden}@media(max-width:1120px){.library-inside{grid-template-columns:100px minmax(0,1fr) 100px;gap:9px}.genre-grid{gap:7px}.genre-niche{border-width:5px;min-height:223px}.library-shell{padding:18px 11px}.nav-btn{padding:10px}.wordmark{font-size:29px}}@media(max-width:840px){.header-inner{flex-direction:column;padding:9px 12px 11px;gap:10px;min-height:unset}.wordmark{font-size:30px}.wordmark small{font-size:8px}.nav{width:100%;justify-content:space-around}.nav-btn{flex:1;padding:8px 2px;display:flex;flex-direction:column;gap:3px;font-size:10px}.nav-icon{font-size:23px;line-height:20px}.library-inside{display:block}.library-side{display:none}.genre-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.library-shell{min-height:unset}.stat-grid{grid-template-columns:repeat(2,1fr)}.two-cols{grid-template-columns:1fr}}@media(max-width:620px){main{padding:13px 10px 50px}.page-heading{margin-bottom:16px}.page-heading h1{font-size:39px}.page-heading p{font-size:12px}.library-shell{border-width:7px;padding:15px 8px 20px;border-radius:15px}.genre-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.genre-niche{min-height:224px;border-width:6px}.niche-decoration{height:58px;font-size:32px}.niche-title{font-size:21px}.niche-shelf{min-height:76px}.library-plaque h2{font-size:33px}.library-plaque p{font-size:10px}.library-bottom{font-size:14px}.shelf-header .shelf-ornament{font-size:50px;right:15px}.shelf-wall{padding:12px 9px;border-width:7px}.full-shelf{min-height:187px;gap:3px}.book-spine{font-size:11px}.form-grid{grid-template-columns:1fr}.field.full{grid-column:1}.modal-columns{grid-template-columns:1fr;text-align:center}.modal-columns .cover-art{margin:auto}.book-meta{justify-content:center}.modal-shell{padding:16px}.cover-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.reading-row h3{font-size:20px}.trophy-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.trophy-case{min-height:244px;border-width:6px}.trophy-room{padding:16px 9px}.toolbar{align-items:stretch}.shelf-controls{width:100%}.shelf-controls .search-field{width:100%;max-width:none}.control-select{flex:1}.header-inner{padding-top:7px}.wordmark{font-size:27px}.wordmark-flourish{display:none}.app-footer{font-size:14px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;scroll-behavior:auto!important;transition:none!important}}

/* Approved concept-art direction — warm cottage with live navigation and real books. */
body{background:radial-gradient(ellipse at 50% -14%,#65422c 0%,#241512 62%,#170d0e 100%) fixed}
.site-header{background:#1b100ddd;border-color:#8c5934}
.site-header .wordmark{font-size:clamp(30px,3.2vw,44px);font-weight:500;color:#fae6c4}
.site-header .wordmark small{font-family:var(--serif);letter-spacing:.6px;font-size:13px;font-weight:400;color:#e9bd89}
.header-inner{max-width:1580px}
main{max-width:1600px;padding-top:14px}
.storybook-lobby{overflow:hidden;border:2px solid #a87344;border-radius:17px;background:#2a1913;box-shadow:0 22px 64px #0009,inset 0 0 40px #0006}
.storybook-scene{position:relative;width:100%;aspect-ratio:1536/469;background:url('./assets/library-empty.webp') center center/100% 100% no-repeat;isolation:isolate}
.storybook-scene:after{content:'';pointer-events:none;position:absolute;inset:0;box-shadow:inset 0 0 28px #1a0b05a8}
.scene-hotspots{position:absolute;inset:0}
.scene-hotspot{position:absolute;z-index:2;display:flex;align-items:flex-end;justify-content:center;padding:0 3px 6px;border:2px solid transparent;border-radius:75px 75px 5px 5px;background:transparent;color:#fff2d6;transition:background .2s,box-shadow .2s,border-color .2s}
.scene-hotspot:hover,.scene-hotspot:focus-visible{border-color:var(--hotspot);background:#2a170d40;box-shadow:inset 0 0 24px #ffdc8238,0 0 18px var(--hotspot)}
.scene-hotspot-count{opacity:0;transform:translateY(5px);transition:.2s;background:#1d100ce8;color:#ffe9c8;border:1px solid #c59a6c;border-radius:30px;padding:4px 8px;font-size:clamp(9px,.8vw,12px);white-space:nowrap;font-weight:600;box-shadow:0 3px 10px #0007}
.scene-hotspot:hover .scene-hotspot-count,.scene-hotspot:focus-visible .scene-hotspot-count{opacity:1;transform:none}
.scene-hotspot-fantasy{left:26.1%;top:4%;width:12.3%;height:45%}
.scene-hotspot-romance{left:39.5%;top:4%;width:12.3%;height:45%}
.scene-hotspot-horror{left:52.8%;top:4%;width:12.3%;height:45%}
.scene-hotspot-mystery{left:66.1%;top:4%;width:12.3%;height:45%}
.scene-hotspot-scifi{left:26.1%;top:50%;width:12.3%;height:46%}
.scene-hotspot-historical{left:39.5%;top:50%;width:12.3%;height:46%}
.scene-hotspot-contemporary{left:52.8%;top:50%;width:12.3%;height:46%}
.scene-hotspot-nonfiction{left:66.1%;top:50%;width:12.3%;height:46%}
.scene-corner-note{position:absolute;bottom:8px;left:13px;z-index:4;background:#21140cc9;border:1px solid #bd905c8a;color:#f8d6ad;border-radius:40px;font:11px var(--serif);padding:4px 11px;pointer-events:none}
.storybook-foyer{border-top:5px ridge #97633b;padding:22px clamp(15px,3vw,37px);display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:17px;background:linear-gradient(150deg,#5a3626,#281611)}
.storybook-intro{flex:2;min-width:260px}.storybook-intro h1{font-size:clamp(31px,3vw,46px);margin:5px 0 7px;color:#fbe0b4}.storybook-intro p{color:#dfbea4;margin:0;max-width:690px;line-height:1.6}
.storybook-actions{display:flex;gap:10px;flex-wrap:wrap}.storybook-foyer>.catalog-info{flex-basis:100%;margin:0;color:#e8bb83}
.extra-shelves{margin:27px 0 5px}.extra-shelves h2{text-align:center;color:#f8d6a0;font-size:33px;margin-bottom:13px}.extra-shelf-grid{max-width:570px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:auto}
.extra-shelf-grid .genre-niche{min-height:220px}
.shelf-header{min-height:220px;display:flex;align-items:center;border:8px ridge #9b683d;padding:32px 32px;background-image:linear-gradient(90deg,#1d100ee8 0%,#21110ddc 45%,#21110d45 85%),radial-gradient(ellipse at 30% 0,var(--theme),#2c1b1b 92%);background-position:center;background-size:cover}
.shelf-header-fantasy{background-image:linear-gradient(90deg,#1d100ef5 0%,#21110ddd 48%,#21110d28 100%),url('./assets/empty-fantasy.webp')}
.shelf-header-romance{background-image:linear-gradient(90deg,#1d100ef5 0%,#21110ddd 48%,#21110d28 100%),url('./assets/empty-romance.webp')}
.shelf-header-horror{background-image:linear-gradient(90deg,#1d100ef5 0%,#21110ddd 48%,#21110d28 100%),url('./assets/empty-horror.webp')}
.shelf-header-mystery{background-image:linear-gradient(90deg,#1d100ef5 0%,#21110ddd 48%,#21110d28 100%),url('./assets/empty-mystery.webp')}
.shelf-header-scifi{background-image:linear-gradient(90deg,#1d100ef5 0%,#21110ddd 48%,#21110d28 100%),url('./assets/empty-scifi.webp')}
.shelf-header-historical{background-image:linear-gradient(90deg,#1d100ef5 0%,#21110ddd 48%,#21110d28 100%),url('./assets/empty-historical.webp')}
.shelf-header-contemporary{background-image:linear-gradient(90deg,#1d100ef5 0%,#21110ddd 48%,#21110d28 100%),url('./assets/empty-contemporary.webp')}
.shelf-header-nonfiction{background-image:linear-gradient(90deg,#1d100ef5 0%,#21110ddd 48%,#21110d28 100%),url('./assets/empty-nonfiction.webp')}
.live-shelf-notice{font-family:var(--serif);font-style:italic;font-size:16px;margin-top:13px!important;color:#fbdcab!important}
.shelf-wall{border:12px ridge #92603e;background-image:linear-gradient(#170e0c9e,#241710bd),repeating-linear-gradient(90deg,#36211a 0px,#583a28 12px,#3d261e 38px,#241612 59px);box-shadow:inset 0 0 100px #0e0808,0 19px 30px #0007}
.full-shelf{border-bottom:24px solid #91552b;background:linear-gradient(180deg,transparent 80%,#170b0680);box-shadow:0 4px 0 #d7a573,0 12px 0 #3a1d13,0 18px 20px #130807b8}
.book-spine{box-shadow:2px 3px 4px #0009, inset 2px 0 3px #fff2;transition:transform .18s,filter .18s}
.book-spine:hover{transform:translateY(-14px);filter:brightness(1.25)}
.trophy-room{background:radial-gradient(ellipse at top,#86542d 0%,#312018 51%,#1b1010 100%);border-color:#a17242;box-shadow:inset 0 0 130px #120805c9,0 24px 50px #0c0606ab}
.trophy-case{border-color:#a87543;background:radial-gradient(ellipse at 50% 10%,#96613c 0%,#35201a 73%,#21120f 100%);box-shadow:inset 0 0 30px #090505bb,0 5px 14px #0008}
@media(max-width:750px){
 .storybook-scene{aspect-ratio:1/1.01;background-size:auto 100%;background-position:55% center;overflow:hidden}
 /* Show a compact illustrated room on phones, then supply accessible genre links below. */
 .scene-hotspots{display:none}
 .scene-corner-note{font-size:10px;left:9px;bottom:7px}
 .storybook-foyer{padding:18px 14px}
 .storybook-actions{width:100%}.storybook-actions .btn{flex:1}
 .extra-shelves h2{font-size:28px}
 .mobile-shelves{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:14px}
 .mobile-genre{display:block;text-align:left;min-height:64px;border:1px solid #95623d;border-radius:10px;padding:10px 10px;background:linear-gradient(130deg,#543526,#261814);color:#f9ddbc;font:600 18px var(--serif)}
 .mobile-genre small{display:block;margin-top:4px;color:#d8b38b;font:11px var(--sans)}
 .shelf-header{min-height:160px;padding:18px 17px;background-position:center right}
 .shelf-header h1{font-size:40px}
}
@media(min-width:751px){.mobile-shelves{display:none!important}}

html{background:#1c1110;min-height:100%}body{min-height:100vh}.storybook-scene{aspect-ratio:1536/437}.scene-corner-note{bottom:10px}

/* ─── v1.1 · Living library: decorative scenery, collection-driven books ─── */
.storybook-scene{
  aspect-ratio:1536/429!important;
  background-image:url('./assets/library-empty.webp');
  background-size:100% 100%;
}
.scene-hotspot{overflow:visible;padding:0;border:0!important;display:block;border-radius:5px;color:#fbe4c0;transition:filter .2s ease}
.scene-hotspot:focus-visible{outline:3px solid #f5d298;outline-offset:3px}
.scene-hotspot:hover{background:transparent!important;box-shadow:0 0 25px #f4d29a8a!important;filter:brightness(1.13)}
.scene-hotspot-fantasy{left:26.0%;top:0%;width:12.55%;height:47.5%}
.scene-hotspot-romance{left:39.6%;top:0%;width:12.55%;height:47.5%}
.scene-hotspot-horror{left:53.0%;top:0%;width:12.55%;height:47.5%}
.scene-hotspot-mystery{left:66.4%;top:0%;width:12.55%;height:47.5%}
.scene-hotspot-scifi{left:26.0%;top:49%;width:12.55%;height:47.5%}
.scene-hotspot-historical{left:39.6%;top:49%;width:12.55%;height:47.5%}
.scene-hotspot-contemporary{left:53.0%;top:49%;width:12.55%;height:47.5%}
.scene-hotspot-nonfiction{left:66.4%;top:49%;width:12.55%;height:47.5%}
.scene-nameplate{
 position:absolute;z-index:3;top:1%;left:1.5%;right:1.5%;min-height:31%;padding:5px 2px;
 border-radius:45% 45% 12px 12px / 22% 22% 10px 10px;
 background:radial-gradient(ellipse at top,color-mix(in srgb,var(--theme) 68%,#26140f) 0%,#24130ff5 88%);
 box-shadow:inset 0 0 7px #eec18e77,0 3px 10px #130602cc;
 border:1px solid #d9a66b8c;
 display:flex;align-items:center;justify-content:center;gap:2px;flex-direction:column;
 text-shadow:0 2px 4px #000;
}
.scene-nameplate strong{font:600 clamp(9px,1.26vw,21px)/1.01 var(--serif);text-align:center;letter-spacing:0;max-width:100%;overflow-wrap:anywhere}
.scene-nameplate small{font:500 clamp(8px,.8vw,12px)/1.2 var(--sans);color:#e9bb87;white-space:nowrap}
.scene-recess{
 position:absolute;z-index:2;top:33%;left:3%;width:94%;height:59%;overflow:hidden;
 background:
 radial-gradient(ellipse at 50% 0%,color-mix(in srgb,var(--theme) 35%,#372219),#190d0a 92%),
 repeating-linear-gradient(90deg,#38231b 0 5px,#422a1b 5px 8px,#2e1a14 8px 13px);
 box-shadow:inset 0 0 22px #060303e6,inset 0 3px 9px #050302ca,0 3px 0 #9d6840;
 border:2px solid #634329;border-bottom:9px ridge #b47b47;border-radius:2px;
}
.scene-recess:before{content:'';position:absolute;left:0;right:0;top:49%;border-bottom:7px ridge #9a6235;box-shadow:0 4px 3px #1d0b08}
.scene-recess:after{content:'';position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 20px #1308068f}
.scene-recess-symbol{position:absolute;top:9%;left:11%;font:clamp(10px,1.1vw,17px) var(--serif);color:#d49d70a8;pointer-events:none}
.scene-mini-spines{position:absolute;left:4%;right:2%;bottom:0;display:flex;align-items:flex-end;gap:2px;height:47%;overflow:hidden}
.scene-mini-spines .mini-spine{max-height:90%;box-shadow:1px 1px 2px #000c;pointer-events:none}
.scene-explore{position:absolute;z-index:4;right:5%;bottom:0%;border-radius:8px;background:#24130cf0;padding:3px 6px;color:#f4ddb4;font:500 clamp(8px,.7vw,12px) var(--sans);opacity:0;transform:translateY(5px);transition:.2s}
.scene-hotspot:hover .scene-explore,.scene-hotspot:focus-visible .scene-explore{opacity:1;transform:none}
.scene-corner-note{background:#22130df2;color:#f5d6ab}
.storybook-foyer{background:linear-gradient(130deg,#4f3021,#24140f 85%)}
.mobile-genre{border-left:3px solid var(--mobile-glow)!important}
/* In a true empty collection the genre shelves still render as wooden shelves. */
.shelf-wall{
 overflow:hidden;position:relative;padding:30px clamp(10px,2.3vw,30px) 6px;
 border:13px ridge #93613b;
 background:
 radial-gradient(ellipse at 50% 4%,color-mix(in srgb,var(--theme) 51%,#362015),transparent 73%),
 repeating-linear-gradient(90deg,#2a1612 0,#42261a 14px,#2e1914 37px,#382118 59px);
 box-shadow:inset 0 0 140px #070302d1,0 20px 37px #060303b3;
}
.shelf-wall::before{content:'';pointer-events:none;position:absolute;inset:0;z-index:0;background:radial-gradient(ellipse at 50% 0%,color-mix(in srgb,var(--glow) 19%,transparent),transparent 62%)}
.shelf-theme-decor{display:flex;justify-content:space-between;align-items:center;padding:0 16px 3px;font:28px var(--serif);color:var(--glow);opacity:.75;text-shadow:0 2px 15px var(--theme);position:relative;z-index:1}
.shelf-wall .full-shelf{position:relative;z-index:1;min-height:205px;margin-bottom:42px;gap:5px;border-bottom:25px ridge #93562c;box-shadow:0 5px 0 #d69c57,0 11px 5px #321a13,0 19px 22px #0a0504ad;background:linear-gradient(180deg,#0000 4%,#00000026 82%)}
.shelf-wall .full-shelf:last-child{margin-bottom:28px}
.shelf-wall-romance{background-color:#3e2026}.shelf-wall-horror{background-color:#2b1115}.shelf-wall-scifi{background-color:#14243d}.shelf-wall-fantasy{background-color:#122f29}
.shelf-header{background-position:center!important;background-size:cover!important}
.shelf-header-fantasy{background-image:linear-gradient(90deg,#1d100ef7,#21110dec 48%,#21110d44),url('./assets/empty-fantasy.webp')}
.shelf-header-romance{background-image:linear-gradient(90deg,#1d100ef7,#21110dec 48%,#21110d44),url('./assets/empty-romance.webp')}
.shelf-header-horror{background-image:linear-gradient(90deg,#1d100ef7,#21110dec 48%,#21110d44),url('./assets/empty-horror.webp')}
.shelf-header-mystery{background-image:linear-gradient(90deg,#1d100ef7,#21110dec 48%,#21110d44),url('./assets/empty-mystery.webp')}
.shelf-header-scifi{background-image:linear-gradient(90deg,#1d100ef7,#21110dec 48%,#21110d44),url('./assets/empty-scifi.webp')}
.shelf-header-historical{background-image:linear-gradient(90deg,#1d100ef7,#21110dec 48%,#21110d44),url('./assets/empty-historical.webp')}
.shelf-header-contemporary{background-image:linear-gradient(90deg,#1d100ef7,#21110dec 48%,#21110d44),url('./assets/empty-contemporary.webp')}
.shelf-header-nonfiction{background-image:linear-gradient(90deg,#1d100ef7,#21110dec 48%,#21110d44),url('./assets/empty-nonfiction.webp')}
.shelf-header-ya{background-image:linear-gradient(90deg,#1d100ef7,#21110dec 48%,#21110d44),url('./assets/empty-fantasy.webp')}
.shelf-header-other{background-image:linear-gradient(90deg,#1d100ef7,#21110dec 48%,#21110d44),url('./assets/empty-contemporary.webp')}
.shelf-empty-note{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:19px 0 29px;padding:18px 22px;border:1px solid #986640;border-radius:12px;background:#291915;box-shadow:inset 0 1px 15px #0007}
.shelf-empty-note strong{font:600 25px var(--serif);color:#f8d7a5}
.shelf-empty-note p{margin:4px 0;color:#d9b08b;font-size:13px;line-height:1.5}
.shelf-empty-note .btn{margin-left:auto}.shelf-empty-star{font:36px var(--serif);color:#ddad77}
.book-spine.finished::before{content:'✦';position:absolute;top:5px;right:1px;left:auto;border:0;font:10px var(--serif);color:#f9d692;text-shadow:0 1px 4px #000}
/* Trophy backgrounds show empty glass-front cabinets without invented trophies. */
.trophy-room.is-empty{background-image:linear-gradient(180deg,#1b100fd5,#24120ac7),url('./assets/trophy-empty.webp');background-size:cover;background-position:center}
.trophy-room.is-empty .trophy-welcome{margin:135px auto 10px;max-width:520px;background:#21120fdf;backdrop-filter:blur(7px);border:1px solid #c29360}
.trophy-room.is-empty{min-height:580px}
/* Accessible hiding utility distinct from visual demo handling. */
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:750px){
 .storybook-scene{aspect-ratio:1.27/1!important;background-size:auto 100%;background-position:50% 50%}
 .scene-hotspots{display:none}
 .shelf-wall .full-shelf{min-height:182px}
 .shelf-empty-note .btn{width:100%;margin-left:0}
 .shelf-header{min-height:182px!important}
 .trophy-room.is-empty .trophy-welcome{margin-top:105px}
}
@media(max-width:410px){.shelf-wall .full-shelf{padding:12px 4px 0;gap:3px}.shelf-empty-note strong{font-size:21px}}

/* Fine tuning for the freshly cropped illustrated scene and mobile artwork. */
@media(max-width:750px){
 .storybook-scene{background-image:url('./assets/mobile-cottage.webp')!important;background-size:cover!important;background-position:center 58%!important;aspect-ratio:1.8/1!important}
 .scene-corner-note{left:auto;right:9px;bottom:10px}
}
.shelf-wall-horror .shelf-theme-decor{background:linear-gradient(90deg,#24101411,#20110bb8),url('./assets/horror-decor.webp') right center/auto 100% no-repeat;border-bottom:1px solid #67342b;margin:-30px -30px 18px;padding:10px 35px 8px;min-height:86px}
