.maintenance-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
}

.maintenance-container {
  text-align: center;
  color: white;
  padding: 2rem;
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.maintenance-illustration {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 3rem;
}

.chess-board {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  -webkit-animation: pulse 2s ease-in-out infinite;
          animation: pulse 2s ease-in-out infinite;
}

.chess-square {
  width: 100%;
  height: 100%;
}

.chess-square.light {
  background-color: rgba(255, 255, 255, 0.2);
}

.chess-square.dark {
  background-color: rgba(0, 0, 0, 0.2);
}

.gear {
  position: absolute;
  color: rgba(255, 255, 255, 0.6);
  -webkit-animation: rotate 3s linear infinite;
          animation: rotate 3s linear infinite;
}

.gear-svg {
  width: 100%;
  height: 100%;
}

.gear-1 {
  width: 60px;
  height: 60px;
  top: 10px;
  left: 10px;
  -webkit-animation: rotate 3s linear infinite;
          animation: rotate 3s linear infinite;
}

.gear-2 {
  width: 80px;
  height: 80px;
  bottom: 10px;
  right: 10px;
  animation: rotate 4s linear infinite reverse;
}

.gear-3 {
  width: 50px;
  height: 50px;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  -webkit-animation: rotate 2.5s linear infinite;
          animation: rotate 2.5s linear infinite;
}

@-webkit-keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

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

  to {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 0.9;
  }
}

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

  50% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 0.9;
  }
}

.maintenance-content {
  -webkit-animation: fadeInUp 0.8s ease-out;
          animation: fadeInUp 0.8s ease-out;
}

.maintenance-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.02em;
}

.maintenance-message {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  opacity: 0.95;
}

.maintenance-submessage {
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.85;
  margin-bottom: 2rem;
}

.loading-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: white;
  -webkit-animation: bounce 1.4s ease-in-out infinite both;
          animation: bounce 1.4s ease-in-out infinite both;
}

.dot:nth-child(1) {
  -webkit-animation-delay: -0.32s;
          animation-delay: -0.32s;
}

.dot:nth-child(2) {
  -webkit-animation-delay: -0.16s;
          animation-delay: -0.16s;
}

.dot:nth-child(3) {
  -webkit-animation-delay: 0;
          animation-delay: 0;
}

@-webkit-keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.5;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.5;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@-webkit-keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 576px) {
  .maintenance-title {
    font-size: 2rem;
  }

  .maintenance-message {
    font-size: 1.1rem;
  }

  .maintenance-submessage {
    font-size: 0.9rem;
  }

  .maintenance-illustration {
    width: 150px;
    height: 150px;
  }

  .chess-board {
    width: 100px;
    height: 100px;
  }

  .gear-1 {
    width: 45px;
    height: 45px;
  }

  .gear-2 {
    width: 60px;
    height: 60px;
  }

  .gear-3 {
    width: 40px;
    height: 40px;
  }
}

