:root{--rot:#ce3a36;--violett:#772d81;--bg:#1a1418;--text:#f5f0ec}*{box-sizing:border-box;margin:0;padding:0}html,body,#root{height:100%;background:var(--bg);height:100dvh;color:var(--text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;overflow:hidden}.app-root{background:radial-gradient(ellipse at top, #2a1f28 0%, var(--bg) 60%);flex-direction:column;height:100%;display:flex}.app-header{background:#00000040;border-bottom:1px solid #ffffff0f;flex-shrink:0;justify-content:space-between;align-items:center;gap:1rem;padding:.7rem 1rem;display:flex}.app-header h1{font-size:1rem;font-weight:600}.app-header h1 small{opacity:.55;font-size:.8rem;font-weight:400}.app-header .accent{color:var(--rot);font-weight:700}.header-right{align-items:center;gap:.5rem;display:flex}.dl-btn,.icon-btn{color:var(--text);cursor:pointer;background:#ffffff14;border:1px solid #ffffff1f;border-radius:8px;align-items:center;gap:.4rem;padding:.5rem .8rem;font-family:inherit;font-size:.85rem;text-decoration:none;transition:background .15s,border-color .15s;display:inline-flex}.dl-btn:hover,.icon-btn:hover{background:#ffffff24;border-color:#fff3}.dl-btn:active,.icon-btn:active{transform:scale(.97)}.dl-btn svg,.icon-btn svg{width:16px;height:16px}.icon-btn{background:0 0;justify-content:center;width:36px;height:36px;padding:.5rem}@media (max-width:600px){.dl-text{display:none}.dl-btn{justify-content:center;width:36px;height:36px;padding:.5rem}}.app-main{flex:1;justify-content:center;align-items:center;min-height:0;padding:1rem;display:flex;overflow:hidden}.book-wrapper{flex-direction:column;align-items:stretch;gap:.5rem;width:100%;height:100%;min-height:0;display:flex}.book-stage{flex:1;justify-content:center;align-items:center;min-height:0;display:flex;overflow:hidden}.book-wrapper .page{background:#fff;justify-content:center;align-items:center;display:flex;overflow:hidden}.book-wrapper .page img{object-fit:contain;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;background:#fff;width:100%;height:100%;display:block}.book-wrapper .page-placeholder{background:#fff;width:100%;height:100%}.controls{flex-shrink:0;justify-content:center;align-items:center;gap:1rem;padding:.3rem 0;display:flex}.controls button{cursor:pointer;width:44px;height:44px;color:var(--text);background:#ffffff14;border:1px solid #ffffff1f;border-radius:50%;font-size:1.2rem}.controls button:hover{background:#ffffff29}.controls .info{color:#ffffff8c;font-size:.85rem}.loading-screen{flex-direction:column;justify-content:center;align-items:center;gap:1.2rem;width:100%;height:100%;display:flex}.spinner{border:3px solid #ffffff1a;border-top-color:var(--rot);border-radius:50%;width:48px;height:48px;animation:1s linear infinite spin}.loading-text{color:#fff9;text-align:center;font-size:.95rem}.loading-text small{opacity:.7;font-size:.8rem}@keyframes spin{to{transform:rotate(360deg)}}body.pseudo-fs .app-header{display:none}body.pseudo-fs .app-main{padding:.3rem}body.pseudo-fs .app-root{height:100vh;z-index:999;height:100dvh;position:fixed;top:0;bottom:0;left:0;right:0}.fs-exit{bottom:env(safe-area-inset-bottom,0);right:env(safe-area-inset-right,0);width:40px;height:40px;color:var(--text);cursor:pointer;z-index:1000;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#0000008c;border:1px solid #ffffff2e;border-radius:50%;justify-content:center;align-items:center;margin:.7rem;transition:background .15s,transform .1s;display:inline-flex;position:fixed}.fs-exit:hover{background:#000000b3}.fs-exit:active{transform:scale(.92)}.fs-exit svg{width:18px;height:18px}.lightbox{z-index:2000;overscroll-behavior:contain;background:#000000f0;flex-direction:column;animation:.15s ease-out lb-fade;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}@keyframes lb-fade{0%{opacity:0}to{opacity:1}}.lightbox-bar{padding:env(safe-area-inset-top,0) env(safe-area-inset-right,0) 0 env(safe-area-inset-left,0);flex-shrink:0;justify-content:space-between;align-items:center;display:flex}.lightbox-label{color:#ffffffb3;font-variant-numeric:tabular-nums;margin:.7rem 1rem;font-size:.9rem}.lightbox-stage{cursor:grab;flex:1;justify-content:center;align-items:center;min-height:0;display:flex;overflow:hidden}.lightbox-stage:active{cursor:grabbing}.lightbox-img{-webkit-user-select:none;user-select:none;-webkit-user-drag:none;will-change:transform;max-width:100%;max-height:100%;display:block}.lightbox-btn{color:#fff;cursor:pointer;background:#ffffff1f;border:1px solid #fff3;border-radius:50%;justify-content:center;align-items:center;width:44px;height:44px;margin:.7rem;font-family:inherit;transition:background .15s,transform .1s;display:inline-flex}.lightbox-btn:hover{background:#ffffff38}.lightbox-btn:active{transform:scale(.92)}.lightbox-btn:disabled{opacity:.3;cursor:not-allowed}.lightbox-btn svg{width:20px;height:20px}.lightbox-nav{bottom:env(safe-area-inset-bottom,0);pointer-events:none;justify-content:space-between;padding:0 .5rem;display:flex;position:absolute;left:0;right:0}.lightbox-nav .lightbox-btn{pointer-events:auto;background:#00000080}
