/* Release 521 (owner, after crz.studio: "American style panels, with texts below and when mouse hovers it shows some detail"):
   desktop Games cards become large picture panels, two per row: the two teams' colours split on a diagonal with both jerseys and
   their codes in big letters (the NFL on the US flag with a line-drawn football), the match in capitals under the picture, its
   start time on the right, and one grey line with our forecast, the market and the uncertainty. Hovering or focusing a panel slides
   up the detail: the best price for each team and where, our forecast against the market, and the signal. Phones keep the compact
   card (b487_phone.css). Photo: the owner's licensed flag image; football: the owner's Football Line Badges pack. */
@media (min-width: 900px) {
  html:not(#b521a):not(#b521b):not(#b521c):not(#b521d):not(#b521e):not(#b521f):not(#b521g) body .bt-day-list:has(> .gxk) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 44px 32px !important; }
  html:not(#b521a):not(#b521b):not(#b521c):not(#b521d):not(#b521e):not(#b521f):not(#b521g) body :is(.gxk, .lv9) {
    position: relative; padding: 22px 0 0 !important; border: 0 !important; border-top: 1px solid #D4D7DE !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; min-height: 0 !important;
  }
  html:not(#b521a):not(#b521b):not(#b521c):not(#b521d):not(#b521e):not(#b521f):not(#b521g) body :is(.gxk, .lv9).is-shown { border-top: 3px solid #0A0B0F !important; padding-top: 20px !important; }
  html:not(#b521a):not(#b521b):not(#b521c):not(#b521d):not(#b521e):not(#b521f):not(#b521g) body :is(.gxk, .lv9) > .lvk-btn { box-shadow: none !important; border-radius: 0 !important; outline-offset: 4px; display: block !important; width: 100%; padding: 0 !important; border: 0 !important; background: transparent !important; text-align: left; cursor: pointer; }
  html:not(#b521a):not(#b521b):not(#b521c):not(#b521d):not(#b521e):not(#b521f):not(#b521g) body :is(.gxk, .lv9) > .lvk-btn > :is(.lvk-top, .lvk-list, .gxm, .lvk-ou, .lvk-foot) {
    position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important;
  }

  /* the picture */
  :is(.gxk, .lv9) .gxp { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; container-type: inline-size; color: #fff; background: linear-gradient(118deg, color-mix(in srgb, var(--gxp-a, #1F2937) 58%, #0A0B0F) 0 50%, color-mix(in srgb, var(--gxp-b, #374151) 58%, #0A0B0F) 50% 100%); }
  :is(.gxk, .lv9) .gxp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 11, 15, 0) 55%, rgba(10, 11, 15, .28) 100%); pointer-events: none; }
  :is(.gxk, .lv9) .gxp[data-gxp-sport="nfl"] { background: #1B2A5C url("/static/img/games/flag-900.webp?v=r521") center / cover no-repeat; }
  @media (min-resolution: 1.5dppx) { :is(.gxk, .lv9) .gxp[data-gxp-sport="nfl"] { background-image: url("/static/img/games/flag-1600.webp?v=r521"); } }
  /* release 523 (owner: "England flag for the Premier League"): the Premier League panels sit on the St George's cross */
  :is(.gxk, .lv9) .gxp[data-gxp-sport="epl"] { background: #F4F4F4 url("/static/img/games/flag-eng-900.webp?v=r523") center / cover no-repeat; }
  @media (min-resolution: 1.5dppx) { :is(.gxk, .lv9) .gxp[data-gxp-sport="epl"] { background-image: url("/static/img/games/flag-eng-1600.webp?v=r523"); } }
  :is(.gxk, .lv9) .gxp[data-gxp-sport="epl"]::before { content: ""; position: absolute; inset: 0; background: linear-gradient(118deg, rgba(10, 11, 15, .58), rgba(10, 11, 15, .26)); }
  :is(.gxk, .lv9) .gxp[data-gxp-sport="epl"] .gxp-code { color: rgba(255, 255, 255, .22); }
  :is(.gxk, .lv9) .gxp[data-gxp-sport="nfl"]::before { content: ""; position: absolute; inset: 0; background: linear-gradient(118deg, rgba(10, 11, 15, .62), rgba(10, 11, 15, .30)); }
  :is(.gxk, .lv9) .gxp-art { position: absolute; inset: 0; }
  :is(.gxk, .lv9) .gxp-code { position: absolute; font: 400 34cqi/.8 "Clay Attica", Manrope, system-ui, sans-serif; font-style: normal; letter-spacing: -.03em; color: rgba(255, 255, 255, .16); white-space: nowrap; }
  :is(.gxk, .lv9) .gxp-code.is-a { left: 4cqi; top: 5cqi; }
  :is(.gxk, .lv9) .gxp-code.is-b { right: 4cqi; bottom: 3cqi; }
  :is(.gxk, .lv9) .gxp-ball { position: absolute; left: 50%; top: 50%; width: 82%; aspect-ratio: 900 / 529; transform: translate(-50%, -50%); background: url("/static/img/games/football-line.webp?v=r521") center / contain no-repeat; opacity: .3; }
  :is(.gxk, .lv9) .gxp-chip { position: absolute; left: 16px; top: 16px; z-index: 2; padding: 6px 10px; background: #0A0B0F; color: #fff; font: 800 11.5px/1 Manrope, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
  :is(.gxk, .lv9) .gxp-kits { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 5cqi; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
  :is(.gxk, .lv9) .gxp-kits .lvk-j { display: block; width: 26cqi; height: auto; padding: 0; background: transparent !important; border: 0 !important; box-shadow: none !important; }
  :is(.gxk, .lv9) .gxp-kits .gx-kit { display: block; width: 26cqi; }
  :is(.gxk, .lv9) .gxp-kits .gx-kit svg { display: block; width: 100% !important; height: auto !important; filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, .9)) drop-shadow(0 12px 18px rgba(0, 0, 0, .45)); }
  :is(.gxk, .lv9) .gxp-kits .lv-kit, :is(.gxk, .lv9) .gxp-kits .lv-kit svg { display: block; width: 100% !important; height: auto !important; }
  :is(.gxk, .lv9) .gxp-kits svg { filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, .9)) drop-shadow(0 12px 18px rgba(0, 0, 0, .45)); }
  /* release 521: the two players (b521_chars.js) take the jerseys' place once they have loaded */
  :is(.gxk, .lv9) .gxp.has-ppl :is(.gxp-kits, .gxp-ball) { display: none; }
  :is(.gxk, .lv9) .gxp-ppl { position: absolute; inset: 0; z-index: 1; pointer-events: none; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
  :is(.gxk, .lv9) .gxp-ppl img { position: absolute; bottom: 0; height: 84%; width: auto; max-width: 50%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .35)); animation: gxpIn .5s cubic-bezier(.2, .7, .2, 1) both; }
  :is(.gxk, .lv9) .gxp-ppl img.is-a { left: 3%; }
  :is(.gxk, .lv9) .gxp-ppl img.is-b { right: 3%; transform: scaleX(-1); }
  :is(.gxk, .lv9) .gxp:not([data-gxp-sport="nfl"]) .gxp-ppl img { bottom: 5%; height: 80%; }
  :is(.gxk, .lv9):hover .gxp-ppl { transform: scale(1.04); transform-origin: 50% 100%; }
  @keyframes gxpIn { from { opacity: 0; } to { opacity: 1; } }
  :is(.gxk, .lv9) .gxp-vs { font: 400 9cqi/1 "Clay Attica", Manrope, system-ui, sans-serif; font-style: normal; color: #fff; }

  /* the detail, on hover or keyboard focus */
  :is(.gxk, .lv9) .gxp-more { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; background: rgba(10, 11, 15, .94); transform: translate3d(0, 101%, 0); transition: transform .38s cubic-bezier(.2, .7, .2, 1); overflow: hidden; }
  :is(.gxk, .lv9):hover .gxp-more, :is(.gxk, .lv9) > .lvk-btn:focus-visible .gxp-more { transform: none; }
  :is(.gxk, .lv9):hover .gxp-kits { transform: scale(1.05); }
  html:not(#b521a):not(#b521b):not(#b521c):not(#b521d):not(#b521e):not(#b521f):not(#b521g) body :is(.gxk, .lv9):is(:hover, .is-shown), html:not(#b521a):not(#b521b):not(#b521c):not(#b521d):not(#b521e):not(#b521f):not(#b521g) body :is(.gxk, .lv9) > .lvk-btn:hover { background: transparent !important; box-shadow: none !important; }
  :is(.gxk, .lv9) .gxp-h { margin-top: 6px; color: #9CA3AF; font: 700 11.5px/1.2 Manrope, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
  :is(.gxk, .lv9) .gxp-h:first-child { margin-top: 0; }
  :is(.gxk, .lv9) .gxp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 12px; padding: 4px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  :is(.gxk, .lv9) .gxp-k { color: #fff; font: 600 16px/1.3 Manrope, system-ui, sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  :is(.gxk, .lv9) .gxp-row > b { color: #fff; font: 800 22px/1.1 Manrope, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
  :is(.gxk, .lv9) .gxp-at { grid-column: 1 / -1; color: #9CA3AF; font: 500 12.5px/1.3 Manrope, system-ui, sans-serif; }
  :is(.gxk, .lv9) .gxp-more .gxm-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) 44px; align-items: center; gap: 10px; color: #C9CCD6; font: 600 13px/1.2 Manrope, system-ui, sans-serif; }
  :is(.gxk, .lv9) .gxp-more .gxm-bar { display: block; height: 6px; background: rgba(255, 255, 255, .14); }
  :is(.gxk, .lv9) .gxp-more .gxm-bar i { display: block; height: 100%; }
  :is(.gxk, .lv9) .gxp-more .gxm-row > b { color: #fff; text-align: right; font-variant-numeric: tabular-nums; }
  :is(.gxk, .lv9) .gxp-more .gxm-nil, :is(.gxk, .lv9) .gxp-more .lvk-none { color: #C9CCD6; }
  :is(.gxk, .lv9) .gxp-sig { margin-top: auto; }
  :is(.gxk, .lv9) .gxp-sig .lvk-sig { color: #C9CCD6; }
  :is(.gxk, .lv9) .gxp-go { color: #fff; font: 700 13px/1.3 Manrope, system-ui, sans-serif; text-decoration: underline; text-underline-offset: 3px; }

  /* the words under the picture */
  :is(.gxk, .lv9) .gxp-cap { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 18px; }
  :is(.gxk, .lv9) .gxp-t { color: #0A0B0F; font: 800 clamp(22px, 2.1vw, 30px)/1.05 Manrope, system-ui, sans-serif; letter-spacing: -.015em; text-transform: uppercase; }
  :is(.gxk, .lv9) .gxp-n { flex: none; color: #0A0B0F; font: 800 15px/1 Manrope, system-ui, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
  :is(.gxk, .lv9) .gxp-d { display: block; margin-top: 8px; color: #5B6070; font: 500 16px/1.45 Manrope, system-ui, sans-serif; }

  /* Save sits on the picture, top right */
  html:not(#b521a):not(#b521b):not(#b521c):not(#b521d):not(#b521e):not(#b521f):not(#b521g) body :is(.gxk, .lv9) > .gxk-save { position: absolute !important; top: 34px !important; right: 12px !important; bottom: auto !important; left: auto !important; z-index: 4; }
}
@media (max-width: 899px) {
  :is(.gxk, .lv9) .gxp, :is(.gxk, .lv9) .gxp-cap, :is(.gxk, .lv9) .gxp-d { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.gxk, .lv9) .gxp-more, :is(.gxk, .lv9) .gxp-kits, :is(.gxk, .lv9) .gxp-ppl { transition: none !important; }
  :is(.gxk, .lv9) .gxp-ppl img { animation: none !important; }
}

/* release 527: other leagues (class is-mo) borrow the players but never the US or England flag; they keep the teams' colours */
@media (min-width: 900px) {
  :is(.gxk, .lv9) .gxp.is-mo[data-gxp-sport] { background: linear-gradient(118deg, color-mix(in srgb, var(--gxp-a, #1F2937) 58%, #0A0B0F) 0 50%, color-mix(in srgb, var(--gxp-b, #374151) 58%, #0A0B0F) 50% 100%); }
  :is(.gxk, .lv9) .gxp.is-mo[data-gxp-sport]::before { content: none; }
  :is(.gxk, .lv9) .gxp.is-mo .gxp-code { color: rgba(255, 255, 255, .16); }
  .lv9.is-static > .lvk-btn { cursor: default; }
}

/* release 531: the hover detail is solid, so the picture's label never shows through it */
:is(.gxk, .lv9) .gxp-more { background: #0A0B0F !important; }

/* release 532: the next scheduled games with no saved prices are panels too on desktop (the list stays on phones) */
.b532-sched { display: none; }
@media (min-width: 900px) {
  .bt-sched .b532-sched { display: grid; margin-top: 12px; }
  .bt-sched .b532-sched + .bt-sched-list { display: none; }
  :is(.gxk).is-sched > .lvk-btn { cursor: default; }
  :is(.gxk).is-sched .lvk-top { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
}
@media (max-width: 899px) { .b532-sched { display: none !important; } }

/* release 544 (owner: "why are some of the panels below the line, like the first and third"): a <button> centres its content
   vertically, so a panel whose title fits on one line sat lower than the one next to it with a two-line title. The panel's
   button now stacks its parts from the top, so every picture in a row starts on the same line. */
@media (min-width: 900px) {
  html:not(#p5a):not(#p5b):not(#p5c):not(#p5d):not(#p5e):not(#p5f):not(#p5g):not(#p5h) body :is(.gxk, .lv9) > .lvk-btn { display: flex !important; flex-direction: column !important; justify-content: flex-start !important; }
}

/* release 545 (owner: "few more options for drawing"): the mascot busts are cut at the chest, so they stand on the panel's
   bottom edge, a little taller than the full-length players */
html:not(#b5a):not(#b5b):not(#b5c) body :is(.gxk, .lv9, .sc9) .gxp-ppl[data-gxp-pose*="-b"] img { bottom: 0 !important; height: 86% !important; max-width: 50% !important; }   /* release 549: as tall as the players */
