/* Physical, finite bookshelves. Canvas has extra room for the complete ground shadow. */
:root{--paper:#eeece5;--cobalt:#c51920}
html,body{height:auto;min-height:100%;overflow-x:clip;overflow-y:auto}
body{min-height:100svh}body:has(dialog[open]){overflow:hidden}
.topbar{position:relative;height:76px}
#content{height:auto;min-height:0;padding-bottom:32px;overflow:visible}
.year-nav{position:relative;inset:auto;margin:0 36px;padding:12px 0 9px;justify-content:flex-start;gap:clamp(17px,2vw,30px)}
.collection-label{position:relative;inset:auto;transform:none;margin:24px auto 0;gap:8px}
.big-type{top:100px;font-size:clamp(75px,12vw,170px);opacity:.45}
.big-left{top:105px}.big-right{top:85px}
.floor-shadow{display:none}
.shelf{position:relative;top:auto;width:100%;height:480px;perspective:none;z-index:10;overflow:visible;touch-action:pan-y}
.stage{position:absolute;inset:0;width:100%;height:100%;transform-style:flat;overflow:visible}
.stage canvas{position:absolute;left:0;top:0;display:block;width:100%;height:calc(100% + 120px);touch-action:pan-y}
#coverHit{display:none}
.play-ring{transform:none;width:36px;height:36px;font-size:22px;transition:opacity .2s;background:#eeece5e8}
.shelf-summary{position:relative;z-index:20;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:start;gap:22px;width:min(800px,calc(100% - 48px));margin:34px auto 0;background:transparent}
.shelf-summary .caption{position:relative;inset:auto;transform:none;display:grid;gap:12px;min-width:0;color:#171916;pointer-events:auto}
.shelf-summary .mask{display:block;width:100%;height:auto;overflow:visible;min-height:0}
.shelf-summary .title-mask{font:600 28px/1.22 StudioSans,Arial,sans-serif;letter-spacing:-.045em;text-wrap:balance;word-break:keep-all;overflow-wrap:anywhere}
.shelf-summary .subtitle-mask{font:500 9px/1.6 var(--sans);letter-spacing:.2em;color:var(--cobalt);text-wrap:balance}
.shelf-summary .meta-mask{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:10px;font:500 11px/1.6 StudioSans,Arial,sans-serif;letter-spacing:0;color:#4c514e}
.meta-mask b{font-weight:500;color:var(--cobalt)}
.caption i{display:none}
.shelf-summary .step{position:relative;inset:auto;width:44px;height:44px;margin-top:-6px;transition:opacity .2s}
.step:disabled{opacity:.18;cursor:default}
.shelf-hint{position:relative;inset:auto;transform:none;display:block;white-space:normal;text-align:center;margin:30px 36px 0;padding-top:22px;border-top:1px solid #c5192024;color:var(--cobalt);font-size:9px}
.timeline{position:relative;inset:auto;height:40px;margin:44px 36px 0}
.footer{position:relative;inset:auto;margin:0 36px;padding:0 0 22px}
.book-index{position:absolute;top:0;left:16px;z-index:40}
.book-index button{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
.book-index button:focus-visible{position:relative;clip-path:none;width:auto;height:auto;background:var(--paper);padding:12px;border:1px solid var(--cobalt)}
@media(min-width:1300px){.shelf{height:510px}}
@media(max-width:767px){
 .topbar{height:60px}
 .year-nav{margin:0 16px;gap:22px;padding:10px 0 7px}
 .collection-label{margin-top:20px;font-size:8px}
 .shelf{height:400px}
 .big-type{font-size:22vw;opacity:.35}.big-left{top:115px}.big-right{top:95px}
 .shelf-summary{grid-template-columns:34px minmax(0,1fr) 34px;gap:4px;width:calc(100% - 24px);margin-top:28px}
 .shelf-summary .title-mask{font-size:21px;line-height:1.28}
 .shelf-summary .subtitle-mask{font-size:8px;letter-spacing:.14em}
 .shelf-summary .meta-mask{font-size:10px;gap:7px}
 .shelf-summary .step{width:34px;height:40px;padding:8px 4px;margin-top:-5px}
 .shelf-summary .caption{gap:11px}
 .play-ring{width:32px;height:32px;font-size:20px}
 .shelf-hint{margin:26px 16px 0;font-size:8px;padding-top:22px}
 .timeline{margin:41px 16px 0}.footer{margin:0 16px;padding-bottom:20px}
}
@media(prefers-reduced-motion:reduce){.play-ring,.step{transition:none}}
.shelf-summary .meta-mask>span{width:auto;display:inline;position:static;inset:auto}
