/* =====================================================================
   v34 · moving gradient on every piece of text
   data-f="d" → text on a dark surface (luminous jewel tones)
   data-f="l" → text on a light surface (deep jewel tones — never black)
   ===================================================================== */
k-t{text-shadow:none!important;display:inline;background-size:300% 100%;background-position:0% 50%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;
  -webkit-box-decoration-break:clone;box-decoration-break:clone;background-image:var(--k17g)}
/* luminous palettes (dark surfaces) */
k-t[data-f="d"]{--k17g:linear-gradient(100deg,#f4eee0,#ffffff 25%,#f3e4bd 50%,#e6defc 75%,#f4eee0)}
k-t[data-f="d"][data-v="h1"]{--k17g:linear-gradient(100deg,#fff3cf,#f6dc8f 20%,#e9c46a 40%,#fffaf0 55%,#ffd6a5 72%,#f6dc8f 88%,#fff3cf)}
k-t[data-f="d"][data-v="h"]{--k17g:linear-gradient(100deg,#f7f3e8,#e1d6ff 25%,#f6dc8f 50%,#bff7ee 75%,#f7f3e8)}
k-t[data-f="d"][data-v="s"]{--k17g:linear-gradient(100deg,#fff1c2,#ffd98a 30%,#ffe9f6 60%,#fff1c2)}
k-t[data-f="d"][data-v="a"]{--k17g:linear-gradient(100deg,#f6dc8f,#fff6dc 30%,#9ff3e6 60%,#f6dc8f)}
k-t[data-f="d"][data-v="m"]{--k17g:linear-gradient(100deg,#f0cf7a,#a7f3e7 35%,#f6dc8f 65%,#d8ccff 85%,#f0cf7a)}
/* deep jewel palettes (light surfaces) */
k-t[data-f="l"]{--k17g:linear-gradient(100deg,#2e1f5e,#1e3a8a 25%,#134e4a 50%,#4c1d95 75%,#2e1f5e)}
k-t[data-f="l"][data-v="h1"]{--k17g:linear-gradient(100deg,#5b2a86,#8a5a0c 22%,#1e3a8a 45%,#0f5f59 65%,#7a2e6e 85%,#5b2a86)}
k-t[data-f="l"][data-v="h"]{--k17g:linear-gradient(100deg,#3d2a7a,#1e40af 30%,#0f5f59 60%,#6b3f0a 85%,#3d2a7a)}
k-t[data-f="l"][data-v="s"]{--k17g:linear-gradient(100deg,#6b3f0a,#7a2e6e 40%,#3d2a7a 75%,#6b3f0a)}
k-t[data-f="l"][data-v="a"]{--k17g:linear-gradient(100deg,#4c1d95,#0e5f8a 40%,#7a4a0c 75%,#4c1d95)}
k-t[data-f="l"][data-v="m"]{--k17g:linear-gradient(100deg,#5b3fa0,#0e6680 35%,#7c4a12 65%,#6d28d9 85%,#5b3fa0)}
/* movement: only while on screen; each level has its own pace */
k-t.k17v{animation:k17-flow 14s ease-in-out infinite alternate}
k-t.k17v[data-v="h1"]{animation-duration:9s}k-t.k17v[data-v="h"]{animation-duration:11s}k-t.k17v[data-v="m"]{animation-duration:10s}k-t.k17v[data-v="a"]{animation-duration:8s}k-t.k17v[data-v="s"]{animation-duration:12s}
@keyframes k17-flow{from{background-position:0% 50%}to{background-position:100% 50%}}
/* phones / low power: same motion, repainted in small steps so scrolling stays smooth */
html.k-lite k-t{animation:none!important}
html[data-motion="off"] k-t.k17v{animation:none}
@media (prefers-reduced-motion:reduce){k-t.k17v{animation:none}}
/* the old element-level gradient painting is replaced by <k-t> (keeps icons and emoji in colour) */
html.k17[data-aura] #main :is(h1,h2,h3,.page-head p,.k5-hi small,.card>p.small,.k9-sub,.k10-ghl p,.prose p,.prose li,.card>p:not(.small):not(.muted),.tile p,.k9-w p,.eyebrow,.muted,.small.muted,.k12-tile small,.k6-crumbs),
html.k17 #main .k5-hi h1,html.k17 #main .k5-hi h1 span,html.k17 #mtop .k13-wm,html.k17 .rail .brand .brand-text b,
html.k17 #main .k16-ink-l,html.k17 #main .k16-ink-d{background-image:none!important;-webkit-text-fill-color:currentColor!important;animation:none!important;color:var(--k17ink)!important}
html.k17[data-aura="night"]{--k17ink:#f4eee0}html.k17[data-aura="day"]{--k17ink:#2e1f5e}
html.k17 #main .k16-ink-l,html.k17 #main .k16-ink-d{text-shadow:none!important}
/* text shadows would paint over clipped gradients */
/* selection stays legible */
k-t::selection{-webkit-text-fill-color:#fff;color:#fff;background:rgba(233,196,106,.55)}
/* form fields: no black ink either */
html[data-aura="day"] :is(input,textarea,select){color:#2e1f5e!important;-webkit-text-fill-color:#2e1f5e}
html[data-aura="night"] :is(input,textarea,select){color:#f4eee0!important;-webkit-text-fill-color:#f4eee0}
html[data-aura="day"] ::placeholder{color:#6b5aa0!important;-webkit-text-fill-color:#6b5aa0!important;opacity:1}

/* text that is updated every second keeps its own (non-wrapped) gradient */
html[data-aura="day"] #main .timer{color:#3d2a7a!important;-webkit-text-fill-color:#3d2a7a!important}
html[data-aura="night"] #main .timer{color:#f6dc8f}
html[data-aura="day"] #main .view.k15-games section.group>h2::after{color:#6b3f0a!important;-webkit-text-fill-color:#6b3f0a!important}
