#app-startup{position:fixed;inset:0;z-index:10000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:26px;padding:calc(24px + env(safe-area-inset-top)) 28px calc(24px + env(safe-area-inset-bottom));background:linear-gradient(180deg,#174c4f 0px,#174c4f env(safe-area-inset-top,0px),#174c4f00 calc(env(safe-area-inset-top,0px) + 160px)),radial-gradient(ellipse at 100% 100%,#69c49b55,transparent 65%),radial-gradient(ellipse at 90% 28%,#359b8955,transparent 60%),radial-gradient(ellipse at 0% 90%,#0b203acc,transparent 70%),linear-gradient(145deg,#174c4f 5%,#123c46 44%,#266c59 100%);color:#edf7f2;text-align:center;overflow:hidden;}
.startup-brand{position:relative;display:flex;align-items:center;justify-content:center;width:240px;height:96px;max-width:80vw;}
.startup-brand img{display:block;width:100%;height:auto;object-fit:contain;}
.startup-progress{width:64px;height:3px;border-radius:4px;background:#ffffff20;overflow:hidden;}
.startup-progress::after{content:"";display:block;width:28px;height:100%;border-radius:4px;background:#a9dfce;animation:startup-progress 1.25s ease-in-out infinite;}
#app-startup #startup-status{width:100%;max-width:360px;box-sizing:border-box;text-align:center;text-wrap:balance;align-self:center;font-size:13px;line-height:1.6;color:#c9ded6;margin:0;}
#startup-retry{background:#ffffff14;color:white;border:1px solid #ffffff45;border-radius:12px;padding:12px 18px;min-height:44px;}
html.app-starting #app{visibility:hidden;}html.app-starting{overflow:hidden;}
#app-startup.is-leaving{pointer-events:none;animation:startup-leave .28s ease forwards;}
html.app-start-ready #app{animation:startup-enter .32s cubic-bezier(.2,.7,.2,1);}
html.app-starting :is(.app-view-enter,.app-widget-enter){animation:none;}
@keyframes startup-breathe{0%,100%{opacity:.82;transform:scale(.985)}50%{opacity:1;transform:scale(1)}}
@keyframes startup-progress{0%{transform:translateX(-28px)}100%{transform:translateX(64px)}}
@keyframes startup-leave{to{opacity:0;transform:scale(1.015)}}
@keyframes startup-enter{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.startup-brand,.startup-progress::after,html.app-start-ready #app{animation:none;}#app-startup.is-leaving{animation:none;opacity:0;}.startup-progress::after{width:100%;}}

/* Native iOS status-bar canvas and the top of the splash share one colour. */
html.app-starting,html.app-starting body{background-color:#174c4f;}
