/* Barra de habilidades: F1–F12 embaixo, 1–9 + extras em cima, seta de página no fim */
body.hotbar-on #skillbar, body.hotbar-on #class-skillbar { display: none !important; }
#hotbar { --hs: 34px; position: fixed; left: calc(50% - 250px); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 31; width: 500px; padding: 5px 6px 6px; border-radius: 10px; background: rgba(14, 28, 28, .82); border: 1px solid #c1a267; user-select: none; -webkit-user-select: none; touch-action: none; }
#hotbar[hidden] { display: none !important; }
#hotbar .hb-head { display: flex; justify-content: space-between; align-items: center; height: 16px; margin-bottom: 3px; }
#hotbar .hb-handle, #hotbar .hb-gear { all: unset; cursor: grab; color: #c1a267; font-size: 14px; line-height: 14px; padding: 0 4px; touch-action: none; }
#hotbar .hb-gear { cursor: pointer; }
#hotbar .hb-grid { display: flex; gap: 6px; align-items: stretch; }
#hotbar .hb-rows { display: grid; gap: 4px; }
#hotbar .hb-row { display: flex; gap: 3px; }
#hotbar .hb-gap { margin-left: 6px; }
#hotbar .hb-page { all: unset; box-sizing: border-box; width: 24px; display: grid; place-items: center; border-radius: 7px; background: #0d1a1a; border: 1px solid #c1a267; color: #f0d28b; font-size: 14px; cursor: pointer; position: relative; }
#hotbar .hb-page:hover { background: #16302f; border-color: #ffd36a; }
#hotbar .hb-page::after { content: attr(data-p); position: absolute; bottom: 2px; font: 700 9px/9px system-ui, sans-serif; color: #cdbf9b; }
#hotbar .hb-slot { position: relative; width: var(--hs); height: var(--hs); flex: none; padding: 0; border-radius: 7px; background: #0d1a1a; border: 1px solid #5d5640; overflow: hidden; cursor: pointer; touch-action: none; }
#hotbar .hb-slot.empty { background: rgba(255, 255, 255, .04); border-style: dashed; cursor: default; }
#hotbar .hb-slot.hb-click { border-color: #4a6a6a; }
#hotbar .hb-slot img { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); object-fit: contain; image-rendering: pixelated; pointer-events: none; }
#hotbar .hb-slot img[hidden] { display: none; }
#hotbar .hb-cd { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: rgba(0, 0, 0, .62); pointer-events: none; }
#hotbar .hb-key { position: absolute; left: 2px; top: 1px; font: 700 9px/9px system-ui, sans-serif; color: #f1e6c4; text-shadow: 0 0 2px #000, 0 0 2px #000; pointer-events: none; font-style: normal; }
#hotbar .hb-time { position: absolute; inset: 0; display: grid; place-items: center; font: 700 14px system-ui, sans-serif; color: #fff; text-shadow: 0 0 3px #000, 0 0 3px #000; pointer-events: none; }
#hotbar .hb-slot.nomana img { filter: grayscale(.7) brightness(.55) sepia(.3) hue-rotate(180deg); }
#hotbar .hb-slot.on { box-shadow: 0 0 9px 1px #ffd36a inset; border-color: #ffd36a; }
#hotbar .hb-slot.binding { outline: 2px solid #7fd8ff; }
#hotbar.dragging .hb-slot { outline: 1px dashed rgba(255, 255, 255, .25); }
#hotbar .hb-tray { margin-top: 6px; padding-top: 5px; border-top: 1px solid #5d5640; display: flex; flex-wrap: wrap; gap: 4px; }
#hotbar .hb-tray[hidden] { display: none; }
#hotbar .hb-hint { flex-basis: 100%; margin: 0 0 2px; font: 10px/1.3 system-ui, sans-serif; color: #cdbf9b; }
#hotbar .hb-tray-item { all: unset; width: 40px; height: 40px; border-radius: 6px; background: #0d1a1a; border: 1px solid #5d5640; cursor: grab; touch-action: none; box-sizing: border-box; display: grid; place-items: center; }
#hotbar .hb-tray-item.used { opacity: .45; }
#hotbar .hb-tray-item img { width: 34px; height: 34px; image-rendering: pixelated; pointer-events: none; }
.hb-ghost { position: fixed; z-index: 100000; width: 46px; height: 46px; margin: -23px 0 0 -23px; pointer-events: none; image-rendering: pixelated; opacity: .9; filter: drop-shadow(0 2px 4px #000); }
@media (max-width: 950px), (max-height: 530px) { #hotbar { --hs: 25px; width: 394px; left: calc(50% - 197px); } #hotbar .hb-time { font-size: 12px; } }
#hotbar .hb-count { position: absolute; right: 2px; bottom: 1px; text-decoration: none; font: 700 11px/11px system-ui, sans-serif; color: #fff; text-shadow: 0 0 3px #000, 0 0 3px #000; pointer-events: none; }
#hotbar .hb-slot.nostock img { filter: grayscale(1) brightness(.5); }

#hotbar .hb-tools { display: flex; align-items: center; gap: 2px; }
#hotbar .hb-info { all: unset; cursor: pointer; width: 15px; height: 15px; line-height: 15px; text-align: center; font: 700 11px/15px Georgia, serif; color: #c1a267; border: 1px solid #6a5a38; border-radius: 4px; margin-right: 3px; }
#hotbar .hb-info.on { background: #c9a24a; color: #1a1205; border-color: #f0d27a; }
.hb-tip { position: fixed; z-index: 60; max-width: 260px; padding: 8px 10px; border-radius: 8px; background: rgba(12, 20, 20, .96); border: 1px solid #c9a24a; color: #f1e6c8; font: 12px/1.35 system-ui, sans-serif; pointer-events: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .55); }
.hb-tip b { display: block; color: #ffd978; font-size: 13px; }
.hb-tip em { display: block; color: #8fd0e8; font-style: normal; font-size: 11px; margin: 1px 0 3px; }
.hb-tip p { margin: 0; }
