.qsg-header-shell {
  position: fixed;
  inset: 0 0 auto;
  height: 72px;
  z-index: 2147482000;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, .92), rgba(0, 0, 0, .58) 72%, rgba(0, 0, 0, 0));
  transition: background .28s ease, box-shadow .28s ease, transform .28s ease;
}

.qsg-header-shell.is-scrolled,
.qsg-header-shell.is-open {
  background: rgba(8, 8, 9, .96);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .42);
}

.qsg-header-shell.is-hidden {
  transform: translateY(-100%);
}

.qsg-header-bar {
  width: min(100%, 1640px);
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(18px, 3vw, 48px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.qsg-logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.qsg-logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.qsg-desktop-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
}

.qsg-desktop-nav a,
.qsg-games-toggle {
  position: relative;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .88);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  padding: 10px 0;
}

.qsg-desktop-nav a::after,
.qsg-games-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 3px;
  background: #f3b321;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}

.qsg-desktop-nav a:hover,
.qsg-games-toggle:hover {
  color: #fff;
}

.qsg-desktop-nav a:hover::after,
.qsg-games-toggle:hover::after,
.qsg-games-toggle[aria-expanded="true"]::after {
  transform: scaleX(1);
}

.qsg-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.qsg-cta {
  min-height: 36px;
  border-radius: 999px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3b321;
  color: #0a0a0a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: .04em;
}

.qsg-icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  cursor: pointer;
}

.qsg-icon-btn:hover {
  border-color: rgba(243, 179, 33, .65);
  background: rgba(243, 179, 33, .13);
}

.qsg-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qsg-drawer {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 2147481999;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  background: rgba(8, 8, 9, .98);
  border-top: 1px solid rgba(255, 255, 255, .1);
  transition: max-height .32s ease, opacity .2s ease;
}

.qsg-drawer.is-open {
  max-height: calc(100vh - 72px);
  opacity: 1;
  pointer-events: auto;
}

.qsg-drawer-inner {
  width: min(100%, 1640px);
  margin: 0 auto;
  padding: 28px clamp(18px, 3vw, 48px) 34px;
}

.qsg-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.qsg-drawer-title {
  font-size: 18px;
  font-weight: 900;
}

.qsg-view-all {
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.qsg-game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.qsg-game-card {
  min-height: 260px;
  border-radius: 8px;
  overflow: hidden;
  background: #151515;
  border: 1px solid rgba(255, 255, 255, .12);
  text-decoration: none;
  color: #fff;
  position: relative;
}

.qsg-game-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform .42s ease, opacity .22s ease;
}

.qsg-game-card span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-shadow: 0 2px 12px #000;
}

.qsg-game-card:hover img {
  transform: scale(1.04);
  opacity: .9;
}

.qsg-search-panel .qsg-drawer-inner {
  padding-top: 18px;
  padding-bottom: 18px;
}

.qsg-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

.qsg-search-field {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
}

.qsg-search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font-size: 16px;
}

.qsg-search-field input::placeholder {
  color: rgba(255, 255, 255, .52);
}

.qsg-search-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.qsg-search-links a {
  border-radius: 999px;
  padding: 10px 13px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.qsg-mobile-menu {
  display: none;
}

.qsg-old-header-hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .qsg-header-shell {
    height: 58px;
  }

  .qsg-header-bar {
    grid-template-columns: 44px 1fr 44px;
    padding: 0 14px;
    gap: 8px;
  }

  .qsg-desktop-nav,
  .qsg-cta,
  .qsg-actions .qsg-search-open {
    display: none;
  }

  .qsg-logo {
    justify-self: center;
    grid-column: 2;
    grid-row: 1;
  }

  .qsg-logo img {
    width: 34px;
    height: 34px;
  }

  .qsg-actions {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    justify-content: space-between;
    pointer-events: none;
  }

  .qsg-actions > * {
    pointer-events: auto;
  }

  .qsg-mobile-menu {
    display: grid;
  }

  .qsg-drawer {
    top: 58px;
  }

  .qsg-games-panel .qsg-drawer-inner,
  .qsg-search-panel .qsg-drawer-inner {
    height: calc(100vh - 58px);
    overflow: auto;
    padding: 18px 18px 28px;
  }

  .qsg-game-grid {
    grid-template-columns: 1fr;
  }

  .qsg-game-card,
  .qsg-game-card img {
    min-height: 170px;
  }

  .qsg-search-row {
    grid-template-columns: 1fr;
  }

  .qsg-search-links {
    justify-content: flex-start;
  }
}
