/* The room, pets, bezel and their shared shadows are one illustration.
   Only the actual display is live HTML, registered to the painted aperture. */
.story-refined .template-library{height:auto;aspect-ratio:3/2;background:#f6c7b5;isolation:isolate}
.story-refined .template-library:before{display:none}
.story-scene{display:block;width:100%;height:auto;position:relative;z-index:0}
.story-scene-picture{display:block;width:100%}
.story-cat-front{position:absolute;inset:0;z-index:3;display:block;clip-path:url(#cat-in-front);pointer-events:auto}
.story-cat-front img{display:block;width:100%;height:100%}
.cat-mask-def{position:absolute;pointer-events:none}
.story-refined .template-library.has-cat-foreground .template-copy{left:19%;bottom:12%}
.story-refined .template-computer{position:absolute;left:23.18%;top:18.36%;width:56.25%;height:49.61%;right:auto;bottom:auto;max-width:none;z-index:1}
.story-refined .template-monitor{width:100%;height:100%;border:0;border-radius:3% / 5%;box-shadow:none;background:#35213e;overflow:hidden}
.story-refined .template-wall{width:100%;height:100%;aspect-ratio:auto;background:#d9c8bb}
.story-refined .template-belt{filter:sepia(.12) saturate(.82);opacity:.94;gap:12px}
.story-refined .template-card{cursor:default;pointer-events:none;border-radius:12px}
.story-refined .template-screen-shade{background:linear-gradient(0deg,#35213ef7 0%,#35213ec4 22%,#35213e18 58%,#35213e16 83%,#35213e60);box-shadow:inset 0 0 24px #35213e55}
.story-refined .template-wall .template-copy{left:6%;bottom:8%;z-index:4;color:#fff2e9;pointer-events:none}
.story-refined .template-wall .template-copy h2{font-size:clamp(13px,2.35vw,40px);line-height:1.3;letter-spacing:-.035em;margin:0}
.story-refined .template-library.is-static .template-copy{position:sticky;bottom:0;left:0;padding:4%;background:#35213e}
.story-refined .template-library[data-columns] .template-belt{grid-template-columns:repeat(var(--columns,5),minmax(0,1fr))}
.story-refined .template-column:nth-child(4) .template-track{animation-direction:reverse}
.story-refined .template-column:nth-child(5) .template-track{animation-direction:normal}
.story-refined .template-library[data-columns].is-static .template-column{grid-column:auto}
.story-refined .template-library[data-columns].is-static .template-group{display:flex}
.screen-library-link{position:absolute;inset:0;z-index:6;display:block;border-radius:inherit;cursor:pointer;overflow:hidden}
.screen-library-link:focus-visible{outline:3px solid #dcf28b;outline-offset:-5px}
.story-refined .template-belt{opacity:var(--tv-gallery-opacity,.94);transition:opacity .22s ease}
.story-refined .template-wall .template-copy{opacity:var(--tv-copy-opacity,1);transition:opacity .18s ease}
.tv-channel{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;background:radial-gradient(ellipse at 50% 45%,#5a3b5c 0%,#35213e 65%,#28182f 100%);box-shadow:inset 0 0 40px #140b2066;opacity:var(--tv-open,0);clip-path:inset(var(--tv-inset,49.7%) 0);transition:clip-path .48s cubic-bezier(.2,.75,.2,1),opacity .22s ease}
.tv-channel:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(0deg,transparent 0 3px,#fff2e906 3px 4px);pointer-events:none}
.tv-channel-title{color:#fff2e9;font-size:clamp(20px,4.2vw,70px);font-weight:750;letter-spacing:.08em;text-shadow:0 0 28px #f7c7ae33;opacity:var(--tv-open,0);transform:translateY(var(--tv-title-y,12px));transition:opacity .26s ease .16s,transform .38s ease .12s}
.screen-library-link:after{content:"";position:absolute;inset:0;pointer-events:none;opacity:0;background:linear-gradient(180deg,transparent 43%,#f5d9bd22 48%,#fff2e96b 50%,#f5d9bd22 52%,transparent 57%);transform:translateY(-70%)}
.template-wall:has(.screen-library-link:focus-visible){--tv-gallery-opacity:0;--tv-copy-opacity:0;--tv-open:1;--tv-inset:0%;--tv-title-y:0px}
.screen-library-link:focus-visible:after{animation:tv-channel-scan .62s ease-out both}
@media(hover:hover) and (pointer:fine){
 .template-wall:has(.screen-library-link:hover){--tv-gallery-opacity:0;--tv-copy-opacity:0;--tv-open:1;--tv-inset:0%;--tv-title-y:0px}
 .screen-library-link:hover:after{animation:tv-channel-scan .62s ease-out both}
}
@keyframes tv-channel-scan{0%{opacity:0;transform:translateY(-70%)}20%{opacity:.7}75%{opacity:.35}100%{opacity:0;transform:translateY(70%)}}
@media(prefers-reduced-motion:reduce){.tv-channel,.tv-channel-title,.story-refined .template-belt,.story-refined .template-wall .template-copy{transition:none}.screen-library-link:after{animation:none!important}}
@media(max-width:700px){
 .story-refined .template-belt{gap:5px;top:-35px;width:114%;left:-6%}
 .story-refined .template-group{gap:5px;padding-bottom:5px}
 .story-refined .template-card{border-radius:5px;padding:4px 0}
 .story-refined .template-wall .template-copy{left:5%;bottom:7%}
 .story-refined .template-wall .template-copy h2{font-size:clamp(12px,3.1vw,21px);line-height:1.35}
}
