/* DGD Slider Challenge — Bot Protection */
.sc-wrapper {
    margin: 16px 0;
    user-select: none;
    -webkit-user-select: none;
}

.sc-track {
    position: relative;
    height: 48px;
    background: #e2e8f0;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #cbd5e1;
    transition: border-color 0.2s;
}
.sc-track:focus-visible {
    outline: 2px solid #1a365d;
    outline-offset: 2px;
}

.sc-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #1a365d 0%, #2c5282 100%);
    border-radius: 24px 0 0 24px;
    pointer-events: none;
}

.sc-thumb {
    position: absolute;
    top: 4px;
    left: -22px;
    width: 40px;
    height: 40px;
    background: #1a365d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: grab;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s, transform 0.1s;
    z-index: 2;
}
.sc-thumb:active {
    cursor: grabbing;
    transform: scale(1.1);
}

.sc-label,
.sc-label-ok {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: 600;
    pointer-events: none;
    white-space: nowrap;
    z-index: 1;
}
.sc-label {
    color: #64748b;
}
.sc-label-ok {
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Solved state */
.sc-track.sc-solved {
    border-color: #22c55e;
}
.sc-track.sc-solved .sc-fill {
    width: 100% !important;
    background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
    border-radius: 24px;
}
.sc-track.sc-solved .sc-thumb {
    background: #16a34a;
    cursor: default;
    left: calc(100% - 44px) !important;
}
.sc-track.sc-solved .sc-label {
    opacity: 0;
}
.sc-track.sc-solved .sc-label-ok {
    opacity: 1;
}

/* Disabled submit button */
.sc-btn-disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .sc-track {
        height: 44px;
    }
    .sc-thumb {
        width: 36px;
        height: 36px;
        top: 4px;
    }
    .sc-label {
        font-size: 12px;
    }
}
