/* Páginas de DATALOGIC */
.mc-color { text-shadow: 1px 1px 0 rgba(0, 0, 0, .35); }
[data-bs-theme="light"] .mc-color { text-shadow: none; filter: brightness(.82) saturate(1.2); }

/* Mapa a pantalla completa con la lista de jugadores al lado */
.dl-mapa { display: flex; height: calc(100vh - var(--dl-nav-h, 56px)); min-height: 420px; }
.dl-mapa iframe { flex: 1; border: 0; min-width: 0; background: #0b0f14; }
.dl-mapa-lado { width: 280px; flex-shrink: 0; overflow-y: auto; border-left: 1px solid var(--bs-border-color); background: var(--bs-body-bg); }
.dl-mapa-vacio { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
@media (max-width: 768px) {
    .dl-mapa { flex-direction: column; height: auto; }
    .dl-mapa iframe { height: 70vh; flex: none; }
    .dl-mapa-lado { width: 100%; border-left: 0; border-top: 1px solid var(--bs-border-color); max-height: 40vh; }
}

.dl-jugador { display: flex; align-items: center; gap: .6rem; padding: .5rem .75rem; border-bottom: 1px solid var(--bs-border-color); }
.dl-jugador img { width: 32px; height: 32px; image-rendering: pixelated; border-radius: 4px; }
.dl-jugador .dl-nombre { font-weight: 600; line-height: 1.1; overflow-wrap: anywhere; }
.dl-jugador small { color: var(--bs-secondary-color); }
button.dl-jugador { width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; color: inherit; }
button.dl-jugador:hover { background: var(--bs-tertiary-bg); }

/* Tarjetas de jugadores */
.dl-tarjeta img.dl-cuerpo { height: 120px; image-rendering: pixelated; }
.dl-barra { height: 6px; border-radius: 3px; background: var(--bs-tertiary-bg); overflow: hidden; }
.dl-barra > div { height: 100%; }
.dl-dato { font-size: 1.6rem; font-weight: 700; line-height: 1; }

/* Chat */
.dl-chat { height: min(65vh, 640px); overflow-y: auto; font-size: .95rem; line-height: 1.45; background: #101012; background-image: linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, .35)); color: #fff; border: 1px solid var(--bs-border-color); border-radius: .5rem; padding: .75rem; }
.dl-chat .dl-linea { padding: .15rem .25rem; border-radius: .25rem; overflow-wrap: anywhere; }
.dl-chat .dl-linea:hover { background: rgba(255, 255, 255, .05); }
.dl-chat .dl-hora { color: #6c757d; font-size: .8em; margin-right: .35rem; font-variant-numeric: tabular-nums; }
.dl-chat img { width: 16px; height: 16px; image-rendering: pixelated; vertical-align: -3px; margin-right: .25rem; }
.dl-chat .dl-sistema { color: #ffd166; font-style: italic; }
.dl-chat .dl-muerte { color: #ff6b6b; font-style: italic; }
.dl-chat .dl-web { color: #55ffff; font-size: .75em; border: 1px solid #55ffff55; border-radius: .25rem; padding: 0 .25rem; margin-right: .25rem; }
.dl-chat .mc-color { filter: none; }

/* Líneas del juego (Datalogic.componente): colores reales de Minecraft sobre fondo oscuro, también en tema claro */
.mc-linea { white-space: pre-wrap; text-shadow: .09em .09em 0 rgba(0, 0, 0, .7); }
.mc-linea .mc-b { font-weight: 700; }
.mc-linea .mc-i { font-style: italic; }
.mc-linea a.mc-t { cursor: pointer; }
.mc-linea a.mc-t:hover { filter: brightness(1.2); }
.mc-linea [data-mc-tip], .mc-linea .mc-copiar { cursor: help; }
.mc-linea .mc-copiar { cursor: copy; }
.mc-linea .mc-ofuscado { font-family: ui-monospace, monospace; }
.dl-chat .dl-linea > img { margin-left: .1rem; }
.mc-tooltip.mc-flotante { position: fixed; z-index: 2000; display: none; max-width: min(420px, 90vw); pointer-events: none;
    padding: .35rem .55rem; font-size: .9rem; line-height: 1.4; color: #fff;
    background: rgba(16, 0, 16, .94); border: 2px solid #28007f; outline: 1px solid rgba(16, 0, 16, .94);
    border-radius: 3px; box-shadow: inset 0 0 0 1px #5000ff33, 0 4px 14px rgba(0, 0, 0, .5); }
.mc-flotante .mc-linea { white-space: pre-wrap; }
.mc-tip-cab { display: flex; align-items: center; gap: .4rem; }
.mc-tip-icono { width: 24px; height: 24px; image-rendering: pixelated; }

.dl-codigo { font-family: ui-monospace, monospace; font-size: 1.25rem; letter-spacing: .05em; }

/* ============================================================ Área 4: mapa 2.0 */
.dl-mapa-marco { position: relative; flex: 1; min-width: 0; display: flex; }
.dl-mapa-marco iframe { flex: 1; border: 0; min-width: 0; background: #0b0f14; }
.dl-mapa:fullscreen { height: 100vh; background: #000; }
.dl-mapa-herramientas { position: absolute; bottom: .6rem; left: .6rem; display: flex; gap: .35rem; z-index: 2; }
.dl-siguiendo { position: absolute; left: 50%; bottom: 3.4rem; transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: .55rem;
    background: rgba(16, 0, 16, .94); border: 2px solid #28007f; padding: .3rem .4rem .3rem .6rem; color: #fff; font-family: var(--mc-pixel); font-size-adjust: .5; white-space: nowrap; max-width: calc(100% - 1.5rem); }
.dl-siguiendo img { image-rendering: pixelated; }
.dl-siguiendo span { overflow: hidden; text-overflow: ellipsis; }
.dl-mapa-lado { display: flex; flex-direction: column; }
.dl-mapa-lado.oculto { display: none; }
.dl-mapa-bloque { padding: .6rem .75rem; border-bottom: 2px solid #000; }
.dl-mapa-titulo { font-size: 1rem; color: #fff; margin: 0 0 .45rem; display: flex; align-items: center; gap: .4rem; }
.dl-mundos { display: grid; gap: 4px; }
.dl-mundos .btn { display: flex; justify-content: space-between; align-items: center; text-align: left; }
.dl-mundos .btn[aria-pressed="true"] { --mc-btn-fondo: #3c8527; }
.dl-cuenta { display: inline-block; min-width: 1.6em; text-align: center; background: #000; color: var(--mc-verde); font-family: var(--mc-pixel); font-size-adjust: .5; padding: 0 .3rem; border: 1px solid #555; text-shadow: none; }
.dl-mapa-zoom { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .55rem; color: #c8c8c8; font-size: .88rem; }
.dl-mapa-zoom select { max-width: 8rem; }
.dl-mapa-lista { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.dl-mapa-jugador { display: flex; align-items: stretch; border-bottom: 2px solid #2a2a2a; }
.dl-mapa-jugador.siguiendo { background: rgba(80, 0, 255, .25); }
.dl-mapa-jugador .dl-jugador { border: 0 !important; flex: 1; min-width: 0; }
.dl-mapa-jugador .dl-jugador:disabled { opacity: .65; }
.dl-mapa-jugador .dl-seguir { align-self: center; margin-right: .5rem; }
.dl-mapa-jugador .dl-seguir[aria-pressed="true"] { --mc-btn-fondo: #a12727; color: var(--mc-amarillo) !important; }
@media (max-width: 768px) {
    .dl-mapa-marco { flex: none; height: 65vh; }
    .dl-mapa-marco iframe { height: 100%; }
    .dl-mapa-lado { max-height: none; }
    .dl-mapa-herramientas .btn span { display: none; }
}

/* ============================================================ Área 4: chat 2.0 */
.dl-chat-barra { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; }
.dl-chat-barra .dl-filtros { display: flex; flex-wrap: wrap; gap: .35rem; }
.dl-chat-barra .btn[aria-pressed="true"] { --mc-btn-fondo: #3c8527; color: var(--mc-amarillo) !important; border-color: #fff !important; }
.dl-chat { position: relative; }
.dl-chat:focus-visible { outline-offset: -3px; }
.dl-chat-arriba { text-align: center; margin-bottom: .4rem; min-height: 0; }
.dl-chat-arriba:empty { display: none; }
.dl-chat-inicio { color: #8a8a8a; font-size: .8em; }
.dl-chat-dia { display: flex; align-items: center; gap: .6rem; color: var(--mc-amarillo); font-size: .8em; margin: .5rem 0 .25rem; text-transform: capitalize; }
.dl-chat-dia::before, .dl-chat-dia::after { content: ""; flex: 1; height: 2px; background: #3a3a3a; }
.dl-chat .dl-hora { display: inline-block; min-width: 4.2em; color: #8a8a8a; }
.dl-chat .dl-linea.dl-mencion { background: rgba(255, 255, 85, .14); box-shadow: inset 3px 0 0 var(--mc-amarillo); }
.dl-chat .dl-arroba { color: var(--mc-aqua); }
.dl-chat .dl-arroba-yo { color: #000; background: var(--mc-amarillo); text-shadow: none; padding: 0 .15em; }
.dl-chat .dl-tipo-logro { color: #c8ffc8; }
.dl-chat .dl-tipo-horda, .dl-chat .dl-tipo-legion { box-shadow: inset 3px 0 0 #ffaa00; }
.dl-chat-nuevos { position: sticky; bottom: 4.5rem; display: block; margin: -2.6rem auto .6rem; z-index: 2; }
.dl-chat-form .form-control { font-family: var(--mc-pixel); font-size-adjust: .5; font-size: 1.15rem; }
@media (max-width: 575.98px) {
    body .dl-chat { font-size: 1.05rem; height: 60vh; padding: .5rem; }
    .dl-chat .dl-hora { min-width: 0; }
}
