.hidden { display: none !important; }

#challenge-screen, #success-screen, #block-screen {
  position: fixed;
  inset: 0;
  background: #0c0c0c;
  color: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

#challenge-screen {
  z-index: 10002; /* Highest during verification */
}

#success-screen {
  z-index: 10001; /* High for success screen */
}

#site-content {
  position: relative;
  z-index: 1; /* Lowest to stay below verification screens */
}

.center { text-align: center; }

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #333;
  border-top-color: #ff4444;
  border-radius: 50%;
  margin: 20px auto;
  animation: spin 1s linear infinite;
}

.checkmark-image {
  max-width: 200px;
  max-height: 200px;
  width: auto;
  height: auto;
  object-fit: contain; /* Preserve aspect ratio */
  margin: 20px auto;
  display: block;
}

#challenge-screen p, #success-screen p {
  font-size: 1rem;
  color: #ff4444;
  margin: 10px 0;
}

#success-screen p {
  color: #28a745; /* Green to match checkmark theme */
}

@keyframes spin {
  to { transform: rotate(360deg); }
}