/* Full-bleed artwork starts at the top, including tall desktop-mode viewports. */
.hero{min-height:clamp(780px,100svh,1080px);padding-top:145px;padding-bottom:125px}
.fire-scene:before{content:'';position:absolute;inset:-3%;background:url('assets/apocalipse-hero.webp') center 32%/cover no-repeat;opacity:.22;filter:blur(15px);transform:scale(1.03)}
.fire-stage{top:-2%;bottom:-2%;right:-2%;width:64%;mask-image:linear-gradient(90deg,transparent,black 16%,black 96%,transparent)}
.apocalypse-art{object-fit:cover;object-position:center 30%;height:100%;width:100%}
.fire-vignette{background:linear-gradient(90deg,#100d0d 0%,#100d0df0 26%,#100d0d90 44%,transparent 70%),linear-gradient(0deg,#100d0d,transparent 19%,transparent 93%,#100d0d30)}
.shelf{--orbit-radius:600px;display:block;position:relative;height:600px;min-height:600px;padding:0;margin-top:30px;overflow:hidden;perspective:1100px;perspective-origin:50% 28%;scroll-snap-type:none;touch-action:pan-y;cursor:grab;isolation:isolate}
.shelf:active{cursor:grabbing}
.shelf:before{content:'';position:absolute;width:75%;height:230px;left:12.5%;top:100px;border:1px solid #bf8a9526;border-radius:50%;transform:rotateX(68deg);background:radial-gradient(ellipse,rgba(var(--book-tone),.13),transparent 68%);pointer-events:none}
.shelf .book{position:absolute;width:280px;left:50%;top:35px;opacity:var(--orbit-opacity,1);transform:translateX(-50%) translateY(var(--orbit-rise,0px)) translateZ(calc(-1 * var(--orbit-radius))) rotateY(var(--orbit-angle,0deg)) translateZ(var(--orbit-radius)) rotateY(var(--orbit-facing,0deg));transform-style:preserve-3d;transition:transform .85s cubic-bezier(.22,.68,.18,1),opacity .85s;scroll-snap-align:none;will-change:transform;pointer-events:auto}
.shelf .book.selected{opacity:1}
.shelf .book .book-object,.shelf .book.before .book-object,.shelf .book.after .book-object{transform:rotateY(-18deg) rotateX(3deg)}
.shelf .book.selected .coverwrap.flipped .book-object{transform:rotateY(157deg)}
.shelf .book.selected .coverwrap:hover:not(.flipped) .book-object{transform:rotateY(-28deg) rotateX(4deg) translateY(-6px)}
.shelf .book:not(.selected) .type,.shelf .book:not(.selected) h3,.shelf .book:not(.selected) .book-actions{opacity:0;pointer-events:none;transition:opacity .3s}
.shelf .book.selected .type,.shelf .book.selected h3,.shelf .book.selected .book-actions{opacity:1;transition:opacity .6s .15s}
.shelf .book.rear .coverwrap{filter:brightness(.6)}
.shelf .book:not(.selected) .coverwrap:hover{filter:brightness(1.2)}
.orbit-dragging .book{transition:none!important}
.library .book-info{margin-top:0}
@media(max-width:800px){.hero{min-height:100svh;padding-top:135px;padding-bottom:32px}.fire-stage{top:0;bottom:0;right:-12%;width:112%;mask-image:linear-gradient(0deg,transparent,black 8%,black)}.apocalypse-art{object-position:57% center}.shelf{height:540px;min-height:540px;perspective:850px;perspective-origin:50% 25%;margin-top:25px;padding:0}.shelf .book{width:235px;top:45px}.shelf:before{width:120%;left:-10%;height:170px;top:100px}.shelf .book .book-object{width:190px;height:285px}.shelf .book h3{font-size:27px}.library .shelfmeta>span{display:none}}
@media(prefers-reduced-motion:reduce){.shelf .book{transition:none!important;will-change:auto}}
