.captcha-check-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 18px;
    max-width: 260px;
    margin: 10px auto;
    border-radius: var(--wf-radius-sm, 10px);
    border: 1px solid var(--wf-border-strong, #4f46e5);
    background: var(--wf-bg-surface-raised, transparent);
    box-shadow: none;
}

.captcha-check-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1.3;
    color: inherit;
    width: 100%;
}

.captcha-check-label input[type="checkbox"] {
    width: 28px;
    height: 28px;
    min-width: 28px;
    cursor: pointer;
    accent-color: var(--wf-accent, #4f46e5);
}

#captcha-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 14px;
    max-width: 350px;
    border-radius: var(--wf-radius-md, 14px);
    border: 1px solid var(--wf-border-subtle, rgba(255, 255, 255, .08));
    background: var(--wf-bg-surface-raised, transparent);
    box-shadow: none;
    color: var(--wf-text-primary, inherit);
}

#captcha-prompt {
    color: var(--wf-text-muted, #6b7290);
}

#captcha-result > div:not(.badge) {
    background: rgba(var(--wf-accent-rgb, 109, 94, 248), 0.12);
    color: var(--wf-accent, #4f46e5);
    box-shadow: none;
}

.captcha-icon {
    font-size: 35px;
    margin-bottom: 20px;
    color: #4f46e5;
}

#captcha-result {
    margin-bottom: 10px;
}

.badge {
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 5px;
}

.badge.bg-info {
    background-color: #17a2b8;
    color: #fff;
}

.badge.bg-success {
    background-color: #4f46e5;
    color: #fff;
}

.badge.bg-danger {
    background-color: #dc3545;
    color: #fff;
}
.badge.bg-primary {
    background-color: #4f46e5;
    color: #fff;
}
#icon-options {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.icon-option {
    cursor: pointer;
    font-size: 25px;
    margin: 0 10px;
    color: #4f46e5;
    transition: transform .2s, color .2s;
}

.icon-option:hover {
    transform: scale(1.2);
    color: #ff6d2e;
}

.selected {
    border: 2px solid gold;
}

.icon-option-wrap {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
    transition: transform .2s;
}

.icon-option-wrap:hover {
    transform: scale(1.1);
}

.icon-option-wrap.selected {
    border: 2px solid gold;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 2px solid #ddd;
}

.icon-option-img {
    width: 34px;
    height: 34px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cipher-legend-img {
    width: 26px;
    height: 26px;
    vertical-align: middle;
}

.cipher-sequence-img {
    width: 32px;
    height: 32px;
    margin: 0 4px;
}

.counting-target-img {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    margin: 0 2px;
}

.counting-item-img {
    width: 26px;
    height: 26px;
}

.gravity-bin-img {
    width: 28px;
    height: 28px;
}

.gravity-piece-img {
    width: 40px;
    height: 40px;
}

#buttons-container .btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    border: none;
}

.jigsaw-track {
    position: relative;
    width: 100%;
    max-width: 280px;
    height: 40px;
    margin: 10px auto;
}

.jigsaw-notch {
    position: absolute;
    top: 8px;
    width: 24px;
    height: 24px;
    border: 2px dashed #4f46e5;
    border-radius: 4px;
    transform: translateX(-50%);
}

.jigsaw-range {
    width: 100%;
    margin-top: 4px;
}

.cipher-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #4f46e5;
}

.cipher-sequence-icon {
    font-size: 22px;
    color: #4f46e5;
    margin: 0 4px;
}

.counting-box {
    position: relative;
    width: 100%;
    max-width: 280px;
    height: 170px;
    margin: 10px auto;
    border: 1px dashed #ddd;
    border-radius: 6px;
}

.counting-box i {
    font-size: 20px;
    color: #4f46e5;
}

.gravity-piece {
    cursor: grab;
    touch-action: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
}

.gravity-bin {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #999;
    border: 2px dashed #ccc;
    border-radius: 8px;
}

.swipe-track {
    position: relative;
    width: 100%;
    max-width: 280px;
    height: 44px;
    margin: 10px auto;
    background-color: #eef0f9;
    border-radius: 22px;
    display: flex;
    align-items: center;
}

.swipe-handle {
    position: absolute;
    left: 0;
    top: 2px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #4f46e5;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    touch-action: none;
}

.swipe-label {
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    pointer-events: none;
}

.pattern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 160px;
    margin: 10px auto;
}

.pattern-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
}

.pattern-dot.highlight {
    background-color: #ff6d2e;
}

.pattern-dot.selected {
    background-color: #4f46e5;
}

#creset, #verify {
    padding: 10px 20px;
    font-size: 14px;
    width: 100px;
    height: 40px;
    border: 2px solid transparent;
    border-radius: 5px;
    background-color: #4f46e5;
    color: #fff;
    cursor: pointer;
    transition: background-color .3s, border-color .3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#creset:hover {
    background-color: #ff6d2e;
    border-color: #ff6d2e;
}

#buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
