/* ============================================================
   SPLASH SCREEN - 2 Sek Initialladung
   ============================================================ */

#rnSplash {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: radial-gradient(ellipse at center, #13131f 0%, #070710 70%, #000000 100%);
  display: grid;
  place-items: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#rnSplash.fade {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#rnSplash .rn-splash-inner {
  text-align: center;
  position: relative;
}

#rnSplash .rn-splash-mark {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  background: linear-gradient(135deg, #ff006e 0%, #00f5ff 50%, #8b5cf6 100%);
  display: grid;
  place-items: center;
  margin: 0 auto 28px;
  position: relative;
  animation: rnPulse 1.6s ease-in-out infinite;
  box-shadow: 
    0 30px 80px -20px rgba(255, 0, 110, 0.4),
    0 0 120px rgba(0, 245, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#rnSplash .rn-splash-mark::before,
#rnSplash .rn-splash-mark::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 32px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.5), rgba(255, 0, 110, 0.5)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rnRotate 4s linear infinite;
  opacity: 0.6;
}

#rnSplash .rn-splash-mark::after {
  inset: -20px;
  animation-duration: 6s;
  animation-direction: reverse;
  opacity: 0.3;
}

#rnSplash .rn-splash-kanji {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 56px;
  color: #fff;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

#rnSplash .rn-splash-brand {
  font-family: -apple-system, 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 6px;
}

#rnSplash .rn-splash-brand .accent {
  background: linear-gradient(135deg, #00f5ff, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#rnSplash .rn-splash-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.5);
  margin-bottom: 32px;
}

#rnSplash .rn-splash-bar {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

#rnSplash .rn-splash-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 30%;
  background: linear-gradient(90deg, transparent, #00f5ff, #8b5cf6, transparent);
  animation: rnShimmer 1.4s ease-in-out infinite;
}

#rnSplash .rn-splash-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

#rnSplash .rn-splash-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: rnFloat 4s linear infinite;
}

@keyframes rnPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes rnRotate {
  to { transform: rotate(360deg); }
}

@keyframes rnShimmer {
  0% { left: -30%; }
  100% { left: 100%; }
}

@keyframes rnFloat {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-10vh) translateX(50px); opacity: 0; }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  #rnSplash .rn-splash-mark,
  #rnSplash .rn-splash-mark::before,
  #rnSplash .rn-splash-mark::after,
  #rnSplash .rn-splash-bar::before,
  #rnSplash .rn-splash-particle {
    animation: none;
  }
}
