#gateway {
  position: fixed;
  inset: 0;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  z-index: 800;
  transition: opacity 0.6s ease;
}

#gateway.fade-out {
  opacity: 0;
  pointer-events: none;
}

.gateway-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.gateway-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(237, 112, 30, 0.18);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-ring 3s ease-out infinite;
}

.gateway-ring:nth-child(1) {
  width: 300px;
  height: 300px;
  animation-delay: 0s;
}

.gateway-ring:nth-child(2) {
  width: 500px;
  height: 500px;
  animation-delay: 0.6s;
}

.gateway-ring:nth-child(3) {
  width: 700px;
  height: 700px;
  animation-delay: 1.2s;
}

.gateway-ring:nth-child(4) {
  width: 900px;
  height: 900px;
  animation-delay: 1.8s;
}

@keyframes pulse-ring {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
  }

  40% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

.gateway-logo {
  position: relative;
  z-index: 1;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s;
}

.gateway-logo:active {
  transform: scale(0.95);
}

.gateway-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  animation: gateway-logo-float 3s ease-in-out infinite;
}

@keyframes gateway-logo-float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

#btn-start {
  position: relative;
  z-index: 1;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s;
}

#btn-start:active {
  transform: scale(0.95);
}

.gateway-status {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.status-dot {
  width: 16px;
  height: 4px;
  border-radius: 30%;
  background: var(--yellow);
  animation: blink 1s ease-in-out infinite;
}

.status-dot.ready {
  background: #4CAF50;
  animation: none;
}

.status-dot.error {
  background: var(--red);
  animation: none;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.2;
  }
}