/* Profile balance tiles: a passing sheen, a small icon lift and a brighter label. */
#app .csprofile .csp2-stats-event :is(.ceb-profile > .ceb-item, .csp2-stat-money) {
    position: relative;
    isolation: isolate;
    --profile-tile-hover-rgb: 138 200 228;
}

#app .csprofile .csp2-stats-event .ceb-profile > .ceb-item {
    filter: none;
}

#app .csprofile .csp2-stats-event .ceb-profile > .ceb-coins {
    --profile-tile-hover-rgb: 86 200 248;
}

#app .csprofile .csp2-stats-event .ceb-profile > .ceb-points {
    --profile-tile-hover-rgb: 250 182 76;
}

#app .csprofile .csp2-stats-event :is(.ceb-profile > .ceb-item, .csp2-stat-money)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    background-image:
        linear-gradient(105deg, transparent 39%, rgb(var(--profile-tile-hover-rgb) / 0.24) 50%, transparent 61%),
        linear-gradient(rgb(var(--profile-tile-hover-rgb) / 0.12), rgb(var(--profile-tile-hover-rgb) / 0.12));
    background-size: 265% 100%, 100% 100%;
    background-position: 100% 0, 0 0;
    background-repeat: no-repeat;
    opacity: 0;
    transition: background-position 240ms ease, opacity 200ms ease;
}

#app .csprofile .csp2-stats-event :is(.ceb-profile > .ceb-item, .csp2-stat-money) small {
    transition: color 180ms ease;
}

#app .csprofile .csp2-stats-event :is(.ceb-profile > .ceb-item, .csp2-stat-money)
    > :is(.cse-coin, .ceb-point-mark, .csp2-stat-icon) {
    transition: translate 180ms ease, filter 180ms ease !important;
}

#app .csprofile .csp2-stats-event :is(.ceb-profile > .ceb-item:focus-visible, .csp2-stat-money:has(> a:focus-visible))::before {
    opacity: 1;
}

#app .csprofile .csp2-stats-event :is(.ceb-profile > .ceb-item:focus-visible, .csp2-stat-money:has(> a:focus-visible)) small {
    color: #f0f8fc;
}

@media (hover: hover) and (pointer: fine) {
    #app .csprofile .csp2-stats-event :is(.ceb-profile > .ceb-item, .csp2-stat-money):hover::before {
        background-position: 0 0, 0 0;
        opacity: 1;
    }

    #app .csprofile .csp2-stats-event :is(.ceb-profile > .ceb-item, .csp2-stat-money):hover
        > :is(.cse-coin, .ceb-point-mark, .csp2-stat-icon) {
        translate: 0 -1px;
    }

    #app .csprofile .csp2-stats-event :is(.ceb-profile > .ceb-item, .csp2-stat-money):hover small {
        color: #f0f8fc;
    }
}

@media (prefers-reduced-motion: reduce) {
    #app .csprofile .csp2-stats-event :is(.ceb-profile > .ceb-item, .csp2-stat-money)::before,
    #app .csprofile .csp2-stats-event :is(.ceb-profile > .ceb-item, .csp2-stat-money) small {
        transition: none;
    }

    #app .csprofile .csp2-stats-event :is(.ceb-profile > .ceb-item, .csp2-stat-money)
        > :is(.cse-coin, .ceb-point-mark, .csp2-stat-icon) {
        translate: none !important;
        transition: none !important;
    }
}
