/* ============================================================================
 * hudbar.css — the bottom action bar
 *
 * The hotbar, the consumable bar, the action buttons and the auto cluster were
 * four different panels butted against each other with different blues. This
 * puts them on one iron strip with breathing room, gold structure and states
 * that read at a glance.
 * ========================================================================== */

:root {
  --hb-iron0: #0a0c11;
  --hb-iron1: #141720;
  --hb-iron2: #1d222c;
  --hb-gold:  #d9b46a;
  --hb-gold2: #8e6c2a;
  --hb-gold3: #f6e3b0;
  --hb-text:  #e9e3d4;
  --hb-dim:   #9c9482;
}

/* ── the strip ───────────────────────────────────────────────────────────── */
#hud .hotbar-wrap {
  background: linear-gradient(180deg, #1d222c 0%, #141720 55%, #0c0e14 100%) !important;
  border: 1px solid #05060a !important;
  border-radius: 3px;
  box-shadow:
    inset 0 1px 0 rgba(255,240,200,.12),
    inset 0 0 0 1px rgba(217,180,106,.18),
    0 10px 30px rgba(0,0,0,.7) !important;
  padding: 8px 10px !important;
  gap: 10px !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}
/* group dividers: a hairline between the skill slots, the actions and the auto cluster */
#hud .hotbar-wrap > .hb-btn:nth-of-type(2),
#hud .hotbar-wrap > .autobox,
#hud .hotbar-wrap > .auto-btn {
  border-left: 1px solid rgba(217,180,106,.22) !important;
  padding-left: 12px !important;
}

/* ── skill slots ─────────────────────────────────────────────────────────── */
#hud #hotbar {
  display: flex !important;
  gap: 5px !important;
  align-items: center;
}
#hud #hotbar .slot, #hud #hotbar .hb-slot, #hud #hotbar button {
  width: 46px !important; height: 46px !important;
  background: linear-gradient(180deg, #12161e, #0a0c11) !important;
  border: 1px solid #333a49 !important;
  border-radius: 2px !important;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.8) !important;
  position: relative;
  transition: border-color .12s, box-shadow .12s;
}
#hud #hotbar .slot canvas, #hud #hotbar .hb-slot canvas,
#hud #hotbar .slot img, #hud #hotbar .hb-slot img { image-rendering: pixelated; }
#hud #hotbar .slot:not(.empty):hover,
#hud #hotbar .hb-slot:not(.empty):hover,
#hud #hotbar button:not(.empty):hover {
  border-color: var(--hb-gold) !important;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.8), 0 0 10px rgba(217,180,106,.25) !important;
}
/* the hotkey letter sits inside the slot, dim gold */
#hud #hotbar .slot small, #hud #hotbar .hb-slot small,
#hud #hotbar .slot .k, #hud #hotbar .slot .key {
  color: var(--hb-gold) !important;
  font-family: "Pixelify Sans", "Segoe UI", system-ui, sans-serif !important;
  font-size: 9px !important; font-weight: 600 !important;
  text-shadow: 0 1px 0 #000 !important;
  opacity: .85;
}

/* ── the page indicator ──────────────────────────────────────────────────── */
#hud .hb-page {
  background: linear-gradient(180deg, #2b2416, #191408) !important;
  border: 1px solid var(--hb-gold2) !important;
  color: var(--hb-gold3) !important;
  border-radius: 2px !important;
  font-family: "Pixelify Sans", "Segoe UI", system-ui, sans-serif !important;
  font-weight: 700 !important; font-size: 14px !important;
  width: 30px !important; height: 30px !important;
  display: grid !important; place-items: center !important;
  box-shadow: inset 0 1px 0 rgba(255,240,200,.14) !important;
}

/* ── consumable slots (the second bar) ───────────────────────────────────── */
#hud #hotbar2Wrap .hk {
  width: 46px !important; height: 46px !important;
  background: linear-gradient(180deg, #12161e, #0a0c11) !important;
  border: 1px solid #333a49 !important;
  border-radius: 2px !important;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.8) !important;
  position: relative;
}
#hud #hotbar2Wrap .hk canvas, #hud #hotbar2Wrap .hk img { image-rendering: pixelated; }
#hud #hotbar2Wrap .hk .n {
  background: linear-gradient(180deg, #2b2416, #191408) !important;
  border: 1px solid var(--hb-gold2) !important;
  color: var(--hb-gold3) !important;
  border-radius: 2px !important;
  font-family: "Pixelify Sans", "Segoe UI", system-ui, sans-serif !important;
  font-weight: 700 !important; font-size: 10px !important;
  box-shadow: inset 0 1px 0 rgba(255,240,200,.12);
}
#hud #hotbar2Wrap .hk:hover { border-color: var(--hb-gold) !important; }
#hud #hotbar2Wrap .hk.empty { border-color: #20252f !important; opacity: .6; }

