/* Permanent comment: Standalone Top Header CSS for Game Landing pages. Independent from sidebar header. */
:root {
  --header-height: 76px;
  --max-content: 1240px;
  --accent-color: #78d900;
  --accent-hover: #a0f12d;
  --line-border: rgba(255, 255, 255, 0.1);
}

.game-top-header {
  height: var(--header-height);
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  padding: 0 max(24px, calc((100vw - var(--max-content)) / 2));
  gap: 48px;
  background: linear-gradient(180deg, rgba(5, 7, 9, 0.58), rgba(5, 7, 9, 0.28));
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.5), inset 0 -1px 0 rgba(255, 255, 255, 0.035);
  transition: background 0.3s ease;
}

.game-top-header .brand.brand-image {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.game-top-header .brand.brand-image img {
  display: block;
  width: 150px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
  margin-left: -8px;
}

.game-top-header nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
}

.game-top-header nav a {
  font-size: 13px;
  font-weight: 600;
  color: #cbd0d5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.game-top-header nav a:hover {
  color: var(--accent-color);
}

.game-top-header .cart-button {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-border);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 9px;
  padding: 9px 13px;
  cursor: pointer;
  color: #f6f8f9;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.game-top-header .cart-button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.game-top-header .cart-button .cart-count {
  display: inline-grid;
  place-items: center;
  background: var(--accent-color);
  color: #0c1108;
  font-weight: 800;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-size: 11px;
  line-height: 1;
  margin-left: 6px;
}

.game-top-header .cart-button .cart-count[hidden] {
  display: none !important;
}

@media (min-width: 1600px) {
  .game-top-header {
    padding-left: 22px;
    padding-right: 5vw;
    gap: 56px;
  }
  .game-top-header nav {
    gap: 36px;
  }
  .game-top-header nav a {
    font-size: 15px;
  }
  .game-top-header .cart-button {
    font-size: 15px;
    padding: 11px 16px;
  }
  .game-top-header .brand.brand-image img {
    width: 185px;
    height: 56px;
  }
}

@media (max-width: 850px) {
  .game-top-header {
    height: 64px;
    padding: 0 18px;
    gap: 20px;
  }
  .game-top-header nav {
    display: none;
  }
  .game-top-header .cart-button {
    margin-left: auto;
  }
}

@media (max-width: 520px) {
  .game-top-header .brand.brand-image img {
    width: 118px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .game-top-header .cart-button {
    font-size: 13px !important;
    padding: 8px 12px !important;
  }
  .game-top-header .cart-button::before {
    display: none !important;
    content: none !important;
  }
}
