#loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 48px;
  background: #151f3a;
}

#loading-overlay.hidden {
  display: none !important;
}

#loading-overlay .loading-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

@keyframes loading-btn-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

#loading-overlay .loading-btn {
  position: relative;
  z-index: 1;
  padding: 28px 96px;
  font-size: 40px;
  font-weight: 600;
  color: #e2e8f0;
  background: #3b82f6;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
  animation: loading-btn-pulse 2s ease-in-out infinite;
}

#loading-overlay .loading-btn:hover {
  background: #2563eb;
}

#loading-overlay .loading-btn[hidden] {
  display: none !important;
}

#dev-json-panel {
  display: none;
  position: fixed;
  bottom: 8px;
  right: 8px;
  z-index: 10;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: rgba(45, 55, 72, 0.95);
  border: 1px solid #4a5568;
  border-radius: 4px;
  font-size: 12px;
}

#dev-json-panel.visible {
  display: flex;
}

#dev-json-panel textarea {
  width: 200px;
  height: 80px;
  color: #e2e8f0;
  background: #1f2937;
  border: 1px solid #4a5568;
  border-radius: 4px;
  padding: 6px;
  font-size: 11px;
  font-family: monospace;
  resize: both;
}

#dev-json-panel button {
  padding: 4px 10px;
  font-size: 11px;
  color: #94a3b8;
  background: #2d3748;
  border: 1px solid #4a5568;
  border-radius: 4px;
  cursor: pointer;
}

#dev-json-panel button:hover {
  background: #4a5568;
  color: #fff;
}

#dev-json-panel .status {
  color: #94a3b8;
  font-size: 10px;
}

.panel-note {
  color: #94a3b8;
}

