/* Map top menu — compact essentials bar */
#game #hud-lobby-nav {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2147483100;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center;
  gap: 6px;
  width: max-content;
  max-width: min(1180px, calc(100vw - 16px));
  min-height: 54px;
  height: auto !important;
  padding: 7px 12px;
  border: 1px solid rgba(125, 200, 255, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(165deg, rgba(14, 28, 48, 0.92) 0%, rgba(6, 12, 24, 0.94) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 8px 28px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(160, 220, 255, 0.08) inset;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
#game #hud-lobby-nav::-webkit-scrollbar {
  display: none;
}
#lobby-nav,
#lobby-nav .nav-btn,
#game #hud-lobby-nav .slot-bar-item,
#game #hud-lobby-nav .slot-fb-ico,
#do-slotbar,
#do-slotbar img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
#game #hud-lobby-nav::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(170, 230, 255, 0.35), transparent);
  pointer-events: none;
}
#game #hud-lobby-nav.is-positioned {
  transform: none;
}
#game #hud-lobby-nav.is-dragging {
  cursor: grabbing;
  user-select: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 14px 36px rgba(0, 0, 0, 0.55),
    0 0 20px rgba(60, 170, 255, 0.18);
}

#game #hud-lobby-nav .hud-menu-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
#game #hud-lobby-nav .hud-menu-sep {
  width: 1px;
  height: 22px;
  margin: 0 2px;
  flex: 0 0 1px;
  border-radius: 1px;
  background: linear-gradient(180deg, transparent, rgba(140, 200, 255, 0.45), transparent);
  opacity: 0.85;
}

#game #hud-lobby-nav .slot-bar-grip {
  position: relative;
  width: 14px;
  height: 32px;
  min-width: 14px;
  flex: 0 0 14px;
  margin-right: 4px;
  border-radius: 999px;
  cursor: grab;
  touch-action: none;
  background:
    radial-gradient(circle, rgba(140, 210, 255, 0.7) 1px, transparent 1.2px) 2px 5px / 4px 7px,
    radial-gradient(circle, rgba(140, 210, 255, 0.7) 1px, transparent 1.2px) 2px 12px / 4px 7px,
    radial-gradient(circle, rgba(140, 210, 255, 0.7) 1px, transparent 1.2px) 2px 19px / 4px 7px;
  border: 1px solid rgba(120, 190, 240, 0.2);
  opacity: 0.7;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
#game #hud-lobby-nav .slot-bar-grip:hover {
  opacity: 1;
  border-color: rgba(150, 220, 255, 0.45);
}

#game #hud-lobby-nav .slot-bar-item {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0 !important;
  border: 1px solid rgba(100, 170, 220, 0.14);
  outline: none;
  cursor: pointer;
  background: rgba(18, 40, 68, 0.45);
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: 0 0 42px !important;
  border-radius: 11px;
  box-shadow: none;
  overflow: visible;
  filter: none;
  transform: none;
  float: none !important;
  clear: none !important;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}
#game #hud-lobby-nav .slot-bar-item::after { display: none; }
#game #hud-lobby-nav .slot-bar-item:hover,
#game #hud-lobby-nav .slot-bar-item:focus-visible {
  filter: none;
  transform: translateY(-1px);
  border-color: rgba(120, 210, 255, 0.55);
  background: rgba(36, 78, 120, 0.72);
  box-shadow: 0 0 0 1px rgba(100, 200, 255, 0.12), 0 4px 14px rgba(20, 100, 180, 0.28);
}
#game #hud-lobby-nav .slot-bar-item.is-active {
  filter: none;
  transform: none;
  border-color: rgba(70, 220, 170, 0.65);
  background: rgba(18, 72, 62, 0.72);
  box-shadow: 0 0 0 1px rgba(70, 220, 170, 0.18), 0 0 12px rgba(40, 200, 150, 0.28);
}
#game #hud-lobby-nav .slot-bar-item.is-home.is-active,
#game #hud-lobby-nav .slot-bar-item.is-home:hover {
  border-color: rgba(120, 210, 255, 0.65);
  background: rgba(28, 70, 110, 0.78);
  box-shadow: 0 0 0 1px rgba(100, 200, 255, 0.16), 0 0 12px rgba(60, 170, 255, 0.28);
}
#game #hud-lobby-nav .slot-bar-item img { display: none; }

