/**
 * KYNXBOT Custom Cursor — Overlay über allem, Systemcursor per none + blank.cur aus.
 */
html.kynx-cursor-off,
html.kynx-cursor-off body {
    cursor: auto;
}

@media (hover: hover) and (pointer: fine) {
    html.kynx-custom-cursor {
        --kynx-cursor-hide: none;
    }

    html.kynx-custom-cursor,
    html.kynx-custom-cursor body,
    html.kynx-custom-cursor *:not(.kynx-cursor):not(.kynx-cursor *):not(.kynx-cursor-host):not(.kynx-cursor-host *),
    html.kynx-custom-cursor *:not(.kynx-cursor):not(.kynx-cursor *):not(.kynx-cursor-host):not(.kynx-cursor-host *)::before,
    html.kynx-custom-cursor *:not(.kynx-cursor):not(.kynx-cursor *):not(.kynx-cursor-host):not(.kynx-cursor-host *)::after,
    html.kynx-custom-cursor *:not(.kynx-cursor):not(.kynx-cursor *):not(.kynx-cursor-host):not(.kynx-cursor-host *):hover,
    html.kynx-custom-cursor *:not(.kynx-cursor):not(.kynx-cursor *):not(.kynx-cursor-host):not(.kynx-cursor-host *):active,
    html.kynx-custom-cursor *:not(.kynx-cursor):not(.kynx-cursor *):not(.kynx-cursor-host):not(.kynx-cursor-host *):focus,
    html.kynx-custom-cursor *:not(.kynx-cursor):not(.kynx-cursor *):not(.kynx-cursor-host):not(.kynx-cursor-host *):focus-visible {
        cursor: var(--kynx-cursor-hide) !important;
        cursor: url('/shared/assets/cursor/blank.cur') 0 0, none !important;
    }
}

html.kynx-custom-cursor .kynx-cursor-host {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    pointer-events: none;
    overflow: visible;
    isolation: isolate;
}

html.kynx-custom-cursor .kynx-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 1;
    contain: layout style;
    will-change: transform;
    transform: translate3d(-120px, -120px, 0);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

html.kynx-custom-cursor .kynx-cursor__sprite {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: 0 0;
    opacity: 0;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

html.kynx-custom-cursor .kynx-cursor[data-state="default"] .kynx-cursor__sprite--default,
html.kynx-custom-cursor .kynx-cursor[data-state="hover"] .kynx-cursor__sprite--hover,
html.kynx-custom-cursor .kynx-cursor[data-state="click"] .kynx-cursor__sprite--click {
    opacity: 1;
}

/* Einstellungs-Kachel: Custom-Cursor ein/aus */
.kynx-cursor-setting {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 14px;
    row-gap: 4px;
    margin-top: 0;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid rgba(129, 140, 248, 0.22);
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.12), rgba(6, 10, 24, 0.42));
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 28px rgba(0, 0, 0, 0.18);
    position: relative;
    overflow: hidden;
}

.kynx-cursor-setting::before {
    content: '';
    position: absolute;
    inset: -40% auto auto -20%;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.22), transparent 68%);
    pointer-events: none;
}

.kynx-cursor-setting__brand {
    position: relative;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(129, 140, 248, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.kynx-cursor-setting__brand-glow {
    position: absolute;
    inset: 8px;
    border-radius: 10px;
    background: radial-gradient(circle at 35% 30%, rgba(250, 204, 21, 0.2), transparent 62%);
    pointer-events: none;
}

.kynx-cursor-setting__icon {
    position: relative;
    z-index: 1;
    width: 34px;
    height: 34px;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.kynx-cursor-setting__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    position: relative;
    z-index: 1;
}

.kynx-cursor-setting__copy strong {
    font-size: 0.86rem;
    font-weight: 700;
    color: #eceef2;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.kynx-cursor-setting__copy span {
    font-size: 0.72rem;
    color: #949ba4;
    line-height: 1.45;
    max-width: 52ch;
}

@media (max-width: 520px) {
    .kynx-cursor-setting {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }

    .kynx-cursor-setting__brand {
        grid-row: 1;
        grid-column: 1;
    }

    .kynx-cursor-setting__copy {
        grid-row: 1;
        grid-column: 2;
        align-self: center;
    }

    .kynx-cursor-toggle {
        grid-row: 2;
        grid-column: 1 / -1;
        justify-self: end;
        margin-top: 4px;
    }

    .kynx-cursor-setting__copy span {
        max-width: none;
    }
}

.kynx-cursor-toggle {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.kynx-cursor-toggle__track {
    display: block;
    width: 54px;
    height: 30px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.22);
}

.kynx-cursor-toggle__thumb {
    position: absolute;
    top: 50%;
    left: 3px;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(20, 22, 32, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    transition: transform 0.22s cubic-bezier(0.34, 1.2, 0.64, 1), background 0.22s ease, border-color 0.22s ease;
    overflow: hidden;
}

.kynx-cursor-toggle__sprite {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    object-fit: contain;
    transform: translate(-42%, -48%);
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.kynx-cursor-toggle__sprite--on {
    opacity: 0;
}

.kynx-cursor-toggle__sprite--off {
    opacity: 0.45;
    filter: grayscale(0.35);
}

.kynx-cursor-toggle--on .kynx-cursor-toggle__track {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.95), rgba(124, 58, 237, 0.9));
    border-color: rgba(167, 139, 250, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 18px rgba(88, 101, 242, 0.35);
}

.kynx-cursor-toggle--on .kynx-cursor-toggle__thumb {
    transform: translate(24px, -50%);
    background: rgba(8, 10, 18, 0.55);
    border-color: rgba(255, 255, 255, 0.18);
}

.kynx-cursor-toggle--on .kynx-cursor-toggle__sprite--on {
    opacity: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.kynx-cursor-toggle--on .kynx-cursor-toggle__sprite--off {
    opacity: 0;
}

.kynx-cursor-toggle:focus-visible .kynx-cursor-toggle__track {
    outline: 2px solid rgba(129, 140, 248, 0.75);
    outline-offset: 2px;
}
