/* A cached cover and one small CSS spinner; no added wait or media downloads. */
html:has(.reader-loading),body:has(.reader-loading),#app:has(.reader-loading){width:auto;max-width:100%}
.section.compact.reader-loading{display:grid;place-items:center;min-height:100vh;min-height:100svh;padding:104px 24px 32px;background:radial-gradient(ellipse at 50% 35%,#3b101b55,transparent 65%)}
.reader-opening-card{display:grid;grid-template-columns:116px minmax(0,1fr);align-items:center;gap:30px;width:min(680px,100%);padding:30px;border:1px solid #5c2a37;border-radius:20px;background:linear-gradient(135deg,#21171e,#111115 70%);box-shadow:0 16px 40px #0008,inset 0 1px #ffffff0c}
.reader-opening-art{position:relative;display:grid;place-items:center;width:116px;height:166px;margin:0;background:#1b151c;border:1px solid #74404c;border-radius:7px;box-shadow:5px 5px 0 #1c1319,6px 6px 0 #56323c,10px 10px 0 #160f14}
.reader-opening-art>svg{width:62px;height:62px;fill:none;stroke:#f45873;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.reader-opening-art>img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;border-radius:6px;background:#151116}
.reader-opening-art>img[hidden]{display:none}
.reader-opening-copy{min-width:0}
.reader-opening-copy .eyebrow{font-size:10px;line-height:1.3;letter-spacing:.13em}
.reader-opening-copy h1{font-size:24px;line-height:1.2;letter-spacing:-.025em;margin:9px 0 13px}
.reader-opening-book{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;overflow-wrap:anywhere;margin:0;color:#f1e9ee;font-size:15px;font-weight:600;line-height:1.4}
.reader-opening-author{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;margin:5px 0 0;color:#b6aab5;font-size:12px;line-height:1.4}
.reader-opening-status{display:flex;align-items:center;gap:9px;margin:20px 0 0;color:#e1d5de;font-size:13px;line-height:1.4}
.reader-opening-spinner{width:19px;height:19px;flex:0 0 19px;border:2px solid #6c3543;border-top-color:#ff4d68;border-radius:50%;animation:reader-opening-spin 1s linear infinite}
.reader-opening-hint{color:#a99da8;font-size:12px;line-height:1.5;margin:9px 0 0}
.reader-opening-error{color:#ffb4c0;font-size:13px;line-height:1.5;overflow-wrap:anywhere;margin:16px 0 0}
.reader-opening-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
.reader-opening-actions .btn{min-height:38px;padding:8px 14px;font-size:12px;line-height:1.3}
.reader-opening-actions .btn:focus-visible{outline:2px solid #fff;outline-offset:3px}
@keyframes reader-opening-spin{to{transform:rotate(360deg)}}
@media(max-width:760px){
 .section.compact.reader-loading{padding:80px 16px 24px}
 .reader-opening-card{grid-template-columns:minmax(0,1fr);justify-items:center;gap:22px;max-width:380px;padding:24px 20px;text-align:center;border-radius:18px}
 .reader-opening-art{width:100px;height:144px}
 .reader-opening-copy h1{font-size:22px;margin:8px 0 12px}
 .reader-opening-book{font-size:14px}
 .reader-opening-status,.reader-opening-actions{justify-content:center}
 .reader-opening-status{margin-top:17px;font-size:12px}
 .reader-opening-hint{font-size:11px}
 .reader-opening-actions{margin-top:17px}
}
@media(max-height:620px){
 .reader-opening-card{gap:18px;padding:18px}
 .reader-opening-art{width:78px;height:112px}
 .reader-opening-copy h1{font-size:20px;margin:6px 0 9px}
 .reader-opening-status,.reader-opening-actions{margin-top:12px}
}
@media(prefers-reduced-motion:reduce){.reader-opening-spinner{animation:none}}
