/* Global Styles */
body {
  margin: 0;
  padding: 0;
  background-color: black;
  color: #f0f0f0;
  font-family: 'Share Tech Mono', monospace;
  min-height: 100vh;
  overflow: hidden;
}

/* Starfield Canvas */
#starCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Canvas Game Layer */
#gameCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* Navigation Bar */
nav {
  background-color: #111;
  padding: 1em;
  display: flex;
  gap: 1em;
  justify-content: center;
  border-bottom: 2px solid #222;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
}

nav a {
  color: #0ff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #f0f;
}

nav a.active {
  color: #fff;
  text-decoration: underline;
}

/* Main Content Layout */
main {
  text-align: center;
  margin-top: 6em;
  padding: 2em;
  z-index: 2;
  position: relative;
}

/* Heading Glow */
h1.glow {
  font-size: 3em;
  letter-spacing: 0.1em;
  text-align: center;
  color: #00f;
  text-shadow: 0 0 5px #00f, 0 0 20px #00f, 0 0 40px #00f;
  margin-bottom: 0.5em;
}

/* Nexus Button */
button.pulse {
  background: transparent;
  border: 2px solid orange;
  padding: 1em 2em;
  font-family: 'Share Tech Mono', monospace;
  color: orange;
  font-size: 1.2em;
  cursor: pointer;
  animation: pulse 1.5s infinite;
  text-shadow: 0 0 8px orange;
}

@keyframes pulse {
  0% { box-shadow: 0 0 5px orange; }
  50% { box-shadow: 0 0 20px orange; }
  100% { box-shadow: 0 0 5px orange; }
}

/* Warp Overlay */
#warp-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(#fff, #000);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 1s ease;
}

#warp-overlay.warp-start {
  opacity: 1;
  animation: warpAnimation 4s ease forwards;
}

@keyframes warpAnimation {
  0% { transform: scale(1); background: radial-gradient(#fff, #000); }
  50% { transform: scale(2); background: radial-gradient(circle, #222, #000); }
  100% { transform: scale(3); background: radial-gradient(ellipse at center, #000 30%, #444); }
}

/* Score Counter */
#score {
  position: fixed;
  top: 10px;
  right: 20px;
  z-index: 20;
  color: #0ff;
  font-family: monospace;
  font-size: 18px;
}
