/* Opening screen of every seller shop: the SkyShopMM picture for 3 seconds with a loading bar. */
#sky-splash{position:fixed;inset:0;z-index:2147483000;background:#f5f7f1;overflow:hidden;transition:opacity .5s ease}
#sky-splash.is-leaving{opacity:0;pointer-events:none}
#sky-splash.is-updating .sky-splash-dots{display:none}
#sky-splash picture,#sky-splash img{position:absolute;inset:0;display:block;width:100%;height:100%}
#sky-splash img{object-fit:cover;object-position:center}
.sky-splash-loading{position:absolute;padding:10px 16px 13px;border-radius:16px;background:rgba(16,52,120,.42);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);box-sizing:border-box;left:50%;bottom:calc(28px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);width:min(84vw,400px);text-align:center;color:#fff;font:700 15px/1.3 system-ui,-apple-system,"Segoe UI",sans-serif;text-shadow:0 1px 8px rgba(0,52,130,.75)}
.sky-splash-bar{height:9px;margin-top:9px;overflow:hidden;border-radius:99px;background:rgba(255,255,255,.6);box-shadow:0 2px 10px rgba(0,52,130,.35)}
.sky-splash-bar i{display:block;width:0;height:100%;border-radius:99px;background:linear-gradient(90deg,#2d8cff,#7a5cff);animation:sky-splash-fill 3s linear forwards}
.sky-splash-dots::after{content:"";animation:sky-splash-dots 1.2s steps(4) infinite}
@keyframes sky-splash-fill{to{width:100%}}
@keyframes sky-splash-dots{0%{content:""}25%{content:"."}50%{content:".."}75%,100%{content:"..."}}
@media(prefers-reduced-motion:reduce){.sky-splash-dots::after{animation:none;content:"..."}}
/* Reload or a quick move between pages: a plain cover in the page colour until the shop is drawn. */
#sky-splash.is-quiet{background:var(--paper,#f5f7f1)}
#sky-splash.is-quiet picture,#sky-splash.is-quiet .sky-splash-loading{display:none}
#sky-splash.is-quiet.is-leaving{transition-duration:.25s}
/* Waiting for the shop (an update, or past the opening time): the bar keeps moving. */
#sky-splash.is-waiting .sky-splash-bar i{width:35%;animation:sky-splash-wait 1.1s ease-in-out infinite}
@keyframes sky-splash-wait{from{transform:translateX(-100%)}to{transform:translateX(290%)}}
@media(prefers-reduced-motion:reduce){#sky-splash.is-waiting .sky-splash-bar i{width:100%;animation:none}}
/* 0–100% counter: the bar follows the real loading steps instead of a timed fill. */
#sky-splash.is-progress .sky-splash-bar i{width:0;animation:none!important;transform:none;transition:width .12s linear}
#sky-splash.is-progress .sky-splash-dots{display:none}
.sky-splash-percent{margin-left:6px;font-variant-numeric:tabular-nums}
/* "Updating": the flower animation on a dark screen replaces the shop picture until 100%. */
#sky-splash.is-updating{background:radial-gradient(ellipse at 50% 72%,#2a0d22 0%,#0a050b 62%,#050306 100%)}
#sky-splash.is-updating picture{display:none}
.sky-bloom{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:center;padding-bottom:calc(150px + env(safe-area-inset-bottom,0px));pointer-events:none}
.sky-bloom svg{width:min(100vw,560px);height:auto;max-height:72vh;overflow:visible}
.sky-bloom .sb-pop{transform-box:fill-box;transform-origin:center}
.sky-bloom .sb-spark{transform-box:fill-box}
/* The picture appears only when it is fully loaded (never blurred, half-drawn or an empty blue box). */
#sky-splash picture{transition:opacity .3s ease}
#sky-splash.is-picture-wait picture{opacity:0}
/* On a fast line only the picture shows; the Loading box appears when loading is slow or updating. */
.sky-splash-loading{transition:opacity .3s ease}
#sky-splash:not(.show-loading):not(.is-updating) .sky-splash-loading{opacity:0;visibility:hidden}
/* 1.1.441 owner: with the opening picture off, the cover is white with the small SkyShopMM cloud-cart logo (same as the app's launch screen) until the shop is ready. */
#sky-splash[data-plain]:not(.is-updating){background:#fff}
#sky-splash .sky-plain-logo{display:none}
#sky-splash[data-plain]:not(.is-updating) .sky-plain-logo{display:block;position:absolute;left:50%;top:50%;width:96px;height:96px;margin:-48px 0 0 -48px;object-fit:contain}