#game #hud-lobby-nav .slot-bar-item.booster-dock {
  position: relative;
  overflow: visible;
}
#game #hud-lobby-nav .slot-bar-item.booster-dock.hidden {
  display: none !important;
}
#game #hud-lobby-nav .slot-bar-item.pet-dock-slot {
  position: relative;
  overflow: visible;
}
#game #hud-lobby-nav .slot-bar-item.pet-dock-slot.hidden {
  display: none !important;
}
#game #hud-lobby-nav .slot-bar-item.pet-dock-slot .pet-dock-slot-label {
  position: absolute;
  right: 1px;
  bottom: 1px;
  min-width: 11px;
  height: 11px;
  padding: 0 2px;
  border: 1px solid rgba(90, 255, 180, 0.55);
  border-radius: 5px;
  background: rgba(6, 28, 24, 0.95);
  color: #9dffd0;
  font: 700 7px/9px Tahoma, sans-serif;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.55);
}
#game #hud-lobby-nav .slot-bar-item.pet-dock-slot.is-active .slot-fb-ico.pet {
  filter: brightness(1.35) drop-shadow(0 0 6px rgba(90, 255, 160, 0.85));
}
#game #hud-lobby-nav .slot-bar-item.pet-dock {
  position: relative;
  overflow: visible;
}
#game #hud-lobby-nav .slot-bar-item.pet-dock.hidden {
  display: none !important;
}
#game #hud-lobby-nav .slot-bar-item[data-lobby="activity"] {
  position: relative;
  overflow: visible;
}
#game #hud-lobby-nav .act-map-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  background: #1aff9c;
  color: #042218;
  font-size: 0.58rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  pointer-events: none;
  box-shadow: 0 0 6px rgba(26, 255, 156, 0.45);
  z-index: 2;
}
#game #hud-lobby-nav .act-map-badge.hidden {
  display: none !important;
}

#game #hud-lobby-nav .slot-bar-item.user-hud-dock.hidden,
#game #hud-lobby-nav .slot-bar-item.ship-hud-dock.hidden,
#game #hud-lobby-nav .slot-bar-item.keys-hud-dock.hidden {
  display: none !important;
}
#game #hud-lobby-nav .slot-bar-item.user-hud-dock,
#game #hud-lobby-nav .slot-bar-item.ship-hud-dock,
#game #hud-lobby-nav .slot-bar-item.keys-hud-dock {
  position: relative;
  overflow: visible;
}
#game #hud-lobby-nav .slot-bar-item.user-hud-dock::after,
#game #hud-lobby-nav .slot-bar-item.ship-hud-dock::after,
#game #hud-lobby-nav .slot-bar-item.keys-hud-dock::after {
  content: '';
  display: block;
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 14px;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 1px;
  background: rgba(120, 220, 255, 0.95);
  box-shadow: 0 0 6px rgba(80, 200, 255, 0.8);
  pointer-events: none;
}
#game #hud-lobby-nav .slot-bar-item.keys-hud-dock .keys-dock-ico {
  display: block !important;
  width: 22px;
  height: 22px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 0 3px rgba(255, 200, 80, 0.45));
}
#game #hud-lobby-nav .slot-bar-item.keys-hud-dock:hover .keys-dock-ico,
#game #hud-lobby-nav .slot-bar-item.keys-hud-dock.is-active .keys-dock-ico {
  filter: brightness(1.15) drop-shadow(0 0 5px rgba(255, 210, 100, 0.7));
}
/* Override .slot-bar-item img { display:none } — same as keys dock */
#game #hud-lobby-nav .slot-bar-item.log-dock .log-dock-ico {
  display: block !important;
  width: 24px;
  height: 24px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 0 4px rgba(80, 190, 255, 0.45));
}
#game #hud-lobby-nav .slot-bar-item.log-dock:hover .log-dock-ico,
#game #hud-lobby-nav .slot-bar-item.log-dock.is-active .log-dock-ico {
  filter: brightness(1.15) drop-shadow(0 0 6px rgba(100, 210, 255, 0.75));
}
#game #hud-lobby-nav .slot-bar-item.log-dock.is-active {
  border-color: rgba(126, 200, 255, 0.65);
  box-shadow: 0 0 10px rgba(90, 180, 255, 0.25);
}
#game #hud-lobby-nav .slot-bar-item.chat-dock.is-active .slot-fb-ico.chat {
  filter: brightness(1.35) drop-shadow(0 0 6px rgba(120, 210, 255, 0.85));
}
#game #hud-lobby-nav .slot-bar-item.chat-dock.has-unread::after {
  content: '';
  display: block;
  position: absolute;
  top: 3px;
  right: 3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5a5a;
  box-shadow: 0 0 6px rgba(255, 80, 80, 0.85);
  pointer-events: none;
}
#game #hud-lobby-nav .slot-bar-item.booster-dock .booster-dock-count {
  position: absolute;
  right: 1px;
  bottom: 1px;
  min-width: 12px;
  height: 12px;
  padding: 0 2px;
  border: 1px solid rgba(90, 190, 255, 0.55);
  border-radius: 6px;
  background: rgba(8, 28, 52, 0.95);
  color: #7ec8ff;
  font: 700 8px/10px Tahoma, sans-serif;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}
