/* Modern 1.2.103 — Adaptive Header / Glass Compact Final
   Logo is the home action; navigation starts with FS games.
   Full at the top / while scrolling upward, glass compact while scrolling downward. */
#fsp-horizon{
  --fsh-accent:#b4ef2f;
  --fsh-blue:#48c8ff;
  --fsh-text:#f2f6ef;
  --fsh-muted:#8d9a90;
  --fsh-line:rgba(184,220,156,.16);
  --fsh-panel:#0c1510;
  --fsh-panel-2:#101c15;
  position:relative;
  z-index:4600;
  display:block;
  width:100%;
  height:94px;
  margin:0 0 18px;
  padding:0;
  color:var(--fsh-text);
  font-family:var(--fsp-sign-font,Inter,system-ui,sans-serif);
  font-size:13px;
  line-height:1.35;
  background:transparent;
}
#fsp-horizon *,#fsp-horizon *::before,#fsp-horizon *::after{box-sizing:border-box}
#fsp-horizon [hidden]{display:none!important}
#fsp-horizon a{text-decoration:none}
#fsp-horizon button,#fsp-horizon input{font-family:inherit}
#fsp-horizon svg{display:block;flex-shrink:0}

#fsp-horizon .fsh-inner{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:236px minmax(420px,.95fr) minmax(440px,1.15fr);
  align-items:center;
  gap:14px;
  width:min(var(--fsp-sign-container,1640px),calc(100% - 48px));
  height:80px;
  margin:10px auto 0;
  padding:8px 12px 8px 14px;
  border:1px solid rgba(181,226,116,.18);
  border-radius:20px;
  background:
    linear-gradient(90deg,rgba(152,213,44,.045),transparent 24%),
    linear-gradient(180deg,#111c16,#09110d);
  box-shadow:0 16px 42px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.03);
  transition:height .18s ease,padding .18s ease,border-radius .18s ease,box-shadow .18s ease,background .18s ease,width .18s ease;
}
#fsp-horizon .fsh-inner::after{
  content:"";
  position:absolute;
  left:18px;right:18px;bottom:-1px;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(180,239,47,.16) 16%,rgba(180,239,47,.72) 50%,rgba(180,239,47,.16) 84%,transparent);
  pointer-events:none;
}

/* Fixed mode starts only after the original header has left the top of the page. */
#fsp-horizon.is-sticky .fsh-inner{
  position:fixed;
  top:8px;
  left:50%;
  transform:translateX(-50%);
  margin:0;
  width:min(var(--fsp-sign-container,1640px),calc(100% - 28px));
  height:80px;
  z-index:4700;
  border-color:rgba(190,232,132,.22);
  background:
    linear-gradient(90deg,rgba(166,224,54,.055),transparent 25%),
    linear-gradient(180deg,rgba(18,30,23,.76),rgba(8,16,12,.66));
  -webkit-backdrop-filter:blur(12px) saturate(135%);
  backdrop-filter:blur(12px) saturate(135%);
  box-shadow:0 18px 48px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.055);
}
body.admin-bar #fsp-horizon.is-sticky .fsh-inner{top:40px}

/* Down-scroll compact state: real glass rail. */
#fsp-horizon.is-sticky.is-compact .fsh-inner{
  height:58px;
  padding-top:5px;
  padding-bottom:5px;
  border-radius:14px;
  border-color:rgba(192,236,126,.28);
  background:
    linear-gradient(90deg,rgba(166,224,54,.07),transparent 22%),
    linear-gradient(180deg,rgba(16,29,21,.66),rgba(6,13,10,.56));
  -webkit-backdrop-filter:blur(16px) saturate(145%);
  backdrop-filter:blur(16px) saturate(145%);
  box-shadow:0 14px 38px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.07),0 0 0 1px rgba(145,207,57,.035);
}

/* Brand */
#fsp-horizon .fsh-brand{
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
  height:100%;
  padding:0 8px 0 4px;
  color:inherit;
}
#fsp-horizon .fsh-logo-frame{
  position:relative;
  display:block;
  flex:0 0 auto;
  width:184px;
  aspect-ratio:296/67;
  overflow:hidden;
}
#fsp-horizon .fsh-logo-frame .fsh-logo{
  position:absolute!important;
  display:block!important;
  width:var(--fsh-logo-width,100%)!important;
  max-width:none!important;
  height:auto!important;
  max-height:none!important;
  left:var(--fsh-logo-left,50%)!important;
  top:var(--fsh-logo-top,50%)!important;
  right:auto!important;bottom:auto!important;
  transform:var(--fsh-logo-transform,translate(-50%,-50%))!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  object-fit:fill!important;filter:none!important;box-shadow:none!important;
}
#fsp-horizon .fsh-brand-caption{
  display:none;
  color:#849282;
  font-size:7px;
  font-weight:800;
  letter-spacing:.16em;
  white-space:nowrap;
}
#fsp-horizon.is-compact .fsh-logo-frame{width:154px}

