/* ═══════════════════════════════════════════════════════════════
   KAPI BATALLA v3 — visor estilo TikTok (igual para los dos anfitriones)
   · Franja de video 50/50 en el medio, negro arriba y abajo.
   · Barra rosa | celeste pegada arriba de la franja, reloj en píldora.
   · "WIN xN" y nombre en cada mitad; WIN / LOSE al terminar.
   · Debajo de la franja: 3 sillas por lado (mejores aportadores) y banner de misión bonus.
   · Intro: guantes que chocan. Icy Clash y marcador de la serie se conservan.
   Izquierda = el live donde estoy (rosa); derecha = el rival (celeste).
   ═══════════════════════════════════════════════════════════════ */

#streaming-stage {
    --kb-top: calc(max(12px, env(safe-area-inset-top)) + 44px + 8px);   /* arriba de la barra */
    --kb-bar: 20px;                                                     /* alto de la barra de puntos */
    --kb-vtop: calc(var(--kb-top) + var(--kb-bar) + 2px);               /* donde empieza la franja de video */
    --kb-vh: min(92vw, 42vh);                                           /* alto de la franja de video */
    --kb-pink: #ff2d78;
    --kb-cyan: #1ec8ff;
}

/* La X roja de la batalla se quita: se sale con la crucecita normal del live */
#streaming-stage .kapi-battle-end-btn { display: none !important; }

/* ── Franja de video: dos mitades 50/50, sin degradado en la costura ── */
html #streaming-stage.kapi-battle-active { background: #000; }
html #streaming-stage.kapi-battle-active #pro-main-stream-video,
html #streaming-stage.kapi-battle-active #stream-preview-local {
    position: absolute !important;
    left: 0 !important; right: auto !important;
    top: var(--kb-vtop) !important;
    bottom: auto !important;
    width: 50% !important;
    height: var(--kb-vh) !important;
    max-width: none !important; max-height: none !important;
    object-fit: cover !important;
    -webkit-mask-image: none !important; mask-image: none !important;
    background: #000;
    z-index: 2;
}
html #streaming-stage.kapi-battle-active #kapi-battle-remote-video {
    position: absolute !important;
    left: auto !important; right: 0 !important;
    top: var(--kb-vtop) !important;
    bottom: auto !important;
    width: 50% !important;
    height: var(--kb-vh) !important;
    object-fit: cover !important;
    -webkit-mask-image: none !important; mask-image: none !important;
    background: #000;
    z-index: 2;
}
/* el VS naranja del medio, el nombre arriba a la derecha y la línea larga de antes ya no van */
html #streaming-stage.kapi-battle-active .kapi-battle-vs-badge,
html #streaming-stage.kapi-battle-active .kapi-battle-opponent-name { display: none !important; }
html #streaming-stage.kapi-battle-active .kapi-battle-split::before {
    top: var(--kb-vtop) !important; bottom: auto !important; height: var(--kb-vh) !important;
    width: 2px !important;
    background: rgba(255, 255, 255, .9) !important;
    box-shadow: 0 0 6px rgba(255, 255, 255, .55) !important;
}

.kb-hud {
    position: absolute;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    font-family: inherit;
}
.kb-hud.kb-hidden { display: none !important; }

