/* ================================================================ editor da posição dos botões (js/hud-layout.js) */
#hud .hl-hidden { visibility: hidden !important; pointer-events: none !important; }
body.hud-editing #hud .hl-hidden { visibility: visible !important; opacity: .32 !important; pointer-events: auto !important; }
body.hud-editing #hud .hl-edit { outline: 2px dashed rgba(255,210,90,.85) !important; outline-offset: 3px; cursor: grab !important; pointer-events: auto !important; touch-action: none !important; }
body.hud-editing #hud .hl-edit.hl-on { outline: 3px solid #ffd34d !important; box-shadow: 0 0 22px rgba(255,200,60,.7) !important; z-index: 40 !important; }
body.hud-editing #hud .hl-edit:active { cursor: grabbing !important; }
.hl-tag { position: absolute; left: 50%; top: -18px; transform: translateX(-50%); padding: 1px 6px; white-space: nowrap; pointer-events: none;
  font: bold 10px/14px Verdana, sans-serif; color: #1a1000; background: #ffd34d; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.6); z-index: 41; }
body.hud-editing #hud #hud-actions, body.hud-editing #hud #mobile-controls { pointer-events: auto; }
body.hud-editing #map-wrap::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.42); z-index: 5; pointer-events: none; }

#hl-bar { pointer-events: auto; position: fixed; left: 50%; top: 10px; transform: translateX(-50%); z-index: 9000; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px;
  width: min(760px, calc(100vw - 20px)); padding: 9px 14px; color: #f4ecd8; font: 13px Verdana, sans-serif;
  background: linear-gradient(180deg, rgba(22,14,8,.97), rgba(38,22,10,.95)); border: 1px solid rgba(255,190,80,.6); border-radius: 8px; box-shadow: 0 8px 26px rgba(0,0,0,.6); }
#hl-bar > b { color: #ffd98a; letter-spacing: .03em; }
#hl-bar .hl-tip { color: #cdbfa5; flex: 1 1 260px; text-align: center; }
#hl-bar .hl-sel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1 1 300px; justify-content: center; }
#hl-bar .hl-sel[hidden], #hl-bar .hl-tip[hidden] { display: none; }
#hl-bar .hl-name { font-weight: bold; color: #ffe7b0; }
#hl-bar label { display: flex; align-items: center; gap: 6px; color: #d9cbb0; }
#hl-bar input[type=range] { width: 110px; accent-color: #ffb43c; }
#hl-bar em { font-style: normal; min-width: 38px; color: #ffd98a; }
#hl-bar button { font: bold 12px Verdana, sans-serif; color: #f4ecd8; background: #3a2a18; border: 1px solid #7a5a30; border-radius: 5px; padding: 5px 10px; cursor: pointer; }
#hl-bar button:hover { filter: brightness(1.2); }
#hl-bar button.ok { color: #1d1000; background: linear-gradient(#ffcf5a, #e08a12); border-color: #ffe08a; }
#hl-bar .hl-btns { display: flex; gap: 6px; }
body.mobile-ui #hl-bar { top: 4px; padding: 6px 8px; gap: 6px; font-size: 11px; }
body.mobile-ui #hl-bar .hl-tip { display: none; }
body.mobile-ui #hl-bar input[type=range] { width: 90px; }
