/* BAJARBET animated logo (WebM) — fits header, clears nav on desktop */
html body .header__logo-wrap,
html body a.header__logo,
html body .header__logo,
html body a.profile-popup__logo,
html body a.entrance-popup-content__logo {
  display: inline-flex !important;
  align-items: center !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  overflow: hidden !important;
  line-height: 0 !important;
}

/* Desktop: taller top bar + sized logo so nav never collides */
@media (min-width: 992px) {
  html body .header__top {
    height: 96px !important;
    min-height: 96px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  html body a.header__logo,
  html body .header__logo {
    height: auto !important;
    max-height: 68px !important;
    max-width: 260px !important;
    padding: 0.15rem 0 !important;
    overflow: hidden !important;
  }
}

html body a.header__logo:focus,
html body a.header__logo:focus-visible,
html body a.profile-popup__logo:focus,
html body a.profile-popup__logo:focus-visible,
html body a.entrance-popup-content__logo:focus,
html body a.entrance-popup-content__logo:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

html body video.taccasino-header-logo,
html body video.hdr-logo-bc,
html body a.header__logo video,
html body .header__logo video,
html body a.profile-popup__logo video,
html body a.entrance-popup-content__logo video {
  display: block !important;
  content: none !important;
  flex: 0 0 auto !important;
  height: auto !important;
  max-height: 60px !important;
  width: auto !important;
  max-width: 250px !important;
  min-height: 0 !important;
  object-fit: contain !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  filter: contrast(1.06) saturate(1.08) !important;
  -webkit-filter: contrast(1.06) saturate(1.08) !important;
  pointer-events: none;
  vertical-align: top !important;
  transform: none !important;
  transform-origin: left center;
  image-rendering: -webkit-optimize-contrast;
}

@media (max-width: 900px) {
  html body video.taccasino-header-logo,
  html body video.hdr-logo-bc,
  html body a.header__logo video,
  html body .header__logo video,
  html body a.profile-popup__logo video,
  html body a.entrance-popup-content__logo video {
    max-height: 58px !important;
    max-width: 250px !important;
    min-height: 44px !important;
    transform: scale(1.1) !important;
    transform-origin: left center;
  }

  html body .header__logo-wrap,
  html body a.header__logo {
    overflow: visible !important;
  }
}

/* Disable old SVG content:url swap on video logos */
html body video.taccasino-header-logo,
html body video.hdr-logo-bc {
  content: normal !important;
}

/* Hide static brand img only after animated video is present */
html body a.header__logo:has(video) > img,
html body a.profile-popup__logo:has(video) > img,
html body a.entrance-popup-content__logo:has(video) > img,
html body .header__logo-wrap:has(video) img,
.bb-lang__short { display: none; }

@media (max-width: 991px) {
  html body .header__top .header__lang-select,
  html body .header__top .footer__lang-select {
    display: block !important;
    flex: 0 0 auto !important;
    position: relative !important;
    margin: 0 !important;
    z-index: 30;
  }
  html body .header__top .lang-select__btn {
    height: 30px !important;
    min-height: 0 !important;
    padding: 0 8px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(212, 188, 130, 0.7) !important;
    background: transparent !important;
    color: #f0ebe3 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 30px !important;
  }
  html body .header__top .bb-lang__full { display: none !important; }
  html body .header__top .bb-lang__short { display: inline !important; }
  html body .header__top .lang-select__popup {
    z-index: 40;
  }
}

html body .header-nav__list > li:has(a[href*="esports"]),
html body .m-nav__list > li:has(a[href*="esports"]),
html body a.m-nav-link[href*="esports"] {
  display: none !important;
}

html body img.hdr-logo-bc[data-tc-logo-swapped="1"],
html body img.taccasino-header-logo[data-tc-logo-swapped="1"] {
  display: none !important;
}

@media (max-width: 991px) {
  html body .header__top {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    height: 56px !important;
    min-height: 56px !important;
    max-height: none !important;
    padding: 0 10px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }
  html body .tc-hdr-menu-btn {
    flex: 0 0 36px !important;
    width: 36px !important;
    height: 36px !important;
    margin: 0 !important;
  }
  html body .header__logo-wrap {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
  html body a.header__logo,
  html body .header__logo {
    display: flex !important;
    align-items: center !important;
    max-width: 100% !important;
    max-height: 28px !important;
    height: auto !important;
    overflow: hidden !important;
    padding: 0 !important;
  }
  html body img.taccasino-header-logo,
  html body img.hdr-logo-bc {
    display: block !important;
    height: 20px !important;
    max-height: 20px !important;
    width: auto !important;
    max-width: 112px !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: left center !important;
    transform: none !important;
  }
  html body .hdr-user-bc {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 0 0 auto !important;
    position: static !important;
  }
  html body .hdr-user-bc::after,
  html body .hdr-user-bc .btn::after {
    display: none !important;
    content: none !important;
  }
  html body .hdr-user-bc .btn.s-small.sign-in,
  html body .hdr-user-bc .btn.s-small.register {
    animation: none !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 8px !important;
    font-size: 10px !important;
    line-height: 1 !important;
    height: 30px !important;
    min-height: 0 !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
    box-shadow: none !important;
  }
}
