/* RDash Pro nickname: a diamond with a sparkle, and one gradient and one glint that travel through the whole name together.
   The colour is --rd-c (violet unless the player chose another); --rd-hi, --rd-lo and --rd-glow are its light, dark and glow shades.
   scripts/pro-nick.js measures the name (--rd-W/--rd-T/--rd-G) and where each letter sits (--x); the animations below run once on the whole name; the letters stay still. */
@property --rd-shift { syntax: "<length>"; inherits: true; initial-value: 0px; }
@property --rd-gl { syntax: "<length>"; inherits: true; initial-value: -300px; }
.rd-pro-nick { --rd-c: #a855f7; --rd-hi: #ecdcff; --rd-lo: #7432d6; --rd-glow: rgba(168, 85, 247, .75); display: inline; white-space: nowrap; background: none !important; text-shadow: none; }
.rd-pro-nick .rd-gem-wrap { position: relative; display: inline-block; vertical-align: -.14em; margin-right: .3em; line-height: 0; filter: drop-shadow(0 0 4px var(--rd-glow)); animation: rd-gem-pulse 3.6s ease-in-out infinite; }
.rd-pro-nick .rd-gem-wrap::after { content: ""; position: absolute; right: -.2em; top: -.28em; width: .5em; height: .5em; background: #fff; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); opacity: 0; animation: rd-spark 3.6s ease-in-out infinite; }
.rd-pro-nick .rd-gem { display: block; width: .95em; height: .95em; }
.rd-pro-nick .rd-gem .g1 { stop-color: var(--rd-hi); }
.rd-pro-nick .rd-gem .g2 { stop-color: var(--rd-c); }
.rd-pro-nick .rd-gem .g3 { stop-color: var(--rd-lo); }
.rd-pro-nick .rd-nick-text { --rd-W: 260px; --rd-T: 440px; --rd-G: 110px; display: inline-block; vertical-align: baseline; animation: rd-flow 4.2s linear infinite, rd-glint 4.6s linear infinite; }
.rd-pro-nick .rd-nick-text rd-l { --x: 0px; --ax: 0em; --ay: 0em; --ar: 0deg; --bx: 0em; --by: 0em; --br: 0deg; --dur: 6.5s; --dl: 0s; display: inline-block; font: inherit; font-style: normal; letter-spacing: inherit; color: var(--rd-c);
    background-image: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, .95) 50%, transparent 66%), linear-gradient(90deg, var(--rd-lo) 0%, var(--rd-c) 25%, var(--rd-hi) 50%, var(--rd-c) 75%, var(--rd-lo) 100%);
    background-size: var(--rd-G) 100%, var(--rd-T) 100%; background-repeat: no-repeat, repeat-x;
    background-position: calc(var(--rd-gl) - var(--x)) 0, calc(var(--rd-shift) - var(--x)) 0;
    }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .rd-pro-nick .rd-nick-text rd-l { -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
}
@keyframes rd-flow { to { --rd-shift: var(--rd-T); } }
@keyframes rd-glint { 0% { --rd-gl: calc(var(--rd-G) * -1); } 46%, 100% { --rd-gl: var(--rd-W); } }
@keyframes rd-drift { 0%, 100% { transform: translate(var(--ax), var(--ay)) rotate(var(--ar)); } 50% { transform: translate(var(--bx), var(--by)) rotate(var(--br)); } }
@keyframes rd-gem-pulse { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.1) rotate(-4deg); } }
@keyframes rd-spark { 0%, 55%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 70% { opacity: 1; transform: scale(1) rotate(45deg); } 85% { opacity: 0; transform: scale(.4) rotate(90deg); } }
