/* Restrained captions, readable over both marble and space. */
:root{--surface:#0b1c2e;--paper:#f6f1e8;--ink:#182739}
.chapter{width:250px;max-width:250px;padding:16px 18px;background:#0b1c2ee6;border:0;border-left:2px solid var(--gallery-accent);backdrop-filter:none;box-shadow:0 8px 30px #08162e20;color:var(--paper)}
.chapter h2{font-size:24px;line-height:1.15;max-width:none;margin:9px 0 12px}
#chapterNum{font-size:10px;letter-spacing:.15em}
.chapter button{font-size:13px;min-height:40px;padding:9px 0;text-align:left}
.chapter #priceToggle{margin-top:4px;font-size:13px;opacity:1}
.journey-nav{background:#0b1c2ede;color:var(--paper);gap:8px;padding:8px;border-radius:24px}
.journey-nav button{min-width:44px;min-height:44px;border:0;font-size:13px}
header nav{background:#0b1c2e99;border-radius:24px;gap:16px;padding:4px 14px}
nav button,#motion{min-height:44px;font-size:12px;opacity:1}
.brand,footer{color:var(--paper)}
dialog{background:var(--paper);color:var(--ink);border-color:#b8ad95;border-radius:4px}
dialog::backdrop{background:#08162ecc;backdrop-filter:blur(8px)}
.work-card{color:var(--ink)}
.work-image,.detail-visual{background:#e7e2d9}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #bc7928;outline-offset:3px}
input:focus-visible,select:focus-visible{box-shadow:0 0 0 3px #bc792833}
.close{min-width:44px;min-height:44px}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.classic-link{color:inherit;text-decoration:none;font-size:11px;letter-spacing:0;padding:8px}
.no-webgl .intro{opacity:1!important;pointer-events:auto!important}.no-webgl .chapter,.no-webgl .journey-nav{display:none!important}
.detail-actions{display:grid;gap:8px;margin-top:20px}.detail-actions button,#catalogFavorites{min-height:44px;background:transparent;border:1px solid #b8ad95;color:var(--ink);padding:10px 14px;text-align:left;font-size:13px}
.detail-actions button[aria-pressed=true],#catalogFavorites[aria-pressed=true]{background:#182739;color:#fff}
#catalogFavorites{align-self:end}.favorite-mark{font-size:11px!important;color:#745324;margin-top:8px!important}
#shareUrl{width:100%;padding:10px;color:var(--ink)}#shareStatus{font-size:12px;letter-spacing:0!important}
.detail-stage{min-width:0}.zoom-tools{display:flex;gap:8px;align-items:center;margin:0 0 12px}
.zoom-tools button{background:transparent;border:1px solid #b8ad95;color:var(--ink);min-width:44px;min-height:44px;padding:8px}
.zoom-tools output{font-size:12px;min-width:52px;text-align:center}.zoom-tools button:disabled{opacity:.4}
.detail-visual{height:62vh;min-height:0;overflow:auto}
#detail .detail-visual img{max-height:62vh}
.detail-visual.is-zoomed{display:block!important}
#detail .detail-visual.is-zoomed img{width:var(--zoom-width);max-width:none;max-height:none;height:auto;margin:0 auto;justify-self:start}
@media(max-width:650px){.detail-visual{height:45vh}#detail .detail-visual img{max-height:45vh}.zoom-tools{gap:5px;font-size:12px}}
@media(max-width:650px){
 header{padding:18px 5%}header nav{gap:0;padding:2px 10px}nav button,#motion{min-height:44px;font-size:11px;margin:0}
 .chapter{width:230px;max-width:230px;padding:12px 14px;bottom:100px}
 .chapter h2{font-size:20px;margin:7px 0}
 .chapter button,.chapter #priceToggle{font-size:12px;min-height:44px;margin:0;padding:6px 0}
 .journey-nav{bottom:50px;padding:3px 8px;gap:6px}.journey-nav span{font-size:10px}
 footer{font-size:9px;bottom:22px}
}

@media(max-width:650px) and (max-height:550px){
 header{padding:5px 4%}.brand{font-size:12px;margin-top:15px}.brand span{display:none}
 header nav{flex-direction:row;gap:4px;padding:0 6px}#motion{font-size:0;min-width:44px}#motion::before{content:attr(data-icon);font-size:20px}
 .chapter{bottom:45px;padding:8px 12px;width:230px}.chapter h2{font-size:17px;margin:3px 0}.chapter #chapterNum{font-size:9px}.chapter button,.chapter #priceToggle{min-height:44px;padding:4px 0}
 .journey-nav{bottom:4px;right:4%;padding:0 4px}footer{left:4%;right:auto;bottom:12px}footer .scrollhint,footer #percent{display:none}
 .intro{bottom:13%;padding:8px 12px}.intro h1{font-size:20px}
}

.acquire{display:block;text-decoration:none;text-align:center;min-height:44px;padding:12px 16px;box-sizing:border-box;background:#182739;color:#fff!important}.acquire[hidden]{display:none}
#detailimg{border:4px solid #111416;box-sizing:border-box;box-shadow:0 8px 24px #18273924}
.catalog-empty{grid-column:1/-1;padding:24px;border:1px solid #b8ad95;letter-spacing:0}.catalog-empty button{padding:12px!important;min-height:44px;border:1px solid #745324!important;background:#182739!important;color:#fff}
@media(max-width:950px) and (max-height:550px){header{padding:10px 4%}.brand{font-size:14px}.brand span{display:none}header nav{flex-direction:row;gap:6px;padding:0 8px}header nav button{min-height:44px}.chapter{bottom:58px;padding:10px 12px;width:230px;max-width:230px}.chapter h2{font-size:18px;margin:5px 0}.chapter button,.chapter #priceToggle{min-height:44px;font-size:12px;padding:5px 0}.journey-nav{bottom:4px;top:auto;flex-direction:row;gap:7px;padding:0 8px}.journey-nav span{writing-mode:horizontal-tb;transform:none}footer{bottom:8px;left:4%;right:auto}footer .scrollhint,footer #percent{display:none}.classic-link{display:inline-block;min-height:44px;padding:12px 5px}.intro{top:auto;bottom:16%;padding:10px}.intro h1{font-size:24px}.intro .eyebrow,.introcopy{display:none}}
#detail>.close{position:sticky;top:0;float:right;margin:-20px -20px 0 0;z-index:5;background:#f1f1e9;border:1px solid #b8ad95;border-radius:50%;width:44px;height:44px;line-height:1}.detail-layout{clear:both}
@media(max-width:650px) and (max-height:550px){.chapter{bottom:54px;padding:6px 12px}.chapter h2{font-size:17px;margin:3px 0}}
.resource-notice{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);z-index:8;background:#f6f1e8;color:#182739;padding:24px;max-width:90vw;width:360px;box-shadow:0 8px 30px #08162e55}.resource-notice[hidden],#detailImageError[hidden]{display:none}.resource-notice button,.resource-notice a,#retryDetailImage{display:inline-block;min-height:44px;padding:12px;border:1px solid #745324;color:#182739;background:transparent}.resource-notice a{margin-left:8px}#favoriteStatus{letter-spacing:0!important;line-height:1.5;font-size:12px!important}
#detailimg[hidden]{display:none!important}