/* ── action buttons: cut plates, one voice ───────────────────────────────── */
#hud.hudv2 .hb-btn, #hud .hb-btn {
  width: auto !important; min-width: 52px;
  padding: 10px 12px !important;
  border-radius: 2px !important;
  border: 1px solid #6d5a2c !important;
  background: linear-gradient(180deg, #3d3520, #2a2416 52%, #191508) !important;
  color: var(--hb-gold3) !important;
  font-family: "Pixelify Sans", "Segoe UI", system-ui, sans-serif !important;
  font-weight: 700 !important; font-size: 11px !important;
  letter-spacing: .12em; text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,240,200,.18), 0 2px 0 #08060a, 0 5px 12px rgba(0,0,0,.5) !important;
  transition: filter .12s, transform .05s !important;
}
#hud.hudv2 .hb-btn:hover, #hud .hb-btn:hover {
  border-color: var(--hb-gold) !important;
  filter: brightness(1.2) !important;
}
#hud .hb-btn:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,240,200,.14), 0 1px 0 #08060a !important; }
#hud .hb-btn.ride {
  background: linear-gradient(180deg, #3d3520, #2a2416 52%, #191508) !important;
  border-color: #6d5a2c !important; color: var(--hb-gold3) !important;
}
#hud .hb-btn.ride.on {
  background: linear-gradient(180deg, #16301f, #0e2014) !important;
  border-color: #4f9c3c !important; color: #8aff9a !important;
}
#hud .hb-btn.vend {
  background: linear-gradient(180deg, #3d3520, #2a2416 52%, #191508) !important;
  border-color: #6d5a2c !important; color: var(--hb-gold3) !important;
}
#hud .hb-btn.vend.on {
  background: linear-gradient(180deg, #2b2416, #191408) !important;
  border-color: var(--hb-gold) !important; color: var(--hb-gold3) !important;
}

/* ── the auto cluster ────────────────────────────────────────────────────── */
#hud .autobox {
  display: flex !important; flex-direction: column !important;
  gap: 3px !important; align-items: center;
  background: rgba(11,13,19,.6) !important;
  border: 1px solid rgba(217,180,106,.16) !important;
  border-radius: 2px !important;
  padding: 5px 8px !important;
}
#hud .auto-btn {
  border-radius: 2px !important;
  border: 1px solid #6d5a2c !important;
  background: linear-gradient(180deg, #242a36, #141821) !important;
  color: var(--hb-dim) !important;
  font-family: "Pixelify Sans", "Segoe UI", system-ui, sans-serif !important;
  font-weight: 700 !important; font-size: 10px !important;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 10px !important;
  display: flex !important; gap: 6px !important; align-items: center !important;
  box-shadow: inset 0 1px 0 rgba(255,240,200,.10) !important;
}
#hud .auto-btn b {
  color: #7a7468 !important;
  font-family: "Pixelify Sans", "Segoe UI", system-ui, sans-serif !important;
  font-weight: 700 !important; font-size: 10px !important;
}
/* the state word is the read: gold when on, dim when off */
#hud .auto-btn.on b, #hud .auto-btn.on { color: var(--hb-gold3) !important; }
#hud .auto-btn.on {
  border-color: var(--hb-gold) !important;
  background: linear-gradient(180deg, #2b2416, #191408) !important;
  box-shadow: inset 0 1px 0 rgba(255,240,200,.16), 0 0 10px rgba(217,180,106,.18) !important;
}
#hud .auto-btn.pot { border-left-width: 1px !important; }
#hud .auto-skill {
  border-radius: 2px !important;
  border: 1px solid #333a49 !important;
  background: #0e1017 !important;
  color: var(--hb-dim) !important;
  font-family: "Pixelify Sans", "Segoe UI", system-ui, sans-serif !important;
  font-weight: 600 !important; font-size: 9px !important;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 8px !important;
}
#hud .auto-skill:hover { color: var(--hb-gold3) !important; border-color: var(--hb-gold2) !important; }

/* ── the ULT plate matches the rest ──────────────────────────────────────── */
#hud .hotbar-wrap > .ult,
#hud .hotbar-wrap > .hb-btn[class*="ult"],
#hud .hotbar-wrap > button:last-child {
  background: linear-gradient(180deg, #3d3520, #2a2416 52%, #191508) !important;
  border: 1px solid #6d5a2c !important;
  color: var(--hb-gold3) !important;
  border-radius: 2px !important;
  font-family: "Pixelify Sans", "Segoe UI", system-ui, sans-serif !important;
  box-shadow: inset 0 1px 0 rgba(255,240,200,.18), 0 2px 0 #08060a !important;
}

@media (max-width: 900px) {
  #hud .hotbar-wrap { padding: 6px 8px !important; gap: 6px !important; }
  #hud #hotbar .slot, #hud #hotbar .hb-slot, #hud #hotbar button,
  #hud #hotbar2Wrap .hk { width: 40px !important; height: 40px !important; }
  #hud.hudv2 .hb-btn, #hud .hb-btn { min-width: 44px; padding: 8px 9px !important; font-size: 10px !important; }
}