/* Main navigation */
#fsp-horizon .fsh-navigation{
  position:relative;
  z-index:5;
  min-width:0;
  height:100%;
  overflow:visible;
}
#fsp-horizon .fsh-nav{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  width:100%;
  height:100%;
  margin:0;
  padding:0;
  border:0;
  background:none;
}
#fsp-horizon .fsh-nav>.fspmega,
#fsp-horizon .fsh-nav>.fspdiscover{
  --fsh-nav-rgb:176,235,39;
  --fsh-nav-accent:#b0eb27;
  position:static!important;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 1 154px;
  min-width:0;
  max-width:164px;
  height:56px;
  margin:0;
}
#fsp-horizon .fsh-nav>.fspmega-game-fs25{
  --fsh-nav-rgb:169,222,47;
  --fsh-nav-accent:#a9de2f;
}
#fsp-horizon .fsh-nav>.fspmega-game-fs22{
  --fsh-nav-rgb:52,190,239;
  --fsh-nav-accent:#34beef;
}
#fsp-horizon .fsh-nav>.fspdiscover{
  --fsh-nav-rgb:180,239,47;
  --fsh-nav-accent:#b4ef2f;
}
#fsp-horizon .fsh-nav-trigger{
  appearance:none;
  position:relative;
  display:grid!important;
  grid-template-columns:36px minmax(0,1fr) 14px;
  align-items:center!important;
  justify-content:stretch!important;
  gap:9px!important;
  width:100%;
  min-width:0;
  height:54px;
  min-height:54px;
  margin:0;
  padding:5px 11px 5px 7px!important;
  border:1px solid rgba(var(--fsh-nav-rgb),.12)!important;
  border-radius:15px!important;
  background:
    linear-gradient(135deg,rgba(var(--fsh-nav-rgb),.075),rgba(8,17,11,.16) 56%),
    rgba(10,20,13,.42)!important;
  color:#e1e9dc!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important;
  font-size:11.5px!important;
  line-height:1.08!important;
  font-weight:850!important;
  white-space:nowrap;
  cursor:pointer;
  transition:transform .16s ease,background .16s ease,border-color .16s ease,box-shadow .16s ease,color .16s ease!important;
}
#fsp-horizon .fsh-nav-trigger:hover,
#fsp-horizon .fsh-nav-trigger[aria-expanded="true"]{
  transform:translateY(-1px);
  color:#f5f9ef!important;
  border-color:rgba(var(--fsh-nav-rgb),.34)!important;
  background:
    linear-gradient(135deg,rgba(var(--fsh-nav-rgb),.16),rgba(11,22,15,.46) 58%),
    rgba(10,20,13,.62)!important;
  box-shadow:0 8px 18px rgba(0,0,0,.13),inset 0 1px 0 rgba(255,255,255,.045)!important;
}
#fsp-horizon .fsh-nav-trigger::before{
  content:"";
  position:absolute;
  left:16px;
  right:16px;
  bottom:-1px;
  height:2px;
  border-radius:999px;
  background:linear-gradient(90deg,transparent,var(--fsh-nav-accent) 22%,var(--fsh-nav-accent) 78%,transparent);
  opacity:0;
  box-shadow:0 0 10px rgba(var(--fsh-nav-rgb),.28);
  transition:opacity .16s ease;
}
#fsp-horizon .fsh-nav-trigger.is-active,
#fsp-horizon .fsh-nav-trigger[aria-expanded="true"]{
  border-color:rgba(var(--fsh-nav-rgb),.4)!important;
  background:
    linear-gradient(135deg,rgba(var(--fsh-nav-rgb),.18),rgba(11,22,15,.52) 60%),
    rgba(10,20,13,.7)!important;
  box-shadow:0 9px 22px rgba(0,0,0,.14),inset 0 0 0 1px rgba(var(--fsh-nav-rgb),.035)!important;
}
#fsp-horizon .fsh-nav-trigger.is-active::before,
#fsp-horizon .fsh-nav-trigger[aria-expanded="true"]::before,
#fsp-horizon .fsh-nav-trigger:focus-visible::before{opacity:1}
#fsp-horizon .fsh-nav-icon{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  min-width:34px;
  min-height:34px;
  border:1px solid rgba(var(--fsh-nav-rgb),.17);
  border-radius:11px;
  background:linear-gradient(145deg,rgba(var(--fsh-nav-rgb),.13),rgba(8,16,11,.34));
  color:var(--fsh-nav-accent);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
}
#fsp-horizon .fsh-nav-icon svg{width:19px;height:19px}
#fsp-horizon .fsh-nav-icon img{
  display:block;
  width:25px;
  height:25px;
  object-fit:contain;
  filter:drop-shadow(0 2px 3px rgba(0,0,0,.45));
}
#fsp-horizon .fsh-game-fallback{
  display:grid;
  place-items:center;
  width:25px;
  height:25px;
  border:1px solid rgba(var(--fsh-nav-rgb),.42);
  border-radius:7px;
  background:linear-gradient(135deg,rgba(var(--fsh-nav-rgb),.92),rgba(var(--fsh-nav-rgb),.48));
  color:#f5ffdf;
  font-size:15px;
  font-weight:950;
  font-style:italic;
}
#fsp-horizon .fspmega-game-fs22 .fsh-game-fallback{color:#fff}
#fsp-horizon .fsh-nav-icon.is-discover{border-radius:11px}
#fsp-horizon .fsh-nav-label{
  display:block;
  min-width:0;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  text-align:left;
  letter-spacing:.005em;
}
#fsp-horizon .fspmega-chevron,
#fsp-horizon .fspdiscover-chevron{
  display:grid!important;
  place-items:center;
  width:14px;
  height:14px;
  margin:0!important;
  border-radius:50%;
  color:var(--fsh-nav-accent);
  font-size:10px;
  line-height:1;
  opacity:.86;
  transform:none;
}
#fsp-horizon .fsh-nav-trigger:focus-visible{
  outline:2px solid rgba(var(--fsh-nav-rgb),.78);
  outline-offset:2px;
}
#fsp-horizon .fsh-nav-trigger:focus-visible .fsh-nav-label{outline:0}

/* Compact sticky nav: same identity, tighter rail. */
#fsp-horizon.is-compact .fsh-nav{gap:6px}
#fsp-horizon.is-compact .fsh-nav>.fspmega,
#fsp-horizon.is-compact .fsh-nav>.fspdiscover{
  flex:0 1 128px;
  max-width:138px;
  height:42px;
}
#fsp-horizon.is-compact .fsh-nav-trigger{
  grid-template-columns:27px minmax(0,1fr) 11px;
  gap:6px!important;
  height:40px;
  min-height:40px;
  padding:3px 8px 3px 5px!important;
  border-radius:12px!important;
  font-size:10.5px!important;
  transform:none!important;
}
#fsp-horizon.is-compact .fsh-nav-icon{
  width:27px;
  height:27px;
  min-width:27px;
  min-height:27px;
  border-radius:8px;
}
#fsp-horizon.is-compact .fsh-nav-icon img{width:20px;height:20px}
#fsp-horizon.is-compact .fsh-nav-icon svg{width:16px;height:16px}
#fsp-horizon.is-compact .fspmega-chevron,
#fsp-horizon.is-compact .fspdiscover-chevron{width:11px;height:11px;font-size:9px;line-height:1}

@media(min-width:1101px){
  #fsp-horizon .fsh-nav>.fspmega,
  #fsp-horizon .fsh-nav>.fspdiscover{flex:0 1 154px;}
}

/* Search + account/tool zone */
#fsp-horizon .fsh-tools{
  position:relative;
  z-index:6;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  min-width:0;
  height:100%;
  padding:0;
  background:none;
  border:0;
}

/* Search is intentionally a single, premium trigger. The real search UI opens
   in the existing modal/AJAX layer, so a fake input inside the header only
   wastes space. Ctrl+K continues to be handled by Mod Search. */
