/* Splash screen container */
#splash {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000;
  color: #00ffff; /* Neon blue */
  font-family: 'Fira Code', monospace;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 2rem;
}

/* Hide when done */
#splash.hidden {
  display: none;
}

/* Scrollable wrapper for ASCII Art */
.ascii-wrapper {
  overflow-x: auto;
  max-width: 100vw;
  padding: 0 1rem;
}

/* ASCII Art */
.ascii-logo {
  white-space: pre;
  text-align: left;
  font-size: 1rem;
  line-height: 1.2;
  margin-bottom: 2rem;
  max-width: 100%;
  overflow-wrap: normal;
}

/* Random messages */
#splash-lines {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

/* Flickering cursor */
.cursor {
  display: inline-block;
  width: 0.8em;
  height: 1.2em;
  background-color: #00ffff;
  margin-left: 4px;
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Skip button */
#skip-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 0.5rem 1rem;
  background: transparent;
  color: #00ffff;
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  border: 1px solid #00ffff;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 1001;
}

#skip-button:hover {
  background-color: rgba(0, 255, 255, 0.1);
  opacity: 1;
}

/* Final splash line styling */
.splash-line.final-line {
  color: #00ffff; /* Brighter neon blue */
  font-weight: bold;
  text-shadow: 0 0 8px #00ffff;
  margin-top: 0.75rem;
}

/* Fade-out */
#splash.fade-out {
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

#main-content {
  display: none;
}

body.splash-done #main-content {
  display: block;
}
