.app-splash{display:none}.app-splash.is-loading{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;overflow:hidden;background:radial-gradient(ellipse at 50% 43%,#176d97 0%,#124e78 42%,#092d4d 100%);color:#fff;font-family:system-ui,-apple-system,Segoe UI,sans-serif}
.app-splash::before,.app-splash::after{content:"";position:absolute;width:65vmin;height:65vmin;border:1px solid #4bdded40;transform:rotate(30deg);border-radius:12%;pointer-events:none}.app-splash::before{top:-20vmin;right:-25vmin;box-shadow:0 0 0 35px #36bed00a,0 0 0 70px #36bed00a}.app-splash::after{bottom:-27vmin;left:-23vmin;box-shadow:0 0 0 28px #36bed00a,0 0 0 56px #36bed00a}
.splash-content{position:relative;z-index:1;text-align:center;padding:32px 24px;width:min(100%,500px)}.splash-content img{display:block;width:clamp(150px,42vw,230px);height:auto;margin:0 auto 24px;filter:drop-shadow(0 12px 28px #001b4b55)}.splash-content strong{display:block;font-size:clamp(32px,8vw,44px);font-weight:750;letter-spacing:-.04em;color:#fff}.splash-content p{margin:8px 0 0;color:#c7eef7;font-size:clamp(16px,4vw,20px);font-weight:400}.splash-content small{display:block;margin-top:42px;color:#91cedc;font-size:12px;letter-spacing:.16em;text-transform:uppercase}.splash-loader{height:3px;width:110px;margin:28px auto 0;border-radius:8px;background:#bcebf526;overflow:hidden}.splash-loader::after{content:"";display:block;width:45%;height:100%;background:#62ddeb;border-radius:8px;animation:splash-progress 1.3s ease-in-out infinite}
@keyframes splash-progress{0%{transform:translateX(-110%)}100%{transform:translateX(330%)}}
@media(prefers-reduced-motion:reduce){.splash-loader::after{animation:none;transform:translateX(60%)}}
@media(max-height:480px){.splash-content{padding:12px}.splash-content img{width:100px;margin-bottom:8px}.splash-content small{margin-top:12px}.splash-loader{margin-top:12px}}
/* Geometria com contraste suficiente para telas de celular. */
.app-splash::before{width:80vmin;height:80vmin;top:-18vmin;right:-30vmin;border:2px solid #5ce6f599;box-shadow:0 0 0 26px #36bed01c,0 0 0 54px #36bed012;transform:rotate(35deg)}
.app-splash::after{width:75vmin;height:75vmin;bottom:-20vmin;left:-26vmin;border:2px solid #5ce6f580;box-shadow:0 0 0 26px #36bed01c,0 0 0 54px #36bed012;transform:rotate(35deg)}
#splash-enter{width:auto;display:inline-block;margin:22px 0 0;padding:10px 18px;min-height:44px;background:transparent;border:1px solid #70cddd80;border-radius:24px;color:#dcf8ff;font:500 14px system-ui;cursor:pointer}
#splash-enter:focus-visible{outline:3px solid #b1f557;outline-offset:4px}

/* Welcome remains visible until the explicit entry action. */
body:has(.app-splash.is-loading){overflow:hidden}
body:has(.app-splash.is-loading)>:not(.app-splash):not(script){visibility:hidden}
.app-splash.is-loading{overflow-y:auto}
.splash-loader::after{animation:none;transform:translateX(60%)}
/* Gentle, continuous welcome animation; entry remains an explicit action. */
@media(prefers-reduced-motion:no-preference){
 .app-splash.is-loading::before{animation:splash-drift-top 40s linear infinite}
 .app-splash.is-loading::after{animation:splash-drift-bottom 40s linear infinite}
 .app-splash.is-loading .splash-loader::after{animation:splash-progress 2.4s ease-in-out infinite;transform:none}
}
@keyframes splash-drift-top{0%{transform:translate(0,0) rotate(35deg)}50%{transform:translate(-12vmin,16vmin) rotate(215deg)}100%{transform:translate(0,0) rotate(395deg)}}
@keyframes splash-drift-bottom{0%{transform:translate(0,0) rotate(35deg)}50%{transform:translate(12vmin,-16vmin) rotate(215deg)}100%{transform:translate(0,0) rotate(395deg)}}

/* Circuit tracks follow the rotating geometry; light travels along each edge. */
.app-splash::before,.app-splash::after{display:none}
.splash-circuits{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.circuit-shape{position:absolute;transform:rotate(35deg);transform-origin:center}
.circuit-top{width:80vmin;height:80vmin;top:-18vmin;right:-30vmin}
.circuit-bottom{width:75vmin;height:75vmin;bottom:-20vmin;left:-26vmin}
.circuit-shape svg{display:block;width:100%;height:100%;overflow:visible}
.circuit-band{stroke:#36bed014;stroke-width:48;stroke-linejoin:round}
.circuit-track{stroke:#52c7dc70;stroke-width:2}
.circuit-inner{stroke:#42b7d13d;stroke-width:2}
.circuit-pulse,.circuit-core{stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:72 428;stroke-dashoffset:0}
.circuit-pulse{stroke:#32defa;stroke-width:5;filter:drop-shadow(0 0 5px #2ce2ff)}
.circuit-core{stroke:#d8ffff;stroke-width:1.8;stroke-dasharray:18 482}
.circuit-nodes{fill:#9ffaff;stroke:#22b8d7;stroke-width:2}
.splash-content{perspective:1000px}
.splash-logo-3d{position:relative;display:block;width:clamp(150px,42vw,230px);aspect-ratio:1;margin:0 auto 24px;transform-style:preserve-3d;transform:rotateX(-7deg)}
.splash-logo-3d img{position:absolute;inset:0;display:block;width:100%;height:100%;margin:0;object-fit:contain;backface-visibility:hidden}
.splash-logo-3d .splash-logo-back{transform:rotateY(180deg) translateZ(9px);filter:brightness(.86) saturate(.92) drop-shadow(0 10px 20px #001b4b55)}
.splash-logo-3d .splash-logo-front{transform:translateZ(9px);filter:drop-shadow(0 12px 24px #001b4b66)}
.splash-logo-3d .splash-logo-depth{filter:brightness(.34) saturate(.8)}
.depth-1{transform:translateZ(7px)}.depth-2{transform:translateZ(5px)}.depth-3{transform:translateZ(3px)}.depth-4{transform:translateZ(1px)}
.depth-5{transform:translateZ(-1px)}.depth-6{transform:translateZ(-3px)}.depth-7{transform:translateZ(-5px)}
@media(prefers-reduced-motion:no-preference){
 .circuit-top{animation:splash-drift-top 40s linear infinite}
 .circuit-bottom{animation:splash-drift-bottom 40s linear infinite}


 .splash-logo-3d{animation:splash-logo-turn 12s linear infinite}
}
@keyframes circuit-current{to{stroke-dashoffset:-1000}}
@keyframes splash-logo-turn{0%{transform:rotateX(-7deg) rotateY(0)}25%{transform:rotateX(-3deg) rotateY(90deg)}50%{transform:rotateX(7deg) rotateY(180deg)}75%{transform:rotateX(3deg) rotateY(270deg)}100%{transform:rotateX(-7deg) rotateY(360deg)}}
@media(max-height:480px){.splash-logo-3d{width:100px;margin-bottom:8px}}

/* Moving electrical tips share the beam's seven-second SVG timeline. */
.circuit-pulse{stroke-dashoffset:72}
.circuit-core{stroke-dashoffset:18}
.current-halo{fill:#2ce2ff;opacity:.18;filter:blur(2px)}
.current-ring{fill:#0b658e;stroke:#88faff;stroke-width:1.8;filter:drop-shadow(0 0 4px #2ce2ff)}
.current-tip{fill:#efffff}
@media(prefers-reduced-motion:no-preference){
 .current-halo{animation:current-charge 1.8s ease-in-out infinite}
 .circuit-core{animation:current-shimmer 2.3s ease-in-out infinite}
}
@keyframes current-charge{0%,100%{opacity:.18}50%{opacity:.42}}
@keyframes current-shimmer{0%,100%{opacity:.65}50%{opacity:1}}
@media(prefers-reduced-motion:reduce){.circuit-head,.circuit-pulse,.circuit-core{display:none}}
