/* D-CAPAS fase 3 — el combate con el héroe entero (mesa claude/_CLAUDE_D_CAPAS_3_MESA.md).
   Tres disposiciones (.cv-vista--linea | --salon | --cine) y dos estilos (.cv-estilo-A | -B).
   La escena se mide en unidades de su contenedor (cqh/cqw): la misma vale para el escenario de
   1920 (1656×848) y el de 1366 (1146×600). Componentes en replay-adapter.jsx (Cv*). */

/* ───────── Marco: el menú queda a la vista pero inerte durante el combate (D-CAPAS-13) ───────── */
body.en-combate-v3 #rpg-root #uiMenu .ui-menu__lista {
  pointer-events: none;
  opacity: 0.45;
  filter: grayscale(0.6);
}

/* ───────── Vista ───────── */
.combat-screen.cv-vista {
  overflow: hidden;
  background: #07090e;
  --cv-oro: #8a6e30;
  --cv-oro-luz: #f3dfa0;
  --cv-borde: #3a4256;
  --cv-panel: rgba(8, 10, 16, 0.84);
}
/* La vista es contenedor: con un escenario estrecho (móvil, ventana pequeña) la barra se compacta. */
.combat-screen.cv-vista { container: cv-vista / size; }

.cv-vista.cv-estilo-B {
  --cv-oro: #7a2a24;
  --cv-oro-luz: #f2d0c0;
  --cv-borde: #5a2420;
}

.cv-escena {
  position: absolute;
  inset: 0;
  container-type: size;
  overflow: hidden;
}

/* Barra superior compacta (D-CAPAS-19): flota sobre la escena. */
.cv-vista .top-bar.replay-combat-top-bar {
  height: auto;
  min-height: 0;
  padding: 8px 14px;
  z-index: 30;
  grid-template-columns: 1fr auto 1fr;
  background: linear-gradient(180deg, rgba(5, 7, 11, 0.78), rgba(5, 7, 11, 0.35) 70%, transparent);
}
.cv-vista .top-bar-center { gap: 12px; }
.cv-vista .replay-zone-wave-title { font-size: 0.92rem; text-shadow: 0 1px 4px #000; }
.cv-vista .top-bar-right { gap: 8px; }
.cv-vista .top-bar-right .btn { padding: 4px 10px; font-size: 11px; min-height: 0; }
.cv-vista .timer { transform: scale(0.85); transform-origin: right center; }
.cv-btn-disp { border-color: var(--cv-oro) !important; color: var(--cv-oro-luz) !important; }
.cv-rombos { display: inline-flex; gap: 6px; align-items: center; }
.cv-rombos i { width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid var(--cv-oro-luz); opacity: 0.8; }
.cv-rombos i.hecha { background: var(--cv-oro-luz); }
.cv-rombos i.ahora { background: #e05a3a; border-color: #ff9a7a; box-shadow: 0 0 8px #e05a3a; opacity: 1; }

.cv-estados-globales { position: absolute; top: 46px; left: 12px; right: 12px; z-index: 25; pointer-events: none; }
.cv-estados-globales > * { pointer-events: auto; }

/* ───────── Unidad: figura entera + placa ───────── */
/* Los fondos traen una viñeta ovalada: se amplían para que no se vea el borde. */
.cv-escena .zone-bg-wrap { inset: -13%; }

.cv-actor {
  position: absolute;
  transform: translateX(-50%);
  cursor: pointer;
  --cv-dx: 4cqw;
  --cv-dy: 0;
}
.cv-actor--enemigo { --cv-dx: -4cqw; }
.cv-arte { height: 100%; display: flex; justify-content: center; }
.cv-cuerpo {
  height: 100%;
  width: auto;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.55));
}
img.cv-cuerpo {
  transform-origin: 50% 100%;
  animation: cv-respira 3.8s ease-in-out infinite;
  animation-delay: var(--cv-d, 0s);
}
@keyframes cv-respira { 50% { scale: 1 1.012; } }
.cv-mover { height: 100%; position: relative; transition: opacity 0.6s, filter 0.6s; }

