:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #1b1f23;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --border: #e5e7eb;
  --bg-x: 50%;
  --bg-y: 20%;
  --bg-x2: 80%;
  --bg-y2: 80%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  background:
    radial-gradient(
      520px circle at var(--bg-x) var(--bg-y),
      rgba(37, 99, 235, 0.2),
      transparent 60%
    ),
    radial-gradient(
      520px circle at var(--bg-x2) var(--bg-y2),
      rgba(14, 165, 233, 0.18),
      transparent 60%
    );
  transition: background-position 0.2s ease;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.5), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.card {
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  position: relative;
  z-index: 1;
}

h1 {
  margin: 0 0 12px;
  font-size: 24px;
}

p {
  margin: 0 0 16px;
  line-height: 1.6;
}

.turnstile-box {
  margin: 20px 0;
  min-height: 70px;
}

.primary {
  width: 100%;
  border: none;
  background: var(--accent);
  color: white;
  font-size: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.primary:disabled {
  background: #cbd5f5;
  cursor: not-allowed;
}

.primary:not(:disabled):hover {
  background: var(--accent-dark);
}

.message {
  margin-top: 16px;
  color: var(--muted);
}

.note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 520px) {
  body {
    padding: 16px;
  }

  .card {
    padding: 22px;
    border-radius: 14px;
  }

  h1 {
    font-size: 22px;
  }
}
