/* New artwork stays in the same scalable stage and in-place panel stack. */
.graphic-hall,.graphic-list{background:#082952;overflow:clip}
body.still .venue-panel{animation:none!important;opacity:1}
.graphic-world{z-index:0}
.graphic-world .world-fill img{object-fit:fill}
.graphic-twinkle img{animation:graphic-twinkle 4.5s ease-in-out infinite}
.graphic-streak img{animation:graphic-streak 8s ease-in-out infinite}
.graphic-spark img{animation:graphic-spark 4s ease-in-out infinite}
.graphic-hall>.piece,.graphic-list>.piece{z-index:6}
.graphic-hall>.graphic-mascot{z-index:4;pointer-events:none}
.graphic-mascot>span{display:block;width:100%;height:100%;animation:graphic-mascot 6s ease-in-out infinite}
.graphic-belt{position:absolute;inset:210px 0 140px;z-index:2;touch-action:none}
.graphic-category{position:absolute;left:50%;top:20px;width:514px;height:698px;padding:0;background:transparent;transform:translateX(calc(-50% + var(--card-offset) + var(--drag-offset,0px))) scale(var(--card-scale));transform-origin:center 80%;transition:transform .8s cubic-bezier(.22,.7,.2,1)}
.graphic-category.selected{filter:drop-shadow(0 0 20px #8be8ff99)}
.graphic-card-idle{position:relative;display:block;width:100%;height:100%;animation:graphic-card-float 5s ease-in-out infinite}
.graphic-category::after{content:'';position:absolute;bottom:-13px;left:10%;width:80%;height:24px;border-radius:50%;background:#8ef3ff;filter:blur(15px);opacity:0;transition:opacity .5s;pointer-events:none}
.graphic-category.selected::after{opacity:.8}
.graphic-category:nth-child(even) .graphic-card-idle{animation-delay:-2.5s}
.graphic-category img{width:100%;height:100%;object-fit:contain;pointer-events:none;filter:brightness(.88);transition:filter .5s}
.graphic-category:hover img{filter:brightness(1.05)}
/* Three PSD cards include a dimmed state; compensate when that card is active. */
.graphic-category.selected img{filter:brightness(1.5) saturate(1.08) drop-shadow(0 0 7px #bcfaff)}
.graphic-category.selected[data-category="poster"] img{filter:brightness(1.1) saturate(1.08) drop-shadow(0 0 7px #bcfaff)}
.dragging .graphic-category{transition:none}
.dragging .graphic-card-idle{animation-play-state:paused}
.graphic-arrow:disabled{opacity:.35;cursor:default}
.graphic-status{position:absolute;left:50%;top:970px;translate:-50% 0;width:290px;margin:0;text-align:center;font-size:24px;color:#e6f6ff;z-index:5;pointer-events:none}
.graphic-hall .graphic-status{white-space:nowrap;font-size:23px}
.graphic-auto-hint{position:absolute;left:50%;top:1035px;translate:-50% 0;margin:0;color:#c5e9ff;font-size:19px;white-space:nowrap;pointer-events:none;z-index:5}
.graphic-list .graphic-world{filter:brightness(.55)}
.graphic-works{position:absolute;left:calc(50% - 900px);top:225px;width:1800px;height:700px;overflow:hidden;z-index:2;touch-action:none}
.graphic-works-track{position:absolute;inset:0;transition:transform .35s ease;translate:var(--drag-offset,0px) 0}
.graphic-work{position:absolute;top:0;height:700px;background:none;padding:0 8px 32px}
.graphic-work img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;transition:filter .2s,scale .2s}
.graphic-work:hover img{filter:brightness(1.12);scale:1.02}
.graphic-work>span{position:absolute;bottom:0;left:0;right:0;font-size:22px;color:#b8ddf6}
.graphic-list [data-art$="-title"]{z-index:7}
dialog.image-viewer{width:min(1100px,94vw);height:calc(var(--visible-height,100dvh) - 24px);max-height:none;grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);overflow:hidden}
.image-viewer .detail-copy{grid-row:1;padding:13px 60px 10px 20px;align-self:start}
.image-viewer .detail-copy h2{font-size:18px;margin:0}
.image-viewer .detail-copy p{font-size:11px;margin:3px 0 0;line-height:1.5}
.image-viewer #detail-tag,.image-viewer #detail-done{display:none}
.image-viewer #detail-art{grid-row:2;display:block;min-height:0;overflow:auto;touch-action:pan-x pan-y pinch-zoom;padding:16px;text-align:center}
.image-viewer #detail-art img{max-width:100%;max-height:none;width:auto;height:auto;min-height:0;filter:none;cursor:zoom-in}
.image-viewer.zoomed #detail-art img{max-width:none;width:150%;cursor:zoom-out}
.image-viewer #close{position:absolute;top:10px}
@keyframes graphic-twinkle{0%,100%{opacity:.3}50%{opacity:1}}
@keyframes graphic-streak{0%,100%{opacity:.45;translate:-20px 12px}50%{opacity:1;translate:20px -12px}}
@keyframes graphic-spark{0%,100%{opacity:.35;scale:.7}50%{opacity:1;scale:1.2}}
@keyframes graphic-mascot{50%{transform:translateY(-12px) rotate(.8deg)}}
@keyframes graphic-card-float{50%{transform:translateY(-12px)}}
@media(prefers-reduced-motion:reduce){.graphic-category,.graphic-works-track{transition:none}.graphic-world img,.graphic-card-idle,.graphic-mascot>span{animation:none}}

/* The supplied portrait transition art is used for loading and rotation. */
#loading,#rotate{background:#114b91 url('assets/intro-bg.webp') center/cover no-repeat;padding:0;overflow:hidden}
#loading{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:18px}
#loading .loading-star{display:block;width:min(40vw,210px);height:auto;animation:intro-star 3s ease-in-out infinite}
#loading p{margin:0;font-size:17px;letter-spacing:2px}
.loading-progress{width:min(65vw,340px);height:18px;border:1px solid #c0ecff;border-radius:30px;background:#78a2dc;overflow:hidden;box-shadow:0 0 10px #b4eaff44}
.loading-progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,#0ba7ed,#b2ffff);border-radius:inherit;box-shadow:0 0 12px #c8ffff;transition:width .2s}
#loading-error{max-width:300px;padding:12px;text-align:center}
#loading-error[hidden]{display:none}
#loading-error button{padding:9px 25px;background:#d4f3ff;color:#124b77;border-radius:24px;margin-top:12px}
#rotate .rotate-design{position:relative;width:min(100vw,calc(var(--visible-height,100dvh)*.5625));height:min(var(--visible-height,100dvh),177.778vw);flex-shrink:0}
#rotate .rotate-design img{position:absolute;object-fit:contain;pointer-events:none}
#rotate .turn-icon{left:3.6%;top:10.5%;width:96.4%;height:25.6%;animation:intro-turn 4s ease-in-out infinite}
#rotate .rotate-divider{left:10.8%;top:41%;width:79.4%;height:5.6%}
#rotate h1{position:absolute;top:36.4%;left:5%;width:90%;margin:0;font-size:clamp(16px,5.2vw,29px);line-height:1.4;font-weight:500;letter-spacing:.5px}
#rotate p{position:absolute;left:9%;top:47.7%;width:82%;font-size:clamp(12px,3.7vw,20px);line-height:1.8;margin:0;color:#e4f4ff}
#rotate #portrait-continue{position:absolute;left:19.6%;top:57.65%;width:60.2%;height:11.2%;margin:0;padding:0;background:none;border:0}
#portrait-continue img{inset:0;width:100%;height:100%}
@media(orientation:portrait) and (max-width:950px){#rotate:not(.dismissed){align-items:center;justify-content:center}}
@media(orientation:landscape){#loading .loading-star{width:min(22vh,130px)}#loading{gap:12px}#loading p{font-size:14px}}
@keyframes intro-star{50%{transform:translateY(-7px) rotate(5deg);filter:brightness(1.18)}}
@keyframes intro-turn{50%{transform:rotate(-8deg)}}
@media(prefers-reduced-motion:reduce){#rotate .turn-icon,#loading .loading-star{animation:none}}