#fsp-horizon .fsh-search{
  appearance:none;
  position:relative;
  display:grid;
  place-items:center;
  flex:0 0 48px;
  width:48px;
  min-width:48px;
  height:48px;
  margin:0 2px 0 0;
  padding:0;
  border:1px solid rgba(180,235,64,.34);
  border-radius:14px;
  background:linear-gradient(145deg,rgba(137,202,30,.16),rgba(9,18,13,.94));
  color:#c7f34a;
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 7px 18px rgba(0,0,0,.14);
  transition:border-color .16s ease,background .16s ease,box-shadow .16s ease,color .16s ease;
}
#fsp-horizon .fsh-search::after{
  content:"";
  position:absolute;
  right:7px;
  top:7px;
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--fsh-accent);
  box-shadow:0 0 9px rgba(180,239,47,.55);
  opacity:.85;
}
#fsp-horizon .fsh-search:hover{
  border-color:rgba(189,243,77,.62);
  background:linear-gradient(145deg,rgba(147,219,31,.24),rgba(11,22,15,.96));
  color:#e1ff8f;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 0 0 3px rgba(171,229,36,.045),0 8px 22px rgba(0,0,0,.16);
}
#fsp-horizon .fsh-search:focus-visible{
  outline:0;
  border-color:#b7ef3b;
  box-shadow:0 0 0 3px rgba(171,229,36,.13),0 8px 22px rgba(0,0,0,.16);
}
#fsp-horizon .fsh-search-icon{display:grid;place-items:center;width:23px;height:23px;color:inherit}
#fsp-horizon .fsh-search-icon svg{width:21px;height:21px;stroke-width:1.9}
#fsp-horizon .fsh-search-placeholder,#fsp-horizon .fsh-shortcut-key{display:none!important}
#fsp-horizon.is-compact .fsh-search{flex-basis:42px;width:42px;min-width:42px;height:42px;border-radius:12px}
#fsp-horizon.is-compact .fsh-search-icon{width:21px;height:21px}
#fsp-horizon.is-compact .fsh-search-icon svg{width:19px;height:19px}

#fsp-horizon .fsh-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex:0 0 auto;min-width:0}
#fsp-horizon .fsh-shortcuts{display:flex;align-items:center;gap:2px;height:54px;margin:0;padding:0}
#fsp-horizon .fsh-shortcut{
  position:relative;
  display:flex!important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  width:43px;height:54px;min-height:54px;
  padding:4px!important;
  border:1px solid transparent!important;
  border-radius:9px!important;
  background:transparent;
  color:#dfe5db!important;
  font-size:9px!important;
  font-weight:800;
  line-height:1;
}
#fsp-horizon .fsh-shortcut:hover{border-color:rgba(176,235,39,.15)!important;background:rgba(176,235,39,.055)}
#fsp-horizon .fsh-shortcut-icon{display:grid;place-items:center;width:23px;height:23px;color:var(--fsh-accent)}
#fsp-horizon .fsh-shortcut-icon svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.7;fill:none}
#fsp-horizon .is-shop .fsh-shortcut-icon{color:#d3b65e}
#fsp-horizon .is-cards .fsh-shortcut-icon{color:#cedac9}
#fsp-horizon .fsh-shortcut-copy{display:flex;flex-direction:column;align-items:center;gap:1px}
#fsp-horizon .fsh-shortcut-copy b{font-size:9px;line-height:1;font-weight:800}
#fsp-horizon .fsh-shortcut-copy small{display:none;color:#899582;font-size:7px}

/* Studio is a first-class portal destination, not another utility icon. */
#fsp-horizon .fsh-studio{
  position:relative;
  display:flex!important;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:auto;
  min-width:88px;
  height:46px;
  min-height:46px;
  margin:0 2px;
  padding:0 13px!important;
  border:1px solid rgba(177,236,56,.34)!important;
  border-radius:13px!important;
  background:linear-gradient(145deg,rgba(132,196,27,.19),rgba(13,27,17,.92));
  color:#d8ff72!important;
  font-size:10.5px!important;
  font-weight:900;
  line-height:1;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 7px 18px rgba(0,0,0,.12);
  transition:border-color .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease;
}
#fsp-horizon .fsh-studio:hover{
  border-color:rgba(194,247,79,.58)!important;
  background:linear-gradient(145deg,rgba(145,215,27,.28),rgba(15,31,19,.96));
  color:#edffad!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.055),0 0 0 3px rgba(174,232,45,.04),0 8px 20px rgba(0,0,0,.14);
}
#fsp-horizon .fsh-studio:focus-visible{outline:0;border-color:#b8ef3b!important;box-shadow:0 0 0 3px rgba(171,229,36,.12)}
#fsp-horizon .fsh-studio-icon{display:grid;place-items:center;width:24px;height:24px;color:var(--fsh-accent)}
#fsp-horizon .fsh-studio-icon svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.8;fill:none}
#fsp-horizon .fsh-studio>span:last-child{font-size:10.5px;font-weight:900;letter-spacing:.01em}
#fsp-horizon.is-compact .fsh-shortcuts{height:44px}
#fsp-horizon.is-compact .fsh-shortcut{width:39px;height:44px;min-height:44px;gap:2px}
#fsp-horizon.is-compact .fsh-shortcut-icon{width:20px;height:20px}
#fsp-horizon.is-compact .fsh-studio{min-width:78px;height:42px;min-height:42px;padding:0 11px!important;border-radius:12px!important;gap:6px}
#fsp-horizon.is-compact .fsh-studio-icon{width:21px;height:21px}
#fsp-horizon.is-compact .fsh-studio-icon svg{width:17px;height:17px}
#fsp-horizon.is-compact .fsh-studio>span:last-child{font-size:10px}

