/* vault-interact — la etiqueta flotante. Los colores salen de Config.Tema (se
   cambian aquí como variables). El navegador de FiveM es Chrome 103. */
@font-face { font-family: 'Geist'; font-weight: 300 800; font-style: normal; src: url(fuentes/geist.woff2) format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-weight: 400 700; font-style: normal; src: url(fuentes/geist-mono.woff2) format('woff2'); }

:root {
  --acento: #fdd519;
  --acento-pared: #9c8207;
  --tinta: #0a0a0a;
  --fondo: rgba(16, 16, 16, .95);
  --texto: #ffffff;
  --suave: #8e8c85;
  --aviso: #ff8f8f;
  --letra: 'Geist', 'Segoe UI', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: transparent; }
body { font-family: var(--letra); color: var(--texto); font-size: 14px; line-height: 1.4; letter-spacing: -0.01em; user-select: none; -webkit-font-smoothing: antialiased; }
body.demo { background: radial-gradient(ellipse at 30% 20%, #4a4a48, #141414 70%); }
.oculto { display: none !important; }
b { font-weight: 600; }

.etiqueta { position: fixed; left: 0; top: 0; will-change: transform; display: flex; align-items: flex-start; gap: 9px; pointer-events: none; }
.etiqueta.entra { animation: entra .22s cubic-bezier(.16, 1, .3, 1); }
@keyframes entra { from { opacity: 0; } }
.et-punto {
  width: 12px; height: 12px; border-radius: 50%; margin-top: 9px; flex: none;
  background: var(--acento); box-shadow: 0 0 0 2px #000, 0 2px 6px rgba(0, 0, 0, .6);
}
.et-col { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.et-pildora {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 13px; border-radius: 999px;
  background: var(--fondo); box-shadow: 0 0 0 1.5px #000, inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 18px -6px rgba(0, 0, 0, .7);
  white-space: nowrap;
}
.et-pildora:not(.con-precio) { padding-right: 13px; }
.et-titulo { font-size: 14px; }
.et-cant { font: 500 12px var(--mono); color: var(--suave); letter-spacing: 0; }
.et-cant:empty { display: none; }
.et-precio { font: 700 12px/1 var(--mono); padding: 4px 8px; border-radius: 999px; background: var(--acento); color: var(--tinta); letter-spacing: 0; }
/* El subtítulo lleva su propia píldora: sin fondo se perdía contra la tienda. */
.et-sub {
  font: 600 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: #ece9e2; padding: 3px 10px; border-radius: 999px;
  background: var(--fondo); box-shadow: 0 0 0 1.5px #000, inset 0 1px 0 rgba(255, 255, 255, .07);
}
.et-sub.aviso { color: var(--aviso); }
.et-teclas { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.et-op {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 11px 4px 5px; border-radius: 8px;
  background: var(--fondo); box-shadow: 0 0 0 1.5px #000, inset 0 1px 0 rgba(255, 255, 255, .07);
  font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--texto);
}
kbd {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  min-width: 19px; height: 19px; padding: 0 4px; border-radius: 5px;
  background: var(--acento); color: var(--tinta); border: 1px solid #000;
  font: 700 10.5px/1 var(--mono); letter-spacing: 0;
  box-shadow: inset 0 -1.5px 0 rgba(0, 0, 0, .12), 0 2px 0 0 var(--acento-pared), 0 2px 0 1px #000;
}

/* ── El menú de opciones (interacciones) ─────────────────────────────────── */
.etiqueta.menu .et-teclas { gap: 3px; align-items: stretch; }
.etiqueta.menu .et-op {
  position: relative; overflow: hidden; min-width: 132px;
  padding: 4px 13px 4px 5px; gap: 8px;
  font: 500 13px/1.2 var(--letra); letter-spacing: -0.005em; text-transform: none; color: var(--suave);
}
.etiqueta.menu .et-op > * { position: relative; }
.etiqueta.menu .et-op.sel { color: var(--texto); box-shadow: 0 0 0 1.5px #000, inset 0 0 0 1px var(--acento), inset 0 1px 0 rgba(255, 255, 255, .07); }
.et-marca { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 19px; height: 19px; }
.et-marca::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--suave); opacity: .55; }
.et-ico { flex: none; width: 15px; text-align: center; font-size: 12px; color: var(--suave); }
.et-op.sel .et-ico { color: var(--acento); }
.et-txt { white-space: nowrap; }
/* mantener la tecla: la opción se va llenando */
.et-barra { position: absolute !important; left: 0; top: 0; bottom: 0; width: calc(var(--p, 0) * 100%); background: var(--acento); opacity: .26; }
kbd.mant { box-shadow: inset 0 -1.5px 0 rgba(0, 0, 0, .12), 0 2px 0 0 var(--acento-pared), 0 2px 0 1px #000, 0 0 0 3px rgba(0, 0, 0, .35); }
.et-ayuda {
  font: 600 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: #d9d6cf; padding: 2px 9px; border-radius: 999px;
  background: var(--fondo); box-shadow: 0 0 0 1.5px #000;
}

/* ── Indicadores: lo que hay cerca ───────────────────────────────────────── */
#puntos { position: fixed; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.ind {
  position: absolute; left: 0; top: 0; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%;
  background: var(--acento); box-shadow: 0 0 0 1.5px #000, 0 1px 4px rgba(0, 0, 0, .6);
  opacity: .5; will-change: transform; transition: opacity .2s;
}
.ind.cerca { width: 10px; height: 10px; margin: -5px 0 0 -5px; opacity: .95; }
