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

#portal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

#glyph-ring {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 30px rgba(255, 0, 255, 0.3);
  animation: pulseGlow 3s ease-in-out infinite;
  transition: transform 2s ease, opacity 2s ease;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 25px rgba(255, 0, 255, 0.2); }
  50% { box-shadow: 0 0 60px rgba(255, 0, 255, 0.6); }
}

#starfield {
  position: absolute;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: none;
  opacity: 0;
}

#phrase {
  position: absolute;
  bottom: 10%;
  width: 100%;
  text-align: center;
  font-size: 1.2rem;
  opacity: 0;
  z-index: 4;
  transition: opacity 2s ease;
}

#symbols {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 80px;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 2s ease;
}

.symbol {
  font-size: 2.8rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.4;
  font-family: 'Arial Unicode MS', 'Courier New', serif;
  transition: transform 0.3s ease, color 0.4s ease, text-shadow 0.4s;
}

.symbol:hover {
  color: white;
  transform: scale(1.3);
  text-shadow: 0 0 12px white;
}

#symbol-whisper {
  position: absolute;
  top: 16%;
  width: 100%;
  text-align: center;
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#realm-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.6rem;
  color: #d7aaff;
  text-shadow: 0 0 12px #d7aaff;
  text-align: center;
  z-index: 5;
}

#cockpit-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
}

.corner {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  z-index: 3;
}

.top-left    { top: 2vh; left: 2vw; border-right: none; border-bottom: none; }
.top-right   { top: 2vh; right: 2vw; border-left: none; border-bottom: none; }
.bottom-left { bottom: 2vh; left: 2vw; border-top: none; border-right: none; }
.bottom-right{ bottom: 2vh; right: 2vw; border-top: none; border-left: none; }

#warp-lines {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: none;
}