/* FS-Portal Modern 1.6.72.13 — Glass Pills / Farming accent.
   A standalone visual treatment of the existing Horizon header. Header, Core
   game discovery, search, notification and account handlers remain native.
   Home navigation is the FS-Portal brand logo; no duplicate button. */
#fsp-horizon.fsh-v1411.fsh-pills-glass{
  --pg-glass:rgba(36,57,60,.32);--pg-border:rgba(197,239,233,.23);
  --pg-text:#f0f8f5;--pg-green:#b2f37b;--pg-cyan:#65d7ee;
  height:88px;margin-bottom:12px;background:transparent!important;
}
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-inner{
  position:relative;z-index:2;
  display:grid!important;grid-template-columns:max-content minmax(0,1fr) max-content!important;
  align-items:center!important;column-gap:clamp(10px,1.2vw,20px)!important;
  width:min(1680px,calc(100% - 38px))!important;height:70px!important;
  min-height:0!important;margin:9px auto 0!important;padding:0!important;
  background:transparent!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;filter:none!important;overflow:visible!important;
  isolation:isolate;
  transition:height .24s ease,margin .24s ease!important;
}
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-inner::before,
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-inner::after{content:none!important;display:none!important}
/* A separate wordmark capsule with restrained FS field contours. */
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-brand{
  display:flex!important;align-items:center!important;justify-content:center!important;
  position:relative;z-index:4;flex:0 0 auto;min-width:0!important;
  width:clamp(193px,16vw,240px);height:65px!important;padding:8px 12px!important;
  border:1px solid rgba(169,232,200,.31)!important;border-radius:18px!important;
  background:linear-gradient(110deg,rgba(22,70,59,.42),rgba(23,38,44,.42) 63%,rgba(34,44,49,.28)),url('../../images/header/hud-farm-contours.svg') center bottom/100% 43% no-repeat!important;
  box-shadow:0 10px 30px rgba(0,9,16,.21),inset 0 1px rgba(236,255,247,.15),0 0 19px rgba(73,228,159,.065)!important;
  -webkit-backdrop-filter:blur(22px) saturate(155%);backdrop-filter:blur(22px) saturate(155%);
  transition:border-color .23s,transform .23s,box-shadow .23s!important;
  color:var(--pg-text)!important;
}
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-brand:hover{border-color:rgba(174,244,164,.55)!important;transform:translateY(-1px);box-shadow:0 13px 30px rgba(0,9,16,.26),0 0 22px rgba(93,228,148,.13)!important}
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-brand::before,
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-brand::after{content:none!important;display:none!important}
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-logo-frame{width:clamp(168px,13.9vw,203px)!important;max-width:100%;aspect-ratio:296/67}
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-brand-caption{display:none!important}
/* Individual navigation pills: transparent outside, glass only on each action. */
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-navigation{
  z-index:6!important;min-width:0!important;height:65px!important;display:flex!important;align-items:center!important;
  padding:0!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;overflow:visible!important;
}
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-navigation::before,
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-navigation::after{content:none!important;display:none!important}
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-nav{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  width:max-content!important;max-width:100%;min-width:0!important;height:auto!important;
  gap:clamp(7px,.8vw,12px)!important;padding:0!important;margin:0!important;
}
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-nav>.fspmega,
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-nav>.fspdiscover{
  flex:0 1 auto!important;min-width:0!important;max-width:none!important;
  height:50px!important;align-self:center!important;
}
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-nav-trigger{
  display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;
  width:auto!important;height:48px!important;min-height:48px!important;max-width:100%!important;
  gap:8px!important;padding:5px clamp(10px,1vw,15px)!important;margin:0!important;
  border:1px solid var(--pg-border)!important;border-radius:15px!important;
  background:linear-gradient(145deg,rgba(77,105,110,.27),rgba(21,37,44,.39))!important;
  color:var(--pg-text)!important;
  box-shadow:inset 0 1px rgba(240,255,255,.12),0 7px 23px rgba(3,15,20,.13)!important;
  -webkit-backdrop-filter:blur(20px) saturate(145%);backdrop-filter:blur(20px) saturate(145%);
  font-size:12px!important;font-weight:760!important;line-height:1.15!important;white-space:nowrap;
  transition:background .22s,border-color .22s,box-shadow .22s,transform .22s!important;
}
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-nav-trigger::before,
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-nav-trigger::after{display:none!important;content:none!important}
#fsp-horizon.fsh-v1411.fsh-pills-glass .fspmega-game-fs25 .fsh-nav-trigger{border-color:rgba(155,236,136,.3)!important}
#fsp-horizon.fsh-v1411.fsh-pills-glass .fspmega-game-fs22 .fsh-nav-trigger{border-color:rgba(107,203,237,.33)!important}
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-nav-trigger:is(:hover,[aria-expanded="true"],.is-active){
  transform:translateY(-2px)!important;border-color:rgba(var(--fsh-nav-rgb,143,235,194),.65)!important;
  background:linear-gradient(145deg,rgba(var(--fsh-nav-rgb,143,235,194),.15),rgba(20,46,46,.38))!important;
  box-shadow:0 7px 23px rgba(5,20,24,.2),0 0 19px rgba(var(--fsh-nav-rgb,143,235,194),.16),inset 0 1px rgba(255,255,255,.17)!important;
}
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-nav-icon{
  flex:0 0 27px!important;width:27px!important;height:27px!important;
  min-width:27px!important;min-height:27px!important;border:0!important;border-radius:8px!important;
  background:rgba(var(--fsh-nav-rgb,143,235,194),.13)!important;box-shadow:none!important;
}
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-nav-icon img{width:23px!important;height:23px!important;max-width:100%!important;object-fit:contain!important}
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-nav-icon svg{width:18px;height:18px}
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-nav-label{font-weight:770!important}
#fsp-horizon.fsh-v1411.fsh-pills-glass .fspmega-chevron,
#fsp-horizon.fsh-v1411.fsh-pills-glass .fspdiscover-chevron{font-size:11px;opacity:.6}
/* Search, Renoma, Studio and account stay native; individual glass surfaces. */
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-tools{
  position:relative;z-index:7;display:flex!important;align-items:center!important;justify-content:flex-end!important;
  flex:0 0 auto;min-width:0!important;height:65px!important;gap:7px!important;padding:0!important;
  border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
}
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-tools::before,
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-tools::after{content:none!important;display:none!important}
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-actions{display:flex!important;align-items:center!important;gap:clamp(3px,.45vw,8px)!important}
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-actions::before{content:none!important;display:none!important}
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-search{
  flex:0 0 42px!important;width:42px!important;min-width:42px!important;height:42px!important;
  margin:0!important;border-radius:50%!important;border:1px solid rgba(175,228,233,.28)!important;
  background:linear-gradient(145deg,rgba(79,109,115,.23),rgba(25,41,46,.38))!important;color:#d0f4f1!important;
  box-shadow:inset 0 1px rgba(255,255,255,.11),0 8px 18px rgba(0,11,17,.15)!important;
  -webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);
}
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-search::before,
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-search::after{content:none!important;display:none!important}
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-search:hover{border-color:rgba(141,247,228,.63)!important;background:rgba(63,117,120,.36)!important}
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-shortcut{background:transparent!important;box-shadow:none!important}
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-studio{
  height:43px!important;min-height:43px!important;padding:0 11px!important;border-radius:13px!important;
  background:rgba(35,71,64,.20)!important;border:1px solid rgba(137,229,184,.34)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.06)!important;
}
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-account .fspuser-trigger{
  height:49px!important;min-height:49px!important;border-radius:16px!important;
  background:linear-gradient(160deg,rgba(49,72,76,.33),rgba(20,34,42,.53))!important;
  border:1px solid rgba(179,219,228,.3)!important;box-shadow:inset 0 1px rgba(255,255,255,.1),0 8px 22px rgba(1,15,24,.18)!important;
  -webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);
}
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-account .fspuser-trigger:hover{border-color:rgba(149,246,179,.6)!important}
#fsp-horizon.fsh-v1411.fsh-pills-glass .fspmega-menu,
#fsp-horizon.fsh-v1411.fsh-pills-glass .fspdiscover-menu,
#fsp-horizon.fsh-v1411.fsh-pills-glass .fspuser-menu{z-index:5500}
/* Popovers anchor to the whole header surface, not a narrow game button. */
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-navigation,
#fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-nav{position:static!important}
/* Laptop / responsive two-row composition without hiding native controls. */
@media (min-width:1101px) and (max-width:1480px){
  #fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-inner{column-gap:9px!important;width:calc(100% - 24px)!important}
  #fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-brand{width:185px!important}
  #fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-logo-frame{width:165px!important}
  #fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-nav{gap:6px!important}
  #fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-nav-trigger{padding:5px 8px!important;font-size:10.5px!important;gap:4px!important}
  #fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-nav-icon{width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important}
  #fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-tools{gap:4px!important}
  #fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-actions{gap:3px!important}
  #fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-studio{padding-inline:8px!important}
}
@media (min-width:1101px) and (max-width:1210px){
  #fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-inner{
    grid-template-columns:max-content minmax(0,1fr)!important;grid-template-rows:62px 53px!important;
    gap:4px 10px!important;height:127px!important;
  }
  #fsp-horizon.fsh-v1411.fsh-pills-glass{height:148px!important}
  #fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-brand{grid-column:1;grid-row:1}
  #fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-tools{grid-column:2;grid-row:1}
  #fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-navigation{grid-column:1/-1;grid-row:2;justify-content:center!important}
  #fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-nav{justify-content:center!important}
}
@media(max-width:1100px){
  #fsp-horizon.fsh-v1411.fsh-pills-glass{height:147px!important;margin-bottom:12px}
  #fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-inner,
  #fsp-horizon.fsh-v1411.fsh-pills-glass.is-sticky .fsh-inner,
  #fsp-horizon.fsh-v1411.fsh-pills-glass.is-sticky.is-compact .fsh-inner{
    position:relative!important;left:auto!important;top:auto!important;transform:none!important;
    display:grid!important;grid-template-columns:max-content minmax(0,1fr)!important;
    grid-template-rows:66px 55px!important;gap:5px 10px!important;
    width:calc(100% - 24px)!important;height:129px!important;min-height:0!important;
    margin:8px auto 0!important;padding:0!important;
  }
  #fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-brand{grid-column:1;grid-row:1;width:200px!important;height:60px!important}
  #fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-logo-frame{width:173px!important}
  #fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-navigation{grid-column:1/-1;grid-row:2;justify-content:center!important;height:53px!important}
  #fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-nav{justify-content:center!important}
  #fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-tools{grid-column:2;grid-row:1;height:60px!important}
}
/* Mobile: separate logo capsule, a menu control, swipeable game capsules. */
@media(max-width:700px){
  #fsp-horizon.fsh-v1411.fsh-pills-glass{height:auto!important;min-height:134px!important;margin-bottom:10px}
  #fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-inner,
  #fsp-horizon.fsh-v1411.fsh-pills-glass.is-sticky .fsh-inner,
  #fsp-horizon.fsh-v1411.fsh-pills-glass.is-sticky.is-compact .fsh-inner{
    grid-template-columns:minmax(0,1fr) 48px!important;
    grid-template-rows:53px 54px auto!important;gap:7px!important;
    width:calc(100% - 16px)!important;height:auto!important;min-height:118px!important;margin:7px auto 0!important;
  }
  #fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-brand{
    grid-column:1;grid-row:1;width:min(206px,calc(100vw - 84px))!important;height:52px!important;padding:4px 9px!important;
  }
  #fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-logo-frame{width:min(175px,calc(100vw - 110px))!important}
  #fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-mobile-toggle{
    display:flex!important;grid-column:2;grid-row:1;width:47px!important;height:46px!important;
    margin:0!important;align-self:center!important;align-items:center!important;justify-content:center!important;
    flex-direction:row!important;gap:0!important;padding:0!important;
    border-radius:14px!important;border:1px solid rgba(162,226,217,.34)!important;
    background:linear-gradient(155deg,rgba(64,95,97,.37),rgba(23,43,47,.48))!important;color:#ddf8ed!important;
    -webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);
  }
  #fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-mobile-toggle>span{display:none!important}
  #fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-navigation{
    grid-column:1/-1;grid-row:2;height:52px!important;min-height:0!important;
    justify-content:flex-start!important;overflow-x:auto!important;overflow-y:hidden!important;
    scrollbar-width:none;padding:0 1px!important;
  }
  #fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-navigation::-webkit-scrollbar{display:none}
  #fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-nav{
    justify-content:flex-start!important;min-width:max-content!important;width:max-content!important;
    max-width:none!important;gap:8px!important;height:51px!important;
  }
  #fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-nav>.fspmega,
  #fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-nav>.fspdiscover{flex:0 0 auto!important;height:47px!important}
  #fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-nav-trigger{height:44px!important;min-height:44px!important;padding:4px 10px!important}
  #fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-tools{display:none!important;grid-column:1/-1;grid-row:3;min-height:0!important;height:auto!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;padding:7px 0!important}
  #fsp-horizon.fsh-v1411.fsh-pills-glass.is-mobile-open .fsh-tools{display:flex!important}
  #fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-actions{justify-content:center!important;flex-wrap:wrap!important;row-gap:8px!important}
  #fsp-horizon.fsh-v1411.fsh-pills-glass .fsh-search{align-self:center}
}
/* Compact sticky state, same layout but smaller independent glass capsules. */
@media(min-width:1101px){
  #fsp-horizon.fsh-v1411.fsh-pills-glass.is-sticky .fsh-inner{
    position:fixed!important;left:50%!important;top:8px!important;transform:translateX(-50%)!important;margin:0!important;z-index:4700;
  }
  body.admin-bar #fsp-horizon.fsh-v1411.fsh-pills-glass.is-sticky .fsh-inner{top:40px!important}
  #fsp-horizon.fsh-v1411.fsh-pills-glass.is-sticky.is-compact .fsh-inner{height:57px!important}
  #fsp-horizon.fsh-v1411.fsh-pills-glass.is-sticky.is-compact .fsh-brand{height:53px!important}
  #fsp-horizon.fsh-v1411.fsh-pills-glass.is-sticky.is-compact .fsh-logo-frame{width:clamp(155px,12vw,188px)!important}
  #fsp-horizon.fsh-v1411.fsh-pills-glass.is-sticky.is-compact .fsh-navigation,
  #fsp-horizon.fsh-v1411.fsh-pills-glass.is-sticky.is-compact .fsh-tools{height:55px!important}
  #fsp-horizon.fsh-v1411.fsh-pills-glass.is-sticky.is-compact .fsh-nav>.fspmega,
  #fsp-horizon.fsh-v1411.fsh-pills-glass.is-sticky.is-compact .fsh-nav>.fspdiscover{height:43px!important}
  #fsp-horizon.fsh-v1411.fsh-pills-glass.is-sticky.is-compact .fsh-nav-trigger{height:41px!important;min-height:41px!important}
  #fsp-horizon.fsh-v1411.fsh-pills-glass.is-sticky.is-compact .fsh-search{width:37px!important;min-width:37px!important;flex-basis:37px!important;height:37px!important}
  #fsp-horizon.fsh-v1411.fsh-pills-glass.is-sticky.is-compact .fsh-studio{height:39px!important;min-height:39px!important}
  #fsp-horizon.fsh-v1411.fsh-pills-glass.is-sticky.is-compact .fsh-account .fspuser-trigger{height:42px!important;min-height:42px!important}
}
/* When 4+ real game roots exist, preserve every choice in a second row. */
@media(min-width:1101px) and (max-width:1699px){
  #fsp-horizon.fsh-v1411.fsh-pills-glass.fsh-v1411-many-games{height:149px!important}
  #fsp-horizon.fsh-v1411.fsh-pills-glass.fsh-v1411-many-games .fsh-inner{
    grid-template-columns:max-content minmax(0,1fr)!important;grid-template-rows:61px 55px!important;
    gap:5px 10px!important;height:128px!important;
  }
  #fsp-horizon.fsh-v1411.fsh-pills-glass.fsh-v1411-many-games .fsh-brand{grid-column:1;grid-row:1}
  #fsp-horizon.fsh-v1411.fsh-pills-glass.fsh-v1411-many-games .fsh-tools{grid-column:2;grid-row:1}
  #fsp-horizon.fsh-v1411.fsh-pills-glass.fsh-v1411-many-games .fsh-navigation{grid-column:1/-1;grid-row:2;justify-content:center!important}
  #fsp-horizon.fsh-v1411.fsh-pills-glass.fsh-v1411-many-games .fsh-nav{justify-content:center!important}
  #fsp-horizon.fsh-v1411.fsh-pills-glass.fsh-v1411-many-games.is-sticky.is-compact .fsh-inner{height:114px!important}
}
@media(prefers-reduced-motion:reduce){
  #fsp-horizon.fsh-v1411.fsh-pills-glass *,#fsp-horizon.fsh-v1411.fsh-pills-glass *::before,#fsp-horizon.fsh-v1411.fsh-pills-glass *::after{animation:none!important;transition:none!important}
}
/* Two-row laptop layout must remain two rows when sticky/compact. */
@media(min-width:1101px) and (max-width:1210px){
  #fsp-horizon.fsh-v1411.fsh-pills-glass.is-sticky.is-compact .fsh-inner{
    grid-template-rows:54px 46px!important;height:113px!important;row-gap:4px!important;
  }
  #fsp-horizon.fsh-v1411.fsh-pills-glass.is-sticky.is-compact .fsh-brand{height:51px!important}
  #fsp-horizon.fsh-v1411.fsh-pills-glass.is-sticky.is-compact .fsh-navigation,
  #fsp-horizon.fsh-v1411.fsh-pills-glass.is-sticky.is-compact .fsh-tools{height:48px!important}
}
