/* Layout and motion: every exhibit remains a separate, replaceable image/encounter.
   These scene-space variables make future rearrangement independent of artwork. */
.co-room-scene{--co-globe-left:44%;--co-globe-top:25%;--co-globe-width:9.6%;--co-bust-left:74.2%;--co-bust-top:24.1%;--co-bust-width:6.8%;--co-weather-left:56.8%;--co-weather-top:27.5%;--co-weather-width:11.5%}
.co-globe-art{left:var(--co-globe-left);top:var(--co-globe-top);width:var(--co-globe-width)}
.co-globe-trigger{left:calc(var(--co-globe-left) - .3%);top:calc(var(--co-globe-top) - .5%);width:calc(var(--co-globe-width) + .6%);height:calc(var(--co-globe-width)*2.665)}
/* Bust mounting remains at Steve's approved size, with base supported on table. */
.co-bust{position:absolute;left:var(--co-bust-left);top:var(--co-bust-top);width:var(--co-bust-width);aspect-ratio:1122/1402;z-index:1;pointer-events:none;filter:drop-shadow(2px 2px 1px #25130355)}
.co-bust-art,.co-weather-art{position:absolute;inset:0;pointer-events:none}
.co-bust-art>img{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:contain;max-width:none!important;border:0!important;margin:0!important;padding:0!important;opacity:0;transition:opacity .12s ease;clip-path:inset(0 0 15% 0)}
.co-bust-art>.co-bust-foot{opacity:1;clip-path:inset(84% 0 0 0)}
[data-exhibit-state="rest"] .co-bust-rest,[data-exhibit-state="anticipate"] .co-bust-rest{opacity:1}
[data-exhibit-state="sneeze"] .co-bust-sneeze,[data-exhibit-state="fall"] .co-bust-sneeze{opacity:1}
[data-exhibit-state="catch"] .co-bust-catch,[data-exhibit-state="replace"] .co-bust-catch{opacity:1}
[data-exhibit-state="upside"] .co-bust-adjust,[data-exhibit-state="correct"] .co-bust-adjust{opacity:1}
.co-bust-moustache{position:absolute;left:39%;top:21.5%;width:31%;aspect-ratio:3/1;opacity:0;z-index:5;transform-origin:50% 25%}
.co-bust-moustache img{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:contain;max-width:none!important;border:0!important;margin:0!important;padding:0!important}
[data-exhibit-state="sneeze"] .co-bust-moustache{opacity:1}
[data-exhibit-state="fall"] .co-bust-moustache{opacity:1;animation:co-stache-fall .6s ease-in both}
[data-exhibit-state="catch"] .co-bust-moustache{opacity:1;left:39%;top:29%}
[data-exhibit-state="replace"] .co-bust-moustache{opacity:1;animation:co-stache-replace .65s ease-in-out both}
[data-exhibit-state="upside"] .co-bust-moustache{opacity:1;top:22.7%;transform:rotate(180deg)}
[data-exhibit-state="correct"] .co-bust-moustache{opacity:1;animation:co-stache-correct .6s ease-in-out both}
[data-exhibit-state="anticipate"] .co-bust-rest{animation:co-bust-sniff .6s ease both;transform-origin:50% 70%}
@keyframes co-stache-fall{0%{left:39%;top:21.5%;transform:rotate(0)}60%{transform:rotate(9deg)}100%{left:39%;top:29%;transform:rotate(0)}}
@keyframes co-stache-replace{0%{left:39%;top:29%;transform:rotate(0)}45%{left:42%;top:24.5%;transform:rotate(95deg)}100%{left:39%;top:22.7%;transform:rotate(180deg)}}
@keyframes co-stache-correct{from{top:22.7%;transform:rotate(180deg)}to{top:21.5%;transform:rotate(360deg)}}
@keyframes co-bust-sniff{0%,100%{transform:rotate(0)}35%{transform:rotate(-.6deg)}70%{transform:rotate(.6deg)}}
/* Plant, cloud, rain and open leaf are separate layers and assets. */
.co-weather{position:absolute;left:var(--co-weather-left);top:var(--co-weather-top);width:var(--co-weather-width);aspect-ratio:1/2;z-index:1;pointer-events:none}
.co-weather-art>img{position:absolute;height:auto!important;max-width:none!important;border:0!important;margin:0!important;padding:0!important;transition:opacity .18s ease,filter .3s ease}
.co-weather-cloud{left:10%;top:-8%;width:80%!important;z-index:3}
.co-weather-pot,.co-weather-plant{left:0;top:24.5%;width:100%!important;filter:drop-shadow(0 3px 2px #25130355)}
.co-weather-pot{clip-path:inset(90% 0 0 0)}
.co-weather-plant{clip-path:inset(0 0 9% 0);opacity:0}
.co-weather-offended{opacity:0;clip-path:ellipse(18% 18% at 61% 46%)}.co-weather-helpful{opacity:1}
[data-exhibit-state="rest"] .co-weather-folded,[data-exhibit-state="prepare"] .co-weather-folded,[data-exhibit-state="rain"] .co-weather-folded{opacity:1}
[data-exhibit-state="umbrella"] .co-weather-open,[data-exhibit-state="offended"] .co-weather-open,[data-exhibit-state="recover"] .co-weather-open{opacity:1}
[data-exhibit-state="prepare"] .co-weather-helpful,[data-exhibit-state="rain"] .co-weather-helpful,[data-exhibit-state="umbrella"] .co-weather-helpful{filter:brightness(.83) saturate(.83)}
[data-exhibit-state="offended"] .co-weather-helpful{opacity:1}[data-exhibit-state="offended"] .co-weather-offended{opacity:1}
.co-weather-rain{position:absolute;left:15%;top:13%;width:70%;height:21%;z-index:2;overflow:hidden;opacity:0;pointer-events:none;transition:opacity .15s ease}
.co-weather-rain span{position:absolute;left:calc(4% + var(--drop)*9.5%);top:-20%;width:1px;height:15%;background:linear-gradient(transparent,#d7f3ff);border-radius:50%;opacity:.9}
[data-exhibit-state="rain"] .co-weather-rain,[data-exhibit-state="umbrella"] .co-weather-rain{opacity:1}
[data-exhibit-state="rain"] .co-weather-rain span,[data-exhibit-state="umbrella"] .co-weather-rain span{animation:co-small-rain .55s linear infinite;animation-delay:calc(var(--drop)*-.073s)}
[data-exhibit-state="umbrella"] .co-weather-rain{clip-path:polygon(0 0,100% 0,100% 100%,85% 88%,65% 68%,50% 60%,35% 68%,15% 88%,0 100%)}
@keyframes co-small-rain{from{transform:translateY(0)}to{transform:translateY(850%)}}
.co-exhibit-trigger{position:absolute!important;inset:0;width:100%;height:100%;pointer-events:auto;background:transparent!important;border:0!important;padding:0!important;box-shadow:none!important;cursor:pointer}
.co-weather .co-exhibit-trigger{top:-10%;height:110%}.co-exhibit-trigger:disabled{pointer-events:none}
.co-exhibit-trigger:focus-visible{outline:2px solid #edd5a3!important;outline-offset:3px}
.co-exhibit-dialog{position:fixed;inset:0;box-sizing:border-box;width:min(92vw,580px);max-width:92vw;max-height:94dvh;overflow:auto;padding:18px 22px;color:#f7e8d0;background:radial-gradient(ellipse at 50% 40%,#5b4632,#211a18 80%);border:1px solid #a27d49;border-radius:14px;box-shadow:0 20px 80px #0009;text-align:center}
.co-exhibit-dialog::backdrop{background:#130e0bd9}
.co-exhibit-dialog h2{color:#f7e8d0;font:normal 25px Georgia,serif;margin:4px 45px 12px}
.co-exhibit-close-art{position:relative;margin:0 auto 12px}
.co-bust-zoom{width:min(100%,43vh);aspect-ratio:1122/1402}
.co-weather-zoom{width:min(100%,31vh);aspect-ratio:1/2.2}
.co-weather-zoom .co-weather-art{inset:auto;left:0;top:10%;width:100%;height:90%}
.co-exhibit-dialog button{cursor:pointer;background:#e3c89a;color:#251a12;border:1px solid #c39a60;border-radius:6px;padding:9px 15px;font-size:16px}
.co-exhibit-dialog .co-exhibit-dismiss{position:absolute;right:10px;top:10px;padding:6px 10px;font-size:20px;line-height:1}
.co-exhibit-dialog button:focus-visible{outline:2px solid #fff;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.co-bust-art>img,.co-weather-art>img,.co-weather-rain{transition:none}[data-exhibit-state] .co-bust-rest,[data-exhibit-state] .co-bust-moustache,[data-exhibit-state] .co-weather-rain span{animation:none}[data-exhibit-state="fall"] .co-bust-moustache{top:29%}[data-exhibit-state="replace"] .co-bust-moustache{top:22.7%;transform:rotate(180deg)}[data-exhibit-state="correct"] .co-bust-moustache{top:21.5%;transform:rotate(360deg)}.co-weather-rain span{top:calc(var(--drop)*8%)}}
