/* Local editorial art stays subordinate to the dashboard's data and host theme. */
@layer pbm-sports-editorial {
  :where(.pbm-sd-dashboard img[data-sd-image-position="left"]) { object-position: left center; }
  :where(.pbm-sd-dashboard img[data-sd-image-position="center"]) { object-position: center; }
  :where(.pbm-sd-dashboard img[data-sd-image-position="right"]) { object-position: right center; }

  :where(.pbm-sd-dashboard .sd-game) { isolation: isolate; overflow: hidden; }
  :where(.pbm-sd-dashboard .sd-game > .sd-game-art) {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
  }
  :where(.pbm-sd-dashboard .sd-game[data-sd-art-active="true"] > .sd-game-art) { opacity: 1; }
  :where(.pbm-sd-dashboard .sd-game[data-sd-art-active="true"])::before {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(110deg, #fffffff0 8%, #ffffffd1 52%, #ffffff7a);
    pointer-events: none;
  }
  :where(.pbm-sd-dashboard .sd-game > :not(.sd-game-art)) { position: relative; z-index: 2; }
  :where(.pbm-sd-dashboard .sd-game[data-sd-art-active="true"] .sd-status) { background: #fffffff0; box-shadow: 0 0 0 1px #172b4d0a; }
  :where(.pbm-sd-dashboard .sd-game[data-sd-art-active="true"] .sd-game-team > img, .pbm-sd-dashboard .sd-game[data-sd-art-active="true"] .sd-logo) { padding: .2rem; border-radius: .5rem; background: #fffffff0; }

  :where(.pbm-sd-dashboard .sd-ticker-card--visual) { position: relative; isolation: isolate; overflow: hidden; }
  :where(.pbm-sd-dashboard .sd-ticker-card--visual > .sd-ticker-art) {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    opacity: 1;
    pointer-events: none;
  }
  :where(.pbm-sd-dashboard .sd-ticker-card--visual)::before { content: ''; position: absolute; z-index: 1; inset: 0; background: linear-gradient(110deg, #fffffff0 8%, #ffffffd1 52%, #ffffff7a); pointer-events: none; }
  :where(.pbm-sd-dashboard .sd-ticker-card--visual > :not(.sd-ticker-art)) { position: relative; z-index: 2; }
  :where(.pbm-sd-dashboard .sd-ticker-card--visual .sd-ticker-status) { justify-self: start; padding-inline: .2rem; border-radius: .25rem; background: #fffffff0; }
  :where(.pbm-sd-dashboard .sd-ticker-card--visual .sd-ticker-team img) { padding: .1rem; border-radius: .3rem; background: #fff; }
  :where(.pbm-sd-dashboard .sd-game[data-sd-art-active="true"] .sd-game-score, .pbm-sd-dashboard .sd-ticker-card--visual .sd-ticker-team strong) { border-radius: .2rem; background: #fffffff2; box-shadow: 0 0 0 .15rem #fffffff2; }

  :where(.pbm-sd-dashboard .sd-compare-scene, .pbm-sd-dashboard .sd-odds-scene) {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1rem;
    overflow: hidden;
    border: 1px solid var(--_dash-line, #e4eaf3);
    border-radius: .75rem;
    background: linear-gradient(120deg, #155eef0b, #36b37e0d);
    object-fit: cover;
    object-position: center;
  }
  :where(.pbm-sd-dashboard .sd-compare-scene) { height: clamp(6rem, 15cqi, 8rem); }
  :where(.pbm-sd-dashboard .sd-odds-scene) { height: clamp(5rem, 12cqi, 6rem); }
  :where(.pbm-sd-dashboard .sd-compare-scene > img, .pbm-sd-dashboard .sd-odds-scene > img) { display: block; width: 100%; height: 100%; object-fit: cover; }

  @media (prefers-reduced-motion: reduce) {
    :where(.pbm-sd-dashboard .sd-game > .sd-game-art) { transition: none; }
  }
}
