/* One centered header for every Barracuda section. */
.bbs .bbs-head {
  box-sizing: border-box;
  width: 100%;
  max-width: 1000px !important;
  margin-inline: auto !important;
  padding: 0 24px !important;
  min-height: 74px !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 0 24px !important;
}
.bbs .bbs-head > a,
.bbs .bbs-head > span:last-child { flex-shrink: 0; }
.bbs .bbs-head > span:last-child { margin-left: auto !important; }
.bbs .bbs-nav {
  flex: 1 1 auto !important;
  min-width: 0;
  justify-content: center;
  gap: 18px !important;
}
.bbs .bbs-sub > div {
  box-sizing: border-box;
  max-width: 1000px !important;
  margin-inline: auto !important;
  padding-inline: 24px !important;
}
@media (min-width: 901px) and (max-width: 1050px) {
  .bbs .bbs-head { column-gap: 20px !important; }
  .bbs .bbs-nav { gap: 18px !important; }
}
@media (max-width: 900px) {
  .bbs .bbs-head { flex-wrap: wrap !important; gap: 0 16px !important; }
  .bbs .bbs-nav {
    order: 3;
    flex: 1 0 100% !important;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 24px !important;
    box-sizing: border-box;
  }
  .bbs .bbs-nav a { min-height: 44px !important; }
}
@media (max-width: 680px) {
  .bbs .bbs-head, .bbs .bbs-sub > div { padding-inline: 18px !important; }
}

/* Keep seven main sections centered, including Teams. */
.bbs .bbs-nav a{font-size:14px!important}
/* Keep the resolved account spacing from the first paint; auth must not move navigation. */
.bbs .bbs-head .bbs-nav{gap:12px!important}
@media(min-width:901px) and (max-width:1199px){.bbs .bbs-head{flex-wrap:wrap!important}.bbs .bbs-nav{order:3;flex:1 0 100%!important;overflow-x:auto;justify-content:center;justify-content:safe center}.bbs .bbs-nav a{min-height:44px!important}}

/* Equal side columns center the navigation independently of logo/account width. */
@media (min-width: 1200px) {
  .bbs .bbs-head {
    max-width: 1320px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
    column-gap: 24px !important;
  }
  .bbs .bbs-head > a { justify-self: start; }
  .bbs .bbs-nav { justify-self: center; flex: none !important; }
  .bbs .bbs-head > span:last-child {
    justify-self: end;
    margin-left: 0 !important;
  }
  .bbs .bbs-sub > div { max-width: 1320px !important; }
}

/* Duels keeps the same accent on every page; the current section keeps its own underline. */
.bbs .bbs-nav a:is([href="Duels.html"], [href="/Duels.html"], [href="/page/Duels.html"]) {
  gap: 7px;
  color: #ECECEF !important;
  text-shadow: 0 0 16px rgba(229,37,42,.45), 0 1px 10px rgba(0,0,0,.6);
}
.bbs .bbs-nav a:is([href="Duels.html"], [href="/Duels.html"], [href="/page/Duels.html"]):is(:hover, :focus-visible, [aria-current="page"]) {
  color: #FFFFFF !important;
}
.bbs .bbs-nav a:is([href="Duels.html"], [href="/Duels.html"], [href="/page/Duels.html"])::before {
  content: "";
  flex: none;
  width: 15px;
  height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF4046' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='14.5 17.5 3 6 3 3 6 3 17.5 14.5'/%3E%3Cline x1='13' y1='19' x2='19' y2='13'/%3E%3Cline x1='16' y1='16' x2='20' y2='20'/%3E%3Cline x1='19' y1='21' x2='21' y2='19'/%3E%3Cpolyline points='14.5 6.5 18 3 21 3 21 6 17.5 9.5'/%3E%3Cline x1='5' y1='14' x2='9' y2='18'/%3E%3Cline x1='7' y1='17' x2='4' y2='20'/%3E%3Cline x1='3' y1='19' x2='5' y2='21'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 2px rgba(255,64,70,.45));
  animation: bbNavDuelAccent 3.2s ease-in-out infinite;
}
@keyframes bbNavDuelAccent {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(255,64,70,.4)); }
  50% { filter: drop-shadow(0 0 7px rgba(255,64,70,.95)); }
}
@media (prefers-reduced-motion: reduce) {
  .bbs .bbs-nav a:is([href="Duels.html"], [href="/Duels.html"], [href="/page/Duels.html"])::before { animation: none; }
}
