/**
 * 平台 Logo 毛边修复
 * 白底圆角 PNG 在深色卡片上易出现锯齿，统一裁切与阴影
 */

.gate-brand {
  width: 80px !important;
  height: 80px !important;
  padding: 0 !important;
  margin: 0;
  border-radius: 14px !important;
  background: #ffffff !important;
  border: none !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22) !important;
  overflow: hidden !important;
  isolation: isolate;
  contain: layout paint;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.gate-brand img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: center center;
  border-radius: inherit;
  vertical-align: top;
  image-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transform: translateZ(0) scale(1.02);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* 深色 Logo 容器（MK 等） */
.gate-brand--dark {
  background: #eef1f5 !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28) !important;
}

/* 浅色主题：Logo 白底与卡片融合 */
[data-theme="white-clean"] .gate-brand,
[data-theme="bet365-classic"] .gate-brand {
  background: #ffffff !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
  outline: 1px solid rgba(0, 0, 0, 0.06);
  outline-offset: -1px;
}

/* 深色主题：柔化白底 Logo 外缘，减轻毛边感 */
[data-theme="black-elite"] .gate-brand,
[data-theme="pitch-green"] .gate-brand,
[data-theme="william-premium"] .gate-brand,
[data-theme="night-gold"] .gate-brand,
[data-theme="worldcup"] .gate-brand,
[data-theme="fire-match"] .gate-brand,
[data-theme="sky-royal"] .gate-brand {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="black-elite"] .gate-brand img {
  transform: translateZ(0) scale(1.03);
}
