:root {
  --nav-ink: #10071e;
  --nav-panel: rgba(18, 7, 38, 0.86);
  --nav-panel-strong: rgba(10, 3, 25, 0.94);
  --nav-gold: #ffe27a;
  --nav-hot-gold: #ffc13d;
  --nav-magenta: #f04bd0;
  --nav-violet: #7b48f0;
  --nav-green: #25d873;
  --nav-teal: #6dffe5;
  --nav-cream: #fff9df;
  --nav-line: rgba(255, 226, 122, 0.66);
  --nav-font: "DotGothic16", "MS Gothic", "MS PGothic", "Chicago", "ChicagoClassic", Tahoma, Verdana, Arial, sans-serif;
}

.site-header,
.site-header *,
.site-header *::before,
.site-header *::after {
  box-sizing: border-box;
  font-family: var(--nav-font) !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 270px 1fr auto;
  gap: 24px;
  align-items: center;
  width: min(1500px, calc(100vw - 36px));
  margin: 18px auto clamp(18px, 2.4vw, 30px);
  padding: 12px 18px;
  border: 1px solid rgba(255, 226, 122, .46);
  background: linear-gradient(90deg, rgba(8, 2, 24, .92), rgba(23, 8, 50, .82));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 50px rgba(0, 0, 0, .4), 0 0 22px rgba(255, 226, 122, .10);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  width: clamp(250px, 20vw, 390px);
  max-width: 100%;
  max-height: 126px;
  object-fit: contain;
  display: block;
  image-rendering: auto;
  filter: drop-shadow(0 0 18px rgba(255, 226, 122, .42));
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 28px);
  text-transform: uppercase;
  letter-spacing: .085em;
  font-weight: 950;
  font-size: 15px;
}

.main-nav a {
  position: relative;
  padding: 12px 0;
  color: var(--nav-cream);
  text-decoration: none;
  text-shadow: 0 2px 0 #12051f, 0 0 10px rgba(255, 249, 223, .20);
  font-style: normal !important;
}

.main-nav a.active,
.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--nav-gold);
}

.main-nav a.active::after,
.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 3px;
  background: linear-gradient(90deg, var(--nav-gold), var(--nav-magenta));
  box-shadow: 0 0 18px rgba(255, 226, 122, .78);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.header-actions a,
.nav-toggle {
  border: 1px solid rgba(240, 75, 208, .55);
  background: rgba(26, 5, 46, .72);
  color: var(--nav-cream);
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 0 18px rgba(240,75,208,.24);
}

.header-actions a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  text-decoration: none;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .04em;
  line-height: 1;
  text-shadow: 0 2px 0 #12051f, 0 0 8px rgba(255, 249, 223, .18);
  transition: transform .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.header-actions a:hover,
.header-actions a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 226, 122, .82);
  color: var(--nav-gold);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10), 0 0 22px rgba(255,226,122,.30), 0 0 28px rgba(240,75,208,.24);
  outline: none;
}

.header-actions .social-btn--app {
  width: 54px;
}

.nav-toggle {
  display: none;
  font-size: 22px;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 220px auto auto;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(255,226,122,.44);
    background: rgba(9,2,22,.97);
    box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 0 20px rgba(255,226,122,.12);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }
}

@media (max-width: 760px) {
  .site-header {
    width: min(100% - 18px, 1500px);
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
  }

  .brand img {
    width: 190px;
  }

  .header-actions {
    display: flex;
    gap: 6px;
  }

  .header-actions a {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    font-size: 10px;
  }

  .header-actions .social-btn--app {
    width: 44px;
  }
}