html,body{margin:0;background:#070510}
#startup-screen{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:center;overflow:hidden;box-sizing:border-box;padding:24px;padding-top:max(24px,env(safe-area-inset-top));padding-bottom:max(24px,env(safe-area-inset-bottom));background:#070510;color:#f8f5ff;font-family:Arial,sans-serif;text-align:center;transition:opacity 180ms ease}
#startup-screen[data-leaving]{opacity:0;pointer-events:none}.startup-atmosphere{position:absolute;inset:0;pointer-events:none;overflow:hidden}.startup-atmosphere:before,.startup-atmosphere:after{content:'';position:absolute;width:70vw;height:70vw;border:1px solid #a785e510;transform:rotate(45deg);border-radius:12%;left:-45vw;top:-5vw}.startup-atmosphere:after{left:auto;top:auto;right:-50vw;bottom:-10vw;width:100vw;height:100vw}.startup-atmosphere i{position:absolute;width:min(600px,120vw);height:min(600px,120vw);left:50%;top:43%;transform:translate(-50%,-50%);background:radial-gradient(ellipse,#8c497c26,transparent 64%);border-radius:50%}.startup-atmosphere i+i{background:radial-gradient(ellipse,#835fe525,transparent 65%);top:38%;left:32%}
.startup-content{position:relative;width:min(100%,340px);display:flex;flex-direction:column;align-items:center;animation:none}.startup-eyebrow{margin:0 0 38px;font-size:10px;font-weight:600;letter-spacing:4px;color:#b9a8d0}.startup-emblem{position:relative;display:grid;place-items:center;width:clamp(200px,66vw,288px);height:clamp(200px,66vw,288px);max-width:43vh;max-height:43vh}.startup-emblem:after{content:'';position:absolute;bottom:1%;width:65%;height:10%;border-radius:50%;background:radial-gradient(ellipse,#b972ef38,transparent 70%);pointer-events:none}.startup-logo-frame{position:relative;z-index:2;width:72%;aspect-ratio:1;border-radius:24%;overflow:hidden;isolation:isolate;box-shadow:0 22px 46px #0006,0 0 0 1px #d9c2ff18;animation:startup-emblem-in .8s cubic-bezier(.2,.7,.25,1) both;will-change:transform,opacity}.startup-logo{display:block;width:100%;height:100%;object-fit:contain}.startup-card{position:absolute;z-index:1;top:24%;width:45%;height:58%;border:1px solid #baa0e43d;border-radius:16px;background:linear-gradient(145deg,#393048,#191222);color:#c7b5e4;text-align:left;padding:12px;box-sizing:border-box;font-size:24px;box-shadow:0 12px 25px #0004}.startup-card-left{left:7%;transform:rotate(-19deg);animation:startup-card-left .9s ease-out both}.startup-card-right{right:7%;transform:rotate(19deg);color:#ec738e;background:linear-gradient(150deg,#47293e,#261425);animation:startup-card-right .9s ease-out both}.startup-orbit{position:absolute;inset:0;border:1px solid #baa0e41c;border-radius:50%;transform:rotate(-22deg) scaleY(.78)}.startup-orbit:before,.startup-orbit:after{content:'';position:absolute;width:5px;height:5px;top:48%;left:-3px;border-radius:50%;background:#cfb6f2;box-shadow:0 0 14px #bc8ee999;animation:startup-glow 2.6s ease-in-out infinite alternate}.startup-orbit:after{left:auto;right:-3px;background:#e4a3ba;animation-delay:1s}
.startup-content h1{font-size:clamp(34px,9vw,46px);font-weight:700;letter-spacing:.01em;line-height:1.15;margin:17px 0 10px}.startup-tagline{font-size:13px;line-height:1.5;letter-spacing:.2px;color:#b6a5c7;margin:0 0 38px}.startup-progress{width:144px;height:3px;overflow:hidden;border-radius:4px;background:#bda4d61f}.startup-progress i{display:block;width:54px;height:100%;background:linear-gradient(90deg,#9e80d3,#e1bfec);border-radius:inherit;animation:startup-slide 1.6s ease-in-out infinite}#startup-message{color:#a99ab9;font-size:12px;line-height:1.5;margin:14px 0 0;max-width:270px}#startup-retry{margin-top:16px;min-height:44px;padding:10px 24px;border:1px solid #8c78bd;border-radius:14px;background:#392754;color:#fff;font:600 14px Arial,sans-serif;cursor:pointer}#startup-retry[hidden]{display:none}
@keyframes startup-slide{0%{transform:translateX(-54px)}100%{transform:translateX(144px)}}@keyframes startup-appear{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes startup-emblem-in{from{opacity:0;transform:translateY(18px) scale(.9)}to{opacity:1;transform:none}}@keyframes startup-card-left{from{opacity:0;transform:rotate(-4deg) translateX(20px)}to{opacity:1;transform:rotate(-19deg)}}@keyframes startup-card-right{from{opacity:0;transform:rotate(4deg) translateX(-20px)}to{opacity:1;transform:rotate(19deg)}}@keyframes startup-glow{from{opacity:.35}to{opacity:1}}
@media(max-height:680px){.startup-eyebrow{margin-bottom:18px}.startup-tagline{margin-bottom:25px}.startup-emblem{max-width:36vh;max-height:36vh}}
@media(max-height:440px){#startup-screen{padding:16px}.startup-content{width:100%;display:grid;grid-template-columns:150px minmax(170px,250px);column-gap:28px;justify-content:center;justify-items:center}.startup-emblem{grid-column:1;grid-row:1/7;width:150px;height:150px;max-width:none;max-height:none}.startup-eyebrow{grid-column:2;margin:0 0 10px;font-size:8px;letter-spacing:3px}.startup-content h1{grid-column:2;font-size:32px;margin:0 0 6px}.startup-tagline{grid-column:2;margin-bottom:18px;font-size:11px}.startup-progress,#startup-message,#startup-retry{grid-column:2}#startup-message{margin-top:10px;font-size:11px}#startup-retry{margin-top:8px}.startup-card{font-size:18px;padding:8px;border-radius:10px}}
@media(prefers-reduced-motion:reduce){#startup-screen,.startup-content,.startup-logo-frame,.startup-card,.startup-orbit:before,.startup-orbit:after{transition:none;animation:none}.startup-progress i{animation:none;width:100%;opacity:.65}}
html[data-motion=off] #startup-screen,html[data-motion=off] #startup-screen *{animation:none;transition:none}html[data-motion=off] .startup-progress i{width:100%;opacity:.65}

/* Keep a calm gap before progress after removing the tagline. */
.startup-content h1{margin-bottom:38px}
@media(max-height:680px){.startup-content h1{margin-bottom:25px}}
@media(max-height:440px){.startup-content h1{margin-bottom:18px}}

/* One entrance on a stable dark canvas, continuous with the native launch background. */
#startup-screen:before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 15% 12%,#34224b88,transparent 48%),radial-gradient(ellipse at 88% 90%,#37204666,transparent 54%);animation:startup-backdrop .8s ease-out both}
.startup-eyebrow,.startup-content h1,.startup-progress,#startup-message{animation:startup-copy .65s .12s ease-out both}
@keyframes startup-copy{from{opacity:0}to{opacity:1}}
@keyframes startup-backdrop{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){#startup-screen:before,.startup-logo-frame,.startup-eyebrow,.startup-content h1,.startup-progress,#startup-message{animation:none;will-change:auto}}
html[data-motion=off] #startup-screen:before{animation:none}
.startup-logo-frame{animation-play-state:paused}
#startup-screen[data-logo-ready] .startup-logo-frame{animation-play-state:running}