#game #hud-lobby-nav .slot-bar-item.pet-dock.is-pet-active .slot-fb-ico {
  filter: brightness(1.35) drop-shadow(0 0 6px rgba(90, 255, 160, 0.85));
}

.slot-fb-ico {
  display: block;
  width: 38px;
  height: 38px;
  background-image: url("/spacemap/graphics/ui/featuresMenu_texture.png");
  background-repeat: no-repeat;
  background-size: 494px 988px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  pointer-events: none;
  flex-shrink: 0;
  transition: filter 0.12s ease;
  transform: scale(0.92);
  transform-origin: center center;
}
#game #hud-lobby-nav .slot-bar-item:hover .slot-fb-ico,
#game #hud-lobby-nav .slot-bar-item.is-active .slot-fb-ico {
  filter: brightness(1.35) drop-shadow(0 0 5px rgba(120, 210, 255, 0.75));
}

.slot-fb-ico.command-center { background-position: 0 -114px; }
.slot-fb-ico.equipment { background-position: -152px -190px; }
.slot-fb-ico.shop { background-position: -38px -722px; }
.slot-fb-ico.user { background-position: -114px -874px; }
.slot-fb-ico.refinement { background-position: -456px -532px; }
.slot-fb-ico.assembly { background-position: -266px 0; }
.slot-fb-ico.tech { background-position: -76px -266px; }
.slot-fb-ico.skylab { background-position: -266px -722px; }
.slot-fb-ico.auction { background-position: -380px 0; }
.slot-fb-ico.clan { background-position: -266px -76px; }
.slot-fb-ico.group { background-position: -190px -266px; }
.slot-fb-ico.rankings { background-position: -342px -532px; }
.slot-fb-ico.mileage { background-position: -304px -380px; }
.slot-fb-ico.donate { background-position: -266px -418px; }
.slot-fb-ico.chat { background-position: -418px -38px; }
.slot-fb-ico.pet { background-position: -342px -456px; }
.slot-fb-ico.booster { background-position: -304px -38px; }
.slot-fb-ico.spacemap { background-position: 0 -760px; }
.slot-fb-ico.settings { background-position: -76px -684px; }
.slot-fb-ico.quests { background-position: -152px -532px; }
.slot-fb-ico.gg {
  background-image: url('/gg/img/gate.png') !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  filter: drop-shadow(0 0 1px rgba(0,0,0,.8));
}

#game #hud-lobby-nav .slot-bar-item:hover .slot-fb-ico.gg,
#game #hud-lobby-nav .slot-bar-item.is-active .slot-fb-ico.gg {
  background-image: url('/gg/img/gate.png') !important;
  background-position: center !important;
  filter: drop-shadow(0 0 4px rgba(94,160,255,.7)) brightness(1.15);
}

#game #hud-lobby-nav .slot-bar-item:hover .slot-fb-ico.quests,
#game #hud-lobby-nav .slot-bar-item.is-active .slot-fb-ico.quests { background-position: -114px -532px; }

