/* Hallmark pre-emit critique: P5 H5 E5 S5 R5 V4 */

.site-header {
  --site-header-bg: rgba(12, 8, 10, 0.97);
  --site-header-line: rgba(230, 180, 94, 0.22);
  --site-header-text: rgba(242, 230, 212, 0.56);
  --site-header-text-strong: #f2e6d4;
  --site-header-active: #e6b45e;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 7000;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 58px !important;
  height: 58px !important;
  padding: 0 18px !important;
  gap: 14px !important;
  background: var(--site-header-bg) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--site-header-line) !important;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header *,
.site-header *::before,
.site-header *::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

.site-header .lby-hdr-l {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 14px;
}

.site-header .lby-hdr-r {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin-left: auto;
}

.site-header-brand {
  order: 0;
  position: relative;
  z-index: 7020;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 88px;
  width: 88px;
  height: 54px;
  color: inherit;
  text-decoration: none;
}

.site-header-logo {
  display: block !important;
  width: 88px !important;
  height: 52px !important;
  max-width: none !important;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.68)) !important;
}

.site-header-nav {
  order: 2;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 1px;
  overflow: hidden;
}

.site-header-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 8px;
  border: 0;
  border-radius: 4px;
  color: var(--site-header-text);
  font-family: "Cinzel", Georgia, serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  transition: color 140ms ease, background-color 140ms ease;
}

.site-header-link:hover,
.site-header-link:focus-visible {
  color: var(--site-header-text-strong);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.site-header-link.is-active {
  color: var(--site-header-active);
}

.site-header-link.is-active::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 2px;
  left: 8px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.site-header-menu {
  order: 1;
  position: relative;
  z-index: 7020;
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(230, 180, 94, 0.26);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--site-header-text-strong);
  cursor: pointer;
}

.site-header-menu-lines,
.site-header-menu-lines::before,
.site-header-menu-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header-menu-lines {
  position: relative;
}

.site-header-menu-lines::before,
.site-header-menu-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.site-header-menu-lines::before { top: -6px; }
.site-header-menu-lines::after { top: 6px; }

.site-header-menu[aria-expanded="true"] .site-header-menu-lines {
  background: transparent;
}

.site-header-menu[aria-expanded="true"] .site-header-menu-lines::before {
  transform: translateY(6px) rotate(45deg);
}

.site-header-menu[aria-expanded="true"] .site-header-menu-lines::after {
  transform: translateY(-6px) rotate(-45deg);
}

.site-header .nav-check,
.site-header .nav-burger,
.site-header .nav-overlay {
  display: none !important;
}

.site-header > .header-right,
.site-header > .db-account,
.site-header > .online-bar,
.site-header > .status-pill,
.site-header > .auth-btn {
  order: 3;
  flex: 0 0 auto;
  margin-left: auto;
}

.site-header .auth-btn {
  min-height: 38px;
  margin-left: 0;
  border-color: rgba(230, 180, 94, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.site-header > .auth-btn {
  margin-left: auto;
}

.site-header-backdrop {
  position: fixed;
  inset: 0;
  z-index: 6990;
  display: none;
  background: rgba(2, 1, 2, 0.72);
  opacity: 0;
  transition: opacity 180ms ease;
}

@media (max-width: 1380px) {
  .site-header {
    padding-inline: 14px !important;
  }

  .site-header-menu {
    display: inline-flex;
  }

  .site-header-nav {
    position: fixed !important;
    inset: 0 auto 0 0;
    z-index: 7010;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    width: min(340px, 86vw);
    height: 100dvh;
    padding: 82px 18px 24px;
    gap: 3px;
    overflow-y: auto;
    background: #0c080a;
    border-right: 1px solid rgba(230, 180, 94, 0.24);
    box-shadow: 18px 0 44px rgba(0, 0, 0, 0.55);
    transform: translateX(-104%);
    transition: transform 220ms ease;
  }

  .site-header-link {
    flex: 0 0 auto;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 12px;
  }

  .site-header-link.is-active::after {
    top: 9px;
    right: auto;
    bottom: 9px;
    left: 0;
    width: 2px;
    height: auto;
  }

  body.site-nav-open {
    overflow: hidden;
  }

  body.site-nav-open .site-header-nav {
    transform: translateX(0);
  }

  body.site-nav-open .site-header-backdrop {
    display: block;
    opacity: 1;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 54px !important;
    height: 54px !important;
    padding-inline: 10px !important;
    gap: 8px !important;
  }

  .site-header-brand {
    flex-basis: 76px;
    width: 76px;
    height: 50px;
  }

  .site-header-logo {
    width: 76px !important;
    height: 48px !important;
  }

  .site-header-menu {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .site-header .lby-res-bar,
  .site-header .hdr-hud,
  .site-header > .online-bar,
  .site-header .db-title,
  .site-header .play-tools,
  .site-header > .status-pill {
    display: none !important;
  }

  .site-header .lby-hdr-r {
    margin-left: auto;
  }

  .site-header .lby-profile {
    padding: 3px;
  }

  .site-header .lby-profile-info {
    display: none;
  }
}

@media (max-width: 420px) {
  .site-header-brand {
    flex-basis: 68px;
    width: 68px;
  }

  .site-header-logo {
    width: 68px !important;
  }

  .site-header .auth-profile-copy {
    display: none;
  }

  .site-header .auth-btn.logged-in {
    width: 40px;
    height: 40px;
    padding: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header-link,
  .site-header-menu-lines,
  .site-header-menu-lines::before,
  .site-header-menu-lines::after,
  .site-header-nav,
  .site-header-backdrop {
    transition: none;
  }
}
