/* Valrillion motion: hover tips, how buttons answer the pointer, and how ranks arrive and shine. Loaded last, so it
   only adds to style.css / lobby.css / locker.css. Pixel rules: stepped timing or a few hard keyframes, whole-pixel
   moves, hard shadows, nothing that changes layout. Motion sits under (prefers-reduced-motion: no-preference);
   :hover sits under (hover: hover) so a phone is never left with a stuck hover; :focus-visible gets the same
   emphasis as hover for keyboard users. */

/* ---------- hover tips (tips.mjs) ---------- */
.tip { position: fixed; z-index: 60; left: 0; top: 0; max-width: min(232px, calc(100vw - 12px)); pointer-events: none; visibility: hidden; }
.tip.on { visibility: visible; }
.tip-body { display: block; background: var(--ink); color: var(--bone); border: var(--px) solid var(--bone); padding: 3px 8px 4px; font: 11px/14px var(--mono); letter-spacing: 0; text-align: center; text-transform: none; box-shadow: 4px 4px 0 rgba(15, 25, 35, .55); }
/* the pointer: a stepped notch of 2 px blocks, turned to face the button */
.tip-notch { position: absolute; width: 2px; height: 2px; color: var(--bone); background: currentColor; box-shadow: -4px 0, -2px 0, 2px 0, 4px 0, -2px 2px, 0 2px, 2px 2px, 0 4px; }
.tip[data-side='top'] .tip-notch { top: 100%; }
.tip[data-side='bottom'] .tip-notch { bottom: 100%; transform: rotate(180deg); }
.tip[data-side='left'] .tip-notch { left: 100%; transform: rotate(-90deg); }
.tip[data-side='right'] .tip-notch { right: 100%; transform: rotate(90deg); }

