/* Fixed header — MrBit reference layout */
body {
  padding-top: 56px;
}

.game-group__title,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
  text-transform: none;
}

.header--fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  min-height: 56px;
  background: #071432;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#main-content {
  padding-top: 80px;
}

 @media (max-width: 991px) {
  #main-content {
  padding-top: 60px;
}
}
@media (max-width: 600px) {
  #main-content {
  padding-top: 40px;
}
}

.header--fixed .header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1280px;
  min-height: 56px;
  margin: 0 auto;
  padding: 0 16px;
}

.header__left-side {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
}

.header__burger-line {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.header__burger[aria-expanded="true"] .header__burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__burger[aria-expanded="true"] .header__burger-line:nth-child(2) {
  opacity: 0;
}

.header__burger[aria-expanded="true"] .header__burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header-navigation-wrap {
  position: relative;
}

.header-navigation {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* :link / :visited outrank the global anchor colour set in bundle.css */
.header-navigation__link,
.header-navigation__link:link,
.header-navigation__link:visited {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.header-navigation__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.header-navigation__link.active,
.header-navigation__link.active:link,
.header-navigation__link.active:visited {
  color: #fff;
}

.header-navigation__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: #00badc;
  border-radius: 1px;
  width: 0%;
  transition: all 0.3s;
}

.header-navigation__link.active::after {
  width: calc(100% - 24px);
}

.header-navigation__live-icon-wrapper img,
.header-navigation__wheel {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.header__logo {
  display: flex;
  justify-content: center;
  text-decoration: none;
  height: 82px;
  padding: 10px 0;
}

.header__logo img {
  display: block;
  height: 100%;
  width: 100%;
  width: auto;
}

.header__right-side {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.header-guest-panel {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-guest-panel .btn_bordered-blue {
  min-width: 88px;
  padding: 8px 16px;
  font-size: 13px;
}

.header-guest-panel .btn:not(.btn_bordered-blue) {
  min-width: 88px;
  padding: 8px 16px;
  font-size: 13px;
}

.language-switcher {
  padding: 6px 8px;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 600;
  /* text-transform: uppercase; */
  cursor: pointer;
}

.language-panel {
  display: none;
}

/* Dropdown panel (compact / toggled) */
@media (max-width: 1023px) {
  .header-navigation-wrap {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      visibility 0.25s;
    pointer-events: none;
  }

  .header__burger {
    display: flex;
  }

  .header-navigation-wrap.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .header-navigation {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    border-radius: 8px;
    background: #0a1628;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  }

  .header-navigation__link {
    padding: 10px 12px;
  }

  .header-navigation__link.active::after {
    left: 0;
    right: auto;
    bottom: 0;
    top: 0;
    width: 3px;
    height: auto;
    border-radius: 0 2px 2px 0;
  }
}

@media (min-width: 1024px) {
  .header-navigation-wrap {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
  }
}
