.jfc-captcha-box {
  --jfc-primary: #0f56ff;
  --jfc-primary-dark: #0b3ebc;
  --jfc-accent: #118a54;
  --jfc-soft: #334155;
  --jfc-border: #d6dfef;
  --jfc-ink: #13233f;
  --jfc-subtle: #4d5e7f;
  border: 1px solid var(--jfc-border);
  background: linear-gradient(160deg, #f8fbff 0%, #eef4ff 58%, #f7fbff 100%);
  border-radius: 14px;
  padding: 14px;
  margin: 12px 0 16px;
  box-shadow: 0 8px 24px rgba(31, 58, 112, 0.08);
  width: min(100%, 760px);
  max-width: 100%;
}

.jfc-hp-wrap {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.jfc-hp-field {
  display: block !important;
  width: 1px !important;
  height: 1px !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.jfc-captcha-title {
  font-weight: 700;
  color: var(--jfc-ink);
  margin-bottom: 4px;
  letter-spacing: 0.2px;
}

.jfc-captcha-question {
  font-size: 1rem;
  color: #0f1c35;
  margin-bottom: 4px;
  font-family: Consolas, "Courier New", monospace;
  font-weight: 700;
}

.jfc-captcha-meta {
  font-size: 0.82rem;
  color: var(--jfc-subtle);
  margin-bottom: 10px;
}

.jfc-captcha-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.jfc-captcha-answer {
  min-width: 180px;
  flex: 1 1 220px;
  border: 1px solid #c7d5ee;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: #11213e;
}

.jfc-captcha-answer:focus {
  outline: 2px solid rgba(15, 86, 255, 0.18);
  outline-offset: 0;
  border-color: var(--jfc-primary);
}

.jfc-captcha-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jfc-native-submit-hidden {
  display: none !important;
}

.jfc-native-submit-row-hidden {
  display: none !important;
}

.jfc-captcha-test-tools {
  margin-top: 10px;
  display: grid;
  gap: 6px;
  max-width: 340px;
}

.jfc-captcha-test-label {
  font-size: 0.8rem;
  color: #334155;
  font-weight: 700;
}

.jfc-captcha-test-select {
  border: 1px solid #c7d5ee;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  color: #11213e;
}

.jfc-captcha-btn {
  border: 0;
  border-radius: 10px;
  padding: 9px 12px;
  background: var(--jfc-primary);
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(15, 86, 255, 0.28);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.jfc-captcha-btn:hover {
  background: var(--jfc-primary-dark);
  box-shadow: 0 6px 16px rgba(15, 86, 255, 0.35);
  transform: translateY(-1px);
}

.jfc-captcha-btn-alt {
  background: var(--jfc-accent);
  box-shadow: 0 4px 12px rgba(17, 138, 84, 0.28);
}

.jfc-captcha-btn-soft {
  background: var(--jfc-soft);
  box-shadow: 0 4px 12px rgba(51, 65, 85, 0.24);
}

.jfc-captcha-btn-submit {
  background: linear-gradient(135deg, #0f56ff 0%, #0b3ebc 100%);
  margin-left: auto;
}

.jfc-captcha-btn-submit.jfc-captcha-btn-submit-gated {
  background: linear-gradient(135deg, #0f56ff 0%, #0b3ebc 100%);
}

.jfc-captcha-btn-submit.jfc-captcha-btn-submit-ready {
  background: linear-gradient(135deg, #118a54 0%, #0f6f43 100%);
  box-shadow: 0 4px 12px rgba(17, 138, 84, 0.3);
}

.jfc-captcha-status {
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.jfc-captcha-debug {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  border: 1px dashed #bed0f3;
  background: #f6f9ff;
  color: #1f3255;
  font-size: 12px;
  line-height: 1.35;
  overflow: auto;
  max-height: 220px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.jfc-captcha-debug-only .jfc-captcha-question,
.jfc-captcha-debug-only .jfc-captcha-row,
.jfc-captcha-debug-only .jfc-captcha-actions,
.jfc-captcha-debug-only .jfc-puzzle-wrap,
.jfc-captcha-debug-only .jfc-captcha-test-tools {
  display: none !important;
}

.jfc-captcha-debug-only .jfc-captcha-title::after {
  content: " (Debug aktiv)";
  font-weight: 600;
  color: #415a88;
}

.jfc-status-info {
  color: #334155;
}

.jfc-status-ok {
  color: #1b5e20;
}

.jfc-status-error {
  color: #b71c1c;
}

.jfc-puzzle-wrap {
  display: none;
  margin-top: 12px;
  border-top: 1px dashed #c8d8ef;
  padding-top: 10px;
}

.jfc-puzzle-hint {
  font-size: 0.9rem;
  color: #1e3a5f;
  margin-bottom: 8px;
}

.jfc-puzzle-thumb {
  display: block;
  max-width: 100%;
  margin-bottom: 8px;
  border: 1px solid #d9e4f3;
  border-radius: 6px;
  background: #fff;
}

.jfc-puzzle-board {
  position: relative;
  width: 100%;
}

.jfc-puzzle-master {
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid #d9e4f3;
  border-radius: 8px;
  display: block;
  cursor: crosshair;
  background: #fff;
}

.jfc-puzzle-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.jfc-puzzle-dot {
  position: absolute;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  margin-top: -11px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: rgba(15, 86, 255, 0.9);
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
}

.jfc-puzzle-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}
