/* Noctra — Splash (mesma do Noctra Loader): malha roxa, monograma desenhado, wordmark e selos Steam/Retrô */
.splash {
  position: fixed; inset: 0; z-index: 9999; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #07070b; transition: opacity .75s ease, visibility .75s ease; outline: 999px solid #07070b;
}
.splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.sp-mesh { position: absolute; inset: -25%; filter: blur(60px); pointer-events: none; }
.sp-mesh i { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.sp-mesh i:nth-child(1) { width: 62%; height: 62%; left: 19%; top: 8%; background: radial-gradient(circle, rgba(124,92,220,.30), transparent 62%); animation: blobA 10s ease-in-out infinite alternate; }
.sp-mesh i:nth-child(2) { width: 50%; height: 50%; right: 10%; bottom: 6%; background: radial-gradient(circle, rgba(124,92,220,.12), transparent 62%); animation: blobB 12s ease-in-out infinite alternate; }
.sp-mesh i:nth-child(3) { display: none; }
@keyframes blobA { to { transform: translate(6%, 6%) scale(1.08); } }
@keyframes blobB { to { transform: translate(-8%, -6%) scale(1.06); } }
@keyframes blobC { to { transform: translate(-30%, -24%) scale(1.3); } }
.sp-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.sp-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 60% at 50% 46%, transparent 40%, rgba(6,6,10,.85) 100%); }

.sp-core { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; transition: transform .75s cubic-bezier(.6,0,.2,1), filter .75s ease; }
.splash.hide .sp-core { transform: scale(1.18); filter: blur(10px); }
.sp-mark { position: relative; width: 104px; height: 104px; animation: markIn .9s cubic-bezier(.2,.9,.3,1.2) both; }
@keyframes markIn { from { opacity: 0; transform: scale(.7) rotate(-8deg); } to { opacity: 1; transform: none; } }
.sp-mark svg { position: relative; z-index: 1; width: 100%; height: 100%; overflow: visible;
  filter: drop-shadow(0 0 14px rgba(167,139,250,.25)); }
.sp-frame { fill: rgba(255,255,255,.025); stroke: url(#spGrad); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; animation: spDraw 1.1s cubic-bezier(.65,0,.35,1) .15s forwards; }
.sp-n { fill: none; stroke: url(#spGrad); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: spDraw .9s cubic-bezier(.65,0,.35,1) .7s forwards; }
@keyframes spDraw { to { stroke-dashoffset: 0; } }
/* brilho que percorre a moldura depois de desenhada */
.sp-orbit {
  position: absolute; inset: -9px; border-radius: 37px; padding: 1.5px; opacity: 0;
  background: conic-gradient(from var(--a, 0deg), transparent 0 78%, rgba(255,255,255,.55) 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  animation: spFade .6s ease 1.3s forwards, spOrbit 2.6s linear 1.3s infinite;
}
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spOrbit { to { --a: 360deg; } }
@keyframes spFade { to { opacity: 1; } }

.sp-word { display: flex; margin-top: 30px; font-size: 26px; font-weight: 700; letter-spacing: 12px; text-indent: 12px; }
.sp-word span {
  display: inline-block; background: linear-gradient(180deg, #ffffff 30%, #cfcadf 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  opacity: 0; animation: spLetter .8s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(1s + var(--i) * .07s);
}
@keyframes spLetter { from { opacity: 0; filter: blur(12px); transform: translateY(12px); } to { opacity: 1; filter: none; transform: none; } }
.sp-tag { margin-top: 12px; font-size: 13px; color: #8b87a0; letter-spacing: .3px; opacity: 0; animation: spRise .7s ease 1.55s forwards; }
@keyframes spRise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sp-modes { display: flex; gap: 8px; margin-top: 18px; }
.sp-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: #b9b6c4;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  opacity: 0; animation: spRise .6s ease forwards;
}
.sp-pill:nth-child(1) { animation-delay: 1.75s; }
.sp-pill:nth-child(2) { animation-delay: 1.88s; }
.sp-pill b { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.45); }

.sp-load { position: absolute; z-index: 2; bottom: 44px; left: 50%; width: 200px; margin-left: -100px; text-align: center; opacity: 0; animation: spFade .6s ease .4s forwards; }
.sp-track { position: relative; height: 2px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; }
.sp-track i { position: absolute; top: 0; bottom: 0; left: -45%; width: 45%; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation: spIndet 1.4s ease-in-out infinite; }
@keyframes spIndet { to { left: 100%; } }
.splash.ready .sp-track i { animation: none; left: 0; width: 100%; background: rgba(255,255,255,.6); }
.sp-status { margin-top: 11px; font-size: 10px; color: #6b6b7a; letter-spacing: 2px; text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) {
  .sp-mesh i, .sp-orbit, .sp-track i { animation: none !important; }
}
