.plugin-translation-word { display:inline-block; overflow:hidden; vertical-align:top; padding-bottom:.08em; margin-bottom:-.08em; }
.plugin-translation-word > span { display:block; }
@keyframes plugin-text-out { to { transform:translateY(-110%);opacity:0; } }
@keyframes plugin-text-in { from { transform:translateY(110%);opacity:0; } to { transform:translateY(0);opacity:1; } }
.plugin-translation-word > span { background:linear-gradient(110deg,#4f86ff,#ef91e5,#f7358b,#ff665d,#ff8a21,#f4c84b,#4f86ff); background-size:300% 100%; background-clip:text; -webkit-background-clip:text; color:transparent; animation:plugin-letter-colour 5s ease-in-out infinite alternate; animation-delay:calc(var(--word-index)*-350ms); }
.plugin-translation-layer.is-leaving .plugin-translation-word > span { animation:plugin-text-out .26s cubic-bezier(.4,0,.7,.2) both,plugin-letter-colour 5s ease-in-out infinite alternate; animation-delay:calc(var(--word-index)*70ms),calc(var(--word-index)*-350ms); }
.plugin-translation-layer.is-entering .plugin-translation-word > span { animation:plugin-text-in .34s cubic-bezier(.2,.7,.2,1) both,plugin-letter-colour 5s ease-in-out infinite alternate; animation-delay:calc(var(--word-index)*70ms + 120ms),calc(var(--word-index)*-350ms); }
@keyframes plugin-letter-colour { from { background-position:0% 50%; } to { background-position:100% 50%; } }
@media(prefers-reduced-motion:reduce) { .plugin-translation-word > span { animation:none !important; } }
.plugin-text-handle { position:absolute; width:7px; height:7px; background:white; border:1px solid #9664df; z-index:2; }
.plugin-text-handle:nth-of-type(1) { left:-4px;top:-4px; }.plugin-text-handle:nth-of-type(2) { right:-4px;top:-4px; }.plugin-text-handle:nth-of-type(3) { left:-4px;bottom:-4px; }.plugin-text-handle:nth-of-type(4) { right:-4px;bottom:-4px; }