#game #hud-lobby-nav .slot-bar-item:hover .slot-fb-ico.command-center,
#game #hud-lobby-nav .slot-bar-item.is-active .slot-fb-ico.command-center { background-position: -38px -114px; }
#game #hud-lobby-nav .slot-bar-item:hover .slot-fb-ico.equipment,
#game #hud-lobby-nav .slot-bar-item.is-active .slot-fb-ico.equipment { background-position: -114px -190px; }
#game #hud-lobby-nav .slot-bar-item:hover .slot-fb-ico.shop,
#game #hud-lobby-nav .slot-bar-item.is-active .slot-fb-ico.shop { background-position: 0 -722px; }
#game #hud-lobby-nav .slot-bar-item:hover .slot-fb-ico.user,
#game #hud-lobby-nav .slot-bar-item.is-active .slot-fb-ico.user { background-position: -76px -874px; }
#game #hud-lobby-nav .slot-bar-item:hover .slot-fb-ico.refinement,
#game #hud-lobby-nav .slot-bar-item.is-active .slot-fb-ico.refinement { background-position: -418px -532px; }
#game #hud-lobby-nav .slot-bar-item:hover .slot-fb-ico.assembly,
#game #hud-lobby-nav .slot-bar-item.is-active .slot-fb-ico.assembly { background-position: -228px 0; }
#game #hud-lobby-nav .slot-bar-item:hover .slot-fb-ico.tech,
#game #hud-lobby-nav .slot-bar-item.is-active .slot-fb-ico.tech { background-position: -114px -266px; }
#game #hud-lobby-nav .slot-bar-item:hover .slot-fb-ico.skylab,
#game #hud-lobby-nav .slot-bar-item.is-active .slot-fb-ico.skylab { background-position: -228px -722px; }
#game #hud-lobby-nav .slot-bar-item:hover .slot-fb-ico.auction,
#game #hud-lobby-nav .slot-bar-item.is-active .slot-fb-ico.auction { background-position: -342px 0; }
#game #hud-lobby-nav .slot-bar-item:hover .slot-fb-ico.clan,
#game #hud-lobby-nav .slot-bar-item.is-active .slot-fb-ico.clan { background-position: -228px -76px; }
#game #hud-lobby-nav .slot-bar-item:hover .slot-fb-ico.group,
#game #hud-lobby-nav .slot-bar-item.is-active .slot-fb-ico.group { background-position: -152px -266px; }
#game #hud-lobby-nav .slot-bar-item:hover .slot-fb-ico.rankings,
#game #hud-lobby-nav .slot-bar-item.is-active .slot-fb-ico.rankings { background-position: -304px -532px; }
#game #hud-lobby-nav .slot-bar-item:hover .slot-fb-ico.mileage,
#game #hud-lobby-nav .slot-bar-item.is-active .slot-fb-ico.mileage { background-position: -266px -380px; }
#game #hud-lobby-nav .slot-bar-item:hover .slot-fb-ico.donate,
#game #hud-lobby-nav .slot-bar-item.is-active .slot-fb-ico.donate { background-position: -228px -418px; }
#game #hud-lobby-nav .slot-bar-item:hover .slot-fb-ico.chat,
#game #hud-lobby-nav .slot-bar-item.chat-dock:hover .slot-fb-ico.chat,
#game #hud-lobby-nav .slot-bar-item.chat-dock.is-active .slot-fb-ico.chat { background-position: -380px -38px; }
#game #hud-lobby-nav .slot-bar-item:hover .slot-fb-ico.pet,
#game #hud-lobby-nav .slot-bar-item.pet-dock:hover .slot-fb-ico.pet,
#game #hud-lobby-nav .slot-bar-item.pet-dock.is-active .slot-fb-ico.pet { background-position: -304px -456px; }
#game #hud-lobby-nav .slot-bar-item:hover .slot-fb-ico.booster,
#game #hud-lobby-nav .slot-bar-item.booster-dock:hover .slot-fb-ico.booster,
#game #hud-lobby-nav .slot-bar-item.booster-dock.is-active .slot-fb-ico.booster { background-position: -266px -38px; }
#game #hud-lobby-nav .slot-bar-item:hover .slot-fb-ico.spacemap,
#game #hud-lobby-nav .slot-bar-item.is-active .slot-fb-ico.spacemap { background-position: -456px -722px; }

