:root {
  --bg: oklch(0.145 0 0);
  --surface: oklch(0.205 0 0);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --text: oklch(0.985 0 0);
  --text-secondary: oklch(0.708 0 0);
  --pass: oklch(0.696 0.17 162.48);
  --pass-bg: oklch(0.205 0.04 162.48);
  --fail: oklch(0.704 0.191 22.216);
  --fail-bg: oklch(0.205 0.04 22.216);
  --accent: oklch(0.488 0.243 264.376);
  --primary: oklch(0.92 0.004 286.32);
  --primary-foreground: oklch(0.21 0.006 285.885);
  --muted: oklch(0.269 0 0);
  --ring: oklch(0.556 0 0);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 3rem 1.5rem;
  line-height: 1.5;
}
.container { max-width: 520px; margin: 0 auto; }
h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; }
.subtitle { color: var(--text-secondary); margin-bottom: 2.5rem; }
.hidden { display: none !important; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
}
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.email-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  border-color: var(--input);
  transition: border-color 0.2s;
}
.email-input:focus { border-color: var(--ring); }
.turnstile-wrap { margin: 1.25rem 0; }
.submit-btn {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: none;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.submit-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.submit-btn:not(:disabled):hover { opacity: 0.85; }

.error-msg {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: var(--fail-bg);
  border: 1px solid var(--fail);
  color: var(--fail);
  font-size: 0.875rem;
}

.result-header {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
}
.result-header.pass { background: var(--pass-bg); border: 1px solid oklch(0.696 0.17 162.48 / 20%); }
.result-header.fail { background: var(--fail-bg); border: 1px solid oklch(0.704 0.191 22.216 / 20%); }
.result-header h2 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.result-header p { color: var(--text-secondary); font-size: 0.9rem; }

.criteria-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.criterion {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--surface);
}
.criterion-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.criterion-icon.pass { background: var(--pass); }
.criterion-icon.fail { background: var(--fail); }
.criterion-icon svg { width: 12px; height: 12px; }
.criterion-icon svg { stroke: var(--bg); }
.criterion-body { flex: 1; min-width: 0; }
.criterion-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}
.criterion-detail {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}
.criterion.is-fail .criterion-title { color: var(--fail); }

.appeal-notice {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}
.appeal-notice p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}
.discord-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background: #5865F2;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}
.discord-link:hover { opacity: 0.85; }
.discord-link svg { width: 16px; height: 16px; }

.reset-btn {
  display: block;
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
  text-align: center;
  transition: border-color 0.2s;
}
.reset-btn:hover { border-color: var(--ring); }

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 0.5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
