* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Rajdhani", sans-serif;
  background: linear-gradient(
    135deg,
    #001122 0%,
    #003344 30%,
    #004455 70%,
    #002233 100%
  );
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Animated stars background */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: radial-gradient(2px 2px at 20px 30px, #00ffaa, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(0, 255, 170, 0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, #0088ff, transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(0, 136, 255, 0.6), transparent),
    radial-gradient(2px 2px at 160px 30px, #00ccdd, transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: sparkle 20s linear infinite;
}

@keyframes sparkle {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(-100px);
  }
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.maintenance-panel {
  background: rgba(0, 15, 25, 0.98);
  border: 2px solid #00ffaa;
  border-radius: 20px;
  padding: 40px;
  max-width: 800px;
  width: 100%;
  box-shadow: 0 0 50px rgba(0, 255, 170, 0.4),
    inset 0 0 50px rgba(0, 255, 170, 0.15);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
}

.maintenance-panel::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #00ffaa, #0088ff, #00ffaa);
  border-radius: 20px;
  z-index: -1;
  animation: borderGlow 3s ease-in-out infinite alternate;
}

@keyframes borderGlow {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-circle {
  width: 60px;
  height: 60px;
  border: 3px solid #00ffaa;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: rotate 10s linear infinite;
}

.inner-circle {
  width: 30px;
  height: 30px;
  background: linear-gradient(45deg, #00ffaa, #0088ff);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

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

.system-title {
  font-family: "Orbitron", monospace;
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(0, 255, 170, 0.8), 0 0 30px rgba(0, 136, 255, 0.5);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 136, 255, 0.25);
  padding: 10px 20px;
  border-radius: 25px;
  border: 1px solid #0088ff;
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(0, 136, 255, 0.5);
}

.status-dot {
  width: 12px;
  height: 12px;
  background: #0088ff;
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.main-content {
  text-align: center;
}

.alert-section {
  margin-bottom: 40px;
}

.alert-icon {
  margin-bottom: 20px;
  animation: bounce 2s ease-in-out infinite;
}

.alert-icon i {
  width: 60px;
  height: 60px;
  color: #00ffaa;
  filter: drop-shadow(0 0 10px rgba(0, 255, 170, 0.6));
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.alert-section h2 {
  font-family: "Orbitron", monospace;
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
  text-shadow: 0 0 20px rgba(0, 255, 170, 0.8), 0 0 40px rgba(0, 136, 255, 0.5);
}

.alert-section p {
  font-size: 18px;
  color: #e0e0e0;
  line-height: 1.6;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.progress-section {
  margin-bottom: 40px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 16px;
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(0, 255, 170, 0.6);
}

.progress-bar {
  height: 20px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  border: 1px solid #00ffaa;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00ffaa, #0088ff);
  border-radius: 10px;
  width: 0%;
  transition: width 0.5s ease;
  position: relative;
}

.progress-glow {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.info-card {
  background: rgba(0, 255, 170, 0.1);
  border: 1px solid #00ffaa;
  border-radius: 15px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 255, 170, 0.3);
}

.info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-icon i {
  width: 30px;
  height: 30px;
  color: #00ffaa;
  filter: drop-shadow(0 0 8px rgba(0, 255, 170, 0.5));
}

.info-content h3 {
  font-family: "Orbitron", monospace;
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 5px;
  text-shadow: 0 0 8px rgba(0, 255, 170, 0.6);
}

.info-content p {
  color: #d0d0d0;
  font-size: 14px;
  font-weight: 500;
}

.contact-section {
  background: rgba(0, 136, 255, 0.1);
  border: 1px solid #0088ff;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
}

.contact-section h3 {
  font-family: "Orbitron", monospace;
  color: #ffffff;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(0, 136, 255, 0.6);
}

.contact-section p {
  color: #e0e0e0;
  margin-bottom: 15px;
  font-weight: 500;
}

.contact-info {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-info span {
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(0, 255, 170, 0.6);
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-info span i {
  width: 16px;
  height: 16px;
  color: #00ffaa;
  filter: drop-shadow(0 0 6px rgba(0, 255, 170, 0.5));
}

/* Game Section */
.game-section {
  background: rgba(0, 255, 170, 0.1);
  border: 1px solid #00ffaa;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  text-align: center;
}

.game-section h3 {
  font-family: "Orbitron", monospace;
  color: #ffffff;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(0, 255, 170, 0.6);
}

.game-section p {
  color: #e0e0e0;
  margin-bottom: 20px;
  font-weight: 500;
}

.game-button {
  background: linear-gradient(45deg, #00ffaa, #0088ff);
  border: none;
  border-radius: 25px;
  padding: 15px 30px;
  color: #ffffff;
  font-family: "Rajdhani", sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 255, 170, 0.3);
}

.game-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 25px rgba(0, 255, 170, 0.5);
}

.game-button i {
  width: 20px;
  height: 20px;
}

/* Game Modal */
.game-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.game-content {
  background: rgba(0, 15, 25, 0.98);
  border: 2px solid #00ffaa;
  border-radius: 20px;
  padding: 30px;
  margin: 5% auto;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 0 50px rgba(0, 255, 170, 0.4);
  text-align: center;
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.game-header h3 {
  font-family: "Orbitron", monospace;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 255, 170, 0.6);
  margin: 0;
}

.close-game {
  background: none;
  border: 1px solid #0088ff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: #0088ff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-game:hover {
  background: rgba(0, 136, 255, 0.2);
  transform: scale(1.1);
}

.close-game i {
  width: 20px;
  height: 20px;
}

.game-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-family: "Orbitron", monospace;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(0, 255, 170, 0.5);
}

#gameCanvas {
  border: 2px solid #00ffaa;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(0, 255, 170, 0.3);
}

.game-controls {
  color: #e0e0e0;
  font-size: 14px;
}

.game-controls p {
  margin-bottom: 15px;
}

.restart-btn {
  background: linear-gradient(45deg, #0088ff, #00ffaa);
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  color: #ffffff;
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.restart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 136, 255, 0.4);
}

.restart-btn i {
  width: 16px;
  height: 16px;
}

.footer {
  border-top: 2px solid rgba(0, 255, 170, 0.5);
  padding: 25px 0 10px 0;
  margin-top: 30px;
  background: rgba(0, 255, 170, 0.05);
  border-radius: 10px;
}

.system-info {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  color: #ffffff;
  font-weight: 600;
  font-family: "Orbitron", monospace;
  flex-wrap: wrap;
  gap: 15px;
  text-shadow: 0 0 10px rgba(0, 255, 170, 0.8), 0 0 20px rgba(0, 136, 255, 0.4);
  letter-spacing: 0.5px;
}

.system-info span {
  background: rgba(0, 255, 170, 0.1);
  padding: 8px 15px;
  border-radius: 20px;
  border: 1px solid rgba(0, 255, 170, 0.3);
  transition: all 0.3s ease;
}

.system-info span:hover {
  background: rgba(0, 255, 170, 0.2);
  border-color: rgba(0, 255, 170, 0.6);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .maintenance-panel {
    padding: 20px;
    margin: 10px;
  }

  .header {
    flex-direction: column;
    text-align: center;
  }

  .system-title {
    font-size: 20px;
  }

  .alert-section h2 {
    font-size: 24px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    flex-direction: column;
    gap: 10px;
  }

  .system-info {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .footer {
    padding: 20px 0 10px 0;
  }

  .game-content {
    width: 95%;
    padding: 20px;
  }

  #gameCanvas {
    width: 100%;
    max-width: 350px;
    height: auto;
  }

  .game-info {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