#game #hud-lobby-nav .slot-bar-item.is-logout,
#game #hud-lobby-nav .slot-bar-item.hud-logout-power,
#game #hud-lobby-nav #hud-logout-btn {
  order: 999 !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  flex: 0 0 42px !important;
  margin: 0 0 0 4px !important;
  border-radius: 11px !important;
  border: 1px solid rgba(255, 110, 110, 0.75) !important;
  background: linear-gradient(165deg, #c83434 0%, #7a1010 100%) !important;
  box-shadow:
    0 1px 0 rgba(255, 200, 200, 0.18) inset,
    0 0 10px rgba(255, 50, 50, 0.28) !important;
  color: #fff !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  float: none !important;
  clear: none !important;
  align-self: center !important;
}
#game #hud-lobby-nav .slot-bar-item.is-logout::before,
#game #hud-lobby-nav .slot-bar-item.hud-logout-power::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: -7px !important;
  top: 8px !important;
  bottom: 8px !important;
  width: 1px !important;
  height: auto !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, transparent, rgba(150, 210, 255, 0.4), transparent) !important;
  box-shadow: none !important;
  pointer-events: none !important;
}
#game #hud-lobby-nav .slot-bar-item.is-logout:hover,
#game #hud-lobby-nav .slot-bar-item.hud-logout-power:hover,
#game #hud-lobby-nav #hud-logout-btn:hover,
#game #hud-lobby-nav .slot-bar-item.is-logout:focus-visible,
#game #hud-lobby-nav .slot-bar-item.hud-logout-power:focus-visible {
  filter: none;
  transform: translateY(-1px);
  border-color: rgba(255, 170, 170, 0.95) !important;
  background: linear-gradient(165deg, #e24545 0%, #961616 100%) !important;
  box-shadow:
    0 0 0 1px rgba(255, 150, 150, 0.18) inset,
    0 0 14px rgba(255, 60, 60, 0.45),
    0 4px 12px rgba(0, 0, 0, 0.35) !important;
}
#game #hud-lobby-nav .slot-bar-item.is-logout .hud-logout-power-ico,
#game #hud-lobby-nav .slot-bar-item.hud-logout-power .hud-logout-power-ico,
#game #hud-lobby-nav #hud-logout-btn .hud-logout-power-ico {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  pointer-events: none;
}
#game #hud-lobby-nav .slot-bar-item.is-logout .slot-fb-ico,
#game #hud-lobby-nav .slot-bar-item.hud-logout-power .slot-fb-ico {
  display: none !important;
}

@media (max-width: 1100px) {
  #game #hud-lobby-nav {
    gap: 4px;
    padding: 5px 8px;
  }
  #game #hud-lobby-nav .hud-menu-group {
    gap: 3px;
  }
  #game #hud-lobby-nav .slot-bar-item,
  #game #hud-lobby-nav .slot-bar-item.is-logout,
  #game #hud-lobby-nav .slot-bar-item.hud-logout-power,
  #game #hud-lobby-nav #hud-logout-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    flex: 0 0 36px !important;
    border-radius: 10px !important;
  }
  #game #hud-lobby-nav .slot-fb-ico {
    transform: scale(0.86);
  }
  #game #hud-lobby-nav .slot-bar-item.log-dock .log-dock-ico,
  #game #hud-lobby-nav .slot-bar-item.keys-hud-dock .keys-dock-ico {
    width: 20px;
    height: 20px;
  }
}
@media (max-width: 900px) {
  #game #hud-lobby-nav {
    top: 8px;
    gap: 3px;
    padding: 4px 6px;
    max-width: calc(100vw - 12px);
    border-radius: 14px;
  }
  #game #hud-lobby-nav .hud-menu-group {
    gap: 2px;
  }
  #game #hud-lobby-nav .slot-bar-item,
  #game #hud-lobby-nav .slot-bar-item.is-logout,
  #game #hud-lobby-nav .slot-bar-item.hud-logout-power,
  #game #hud-lobby-nav #hud-logout-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    flex: 0 0 32px !important;
    border-radius: 9px !important;
  }
  #game #hud-lobby-nav .slot-fb-ico {
    transform: scale(0.78);
  }
  #game #hud-lobby-nav .slot-bar-grip {
    width: 12px;
    height: 28px;
    min-width: 12px;
    flex-basis: 12px;
  }
  #game #hud-lobby-nav .slot-bar-item.is-logout .hud-logout-power-ico,
  #game #hud-lobby-nav .slot-bar-item.hud-logout-power .hud-logout-power-ico {
    width: 14px !important;
    height: 14px !important;
  }
  #game #hud-lobby-nav .slot-bar-item.log-dock .log-dock-ico,
  #game #hud-lobby-nav .slot-bar-item.keys-hud-dock .keys-dock-ico {
    width: 15px;
    height: 15px;
  }
}