/* Notifications/language/account keep their plugin contracts. */
#fsp-horizon .fspnotify{position:relative;display:block;margin:0;padding:0}
#fsp-horizon .fspnotify-trigger{display:grid!important;place-items:center!important;position:relative!important;width:34px!important;height:42px!important;min-width:34px!important;min-height:42px!important;margin:0!important;padding:7px!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#d9e0d5!important;border-radius:8px!important}
#fsp-horizon .fspnotify-trigger:hover{background:rgba(151,197,47,.08)!important}
#fsp-horizon .fspnotify-trigger svg{width:19px!important;height:19px!important;fill:currentColor!important;stroke:currentColor!important;stroke-width:1.1!important}
#fsp-horizon .fspnotify-count{position:absolute;top:0;right:0;min-width:16px;height:16px;display:grid;place-items:center;padding:0 4px;border-radius:6px;border:1px solid #82a640;background:#b7e843;color:#14210b;font-size:9px;font-weight:900}
#fsp-horizon .fsh-language{height:auto;min-height:0;display:block;margin:0;padding:0;border:0;background:none}
#fsp-horizon .fsp-lang-trigger{min-width:0;width:auto;min-height:40px;height:40px;display:flex;align-items:center;justify-content:center;gap:5px;margin:0;padding:0 4px;border:0;background:transparent;box-shadow:none;color:#e0e6dc;font-size:10.5px;font-weight:750}
#fsp-horizon .fsp-lang-trigger:hover{background:rgba(151,197,47,.08)}
#fsp-horizon .fsp-lang-globe{color:#c7d8ba;width:17px;height:17px}
#fsp-horizon .fsp-lang-globe svg{width:17px;height:17px}

#fsp-horizon .fsh-account{position:relative;display:block;margin:0;padding:0;height:auto}
#fsp-horizon .fspuser-trigger{
  display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;
  min-width:126px!important;max-width:188px!important;height:54px!important;min-height:54px!important;
  margin:0!important;padding:6px 11px 6px 6px!important;
  border:1px solid rgba(181,222,116,.2)!important;border-radius:13px!important;
  background:rgba(157,209,49,.045)!important;color:#edf3e8!important;box-shadow:none!important;cursor:pointer!important;
}
#fsp-horizon .fspuser-trigger:hover{border-color:rgba(180,236,47,.48)!important;background:rgba(150,205,42,.08)!important}
#fsp-horizon .fspuser-avatar{position:relative!important;display:grid!important;place-items:center!important;flex:0 0 36px!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;border:1px solid #7fa92a!important;border-radius:50%!important;background:#172415!important;box-shadow:0 0 0 3px rgba(166,213,56,.045)!important;overflow:visible!important}
#fsp-horizon .fspuser-avatar img{display:block!important;width:100%!important;height:100%!important;border-radius:50%!important;object-fit:cover!important}
#fsp-horizon .fspuser-name{display:inline-flex;align-items:center;gap:4px;max-width:98px;min-width:0;color:#edf2e9;font-size:11px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#fsp-horizon .fspuser-name .fsp-verified-badge{flex-shrink:0}
#fsp-horizon .fspuser-arrow{color:var(--fsh-accent);font-size:13px}
#fsp-horizon.is-compact .fspuser-trigger{height:44px!important;min-height:44px!important;min-width:108px!important}
#fsp-horizon.is-compact .fspuser-avatar{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;flex-basis:30px!important}

#fsp-horizon .fsh-auth{
  display:grid;grid-template-columns:24px auto 10px;align-items:center;gap:7px;min-width:148px;height:54px;
  padding:7px 11px;border:1px solid rgba(182,228,72,.38);border-radius:13px;background:rgba(147,204,38,.09);color:#eff8df!important;
}
#fsp-horizon .fsh-auth:hover{border-color:#b6df45;background:rgba(140,191,39,.16)}
#fsp-horizon .fsh-auth-icon{color:var(--fsh-accent)}
#fsp-horizon .fsh-auth-icon svg{width:21px;height:21px}
#fsp-horizon .fsh-auth-copy{display:flex;flex-direction:column;gap:2px}
#fsp-horizon .fsh-auth-copy b{font-size:11.5px;line-height:1.05;color:#edf6df}
#fsp-horizon .fsh-auth-copy small{font-size:9.5px;line-height:1.05;color:#adbf91;white-space:nowrap}
#fsp-horizon .fsh-auth-arrow{color:var(--fsh-accent)}
#fsp-horizon.is-compact .fsh-auth{height:44px;min-width:120px}
#fsp-horizon.is-compact .fsh-auth-copy small{display:none}

/* Account dropdown surface. */
#fsp-horizon .fspuser-head{display:flex;align-items:center;gap:10px;margin:0;padding:0 0 12px}
#fsp-horizon .fspuser-big-avatar{width:45px;height:45px;flex:0 0 45px}
#fsp-horizon .fspuser-big-avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover}
#fsp-horizon .fspuser-data{min-width:0;flex:1}
#fsp-horizon .fspuser-data strong{display:block;color:#e3f0d5;font-size:13px}
#fsp-horizon .fspuser-data small{display:block;color:#8a9b7d;font-size:9px;overflow-wrap:anywhere}
#fsp-horizon .fspuser-menu>a,#fsp-horizon .fspuser-theme-row{display:flex;align-items:center;gap:11px;width:100%;min-height:39px;padding:9px 10px;margin:0;border:0;border-radius:6px;background:transparent;color:#cddcbe;font-size:12px;line-height:1.4}
#fsp-horizon .fspuser-menu>a:hover{background:rgba(164,212,59,.07);color:#e2f2cb}
#fsp-horizon .fspuser-menu>a>span{display:grid;place-items:center;width:23px;font-size:16px;color:#accc77}
#fsp-horizon .fspuser-separator{height:1px;background:rgba(190,217,162,.09);margin:6px 0}
#fsp-horizon .fspuser-rewards-balance{padding:8px;border:1px solid rgba(171,221,55,.15);border-radius:7px;background:#1b2a11;text-align:right}
#fsp-horizon .fspuser-rewards-balance small{display:block;font-size:6px;color:#9ebc73}
#fsp-horizon .fspuser-rewards-balance strong{display:block;font-size:16px;color:#bedf71}
#fsp-horizon .fspuser-daily-reward{width:100%;display:flex;align-items:center;gap:10px;padding:12px 8px;margin:8px 0;border:1px solid rgba(153,205,38,.23);border-radius:7px;background:#1c2b13;color:#c3e383;text-align:left;cursor:pointer}
#fsp-horizon .fspuser-daily-copy{flex:1}
#fsp-horizon .fspuser-daily-copy strong{display:block;font-size:11px}
#fsp-horizon .fspuser-daily-copy small{display:block;font-size:9px;color:#9aaf7d}

#fsp-horizon .fsh-mobile-toggle{display:none}
#fsp-horizon .fsh-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#fsp-horizon .fsh-basic-links{display:flex;gap:14px;padding:10px}
#fsp-horizon .fsh-basic-links a{color:#c2e57f}
#fsp-horizon .fsp-lang-current-code{display:inline!important;font-size:10px!important}
#fsp-horizon .fsh-shortcut,#fsp-horizon .fsh-studio{text-transform:none;letter-spacing:normal}
#fsp-horizon .fsh-nav[data-fsh-many-games] .fsh-label-prefix{display:none}
html[data-fsp-theme-lock="dark"] #fsp-horizon .fspuser-theme-row{display:none!important}

