.screen-card-shell{position:fixed;inset:12px;z-index:3;pointer-events:none;perspective:1500px}
.screen-card-plane{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;transition:translate .6s ease-out}
.frame-rim{translate:0 0}
.frame-ornaments{translate:var(--depth-x,0px) var(--depth-y,0px);filter:drop-shadow(0 2px 2px #0003)}
.frame-flowers{translate:calc(var(--depth-x,0px)*1.65) calc(var(--depth-y,0px)*1.65);filter:drop-shadow(0 3px 3px #0004)}
body .caption,body:not(.detail) .caption{position:fixed;bottom:auto;left:50%;transform:translate(-50%,-50%);z-index:4;color:#fff3db;text-align:center;pointer-events:none}
.caption #title{font:400 24px/1.1 Georgia,serif;letter-spacing:.025em;margin:0 0 7px;white-space:nowrap;text-shadow:0 1px 3px #0008}
#screen-quote{font:italic 16px/1.2 Georgia,serif;letter-spacing:0;margin:0;white-space:nowrap;text-shadow:0 1px 3px #0008}
body .toolbar{bottom:clamp(145px,23vh,250px)}
body #hint{display:none}
.tile{background:transparent!important;box-shadow:none!important}
.tile .ring-underlay.front{transform:translateZ(1px)}
.tile .ring-underlay.rear{transform:rotateY(180deg) translateZ(1px)}
#viewer .body,#viewer .slab,#viewer .edge{display:none!important}
.ring-florals::after{display:none}
body #viewer{top:40%;height:min(57vh,600px);width:auto;max-width:52vw;aspect-ratio:4/5.2}
@media(max-width:700px){
 .screen-card-shell{inset:5px}
 .caption #title{margin-bottom:5px}
 body .toolbar{bottom:clamp(122px,20vh,185px);max-width:95vw}
 body #viewer{height:min(52vh,510px);max-width:73vw;top:39%}
}
@media(prefers-reduced-motion:reduce){.screen-card-plane{transition:none;translate:0 0}}
.frame-ornaments{filter:none}
@media(max-width:700px){#screen-quote{white-space:normal;overflow-wrap:normal}body .toolbar{bottom:clamp(145px,21vh,195px)}}
/* Backdrops stay inside the illustrated card outline while planes separate. */
#viewer .face>.layer[style*="--n: 0"]{clip-path:inset(1.8% 1.6% 3% round 7%)}
.tile .ring-layer[style*="--n: 0"],.tile .ring-underlay{clip-path:inset(1.8% 1.6% 3% round 7%)}
@media(max-width:700px){body .toolbar{gap:7px;padding:9px 11px;flex-wrap:wrap;justify-content:center;width:max-content;max-width:calc(100vw - 32px);font-size:10px}body .toolbar button{font-size:10px;padding:3px 4px}}
/* The card gallery uses direct interaction instead of the bottom control panel. */
body .toolbar{display:none!important}
