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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

main {
  background: #fff;
  max-width: 520px;
  width: 100%;
  padding: 2.5rem 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #111;
}

.intro {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  color: #555;
}

#turnstile-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  min-height: 65px;
}

/* Honeypot: off-screen, zero-height */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

#begin-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #2563eb;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

#begin-btn:hover:not(:disabled) {
  background: #1d4ed8;
}

#begin-btn:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  opacity: 0.7;
}

.timer {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #888;
}

.status-message {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.status-message.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.status-message.info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
