/* Release 520 (owner: "a notification appears below the black area ... My bets and Upcoming games not sure are in the correct
   place ... scrolling down doesn't move the panels in Games or Live, it should be vivid"). Live: "My open bets" and "Find upcoming
   games" sit in the black band, to the right of the live count. The saved-game notice ("... is under way") is no longer a card
   under the band: it is listed in the top bar's bell (scoutics_nav.js). Scrolling: each game card rises into place
   once as it comes into view, the league panels and the Scores column too; a live score that changes gets one red pop. Motion is
   transform and opacity only, never re-hides, and is off with reduced motion. */

/* the two buttons in the band */
html:not(#b520a):not(#b520b):not(#b520c):not(#b520d):not(#b520e) body .lv > .lv-head { display: flex !important; flex-wrap: wrap !important; align-items: center !important; column-gap: 24px !important; }
html:not(#b520a):not(#b520b):not(#b520c):not(#b520d):not(#b520e) body .lv > .lv-head > div:first-child { flex: 1 1 100%; }
html:not(#b520a):not(#b520b):not(#b520c):not(#b520d):not(#b520e) body .lv > .lv-head > .lv-status { flex: 1 1 0 !important; width: auto !important; min-width: 0; margin-top: 22px; }
html:not(#b520a):not(#b520b):not(#b520c):not(#b520d):not(#b520e) body .lv > .lv-head > .dw-live-actions { flex: 0 0 auto !important; width: auto !important; display: flex; flex-wrap: wrap; justify-content: flex-end !important; align-items: center; gap: 12px !important; margin: 22px 0 0 auto !important; }
html:not(#b520a):not(#b520b):not(#b520c):not(#b520d):not(#b520e) body .lv > .lv-head > .dw-live-actions > a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px !important; border-radius: 999px !important; text-decoration: none !important;
  font: 700 16px/1 Manrope, system-ui, sans-serif !important; color: #fff !important; background: transparent !important; border: 1.5px solid rgba(255, 255, 255, .45) !important; box-shadow: none !important;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}
html:not(#b520a):not(#b520b):not(#b520c):not(#b520d):not(#b520e) body .lv > .lv-head > .dw-live-actions > a:first-child { background: #fff !important; color: #0A0B0F !important; border-color: #fff !important; }
html:not(#b520a):not(#b520b):not(#b520c):not(#b520d):not(#b520e) body .lv > .lv-head > .dw-live-actions > a:hover { border-color: #fff !important; background: rgba(255, 255, 255, .12) !important; }
html:not(#b520a):not(#b520b):not(#b520c):not(#b520d):not(#b520e) body .lv > .lv-head > .dw-live-actions > a:first-child:hover { background: #E6E8EE !important; }
html:not(#b520a):not(#b520b):not(#b520c):not(#b520d):not(#b520e) body .lv > .lv-head > .dw-live-actions > a:active { transform: scale(.98); }
html:not(#b520a):not(#b520b):not(#b520c):not(#b520d):not(#b520e) body .lv > .lv-head > .dw-live-actions > a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* motion: only once the script has switched it on (html.b520-on), so nothing is hidden without it */
html.b520-on .lv > .lv-head h1, html.b520-on .bt > .bt-hero h1 { animation: b520up .7s cubic-bezier(.2, .7, .2, 1) both; }
html.b520-on .lv > .lv-head .b371-lead, html.b520-on .bt > .bt-hero .bt-lead { animation: b520up .7s .09s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes b520up { from { opacity: 0; transform: translate3d(0, 34px, 0); } to { opacity: 1; transform: none; } }
html.b520-on .b520-w { opacity: 0; transform: translate3d(0, 44px, 0) scale(.965); }
html.b520-on .b520-w.b520-side { transform: translate3d(36px, 0, 0); }
html.b520-on .b520-g.b520-g { transition: opacity .5s cubic-bezier(.2, .7, .2, 1), transform .64s cubic-bezier(.2, .7, .2, 1); will-change: opacity, transform; }
html.b520-on .b520-score .lvk-val { animation: b520pop .9s cubic-bezier(.2, .7, .2, 1); }
@keyframes b520pop { 0% { color: #D70015; transform: scale(1.14); } 60% { color: #D70015; } 100% { transform: none; } }
html.b520-on .lvk-val { transform-origin: left center; }
@media (hover: hover) and (pointer: fine) {
  html.b520-on :is(.lvk, .gxk) { transition: transform .2s ease, box-shadow .2s ease; }
  html.b520-on :is(.lvk, .gxk):hover { transform: translate3d(0, -3px, 0); box-shadow: 0 14px 30px -16px rgba(10, 11, 15, .35) !important; }
}

@media (max-width: 899px) {
  html:not(#b520a):not(#b520b):not(#b520c):not(#b520d):not(#b520e) body .lv > .lv-head > .lv-status { flex-basis: 100%; margin-top: 16px; }
  html:not(#b520a):not(#b520b):not(#b520c):not(#b520d):not(#b520e) body .lv > .lv-head > .dw-live-actions { flex: 1 1 100%; justify-content: flex-start !important; margin: 16px 0 0 !important; gap: 10px !important; }
  html:not(#b520a):not(#b520b):not(#b520c):not(#b520d):not(#b520e) body .lv > .lv-head > .dw-live-actions > a { flex: 1 1 0; justify-content: center; min-height: 46px; padding: 0 10px !important; font-size: 14px !important; white-space: nowrap; }
  html.b520-on .b520-w { transform: translate3d(0, 28px, 0) scale(.975); }
}
@media (prefers-reduced-motion: reduce) {
  html.b520-on .b520-w { opacity: 1; transform: none; }
  html.b520-on :is(.lv > .lv-head, .bt > .bt-hero) :is(h1, .b371-lead, .bt-lead), html.b520-on .b520-score .lvk-val { animation: none; }
}