/* Large desktop: preserve the airy Concept 3 proportions. */
@media(min-width:1660px){
  #fsp-horizon .fsh-inner{grid-template-columns:260px minmax(470px,.95fr) minmax(520px,1.15fr);gap:18px;padding-left:18px;padding-right:16px}
  #fsp-horizon .fsh-logo-frame{width:205px}
  #fsp-horizon .fsh-nav-trigger{font-size:12px!important}
  #fsp-horizon .fsh-nav>.fspmega,#fsp-horizon .fsh-nav>.fspdiscover{flex-basis:160px;max-width:170px}
}

/* Mid desktop: keep one row, simplify non-essential copy. */
@media(min-width:1101px) and (max-width:1399px){
  #fsp-horizon .fsh-inner{width:calc(100% - 28px);grid-template-columns:188px minmax(360px,.95fr) minmax(390px,1.05fr);gap:8px;padding-left:10px;padding-right:8px}
  #fsp-horizon .fsh-logo-frame{width:160px}
  #fsp-horizon .fsh-nav{gap:5px}
  #fsp-horizon .fsh-nav>.fspmega,#fsp-horizon .fsh-nav>.fspdiscover{flex:1 1 0;max-width:none;height:50px}
  #fsp-horizon .fsh-nav-trigger{grid-template-columns:30px minmax(0,1fr) 11px;gap:5px!important;height:48px;min-height:48px;padding:4px 7px 4px 5px!important;font-size:10px!important;border-radius:12px!important}
  #fsp-horizon .fsh-nav-icon{width:30px;height:30px;min-width:30px;min-height:30px;border-radius:9px}
  #fsp-horizon .fsh-nav-icon img{width:21px;height:21px}
  #fsp-horizon .fsh-search{flex:0 0 44px;width:44px;min-width:44px;height:44px}
  #fsp-horizon .fsh-shortcut{width:37px}
  #fsp-horizon .fsh-studio{min-width:80px;height:44px;min-height:44px;padding:0 10px!important}
  #fsp-horizon .fspuser-trigger{min-width:105px!important;padding-right:7px!important;gap:5px!important}
  #fsp-horizon .fspuser-name{max-width:64px;font-size:10px}
  #fsp-horizon .fsh-auth{min-width:112px;grid-template-columns:20px auto 8px;padding:6px}
  #fsp-horizon .fsh-auth-copy small{display:none}
}

/* Tablet: two-row header, still clean and non-sticky-directional. */
@media(max-width:1100px){
  #fsp-horizon{height:auto;min-height:150px;margin-bottom:16px}
  #fsp-horizon .fsh-inner,
  #fsp-horizon.is-sticky .fsh-inner,
  #fsp-horizon.is-sticky.is-compact .fsh-inner{
    position:relative;top:auto;left:auto;transform:none;
    width:calc(100% - 28px);height:auto;min-height:136px;margin:8px auto 0;padding:9px 10px;
    grid-template-columns:190px minmax(0,1fr);grid-template-rows:64px 54px;gap:6px 10px;border-radius:16px;
  }
  #fsp-horizon .fsh-brand{grid-column:1;grid-row:1;height:64px}
  #fsp-horizon .fsh-logo-frame,#fsp-horizon.is-compact .fsh-logo-frame{width:164px}
  #fsp-horizon .fsh-navigation{grid-column:2;grid-row:1}
  #fsp-horizon .fsh-tools{grid-column:1/-1;grid-row:2}
  #fsp-horizon .fsh-nav{gap:5px}
  #fsp-horizon .fsh-nav>.fspmega,#fsp-horizon .fsh-nav>.fspdiscover{flex:1 1 0;max-width:none;height:48px}
  #fsp-horizon .fsh-nav-trigger,#fsp-horizon.is-compact .fsh-nav-trigger{grid-template-columns:28px minmax(0,1fr) 10px;gap:5px!important;height:46px;min-height:46px;padding:4px 7px 4px 5px!important;font-size:10px!important;border-radius:11px!important}
  #fsp-horizon .fsh-nav-icon{width:28px;height:28px;min-width:28px;min-height:28px;border-radius:8px}
  #fsp-horizon .fsh-search{flex:0 0 42px;width:42px;min-width:42px;height:42px}
  #fsp-horizon .fspnotify-panel,#fsp-horizon .fsp-lang-menu,#fsp-horizon .fspuser-menu{position:absolute!important;top:calc(100% + 8px)!important;right:0!important;left:auto!important;width:min(420px,calc(100vw - 32px))!important;transform:none!important}
}

