html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100%;
  background: black;
  font-family: monospace;
}

canvas#stars {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#scene {
  width: 100vw;
  height: 100vh;
  perspective: 1000px;
  perspective-origin: center;
  overflow: hidden;
  position: relative;
}

#camera {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform-origin: center center;
  will-change: transform;
}

#title {
  position: absolute;
  top: 30px;
  width: 100%;
  text-align: center;
  font-size: 3em;
  color: lime;
  text-shadow: 0 0 8px lime;
  z-index: 10;
  animation: flicker 2s infinite;
}

@keyframes flicker {
  0%, 19%, 21%, 23%, 100% { opacity: 1; }
  20%, 22% { opacity: 0.4; }
}

#city {
  position: absolute;
  left: 50%;
  top: 100%;
  transform-style: preserve-3d;
}

.building {
  position: absolute;
  width: 3vw;
  background: linear-gradient(to top, deeppink, magenta);
  box-shadow: 0 0 8px hotpink;
  transform-origin: bottom;
}


#grid {
  position: absolute;
  width: 200vw;
  height: 200vh;
  bottom: -50vh;
  left: -50vw;
  transform: rotateX(90deg) translateZ(0);
  background-image: 
    repeating-linear-gradient(to right, lime 0 1px, transparent 1px 40px),
    repeating-linear-gradient(to bottom, lime 0 1px, transparent 1px 40px);
  opacity: 0.2;
  z-index: 0;
}

#clickOverlay {
  position: fixed;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  background: black;
  display: flex;
  align-items: center;
  justify-content: center;
}

#clickText {
  font-size: 4vw;
  color: lime;
  text-shadow: 0 0 20px lime, 0 0 40px hotpink;
  animation: pulse 1.2s infinite;
  font-family: monospace;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

