/* POLAR · Северное сияние. Scoped independently of the wallet UI. */
body.polar-splash-active { overflow: hidden; }
#polar-splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: hidden;
  isolation: isolate;
  background: #040b23;
  color: #f3f8ff;
  font-family: Manrope, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  transition: opacity 650ms ease;
}
#polar-splash.polar-splash-exit { opacity: 0; }
#polar-splash canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#polar-splash .polar-splash-top {
  position: absolute;
  top: max(26px, env(safe-area-inset-top));
  left: max(24px, env(safe-area-inset-left));
  right: max(24px, env(safe-area-inset-right));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 2px;
}
#polar-splash .polar-splash-top span:last-child { font-size: 10px; letter-spacing: 1px; opacity: .65; }
#polar-splash .polar-splash-lockup {
  position: absolute;
  top: 42%;
  left: 0;
  right: 0;
  transform: translateY(-38px);
  text-align: center;
}
#polar-splash .polar-splash-logo {
  display: block;
  width: 76px;
  height: 76px;
  margin: 0 auto 26px;
  border-radius: 24px;
  box-shadow: 0 0 50px #387dff70, 0 0 90px #29eaff26;
  animation: polar-splash-logo-in 1.3s .7s cubic-bezier(.22,1,.36,1) both;
}
#polar-splash .polar-splash-word {
  display: flex;
  justify-content: center;
  gap: 9px;
  padding-left: 9px;
  font-size: 40px;
  font-weight: 650;
  line-height: 1.15;
}
#polar-splash .polar-splash-word span {
  display: inline-block;
  animation: polar-splash-letter-in .65s cubic-bezier(.22,1,.36,1) both;
  animation-delay: calc(1.65s + var(--letter) * .09s);
}
#polar-splash .polar-splash-tagline {
  margin: 16px 16px 0;
  font-size: 11px;
  letter-spacing: 2px;
  opacity: .7;
  animation: polar-splash-copy-in .7s 2.5s both;
}
#polar-splash .polar-splash-foot {
  position: absolute;
  bottom: max(32px, env(safe-area-inset-bottom));
  left: 16px;
  right: 16px;
  text-align: center;
  font-size: 10px;
  letter-spacing: 2px;
  opacity: .6;
  animation: polar-splash-copy-in 1.3s 3.2s both;
}
body.polar-splash-opening #app { animation: polar-splash-app-in 650ms ease both; }
@keyframes polar-splash-logo-in {
  from { opacity: 0; transform: translateY(12px) scale(.65) rotate(-18deg); }
  to { opacity: 1; transform: none; }
}
@keyframes polar-splash-letter-in {
  from { opacity: 0; transform: translateY(20px); filter: blur(5px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes polar-splash-copy-in { from { opacity: 0; } }
@keyframes polar-splash-app-in { from { opacity: .4; } to { opacity: 1; } }
#polar-splash.polar-splash-still * { animation: none; }
#polar-splash.polar-splash-still { transition: none; }
@media (prefers-reduced-motion: reduce) {
  #polar-splash, #polar-splash * { animation: none; transition: none; }
  body.polar-splash-opening #app { animation: none; }
}
