/* DarkOrbit HTML5 slotbar — reference layout (htdocshasznalom) */

#game #do-slotbar {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  width: max-content;
  max-width: calc(100vw - 24px);
  z-index: 40;
  pointer-events: none;
  user-select: none;
}

#game #do-slotbar.hidden { display: none !important; }

#game #do-slotbar .do-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  pointer-events: none;
  min-width: 430px;
}

#game #do-slotbar .do-wrap > * { pointer-events: auto; }

#game #do-slotbar .do-bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  width: auto;
  padding: 5px 6px;
  border: 1px solid rgba(140, 210, 255, 0.52);
  border-radius: 10px;
  background:
    linear-gradient(165deg, rgba(20, 52, 86, 0.97) 0%, rgba(8, 20, 38, 0.98) 48%, rgba(6, 14, 28, 0.99) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 8px 22px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(40, 120, 200, 0.16);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#game #do-slotbar .do-bars::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(160, 220, 255, 0.5), transparent);
  pointer-events: none;
}

#game #do-slotbar .do-row {
  display: flex;
  gap: 3px;
  align-items: stretch;
  justify-content: center;
  height: 39px;
  flex: 0 0 39px;
  margin: 0;
  padding: 0;
}

#game #do-slotbar .do-atlas {
  display: block;
  background-repeat: no-repeat;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  pointer-events: none;
  flex-shrink: 0;
}

/* Menu tray — collapsible category + item rows above hotbar */
#game #do-slotbar .do-menu-tray {
  position: relative;
  width: 430px;
  min-height: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
  transition: min-height 0.18s ease, opacity 0.18s ease;
}

#game #do-slotbar .do-menu-tray > * { pointer-events: auto; }

#game #do-slotbar .do-menu-tray.collapsed .do-menu-buttons,
#game #do-slotbar .do-menu-tray.collapsed .do-category-panel,
#game #do-slotbar .do-menu-tray.collapsed .do-scroll-arrow {
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  pointer-events: none;
  visibility: hidden;
}

#game #do-slotbar .do-menu-buttons {
  position: absolute;
  left: 23px;
  bottom: 0;
  display: flex;
  gap: 1px;
  transition: opacity 0.18s ease, transform 0.22s ease;
}

#game #do-slotbar .do-category-panel {
  position: absolute;
  left: 23px;
  bottom: 39px;
  display: flex;
  gap: 1px;
  align-items: center;
  transition: opacity 0.18s ease, transform 0.22s ease;
}

#game #do-slotbar .do-category-panel:not(.open) {
  display: none;
}

#game #do-slotbar .do-menu-btn,
#game #do-slotbar .do-cat {
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex: 0 0 38px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

#game #do-slotbar .do-cat-bg,
#game #do-slotbar .do-menu-btn-bg {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 0;
}

#game #do-slotbar .do-cat-ico,
#game #do-slotbar .do-menu-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

#game #do-slotbar .do-scroll-arrow {
  position: absolute;
  width: 13px;
  height: 24px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 8;
  overflow: visible;
}

#game #do-slotbar .do-scroll-arrow span {
  position: absolute;
  left: 0;
  top: 0;
  width: 13px;
  height: 24px;
  background-repeat: no-repeat;
  pointer-events: none;
}

#game #do-slotbar .do-scroll-arrow.disabled {
  opacity: 0.5;
  cursor: default;
}

#game #do-slotbar .do-scroll-arrow.do-menu-scroll-left { left: 4px; bottom: 7px; }
#game #do-slotbar .do-scroll-arrow.do-menu-scroll-right { left: 427px; bottom: 7px; }

#game #do-slotbar .do-category-panel .do-cat-scroll-left,
#game #do-slotbar .do-category-panel .do-cat-scroll-right {
  flex: 0 0 13px;
  position: relative;
  left: auto;
  bottom: auto;
}

#game #do-slotbar .do-menu-toggle {
  position: absolute;
  left: calc(50% + 210px);
  bottom: 5px;
  width: 21px;
  height: 21px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 50;
}

#game #do-slotbar .do-menu-toggle .do-menu-arrow {
  position: absolute;
  left: 0;
  top: 0;
  width: 21px;
  height: 21px;
  pointer-events: none;
}

/* Hex slots */
#game #do-slotbar .do-slot {
  position: relative;
  width: 39px;
  height: 39px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex: 0 0 39px;
  overflow: visible;
  contain: layout style;
  border-radius: 4px;
  transition: transform 0.12s ease, filter 0.12s ease;
}

#game #do-slotbar .do-slot:not(.empty):not(.locked):hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* DarkOrbit Hellstorm load dots (HST-1=3 / HST-2=5) */
#game #do-slotbar .do-rl-dots {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 3px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 4;
}
#game #do-slotbar .do-rl-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  display: block;
  background: #6a6a6a;
  box-shadow: none;
}

