.legacy-site-header {
  position: relative;
  z-index: 200;
  padding: 8px 0;
}

.legacy-site-header .container {
  max-width: none;
}

.legacy-site-header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(260px, 360px) minmax(0, 1fr) 64px;
  align-items: center;
  gap: 18px;
  padding-right: 28px;
  padding-left: 28px;
}

.legacy-game-search {
  grid-column: 3;
  grid-row: 1;
  justify-self: center;
  display: flex;
  align-items: center;
  width: 100%;
  height: 48px;
  overflow: hidden;
  background: rgba(8, 8, 12, 0.82);
  border: 1px solid rgba(255, 62, 40, 0.48);
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(255, 0, 0, 0.18);
}

.legacy-game-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 15px;
  color: #ffffff;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 16px;
  font-weight: 700;
}

.legacy-game-search input::placeholder {
  color: rgba(255, 225, 210, 0.72);
}

.legacy-game-search button {
  width: 54px;
  height: 100%;
  color: #ffffff;
  background: linear-gradient(180deg, #ff3b22, #9c0000);
  border: 0;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
}

.legacy-site-logo {
  grid-column: 1;
  grid-row: 1;
  display: inline-flex;
  justify-self: start;
  align-items: center;
}

.legacy-site-logo img {
  width: 260px;
  max-width: 26vw;
  height: auto;
  display: block;
}

.legacy-site-header .menu-container {
  grid-column: 5;
  grid-row: 1;
  position: static;
  justify-self: end;
}

@media (max-width: 768px) {
  .legacy-site-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .legacy-game-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .legacy-site-logo {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .legacy-site-logo img {
    width: 190px;
    max-width: 62vw;
  }

  .legacy-site-header .menu-container {
    grid-column: 2;
    grid-row: 1;
  }
}
