/* Layer 0: Splash Layer */
/* Full-screen splash overlay shown during app initialization */

[data-layer="splash"] {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: #1A1C1E;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease-out;
}

[data-layer="splash"].fade-out {
  opacity: 0;
}

.splash-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Wrapper for logo + mask - animated together for scale/position */
.splash-logo-wrapper {
  position: relative;
  display: inline-block;
  transform-origin: center center;
  animation: splash-logo-intro 4s ease-in-out forwards;
}

.splash-logo {
  height: 22.222vh;             /* 240px at 1080p */
  width: auto;
  display: block;
}

/* Black mask that covers letters after "J" - only covers letter area, not flame */
.splash-logo-mask {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 91%;
  height: 65%;
  background: #1A1C1E;
  animation: reveal-logo 0.5s ease-out 3s forwards;
}

/* Animation: Start with J centered and scaled up for 3s, then scale down and center whole word */
@keyframes splash-logo-intro {
  /* 0s: J centered, scaled up 150% */
  0% {
    transform: translateX(75%) scale(1.5);
  }
  /* Hold J-centered, scaled up until 3s (75% of 4s) */
  75% {
    transform: translateX(75%) scale(1.5);
  }
  /* By 4s: logo back to normal size and centered */
  100% {
    transform: translateX(0) scale(1);
  }
}

@keyframes reveal-logo {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
