/* Shared GamePort storefront header, drawer and footer. */
.gp-site-shell {
  --gp-line: #3d3b3b;
  --gp-muted: #a9a6a6;
  /* the loop gradient, always left to right */
  --gp-gradient: linear-gradient(90deg, #20C8DF 0%, #DF6A20 100%);
  /* approved option: the gradient darkened with ink, for words on colour */
  --gp-mix: linear-gradient(rgba(34, 33, 33, .72), rgba(34, 33, 33, .72)), var(--gp-gradient);
  --gp-scrim: rgba(34, 33, 33, .64);
  --gp-shadow: 0 16px 32px rgba(34, 33, 33, .48);

  --gp-font-head: "Outfit", "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gp-font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* spacing: steps of 8 */
  --s-4: 4px; --s-8: 8px; --s-16: 16px; --s-24: 24px; --s-32: 32px; --s-48: 48px; --s-64: 64px;

  --gp-radius: 6px;        /* buttons, tiles */
  --gp-radius-panel: 16px; /* panels */
  --gp-round: 999px;       /* search pill, chips, pill button */
  --gp-target: 44px;       /* touch target */
  --gp-chip: 44px;         /* round chip; 48px from tablet up, as in the reference */
  --gp-gutter: 16px;
  --gp-max: 1200px;
  color: var(--gp-white);
  font: 400 16px/1.5 var(--gp-font-body);
  a { color: inherit; }
  ul { list-style: none; margin: 0; padding: 0; }
  h2, h3, p { margin: 0; }
  img, svg { display: block; }
  button, select { font: inherit; color: inherit; }

  :where(a, button, input, select, [tabindex]):focus-visible {
    outline: 2px solid var(--gp-cyan);
    outline-offset: 2px;
  }

  .gp-wrap { width: 100%; max-width: calc(var(--gp-max) + 2 * var(--gp-gutter)); margin-inline: auto; padding-inline: var(--gp-gutter); }
  .gp-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

  .gp-ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
  .gp-ic--sm { width: 16px; height: 16px; stroke-width: 2; }
  .gp-chev { transition: transform .15s ease; }
  [aria-expanded="true"] > .gp-chev { transform: rotate(180deg); }

  /* Owner placeholders stay visible until the owner supplies the value. */
  .gp-ph { display: inline-block; font-variant-numeric: tabular-nums; border: 1px dashed currentColor; border-radius: 4px; padding: 0 4px; overflow-wrap: anywhere; }

  /* Words on a plain colour get the game pattern behind them, at low strength. */
  &.gp-pattern, .gp-pattern { position: relative; isolation: isolate; }
  &.gp-pattern::before, .gp-pattern::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: url("../brand/game_pattern_white.png") 0 0 / 300px 150px repeat;
    opacity: .06; border-radius: inherit;
  }

  /* ---------- buttons, chips, tags ---------- */
  .gp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s-8);
    min-height: var(--gp-target); padding: var(--s-8) var(--s-16);
    border-radius: var(--gp-radius); border: 1px solid transparent; background: transparent;
    font-weight: 600; text-decoration: none; text-align: center;
  }
  .gp-btn--main { background: var(--gp-orange); color: var(--gp-ink); }      /* ink on orange 4.76:1 */
  .gp-btn--main:hover { background: var(--gp-white); }
  .gp-btn--line { border-color: var(--gp-muted); color: var(--gp-white); }
  .gp-btn--line:hover { border-color: var(--gp-cyan); color: var(--gp-cyan); }

  /* round chip: the dark circles in the header */
  .gp-chip {
    position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: var(--gp-chip); height: var(--gp-chip); margin: 0; padding: 0;
    border: 0; border-radius: var(--gp-round); background: var(--gp-panel); color: var(--gp-white);
    text-decoration: none; cursor: pointer;
  }
  a.gp-chip:hover, button.gp-chip:hover, a:hover > .gp-chip, [aria-expanded="true"] > .gp-chip, .gp-chip[aria-expanded="true"] { background: var(--gp-line); color: var(--gp-cyan); }
  .gp-chip--text { width: auto; padding: 0 var(--s-16); font-size: 14px; font-weight: 700; white-space: nowrap; cursor: default; }

  .gp-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: var(--gp-round); font-size: 14px; font-weight: 700; line-height: 1; text-transform: uppercase; }
  .gp-tag--new { background: var(--gp-cyan); color: var(--gp-ink); }      /* ink on cyan 7.95:1 */
  .gp-tag--hot { background: var(--gp-orange); color: var(--gp-ink); }    /* ink on orange 4.76:1 */

  /* ======================================================================
     HEADER
     Sticky. Nothing changes size when it sticks, so nothing shifts.
     ====================================================================== */
  &.gp-sentinel { height: 1px; margin-bottom: -1px; }
  &.gp-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 100; background: var(--gp-ink); }
  &.gp-header.is-stuck { box-shadow: 0 1px 0 var(--gp-line), 0 8px 16px rgba(34, 33, 33, .4); }

  /* ---------- main bar ----------
     The markup is in desktop order (logo, search, chips). On phones search drops to a second row;
     reading-flow makes the tab order follow what is seen (Chrome and Android; elsewhere the order stays logical). */
  .gp-bar__row { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--s-8); padding-block: var(--s-8) 10px; reading-flow: flex-visual; }
  .gp-menubtn { background: none; margin-left: -10px; }
  .gp-logo { display: inline-flex; align-items: center; min-height: var(--gp-target); padding: 0 var(--s-8) 0 0; margin-right: auto; border-radius: var(--gp-radius); }
  .gp-logo img { width: 140px; height: auto; }            /* never under 140px */

  /* search pill: second row on phone and tablet */
  .gp-search { color-scheme: light; gap: 0; position: relative; order: 10; flex: 1 0 100%; display: flex; margin-top: var(--s-8); border-radius: var(--gp-round); background: var(--gp-white); }
  .gp-search:focus-within { outline: 2px solid var(--gp-cyan); outline-offset: 2px; }
  .gp-search input.gp-search__input {
    flex: 1; width: 0; min-width: 0; height: var(--gp-target); padding: 0 var(--s-16) 0 20px;
    border: 0; border-radius: var(--gp-round) 0 0 var(--gp-round); background: transparent;
    color: var(--gp-ink); font: inherit; -webkit-appearance: none; appearance: none;
  }
  .gp-search input.gp-search__input::placeholder { color: var(--gp-line); opacity: 1; }
  .gp-search__input:focus { outline: none; }
  .gp-search__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
  .gp-search__cat { display: none; }
  .gp-search .gp-search__go {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 52px; height: var(--gp-target);
    border: 0; border-radius: 0 var(--gp-round) var(--gp-round) 0; background: var(--gp-orange); color: var(--gp-ink); cursor: pointer;
  }
  .gp-search .gp-search__go:hover { background: var(--gp-cyan); }
  .gp-search__go:focus-visible { outline-color: var(--gp-ink); outline-offset: -4px; border-radius: 0 var(--gp-round) var(--gp-round) 0; }

  /* Keep suggestions visible on short and phone viewports. */
  .gp-suggest {
    position: absolute; left: 0; right: 0; top: calc(100% + var(--s-8)); z-index: 5;
    max-height: min(62dvh, 520px); overflow: auto; overscroll-behavior: contain;
    padding: var(--s-8); border: 1px solid var(--gp-line); border-radius: var(--gp-radius-panel);
    background: var(--gp-panel); color: var(--gp-white); color-scheme: dark; box-shadow: var(--gp-shadow);
  }
  .gp-suggest__group { padding: var(--s-8) var(--s-8) var(--s-4); color: var(--gp-muted); font-size: 14px; font-weight: 600; }
  .gp-suggest__opt {
    display: flex; align-items: center; gap: var(--s-8); min-height: var(--gp-target); padding: var(--s-8);
    border-radius: var(--gp-radius); cursor: pointer; overflow-wrap: anywhere;
  }
  .gp-suggest__opt small { margin-left: auto; padding-left: var(--s-8); color: var(--gp-muted); font-size: 14px; overflow-wrap: anywhere; text-align: end; }
  .gp-suggest__opt:hover { background: var(--gp-line); }
  .gp-suggest__opt[aria-selected="true"] { background: var(--gp-cyan); color: var(--gp-ink); }
  .gp-suggest__opt[aria-selected="true"] small { color: var(--gp-ink); }
  .gp-suggest__opt--all { font-weight: 600; }
  .gp-suggest__none { display: grid; gap: var(--s-8); padding: var(--s-16); }

  /* chips on the right */
  .gp-tools { display: flex; align-items: center; gap: var(--s-4); flex: none; }
  .gp-kes { display: none; }
  .gp-acct, .gp-cart { position: relative; flex: none; padding: 0; }
  .gp-acct__btn { display: inline-flex; align-items: center; gap: var(--s-8); border-radius: var(--gp-round); color: var(--gp-white); font-size: 14px; font-weight: 700; line-height: 1.3; text-decoration: none; cursor: pointer; }
  .gp-acct__avatar { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
  .gp-acct__btn:hover { color: var(--gp-cyan); }
  .gp-acct__guest { display: flex; }
  .gp-acct__guest a {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-width: 44px; min-height: 44px; padding-inline: 10px;
    font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: none;
  }
  .gp-acct__guest .gp-ic { width: 19px; height: 19px; }
  .gp-acct__guest .gp-acct__signin { border-radius: var(--gp-round); background: #40812a; color: var(--gp-white); }
  .gp-acct__guest .gp-acct__signin:has(+ a) { border-start-end-radius: 0; border-end-end-radius: 0; }
  .gp-acct__guest .gp-acct__signin:hover { background: #367023; }
  .gp-acct__guest .gp-acct__register { border-start-end-radius: var(--gp-round); border-end-end-radius: var(--gp-round); background: #f2a654; color: var(--gp-ink); }
  .gp-acct__guest .gp-acct__register:hover { background: #f5b773; }
  .gp-acct__guest a:focus-visible { position: relative; z-index: 1; outline-offset: -3px; }
  .gp-acct__guest .gp-acct__signin:focus-visible { outline-color: var(--gp-white); }

  .gp-acct__guest .gp-acct__register:focus-visible { outline-color: var(--gp-ink); }
  @media (max-width: 767px) {
    .gp-acct__signin span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  }
  .gp-acct__name, .gp-acct__btn .gp-chev { display: none; }
  .gp-acct__name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .gp-cart__basket { width: 25px; height: auto; flex: none; }
  .gp-cart__label { display: none; }
  .gp-cart__btn .gp-cart__count { background: #e98f2e; }
  /* cart count: on the rim of the chip, clear of the icon */
  .gp-cart__count {
    position: absolute; top: -4px; right: -6px;
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; border: 2px solid var(--gp-ink);
    background: var(--gp-orange); color: var(--gp-ink); font-size: 14px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
  }

  /* pop-up panels: account menu and cart */
  .gp-pop {
    position: absolute; right: 0; top: calc(100% + var(--s-8)); z-index: 5;
    width: min(360px, calc(100vw - 2 * var(--gp-gutter)));
    max-height: calc(100dvh - 126px); overflow: auto; overscroll-behavior: contain;
    padding: var(--s-16); border: 1px solid var(--gp-line); border-radius: var(--gp-radius-panel);
    background: var(--gp-panel); box-shadow: var(--gp-shadow);
  }
  .gp-pop--acct { width: min(280px, calc(100vw - 2 * var(--gp-gutter))); }
  .gp-pop__title { font: 600 20px/1.2 var(--gp-font-head); margin-bottom: var(--s-16); }
  .gp-pop__text { margin-bottom: var(--s-16); color: var(--gp-muted); }
  .gp-pop__who { padding-bottom: var(--s-8); margin-bottom: var(--s-8); border-bottom: 1px solid var(--gp-line); color: var(--gp-muted); font-size: 14px; overflow-wrap: anywhere; }
  .gp-pop__who strong { display: block; color: var(--gp-white); font-size: 16px; font-weight: 600; }
  .gp-pop__links a { display: flex; align-items: center; min-height: var(--gp-target); padding: 0 var(--s-8); border-radius: var(--gp-radius); text-decoration: none; }
  .gp-pop__links a:hover { background: var(--gp-line); color: var(--gp-cyan); }

  .gp-mini { display: grid; }
  .gp-mini__row { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: start; gap: 12px; padding-block: var(--s-8); border-bottom: 1px solid var(--gp-line); }
  .gp-mini__thumb { display: block; width: 48px; aspect-ratio: 6 / 7; border-radius: var(--gp-radius); overflow: hidden; background: var(--gp-light); }
  .gp-mini__thumb img { width: 100%; height: 100%; object-fit: contain; }
  .gp-mini__details { display: grid; min-width: 0; gap: var(--s-4); }
  .gp-mini__name { font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
  .gp-mini__name:hover { color: var(--gp-cyan); text-decoration: underline; }
  .gp-mini__qty { color: var(--gp-muted); font-size: 14px; font-variant-numeric: tabular-nums; }
  .gp-mini__sum { display: flex; justify-content: space-between; gap: var(--s-16); padding-block: var(--s-16); }
  .gp-mini__sum strong { font-variant-numeric: tabular-nums; font-weight: 700; }
  .gp-mini__go { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); }

  /* ---------- category row (desktop only) ---------- */
  .gp-nav { display: none; }
  .gp-nav__wrap { position: relative; }
  .gp-nav__list { display: flex; align-items: center; gap: var(--s-4) var(--s-16); min-height: 48px; }
  .gp-nav__item { display: flex; align-items: center; }
  .gp-nav__item--pill { margin-left: auto; }
  .gp-nav .gp-nav__link {
    display: inline-flex; align-items: center; gap: var(--s-8); min-height: 48px;
    border-radius: var(--gp-radius); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
  }
  .gp-nav__link .gp-ic { width: 20px; height: 20px; }
  .gp-nav .gp-nav__link:hover, .gp-nav__item:has([aria-expanded="true"]) .gp-nav .gp-nav__link { color: var(--gp-cyan); }
  .gp-nav__link:hover .gp-tag, .gp-nav__item:has([aria-expanded="true"]) .gp-tag { color: var(--gp-ink); }
  /* The arrow button is for keyboards and screen readers; it shows only while it has focus. The mouse opens panels by hover. */
  .gp-nav__toggle {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%);
    border: 0; border-radius: var(--gp-radius); background: var(--gp-line); color: var(--gp-cyan); cursor: pointer;
  }
  .gp-nav__toggle:focus-visible {
    position: static; display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; margin: 0 0 0 var(--s-4); overflow: visible; clip-path: none;
  }

  /* the pill at the end of the row: the darkened brand gradient with the pattern */
  .gp-nav .gp-pill {
    position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: var(--s-8);
    min-height: 36px; padding: 0 var(--s-16); border-radius: var(--gp-round);
    background: var(--gp-mix); color: var(--gp-white); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
  }
  .gp-pill::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: url("../brand/game_pattern_white.png") 0 0 / 300px 150px repeat; opacity: .12; }
  .gp-pill .gp-ic { width: 20px; height: 20px; }
  .gp-pill:hover { text-decoration: underline; }

  .gp-panel {
    position: absolute; left: var(--gp-gutter); right: var(--gp-gutter); top: 100%; z-index: 5;
    max-height: calc(100dvh - 140px); overflow: auto; overscroll-behavior: contain;
    padding: var(--s-32); border: 1px solid var(--gp-line); border-top: 0;
    border-radius: 0 0 var(--gp-radius-panel) var(--gp-radius-panel);
    background: var(--gp-panel); box-shadow: var(--gp-shadow);
  }
  .gp-panel__cols { display: flex; flex-wrap: wrap; gap: var(--s-32) var(--s-64); }
  .gp-panel__col { min-width: 200px; }
  .gp-panel__col--wide { flex: 1; }
  .gp-panel__h { margin-bottom: var(--s-8); font: 700 16px/1.3 var(--gp-font-body); }
  .gp-nav .gp-panel__col a { display: flex; align-items: center; min-height: 32px; border-radius: var(--gp-radius); color: var(--gp-muted); font-size: 14px; text-decoration: none; }
  .gp-nav .gp-panel__col a:hover { color: var(--gp-cyan); text-decoration: underline; }
  .gp-panel__multi { max-width: 720px; columns: 3 180px; column-gap: var(--s-64); }
  .gp-panel__multi li { break-inside: avoid; }
  .gp-nav .gp-panel__all {
    display: inline-flex; align-items: center; gap: var(--s-8); min-height: 32px; margin-top: var(--s-16);
    border-radius: var(--gp-radius); color: var(--gp-cyan); font-size: 14px; font-weight: 700; text-decoration: none;
  }
  .gp-nav .gp-panel__all:hover { text-decoration: underline; }

  /* ---------- scrim ---------- */
  &.gp-scrim { position: fixed; inset: 0; z-index: 90; background: var(--gp-scrim); }

  /* ======================================================================
     DRAWER (phone and tablet): native modal dialog
     ====================================================================== */
  &.gp-drawer {
    position: fixed; inset: 0 auto 0 0; margin: 0; padding: 0;
    width: min(360px, calc(100vw - 48px)); max-width: none; height: 100%; max-height: none;
    border: 0; border-right: 1px solid var(--gp-line);
    background: var(--gp-panel); color: var(--gp-white); overflow-y: auto; overscroll-behavior: contain;
  }
  &.gp-drawer::backdrop { background: var(--gp-scrim); }
  &.gp-drawer[open] { animation: gameport-shell-slide .2s ease-out; }
  .gp-drawer__head {
    position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: var(--s-16);
    padding: var(--s-8) var(--s-8) var(--s-8) var(--s-16); border-bottom: 1px solid var(--gp-line); background: var(--gp-panel);
  }
  .gp-drawer__head .gp-chip { background: var(--gp-line); }
  .gp-drawer__title { font: 600 20px/1.2 var(--gp-font-head); }
  .gp-acc__item { border-bottom: 1px solid var(--gp-line); }
  .gp-acc__btn, .gp-acc__solo {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-16); width: 100%; min-height: 48px;
    padding: var(--s-8) var(--s-16); border: 0; background: none; text-align: left; font-weight: 600; text-decoration: none; cursor: pointer;
  }
  .gp-acc__solo .gp-tag { margin-left: var(--s-4); vertical-align: 1px; }
  .gp-acc__btn:hover, .gp-acc__solo:hover, .gp-acc__btn[aria-expanded="true"] { color: var(--gp-cyan); }
  .gp-acc__solo:hover .gp-tag { color: var(--gp-ink); }
  .gp-acc__btn:focus-visible, .gp-acc__solo:focus-visible, .gp-acc__list a:focus-visible, .gp-drawer__more a:focus-visible { outline-offset: -2px; }
  .gp-acc__list { padding-bottom: var(--s-8); }
  .gp-acc__list a { display: flex; align-items: center; min-height: var(--gp-target); padding: var(--s-4) var(--s-16) var(--s-4) var(--s-32); text-decoration: none; overflow-wrap: anywhere; }
  .gp-acc__list a:hover { color: var(--gp-cyan); text-decoration: underline; }
  .gp-drawer__more { padding-block: var(--s-8); }
  .gp-drawer__more a { display: flex; align-items: center; gap: var(--s-16); min-height: 48px; padding: var(--s-8) var(--s-16); text-decoration: none; overflow-wrap: anywhere; }
  .gp-drawer__more a:hover { color: var(--gp-cyan); }

  /* ======================================================================
     FOOTER: four rows separated by rules, as in the reference
     ====================================================================== */
  &.gp-footer { background: var(--gp-ink); border-top: 1px solid var(--gp-line); padding-top: var(--s-32); font-size: 14px; color: var(--gp-muted); }
  .gp-frow { padding-block: var(--s-24); border-bottom: 1px solid var(--gp-line); }
  .gp-frow:last-child { border-bottom: 0; }

  /* row 1: ways to pay, language and currency */
  .gp-frow--pay { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-16); padding-top: 0; padding-bottom: var(--s-24); }
  .gp-pay { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-8); }
  /* Each mark sits on its own white tile at the same size, with its owner's clear space inside the tile. */
  .gp-pay__tile { display: flex; align-items: center; justify-content: center; width: 92px; height: 48px; border-radius: var(--gp-radius); background: var(--gp-white); }
  .gp-pay__tile img { width: auto; max-width: 100%; }
  .gp-flang { position: relative; color: var(--gp-white); }
  .gp-flang summary { display: flex; align-items: center; gap: var(--s-8); min-height: 44px; border-radius: var(--gp-radius); font-weight: 700; cursor: pointer; list-style: none; }
  .gp-kes summary { border-radius: var(--gp-round); }
  .gp-kes .gp-flang__choices { top: calc(100% + var(--s-8)); bottom: auto; z-index: 10; }
  .gp-flang summary::-webkit-details-marker { display: none; }
  .gp-flang summary:hover, .gp-flang[open] summary { color: var(--gp-cyan); }
  .gp-flang summary:focus-visible { outline: 2px solid var(--gp-cyan); outline-offset: 3px; }
  .gp-flang[open] .gp-chev { rotate: 180deg; }
  .gp-flang__choices {
    position: absolute; z-index: 2; inset-inline-end: 0; bottom: calc(100% + var(--s-8));
    width: 236px; padding: var(--s-16); margin: 0; border: 1px solid var(--gp-line); border-radius: var(--gp-radius);
    background: var(--gp-panel); display: grid; gap: var(--s-8);
  }
  .gp-flang__choices div { display: grid; grid-template-columns: 1fr auto; gap: var(--s-8); }
  .gp-flang__choices dt { color: var(--gp-muted); }
  .gp-flang__choices dd { margin: 0; font-weight: 600; }
  @media (max-width: 520px) {
    .gp-flang__choices { position: static; width: min(236px, calc(100vw - 32px)); }
  }

  /* row 2: link columns and the help block */
  .gp-frow--main { display: grid; gap: var(--s-24); padding-top: var(--s-8); }
  .gp-fcol { border-bottom: 1px solid var(--gp-line); }
  .gp-fcol:focus, .gp-fhelp:focus { outline-offset: 2px; }
  .gp-fcol__h { padding-block: var(--s-16) var(--s-8); color: var(--gp-white); font: 700 14px/1.4 var(--gp-font-body); text-transform: uppercase; letter-spacing: .02em; }
  .gp-foot__hbtn {
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-16); width: 100%; min-height: 48px;
    margin-block: calc(-1 * var(--s-16)) calc(-1 * var(--s-8)); padding: 0;
    border: 0; background: none; font: inherit; text-transform: inherit; letter-spacing: inherit; text-align: left; cursor: pointer;
  }
  .gp-fcol ul { padding-bottom: var(--s-8); }
  &.gp-footer .gp-fcol a { display: flex; align-items: center; min-height: var(--gp-target); color: var(--gp-muted); text-decoration: none; }
  .gp-fcol a:hover { color: var(--gp-cyan); text-decoration: underline; }

  .gp-fhelp { display: grid; gap: var(--s-8); align-content: start; }
  .gp-fhelp__h { color: var(--gp-white); font: 700 14px/1.4 var(--gp-font-body); }
  .gp-fhelp__box { display: flex; align-items: center; gap: var(--s-8); margin-top: var(--s-8); padding: 10px var(--s-16); border: 1px solid var(--gp-line); border-radius: var(--gp-radius); color: var(--gp-white); font-weight: 600; text-decoration: none; }
  .gp-fhelp__box:hover { color: var(--gp-cyan); }
  .gp-fhelp__go { display: flex; flex-wrap: wrap; gap: var(--s-8); }
  &.gp-footer .gp-fhelp__go .gp-btn { flex: 1 0 auto; justify-content: center; min-height: var(--gp-target); padding-inline: 6px; font-size: 14px; white-space: nowrap; }

  /* row 3: shop details and social links */
  .gp-frow--info { display: grid; gap: var(--s-24); }
  .gp-finfo { display: grid; gap: var(--s-24); }
  .gp-finfo > div { display: grid; gap: var(--s-4); align-content: start; }
  .gp-finfo__h { color: var(--gp-white); font: 700 14px/1.4 var(--gp-font-body); }
  .gp-fsocial { color: var(--gp-white); }

  /* row 4: legal line */
  .gp-frow--legal { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-24); padding-bottom: var(--s-32); }
  .gp-flegal { max-width: 100ch; }
  &.gp-footer .gp-flegal a { display: inline; color: var(--gp-cyan); font-weight: 700; text-decoration: none; padding-block: 2px; }
  .gp-flegal a:hover { text-decoration: underline; }
  &.gp-footer .gp-ftop { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px; border-radius: var(--gp-round); background: var(--gp-cyan); color: var(--gp-ink); }
  &.gp-footer .gp-ftop:hover { background: var(--gp-white); color: var(--gp-ink); }
  .gp-ftop:focus-visible { outline-color: var(--gp-white); border-radius: var(--gp-round); }

  /* ======================================================================
     TABLET: 768 and up
     ====================================================================== */
  @media (min-width: 768px) {
    --gp-gutter: 24px;
    --gp-chip: 48px;
    .gp-bar__row { padding-block: 14px 12px; }
    .gp-logo img { width: 168px; }
    .gp-tools { gap: var(--s-8); }
    .gp-kes { display: inline-flex; }
    .gp-acct__name { display: block; }
    .gp-acct__btn .gp-chev { display: block; }
    .gp-search select.gp-search__cat {
      display: block; flex: none; width: 168px; height: var(--gp-target); padding: 0 var(--s-32) 0 var(--s-16);
      border: 0; border-left: 1px solid var(--gp-muted); border-radius: 0; color: var(--gp-ink); font-size: 14px; cursor: pointer;
      -webkit-appearance: none; appearance: none; color-scheme: light;
      background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222121' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center / 16px no-repeat;
    }
    .gp-search__cat:focus-visible { outline: 2px solid var(--gp-ink); outline-offset: -4px; }

    .gp-frow--main { padding-top: var(--s-32); }
    .gp-fcols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-24) var(--s-32); }
    .gp-fcol { border-bottom: 0; }
    .gp-fcol__h { padding-block: 0 var(--s-8); }
    &.gp-footer .gp-fcol a { min-height: 32px; }
    .gp-fhelp { max-width: 340px; }
    .gp-finfo { grid-template-columns: repeat(3, 1fr); gap: var(--s-32); }
  }

  /* ======================================================================
     DESKTOP: 1024 and up. One bar: logo, search pill, chips. Category row below.
     ====================================================================== */
  @media (min-width: 1024px) {
    .gp-menubtn { display: none; }
    .gp-bar__row { flex-wrap: nowrap; column-gap: var(--s-24); padding-block: 22px; }   /* 44 + 48 = the reference's 92px bar */
    .gp-logo { margin-right: 0; }
    .gp-search { order: 0; flex: 1 1 auto; min-width: 0; margin-top: 0; }
    .gp-search input.gp-search__input { width: 0; }
    .gp-acct__name { max-width: 96px; }
    .gp-acct__guest a { min-height: 33px; padding-inline: 14px; font-size: 14px; }
    .gp-acct__guest .gp-ic { width: 16px; height: 16px; }
    .gp-cart .gp-cart__btn { width: auto; gap: 8px; padding-inline: 4px; background: transparent; }
    .gp-cart .gp-cart__btn:hover { background: var(--gp-panel); }
    .gp-cart__label { display: inline; font-size: 15px; font-weight: 600; }
    .gp-cart__btn .gp-cart__count {
      position: static; min-width: 26px; height: 26px; border: 3px solid #513b27;
      border-radius: var(--gp-round); padding-inline: 4px; font-size: 13px;
    }
    .gp-nav { display: block; }
    .gp-nav .gp-wrap { display: block; }
    .gp-nav__list { flex-wrap: wrap; column-gap: clamp(8px, calc(5vw - 43px), 16px); }
    .gp-nav .gp-nav__link { gap: 6px; }
    .gp-nav .gp-pill { padding-inline: 12px; }

    .gp-frow--main { grid-template-columns: 1fr 300px; column-gap: var(--s-48); }
    .gp-fcols { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: var(--s-16); }
    .gp-fhelp { align-self: center; }
    .gp-frow--info { grid-template-columns: 1fr auto; column-gap: var(--s-48); }
  }

  @media (1024px <= width < 1120px) {
    .gp-nav__list { column-gap: 6px; }
    .gp-nav .gp-nav__link, .gp-nav .gp-pill { font-size: 13px; }
    .gp-nav__link .gp-ic { width: 16px; height: 16px; }
  }

  @media (min-width: 1280px) {
    .gp-acct__name { max-width: 140px; }
    .gp-nav__list { column-gap: var(--s-24); }
    .gp-nav .gp-nav__link { gap: var(--s-8); }
    .gp-nav .gp-pill { padding-inline: var(--s-16); }
    .gp-fcols { column-gap: var(--s-32); }
  }

  @media (max-width: 370px) {
    .gp-bar__row { row-gap: var(--s-8); }
    .gp-tools { order: 2; }
    .gp-search { order: 1; flex: 1 1 calc(100% - 150px); margin-top: 0; }
    .gp-search input.gp-search__input { padding-inline: 10px; font-size: 14px; }
    .gp-search .gp-search__go { width: 44px; }
    .gp-suggest { right: -148px; }
  }

  @media (max-width: 410px) {
    .gp-bar__row:has(.gp-acct__guest) {
      row-gap: var(--s-8);
      .gp-tools { display: contents; }
      .gp-acct { order: 2; }
      .gp-search { order: 1; flex: 1 1 calc(100% - 96px); margin-top: 0; }
      .gp-suggest { right: -96px; }
    }
  }

  @media (max-width: 600px) {
    &.gp-header { top: 0; }
  }

  @media (min-width: 1024px) and (hover: none) {
    .gp-menubtn { display: inline-flex; }
  }

  @media (max-height: 599px) {
    &.gp-header { position: relative; top: auto; }
  }

  @media (prefers-reduced-motion: reduce) {
    &.gp-drawer[open] { animation: none; }
    .gp-chev { transition: none; }
    &, &::before, *, *::before { animation: none; transition: none; scroll-behavior: auto; }
  }

  @media (forced-colors: active) {
    .gp-search select.gp-search__cat { appearance: auto; background-image: none; }
  }
}

@keyframes gameport-shell-slide {
  from { transform: translateX(-100%); }
  to { transform: none; }
}

html:not(.js) .gp-site-shell .gp-nav__toggle { display: none; }
html:has(.gp-site-shell.gp-drawer[open]) { overflow: hidden; }

html:has(body > .gp-site-shell.gp-header) {
  scroll-padding-top: calc(var(--gp-shell-header-height, 112px) + var(--wp-admin--admin-bar--height, 0px) + 8px);

  @media (max-width: 370px) {
    scroll-padding-top: calc(var(--gp-shell-header-height, 112px) + 8px);
  }

  @media (min-width: 768px) {
    scroll-padding-top: calc(var(--gp-shell-header-height, 126px) + var(--wp-admin--admin-bar--height, 0px) + 8px);
  }

  @media (min-width: 1024px) {
    scroll-padding-top: calc(var(--gp-shell-header-height, 140px) + var(--wp-admin--admin-bar--height, 0px) + 8px);
  }

  @media (max-height: 599px) {
    scroll-padding-top: var(--wp-admin--admin-bar--height, 0px);
  }
}

body:has(> .gp-site-shell.gp-header) .gp-skip:focus { z-index: 101; }