#game #do-slotbar .do-slot.empty { cursor: default; }
/* Unowned drone formations (and other locked slots): gray / dim */
#game #do-slotbar .do-slot.locked {
  cursor: default;
  opacity: 0.55;
  filter: grayscale(1);
}
#game #do-slotbar .do-slot.locked .do-slot-ico,
#game #do-slotbar .do-slot.locked .do-slot-ico-img {
  filter: grayscale(1) brightness(0.75);
  opacity: 0.85;
}
/* Owned / unlocked slots stay bright */
#game #do-slotbar .do-slot:not(.locked):not(.empty):not(.zero) .do-slot-ico,
#game #do-slotbar .do-slot:not(.locked):not(.empty):not(.zero) .do-slot-ico-img {
  filter: none;
  opacity: 1;
}

#game #do-slotbar .do-slot-bg {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 0;
}

#game #do-slotbar .do-slot-ico {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 38px;
  height: 38px;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

#game #do-slotbar .do-slot-ico-img {
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  width: 38px !important;
  height: 38px !important;
}

#game #do-slotbar .do-slot.zero .do-slot-ico-img,
#game #do-slotbar .do-slot.zero .do-slot-ico {
  opacity: 0.55;
}

#game #do-slotbar .do-slot-sel { display: none !important; }

#game #do-slotbar .do-slot-nr {
  position: absolute;
  right: 3px;
  bottom: 2px;
  left: auto;
  top: auto;
  display: none;
  font: 700 9px/9px "Segoe UI", Arial, Tahoma, sans-serif;
  color: #e8f4ff;
  opacity: 0.92;
  text-shadow: 0 1px 1px #000, 0 0 3px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  z-index: 4;
}

#game #do-slotbar .do-slot.empty .do-slot-nr,
#game #do-slotbar .do-slot.hotbar .do-slot-nr {
  display: block;
}

#game #do-slotbar .do-slot-qty {
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 1px;
  height: 13px;
  padding: 0 1px;
  text-align: center;
  font: 800 9px/13px "Segoe UI", Tahoma, Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  color: #f5fbff;
  pointer-events: none;
  z-index: 2;
  white-space: nowrap;
  overflow: visible;
  letter-spacing: 0;
  background: linear-gradient(180deg, rgba(0, 8, 20, 0.05), rgba(0, 6, 16, 0.92));
  border-radius: 0 0 3px 3px;
  border-top: 1px solid rgba(120, 190, 255, 0.12);
  text-shadow:
    0 0 1px #000,
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 0 6px rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
}

#game #do-slotbar .do-slot-cd {
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: 1px;
  height: 36px;
  background: rgba(0, 0, 0, 0.62);
  pointer-events: none;
  border-radius: 2px;
  transform-origin: bottom center;
  transform: scaleY(0);
  opacity: 0;
  z-index: 3;
}

#game #do-slotbar .do-slot-dur {
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  height: 3px;
  background: #ffe14a;
  box-shadow: 0 0 4px rgba(255, 220, 80, 0.7);
  pointer-events: none;
  border-radius: 1px;
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0;
  z-index: 5;
}

#game #do-slotbar .do-slot-timer {
  position: absolute;
  left: 0;
  right: 0;
  top: 1px;
  text-align: center;
  font: 700 8px/1 Tahoma, Arial, sans-serif;
  color: #fff6c8;
  text-shadow: 0 0 3px #000, 0 1px 2px #000;
  pointer-events: none;
  z-index: 6;
  display: none;
}

#game #do-slotbar .do-slot:not(.empty):not(.locked):hover .do-slot-bg {
  outline: 1px solid rgba(160, 210, 255, 0.55);
  outline-offset: -1px;
  box-shadow: 0 0 10px rgba(80, 180, 255, 0.28);
}

#game #do-slotbar .do-slot.on:after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 1.5px solid rgba(90, 255, 160, 0.95);
  box-shadow:
    0 0 0 1px rgba(40, 180, 100, 0.35) inset,
    0 0 10px rgba(60, 255, 140, 0.55),
    0 0 18px rgba(40, 220, 120, 0.25);
  border-radius: 5px;
  pointer-events: none;
  z-index: 4;
}

#game #do-slotbar .do-menu-buttons,
#game #do-slotbar .do-category-panel {
  padding: 3px 4px;
  border: 1px solid rgba(120, 200, 255, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(165deg, rgba(18, 48, 78, 0.9) 0%, rgba(8, 20, 38, 0.88) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 6px 16px rgba(0, 0, 0, 0.35);
}

#game #do-slotbar .do-menu-btn:hover,
#game #do-slotbar .do-cat:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

#game #do-slotbar .do-menu-btn,
#game #do-slotbar .do-cat {
  transition: filter 0.12s ease, transform 0.12s ease;
}
