:root {
  --store-shell-ink: #101010;
  --store-shell-accent: #ff6b1a;
  --store-shell-max: 1440px;
  --store-shell-pad: clamp(1rem, 3vw, 2.25rem);
  --store-shell-brand-column: 230px;
}

.platform-header,
header.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  color: #fff;
  background: var(--store-shell-ink);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  box-shadow: none;
}

.platform-header__inner,
.site-header__inner {
  width: 100%;
  max-width: var(--store-shell-max);
  min-height: 68px;
  margin-inline: auto;
  padding-inline: var(--store-shell-pad);
  display: grid;
  grid-template-columns: minmax(var(--store-shell-brand-column), max-content) minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  overflow: visible;
}

.platform-brand,
.brand {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: -.025em;
  line-height: 1;
  white-space: nowrap;
}

.platform-brand span,
.brand span { color: var(--store-shell-accent); }

.platform-nav,
.site-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .2rem;
}

.platform-nav a,
.site-nav a {
  position: relative;
  padding: .55rem .62rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, .68);
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.platform-nav-more { position: relative; }

.platform-nav-more__toggle {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding-inline: .72rem;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, .68);
  background: transparent;
  font: inherit;
  font-size: .76rem;
  font-weight: 750;
}

.platform-nav-more__toggle:hover,
.platform-nav-more__toggle.is-active,
.platform-nav-more.is-open .platform-nav-more__toggle {
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

.platform-nav-more__menu {
  position: absolute;
  inset-block-start: calc(100% + .6rem);
  inset-inline-end: 0;
  z-index: 120;
  display: none;
  width: min(260px, calc(100vw - 2rem));
  padding: .45rem;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  background: #171717;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .34);
  pointer-events: auto;
}

.platform-nav-more.is-open .platform-nav-more__menu { display: grid; }

.platform-nav-more__menu a {
  width: 100%;
  padding: .7rem .78rem;
  border-radius: 8px;
  text-align: start;
}

.platform-nav-more__menu a[aria-current="page"] {
  color: #fff;
  background: var(--store-shell-accent);
}

.platform-nav a::after,
.site-nav a::after { display: none; }

.platform-nav a:hover,
.platform-nav a[aria-current="page"],
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

.platform-actions,
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .7rem;
}

.platform-buy,
.header-buy {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 1rem;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--store-shell-accent);
  box-shadow: none;
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

.wins-ribbon,
.wins-bar {
  min-height: 34px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  color: rgba(255, 255, 255, .76);
  background: #202020;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.wins-ribbon__label,
.wins-bar__label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding-inline: 1rem;
  color: var(--store-shell-accent);
  background: #111;
  border-right: 1px solid rgba(255, 255, 255, .12);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

@media (max-width: 1240px) {
  .platform-header__inner,
  .site-header__inner { grid-template-columns: minmax(0, 1fr) auto; }

  .platform-nav,
  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: .7rem;
    scrollbar-width: none;
  }

  .platform-nav::-webkit-scrollbar,
  .site-nav::-webkit-scrollbar { display: none; }
}

@media (max-width: 560px) {
  .platform-header__inner,
  .site-header__inner { min-height: 60px; gap: .7rem; }

  .platform-brand,
  .brand { max-width: 190px; white-space: normal; }

  .platform-buy,
  .header-buy { display: none; }

  .wins-ribbon__label,
  .wins-bar__label { padding-inline: .75rem; }
}

.platform-nav-toggle {
  display: none;
  min-height: 38px;
  align-items: center;
  gap: .5rem;
  padding-inline: .8rem;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.08);
  font-size: .78rem;
  font-weight: 800;
}
.platform-nav-toggle__icon { width: 15px; display: grid; gap: 3px; }
.platform-nav-toggle__icon::before,
.platform-nav-toggle__icon::after,
.platform-nav-toggle__icon span {
  content: "";
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

@media (max-width: 680px) {
  .platform-header__inner,
  .site-header__inner {
    min-height: 60px;
    grid-template-columns: minmax(0,1fr) auto;
    gap: .65rem;
    padding-block: .55rem;
  }
  .platform-brand,
  .brand {
    max-width: 170px;
    overflow: hidden;
    font-size: .92rem;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .platform-actions,
  .header-actions { justify-self: end; gap: .45rem; }
  .platform-nav-toggle { display: inline-flex; }
  .platform-nav,
  .site-nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: .35rem;
    width: 100%;
    overflow: visible;
    padding: 0 0 .2rem;
  }
  .platform-nav-more { display: contents; }
  .platform-nav-more__toggle { display: none; }
  .platform-nav-more__menu,
  .platform-nav-more.is-open .platform-nav-more__menu {
    position: static;
    display: contents;
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .platform-header.is-navigation-open .platform-nav,
  .site-header.is-navigation-open .site-nav { display: grid; }
  .platform-nav a,
  .site-nav a {
    min-width: 0;
    padding: .65rem .7rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 5px;
    background: rgba(255,255,255,.045);
    font-size: .75rem;
    text-align: left;
  }
  .platform-nav a[aria-current="page"],
  .site-nav a[aria-current="page"] {
    border-color: var(--store-shell-accent);
    color: #fff;
    background: rgba(255, 107, 26, .24);
  }
  .platform-buy,
  .header-buy { display: none; }
  .wins-ribbon__label,
  .wins-bar__label { display: none; }
}