/* ---------- buttons: what each face lifts onto, presses into, and the colour of its sweep ---------- */
.cta { --fx-up: inset 0 -8px 0 var(--red-2); --fx-down: inset 0 -2px 0 var(--red-2); --fx-press: 2px; --fx-band: rgba(255, 255, 255, .3); }
.cta.small { --fx-up: inset 0 -6px 0 var(--red-2); }
.ghost { --fx-up: 2px 4px 0 rgba(15, 25, 35, .4); --fx-band: rgba(236, 232, 225, .22); }
.ghost.light { --fx-up: 2px 4px 0 rgba(15, 25, 35, .6); --fx-band: rgba(15, 25, 35, .14); }
.side { --fx-up: 2px 4px 0 rgba(15, 25, 35, .6); --fx-band: rgba(233, 237, 180, .2); }
.start { --fx-rest: inset 0 0 0 var(--px) #d7fff8, inset 0 -8px 0 #4fbfb0; --fx-up: inset 0 0 0 var(--px) #d7fff8, inset 0 -8px 0 #4fbfb0, 0 4px 0 #2a8d80; --fx-down: inset 0 0 0 var(--px) #d7fff8, inset 0 -4px 0 #4fbfb0; --fx-press: 2px; --fx-band: rgba(255, 255, 255, .5); }
.slot { --fx-up: 4px 6px 0 rgba(15, 25, 35, .5); --fx-band: rgba(236, 232, 225, .14); }
.answer-go { --fx-up: 0 2px 0 var(--teal); --fx-band: rgba(15, 25, 35, .16); }
.lk-tab { --fx-up: 0 2px 0 var(--ink-3); --fx-band: rgba(255, 255, 255, .35); }
.lk-tile { --fx-up: 0 2px 0 var(--ink-3); --fx-band: rgba(255, 255, 255, .55); }
.q-open { --fx-band: rgba(255, 255, 255, .35); }
#map-btn { --fx-up: 2px 4px 0 rgba(15, 25, 35, .6); --fx-band: rgba(233, 237, 180, .2); }
.brand, #sound-toggle { --fx-up: 2px 4px 0 rgba(15, 25, 35, .6); }
.modal-close { --fx-up: 0 2px 0 var(--red-2); }
#quest-btn { --fx-up: none; }

/* colour answers that the base sheets do not give (these are not motion, so reduced motion keeps them) */
.lk-tab:focus-visible:not(.on) { background: var(--bone-3); color: var(--ink); }
.answer-go:focus-visible { background: #fff; outline: var(--px) solid var(--teal); outline-offset: 0; }
.modal-close:focus-visible { background: var(--red-2); outline: var(--px) solid var(--ink); outline-offset: var(--px); }
#sound-toggle:focus-visible { border-color: var(--bone); outline: none; }
.top-nav button:focus-visible::after { background: var(--bone); }
.top-nav button.on:focus-visible::after { background: var(--lime); }
.slot:focus-visible .slot-plus { color: var(--bone); }
.pc:focus-visible::before { border-color: #fff; }
.pc:focus-visible::after { background: var(--lime); }
.pc:focus-visible .pc-frame { box-shadow: 0 0 0 var(--px) var(--lime), 6px 8px 0 rgba(15, 25, 35, .5); }
.pc:focus-visible .pc-rank::before { border-color: var(--lime); }
.review-card summary:focus-visible { background: var(--bone-2); outline: none; }
.q-all summary:focus-visible { background: var(--lime); color: var(--lime-ink); outline: none; }
@media (hover: hover) {
  .lk-tab:hover:not(.on) { background: var(--bone-3); color: var(--ink); }
  .answer-go:hover { background: #fff; }
  .modal-close:hover { background: var(--red-2); }
  #sound-toggle:hover { border-color: var(--bone); }
  .top-nav button:hover::after { background: var(--bone); }
  .top-nav button.on:hover::after { background: var(--lime); }
  .slot:hover .slot-plus { color: var(--bone); }
  .pc:hover::before { border-color: #fff; }
  .pc:hover::after { background: var(--lime); }
  .pc:hover .pc-frame { box-shadow: 0 0 0 var(--px) var(--lime), 6px 8px 0 rgba(15, 25, 35, .5); }
  .pc:hover .pc-rank::before { border-color: var(--lime); }
  .review-card summary:hover { background: var(--bone-2); }
  .q-all summary:hover { background: var(--lime); color: var(--lime-ink); }
}
/* the Career screen: its tabs and its rows (public/career.css) */
.career-row { --fx-up: inset 6px 0 0 var(--rank), inset 0 -2px 0 rgba(15, 25, 35, .35), 0 2px 0 rgba(15, 25, 35, .7); --fx-down: inset 6px 0 0 var(--rank), inset 0 -2px 0 rgba(15, 25, 35, .35); }
.career-tabbtn { position: relative; }
.career-tabbtn::after { content: ''; position: absolute; left: 50%; bottom: -3px; width: 6px; height: 6px; margin-left: -3px; background: var(--bone-3); transform: rotate(45deg) scale(.7); }
.career-tabbtn.on::after { background: var(--lime); transform: rotate(45deg); }
.career-tabbtn:focus-visible { background: rgba(236, 232, 225, .08); }
.career-tabbtn:focus-visible:not(.on)::after { background: var(--bone); }
@media (hover: hover) {
  .career-tabbtn:hover { background: rgba(236, 232, 225, .08); }
  .career-tabbtn:hover:not(.on)::after { background: var(--bone); }
}
/* the missions panel: pinned open by a click or a tap */
#quest-pop.pinned { box-shadow: 0 0 0 var(--px) var(--lime), 6px 6px 0 rgba(15, 25, 35, .6); }
#quest-btn.pinned { background: var(--lime); color: var(--lime-ink); }

/* the round's RR, counted up by app.mjs: the art changes, the box keeps its final width */
.fx-count { display: inline-flex; align-items: center; }

@media (prefers-reduced-motion: no-preference) {
  /* ---------- tips and drop-downs arrive in steps ---------- */
  .tip.on { animation: fx-tip .1s steps(2) both; }
  #quest-pop:not([hidden]), #map-list:not([hidden]) { animation: fx-drop .12s steps(3) both; }

  /* ---------- the lift: up two pixels onto a hard shadow, down when pressed ---------- */
  .cta, .ghost, .side, .start, .slot, .answer-go, .lk-tab, .lk-tile, #map-btn, .brand, #sound-toggle, .modal-close, #quest-btn, .pc { transition: transform .08s steps(2), box-shadow .08s steps(2); }
  :is(.cta, .ghost, .side, .start, .slot, .answer-go, .lk-tab, .lk-tile, .brand, .modal-close):focus-visible:not(:disabled), :is(#map-btn, #sound-toggle, #quest-btn):focus-visible { transform: translateY(-2px); box-shadow: var(--fx-up); }
  /* the sweep: two hard bars cross the face once, in steps */
  :is(.cta, .ghost, .side, .start, .slot, .answer-go, .lk-tab, .lk-tile, .q-open):focus-visible:not(:disabled), #map-btn:focus-visible { background-image: linear-gradient(90deg, var(--fx-band) 0 16px, transparent 16px 20px, var(--fx-band) 20px 24px, transparent 24px); background-size: 28px 100%; background-repeat: no-repeat; background-position: calc(100% + 28px) 0; animation: fx-sweep .32s steps(7, jump-none) 1; }
  .pc:focus-visible { transform: translateY(-2px); }
  .pc:focus-visible .pc-art { filter: brightness(1.1); animation: fx-glow .3s step-end 1; }
  .top-nav button:focus-visible::after { transform: rotate(45deg); animation: fx-diamond .32s steps(4) 1; }
  .slot:focus-visible .slot-plus { transform: rotate(90deg); animation: fx-plus .3s step-end 1; }
  .lk-tile:focus-visible .lk-art { transform: translateY(-2px); }
  #map-list button:focus-visible { transform: translateX(2px); }
  .brand:focus-visible .brand-spike { animation: fx-hop .3s step-end 1; }
  #map-btn:focus-visible .map-btn-caret { transform: translateY(2px); }
  .lk-art, #map-list button, .map-btn-caret { transition: transform .08s steps(2); }
  .map-btn-caret { display: inline-block; }

  @media (hover: hover) {
    :is(.cta, .ghost, .side, .start, .slot, .answer-go, .lk-tab, .lk-tile, .brand, .modal-close):hover:not(:disabled), :is(#map-btn, #sound-toggle, #quest-btn):hover { transform: translateY(-2px); box-shadow: var(--fx-up); }
    :is(.cta, .ghost, .side, .start, .slot, .answer-go, .lk-tab, .lk-tile, .q-open):hover:not(:disabled), #map-btn:hover { background-image: linear-gradient(90deg, var(--fx-band) 0 16px, transparent 16px 20px, var(--fx-band) 20px 24px, transparent 24px); background-size: 28px 100%; background-repeat: no-repeat; background-position: calc(100% + 28px) 0; animation: fx-sweep .32s steps(7, jump-none) 1; }
    .pc:hover { transform: translateY(-2px); }
    .pc:hover .pc-art { filter: brightness(1.1); animation: fx-glow .3s step-end 1; }
    .top-nav button:hover::after { transform: rotate(45deg); animation: fx-diamond .32s steps(4) 1; }
    .slot:hover .slot-plus { transform: rotate(90deg); animation: fx-plus .3s step-end 1; }
    .lk-tile:hover:not(:disabled) .lk-art { transform: translateY(-2px); }
    #map-list button:hover { transform: translateX(2px); }
    .brand:hover .brand-spike { animation: fx-hop .3s step-end 1; }
    #map-btn:hover .map-btn-caret { transform: translateY(2px); }
    /* the Start bar breathes while it waits: a hard ring that steps out and back */
    .start { animation: fx-breathe 2.4s step-end infinite; }
    .start:hover:not(:disabled), .start:focus-visible:not(:disabled) { --fx-rest: var(--fx-up); animation: fx-sweep .32s steps(7, jump-none) 1, fx-breathe 1.2s step-end infinite; }
    .start:active:not(:disabled) { --fx-rest: var(--fx-down); }
  }
  :is(.cta, .ghost, .side, .start, .slot, .answer-go, .lk-tab, .lk-tile, .brand, .modal-close):active:not(:disabled), :is(#map-btn, #sound-toggle, #quest-btn):active { transform: translateY(var(--fx-press, 1px)); box-shadow: var(--fx-down, 0 0 0 transparent); }
  .pc:active { transform: translateY(1px); }
  /* Career: a row lifts like the other cards, its agent steps forward; a tab's diamond turns */
  .career-row, .career-row .career-agent { transition: transform .08s steps(2), box-shadow .08s steps(2); }
  .career-row:focus-visible { transform: translateY(-2px); box-shadow: var(--fx-up); }
  .career-row:focus-visible .career-agent { transform: translateX(2px); }
  .career-tabbtn:focus-visible::after { transform: rotate(45deg); animation: fx-diamond .32s steps(4) 1; }
  @media (hover: hover) {
    .career-row:hover { transform: translateY(-2px); box-shadow: var(--fx-up); }
    .career-row:hover .career-agent { transform: translateX(2px); }
    .career-tabbtn:hover::after { transform: rotate(45deg); animation: fx-diamond .32s steps(4) 1; }
  }
  .career-row:active { transform: translateY(1px); box-shadow: var(--fx-down); }

  /* ---------- ranks arrive: a stepped pop, the letters settling, the colour sweeping in ---------- */
  /* the round verdict: the badge */
  .verdict:not(.rank-whiff) .rank-lg { transform-origin: 0 50%; background-image: none, linear-gradient(90deg, var(--rank) 50%, color-mix(in srgb, var(--rank) 45%, var(--ink)) 50%); background-size: 28px 100%, 200% 100%; background-repeat: no-repeat; background-position: -28px 0, 0 0; animation: fx-pop .3s step-end both, fx-ink .36s steps(6) both; }
  .verdict:not(.rank-whiff) .rank-lg .rank-name { animation: fx-space .3s step-end both; }
  /* the results: rows one after another, the game's rank on top */
  .results .rows .mh { --fx-wide: 1; animation: fx-row .24s steps(3) both; animation-delay: calc(var(--i, 0) * 70ms); }
  .career .emblem-xl { animation: fx-pop .36s step-end both; }
  .mh-hit .mh-rank { animation: fx-pop .3s step-end both, fx-space-mid .3s step-end both; animation-delay: calc(var(--i, 0) * 70ms + 140ms); }
  .career-rank { animation: fx-pop .36s step-end .1s both, fx-space-big .36s step-end .1s both; }
}

/* the rank words are painted through their own letters, so a colour can sweep across them */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  @media (prefers-reduced-motion: no-preference) and (forced-colors: none) {
    .mh-hit .mh-rank, .career-rank { background-image: none, linear-gradient(90deg, currentColor 50%, #fff 50%); background-size: 28px 100%, 200% 100%; background-repeat: no-repeat; background-position: -28px 0, 0 0; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: none; }
    .mh-hit .mh-rank { filter: drop-shadow(2px 2px 0 rgba(15, 25, 35, .75)); animation: fx-pop .3s step-end both, fx-space-mid .3s step-end both, fx-ink .36s steps(6) both; animation-delay: calc(var(--i, 0) * 70ms + 140ms); }
    .career-rank { filter: drop-shadow(3px 3px 0 var(--ink)); animation: fx-pop .36s step-end .1s both, fx-space-big .36s step-end .1s both, fx-ink .42s steps(7) .1s both; }

    /* ---------- Immortal and Radiant shine: a bright band crosses the word, the badge and the row's edge ---------- */
    .mh:is(.rank-immortal, .rank-radiant) .mh-rank, .career:has(> :is(.emblem-immortal, .emblem-radiant)) .career-rank { background-image: linear-gradient(90deg, color-mix(in srgb, currentColor 50%, #fff) 0 4px, #fff 4px 24px, color-mix(in srgb, currentColor 50%, #fff) 24px 28px), linear-gradient(90deg, currentColor 50%, #fff 50%); }
    .mh:is(.rank-immortal, .rank-radiant) .mh-rank { animation: fx-pop .3s step-end both, fx-space-mid .3s step-end both, fx-ink .36s steps(6) both, fx-shine 2.6s steps(12, jump-none) infinite; animation-delay: calc(var(--i, 0) * 70ms + 140ms), calc(var(--i, 0) * 70ms + 140ms), calc(var(--i, 0) * 70ms + 140ms), calc(var(--i, 0) * 70ms + 700ms); }
    .career:has(> :is(.emblem-immortal, .emblem-radiant)) .career-rank { animation: fx-pop .36s step-end .1s both, fx-space-big .36s step-end .1s both, fx-ink .42s steps(7) .1s both, fx-shine 2.6s steps(14, jump-none) .7s infinite; }
    /* the badge: the band crosses the plate, and the letters turn dark exactly where it is, so they stay readable */
    .verdict:is(.rank-immortal, .rank-radiant) .rank-lg { background-image: linear-gradient(90deg, color-mix(in srgb, var(--rank) 50%, #fff) 0 4px, #fff 4px 24px, color-mix(in srgb, var(--rank) 50%, #fff) 24px 28px), linear-gradient(90deg, var(--rank) 50%, color-mix(in srgb, var(--rank) 45%, var(--ink)) 50%); animation: fx-pop .3s step-end both, fx-ink .36s steps(6) both, fx-shine 2.6s steps(14, jump-none) .7s infinite; }
    .verdict:is(.rank-immortal, .rank-radiant) .rank-lg .rank-name { --fx-o: 50px; background-image: linear-gradient(color-mix(in srgb, var(--rank) 30%, #000), color-mix(in srgb, var(--rank) 30%, #000)), linear-gradient(var(--rank-ink), var(--rank-ink)); background-size: 28px 100%, 100% 100%; background-repeat: no-repeat; background-position: calc(-28px - var(--fx-o)) 0, 0 0; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: fx-space .3s step-end both, fx-shine-name 2.6s steps(14, jump-none) .7s infinite; }
    .verdict:is(.rank-immortal, .rank-radiant) .rank-lg:not(:has(.rank-img)) .rank-name { --fx-o: 34px; }
  }
}
@media (prefers-reduced-motion: no-preference) {
  .mh:is(.rank-immortal, .rank-radiant)::before { content: ''; position: absolute; left: 0; top: 0; width: 6px; height: 100%; pointer-events: none; background: linear-gradient(180deg, color-mix(in srgb, var(--rank) 50%, #fff) 0 4px, #fff 4px 16px, color-mix(in srgb, var(--rank) 50%, #fff) 16px 20px) 0 -20px / 100% 20px no-repeat; animation: fx-edge 2.6s steps(10, jump-none) calc(var(--i, 0) * 70ms + 700ms) infinite; }
  /* the game rank's emblem: the same band, cut to the emblem's own pixels (app.mjs passes the picture as --fx-mask) */
  .career > .emblem-xl:is(.emblem-immortal, .emblem-radiant)::after { content: ''; position: absolute; inset: 0; pointer-events: none; image-rendering: pixelated; background: linear-gradient(90deg, rgba(255, 255, 255, .45) 0 4px, rgba(255, 255, 255, .85) 4px 16px, rgba(255, 255, 255, .45) 16px 20px) -20px 0 / 20px 100% no-repeat; -webkit-mask: var(--fx-mask, linear-gradient(transparent, transparent)) center / 100% 100% no-repeat; mask: var(--fx-mask, linear-gradient(transparent, transparent)) center / 100% 100% no-repeat; animation: fx-glint 2.6s steps(10, jump-none) .7s infinite; }

  /* Radiant: pixel sparkles twinkle around the word (a 2 px core that grows a plus and shrinks again) */
  .mh.rank-radiant .mh-rank, .mh.rank-radiant .mh-mid, .career:has(> .emblem-radiant) .career-rank, .verdict.rank-radiant .verdict-rank { position: relative; }
  .mh.rank-radiant .mh-rank::before, .mh.rank-radiant .mh-rank::after, .mh.rank-radiant .mh-mid::before, .career:has(> .emblem-radiant) .career-rank::before, .career:has(> .emblem-radiant) .career-rank::after, .career > .emblem-xl.emblem-radiant::before, .verdict.rank-radiant .verdict-rank::before, .verdict.rank-radiant .verdict-rank::after { content: ''; position: absolute; width: 2px; height: 2px; color: #fff; background: currentColor; pointer-events: none; opacity: 0; animation: fx-twinkle 1.8s step-end infinite; }
  .mh.rank-radiant .mh-rank::before { left: -10px; top: 2px; animation-delay: calc(var(--i, 0) * 70ms + .8s); }
  .mh.rank-radiant .mh-rank::after { right: -8px; bottom: 2px; animation-delay: calc(var(--i, 0) * 70ms + 1.4s); }
  .mh.rank-radiant .mh-mid::before { left: 62%; top: -6px; animation-delay: calc(var(--i, 0) * 70ms + 2s); }
  .career:has(> .emblem-radiant) .career-rank::before { left: -14px; top: 4px; animation-delay: .8s; }
  .career:has(> .emblem-radiant) .career-rank::after { right: -12px; bottom: 4px; animation-delay: 1.4s; }
  .career > .emblem-xl.emblem-radiant::before { right: 2px; top: 6px; animation-delay: 2s; }
  /* on the bone panel the sparkles are amber, or they would not show */
  .verdict.rank-radiant .verdict-rank::before, .verdict.rank-radiant .verdict-rank::after { color: #d99a00; }
  .verdict.rank-radiant .verdict-rank::before { left: -8px; top: -4px; animation-delay: .7s; }
  .verdict.rank-radiant .verdict-rank::after { left: var(--fx-w, 190px); top: 30px; animation-delay: 1.3s; }
}

@keyframes fx-tip { from { opacity: 0; transform: translateY(2px); } }
@keyframes fx-drop { from { opacity: 0; transform: translateY(-6px); } }
@keyframes fx-sweep { from { background-position: -28px 0; } to { background-position: calc(100% + 28px) 0; } }
@keyframes fx-diamond { from { transform: rotate(45deg) scale(.7); } to { transform: rotate(225deg) scale(1); } }
@keyframes fx-plus { 0% { transform: rotate(0deg); } 34% { transform: rotate(45deg); } 67% { transform: rotate(90deg) scale(1.2); } 100% { transform: rotate(90deg); } }
@keyframes fx-hop { 0% { transform: translateY(0); } 25% { transform: translateY(-3px); } 50% { transform: translateY(0); } 75% { transform: translateY(-1px); } 100% { transform: translateY(0); } }
@keyframes fx-glow { 0% { filter: brightness(1.45); } 40% { filter: brightness(.95); } 70% { filter: brightness(1.25); } 100% { filter: brightness(1.1); } }
@keyframes fx-breathe { 0%, 100% { box-shadow: var(--fx-rest); } 25%, 75% { box-shadow: var(--fx-rest), 0 0 0 2px rgba(127, 227, 212, .5); } 50% { box-shadow: var(--fx-rest), 0 0 0 2px rgba(127, 227, 212, .5), 0 0 0 4px rgba(127, 227, 212, .22); } }
@keyframes fx-pop { 0% { transform: scale(1.5); } 30% { transform: scale(.9); } 60% { transform: scale(1.06); } 100% { transform: none; } }
@keyframes fx-row { from { opacity: 0; transform: translateY(6px); } }
/* letters settle: wide, less wide, home. The margins take the extra width back so nothing beside the word moves
   (--n is the number of letters, set by app.mjs) */
@keyframes fx-space { 0% { letter-spacing: 3px; margin-right: calc(var(--n, 0) * -2px); } 30% { letter-spacing: 2px; margin-right: calc(var(--n, 0) * -1px); } 60%, 100% { letter-spacing: 1px; margin-right: 0; } }
@keyframes fx-space-mid { 0% { letter-spacing: calc(2px + var(--fx-wide, 0) * 4px); margin-inline: calc(var(--fx-wide, 0) * var(--n, 0) * -2px); } 30% { letter-spacing: calc(2px + var(--fx-wide, 0) * 2px); margin-inline: calc(var(--fx-wide, 0) * var(--n, 0) * -1px); } 60%, 100% { letter-spacing: 2px; margin-inline: 0; } }
@keyframes fx-space-big { 0% { letter-spacing: 9px; } 30% { letter-spacing: 6px; } 60%, 100% { letter-spacing: 3px; } }
/* two layers: the shine band (first) and the colour (second). The colour sweeps in once; the band then loops. */
@keyframes fx-ink { from { background-position: -28px 0, 100% 0; } to { background-position: -28px 0, 0 0; } }
@keyframes fx-shine { 0% { background-position: -28px 0, 0 0; } 45%, 100% { background-position: calc(100% + 28px) 0, 0 0; } }
/* the badge's letters: the same band as the plate's, shifted by where the word starts (--fx-o) and ends (14 px of padding) */
@keyframes fx-shine-name { 0% { background-position: calc(-28px - var(--fx-o, 50px)) 0, 0 0; } 45%, 100% { background-position: calc(100% + 42px) 0, 0 0; } }
@keyframes fx-edge { 0% { background-position: 0 -20px; } 45%, 100% { background-position: 0 calc(100% + 20px); } }
@keyframes fx-glint { 0% { background-position: -20px 0; } 45%, 100% { background-position: calc(100% + 20px) 0; } }
@keyframes fx-twinkle {
  0% { opacity: 0; box-shadow: none; }
  10% { opacity: 1; box-shadow: none; }
  20% { opacity: 1; box-shadow: 0 -2px, 0 2px, -2px 0, 2px 0; }
  30% { opacity: 1; box-shadow: 0 -2px, 0 2px, -2px 0, 2px 0, 0 -4px, 0 4px, -4px 0, 4px 0; }
  42% { opacity: 1; box-shadow: 0 -2px, 0 2px, -2px 0, 2px 0; }
  52% { opacity: 1; box-shadow: none; }
  60%, 100% { opacity: 0; box-shadow: none; }
}