/* Mobile: logo + menu button, nav row, collapsible tools. */
@media(max-width:700px){
  #fsp-horizon{min-height:146px;margin-bottom:14px}
  #fsp-horizon .fsh-inner,
  #fsp-horizon.is-sticky .fsh-inner,
  #fsp-horizon.is-sticky.is-compact .fsh-inner{
    width:calc(100% - 20px);min-height:136px;margin-top:7px;padding:8px;
    grid-template-columns:minmax(0,1fr) 58px;grid-template-rows:52px 58px auto;gap:5px 6px;
  }
  #fsp-horizon .fsh-brand{grid-column:1;grid-row:1;height:52px;padding-left:2px}
  #fsp-horizon .fsh-logo-frame,#fsp-horizon.is-compact .fsh-logo-frame{width:155px}
  #fsp-horizon .fsh-mobile-toggle{display:flex;grid-column:2;grid-row:1;align-self:center;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:50px;height:46px;margin-left:auto;padding:3px;border:1px solid rgba(166,216,72,.28);border-radius:10px;background:#111f15;color:#bce65c;font-size:8px;font-weight:800;cursor:pointer}
  #fsp-horizon .fsh-mobile-toggle svg{width:19px;height:19px}
  #fsp-horizon .fsh-navigation{grid-column:1/-1;grid-row:2;height:58px;overflow-x:auto;overflow-y:visible;scrollbar-width:none}
  #fsp-horizon .fsh-navigation::-webkit-scrollbar{display:none}
  #fsp-horizon .fsh-nav{min-width:430px;gap:6px}
  #fsp-horizon .fsh-nav>.fspmega,#fsp-horizon .fsh-nav>.fspdiscover{flex:0 0 138px;max-width:138px;height:52px}
  #fsp-horizon .fsh-nav-trigger,#fsp-horizon.is-compact .fsh-nav-trigger{grid-template-columns:28px minmax(0,1fr) 10px;height:50px!important;min-height:50px;gap:5px!important;font-size:10px!important;padding:4px 7px 4px 5px!important;border-radius:11px!important}
  #fsp-horizon .fspmega-chevron,#fsp-horizon .fspdiscover-chevron{height:auto;line-height:1}
  #fsp-horizon .fsh-tools{display:none;grid-column:1/-1;grid-row:3;height:auto;min-height:0;flex-direction:column;align-items:stretch;gap:9px;padding:10px 4px 3px}
  #fsp-horizon.is-mobile-open .fsh-tools{display:flex}
  #fsp-horizon .fsh-search{flex:none;width:46px;min-width:46px;height:46px;align-self:flex-start}
  #fsp-horizon .fsh-actions{justify-content:center;flex-wrap:wrap;gap:5px}
  #fsp-horizon .fsh-shortcuts{height:48px}
  #fsp-horizon .fsh-shortcut{width:42px;height:48px;min-height:48px}
  #fsp-horizon .fsh-studio{min-width:94px;height:46px;min-height:46px}
  #fsp-horizon .fspuser-trigger{height:46px!important;min-height:46px!important;min-width:110px!important}
  #fsp-horizon .fsh-auth{height:46px;min-width:138px}
  #fsp-horizon .fspnotify-panel,#fsp-horizon .fsp-lang-menu,#fsp-horizon .fspuser-menu{top:calc(100% + 7px)!important;width:calc(100vw - 32px)!important;max-width:none!important}
}

