/* Theme-specific logo corrections on the four bookmaker comparison pages. */

/* Use deeper gold and green on the light licensed rows and cards. */
html:not(.dark) body[data-id="licensed"] :is(
  [data-platform-id="melbet-ru"],
  [data-platform-id="www-ligastavok-ru"]
) .licensed-table-logo img {
  filter: brightness(.72);
}

html:not(.dark) body[data-id="licensed"] [data-platform-id="zenit"] .licensed-table-logo img {
  filter: brightness(.8);
}

.dark body[data-id="licensed"] [data-platform-id="fonbet"] .licensed-table-logo img {
  filter: brightness(1.13);
}

/* Parimatch's original yellow is designed for a dark surface. */
:root:not(.dark) [data-platform-id="parimatch"] [data-logo-set="offshore-current"] {
  height: 26px;
  padding-inline: 8px;
  border-radius: 5px;
  background: #191a20;
}

/* The cover crops the SVG's transparent vertical margins. */
:root:not(.dark) [data-platform-id="parimatch"] [data-logo-set="offshore-current"] > .licensed-table-logo-image--light {
  object-fit: cover;
}

@media (max-width: 600px) {
  :root:not(.dark) [data-platform-id="parimatch"] [data-logo-set="offshore-current"] {
    max-width: 126px;
  }
}

/* Offshore wordmarks and marks with bright accents on the light cards. */
:root:not(.dark) :is(
  [data-platform-id="fastpari"],
  [data-platform-id="jack"],
  [data-platform-id="housebets"]
) [data-logo-set="offshore-current"] > .licensed-table-logo-image--light {
  filter: brightness(.55);
}

:root:not(.dark) :is(
  [data-platform-id="acebet"],
  [data-platform-id="astekbet"],
  [data-platform-id="betwinner"],
  [data-platform-id="coins-game"],
  [data-platform-id="jetton"],
  [data-platform-id="melbet"],
  [data-platform-id="minibet-games"],
  [data-platform-id="pinwin-xyz"],
  [data-platform-id="planetofbets"],
  [data-platform-id="winwinbet"],
  [data-platform-id="wtf-games"]
) [data-logo-set="offshore-current"] > .licensed-table-logo-image--light {
  filter: brightness(.61);
}

:root:not(.dark) :is(
  [data-platform-id="betandyou"],
  [data-platform-id="fortunejack"],
  [data-platform-id="gamdom"],
  [data-platform-id="roobet"],
  [data-platform-id="sapphirebet"]
) [data-logo-set="offshore-current"] > .licensed-table-logo-image--light {
  filter: brightness(.7);
}

:root:not(.dark) [data-platform-id="22bet"] [data-logo-set="offshore-current"] > .licensed-table-logo-image--light {
  filter: brightness(.9) drop-shadow(0 0 0 rgb(23 26 32 / .9));
}

.dark [data-platform-id="22bet"] [data-logo-set="offshore-current"] > .licensed-table-logo-image--dark {
  filter: brightness(1.12) drop-shadow(0 0 0 rgb(243 244 246 / .85));
}

.dark [data-platform-id="sapphirebet"] [data-logo-set="offshore-current"] > .licensed-table-logo-image--dark {
  filter: brightness(1.24) drop-shadow(0 0 0 rgb(239 192 144 / .52));
}

/* Keep the existing brand shapes and separate pale or dark accents from the surface. */
.cat-exchange-table [data-platform-id="bet-ibc-vip-ibc"] .licensed-table-logo-image--light {
  filter: brightness(.7);
}

.cat-exchange-table [data-platform-id="sharkbetx"] .licensed-table-logo-image--light {
  filter: brightness(.8);
}

.cat-exchange-table [data-platform-id="mediator-bet"] .licensed-table-logo[data-logo-effect="neutral-ink"] .licensed-table-logo-image--light {
  filter: url(#exchange-neutral-ink) brightness(.78);
}

.cat-exchange-table [data-platform-id="orbit-broker"] .licensed-table-logo[data-logo-effect="neutral-ink"] .licensed-table-logo-image--light {
  filter: url(#exchange-neutral-ink) brightness(.62);
}

.cat-exchange-table :is([data-platform-id="betinasia-black"], [data-platform-id="sharpbetx"]) .licensed-table-logo-image--dark {
  filter: brightness(1.25);
}

.cat-exchange-table [data-platform-id="sx-bet"] .licensed-table-logo[data-logo-effect="remove-white"] .licensed-table-logo-image--dark {
  filter: url(#exchange-remove-white) brightness(1.3);
}

/* Adjust the affected artwork for its backdrop without changing the logo shapes. */
html:not(.dark) .cat-prediction-table :is(
  [data-platform-id="42-alkimiya"],
  [data-platform-id="jupiter-prediction-markets"],
  [data-platform-id="kalshi"],
  [data-platform-id="predictarena"],
  [data-platform-id="xo-market"],
  [data-platform-id="yeno"]
) .licensed-table-logo-image--light {
  filter: brightness(.72);
}

html:not(.dark) .cat-prediction-table :is(
  [data-platform-id="trade-xyz-events"],
  [data-platform-id="worm"]
) .licensed-table-logo-image--light {
  filter: brightness(.64);
}

html:not(.dark) .cat-prediction-table [data-platform-id="suibets"] .licensed-table-logo-image--light {
  filter: url(#prediction-neutral-ink) brightness(.64);
}

.dark .cat-prediction-table [data-platform-id="hermes-trade"] .licensed-table-logo-image--dark {
  filter: brightness(1.32);
}
