/* Mega Man II Style Intro */
@font-face {
  font-family: 'PressStart2P';
  src: url('https://fonts.gstatic.com/s/pressstart2p/v15/e3t4euO8T-267oIAQAu6jDQyK3nVivM.woff2') format('woff2');
}

#intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#intro-overlay.hidden {
  display: none;
}

#press-start-screen {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.3; }
}

#intro-canvas {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  flex-shrink: 0;
  max-width: 100%;
  height: auto;
}

.intro-text {
  font-family: 'PressStart2P', monospace;
  color: #fff;
  font-size: 14px;
  line-height: 2.2;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  width: 512px;
  max-width: 90%;
  min-height: 100px;
  padding: 20px;
  white-space: pre-line;
  flex-shrink: 0;
  margin-top: 10px;
}

.intro-text.visible {
  opacity: 1;
}

#skip-intro {
  position: absolute;
  bottom: 30px;
  right: 30px;
  font-family: 'PressStart2P', monospace;
  font-size: 12px;
  color: #888;
  background: none;
  border: 2px solid #888;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10000;
}

#skip-intro:hover {
  color: #fff;
  border-color: #fff;
}

#skip-intro:active,
#skip-intro.loading {
  color: #00bcd4;
  border-color: #00bcd4;
  transform: scale(0.95);
}

#mute-intro {
  position: absolute;
  bottom: 30px;
  left: 30px;
  font-size: 24px;
  background: none;
  border: 2px solid #888;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10000;
  border-radius: 4px;
}

#mute-intro:hover {
  border-color: #fff;
}

#mute-intro:active {
  transform: scale(0.95);
}

/* Mobile responsive */
@media (max-width: 540px) {
  #skip-intro {
    font-size: 10px;
    padding: 8px 12px;
    bottom: 15px;
    right: 15px;
  }

  #mute-intro {
    bottom: 15px;
    left: 15px;
    font-size: 20px;
    padding: 6px 10px;
  }

  .intro-text {
    font-size: 11px;
    padding: 10px;
  }
}

#replay-intro {
  font-family: 'PressStart2P', monospace;
  font-size: 10px;
  color: #00bcd4;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 10px;
  transition: color 0.3s;
}

#replay-intro:hover {
  color: #00d4ef;
  text-decoration: underline;
}

/* Stars background */
.stars {
  position: absolute;
  width: 100%;
  height: 100%;
  background: transparent;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  animation: twinkle 1s infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}





