/* One visible entry point for the existing Discord community modal.
   Compact enough for top navigation; icon-only on narrower viewports. */
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-discord-invite{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 auto!important;gap:8px!important;min-height:42px!important;height:42px!important;
  min-width:126px!important;width:auto!important;padding:0 12px!important;
  border:1px solid rgba(186,201,255,.65)!important;border-radius:12px!important;
  background:linear-gradient(125deg,rgba(100,111,237,.43),rgba(63,120,212,.42))!important;
  color:#f7f9ff!important;font-size:12px!important;font-weight:780!important;line-height:1.1!important;
  box-shadow:inset 0 1px rgba(255,255,255,.23),0 3px 14px rgba(42,63,145,.19)!important;
  transition:border-color .18s,background .18s,box-shadow .18s,transform .18s!important;
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-discord-invite:hover{
  border-color:rgba(223,232,255,.94)!important;
  background:linear-gradient(125deg,rgba(113,128,245,.56),rgba(69,137,237,.54))!important;
  box-shadow:inset 0 1px rgba(255,255,255,.27),0 6px 17px rgba(42,63,145,.30)!important;
  transform:translateY(-1px);
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-discord-invite:focus-visible{
  outline:2px solid #b6e1ff!important;outline-offset:3px!important;
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-discord-mark{
  display:block!important;flex:0 0 23px!important;width:23px!important;height:23px!important;
  object-fit:contain;fill:currentColor!important;
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-discord-label{
  display:inline-block!important;white-space:nowrap!important;
}
@media(max-width:1420px){
 html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-discord-invite{
  min-width:43px!important;width:43px!important;padding:0!important;
 }
 html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-discord-label{display:none!important}
}
@media(max-width:860px),(pointer:coarse) and (orientation:landscape) and (max-height:600px) and (max-width:1100px){
 html[data-gtt-design-mode="workbench"] body[data-theme] #wb2-shell .wb2-actions .wb2-discord-invite{
  flex:0 0 44px!important;min-width:44px!important;width:44px!important;
  min-height:44px!important;height:44px!important;padding:0!important;border-radius:13px!important;
 }
 html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-discord-label{display:none!important}
}
@media(prefers-reduced-motion:reduce){
 html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-discord-invite{transition:none!important;transform:none!important}
}

/* Player discovery lives with Discord and account controls, not main navigation
   or the separate search strip. The existing sidebar button remains the
   permission-aware route authority for guests, testers and signed-in users. */
html[data-gtt-design-mode="workbench"] body[data-theme] #wb2-shell .wb2-actions > .wb2-players-shortcut {
 display:inline-flex!important;
 align-items:center!important;
 justify-content:center!important;
 gap:7px!important;
 flex:0 0 43px!important;
 box-sizing:border-box!important;
 width:43px!important;min-width:43px!important;
 height:42px!important;min-height:42px!important;
 padding:0!important;margin:0!important;
 border:1px solid rgba(168,215,255,.40)!important;
 border-radius:12px!important;
 color:#eef8ff!important;
 background:linear-gradient(135deg,rgba(94,156,222,.25),rgba(28,70,123,.40))!important;
 box-shadow:inset 0 1px rgba(255,255,255,.18),0 3px 14px rgba(10,31,63,.16)!important;
 cursor:pointer!important;
 transition:border-color .16s,background .16s,box-shadow .16s!important;
}
html[data-gtt-design-mode="workbench"] body[data-theme] #wb2-shell .wb2-actions > .wb2-players-shortcut[hidden]{
 display:none!important;
}
html[data-gtt-design-mode="workbench"] body[data-theme] #wb2-shell .wb2-actions > .wb2-players-shortcut:is(:hover,.is-current){
 background:linear-gradient(135deg,rgba(120,192,252,.35),rgba(40,98,162,.53))!important;
 border-color:rgba(202,237,255,.72)!important;
}
html[data-gtt-design-mode="workbench"] body[data-theme] #wb2-shell .wb2-actions > .wb2-players-shortcut:focus-visible{
 outline:2px solid #b6e1ff!important;outline-offset:3px!important;
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-actions > .wb2-players-shortcut .wb2-players-art{
 display:block!important;
 flex:0 0 32px!important;
 width:32px!important;height:32px!important;
 object-fit:contain!important;
 image-rendering:pixelated;
}
html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-actions > .wb2-players-shortcut .wb2-players-label{
 display:none!important;
}
/* On narrow/mobile headers the existing More directory already lists Players.
   Keep its original navigation accessible without adding a fourth icon. */
@media(max-width:860px), (pointer:coarse) and (orientation:landscape) and (max-height:600px) and (max-width:1100px){
 html[data-gtt-design-mode="workbench"] body[data-theme] #wb2-shell .wb2-actions > .wb2-players-shortcut{
  display:none!important;
 }
}
@media(prefers-reduced-motion:reduce){
 html[data-gtt-design-mode="workbench"] #wb2-shell .wb2-actions > .wb2-players-shortcut{transition:none!important}
}