@media(max-width:782px){body.admin-bar #fsp-horizon.is-sticky .fsh-inner{top:auto}}
@media(prefers-reduced-motion:reduce){#fsp-horizon *,#fsp-horizon *::before,#fsp-horizon *::after{transition:none!important;animation:none!important}}


/* ========================================================================
   Modern 1.4.11 — TOPBAR Concept 3 / Clean Portal
   One design system on the existing Split Horizon structure.
   The original WordPress game loop, all dropdown panels, search modal,
   account/rewards/notifications and direction-aware sticky JS stay intact.
   ======================================================================== */
@media (min-width:1101px) {
  #fsp-horizon.fsh-v1411 {
    height:96px;
    margin-bottom:18px;
  }
  #fsp-horizon.fsh-v1411 .fsh-inner,
  #fsp-horizon.fsh-v1411.is-sticky .fsh-inner {
    width:min(1960px,calc(100% - 30px));
    grid-template-columns:minmax(230px, 350px) minmax(330px,1fr) max-content;
    gap:clamp(10px,1.15vw,24px);
    height:80px;
    margin-top:10px;
    padding:8px clamp(12px,1.4vw,24px);
    border:1px solid rgba(163,206,98,.24);
    border-radius:22px;
    background:linear-gradient(115deg,rgba(38,64,35,.11) 0%,transparent 25%),
      linear-gradient(180deg,#111d17 0%,#0b1610 100%);
    box-shadow:inset 0 1px 0 rgba(242,255,224,.038), 0 12px 40px rgba(0,0,0,.25);
  }
  #fsp-horizon.fsh-v1411.is-sticky .fsh-inner {
    position:fixed;
    top:8px;
    left:50%;
    height:80px;
    margin-top:0;
    transform:translateX(-50%);
    background:linear-gradient(115deg,rgba(58,89,43,.11),transparent 28%),
      linear-gradient(180deg,rgba(17,30,22,.91),rgba(7,16,11,.88));
    -webkit-backdrop-filter:blur(15px) saturate(125%);
    backdrop-filter:blur(15px) saturate(125%);
  }
  body.admin-bar #fsp-horizon.fsh-v1411.is-sticky .fsh-inner{top:40px}
  #fsp-horizon.fsh-v1411.is-sticky.is-compact .fsh-inner {
    height:61px;
    margin-top:0;
    padding-top:5px;
    padding-bottom:5px;
    border-radius:16px;
    background:linear-gradient(180deg,rgba(18,32,23,.88),rgba(7,16,11,.82));
  }
  #fsp-horizon.fsh-v1411 .fsh-inner::after {
    left:24px;
    right:24px;
    background:linear-gradient(90deg,transparent,rgba(171,222,43,.08) 12%,rgba(175,224,59,.48) 52%,rgba(175,224,59,.08) 88%,transparent);
  }
  #fsp-horizon.fsh-v1411 .fsh-brand {
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:18px;
    padding:0;
    white-space:normal;
  }
  #fsp-horizon.fsh-v1411 .fsh-logo-frame {width:clamp(174px,13vw,225px)}
  #fsp-horizon.fsh-v1411 .fsh-brand-caption {
    display:block;
    max-width:125px;
    padding:0 0 0 14px;
    border-left:1px solid rgba(173,221,71,.32);
    color:#819080;
    font-size:8px;
    font-weight:850;
    line-height:1.42;
    letter-spacing:.10em;
    white-space:normal;
    overflow-wrap:normal;
  }
  #fsp-horizon.fsh-v1411.is-compact .fsh-logo-frame{width:clamp(156px,11vw,190px)}
  #fsp-horizon.fsh-v1411.is-compact .fsh-brand-caption{font-size:7px;max-width:110px}
  #fsp-horizon.fsh-v1411 .fsh-navigation {
    z-index:5;
    min-width:0;
  }
  #fsp-horizon.fsh-v1411 .fsh-nav {
    width:100%;
    justify-content:flex-start;
    gap:clamp(6px,.5vw,11px);
  }
  #fsp-horizon.fsh-v1411 .fsh-nav > .fspmega,
  #fsp-horizon.fsh-v1411 .fsh-nav > .fspdiscover {
    flex:0 1 158px;
    min-width:0;
    max-width:174px;
    height:55px;
  }
  #fsp-horizon.fsh-v1411 .fsh-nav-trigger {
    height:52px;
    min-height:52px;
    padding:5px 11px 5px 7px!important;
    border-radius:15px!important;
    border-color:rgba(var(--fsh-nav-rgb),.19)!important;
    background:linear-gradient(180deg,rgba(19,31,22,.95),rgba(10,20,14,.94))!important;
    color:#e7eee3!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.028)!important;
  }
  #fsp-horizon.fsh-v1411 .fsh-nav-trigger:hover,
  #fsp-horizon.fsh-v1411 .fsh-nav-trigger.is-active,
  #fsp-horizon.fsh-v1411 .fsh-nav-trigger[aria-expanded="true"] {
    border-color:rgba(var(--fsh-nav-rgb),.47)!important;
    background:linear-gradient(180deg,rgba(var(--fsh-nav-rgb),.095),rgba(11,20,14,.93))!important;
    box-shadow:0 0 0 1px rgba(var(--fsh-nav-rgb),.035),inset 0 1px 0 rgba(255,255,255,.035)!important;
  }
  #fsp-horizon.fsh-v1411 .fsh-nav-trigger::before{
    left:22px;
    right:22px;
    height:2px;
    box-shadow:0 0 10px rgba(var(--fsh-nav-rgb),.16);
  }
  #fsp-horizon.fsh-v1411 .fsh-nav-icon {
    background:rgba(var(--fsh-nav-rgb),.08);
    border-color:rgba(var(--fsh-nav-rgb),.17);
    box-shadow:none;
  }
  #fsp-horizon.fsh-v1411 .fsh-nav-trigger .fsh-nav-label{font-weight:800}
  #fsp-horizon.fsh-v1411 .fsh-tools{
    justify-content:flex-end;
    gap:13px;
    min-width:0;
  }
  /* The search separator must travel WITH the search button. A separate
     flex pseudo-item is left behind by the search button's auto margin. */
  #fsp-horizon.fsh-v1411 .fsh-tools::before {
    content:none;
    display:none;
  }
  #fsp-horizon.fsh-v1411 .fsh-search {
    flex:0 0 46px;
    width:46px;
    min-width:46px;
    height:46px;
    margin:0 0 0 auto;
    border-radius:14px;
    border-color:rgba(167,226,41,.36);
    background:linear-gradient(180deg,rgba(25,42,26,.65),rgba(8,17,13,.94));
    box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
  }
  #fsp-horizon.fsh-v1411 .fsh-search::before {
    content:"";
    position:absolute;
    left:-18px;
    top:50%;
    width:1px;
    height:32px;
    transform:translateY(-50%);
    background:rgba(181,221,136,.20);
    pointer-events:none;
  }
  #fsp-horizon.fsh-v1411 .fsh-search::after {display:none}
  #fsp-horizon.fsh-v1411 .fsh-actions{
    gap:clamp(4px,.42vw,9px);
  }
  #fsp-horizon.fsh-v1411 .fsh-actions::before {
    content:"";
    align-self:center;
    display:block;
    flex:0 0 1px;
    width:1px;
    height:30px;
    margin:0 5px 0 0;
    background:rgba(181,221,136,.13);
    pointer-events:none;
  }
  #fsp-horizon.fsh-v1411 .fsh-shortcut {
    color:#d2dbd0!important;
  }
  #fsp-horizon.fsh-v1411 .fsh-studio {
    min-height:46px;
    height:46px;
    padding:0 13px!important;
    border-color:rgba(165,220,54,.25)!important;
    background:linear-gradient(180deg,rgba(50,75,27,.24),rgba(16,29,17,.83));
    box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
  }
  #fsp-horizon.fsh-v1411 .fsh-account .fspuser-trigger{
    border-color:rgba(164,210,90,.19)!important;
    border-radius:14px!important;
    background:rgba(13,25,18,.88)!important;
  }
  #fsp-horizon.fsh-v1411 .fsh-account .fspuser-trigger:hover,
  #fsp-horizon.fsh-v1411 .fsh-account .fspuser-trigger[aria-expanded="true"]{
    border-color:rgba(169,221,74,.43)!important;
  }
  #fsp-horizon.fsh-v1411.is-compact .fsh-nav>.fspmega,
  #fsp-horizon.fsh-v1411.is-compact .fsh-nav>.fspdiscover{height:43px;flex:0 1 133px;max-width:145px}
  #fsp-horizon.fsh-v1411.is-compact .fsh-nav-trigger{
    height:41px;min-height:41px;padding:3px 8px 3px 5px!important;border-radius:11px!important;
  }
  #fsp-horizon.fsh-v1411.is-compact .fsh-search{flex-basis:42px;width:42px;min-width:42px;height:42px;margin-left:auto}
  #fsp-horizon.fsh-v1411.is-compact .fsh-search::before{height:26px;left:-16px}
  #fsp-horizon.fsh-v1411.is-compact .fsh-studio{height:42px;min-height:42px}
}
@media (min-width:1101px) and (max-width:1699px) {
  #fsp-horizon.fsh-v1411 .fsh-inner,
  #fsp-horizon.fsh-v1411.is-sticky .fsh-inner{
    grid-template-columns:minmax(190px,260px) minmax(315px,1fr) max-content;
    gap:clamp(8px,.8vw,15px);
    padding-left:clamp(10px,.9vw,17px);
    padding-right:clamp(8px,.9vw,15px);
  }
  #fsp-horizon.fsh-v1411 .fsh-logo-frame{width:clamp(166px,12vw,197px)}
  #fsp-horizon.fsh-v1411 .fsh-brand{gap:12px}
  #fsp-horizon.fsh-v1411 .fsh-brand-caption{max-width:92px;font-size:7px;letter-spacing:.035em;padding-left:10px}
  #fsp-horizon.fsh-v1411 .fsh-tools{gap:7px}
  #fsp-horizon.fsh-v1411 .fsh-actions{gap:5px}
  #fsp-horizon.fsh-v1411 .fsh-actions::before{margin-right:2px}
  #fsp-horizon.fsh-v1411 .fsh-nav>.fspmega,
  #fsp-horizon.fsh-v1411 .fsh-nav>.fspdiscover{flex:1 1 0;max-width:156px}
}
@media (min-width:1101px) and (max-width:1379px) {
  #fsp-horizon.fsh-v1411 .fsh-inner,
  #fsp-horizon.fsh-v1411.is-sticky .fsh-inner{
    grid-template-columns:184px minmax(295px,1fr) max-content;
    gap:8px;
  }
  #fsp-horizon.fsh-v1411 .fsh-brand-caption{display:none}
  #fsp-horizon.fsh-v1411 .fsh-logo-frame{width:166px}
  #fsp-horizon.fsh-v1411 .fsh-tools{gap:6px}
  #fsp-horizon.fsh-v1411 .fsh-actions::before{display:none}
  #fsp-horizon.fsh-v1411 .fsh-search::before{display:none}
  #fsp-horizon.fsh-v1411 .fsh-nav{gap:5px}
  #fsp-horizon.fsh-v1411 .fsh-nav>.fspmega,
  #fsp-horizon.fsh-v1411 .fsh-nav>.fspdiscover{max-width:138px}
}
/* Future FSXX game roots are rendered by the existing PHP loop. Conserve label
   space automatically instead of assuming only FS25/FS22 exist. */
