/* Nagebouwd naar de opname: spook over paars, daarna een blauwe kleurveeg. */
.dk-game-name.dk-game-name--ghost {
    display: inline-block;
    position: relative;
    overflow: visible;
    background: none;
    color: #af59d1;
    -webkit-text-fill-color: currentColor;
    text-shadow: none;
    line-height: 1.3;
    font-weight: 950;
    isolation: isolate;
}
.dk-ghost-label {
    position: relative;
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: .07em;
    color: #ad58d0;
    -webkit-text-fill-color: currentColor;
    -webkit-text-stroke: .065em #352047;
    paint-order: stroke fill;
    filter: drop-shadow(0 .045em 0 #281732);
}
.dk-ghost-blue, .dk-ghost-sparkles {
    position: absolute;
    inset: 0;
    padding: inherit;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    pointer-events: none;
}
.dk-ghost-blue {
    color: #13bde6;
    -webkit-text-fill-color: currentColor;
    clip-path: inset(0 0 0 100%);
    animation: dk-ghost-colour 6s linear infinite;
}
.dk-ghost-sparkles {
    background-image:
        radial-gradient(circle, #fff 0 .026em, #b8faff .035em, transparent .065em),
        radial-gradient(circle, #fff 0 .016em, transparent .045em);
    background-size: .58em .42em, .85em .67em;
    background-position: .08em .07em, .2em .29em;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0;
    animation: dk-ghost-sparkle 1.3s ease-in-out infinite alternate;
}
.dk-game-name--ghost::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: .03em;
    left: 0;
    width: .62em;
    height: 1.05em;
    background: url('../assets/name-effects/blue-ghost.svg') center / contain no-repeat;
    pointer-events: none;
    opacity: 0;
    transform-origin: center;
    animation: dk-ghost-flight 6s linear infinite;
}
@keyframes dk-ghost-flight {
    0% { left: 0; opacity: 0; transform: translate(-30%, .3em) rotate(30deg) scale(.6); }
    5% { left: 7%; opacity: 1; transform: translate(-30%, 0) rotate(45deg) scale(1); }
    15% { left: 35%; opacity: 1; transform: translate(-50%, -.2em) rotate(80deg); }
    25% { left: 68%; opacity: 1; transform: translate(-50%, -.15em) rotate(100deg); }
    34% { left: 100%; opacity: 1; transform: translate(-85%, .25em) rotate(125deg); }
    39%, 100% { left: 100%; opacity: 0; transform: translate(-85%, .35em) rotate(150deg) scale(.3); }
}
@keyframes dk-ghost-colour {
    0%, 36% { clip-path: inset(0 0 0 100%); opacity: 1; }
    48%, 88% { clip-path: inset(0 0 0 0); opacity: 1; }
    98%, 100% { clip-path: inset(0 0 0 0); opacity: 0; }
}
@keyframes dk-ghost-sparkle {
    from { opacity: .35; }
    to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .dk-game-name--ghost::after { animation: none; opacity: 1; left: 0; transform: rotate(35deg); }
    .dk-ghost-blue { animation: none; clip-path: inset(0); opacity: 1; }
    .dk-ghost-sparkles { animation: none; opacity: .6; }
}

