/* HUD de combate compacto (arena y mazmorra) */

/* --- Barras sobre los personajes: sin caja, finas y limpias --- */
.overhead-unit-bars { left: 0; top: 0; width: 104px; background: none; border: 0; box-shadow: none; padding: 0; transform: translate(-50%, -100%); filter: drop-shadow(0 2px 3px rgba(0,0,0,.9)); }
.unit-name-row { justify-content: center; gap: 6px; margin-bottom: 2px; font-size: 11px; letter-spacing: .6px; }
.unit-name { font-weight: 800; color: #f1f5f9; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 0 6px rgba(0,0,0,.95), 0 1px 2px #000; }
.overhead-unit-bars.is-local .unit-name { color: #86efac; }
.unit-hp-text { display: none; }
.bar-track { position: relative; background: rgba(8,10,18,.85); border: 1px solid rgba(255,255,255,.28); border-radius: 4px; margin-bottom: 1px; box-shadow: 0 0 0 1px rgba(0,0,0,.6); }
.hp-track { height: 7px; } .mana-track { height: 3px; border-radius: 2px; border-color: rgba(125,211,252,.25); }
.hp-track::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 15px, rgba(0,0,0,.45) 15px 16px); pointer-events: none; }
.bar-fill { position: absolute; inset: 0 auto 0 0; }
.hp-ghost { background: #fff; opacity: .85; transition: width .55s ease .3s; }
.hp-fill { transition: width .08s linear; box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.ally-hp { background: linear-gradient(180deg, #4ade80, #15803d); } .enemy-hp { background: linear-gradient(180deg, #f87171, #b91c1c); }
.mana-fill { background: linear-gradient(90deg, #2563eb, #7dd3fc); }
.unit-status-pill { font-size: 9px; padding: 0 6px; margin: 0 auto 2px; display: none; width: max-content; max-width: 220px; }

/* --- Barra superior: menú discreto y marco de rival fino --- */
#top-bar { top: 8px; left: 10px; right: 10px; }
.btn-menu-pill { padding: 4px 11px; font-size: 11px; letter-spacing: 1px; opacity: .8; } .btn-menu-pill:hover { opacity: 1; }
.ingame-mode-badge { font-size: 10px; padding: 3px 9px; opacity: .8; }
.enemy-boss-frame { min-width: 250px; padding: 5px 12px 6px; background: linear-gradient(180deg, rgba(25,10,14,.82), rgba(10,8,16,.72)); border-color: rgba(248,113,113,.4); border-radius: 8px; }
#enemy-name-label { font-size: 11px; letter-spacing: 2px; margin-bottom: 3px; }
.enemy-bar-big { height: 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 6px; margin-bottom: 2px; }
#enemy-hp-fill { background: linear-gradient(180deg, #f87171, #991b1b); }
#enemy-hp-text { font-size: 9px; line-height: 12px; letter-spacing: .5px; }
.enemy-subtrack { height: 3px; position: relative; }
.enemy-subtrack .bar-fill { position: absolute; inset: 0 auto 0 0; }

/* --- HUD inferior compacto --- */
#bottom-hud { bottom: 10px; gap: 0; }
.center-action-cluster { min-width: 0; width: auto; gap: 5px; padding: 7px 10px 8px; background: linear-gradient(180deg, rgba(14,18,32,.72), rgba(6,8,16,.82)); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; box-shadow: 0 6px 22px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.07); align-items: stretch; }
.player-frame { display: flex; align-items: center; gap: 9px; }
.hud-portrait { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; background: radial-gradient(circle at 35% 30%, #2d3a63, #0b1020); border: 2px solid #fbbf24; box-shadow: 0 0 12px rgba(251,191,36,.35); }
.player-bars-box { flex: 1; min-width: 250px; gap: 3px; }
.hud-name-row { display: flex; align-items: baseline; gap: 8px; font-size: 11px; line-height: 1; margin-bottom: 1px; } .hud-name-row b { color: #f8fafc; letter-spacing: .8px; text-shadow: 0 1px 2px #000; } .hud-name-row span { color: #94a3b8; font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; }
.hud-bar-row { position: relative; border-radius: 4px; border: 1px solid rgba(255,255,255,.2); background: rgba(5,7,14,.9); }
.hud-bar-row.hp { height: 13px; } .hud-bar-row.mp { height: 9px; }
.hud-bar-fill { position: absolute; inset: 0 auto 0 0; height: 100%; }
.hud-bar-fill.ghost { background: #fff; opacity: .8; transition: width .6s ease .3s; }
#hud-hp-fill { background: linear-gradient(180deg, #4ade80, #15803d); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
#hud-mp-fill { background: linear-gradient(180deg, #7dd3fc, #2563eb); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.hud-bar-row.mp.low { animation: hudLow .7s infinite alternate; } @keyframes hudLow { to { border-color: #38bdf8; box-shadow: 0 0 10px #38bdf8; } }
.hud-bar-text { font-size: 9px; line-height: 11px; font-weight: 800; letter-spacing: .5px; }
.hud-bar-row.mp .hud-bar-text { font-size: 9px; line-height: 9px; }
#castbar-wrapper { height: 16px; border-radius: 8px; } #castbar-label { line-height: 14px; font-size: 10px; }

/* --- Habilidades: casillas pequeñas, info al pasar el ratón --- */
.skills-hotbar { gap: 5px; justify-content: center; }
.skill-slot { width: 46px; height: 46px; padding: 0; border-width: 1px; border-radius: 9px; overflow: visible; justify-content: center; align-items: center; background: linear-gradient(180deg, #1b2438, #0b0f1c); box-shadow: inset 0 0 10px rgba(0,0,0,.6); }
.skill-slot:hover { transform: translateY(-3px); border-color: #fbbf24; box-shadow: 0 6px 16px rgba(0,0,0,.6), 0 0 10px rgba(251,191,36,.35); }
.skill-icon { font-size: 22px; line-height: 1; }
.skill-key-badge { position: absolute; left: 2px; top: 2px; font-size: 8px; line-height: 1; padding: 1px 3px; background: rgba(0,0,0,.65); border: 1px solid rgba(255,255,255,.25); border-radius: 3px; color: #fde68a; }
.skill-name { display: none; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: max-content; white-space: nowrap; padding: 4px 8px; font-size: 11px; background: rgba(8,10,20,.96); border: 1px solid rgba(251,191,36,.5); border-radius: 6px; color: #fff; z-index: 10; pointer-events: none; }
.skill-slot:hover .skill-name { display: block; }
.skill-cost { position: absolute; right: 2px; bottom: 1px; font-size: 9px; line-height: 1; font-weight: 800; z-index: 2; text-shadow: 0 1px 2px #000; }
.cd-overlay { border-radius: 8px; } .cd-text { font-size: 13px; }
.skill-slot.no-resource { opacity: .48; border-color: #ef4444; filter: saturate(.45); }
.skill-slot.ready-pop { animation: readyPop .45s ease-out; } @keyframes readyPop { 0% { box-shadow: 0 0 0 0 rgba(253,224,71,.9); transform: scale(1.18); } 100% { box-shadow: 0 0 0 12px rgba(253,224,71,0); transform: scale(1); } }
.skill-slot.charge-active-slot { transform: translateY(-3px); }

/* --- Viñeta de daño y vida baja --- */
#hud-vignette { position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: 0; transition: opacity .25s; background: radial-gradient(ellipse at center, transparent 55%, rgba(220,20,20,.55) 100%); }
#hud-vignette.low { opacity: .55; animation: vigLow 1.2s infinite alternate; } @keyframes vigLow { to { opacity: .9; } }
#hud-vignette.hurt { opacity: 1; transition: none; }
body.world-mode #hud-vignette { display: none; }
.skill-slot.ward-on { border-color:#38bdf8; box-shadow:0 0 14px rgba(56,189,248,.8), inset 0 0 10px rgba(56,189,248,.5); animation:wardPulse 1s ease-in-out infinite; } @keyframes wardPulse { 50% { box-shadow:0 0 22px rgba(125,211,252,.95), inset 0 0 14px rgba(56,189,248,.7); } }

.skill-slot.rel-hold { outline: 2px solid #fbbf24; box-shadow: 0 0 14px #fbbf24; transform: translateY(-4px) scale(1.06); transition: .1s; }
#btn-menu-crel.on { border-color: #fbbf24; color: #fde68a; }

/* --- Resaltado AAA de Sinergia / Combo Activo en Hotbar --- */
.skill-slot.combo-proc {
  border-color: #fbbf24 !important;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.85), inset 0 0 10px rgba(251, 191, 36, 0.45) !important;
  animation: comboProcPulse 0.85s ease-in-out infinite alternate;
}
.skill-slot.combo-proc::after {
  content: '⚡';
  position: absolute;
  top: -6px;
  right: -5px;
  font-size: 11px;
  line-height: 1;
  filter: drop-shadow(0 0 4px #fbbf24);
  pointer-events: none;
}
@keyframes comboProcPulse {
  from { transform: translateY(-2px) scale(1.02); box-shadow: 0 0 12px rgba(251, 191, 36, 0.7), inset 0 0 8px rgba(251, 191, 36, 0.35); }
  to { transform: translateY(-4px) scale(1.07); box-shadow: 0 0 22px rgba(253, 224, 71, 1), inset 0 0 14px rgba(251, 191, 36, 0.65); }
}

/* --- Killfeed AAA (esquina superior izquierda bajo la insignia para no tapar el marcador FFA) --- */
#hud-killfeed {
  position: fixed;
  top: 48px;
  left: 12px;
  z-index: 870;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
  pointer-events: none;
}
.kf-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: linear-gradient(90deg, rgba(12, 9, 24, 0.88), rgba(24, 16, 42, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 3px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12px;
  color: #e2e8f0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  animation: kfSlideIn 0.22s ease-out;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.kf-row.kf-me {
  border-color: rgba(251, 191, 36, 0.5);
  border-left-color: #fbbf24;
  background: linear-gradient(90deg, rgba(40, 28, 10, 0.9), rgba(20, 14, 32, 0.94));
}
.kf-row.kf-dead {
  border-color: rgba(239, 68, 68, 0.5);
  border-left-color: #ef4444;
}
.kf-row.kf-out {
  opacity: 0;
  transform: translateX(-20px);
}
.kf-k { color: #86efac; font-weight: 800; }
.kf-v { color: #fca5a5; font-weight: 800; }
.kf-s { color: #fbbf24; font-size: 13px; }
.kf-streak {
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(249, 115, 22, 0.22);
  border: 1px solid rgba(249, 115, 22, 0.6);
  color: #fed7aa;
  font-size: 10.5px;
  font-weight: 800;
}
@keyframes kfSlideIn {
  from { opacity: 0; transform: translateX(-24px) scale(0.95); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
