body {
  margin: 0;
  font-family: 'DotGothic16', sans-serif;
  color: #ccffff;
  background: black;
  overflow: hidden;
}

/* ===== Fade animations ===== */
.fade-in { animation: fadeIn 1.5s ease forwards; }
.fade-out { animation: fadeOut 1s ease forwards; }
@keyframes fadeIn { from {opacity:0;} to {opacity:1;} }
@keyframes fadeOut { from {opacity:1;} to {opacity:0;} }

/* ===== TITLE SCREEN ===== */
#title-screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1000;
  background: black;
}

.game-title {
  font-size: 4em;
  text-shadow: 2px 2px 0 #ccffff, 3px 3px 0 rgba(204,255,255,0.2);
  margin-bottom: 1.5em;
  color: #ccffff;
}

.menu-window {
  background: rgba(204,255,255,0.05);
  border: 2px solid #ccffff;
  box-shadow: 0 0 10px rgba(204,255,255,0.3);
  width: 220px;
  display: flex;
  flex-direction: column;
  padding: 0.5em;
}

.menu-option {
  font-size: 1.1em;
  background: transparent;
  color: #ccffff;
  border: none;
  padding: 0.6em 0;
  cursor: pointer;
  text-align: center;
  letter-spacing: 1px;
}

.menu-option:hover {
  animation: flash 0.4s steps(2, start) infinite;
}

@keyframes flash {
  0%, 100% { background: transparent; color: #ccffff; }
  50% { background: #ccffff; color: black; }
}

/* ===== MAIN GAME PAGE ===== */
.hidden { display: none; }

#game-page {
  position: fixed;
  inset: 0;
  background: black;
  overflow-y: auto;
  padding: 3em;
  line-height: 1.7;
  letter-spacing: 1px;
  font-size: 1.1em;
}

.content {
  max-width: 800px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

#game-page.active .content {
  opacity: 1;
  transform: translateY(0);
}

/* Typewriter effect */
.typewriter p, .typewriter li {
  opacity: 0;
  display: inline-block;
}

ul {
  list-style-type: none;
  padding: 0;
}

.wip {
  text-align: center;
  margin-top: 3em;
  font-style: italic;
  opacity: 0.8;
}

/* Fade overlay */
#fade-overlay {
  position: fixed;
  inset: 0;
  background: black;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  z-index: 999;
}

#fade-overlay.active {
  opacity: 1;
}
