/* FIX278 — six-route dock. Equal cells, readable labels and consistent Admin dock.
   Scoped only to the authenticated bottom navigation instances. */
html body #profileBottomNav.gcAppBottomNav.gcCustomNavReady,
html body #gcAdminUnifiedNav.gcAdminFloatingNav{
 --gc-nav-columns:6!important;
 display:grid!important;
 grid-template-columns:repeat(6,minmax(0,1fr))!important;
 box-sizing:border-box!important;
 width:min(620px,calc(100vw - 18px))!important;
 max-width:calc(100vw - 18px)!important;
 gap:3px!important;
 padding:6px!important;
 overflow:hidden!important;
}
html body #profileBottomNav.gcAppBottomNav.gcCustomNavReady[hidden]{display:none!important}
html body #profileBottomNav.gcAppBottomNav.gcCustomNavReady>.gcAppNavButton,
html body #gcAdminUnifiedNav.gcAdminFloatingNav>.gcAdminFloatButton{
 width:100%!important;min-width:0!important;max-width:none!important;
 min-height:56px!important;padding:5px 1px!important;margin:0!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 flex-direction:column!important;gap:4px!important;
 overflow:visible!important;box-sizing:border-box!important;
 font-size:9px!important;line-height:1.18!important;letter-spacing:0!important;
 touch-action:manipulation;-webkit-tap-highlight-color:transparent;
}
html body #profileBottomNav.gcAppBottomNav.gcCustomNavReady>.gcAppNavButton .gcAppNavIcon,
html body #gcAdminUnifiedNav.gcAdminFloatingNav>.gcAdminFloatButton .gcAdminFloatIcon{
 flex:0 0 auto!important;max-width:100%!important;
 width:23px!important;height:23px!important;display:grid!important;place-items:center!important;
}
html body #profileBottomNav.gcAppBottomNav.gcCustomNavReady>.gcAppNavButton .gcAppNavIcon svg,
html body #gcAdminUnifiedNav.gcAdminFloatingNav>.gcAdminFloatButton .gcAdminFloatIcon svg{
 width:21px!important;height:21px!important;max-width:100%!important;
}
html body #profileBottomNav.gcAppBottomNav.gcCustomNavReady>.gcAppNavButton[data-app-nav-page="profile"] .gcAppNavProfileIcon,
html body #gcAdminUnifiedNav.gcAdminFloatingNav>.gcAdminFloatButton[data-app-nav-page="profile"] .gcAdminFloatIcon{
 width:26px!important;height:26px!important;
}
html body #profileBottomNav.gcAppBottomNav.gcCustomNavReady>.gcAppNavButton .gcNavLabel278,
html body #gcAdminUnifiedNav.gcAdminFloatingNav>.gcAdminFloatButton>span:last-child{
 font-size:9px!important;line-height:1.15!important;
 display:block!important;max-width:100%!important;
 overflow:hidden!important;white-space:nowrap!important;
 text-overflow:clip!important;text-align:center!important;
 font-weight:800!important;letter-spacing:-.015em!important;
}
html body #profileBottomNav.gcAppBottomNav.gcCustomNavReady>.gcAppNavButton[data-app-nav-page="marketplace"]::after,
html body #gcAdminUnifiedNav.gcAdminFloatingNav>.gcAdminFloatButton[data-app-nav-page="marketplace"]::after{
 content:none!important;display:none!important;
}
html body #profileBottomNav.gcAppBottomNav.gcCustomNavReady>.gcAppNavButton:focus-visible,
html body #gcAdminUnifiedNav.gcAdminFloatingNav>.gcAdminFloatButton:focus-visible{
 outline:2px solid #69dce5!important;outline-offset:-3px!important;
}
#gcCustomNavigationSettings .gcCustomNavSlotGrid{
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
 gap:9px!important;
}
#gcCustomNavigationSettings .gcCustomNavSlot{min-width:0!important}
#gcCustomNavigationSettings .gcCustomNavSlot select{width:100%!important;max-width:100%!important}
#gcCustomNavPreviewRail{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:4px!important}
#gcCustomNavPreviewRail>.gcCustomNavPreviewButton{
 min-width:0!important;max-width:100%!important;
 padding-inline:2px!important;overflow:hidden!important;
}
#gcCustomNavPreviewRail>.gcCustomNavPreviewButton b{
 overflow:hidden!important;text-overflow:clip!important;white-space:nowrap!important;
 font-size:9px!important;
}
@media(max-width:520px){
 html body #profileBottomNav.gcAppBottomNav.gcCustomNavReady,
 html body #gcAdminUnifiedNav.gcAdminFloatingNav{
  width:calc(100vw - 10px)!important;max-width:calc(100vw - 10px)!important;
  gap:2px!important;padding-inline:5px!important;
 }
 html body #profileBottomNav.gcAppBottomNav.gcCustomNavReady>.gcAppNavButton,
 html body #gcAdminUnifiedNav.gcAdminFloatingNav>.gcAdminFloatButton{
  min-height:54px!important;padding-inline:0!important;font-size:8.5px!important;
 }
 html body #profileBottomNav.gcAppBottomNav.gcCustomNavReady>.gcAppNavButton .gcNavLabel278,
 html body #gcAdminUnifiedNav.gcAdminFloatingNav>.gcAdminFloatButton>span:last-child{
  font-size:8.25px!important;
 }
 #gcCustomNavigationSettings .gcCustomNavSlotGrid{grid-template-columns:1fr!important}
}
@media(max-width:365px){
 html body #profileBottomNav.gcAppBottomNav.gcCustomNavReady>.gcAppNavButton,
 html body #gcAdminUnifiedNav.gcAdminFloatingNav>.gcAdminFloatButton{
  min-height:51px!important;gap:3px!important;
 }
 html body #profileBottomNav.gcAppBottomNav.gcCustomNavReady>.gcAppNavButton .gcAppNavIcon,
 html body #gcAdminUnifiedNav.gcAdminFloatingNav>.gcAdminFloatButton .gcAdminFloatIcon{
  width:21px!important;height:21px!important;
 }
 html body #profileBottomNav.gcAppBottomNav.gcCustomNavReady>.gcAppNavButton .gcNavLabel278,
 html body #gcAdminUnifiedNav.gcAdminFloatingNav>.gcAdminFloatButton>span:last-child{
  font-size:7.4px!important;
 }
}
html[data-gc-theme="path-of-the-wolf"] body #profileBottomNav.gcAppBottomNav,
html[data-gc-theme="path-of-the-wolf"] body #gcAdminUnifiedNav.gcAdminFloatingNav{
 border-color:var(--mp215-border,#725a3d)!important;
 background:linear-gradient(155deg,#1c1712,#100e0d)!important;
}
html[data-gc-theme="path-of-the-wolf"] body #profileBottomNav.gcAppBottomNav .gcAppNavButton.isActive,
html[data-gc-theme="path-of-the-wolf"] body #gcAdminUnifiedNav.gcAdminFloatingNav .gcAdminFloatButton.isActive{
 color:#f6e7ca!important;background:#302419!important;
}