@media (min-width:1101px) {
  #fsp-horizon.fsh-v1411 .fsh-nav[data-fsh-many-games] .fsh-nav-trigger{
    grid-template-columns:30px minmax(0,1fr) 10px;
    gap:5px!important;
    padding:4px 7px 4px 5px!important;
    font-size:10.5px!important;
  }
  #fsp-horizon.fsh-v1411 .fsh-nav[data-fsh-many-games] .fsh-nav-icon{width:29px;min-width:29px;height:29px;min-height:29px}
  #fsp-horizon.fsh-v1411 .fsh-nav[data-fsh-many-games] .fsh-nav-icon img{width:22px;height:22px}
}
/* Tablet/mobile keep the native navigation and collapsible controls intact. */
@media(max-width:1100px){
  #fsp-horizon.fsh-v1411 .fsh-inner,
  #fsp-horizon.fsh-v1411.is-sticky .fsh-inner,
  #fsp-horizon.fsh-v1411.is-sticky.is-compact .fsh-inner{
    border-color:rgba(163,206,98,.23);
    background:linear-gradient(180deg,#121e17,#0a1510);
    box-shadow:inset 0 1px 0 rgba(242,255,224,.03),0 12px 30px rgba(0,0,0,.24);
  }
  #fsp-horizon.fsh-v1411 .fsh-nav-trigger{
    border-color:rgba(var(--fsh-nav-rgb),.22)!important;
    background:linear-gradient(180deg,#132119,#0b1811)!important;
  }
  #fsp-horizon.fsh-v1411 .fsh-search::after{display:none}
  #fsp-horizon.fsh-v1411 .fsh-shortcut,
  #fsp-horizon.fsh-v1411 .fsh-studio{box-shadow:none}
}
@media(max-width:700px){
  #fsp-horizon.fsh-v1411 .fsh-nav {
    min-width:max(430px,calc(var(--fsh-game-count,2)*136px + 150px));
  }
  #fsp-horizon.fsh-v1411 .fsh-mobile-toggle{
    background:linear-gradient(180deg,#17291b,#0d1c13);
    border-color:rgba(170,227,61,.31);
  }
  #fsp-horizon.fsh-v1411 .fsh-search{
    background:linear-gradient(180deg,rgba(23,39,22,.92),rgba(8,18,11,.95));
  }
}


/* Wide desktop: leave the search beside the main game navigation and keep
   utility actions aligned at the right, just like the selected concept. */
@media(min-width:1700px){
  #fsp-horizon.fsh-v1411 .fsh-inner,
  #fsp-horizon.fsh-v1411.is-sticky .fsh-inner {
    grid-template-columns:350px minmax(490px,680px) minmax(500px,1fr);
  }
  #fsp-horizon.fsh-v1411 .fsh-tools{justify-content:flex-end}
  #fsp-horizon.fsh-v1411 .fsh-search{margin-left:auto}
  #fsp-horizon.fsh-v1411 .fsh-actions{margin-left:0}
}
/* If the automatic FSXX system gains four or more game generations, place
   their complete menus on a dedicated row at medium desktop widths.
   The PHP loop / menu IDs / existing JS are unchanged. */
@media(min-width:1101px) and (max-width:1699px){
  #fsp-horizon.fsh-v1411-many-games{height:150px}
  #fsp-horizon.fsh-v1411-many-games .fsh-inner,
  #fsp-horizon.fsh-v1411-many-games.is-sticky .fsh-inner {
    grid-template-columns:minmax(0,1fr) max-content;
    grid-template-rows:57px 49px;
    gap:5px 12px;
    min-height:0;
    height:132px;
    padding:9px 14px;
  }
  #fsp-horizon.fsh-v1411-many-games .fsh-brand{grid-column:1;grid-row:1;max-width:330px}
  #fsp-horizon.fsh-v1411-many-games .fsh-brand-caption{display:none}
  #fsp-horizon.fsh-v1411-many-games .fsh-navigation{grid-column:1/-1;grid-row:2}
  #fsp-horizon.fsh-v1411-many-games .fsh-tools{grid-column:2;grid-row:1}
  #fsp-horizon.fsh-v1411-many-games .fsh-nav{justify-content:center;gap:9px}
  #fsp-horizon.fsh-v1411-many-games .fsh-nav>.fspmega,
  #fsp-horizon.fsh-v1411-many-games .fsh-nav>.fspdiscover{
    flex:0 1 170px;min-width:0;max-width:170px;height:46px;
  }
  #fsp-horizon.fsh-v1411-many-games .fsh-nav-trigger{
    height:44px;min-height:44px;
  }
  #fsp-horizon.fsh-v1411-many-games.is-sticky.is-compact .fsh-inner{
    height:114px;grid-template-rows:46px 40px;padding-top:5px;padding-bottom:5px;
  }
  #fsp-horizon.fsh-v1411-many-games.is-sticky.is-compact .fsh-nav>.fspmega,
  #fsp-horizon.fsh-v1411-many-games.is-sticky.is-compact .fsh-nav>.fspdiscover{
    flex:0 1 156px;max-width:156px;height:39px;
  }
}
/* Mobile dropdowns must escape the horizontally scrollable game selector.
   Otherwise the game/discover panels render but are clipped off-screen. */
@media(max-width:700px){
  #fsp-horizon.fsh-v1411 .fspmega-menu-v642,
  #fsp-horizon.fsh-v1411 .fspdiscover-menu{
    position:fixed!important;
    top:150px!important;
    left:50vw!important;
    right:auto!important;
    transform:translateX(-50%)!important;
    width:calc(100vw - 24px)!important;
    max-width:none!important;
    max-height:min(70dvh,calc(100dvh - 165px))!important;
    z-index:100!important;
  }
  body.admin-bar #fsp-horizon.fsh-v1411 .fspmega-menu-v642,
  body.admin-bar #fsp-horizon.fsh-v1411 .fspdiscover-menu{top:198px!important}
}
