/* TacCasino 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,
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;
}
