/* web/looks/looks.css
   The looks library's rules: the dials each animation turns, registered so they
   animate, and the keyframes that turn them. Every rule reaches only what the
   library drew, inside its .mk and .mkx spans, so a page that loads this and
   draws nothing is unchanged. A class of still on an ancestor rests every look,
   and off pauses one, as a page does for words scrolled out of sight. */
/* the look itself, drawn so its letters stay as sharp as plain text. Every
   animation turns a dial of its own (a brightness, a fade, a glow, a hue, a
   position), and each letter works out its colour and shadow from the dials,
   so two animations add together and the browser never redraws the text soft. */
@property --lc{syntax:'<color>';inherits:true;initial-value:#e6e8ef}
@property --run{syntax:'<number>';inherits:true;initial-value:0}
@property --hue{syntax:'<number>';inherits:true;initial-value:0}
@property --hue2{syntax:'<number>';inherits:true;initial-value:0}
@property --v{syntax:'<number>';inherits:true;initial-value:1}
@property --b-candle{syntax:'<number>';inherits:true;initial-value:1}
@property --a-rise{syntax:'<number>';inherits:true;initial-value:1}
@property --wink{syntax:'<number>';inherits:true;initial-value:0}
@property --b-hover{syntax:'<number>';inherits:true;initial-value:1}
@property --hov-glow{syntax:'<length>';inherits:true;initial-value:0px}
.mk[data-hover]{cursor:pointer;transition:--b-hover .18s ease,--hov-glow .18s ease,top .18s ease}
.mk[data-hover="brighten"]:is(:hover,.pointed){--b-hover:1.35}
.mk[data-hover="underline"]:is(:hover,.pointed){text-decoration-line:underline;text-decoration-thickness:1.5px;text-underline-offset:.22em}
.mk[data-hover="glow"]:is(:hover,.pointed){--hov-glow:7px}
.mk[data-hover="lift"]{position:relative}
.mk[data-hover="lift"]:is(:hover,.pointed){top:-.14em}
@property --haze{syntax:'<number>';inherits:true;initial-value:0}
@property --b-shimmer{syntax:'<number>';inherits:true;initial-value:1}
@property --b-glint{syntax:'<number>';inherits:true;initial-value:1}
@property --b-flicker{syntax:'<number>';inherits:true;initial-value:1}
@property --b-flash{syntax:'<number>';inherits:true;initial-value:1}
@property --b-heart{syntax:'<number>';inherits:true;initial-value:1}
@property --b-sparkle{syntax:'<number>';inherits:true;initial-value:1}
@property --a-breathe{syntax:'<number>';inherits:true;initial-value:1}
@property --a-blink{syntax:'<number>';inherits:true;initial-value:1}
@property --a-reveal{syntax:'<number>';inherits:true;initial-value:1}
@property --a-haunt{syntax:'<number>';inherits:true;initial-value:1}
@property --a-drip{syntax:'<number>';inherits:true;initial-value:1}
@property --a-dripv{syntax:'<number>';inherits:true;initial-value:1}
@property --wglow{syntax:'<length>';inherits:true;initial-value:0px}
@property --hglow{syntax:'<length>';inherits:true;initial-value:0px}
@property --hglow1{syntax:'<length>';inherits:true;initial-value:0px}
@property --fglow{syntax:'<length>';inherits:true;initial-value:0px}
@property --sglow{syntax:'<length>';inherits:true;initial-value:0px}
@property --ax{syntax:'<length>';inherits:true;initial-value:0px}
@property --ab{syntax:'<length>';inherits:true;initial-value:0px}
@property --gx{syntax:'<length>';inherits:true;initial-value:0px}
@property --grun{syntax:'<number>';inherits:true;initial-value:0}
@property --giri{syntax:'<number>';inherits:true;initial-value:0}
@property --gon{syntax:'<number>';inherits:true;initial-value:0}
@property --gsh{syntax:'<number>';inherits:true;initial-value:-2}
@property --ggl{syntax:'<number>';inherits:true;initial-value:-2}
@property --gpulse{syntax:'<number>';inherits:true;initial-value:0}
.mk{border-radius:3px;--amp:.6;--sign:1;text-indent:0}
.mkx{text-indent:0}
.mk.bd{padding:0 .22em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.mk .lx{position:relative}
.mk .orn{display:inline-block;white-space:pre;font-size:.8em}
@keyframes c-run{from{--run:0}to{--run:1}}
@keyframes c-shimmer{0%,30%,70%,100%{--b-shimmer:1}50%{--b-shimmer:1.55}}
@keyframes c-glint{0%,45%,55%,100%{--b-glint:1}50%{--b-glint:1.6}}
@keyframes c-irid{from{--hue2:-50}to{--hue2:50}}
.mk .orn.b{margin-right:.28em}
.mk .orn.a{margin-left:.28em}
.mk .orn.sup{font-size:.62em;vertical-align:.55em}
.mk .orn.sup.a{margin-left:.06em}
.mk .orn.sup.b{margin-right:.06em}
.mk .orn.tight{margin:0}
.mk .fx-pulse{animation:c-pulse var(--d-pulse) ease-in-out var(--o-pulse) infinite}
@keyframes c-pulse{0%,100%{--wglow:0px}50%{--wglow:1px}}
.mk .fx-breathe{animation:c-breathe var(--d-breathe) ease-in-out var(--o-breathe) infinite}
@keyframes c-breathe{0%,100%{--a-breathe:1}50%{--a-breathe:.35}}
.mk .fx-flicker{animation:c-flicker var(--d-flicker) linear var(--o-flicker) infinite}
@keyframes c-flicker{
  0%,88%,100%{--b-flicker:1}
  7%{--b-flicker:1.3}
  11%{--b-flicker:.78}
  19%{--b-flicker:1.14}
  31%{--b-flicker:.88}
  40%{--b-flicker:1.34}
  46%{--b-flicker:.82}
  58%{--b-flicker:1.07}
  70%{--b-flicker:.72}
  79%{--b-flicker:1.26}}
.mk .lx-wave{animation:c-wave var(--d-wave) ease-in-out infinite;animation-delay:calc(var(--o-wave) + var(--j) * 80ms)}
@keyframes c-wave{0%,55%,100%{top:0}25%{top:calc(var(--amp) * -.42em)}}
@property --hx{syntax:'<number>';inherits:false;initial-value:0}
@property --hy{syntax:'<number>';inherits:false;initial-value:0}
.mk .lx-hum{left:calc(var(--hx) * var(--amp) * 1em);top:calc(var(--hy) * var(--amp) * 1em);animation:c-hum var(--d-hum) ease-in-out infinite;animation-delay:calc(var(--o-hum) + var(--j) * -90ms)}
@keyframes c-hum{0%,100%{--hx:0;--hy:0}25%{--hx:.0625;--hy:-.052}50%{--hx:-.052;--hy:.052}75%{--hx:.052;--hy:.042}}
.mk .lx-tremble{animation:c-tremble var(--d-tremble) steps(2,end) infinite;animation-delay:calc(var(--o-tremble) + var(--j) * -53ms)}
@keyframes c-tremble{
  0%,100%{left:0;top:0}
  25%{left:calc(var(--amp) * .09em);top:calc(var(--amp) * -.07em)}
  50%{left:calc(var(--amp) * -.07em);top:calc(var(--amp) * .09em)}
  75%{left:calc(var(--amp) * .07em);top:calc(var(--amp) * .07em)}}
.mk .fx-reveal{animation:c-reveal var(--d-reveal) ease-in-out var(--o-reveal) infinite}
@keyframes c-reveal{0%,100%{--a-reveal:.1;--haze:1}35%,85%{--a-reveal:1;--haze:0}}
.mk .fx-flash{animation:c-flash var(--d-flash) linear var(--o-flash) infinite}
@keyframes c-flash{
  0%,86%,90%,95%,100%{--b-flash:1;--fglow:0px}
  88%{--b-flash:1.9;--fglow:6px}
  92%{--b-flash:1.6;--fglow:4px}}
.mk .fx-blink{animation:c-blink var(--d-blink) step-end var(--o-blink) infinite}
@keyframes c-blink{0%,12%,24%,100%{--a-blink:1}6%,18%{--a-blink:0}}
.mk .fx-prism{animation:c-prism var(--d-prism) linear var(--o-prism) infinite alternate}
@keyframes c-prism{from{--hue:0}to{--hue:360}}
.mk .fx-afterimage{animation:c-afterimage var(--d-afterimage) ease-in-out var(--o-afterimage) infinite}
@keyframes c-afterimage{0%,100%{--ax:0px;--ab:0px}50%{--ax:.45em;--ab:1.5px}}
.mk .fx-glitch{position:relative;animation:c-glitch var(--d-glitch) step-end var(--o-glitch) infinite}
@keyframes c-glitch{
  0%,90%,100%{left:0;--gx:0px}
  91%{left:calc(var(--amp) * -.07em);--gx:.09em}
  94.5%{left:0;--gx:0px}
  97%{left:calc(var(--amp) * .05em);--gx:0px}
  98%{left:0;--gx:0px}}
.mk .lx-sway{animation:c-sway var(--d-sway) ease-in-out infinite;animation-delay:calc(var(--o-sway) + var(--j) * 120ms)}
@keyframes c-sway{0%,100%{left:calc(var(--amp) * -.14em)}50%{left:calc(var(--amp) * .14em)}}
.mk .lx-sparkle{animation:c-sparkle var(--d-sparkle) ease-in-out var(--p-sparkle) infinite}
@keyframes c-sparkle{0%,82%,100%{--b-sparkle:1;--sglow:0px}90%{--b-sparkle:1.6;--sglow:1px}}
.mk .fx-heartbeat{animation:c-heartbeat var(--d-heartbeat) ease-out var(--o-heartbeat) infinite}
@keyframes c-heartbeat{
  0%,36%,100%{--b-heart:1;--hglow:0px;--hglow1:0px}
  7%{--b-heart:1.22;--hglow:5px;--hglow1:1px}
  14%{--b-heart:1;--hglow:0px;--hglow1:0px}
  22%{--b-heart:1.3;--hglow:7px;--hglow1:1px}}
.mk .lx-drip{animation:c-drip var(--d-drip) ease-in var(--p-drip) infinite}
@keyframes c-drip{0%,50%{top:0;--a-drip:1;--a-dripv:1}84%{top:calc(var(--amp) * .32em);--a-drip:.4;--a-dripv:1}85%{top:0;--a-drip:1;--a-dripv:0}100%{top:0;--a-drip:1;--a-dripv:1}}
.mk .lx-candle{animation:c-candle var(--cd) linear var(--p-candle) infinite}
@keyframes c-candle{
  0%,100%{--b-candle:1}
  9%{--b-candle:.62}
  13%{--b-candle:1.14}
  27%{--b-candle:.8}
  41%{--b-candle:1.2}
  52%{--b-candle:.58}
  57%{--b-candle:1}
  74%{--b-candle:.86}
  88%{--b-candle:1.1}}
.mk .lx-rise{animation:c-rise var(--d-rise) ease-out var(--p-rise) infinite}
@keyframes c-rise{0%,50%{top:0;--a-rise:1}84%{top:calc(var(--amp) * -.38em);--a-rise:0}85%{top:0;--a-rise:0}100%{top:0;--a-rise:1}}
.mk .lx-glimmer{animation:c-glimmer var(--d-glimmer) ease-in-out var(--p-glimmer) infinite}
@keyframes c-glimmer{0%,70%,100%{--wink:0}80%{--wink:1}90%{--wink:0}}
.mk .lx-haunt{animation:c-haunt var(--d-haunt) ease-in-out var(--p-haunt) infinite}
@keyframes c-haunt{0%,50%,100%{--a-haunt:1}68%,80%{--a-haunt:.12}}
@property --tt{syntax:'<number>';inherits:true;initial-value:0}
@property --ct{syntax:'<number>';inherits:true;initial-value:0}
@property --b-shade{syntax:'<number>';inherits:true;initial-value:1}
@property --fl{syntax:'<number>';inherits:true;initial-value:0}
@property --mt{syntax:'<number>';inherits:false;initial-value:0}
@property --ma{syntax:'<number>';inherits:false;initial-value:0}
.mk .fx-typeon,.mkx.fx-typeon{animation:c-tt var(--d-typeon) linear var(--o-typeon) infinite}
@keyframes c-tt{from{--tt:0}to{--tt:1}}
@keyframes c-ct{from{--ct:0}to{--ct:1}}
@keyframes c-shadowpass{0%,41%,59%,100%{--b-shade:1}50%{--b-shade:.15}}
.mk .fx-float{position:relative;top:calc(var(--fl) * var(--amp) * -.367em);animation:c-float var(--d-float) ease-in-out var(--o-float) infinite}
@keyframes c-float{0%,100%{--fl:0}50%{--fl:1}}
@property --pa{syntax:'<number>';inherits:false;initial-value:0}
@property --pw{syntax:'<number>';inherits:false;initial-value:0}
@property --sn{syntax:'<number>';inherits:true;initial-value:0}
@property --st{syntax:'<number>';inherits:true;initial-value:0}
@property --wa{syntax:'<number>';inherits:true;initial-value:0}
.mk .speck{position:absolute;left:0;top:0;font-size:.62em;line-height:1;pointer-events:none;font-style:normal;font-weight:400;text-shadow:none;-webkit-text-stroke:0;opacity:var(--ma)}
.mk .pwrap .pw{position:relative}
.mk [data-sym]{position:relative;color:transparent!important;text-shadow:none!important}
.mk [data-sym]::after{content:attr(data-sym);content:attr(data-sym) / "";position:absolute;left:0;top:0;width:100%;text-align:center;color:var(--sym-ink);text-shadow:var(--sym-shadow)}
.mk .fx-runes [data-sym]::after{left:50%;width:auto;transform:translateX(-50%);white-space:nowrap;font-family:"Noto Sans Runic","Segoe UI Historic",serif}
.mk .fx-runes [data-pair]::after{left:100%}
.mk .pt-motes{top:calc(1.4em - var(--mt) * 4em);margin-left:calc(var(--mt) * var(--dx))}
@keyframes c-motes{0%{--mt:0;--ma:0}18%{--ma:.9}60%{--ma:.7}100%{--mt:1;--ma:0}}
.mk .pt-drops{top:calc((.75 + var(--pa) * 1.35) * 1.613em)}
@keyframes c-drops{0%{--pa:0;--ma:0}12%{--ma:.95}100%{--pa:1;--ma:0}}
.mk .pt-burst{left:calc(50% + var(--pa) * var(--cx) * (50% + 1.452em));top:calc((.35 + var(--pa) * var(--cy) * 1.25) * 1.613em)}
@keyframes c-burst{0%{--pa:0;--ma:0}3%{--ma:1}42%,100%{--pa:1;--ma:0}}
.mk .pt-orbit{left:calc(50% + 58% * cos(var(--pa) * 1turn));top:calc((.45 + .9 * sin(var(--pa) * 1turn)) * 1.613em);opacity:calc(var(--ma) * (.67 + .28 * sin(var(--pa) * 1turn)))}
@keyframes c-orbit{from{--pa:0;--ma:1}to{--pa:1;--ma:1}}
.mk .pt-flurry{left:calc(-8% + var(--pa) * 116%);top:calc((var(--fy) + var(--pw)) * 1.613em)}
@keyframes c-flurry{0%{--pa:0;--pw:0;--ma:0}10%{--ma:.9}50%{--pw:.25}85%{--ma:.9}100%{--pa:1;--pw:-.1;--ma:0}}
@keyframes c-twinkle{0%,10%,55%,100%{--ma:0}30%{--ma:1}}
@keyframes c-ffb{0%,100%{--ma:.15}50%{--ma:1}}
@keyframes c-seep{from{--st:0;--sn:1}to{--st:1;--sn:1}}
@property --bt{syntax:'<number>';inherits:true;initial-value:0}
@property --dt{syntax:'<number>';inherits:true;initial-value:0}
@property --jx{syntax:'<number>';inherits:true;initial-value:0}
@property --jy{syntax:'<number>';inherits:true;initial-value:0}
@keyframes c-bt{from{--bt:0}to{--bt:1}}
.mk .fx-dropin,.mkx.fx-dropin{animation:c-dt var(--d-dropin) linear var(--o-dropin) infinite}
@keyframes c-dt{from{--dt:0}to{--dt:1}}
:is(.mk,.mkx) .dl{position:relative;top:calc(var(--amp) * 1.5em * (clamp(0, (var(--dt) - var(--da)) / var(--dd), 1) * clamp(0, (var(--dt) - var(--da)) / var(--dd), 1) - 1)
  + .08em * clamp(0, (var(--dt) - var(--da)) / var(--dd), 1) * clamp(0, (var(--dt) - var(--da)) / var(--dd), 1)
  - .13em * clamp(0, (var(--dt) - var(--da) - var(--dd)) / var(--de), 1) + .05em * clamp(0, (var(--dt) - var(--da) - var(--dd) - var(--de)) / var(--de), 1))}
.mk .fx-jolt{position:relative;top:calc(var(--jy) * var(--amp) / .6 * 1em);left:calc(var(--jx) * var(--amp) / .6 * 1em);animation:c-jolt var(--d-jolt) linear var(--o-jolt) infinite}
@keyframes c-jolt{0%,12%,100%{--jx:0;--jy:0}2.5%{--jx:.05;--jy:-.2}6%{--jx:-.04;--jy:.07}9%{--jx:.02;--jy:-.02}}
:is(.mk,.mkx).timed .fx,:is(.mk,.mkx).timed .lx,.mkx.fx.timed{animation-iteration-count:1!important}
:is(.mk,.mkx).nap .fx,:is(.mk,.mkx).nap .lx,.mkx.fx.nap{animation:none!important}
.mk .wash-rest{--sn:1}
.still .mk .wash-rest{--sn:0}
@keyframes c-wash{0%,37%,63%,100%{--wa:0;--sn:1}50%{--wa:1;--sn:1}}
:is(.still,.off) :is(.mk,.mkx) .fx,:is(.still,.off) .mkx.fx,:is(.still,.off) .mk .lx,.off .mk{animation-play-state:paused!important}
.still :is(.mk,.mkx) .fx,.still .mkx.fx,.still .mk .lx,.still .mk{animation:none!important}
/* A class of sweep on an ancestor runs every look that follows a number from
   full to nothing and back, as the mixer's Sweep shows one; a fixed one stays. */
.sweep .mk.follow{animation:c-sweep 6s ease-in-out infinite}
.sweep .mk.follow.fixed{animation:none}
@keyframes c-sweep{0%,100%{--v:1}50%{--v:0}}
/* A ground: a label, band or underline drawn as the background of a span
   around the letters, so the letters themselves are never touched. Its animations
   turn dials of their own: --grun runs a colour-mix chain per stop, --giri and
   --gon swing the hue, --gsh and --ggl carry a band of light across, and
   --gpulse swells a glow. */
.mk .gr{background-repeat:no-repeat}
.mk .gr-label{border-radius:.32em;padding:.06em .3em}
@keyframes c-grun{from{--grun:0}to{--grun:1}}
@keyframes c-giri{from{--giri:0}to{--giri:1}}
@keyframes c-gon{from,to{--gon:1}}
@keyframes c-gshimmer{from{--gsh:-1.375}to{--gsh:2.375}}
@keyframes c-gglint{0%{--ggl:-1.5}24%,100%{--ggl:2.5}}
@keyframes c-gpulse{0%,100%{--gpulse:0}50%{--gpulse:1}}