/* sombra en el suelo, héroe elegido (F1-F4) y objetivo (Tab) */
.cv-actor::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1.2cqh;
  width: 70%;
  height: 3.4cqh;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), transparent);
  z-index: -1;
  pointer-events: none;
}
.cv-actor.cv-sel::before { background: radial-gradient(closest-side, rgba(243, 223, 160, 0.55), rgba(200, 168, 96, 0.18) 60%, transparent); }
.cv-actor.cv-objetivo::before {
  background: radial-gradient(closest-side, transparent 62%, rgba(255, 120, 80, 0.75) 70%, transparent 78%);
}
.cv-actor.cv-amenaza::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -1.7cqh;
  width: 78%;
  height: 4.2cqh;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 2px solid rgba(230, 70, 50, 0.85);
  box-shadow: 0 0 14px rgba(230, 70, 50, 0.7);
  animation: cv-amenaza 0.9s ease-out forwards;
  pointer-events: none;
}
@keyframes cv-amenaza {
  from { opacity: 0; scale: 0.6; }
  30% { opacity: 1; }
  to { opacity: 0; scale: 1.1; }
}
.cv-mover.cv-embiste { animation: cv-embiste 0.38s ease-out; }
@keyframes cv-embiste { 35% { translate: var(--cv-dx) var(--cv-dy); } }
.cv-mover.cv-herido { animation: cv-herido 0.33s; }
@keyframes cv-herido {
  20% { translate: -0.5cqw 0; filter: brightness(1.7) drop-shadow(0 0 12px #f33); }
  60% { translate: 0.4cqw 0; }
}
.cv-mover.cv-lanza { filter: drop-shadow(0 0 18px rgba(140, 230, 160, 0.9)); }
.cv-actor.cv-muerto .cv-mover { opacity: 0.22; filter: grayscale(1) brightness(0.5); }
.cv-actor--enemigo.cv-muerto { pointer-events: none; }
.cv-actor--enemigo.cv-muerto .cv-placa { opacity: 0; }

.cv-placa {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.6cqh);
  transform: translateX(-50%);
  width: clamp(110px, 13cqw, 210px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
  z-index: 3;
  transition: opacity 0.4s;
}
.cv-placa .status-icon-row,
.cv-placa .replay-status-row { justify-content: center; }
.cv-placa__nombre {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  color: #efe9d7;
  text-shadow: 0 1px 3px #000, 0 0 8px #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cv-actor--enemigo .cv-placa__nombre { color: #f2c4b4; }
.cv-placa__nombre small { margin-left: 5px; font-size: 11px; color: #c8c1ac; }
.cv-rango { display: inline-block; margin-right: 5px; padding: 0 5px; border-radius: 3px; font-size: 9px; letter-spacing: 0.1em; color: #fff; vertical-align: 1px; }
.cv-placa .enemy-cast-telegraph-slot,
.cv-placa .enemy-cast-telegraph { width: 100%; margin: 2px 0 0; }

.cv-placa--minima {
  bottom: auto;
  top: 100%;
  margin-top: 1.2cqh;
  width: clamp(70px, 8cqw, 130px);
}
.cv-placa--minima .cv-barra--vida { height: 4px; opacity: 0.9; }

/* barras */
.cv-barra { position: relative; height: 9px; border-radius: 3px; background: #05060a; border: 1px solid #262c3a; overflow: hidden; }
.cv-barra > i { position: absolute; inset: 0 auto 0 0; background: var(--cv-c, #c43c3c); transition: width 0.3s ease-out; }
.cv-barra > i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), transparent 55%); }
.cv-barra > span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 9px; color: #fff; text-shadow: 0 1px 2px #000; }
.cv-barra--vida { --cv-c: linear-gradient(90deg, #8e2323, #d24a3c); }
.cv-barra--mana { --cv-c: linear-gradient(90deg, #2a4f9e, #5fa0e8); height: 6px; }
.cv-barra--cast { --cv-c: linear-gradient(90deg, #6a4cc8, #c8a0ff); height: 5px; }
.cv-barra.cv-oculta { visibility: hidden; }
.cv-placa .cv-barra--vida { height: 8px; }

/* botón Auto / Manual por héroe (secundarias) */
.cv-auto {
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 3px;
  border: 1px solid #4a5268;
  background: rgba(0, 0, 0, 0.5);
  color: #c8c1ac;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 15px;
  cursor: pointer;
  vertical-align: 2px;
}
.cv-auto.on { border-color: #4f8a4f; color: #9fe09f; }

/* dock de habilidades flotando abajo (Línea, Cine) */
.cv-dock {
  position: absolute;
  left: 50%;
  bottom: 1cqh;
  /* translate (no transform): así scale encoge sobre su centro y el dock sigue centrado */
  translate: -50% 0;
  transform-origin: bottom center;
  z-index: 20;
  padding: 4px 12px;
  border-radius: 8px;
  background: var(--cv-panel);
  border: 1px solid var(--cv-borde);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
  max-width: 96%;
}
.cv-estilo-B .cv-dock { border-radius: 2px; border-top: 3px solid var(--cv-oro); }
.cv-dock .v3-dock-lootun { margin: 0; padding: 2px 0 4px; gap: 18px; flex-wrap: nowrap; width: auto; }
.cv-dock .v3-dock-pj-label { font-size: 10px; }
@container (max-height: 700px) {
  .cv-dock { scale: 0.74; }
}

/* números flotantes dentro de la figura: las píldoras de siempre (retrato + icono + cifra) se pensaron para
   tarjetas de 252 px; sobre una figura tapaban medio cuerpo. Más pequeñas y más transparentes. */
.cv-actor .replay-float-wrap { z-index: 6; }
.cv-actor .dmg-float--enriched { scale: 0.72; }
.cv-actor .dmg-float-pill { background: rgba(8, 10, 18, 0.45); border-color: rgba(255, 255, 255, 0.08); }
@container (max-height: 420px) {
  .cv-actor .dmg-float--enriched { scale: 0.55; }
}

/* ───────── D-CAPAS fase 4: acciones de la malla y efectos ───────── */
/* La figura con acciones ocupa el 90 % del alto de su lienzo (src/ui/figura_capas.ts MARCO_ACCIONES): el lienzo
   crece para que la figura siga midiendo lo mismo, apoyada abajo. */
.cv-arte { align-items: flex-end; }
.cv-cuerpo.cv-cuerpo--acciones { height: calc(100% / 0.9); flex: none; }
.cv-mover.cv-esquiva { animation: cv-esquiva 0.45s ease-out; }
@keyframes cv-esquiva { 35% { translate: calc(var(--cv-dx) * -0.8) 0; opacity: 0.7; } }

.cv-fx { position: absolute; inset: 0; z-index: 12; pointer-events: none; overflow: hidden; }
.cv-tajo {
  position: absolute; width: 22cqh; height: 22cqh; margin: -11cqh 0 0 -11cqh; border-radius: 50%;
  border-top: 0.8cqh solid rgba(255, 248, 220, 0.95); filter: drop-shadow(0 0 10px #ffd27a);
  animation: cv-tajo 0.32s ease-out forwards;
}
@keyframes cv-tajo { from { opacity: 0; rotate: var(--r0); scale: 0.7; } 30% { opacity: 1; } to { opacity: 0; rotate: var(--r1); scale: 1.05; } }
.cv-circulo {
  position: absolute; width: 22cqh; height: 6cqh; margin: -3cqh 0 0 -11cqh; border-radius: 50%; border: 3px dashed var(--c);
  box-shadow: 0 0 24px var(--c), inset 0 0 18px var(--c); animation: cv-circulo 1.6s linear forwards;
}
@keyframes cv-circulo { from { opacity: 0; scale: 0.5; } 20% { opacity: 0.95; } 85% { opacity: 0.9; } to { opacity: 0; scale: 1.15; } }
.cv-chispa {
  position: absolute; width: 0.9cqh; height: 0.9cqh; margin: -0.45cqh; border-radius: 50%; background: var(--c);
  box-shadow: 0 0 10px var(--c); animation: cv-chispa 1.1s ease-out forwards;
}
@keyframes cv-chispa { from { opacity: 1; translate: 0 0; } to { opacity: 0; translate: var(--vx) -16cqh; } }
.cv-destello {
  position: absolute; width: 12cqh; height: 12cqh; margin: -6cqh; border-radius: 50%;
  background: radial-gradient(circle, #fff, rgba(200, 220, 255, 0.6) 30%, transparent 65%); animation: cv-destello 0.3s ease-out forwards;
}
@keyframes cv-destello { from { opacity: 1; scale: 0.3; } to { opacity: 0; scale: 1.4; } }
.cv-escena.cv-sacude { animation: cv-sacude 0.35s; }
@keyframes cv-sacude { 20% { translate: -0.5cqw 0.3cqh; } 40% { translate: 0.4cqw -0.4cqh; } 60% { translate: -0.3cqw 0.2cqh; } 80% { translate: 0.2cqw 0; } }
body.ui-efectos-reducidos .cv-fx { display: none; }

/* presentación del jefe (D-CAPAS-17) */
.cv-presenta {
  position: absolute;
  left: 0;
  right: 0;
  top: 32%;
  z-index: 40;
  text-align: center;
  pointer-events: none;
  animation: cv-presenta 2.8s ease-out forwards;
}
.cv-presenta::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -22px;
  bottom: -22px;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(60, 8, 4, 0.78) 25%, rgba(60, 8, 4, 0.78) 75%, transparent);
}
.cv-presenta__t1 { font-family: 'Cinzel', serif; font-size: clamp(28px, 6cqh, 54px); letter-spacing: 0.18em; color: #ffd0b0; text-shadow: 0 0 30px #a02010, 0 2px 0 #000; }
.cv-presenta__t2 { font-size: 13px; letter-spacing: 0.4em; color: #e8b0a0; text-transform: uppercase; }
@keyframes cv-presenta {
  0% { opacity: 0; transform: scaleX(1.4); }
  12% { opacity: 1; transform: none; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* ───────── Cine: bandas y escena limpia ───────── */
.cv-escena--cine::before,
.cv-escena--cine::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 6cqh;
  background: #000;
  z-index: 15;
  pointer-events: none;
}
.cv-escena--cine::before { top: 0; }
.cv-escena--cine::after { bottom: 0; }
.cv-vista--cine .top-bar.replay-combat-top-bar { background: transparent; }
.cv-escena--cine .cv-dock { bottom: 0.4cqh; padding: 1px 10px; background: rgba(0, 0, 0, 0.6); }

/* ───────── Salón dorado: arco de enemigos + cuatro marcos ───────── */
.cv-arco {
  position: absolute;
  left: 5%;
  right: 5%;
  top: max(7cqh, 56px);
  /* lo que deja libre la fila de marcos (38cqh + márgenes), también con escenarios muy bajos */
  height: calc(58cqh - max(7cqh, 56px));
  overflow: hidden;
  border: 2px solid var(--cv-oro);
  border-radius: 45% 45% 6px 6px / 22% 22% 6px 6px;
  box-shadow: 0 0 0 6px rgba(20, 16, 8, 0.95), 0 0 0 7px var(--cv-oro), 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 0 60px rgba(0, 0, 0, 0.85);
}
.cv-estilo-B .cv-arco { border-radius: 4px; box-shadow: 0 0 0 4px rgba(26, 10, 12, 0.95), 0 0 0 5px var(--cv-oro), 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 0 60px rgba(0, 0, 0, 0.85); }
.cv-arco .cv-placa { width: clamp(100px, 11cqw, 180px); }
.cv-escena--salon > .zone-backdrop { display: none; }
.cv-escena--salon { background: radial-gradient(ellipse at 50% 30%, #2a2214, #0a0806 70%); }
.cv-estilo-B .cv-escena--salon { background: radial-gradient(ellipse at 50% 30%, #2a1418, #0a0607 70%); }

.cv-salon-fila {
  position: absolute;
  left: 1%;
  right: 1%;
  bottom: 1.4cqh;
  height: 38cqh;
  display: grid;
  grid-template-columns: repeat(var(--cv-n, 4), minmax(0, 24.2%));
  justify-content: center;
  gap: 1%;
}
.cv-marco {
  position: relative;
  display: grid;
  grid-template-columns: 40% 1fr;
  /* la fila es el alto del marco: si los datos no caben, se recortan ellos, no la figura */
  grid-template-rows: minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--cv-oro);
  border-radius: 6px;
  background: radial-gradient(ellipse at 30% 80%, rgba(200, 168, 96, 0.12), transparent 60%), linear-gradient(180deg, #17130c, #0a0907);
  box-shadow: inset 0 0 0 1px rgba(255, 230, 160, 0.12), 0 8px 20px rgba(0, 0, 0, 0.6);
}
.cv-estilo-B .cv-marco {
  border: 0;
  border-top: 4px solid var(--cv-oro);
  border-radius: 2px;
  background: linear-gradient(180deg, #2a1418, #0e0a0c);
}
.cv-marco.sel { box-shadow: 0 0 20px rgba(243, 223, 160, 0.35), inset 0 0 0 1px rgba(255, 230, 160, 0.3); }
.cv-marco.cv-muerto { filter: grayscale(0.8) brightness(0.6); }
.cv-marco__hueco { position: relative; }
.cv-marco__hueco .cv-actor { cursor: inherit; }
.cv-marco__datos { padding: 10px 10px 8px 4px; display: flex; flex-direction: column; gap: 4px; min-width: 0; min-height: 0; overflow: hidden; }
.cv-marco__datos > * { flex-shrink: 0; }
.cv-marco__nombre { font-family: 'Cinzel', serif; font-size: 16px; color: var(--cv-oro-luz); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-marco__clase { font-size: 11px; color: #8d8773; margin-top: -3px; }
.cv-marco .cv-barra--vida { height: 13px; }
.cv-marco .cv-barra--mana { height: 9px; }
.cv-habs { display: flex; gap: 4px; margin-top: auto; transform-origin: left bottom; }
@container (max-height: 700px) {
  .cv-marco__datos { padding: 5px 5px 4px 2px; gap: 2px; }
  .cv-marco__nombre { font-size: 12px; }
  .cv-habs { scale: 0.62; margin-bottom: -18px; }
}

/* ───────── Chat: pestañas durante el combate (D-CAPAS-14) ───────── */
#chroniclesSection .cv-chat-pestanas { display: flex; gap: 2px; margin: 2px 0 4px; flex-shrink: 0; }
#chroniclesSection .cv-chat-pestanas button {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #8d8773;
  padding: 1px 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
#chroniclesSection .cv-chat-pestanas button.on { color: #f3dfa0; border-bottom-color: #c8a860; }
#chroniclesSection .cv-cnt { display: inline-block; min-width: 16px; margin-left: 5px; padding: 0 4px; border-radius: 8px; background: #7a2a24; color: #fff; font-size: 9px; }
#chroniclesSection .cv-chat-panel { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
#chroniclesSection:not(.cv-chat-otra) .cv-chat-panel { display: none; }
#chroniclesSection.cv-chat-otra #logBox { display: none !important; }
#chroniclesSection .cv-chat-registro { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 6px; font-size: 12px; line-height: 1.45; border: 1px solid rgba(55, 65, 81, 0.7); border-radius: 8px; }
#chroniclesSection .cv-chat-dano { flex: 1; min-height: 0; overflow-y: auto; }
#chroniclesSection .cv-chat-dano .combat-dps-panel { position: static; width: auto; height: auto; max-height: none; margin: 0; border: 0; background: transparent; box-shadow: none; }

/* ───────── Franja: la vida de los cuatro, la consola de grupo y el botín (D-CAPAS-15) ───────── */
#rpg-root .cv-mini-grupo { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; width: 100%; margin-top: 4px; }
#rpg-root .cv-mini { display: flex; flex-direction: column; gap: 2px; padding: 0; border: 0; background: none; color: #8d8773; font-size: 10px; text-align: left; cursor: pointer; min-width: 0; }
#rpg-root .cv-mini span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#rpg-root .cv-mini.sel { color: #f3dfa0; }
#rpg-root .cv-mini .cv-barra { height: 7px; }
#rpg-root .cv-mini.cv-muerto { opacity: 0.45; }

#rpg-root #uiPieIzq.cv-pie-consola > :not(.cv-franja-pieza):not(.ui-esquina) { display: none; }
#rpg-root #uiPieIzq.cv-pie-consola .cv-franja-pieza { width: 100%; height: 100%; }
#rpg-root .cv-consola-grupo { display: grid; grid-auto-rows: minmax(0, 1fr); gap: 3px; height: 100%; width: 100%; }
#rpg-root .cv-consola {
  display: grid;
  grid-template-columns: 34px minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(0, 0.8fr) auto;
  gap: 6px;
  align-items: center;
  min-height: 0;
  padding: 0 4px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  color: #c8c1ac;
}
#rpg-root .cv-consola.sel { border-color: rgba(200, 168, 96, 0.5); background: rgba(200, 168, 96, 0.06); }
#rpg-root .cv-consola.cv-muerto { opacity: 0.45; }
#rpg-root .cv-consola__fig { height: 100%; min-height: 0; overflow: hidden; display: flex; justify-content: center; }
#rpg-root .cv-consola__fig .cv-arte { height: 280%; }
#rpg-root .cv-consola__nombre { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: 'Cinzel', serif; }
#rpg-root .cv-consola .cv-auto { margin: 0; }

#rpg-root .cv-botin { display: flex; flex-direction: column; gap: 2px; width: 100%; min-width: 0; margin-top: 6px; font-size: 11px; }
#rpg-root .cv-botin__titulo { font-family: 'Cinzel', serif; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: #a08840; }
#rpg-root .cv-botin__linea { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#rpg-root .cv-botin__vacio { color: #5a5645; }
#rpg-root .cv-objetivo-pie { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
#rpg-root .cv-objetivo-pie img { width: 42px; height: 42px; object-fit: contain; border: 1px solid #3a2424; border-radius: 4px; background: #05060a; }
#rpg-root .cv-objetivo-pie > div { flex: 1; min-width: 0; }
#rpg-root .cv-objetivo-pie__n { font-family: 'Cinzel', serif; font-size: 12px; color: #f0c0b0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ───────── Efectos reducidos ───────── */
body.ui-efectos-reducidos img.cv-cuerpo,
body.ui-efectos-reducidos .cv-presenta { animation: none; }
body.ui-efectos-reducidos .cv-presenta { opacity: 1; }

/* Escenario estrecho (móvil, ventana pequeña): barra compacta y dock más pequeño. Al final: gana a las reglas de arriba. */
@container cv-vista (max-width: 1000px) {
  .cv-vista .top-bar.replay-combat-top-bar { grid-template-columns: minmax(0, 1fr) auto; padding: 4px 8px; gap: 6px; }
  .cv-vista .top-bar-left, .cv-vista .cv-rombos, .cv-vista .timer { display: none; }
  .cv-vista .top-bar-center { justify-content: flex-start; min-width: 0; }
  .cv-vista .replay-zone-wave-title { font-size: 10px; white-space: normal; text-align: left; }
  .cv-vista .top-bar-right { gap: 4px; }
  .cv-vista .top-bar-right .btn { padding: 2px 6px; font-size: 9px; }
  .cv-vista .cv-estados-globales { top: 30px; }
}
@container (max-width: 820px) {
  .cv-dock { scale: 0.56; max-width: 170%; }
  .cv-dock .v3-dock-lootun { gap: 10px; }
}
/* Marco estrecho: la franja tiene alto automático; lo que se añade en combate no debe estirarla. */
@media (max-width: 1000px) {
  #rpg-root .cv-botin { display: none; }
  #rpg-root .cv-mini-grupo { margin-top: 0; }
}
@container cv-vista (max-width: 1000px) {
  .cv-marco { grid-template-columns: 36% 1fr; }
  .cv-marco__clase, .cv-marco .status-icon-row { display: none; }
  .cv-marco__datos { padding: 4px 4px 3px 0; gap: 2px; }
  .cv-marco__nombre { font-size: 11px; }
  .cv-habs { scale: 0.5; margin-bottom: -28px; }
}
