#bit-bswup {
    --bswup-fit4fun-accent: #d2fe13;
    --bswup-fit4fun-muted: #c4c4c6;
    --bswup-fit4fun-track: #3f4254;
    align-items: center;
    background: rgba(21, 23, 28, 0.96);
    color: #f5f5f5;
    justify-content: center;
    padding: 1.5rem;
}

#bit-bswup[style*="display: block"] {
    display: flex !important;
}

.fit4fun-bswup-loading {
    max-width: 34rem;
    text-align: center;
    width: 100%;
}

.fit4fun-bswup-brand {
    color: #d2fe13;
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.08em;
    margin-bottom: 2.25rem;
}

.fit4fun-bswup-brand span {
    color: #c4c4c6;
}

.fit4fun-bswup-spinner {
    height: 2.5rem;
    margin-bottom: 1.5rem;
    width: 2.5rem;
}

#bit-bswup .bit-bswup-title {
    color: #fff;
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

#bit-bswup .bit-bswup-description {
    color: #c4c4c6;
    line-height: 1.55;
    margin: 0 auto 1.75rem;
    max-width: 29rem;
}

#bit-bswup .bit-bswup-progress {
    background: var(--bswup-fit4fun-track);
    border-radius: 999px;
    height: 0.4rem;
    overflow: hidden;
}

#bit-bswup-progress-bar {
    background: var(--bswup-fit4fun-accent);
    height: 100%;
    transition: width 160ms ease-out;
}

#bit-bswup-percent {
    color: var(--bswup-fit4fun-muted);
    font-size: 0.875rem;
    margin-top: 0.75rem;
}

#bit-bswup-assets,
#bit-bswup-error-details {
    color: var(--bswup-fit4fun-muted);
    font-size: 0.8125rem;
    line-height: 1.5;
    margin-top: 0.75rem;
    max-height: 8rem;
    overflow: auto;
    text-align: left;
}

#bit-bswup-assets:empty,
#bit-bswup-error-details:empty {
    display: none;
}

#bit-bswup-error-details {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 0.75rem;
}

#bit-bswup-progress-bar:focus-visible,
#bit-bswup button:focus-visible,
#bit-bswup a:focus-visible {
    outline: 2px solid var(--bswup-fit4fun-accent);
    outline-offset: 3px;
}

#bit-bswup-error {
    background: #321117;
    border: 1px solid #8f2638;
    color: #f5f5f5;
    display: none;
    margin-top: 1.5rem;
    text-align: center;
}

#bit-bswup-error .bit-bswup-error-title {
    color: #fff;
}

#bit-bswup-error .bit-bswup-error-message {
    color: #c4c4c6;
}

.fit4fun-bswup-error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

body.fit4fun-bswup-ui-ready #bit-bswup-reload {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    padding: 0;
    position: fixed;
    white-space: nowrap;
    width: 1px;
}

#fit4fun-bswup-update-modal {
    z-index: 1000000001;
}

#fit4fun-bswup-update-modal[hidden],
#fit4fun-bswup-update-backdrop[hidden],
#fit4fun-bswup-update-reminder[hidden],
#fit4fun-bswup-applying[hidden] {
    display: none !important;
}

#fit4fun-bswup-update-backdrop {
    z-index: 1000000000;
}

.fit4fun-bswup-update-reminder {
    align-items: center;
    bottom: 1.5rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.35);
    display: inline-flex;
    gap: 0.5rem;
    position: fixed;
    right: 1.5rem;
    z-index: 999999999;
}

.fit4fun-bswup-applying {
    align-items: center;
    background: rgba(21, 23, 28, 0.97);
    color: #f5f5f5;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    inset: 0;
    justify-content: center;
    padding: 1.5rem;
    position: fixed;
    text-align: center;
    z-index: 1000000002;
}

.fit4fun-bswup-applying-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}

.fit4fun-bswup-applying-subtitle {
    color: #c4c4c6;
}

@media (max-width: 575.98px) {
    #bit-bswup {
        padding: 1rem;
    }

    .fit4fun-bswup-loading {
        max-width: 100%;
    }

    #bit-bswup .bit-bswup-description {
        font-size: 0.9375rem;
    }

    #bit-bswup-assets,
    #bit-bswup-error-details {
        max-height: 6rem;
    }

    .fit4fun-bswup-update-reminder {
        bottom: 1rem;
        justify-content: center;
        left: 1rem;
        right: 1rem;
    }

    #fit4fun-bswup-update-modal .modal-dialog {
        align-items: flex-end;
        margin: 0;
        min-height: 100%;
    }

    #fit4fun-bswup-update-modal .modal-content {
        border-radius: 1rem 1rem 0 0;
    }

    #fit4fun-bswup-update-modal .modal-footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    #fit4fun-bswup-update-modal .modal-footer .btn {
        margin: 0;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    #bit-bswup-progress-bar,
    #bit-bswup .spinner-border,
    .fit4fun-bswup-applying .spinner-border {
        animation: none !important;
        transition: none;
    }
}
