body {
  margin: 0;
  padding: 0;
  background-color: #000000;
  color: #5a5a8c;
  font-family: Arial, Helvetica, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  text-align: center;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    #181818,
    #181818 1px,
    transparent 1px,
    transparent 4px
  );
  background-size: 100% 4px;
  opacity: 0.15;
  z-index: 2;
  animation: scanlines 20s linear infinite;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.9) 100%);
  z-index: 4;
  pointer-events: none;
}

.content {
  z-index: 10;
  font-size: 5vw;
  max-font-size: 70px;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
  letter-spacing: 0.05em;
  opacity: 1;
  transition: opacity 0.7s ease-in-out;
}

.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.glyph-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.mysterious-glyph {
  position: absolute;
  font-size: 22px;
  color: rgba(90, 90, 140, 0.35);
  opacity: 0;
  animation: pulseGlyph 8s infinite ease-in-out;
}

.mysterious-glyph:nth-child(1) { top: 15%; left: 20%; animation-delay: 0s; }
.mysterious-glyph:nth-child(2) { top: 70%; left: 80%; animation-delay: 2s; font-size: 25px; }
.mysterious-glyph:nth-child(3) { top: 40%; left: 50%; animation-delay: 4s; }
.mysterious-glyph:nth-child(4) { top: 85%; left: 10%; animation-delay: 6s; font-size: 18px; }
.mysterious-glyph:nth-child(5) { top: 25%; left: 75%; animation-delay: 8s; }

.text-glitch-active {
  animation: textGlitch 0.2s linear;
}

.shooting-stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background-color: rgba(200, 200, 220, 0.6);
  border-radius: 50%;
  opacity: 0;
  animation: shootAcross linear infinite;
}

.star:nth-child(1) { top: 20%; animation-duration: 5s; animation-delay: 0s; }
.star:nth-child(2) { top: 40%; animation-duration: 7s; animation-delay: 1.5s; width: 3px; height: 3px; }
.star:nth-child(3) { top: 60%; animation-duration: 4s; animation-delay: 3s; }
.star:nth-child(4) { top: 80%; animation-duration: 6s; animation-delay: 4s; width: 1px; height: 1px; }
.star:nth-child(5) { top: 30%; animation-duration: 8s; animation-delay: 5.5s; }
.star:nth-child(6) { top: 50%; animation-duration: 5.5s; animation-delay: 2.5s; }
.star:nth-child(7) { top: 10%; animation-duration: 6.5s; animation-delay: 0.5s; width: 1px; height: 1px; }
.star:nth-child(8) { top: 90%; animation-duration: 4.5s; animation-delay: 3.8s; }
.star:nth-child(9) { top: 5%; animation-duration: 7.5s; animation-delay: 6s; }
.star:nth-child(10) { top: 65%; animation-duration: 5s; animation-delay: 1s; width: 3px; height: 3px; }
.star:nth-child(11) { top: 75%; animation-duration: 9s; animation-delay: 4.2s; }
.star:nth-child(12) { top: 25%; animation-duration: 6s; animation-delay: 7s; }

.meteor {
  position: absolute;
  width: 3px;
  height: 3px;
  background-color: rgba(230, 230, 255, 0.95);
  border-radius: 50%;
  box-shadow: 0 0 8px 2px rgba(220, 220, 255, 0.6);
  opacity: 0;
  animation: meteorFall 7s linear infinite;
  animation-delay: 1.5s;
}

.meteor::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 1px;
  background: linear-gradient(to left, rgba(200, 200, 255, 0.5), transparent);
  border-radius: 1px;
  transform-origin: 100% 50%;
  transform: translate(-100%, -50%);
}

.animated-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: #1a1a1a;
  overflow: hidden;
  z-index: 5;
}

.animated-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(90, 90, 140, 0.5), transparent);
  animation: shimmer 3s infinite linear;
}

.status-bar-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 15px;
  background-color: rgba(10, 10, 20, 0.85);
  border: 1px solid rgba(90, 90, 140, 0.5);
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  z-index: 100;
  font-size: 12px;
  color: #c0c0e0;
  min-width: 250px;
  max-width: 90%;
}

.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.status-label {
  font-weight: 500;
  color: #a0a0c0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-indicator {
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: bold;
  text-align: center;
  min-width: 80px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.status-indicator.operational {
  background-color: rgba(0, 128, 0, 0.3);
  color: #32cd32;
  border: 1px solid #32cd32;
}

.status-indicator.offline {
  background-color: rgba(139, 0, 0, 0.3);
  color: #dc143c;
  border: 1px solid #dc143c;
}

.status-indicator.error {
  background-color: rgba(255, 165, 0, 0.3);
  color: #ffa500;
  border: 1px solid #ffa500;
}

.status-indicator.checking {
  background-color: rgba(70, 70, 90, 0.3);
  color: #87cefa;
  border: 1px solid #87cefa;
  animation: pulseChecking 1.5s infinite ease-in-out;
}

@media (min-width: 600px) {
  .status-bar-container {
    flex-direction: row;
    gap: 20px;
  }
}

@keyframes scanlines {
  0% { background-position: 0 0; }
  100% { background-position: 0 100px; }
}

@keyframes pulseGlyph {
  0%, 100% { opacity: 0; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes textGlitch {
  0%, 100% {
    transform: skewX(0deg);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    opacity: 1;
  }
  25% {
    transform: skewX(-3deg);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2), 2px -1px 0px rgba(255,0,255,0.5);
    opacity: 0.75;
  }
  50% {
    transform: skewX(3deg);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2), -2px 1px 0px rgba(0,255,255,0.5);
    opacity: 0.85;
  }
  75% {
    transform: skewX(-1.5deg);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    opacity: 0.95;
  }
}

@keyframes shootAcross {
  0% {
    transform: translateX(-20px) translateY(calc(var(--random-y-offset, 0) * 1px));
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(calc(100vw + 20px)) translateY(calc(var(--random-y-offset, 0) * 1px));
    opacity: 0;
  }
}

@keyframes meteorFall {
  0% {
    transform: translateX(110vw) translateY(-30vh) rotate(135deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(-30vw) translateY(110vh) rotate(135deg);
    opacity: 0;
  }
}

@keyframes shimmer {
  0% {
    left: -50%;
  }
  100% {
    left: 100%;
  }
}

@keyframes pulseChecking {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}