#wls-loading-screen{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;background-color:var(--wls-background,#fbf5ff);color:var(--wls-text,#49355f);font-family:var(--wls-font,Georgia,serif);opacity:1;visibility:visible;overflow:hidden;transition:opacity .45s ease,visibility .45s ease}
#wls-loading-screen.wls-hidden{opacity:0;visibility:hidden;pointer-events:none}
#wls-loading-screen .wls-content{position:relative;z-index:2;width:min(92vw,760px);padding:28px;box-sizing:border-box;text-align:center}
#wls-loading-screen .wls-artwork{display:flex;align-items:center;justify-content:center;gap:clamp(8px,2vw,24px);flex-wrap:wrap;margin:0 auto 24px}
#wls-loading-screen .wls-artwork img{display:block;width:auto;height:auto;max-width:min(30vw,210px);max-height:34vh;object-fit:contain;transform-origin:center;animation-duration:3.5s;animation-timing-function:ease-in-out;animation-iteration-count:infinite}
#wls-loading-screen.wls-image-float .wls-artwork img{animation-name:wls-screen-float}
#wls-loading-screen.wls-image-rotate .wls-artwork img{animation-name:wls-screen-rotate;animation-duration:var(--wls-artwork-rotation-speed,20s);animation-timing-function:linear}
#wls-loading-screen.wls-image-sway .wls-artwork img{animation-name:wls-screen-sway}
#wls-loading-screen.wls-image-pulse .wls-artwork img{animation-name:wls-screen-pulse}
#wls-loading-screen.wls-image-bob .wls-artwork img{animation-name:wls-screen-bob}
#wls-loading-screen.wls-image-none .wls-artwork img{animation:none}
#wls-loading-screen .wls-title{font-size:var(--wls-title-size,30px);line-height:1.25;font-weight:600;margin:0 auto 10px;overflow-wrap:anywhere}
#wls-loading-screen .wls-subtitle{font-size:var(--wls-subtitle-size,16px);line-height:1.5;opacity:.86;overflow-wrap:anywhere}
#wls-loading-screen .wls-loader-dots{display:flex;justify-content:center;gap:7px;margin:25px auto 0}
#wls-loading-screen .wls-loader-dots span{width:7px;height:7px;border-radius:50%;background:currentColor;opacity:.35;animation:wls-screen-dot 1s ease-in-out infinite}
#wls-loading-screen .wls-loader-dots span:nth-child(2){animation-delay:.15s}
#wls-loading-screen .wls-loader-dots span:nth-child(3){animation-delay:.3s}
#wls-loading-screen.wls-animation-fade .wls-content{animation:wls-screen-fade 1.2s ease-in-out infinite alternate}
#wls-loading-screen.wls-animation-none .wls-loader-dots span{animation:none}
#wls-loading-screen .wls-floating-effect{position:absolute;z-index:1;left:var(--wls-left);top:var(--wls-top);font-size:var(--wls-size);opacity:0;pointer-events:none;animation:wls-screen-drift var(--wls-speed) ease-in-out var(--wls-delay) infinite}
@keyframes wls-screen-dot{0%,80%,100%{transform:translateY(0);opacity:.3}40%{transform:translateY(-7px);opacity:1}}
@keyframes wls-screen-fade{from{opacity:.7}to{opacity:1}}
@keyframes wls-screen-float{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-10px) rotate(2deg)}}
@keyframes wls-screen-rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
@keyframes wls-screen-sway{0%,100%{transform:rotate(-6deg)}50%{transform:rotate(6deg)}}
@keyframes wls-screen-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.045)}}
@keyframes wls-screen-bob{0%,100%{transform:translateY(0)}30%{transform:translateY(-12px)}55%{transform:translateY(0)}70%{transform:translateY(-5px)}}
@keyframes wls-screen-drift{0%{transform:translate3d(0,14px,0) rotate(-12deg) scale(.7);opacity:0}20%{opacity:.75}80%{opacity:.65}100%{transform:translate3d(12px,-70px,0) rotate(24deg) scale(1.1);opacity:0}}
@media(max-width:600px){#wls-loading-screen .wls-content{padding:20px}#wls-loading-screen .wls-artwork img{max-width:35vw;max-height:25vh}#wls-loading-screen .wls-title{font-size:min(var(--wls-title-size,30px),8vw)}}
@media(prefers-reduced-motion:reduce){#wls-loading-screen *,#wls-loading-screen *:before,#wls-loading-screen *:after{animation:none!important;transition:none!important}}

/* Decorative variations */
#wls-loading-screen .wls-effect-clouds{opacity:.72;color:#fff;text-shadow:0 1px 8px rgba(120,140,180,.18);animation-name:wls-screen-cloud-drift}
#wls-loading-screen .wls-effect-rainbows{filter:drop-shadow(0 1px 3px rgba(220,120,180,.25))}
#wls-loading-screen .wls-effect-petals{filter:drop-shadow(0 1px 2px rgba(230,120,170,.15))}
#wls-loading-screen .wls-effect-moons{color:#f3d889;text-shadow:0 0 8px rgba(243,216,137,.3)}
#wls-loading-screen .wls-effect-shooting-stars{text-shadow:0 0 8px rgba(255,240,170,.45)}
@keyframes wls-screen-cloud-drift{0%{transform:translate3d(-12px,8px,0);opacity:0}15%{opacity:.78}85%{opacity:.72}100%{transform:translate3d(28px,-20px,0);opacity:0}}

/* Static background image; animation is reserved for the uploaded PNG artwork. */
#wls-loading-screen .wls-background-layer{position:absolute;z-index:0;inset:0;background-position:center;background-size:cover;background-repeat:no-repeat;pointer-events:none}

/* Pause page CSS animations only while the loading overlay is present.
   Removing .wls-loading-active resumes each animation at its paused progress.
   The overlay and its own artwork/effects are excluded. */
body.wls-loading-active,
body.wls-loading-active::before,
body.wls-loading-active::after,
body.wls-loading-active *:not(#wls-loading-screen):not(#wls-loading-screen *),
body.wls-loading-active *:not(#wls-loading-screen):not(#wls-loading-screen *)::before,
body.wls-loading-active *:not(#wls-loading-screen):not(#wls-loading-screen *)::after{animation-play-state:paused!important}