/* FIX281 — standalone Multiplayer and Admin no longer inherit an
   unstyled light/legacy dock when the page has no shared Home theme CSS. */
html body :is(#profileBottomNav.gcAppBottomNav.gcCustomNavReady,#gcAdminUnifiedNav.gcAdminFloatingNav){
 position:fixed!important;z-index:2147481000!important;
 left:50%!important;right:auto!important;
 bottom:max(8px,calc(env(safe-area-inset-bottom,0px) + 8px))!important;
 transform:translateX(-50%)!important;
 height:auto!important;min-height:0!important;
 border:1px solid rgba(111,210,222,.22)!important;border-radius:23px!important;
 background:linear-gradient(155deg,rgba(10,31,41,.98),rgba(5,22,31,.98))!important;
 box-shadow:0 15px 46px rgba(0,0,0,.48),inset 0 1px rgba(220,255,255,.045)!important;
 -webkit-backdrop-filter:blur(18px)!important;backdrop-filter:blur(18px)!important;
 color:#bcd6df!important;isolation:isolate!important;
}
html body :is(#profileBottomNav.gcAppBottomNav.gcCustomNavReady,#gcAdminUnifiedNav.gcAdminFloatingNav)>.gcAppNavButton{
 position:relative!important;border:0!important;border-radius:16px!important;
 background:transparent!important;color:#8ca8b2!important;
 font-family:var(--gc-theme-body-font,Inter,system-ui,sans-serif)!important;
 font-weight:800!important;text-shadow:none!important;
 box-shadow:none!important;cursor:pointer!important;
}
html body :is(#profileBottomNav.gcAppBottomNav.gcCustomNavReady,#gcAdminUnifiedNav.gcAdminFloatingNav)>.gcAppNavButton:is(.isActive,[aria-current="page"]){
 background:linear-gradient(145deg,rgba(35,91,112,.5),rgba(36,38,80,.55))!important;
 color:#82e6ed!important;
}
html body :is(#profileBottomNav.gcAppBottomNav.gcCustomNavReady,#gcAdminUnifiedNav.gcAdminFloatingNav) .gcAppNavIcon{
 position:relative!important;line-height:0!important;color:inherit!important;
}
html body :is(#profileBottomNav.gcAppBottomNav.gcCustomNavReady,#gcAdminUnifiedNav.gcAdminFloatingNav) .gcAppNavIcon svg{
 fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;
}
html body #gcAdminUnifiedNav.gcAdminFloatingNav{grid-template-columns:repeat(var(--gc-nav-columns,6),minmax(0,1fr))!important}
html body #gcAdminUnifiedNav .gcAdminFloatButton .gcNavLabel278{color:inherit!important}
html body #gcAdminUnifiedNav .gcAdminFloatButton[data-app-nav-page="admin"] .gcAppNavIcon{color:#c5a6ff!important}
html body #gcAdminUnifiedNav .gcAdminFloatButton[data-app-nav-page="marketplace"] .gcMpNavSvg215{
 display:block!important;width:23px!important;height:23px!important;object-fit:contain!important;
}
html body :is(#profileBottomNav,#gcAdminUnifiedNav) .gcAppNavButton[data-app-nav-page="marketplace"] .gcNavIconBeta280{
 position:absolute!important;right:-5px!important;top:-4px!important;
 display:grid!important;place-items:center!important;
 width:11px!important;height:11px!important;padding:0!important;
 color:#b5f8f6!important;background:#103b42!important;
 border:1px solid rgba(99,218,220,.5)!important;border-radius:4px!important;
 font:800 8px/1 system-ui!important;pointer-events:none!important;
}
html body #gcAdminUnifiedNav .gcAdminFloatButton[data-app-nav-page="marketplace"]::before,
html body #gcAdminUnifiedNav .gcAdminFloatButton[data-app-nav-page="marketplace"] .gcAdminFloatIcon::after,
html body #gcAdminUnifiedNav .gcAdminFloatButton[data-app-nav-page="marketplace"] .gcAdminFloatIcon::before{
 content:none!important;display:none!important;
}
html[data-gc-theme="path-of-the-wolf"] body :is(#profileBottomNav.gcAppBottomNav.gcCustomNavReady,#gcAdminUnifiedNav.gcAdminFloatingNav){
 border-color:#73533b!important;
 background:linear-gradient(160deg,#211914,#100d0b)!important;
}
html[data-gc-theme="path-of-the-wolf"] body :is(#profileBottomNav.gcAppBottomNav.gcCustomNavReady,#gcAdminUnifiedNav.gcAdminFloatingNav)>.gcAppNavButton:is(.isActive,[aria-current="page"]){
 background:#38251d!important;color:#f0ceb3!important;
}

/* FIX281: respect the Admin hydration gate despite the six-column display override. */
html body #gcAdminUnifiedNav.gcAdminFloatingNav[hidden]{display:none!important;visibility:hidden!important;pointer-events:none!important}
/* The standalone Multiplayer page has no Home shell. Ensure safe-area clearance and a six-route dock that is not rendered as the legacy light button bar. */
html body.gcMpPage{padding-bottom:calc(118px + env(safe-area-inset-bottom))!important;scroll-padding-bottom:calc(118px + env(safe-area-inset-bottom))!important}
html body.gcMpPage #profileBottomNav.gcAppBottomNav:not(.gcCustomNavReady){display:none!important}

/* FIX283 — color-coded active Gold/Achievements and unframed icon artwork.
   Both member and Admin docks use the same rule; only the icon wrapper loses
   its background/border (the full-size button remains a clear tap target). */
html body :is(#profileBottomNav.gcAppBottomNav,#gcAdminUnifiedNav.gcAdminFloatingNav)
 .gcAppNavButton[data-app-nav-page="gold"] :is(.gcAppNavIcon,.gcAdminFloatIcon),
html body :is(#profileBottomNav.gcAppBottomNav,#gcAdminUnifiedNav.gcAdminFloatingNav)
 .gcAppNavButton[data-app-nav-page="marketplace"] :is(.gcAppNavIcon,.gcAdminFloatIcon){
  background:transparent!important;background-image:none!important;
  border:0!important;border-radius:0!important;outline:0!important;
  box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;
}
html body :is(#profileBottomNav.gcAppBottomNav,#gcAdminUnifiedNav.gcAdminFloatingNav)
 .gcAppNavButton[data-app-nav-page="gold"]:not(.isActive):not([aria-current="page"]) .gcAppNavIcon{
  color:#b6a47c!important;
}
html body :is(#profileBottomNav.gcAppBottomNav,#gcAdminUnifiedNav.gcAdminFloatingNav)
 .gcAppNavButton[data-app-nav-page="gold"]:is(.isActive,[aria-current="page"]){
  color:#ffda77!important;
  background:linear-gradient(145deg,rgba(112,76,17,.37),rgba(57,41,25,.29))!important;
}
html body :is(#profileBottomNav.gcAppBottomNav,#gcAdminUnifiedNav.gcAdminFloatingNav)
 .gcAppNavButton[data-app-nav-page="gold"]:is(.isActive,[aria-current="page"]) :is(.gcAppNavIcon,.gcAdminFloatIcon){
  color:#ffce52!important;
  filter:drop-shadow(0 0 4px rgba(255,204,68,.22))!important;
}
html body :is(#profileBottomNav.gcAppBottomNav,#gcAdminUnifiedNav.gcAdminFloatingNav)
 .gcAppNavButton[data-app-nav-page="gold"]:is(.isActive,[aria-current="page"]) :is(.gcNavLabel278,span:last-child){
  color:#ffda77!important;
}
html body :is(#profileBottomNav.gcAppBottomNav,#gcAdminUnifiedNav.gcAdminFloatingNav)
 .gcAppNavButton[data-app-nav-page="achievements"]:is(.isActive,[aria-current="page"]){
  color:#d8bdff!important;
  background:linear-gradient(145deg,rgba(102,60,154,.33),rgba(51,35,85,.38))!important;
}
html body :is(#profileBottomNav.gcAppBottomNav,#gcAdminUnifiedNav.gcAdminFloatingNav)
 .gcAppNavButton[data-app-nav-page="achievements"]:is(.isActive,[aria-current="page"]) :is(.gcAppNavIcon,.gcAdminFloatIcon,.gcNavLabel278){
  color:#d5b4ff!important;
}
html body #profileBottomNav.gcAppBottomNav.gcCustomNavReady
 .gcAppNavButton[data-app-nav-page="achievements"] .gcNavLabel278,
html body #gcAdminUnifiedNav.gcAdminFloatingNav
 .gcAppNavButton[data-app-nav-page="achievements"] .gcNavLabel278{
  font-size:8px!important;letter-spacing:-.025em!important;
}
@media(max-width:520px){
 html body #profileBottomNav.gcAppBottomNav.gcCustomNavReady
 .gcAppNavButton[data-app-nav-page="achievements"] .gcNavLabel278,
 html body #gcAdminUnifiedNav.gcAdminFloatingNav
 .gcAppNavButton[data-app-nav-page="achievements"] .gcNavLabel278{
   font-size:7.3px!important;letter-spacing:-.035em!important;
 }
}
@media(max-width:365px){
 html body #profileBottomNav.gcAppBottomNav.gcCustomNavReady
 .gcAppNavButton[data-app-nav-page="achievements"] .gcNavLabel278,
 html body #gcAdminUnifiedNav.gcAdminFloatingNav
 .gcAppNavButton[data-app-nav-page="achievements"] .gcNavLabel278{
   font-size:6.8px!important;
 }
}
html[data-gc-theme="path-of-the-wolf"] body
 :is(#profileBottomNav.gcAppBottomNav,#gcAdminUnifiedNav.gcAdminFloatingNav)
 .gcAppNavButton[data-app-nav-page="gold"]:is(.isActive,[aria-current="page"]){
  color:#fbd179!important;
  background:linear-gradient(145deg,rgba(108,76,30,.38),rgba(42,25,16,.6))!important;
}
html[data-gc-theme="path-of-the-wolf"] body
 :is(#profileBottomNav.gcAppBottomNav,#gcAdminUnifiedNav.gcAdminFloatingNav)
 .gcAppNavButton[data-app-nav-page="achievements"]:is(.isActive,[aria-current="page"]){
  color:#d3b2f8!important;
  background:linear-gradient(145deg,rgba(75,49,93,.38),rgba(40,23,43,.56))!important;
}