/* ── Barra de puntos: rosa a la izquierda, celeste a la derecha, marca blanca en la unión ── */
.kb-bar {
    position: absolute;
    left: 0; right: 0;
    top: var(--kb-top);
    height: var(--kb-bar);
    display: flex;
    background: rgba(0, 0, 0, .6);
}
.kb-fill-l, .kb-fill-r { height: 100%; transition: width .5s cubic-bezier(.3, .8, .3, 1); }
.kb-fill-l { background: linear-gradient(90deg, #ff2d78, #ff5c93); width: 50%; position: relative; }
.kb-fill-r { background: linear-gradient(90deg, #1ec8ff, #17b5f5); width: 50%; }
.kb-fill-l::after {            /* marca blanca en el punto de unión, sobresale un poco de la barra */
    content: '';
    position: absolute; right: -1.5px; top: -3px; bottom: -3px;
    width: 3px;
    background: #fff;
    box-shadow: 0 0 6px 1px rgba(255, 255, 255, .8);
    z-index: 2;
}
.kb-num {
    position: absolute;
    top: 0; bottom: 0;
    display: flex; align-items: center;
    color: #fff;
    font-size: 11px; font-weight: 800;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
    padding: 0 8px;
    z-index: 3;
}
.kb-num-l { left: 0; }
.kb-num-r { right: 0; }

/* ── Reloj en píldora oscura, centrado bajo la barra ── */
.kb-timer {
    position: absolute;
    left: 50%;
    top: calc(var(--kb-vtop) + 6px);
    transform: translateX(-50%);
    background: rgba(18, 18, 24, .82);
    color: #fff;
    font-size: 14px; font-weight: 800;
    letter-spacing: .5px;
    padding: 2px 12px;
    border-radius: 14px;
    font-variant-numeric: tabular-nums;
    z-index: 4;
}
.kb-timer.live { box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); }

/* Marcador de la serie (Mejor de 3), pegado al reloj */
.kb-serie {
    position: absolute; left: 50%; top: calc(var(--kb-vtop) + 6px + 26px); transform: translateX(-50%);
    display: none; padding: 2px 10px; border-radius: 10px; white-space: nowrap;
    background: linear-gradient(135deg, #ffa13c, #ff7a1a);
    color: #fff; font-size: 11px; font-weight: 800;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .45);
    z-index: 4;
}
.kb-serie.on { display: block; }

/* ── Nombre (abajo) y "WIN xN" en cada mitad ── */
.kb-nm {
    position: absolute;
    top: calc(var(--kb-vtop) + var(--kb-vh) - 22px);
    max-width: 44%;
    padding: 2px 8px;
    border-radius: 9px;
    background: rgba(0, 0, 0, .58);
    color: #fff;
    font-size: 10px; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    z-index: 4;
}
.kb-nm:empty { display: none; }
.kb-nm-l { left: 6px; }
.kb-nm-r { right: 6px; }
.kb-wl {
    position: absolute;
    top: calc(var(--kb-vtop) + var(--kb-vh) - 40px);
    color: #ffd54a;
    font-size: 11px; font-weight: 900; font-style: italic; letter-spacing: .3px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .9);
    z-index: 4;
}
.kb-wl-l { left: 8px; }
.kb-wl-r { right: 8px; }

/* Multiplicador activo de cada lado: "x3 · 24 s" en la esquina de arriba de su mitad */
.kb-mult {
    position: absolute; top: calc(var(--kb-vtop) + 6px);
    display: none;
    padding: 1px 7px; border-radius: 9px;
    font-size: 11px; font-weight: 900; font-style: italic;
    background: rgba(0, 0, 0, .5);
    z-index: 4;
}
.kb-mult.on { display: block; animation: kbPulse .9s ease-in-out infinite alternate; }
.kb-mult-l { left: 6px; color: #ff9ebd; }
.kb-mult-r { right: 6px; color: #7ae3ff; }
@keyframes kbPulse { from { transform: scale(1); } to { transform: scale(1.08); } }

/* ── WIN amarillo / LOSE gris / EMPATE, uno por mitad ── */
.kb-res {
    position: absolute;
    top: calc(var(--kb-vtop) + var(--kb-vh) / 2 - 24px);
    width: 50%;
    text-align: center;
    font-weight: 900; font-style: italic;
    letter-spacing: 1px;
    display: none;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .8);
    z-index: 5;
}
.kb-res-l { left: 0; }
.kb-res-r { right: 0; }
.kb-res.on { display: block; animation: kbPop .5s cubic-bezier(.2, 1.4, .4, 1); }
.kb-res.win { color: #ffd54a; font-size: 38px; text-shadow: 0 0 16px rgba(255, 200, 40, .9), 0 2px 8px rgba(0, 0, 0, .8); }
.kb-res.lose { color: rgba(235, 235, 240, .75); font-size: 22px; }
.kb-res.tie { color: #fff; font-size: 24px; }
@keyframes kbPop { 0% { transform: scale(.3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* ── Mensajes de estado (invitar / esperando / le toca al ganador): en el centro de la franja ── */
.kb-msg {
    position: absolute;
    left: 50%;
    top: calc(var(--kb-vtop) + var(--kb-vh) / 2 + 20px);
    transform: translateX(-50%);
    max-width: 86%;
    background: rgba(0, 0, 0, .62);
    color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    text-align: center;
    display: none;
    z-index: 4;
}
.kb-msg.on { display: block; }

/* Propuesta de batalla (le llega al otro anfitrión) */
.kb-prop {
    position: absolute;
    left: 50%;
    top: calc(var(--kb-vtop) + 44px);
    transform: translateX(-50%);
    width: 92%;
    max-width: 380px;
    display: none;
    align-items: center; gap: 8px;
    background: rgba(10, 18, 32, .94);
    border: 1px solid rgba(255, 45, 120, .6);
    border-radius: 14px;
    padding: 8px 10px;
    pointer-events: auto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .6);
    z-index: 6;
}
.kb-prop.on { display: flex; }
.kb-prop-t { flex: 1; min-width: 0; color: #fff; font-size: 12px; font-weight: 600; }
.kb-prop button {
    border: none; border-radius: 10px;
    font-size: 11px; font-weight: 800;
    padding: 7px 11px;
    cursor: pointer;
}
.kb-prop-ok { background: linear-gradient(135deg, #ff2d78, #ff5c93); color: #fff; }
.kb-prop-no { background: rgba(255, 255, 255, .12); color: #fff; }

/* Silenciar al rival (los dos que pelean) */
.kb-mute {
    position: absolute;
    right: 6px;
    top: calc(var(--kb-vtop) + var(--kb-vh) * .42);
    width: 32px; height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    display: none;
    align-items: center; justify-content: center;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
    z-index: 6;
}
.kb-mute.on { display: flex; }
.kb-mute.off { background: #e53935; }
.kb-mute .material-icons { font-size: 18px; }

/* Aviso al que fue silenciado: puede activar su propio micrófono */
.kb-unmute-me {
    position: absolute;
    left: 50%;
    bottom: 150px;
    transform: translateX(-50%);
    display: none;
    background: #e53935; color: #fff;
    border: none; border-radius: 16px;
    font-size: 12px; font-weight: 700;
    padding: 8px 14px;
    pointer-events: auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .6);
    z-index: 6;
}
.kb-unmute-me.on { display: block; }

/* Botón VS del dock (cuando hay batalla) */
#streaming-stage .broadcaster-controls-bar #kapi-battle-btn.kb-vs-on,
html.kapi-native-app #streaming-stage.kapi-role-broadcaster .broadcaster-controls-bar #kapi-battle-btn.kb-vs-on {
    background: linear-gradient(135deg, #ff2d78, #ff5c93) !important;
    box-shadow: 0 0 10px rgba(255, 45, 120, .7) !important;
}
#streaming-stage .broadcaster-controls-bar #kapi-battle-btn.kb-vs-hot {
    animation: kbVsHot 1.1s ease-in-out infinite;
}
@keyframes kbVsHot {
    0%, 100% { box-shadow: 0 0 6px rgba(255, 45, 120, .6); }
    50% { box-shadow: 0 0 16px 3px rgba(255, 45, 120, 1); }
}

/* Resumen al cerrar la ronda */
.kb-toast {
    position: absolute; left: 50%; top: calc(var(--kb-vtop) + var(--kb-vh) / 2 - 40px); transform: translateX(-50%);
    max-width: 88%; background: rgba(10, 18, 32, .94); border: 1px solid rgba(255, 255, 255, .22);
    color: #fff; font-size: 12px; font-weight: 600; text-align: center; line-height: 1.4;
    padding: 9px 14px; border-radius: 14px; display: none; box-shadow: 0 6px 20px rgba(0, 0, 0, .6);
    z-index: 7;
}
.kb-toast.on { display: block; animation: kbPop .4s ease-out; }

/* ── Debajo de la franja: sillas (3 rosadas | banner de misión | 3 celestes) ── */
.kb-strip {
    position: absolute; left: 0; right: 0;
    top: calc(var(--kb-vtop) + var(--kb-vh) + 6px);
    display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 6px;
}
.kb-mvp { display: flex; gap: 3px; flex: 0 0 auto; min-width: 0; }
.kb-mvp-c {
    position: relative; width: 29px; height: 29px; border-radius: 50%;
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px;
    background: rgba(255, 45, 120, .32); border: 2px solid var(--kb-pink);
}
.kb-mvp-r .kb-mvp-c { background: rgba(30, 200, 255, .30); border-color: var(--kb-cyan); }
.kb-mvp-c b { font-weight: 800; }
.kb-mvp-c i {
    position: absolute; right: -4px; bottom: -4px; width: 13px; height: 13px; border-radius: 50%;
    background: #fff; color: #000; font-size: 9px; font-style: normal; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
}
.kb-mvp-c.kb-mvp-1 i { background: #ffd60a; }
.kb-mvp-c.kb-mvp-vacio { opacity: .5; }
.kb-mvp-c.kb-mvp-vacio b::before { content: ''; display: block; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .45); }

.kb-pill {
    position: relative; flex: 1 1 auto; min-width: 0; min-height: 32px; border-radius: 8px; overflow: hidden;
    display: none; align-items: center; justify-content: center;
    background: rgba(112, 10, 36, .92); border: 1px solid rgba(255, 255, 255, .16);
    color: #fff; font-size: 11px; font-weight: 800; line-height: 1.2; text-align: center;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .5);
}
.kb-pill.on { display: flex; }
.kb-pill-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #c4123f, #ff4d7e); transition: width .4s ease; }
.kb-pill-t { position: relative; z-index: 1; padding: 4px 8px; text-shadow: 0 1px 3px rgba(0, 0, 0, .75); }
/* nota de la misión (segunda línea, más chica) */
.kb-pill.on.kb-con-nota { flex-direction: column; gap: 0; }
.kb-pill-n { position: relative; z-index: 1; display: block; padding: 0 10px 3px; font-size: 9px; font-weight: 700; letter-spacing: .2px; opacity: .92; text-shadow: 0 1px 3px rgba(0, 0, 0, .75); }
.kb-pill.kb-con-nota .kb-pill-t { padding-bottom: 1px; }
.kb-p-anuncio { background: rgba(112, 10, 36, .92); }
.kb-p-ok { background: #d81b5a; animation: kbPop .4s ease-out; }
.kb-p-boost { background: linear-gradient(90deg, #ff9a3c, #ff2d78); box-shadow: 0 0 14px rgba(255, 90, 90, .7); font-size: 12px; }
.kb-p-boost .kb-pill-fill { display: none; }
.kb-p-fail { background: rgba(60, 60, 70, .92); color: #ddd; }

/* ── Elegir duración ── */
.kb-dur {
    position: absolute; left: 50%; top: 40%; transform: translateX(-50%);
    display: none; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
    padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, .82); color: #fff;
    pointer-events: auto; max-width: 92%;
    z-index: 8;
}
.kb-dur.on { display: flex; }
.kb-dur span { width: 100%; text-align: center; font-weight: 800; font-size: 14px; }
.kb-dur button {
    border: 0; border-radius: 10px; padding: 8px 14px; font-weight: 800; font-size: 14px;
    background: linear-gradient(135deg, #ff2d78, #ff5c93); color: #fff;
}
.kb-dur button.kb-dur-x { background: rgba(255, 255, 255, .2); }
.kb-dur button.kb-dur-s { background: rgba(255, 255, 255, .2); }
.kb-dur button.kb-dur-s.on { background: #ffa13c; color: #000; }

/* regalos desactivados para quienes pelean */
.kb-regalo-off { opacity: .35; filter: grayscale(1); }

/* Efectos de potenciadores (etiquetas) y Baúl */
.kb-efx { position: absolute; left: 8px; right: 8px; top: calc(var(--kb-vtop) + 56px); display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; pointer-events: none; z-index: 4; }
.kb-efx-i { padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 800; color: #fff; background: rgba(0, 0, 0, .65); border: 1px solid rgba(255, 255, 255, .25); }
.kb-efx-i.mio { border-color: #34c759; }
.kb-efx-i.rival { border-color: #ff453a; }
.kb-baul-msg { grid-column: 1 / -1; padding: 22px 14px; text-align: center; color: #ddd; font-size: 13px; }
.kb-baul-item { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.kb-baul-ic { font-size: 26px; }
.kb-baul-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; color: #fff; }
.kb-baul-tx b { font-size: 13px; }
.kb-baul-tx i { color: #ffd60a; font-style: normal; }
.kb-baul-tx small { font-size: 11px; opacity: .8; }
.kb-baul-use { border: 0; border-radius: 10px; padding: 7px 14px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #ff2d78, #ff5c93); }
.kb-baul-use:disabled { opacity: .5; }

/* Icy Clash: hielo sobre la mitad del que va perdiendo (solo en la franja; no cambia los puntos) */
.kb-ice {
    position: absolute; top: var(--kb-vtop); height: var(--kb-vh); width: 50%;
    opacity: 0; transition: opacity .6s ease; pointer-events: none;
    background:
        repeating-linear-gradient(115deg, rgba(255, 255, 255, .10) 0 2px, rgba(255, 255, 255, 0) 2px 26px),
        linear-gradient(180deg, rgba(150, 220, 255, .05) 0%, rgba(150, 220, 255, .20) 60%, rgba(205, 240, 255, .40) 100%);
    box-shadow: inset 0 0 60px rgba(170, 230, 255, .60), inset 0 0 14px rgba(255, 255, 255, .55);
    backdrop-filter: saturate(.75) brightness(1.06);
    -webkit-backdrop-filter: saturate(.75) brightness(1.06);
    z-index: 3;
}
.kb-ice-l { left: 0; }
.kb-ice-r { right: 0; }
.kb-ice.on { opacity: 1; }

/* ── Intro: los guantes chocan con rayos rosa y celeste y los dos avatares ── */
.kb-intro {
    position: absolute; left: 0; right: 0; top: var(--kb-vtop); height: var(--kb-vh);
    display: none; overflow: hidden; pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, .35), rgba(0, 0, 0, .78));
    z-index: 9;
}
.kb-intro.on { display: block; animation: kbInBg 2.9s ease forwards; }
@keyframes kbInBg { 0% { opacity: 0; } 8% { opacity: 1; } 84% { opacity: 1; } 100% { opacity: 0; } }
.kb-in-ray { position: absolute; top: 0; bottom: 0; width: 50%; opacity: .85; }
.kb-in-ray-l { left: 0; background: conic-gradient(from 90deg at 100% 50%, rgba(255, 45, 120, .0), rgba(255, 45, 120, .55) 10deg, rgba(255, 45, 120, 0) 22deg, rgba(255, 45, 120, .45) 36deg, rgba(255, 45, 120, 0) 50deg, rgba(255, 45, 120, .5) 64deg, rgba(255, 45, 120, 0) 78deg); }
.kb-in-ray-r { right: 0; background: conic-gradient(from 270deg at 0% 50%, rgba(30, 200, 255, 0), rgba(30, 200, 255, .55) 10deg, rgba(30, 200, 255, 0) 22deg, rgba(30, 200, 255, .45) 36deg, rgba(30, 200, 255, 0) 50deg, rgba(30, 200, 255, .5) 64deg, rgba(30, 200, 255, 0) 78deg); }
.kb-in-g {
    position: absolute; top: 50%; font-size: 64px; line-height: 1;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .7));
}
.kb-in-g-l { left: 50%; margin: -32px 0 0 -64px; animation: kbGl 2.9s cubic-bezier(.6, 0, .3, 1) both; }
.kb-in-g-r { left: 50%; margin: -32px 0 0 0; animation: kbGr 2.9s cubic-bezier(.6, 0, .3, 1) both; }
@keyframes kbGl { 0% { transform: translateX(-190%) rotate(-25deg); opacity: 0; } 12% { opacity: 1; } 38% { transform: translateX(0) rotate(0); } 46% { transform: translateX(-10%) rotate(-6deg); } 100% { transform: translateX(-10%) rotate(-6deg); } }
@keyframes kbGr { 0% { transform: translateX(190%) scaleX(-1) rotate(-25deg); opacity: 0; } 12% { opacity: 1; } 38% { transform: translateX(0) scaleX(-1) rotate(0); } 46% { transform: translateX(10%) scaleX(-1) rotate(-6deg); } 100% { transform: translateX(10%) scaleX(-1) rotate(-6deg); } }
.kb-in-flash { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px; border-radius: 50%; background: #fff; opacity: 0; animation: kbFlash 2.9s ease-out both; }
@keyframes kbFlash { 0%, 36% { opacity: 0; transform: scale(.3); } 40% { opacity: 1; transform: scale(1); box-shadow: 0 0 40px 20px rgba(255, 255, 255, .9); } 62% { opacity: 0; transform: scale(9); } 100% { opacity: 0; } }
.kb-in-av { position: absolute; top: 50%; margin-top: -42px; width: 70px; text-align: center; color: #fff; }
.kb-in-av-l { left: 8%; animation: kbAvL 2.9s ease-out both; }
.kb-in-av-r { right: 8%; animation: kbAvR 2.9s ease-out both; }
@keyframes kbAvL { 0% { transform: translateX(-60px); opacity: 0; } 25% { transform: none; opacity: 1; } 100% { opacity: 1; } }
@keyframes kbAvR { 0% { transform: translateX(60px); opacity: 0; } 25% { transform: none; opacity: 1; } 100% { opacity: 1; } }
.kb-in-av b { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin: 0 auto 4px; border-radius: 50%; font-size: 22px; font-weight: 900; }
.kb-in-av-l b { background: rgba(255, 45, 120, .45); border: 3px solid var(--kb-pink); box-shadow: 0 0 14px rgba(255, 45, 120, .8); }
.kb-in-av-r b { background: rgba(30, 200, 255, .4); border: 3px solid var(--kb-cyan); box-shadow: 0 0 14px rgba(30, 200, 255, .8); }
.kb-in-av small { display: block; font-size: 10px; font-weight: 700; text-shadow: 0 1px 3px rgba(0, 0, 0, .9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-in-t { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: #fff; font-size: 15px; font-weight: 900; font-style: italic; letter-spacing: 1px; text-shadow: 0 2px 8px rgba(0, 0, 0, .9); }

/* ═══════════════════════════════════════════════════════════════
   PARCHE kapi-batalla v2 — pantalla del anfitrión DURANTE la batalla
   1) Cabecera: la MISMA del anfitrión (#kapi-lh: avatar, nombre, corazones, ojito, apagar, fichas)
      y la vieja (.kapi-hud-top con el "+" y el reloj raro) se esconde.
   2) La barra y el video bajan para dejarle sitio a la cabecera.
   3) Chat: chico, debajo de las sillas; el "Di algo..." vuelve abajo.
   4) Candado: encima del dock, ya no sobre la barra ni sobre el dock.
   (La capa #kapi-lh sigue viva en batalla; solo estaba apagada por el CSS con :not(.kapi-battle-active).)
   ═══════════════════════════════════════════════════════════════ */

/* 1) cabecera nueva visible en batalla, sin la barra de abajo de ella */
html.kapi-native-app #streaming-stage.kapi-lh.kapi-battle-active #kapi-lh {
    display: block; position: absolute; inset: 0; z-index: 650;
    pointer-events: none; color: #fff; font-family: inherit;
}
html.kapi-native-app #streaming-stage.kapi-lh.kapi-battle-active #kapi-lh .lh-bar { display: none !important; }
html.kapi-native-app #streaming-stage.kapi-lh.kapi-battle-active .kapi-hud-top,
html.kapi-native-app #streaming-stage.kapi-lh.kapi-battle-active .engagement-wrapper,
html.kapi-native-app #streaming-stage.kapi-lh.kapi-battle-active .kapi-zoom-hint { display: none !important; }

/* 2) la barra de puntos baja bajo las dos filas de fichas (la franja de video la sigue sola) */
html #streaming-stage.kapi-battle-active { --kb-top: calc(max(12px, env(safe-area-inset-top)) + 118px); }

/* 3) chat: debajo de las sillas; el panel llega hasta abajo para que el "Di algo..." quede en su sitio */
html #streaming-stage.kapi-battle-active #pro-chat-sidebar {
    position: absolute !important;
    left: 0 !important; right: 0 !important; width: 100% !important; max-width: none !important;
    top: calc(var(--kb-vtop) + var(--kb-vh) + 6px + 29px + 12px) !important;
    bottom: 0 !important;
    height: auto !important; max-height: none !important;
    transform: none !important;
    background: transparent !important;
    z-index: 55 !important;
    pointer-events: none;
}
html #streaming-stage.kapi-battle-active #pro-chat-sidebar .chat-header,
html #streaming-stage.kapi-battle-active #pro-chat-sidebar .chat-welcome { display: none !important; }
html #streaming-stage.kapi-battle-active #pro-chat-messages {
    position: absolute !important;
    left: 0 !important; right: 0 !important;
    bottom: 142px !important;            /* deja libres el dock y el "Di algo..." */
    max-height: 100% !important;
    padding: 0 56px 0 12px !important;   /* a la derecha queda el candado */
    display: flex !important; flex-direction: column !important; gap: 6px !important;
    overflow-y: auto !important;
    background: transparent !important;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%);
    mask-image: linear-gradient(to bottom, transparent, #000 18%);
    scrollbar-width: none;
}
html #streaming-stage.kapi-battle-active #pro-chat-messages::-webkit-scrollbar { display: none; }
html #streaming-stage.kapi-battle-active #pro-chat-messages::before { content: ''; margin-top: auto; flex: 0 0 0; }
html #streaming-stage.kapi-battle-active #pro-chat-messages .chat-message { padding: 0 !important; margin: 0 !important; }
html #streaming-stage.kapi-battle-active #pro-chat-messages .chat-message-text,
html #streaming-stage.kapi-battle-active #pro-chat-messages .lh-sys-tx {
    font-size: 12px !important; line-height: 1.3 !important; font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .65);
}

/* 4) candado: a la derecha, justo encima del dock */
html #streaming-stage.kapi-battle-active #kapi-fan-lock {
    top: auto !important; right: 10px !important; bottom: 142px !important;
    width: 34px !important; height: 34px !important;
    z-index: 661 !important;
}

/* 5) silenciar al rival: dentro de la franja, sin tapar el nombre ni el WIN */
/* KAPI_MENUVISOR1: el botoncito del altavoz ya no existe (ahora es el menú al tocar el visor del rival) */

/* ═══════════════════════════════════════════════════════════════
   PARCHE kapi-batalla v3 — el chat se queda ABAJO (anfitrión en batalla)
   Causa del chat "muy arriba": dos cosas se sumaban sobre #pro-chat-messages
   a) kapi-ventanillas.css le pone padding-bottom (dock + 54px) con !important y le ganaba al v2
      → el último mensaje quedaba ~134px más arriba de lo previsto.
   b) el v2 usaba max-height:100% con bottom fijo → la caja crecía hacia arriba POR ENCIMA de las
      sillas y de las dos ventanas de video.
   Ahora: la caja va de "debajo de las sillas" hasta "encima del dock" (top:0 / bottom:dock+54px),
   sin padding-bottom, y los mensajes se pegan al borde de abajo. Orden de abajo hacia arriba:
   caja "Di algo..." → dock (emojis y botones) → chat → sillas → video.
   Candado: justo encima del dock, a la derecha.
   ═══════════════════════════════════════════════════════════════ */
html.kapi-native-app #streaming-stage.kapi-lh.kapi-battle-active {
    --kb-chat-bot: calc(var(--kapi-dock-bottom, 80px) + 46px + 8px);   /* borde de arriba del dock + aire */
}
html.kapi-native-app #streaming-stage.kapi-lh.kapi-battle-active #pro-chat-messages {
    top: 0 !important;
    bottom: var(--kb-chat-bot) !important;
    height: auto !important;
    max-height: none !important;
    padding: 0 56px 0 12px !important;
    box-sizing: border-box !important;
}
html.kapi-native-app #streaming-stage.kapi-lh.kapi-battle-active #kapi-fan-lock {
    top: auto !important; right: 10px !important;
    bottom: var(--kb-chat-bot) !important;
}

/* ═══════════════════════════════════════════════════════════════
   PARCHE kapi-batalla v4 — casita a su fila + botones de abajo del anfitrión
   1) La casita (.lh-chips2) la subía kapi-ventanillas.js (inyecta top:+48px !important) a la fila de las
      fichas. En batalla vuelve a su fila de abajo, a la derecha, como en la referencia.
   2) Vuelve la barra de botones de abajo del anfitrión (.lh-bar: VS, ventanilla, mensajes, compartir,
      efectos, "...") — la misma del live normal, sin cambios.
   3) Para hacerle sitio: la caja "Di algo..." se esconde en batalla (igual que en el live normal),
      la barra de emojis/botones sube justo encima de .lh-bar, y el candado y el chat suben con ella.
   Orden de abajo hacia arriba: .lh-bar → barra de emojis → candado/chat → sillas → video.
   ═══════════════════════════════════════════════════════════════ */
html.kapi-native-app #streaming-stage.kapi-lh.kapi-battle-active {
    --kb-bar-b: max(12px, env(safe-area-inset-bottom));              /* base de la barra de botones */
    --kb-dock-b: calc(var(--kb-bar-b) + 34px + 10px);                /* base de la barra de emojis */
    --kb-chat-bot: calc(var(--kb-dock-b) + 46px + 8px);              /* base del chat y del candado */
}
html.kapi-native-app #streaming-stage.kapi-lh.kapi-battle-active #kapi-lh .lh-chips2 {
    top: calc(max(12px, env(safe-area-inset-top)) + 80px) !important;
}
html.kapi-native-app #streaming-stage.kapi-lh.kapi-battle-active #kapi-lh .lh-bar { display: flex !important; }
html.kapi-native-app #streaming-stage.kapi-lh.kapi-battle-active #live-chat-input-area { display: none !important; }
html.kapi-native-app #streaming-stage.kapi-lh.kapi-battle-active .broadcaster-controls-bar {
    bottom: var(--kb-dock-b) !important;
}

/* ═══════════════════════════════════════════════════════════════
   PARCHE kapi-batalla v5 — la barra de emojis sube junto a la casita; fuera los botones repetidos
   • Se esconden en batalla (siguen en el DOM; el menú "..." los usa): VS, microventanilla, micrófono,
     cámara, minijuegos, regalos del live y finalizar (ya está el de arriba a la derecha).
     Todo eso ya sale en el menú "..." (Girar, Espejo, Cámara, Micrófono, Regalos LIVE, Minijuegos,
     Microventanilla...). El VS de verdad es el de la fila de botones de abajo.
   • La barra queda solo con los 6 emojis y sube a la fila de la casita (a la izquierda; la casita a la derecha).
   • Abajo ya no hay barra de emojis: el chat y el candado bajan y quedan justo encima de la fila de botones.
   ═══════════════════════════════════════════════════════════════ */
html.kapi-native-app #streaming-stage.kapi-lh.kapi-battle-active { --kb-chat-bot: calc(var(--kb-bar-b) + 34px + 10px); }

html.kapi-native-app #streaming-stage.kapi-lh.kapi-battle-active .broadcaster-controls-bar #kapi-battle-btn,
html.kapi-native-app #streaming-stage.kapi-lh.kapi-battle-active .broadcaster-controls-bar #kapi-pip-btn,
html.kapi-native-app #streaming-stage.kapi-lh.kapi-battle-active .broadcaster-controls-bar #toggle-mic-stream-btn,
html.kapi-native-app #streaming-stage.kapi-lh.kapi-battle-active .broadcaster-controls-bar #toggle-camera-stream-btn,
html.kapi-native-app #streaming-stage.kapi-lh.kapi-battle-active .broadcaster-controls-bar #kapi-games-btn,
html.kapi-native-app #streaming-stage.kapi-lh.kapi-battle-active .broadcaster-controls-bar #kapi-host-gifts-btn,
html.kapi-native-app #streaming-stage.kapi-lh.kapi-battle-active .broadcaster-controls-bar #pro-leave-btn { display: none !important; }

html.kapi-native-app #streaming-stage.kapi-lh.kapi-battle-active .broadcaster-controls-bar {
    top: calc(max(12px, env(safe-area-inset-top)) + 76px) !important;
    bottom: auto !important;
    left: 12px !important; right: auto !important;
    width: auto !important;
    gap: 5px !important;
    padding: 3px 7px !important;
}
html.kapi-native-app #streaming-stage.kapi-lh.kapi-battle-active .broadcaster-controls-bar #live-reactions-bar .reaction-live-btn {
    flex: 0 0 auto !important;
    width: 28px !important; height: 28px !important; max-width: none !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
}
html.kapi-native-app #streaming-stage.kapi-lh.kapi-battle-active .broadcaster-controls-bar #live-reactions-bar .reaction-live-btn:last-child::after { display: none !important; }

/* ═══════════════════════════════════════════════════════════════
   PARCHE kapi-batalla v6 — los nombres pegados al borde de cada caja y con letra más chica
   (youmarrecords al borde izquierdo, el rival al borde derecho)
   ═══════════════════════════════════════════════════════════════ */
#kapi-bat-hud .kb-nm { font-size: 9px !important; padding: 2px 7px !important; max-width: 46% !important; }
#kapi-bat-hud .kb-nm-l { left: 0 !important; border-radius: 0 9px 9px 0 !important; }
#kapi-bat-hud .kb-nm-r { right: 0 !important; border-radius: 9px 0 0 9px !important; }


/* ═══════════════════════════════════════════════════════════════
   KAPI_LVB1 — el ESPECTADOR en batalla se queda con la pantalla nueva (#kapi-lv); el visor viejo ya no se pinta.
   (kapi-livever.css ya no apaga la capa con :not(.kapi-battle-active); aquí solo se acomoda el chat de abajo.)
   Orden de abajo hacia arriba: barra .lv-bar → chat → sillas MVP → video; ruleta/tip menu arriba del video.
   ═══════════════════════════════════════════════════════════════ */
html.kapi-native-app #streaming-stage.kapi-lv.kapi-role-viewer.kapi-battle-active {
    --kb-chat-bot: calc(max(12px, env(safe-area-inset-bottom)) + 34px + 10px);
}
html.kapi-native-app #streaming-stage.kapi-lv.kapi-role-viewer.kapi-battle-active #pro-chat-messages {
    top: 0 !important;
    bottom: var(--kb-chat-bot) !important;
    height: auto !important; max-height: none !important;
    padding: 0 56px 0 12px !important;
    box-sizing: border-box !important;
    pointer-events: auto;
}
html.kapi-native-app #streaming-stage.kapi-lv.kapi-role-viewer.kapi-battle-active #viewer-join-notification {
    bottom: calc(var(--kb-chat-bot) + 4px);
}

/* ═══════════════════════════════════════════════════════════════
   KAPI_FABS1 — Ruleta y Tip Menu en la fila de arriba del video (donde van los emojis de reacción)
   Sin ellos, la barra de emojis queda como siempre. Con ellos, la barra se corre a la derecha y se achica.
   ═══════════════════════════════════════════════════════════════ */
html #streaming-stage.kapi-battle-active #kmg-fabs {
    top: calc(max(12px, env(safe-area-inset-top)) + 72px) !important;
    left: 12px !important; right: auto !important;
    flex-direction: row !important; align-items: flex-start !important;
    gap: 5px !important; max-width: none !important;
    z-index: 662 !important;
}
html #streaming-stage.kapi-battle-active #kmg-fabs .kmg-fab {
    width: 40px !important; min-width: 40px !important; height: 36px !important;
    padding: 2px 0 !important; justify-content: center !important;
    border-radius: 11px !important; font-size: 15px !important; line-height: 1 !important;
    overflow: hidden;
}
html #streaming-stage.kapi-battle-active #kmg-fabs .kmg-fab span:has(+ em) { display: none !important; }   /* con precio/estado se ve solo ese */
html #streaming-stage.kapi-battle-active #kmg-fabs .kmg-fab span,
html #streaming-stage.kapi-battle-active #kmg-fabs .kmg-fab em {
    font-size: 8px !important; line-height: 1.1 !important; max-width: 38px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* anfitrión: la barra de emojis deja sitio a 1 ícono (40 px) o a 2 (85 px) y sus botones se achican */
html.kapi-native-app #streaming-stage.kapi-lh.kapi-battle-active.kapi-has-fabs .broadcaster-controls-bar {
    left: calc(12px + 40px + 5px + 6px) !important;
    gap: 3px !important; padding: 3px 5px !important;
}
html.kapi-native-app #streaming-stage.kapi-lh.kapi-battle-active.kapi-has-fabs:has(#kmg-fabs .kmg-fab + .kmg-fab) .broadcaster-controls-bar {
    left: calc(12px + 85px + 6px) !important;
}
html.kapi-native-app #streaming-stage.kapi-lh.kapi-battle-active.kapi-has-fabs .broadcaster-controls-bar #live-reactions-bar .reaction-live-btn {
    width: 22px !important; height: 22px !important; font-size: 12px !important;
}

/* ═══════════════════════════════════════════════════════════════
   KAPI_COLAB1 — círculos MVP con foto + hoja "Colaboradores"
   ═══════════════════════════════════════════════════════════════ */
.kb-mvp { pointer-events: auto; }
.kb-mvp-c { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.kb-mvp-c .kb-mvp-av {
    position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800; color: #fff;
}
.kb-mvp-c .kb-mvp-av.kb-mvp-anon { background: linear-gradient(135deg, #7c3aed, #00bfff); }
.kb-mvp-c.kb-mvp-vacio .kb-mvp-av::before { content: ''; display: block; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.kb-mvp-c i { z-index: 2; }

.kbc-bg { position: fixed; inset: 0; z-index: 99995; background: rgba(0, 6, 16, .6); display: flex; align-items: flex-end; justify-content: center; font-family: inherit; }
.kbc-sheet {
    width: 100%; max-width: 520px; max-height: 78vh; display: flex; flex-direction: column;
    background: #0a1220; color: #fff; border: 1px solid rgba(0, 229, 255, .22); border-bottom: 0; border-radius: 18px 18px 0 0;
    padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); animation: kbcUp .22s ease-out;
}
@keyframes kbcUp { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.kbc-grip { width: 38px; height: 4px; border-radius: 2px; background: rgba(0, 229, 255, .35); margin: 0 auto 10px; flex: none; }
.kbc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: none; }
.kbc-t { font-size: 17px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kbc-q { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid rgba(0, 229, 255, .5); background: transparent; color: #00e5ff; font-size: 15px; font-weight: 700; padding: 0; }
.kbc-help { display: none; margin-top: 8px; padding: 9px 11px; border-radius: 10px; background: #111c30; color: #c4d2e4; font-size: 13px; line-height: 1.35; flex: none; }
.kbc-help.on { display: block; }
.kbc-pts-row { margin: 10px 0 8px; font-size: 14px; color: #8fa3bd; flex: none; }
.kbc-pts-row b { color: #ffd60a; font-size: 15px; }
.kbc-list { flex: 1 1 auto; min-height: 60px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.kbc-row { display: flex; align-items: center; gap: 11px; padding: 8px 0; border-bottom: 1px solid rgba(0, 229, 255, .08); }
.kbc-pos { flex: none; width: 22px; text-align: center; font-size: 15px; font-weight: 800; color: #8fa3bd; }
.kbc-pos.kbc-top1 { color: #ffd60a; } .kbc-pos.kbc-top2 { color: #cfd3da; } .kbc-pos.kbc-top3 { color: #e0955a; }
.kbc-av {
    position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: #1a2a44;
    display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; color: #fff; border: 2px solid rgba(0, 229, 255, .25);
}
.kbc-av.kbc-anon { background: linear-gradient(135deg, #7c3aed, #00bfff); }
.kbc-nm { flex: 1; min-width: 0; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kbc-pts { flex: none; font-size: 15px; font-weight: 800; color: #ffd60a; font-variant-numeric: tabular-nums; }
.kbc-vacio { text-align: center; color: #8fa3bd; font-size: 14px; padding: 28px 8px; }
.kbc-foot { flex: none; text-align: center; color: #6f84a1; font-size: 12px; padding-top: 10px; }
/* KAPI_COLAB1 fin */

/* ═══════════════════════════════════════════════════════════════
   KAPI_EMOJI1 — barra de emojis del espectador en batalla (columna a la derecha, encima de la barra de abajo)
   KAPI_TABS1  — hoja Colaboradores con una pestaña por creador y chips de actividad
   ═══════════════════════════════════════════════════════════════ */
.kb-emo {
    display: none; position: absolute; right: 8px; z-index: 665;
    bottom: calc(max(12px, env(safe-area-inset-bottom)) + 34px + 14px);
    flex-direction: column; gap: 6px; pointer-events: auto;
}
.kb-emo.on { display: flex; }
.kb-emo-b {
    width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
    background: rgba(20, 40, 64, .74); font-size: 18px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.kb-emo-b:active { transform: scale(.88); }

.kbc-tabs { display: flex; gap: 6px; margin-top: 10px; flex: none; }
.kbc-tab {
    flex: 1 1 0; min-width: 0; padding: 8px 6px; border-radius: 12px;
    border: 1.5px solid rgba(255, 255, 255, .14); background: #111c30; color: #8fa3bd;
    font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.kbc-tab-l.on { background: rgba(255, 45, 120, .18); border-color: #ff2d78; color: #fff; }
.kbc-tab-r.on { background: rgba(0, 191, 255, .18); border-color: #00bfff; color: #fff; }
.kbc-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.kbc-mid .kbc-nm { flex: none; }
.kbc-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.kbc-chip {
    font-size: 11px; line-height: 1.5; padding: 0 6px; border-radius: 9px;
    background: rgba(255, 255, 255, .1); color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.kbc-chip.off { opacity: .3; }
.kbc-chip.sig { background: rgba(52, 199, 89, .25); color: #7dffa0; }

/* KAPI_TABS2 — fila compacta (numero pegado a la foto, foto pegada al nombre) y circulo de foto en cada "Sigue" */
.kbc-row { gap: 7px; }
.kbc-pos { width: 14px; }
.kbc-chip.kbc-sg { display: inline-flex; align-items: center; gap: 4px; padding-right: 2px; }
.kbc-fav { position: relative; flex: none; width: 18px; height: 18px; border-radius: 50%; overflow: hidden; background: #1a2a44; display: inline-block; }


/* ═══ KAPI_MENUVISOR1: menú del visor del rival + icono de silenciado ═══ */
.kb-tap {
    position: absolute; right: 0; width: 50%;
    top: var(--kb-vtop); height: var(--kb-vh);
    display: none; background: transparent;
    pointer-events: auto; z-index: 5; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.kb-tap.on { display: block; }
.kb-silic {
    position: absolute; width: 34px; height: 34px; border-radius: 50%;
    top: calc(var(--kb-vtop) + var(--kb-vh) - 62px);
    background: rgba(229, 57, 53, .92); color: #fff;
    display: none; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
    pointer-events: none; z-index: 5;
}
.kb-silic .material-icons { font-size: 20px; }
.kb-silic.on { display: flex; }
.kb-silic-l { left: 25%; transform: translateX(-50%); }
.kb-silic-r { left: 75%; transform: translateX(-50%); }

.kbm { position: absolute; inset: 0; z-index: 720; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .45); pointer-events: auto; }
.kbm-box { width: 100%; max-width: 480px; box-sizing: border-box; background: #1f1f1f; color: #fff; border-radius: 18px 18px 0 0; padding: 14px 14px calc(14px + env(safe-area-inset-bottom)); }
.kbm-head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 12px; font-size: 15px; }
.kbm-av { width: 34px; height: 34px; border-radius: 50%; background: #1ec8ff; color: #000; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.kbm-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 10px; border: 0; background: transparent; color: #fff; font-size: 15px; font-weight: 600; text-align: left; border-top: 1px solid rgba(255, 255, 255, .08); }
.kbm-row .material-icons { font-size: 22px; }
.kbm-row small { margin-left: auto; font-size: 11px; font-weight: 500; opacity: .7; }
.kbm-row.kbm-off { opacity: .45; }
.kbm-x { width: 100%; margin-top: 8px; padding: 12px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 14px; font-weight: 700; }

/* ═══ KAPI_MENUVISOR2 ═══ */
/* Nombre + iconito de sonido silenciado (pequeño, rojo suave, igual que la cámara apagada de las ventanillas) */
#kapi-bat-hud .kb-nm { display: flex; align-items: center; gap: 3px; }
#kapi-bat-hud .kb-nm.kb-nm-vacio { display: none !important; }
#kapi-bat-hud .kb-nm .kb-nt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#kapi-bat-hud .kb-nm .kb-ni { display: none; flex: none; font-size: 13px !important; line-height: 1; color: #ff7a7a; text-shadow: 0 1px 3px #000; }
#kapi-bat-hud .kb-nm.kb-sil .kb-ni { display: inline-block; }
/* WIN xN arriba de cada mitad, lejos del nombre; el multiplicador baja un poco para no chocar */
#kapi-bat-hud .kb-wl { top: calc(var(--kb-vtop) + 6px) !important; }
#kapi-bat-hud .kb-mult { top: calc(var(--kb-vtop) + 26px) !important; }
/* Opción "Sacar de la batalla" */
.kbm-row.kbm-danger { color: #ff6b6b; }

/* ═══ KAPI_MENUVISOR3 ═══ icono de sonido silenciado ARRIBA del nombre, en la esquina de afuera de cada mitad */
#kapi-bat-hud .kb-si { position: absolute; display: none; top: calc(var(--kb-vtop) + var(--kb-vh) - 41px); font-size: 17px; line-height: 1; color: #ff7a7a; text-shadow: 0 1px 3px #000; z-index: 4; pointer-events: none; }
#kapi-bat-hud .kb-si.on { display: block; }
#kapi-bat-hud .kb-si-l { left: 8px; }
#kapi-bat-hud .kb-si-r { right: 8px; }
