/* ===== Mapa del videojuego v2 (bd/mapa-v2, js/mapa-v2.js) ===== */
.mt-cabecera { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.mt-cabecera-texto { flex: 1 1 28rem; min-width: 0; }
.mt-ruta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: #7fa3b8; margin-bottom: 0.4rem; }
.mt-ruta a { color: var(--v2-acento, #39c0ff) !important; text-decoration: none !important; }
.mt-ruta a:hover { color: #fff !important; }
.mt-ruta b { color: #cdeaf7; font-weight: 700; }
.mt-ruta i { font-size: 0.7rem; opacity: 0.7; }
.mt-cabecera h1 { margin: 0; font-family: "KodeMono-Medium", monospace; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.1; color: #fff; text-shadow: 0 0 22px rgba(var(--v2-acento-rgb, 57, 192, 255), 0.35); }
.mt-intro { margin: 0.5rem 0 0; max-width: 46rem; font-size: 0.9rem; line-height: 1.5; color: #9bc6dc; }
.mt-cabecera-cifra { display: flex; flex-direction: column; align-items: flex-end; text-align: right; max-width: 18rem; }
.mt-cabecera-cifra strong { font-family: "KodeMono-Medium", monospace; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; color: var(--v2-acento, #39c0ff); text-shadow: 0 0 24px rgba(var(--v2-acento-rgb, 57, 192, 255), 0.5); }
.mt-cabecera-cifra span { margin-top: 0.3rem; font-size: 0.8rem; color: #9bc6dc; }
.mt-cabecera-cifra[hidden], .mt-tiempo-nota[hidden] { display: none; }

.mt-controles { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; padding: 0.7rem 0.9rem !important; }
.mt-capas { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.mt-capa, .mt-modo-op { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.85rem; border-radius: 999px; border: 1px solid rgba(var(--v2-acento-rgb, 57, 192, 255), 0.25); background: rgba(0, 0, 0, 0.25); color: #cdeaf7; font: 600 0.82rem "IBMPlexSans", "Rubik", sans-serif; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.mt-capa i { color: var(--v2-acento, #39c0ff); transition: color 0.2s ease; }
.mt-capa:hover, .mt-modo-op:hover { border-color: rgba(var(--v2-acento-rgb, 57, 192, 255), 0.6); }
.mt-capa.mt-on, .mt-modo-op.mt-on { background: var(--v2-acento, #39c0ff); border-color: var(--v2-acento, #39c0ff); color: #021825; box-shadow: 0 0 16px -3px rgba(var(--v2-acento-rgb, 57, 192, 255), 0.7); }
.mt-capa.mt-on i { color: #021825; }
.mt-grupos { display: flex; flex-direction: column; gap: 0.55rem; min-width: 0; flex: 1; }
.mt-grupo { display: flex; align-items: center; gap: 0.7rem; min-width: 0; }
.mt-grupo-tit { flex: none; width: 6.4rem; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: #6f8796; }
.mt-capa:disabled { opacity: 0.35; cursor: not-allowed; }
/* Color de cada familia de indicadores en su chip activo */
.mt-capa-naranja i { color: #ff9a3d; } .mt-capa-naranja.mt-on { background: #ff9a3d; border-color: #ff9a3d; box-shadow: 0 0 16px -3px rgba(255, 154, 61, 0.7); }
.mt-capa-oro i { color: #ffd23d; } .mt-capa-oro.mt-on { background: #ffd23d; border-color: #ffd23d; box-shadow: 0 0 16px -3px rgba(255, 210, 61, 0.7); }
.mt-capa-violeta i { color: #a66bff; } .mt-capa-violeta.mt-on { background: #a66bff; border-color: #a66bff; box-shadow: 0 0 16px -3px rgba(166, 107, 255, 0.7); }
.mt-capa-verde i { color: #2fd18a; } .mt-capa-verde.mt-on { background: #2fd18a; border-color: #2fd18a; box-shadow: 0 0 16px -3px rgba(47, 209, 138, 0.7); }
.mt-modo.mt-off { opacity: 0.35; pointer-events: none; }
.mt-modo { display: inline-flex; padding: 0.2rem; gap: 0.2rem; border-radius: 999px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(var(--v2-acento-rgb, 57, 192, 255), 0.18); }
.mt-modo-op { border-color: transparent; background: transparent; padding: 0.35rem 0.8rem; }

.mt-cuerpo { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 1rem; align-items: start; }
.mt-principal { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.mt-principal > .fj-dashboard, .mt-cuerpo > .mt-panel { margin: 0; }
#mt-ranking-mas[hidden] { display: none; }
.mt-mapa-caja { position: relative; padding: 0.6rem 0.6rem 0.9rem !important; overflow: hidden; }
.mt-mapa { width: 100%; height: 640px; }
.mt-subir { position: absolute; top: 0.9rem; left: 0.9rem; z-index: 2; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.8rem; border-radius: 999px; border: 1px solid rgba(var(--v2-acento-rgb, 57, 192, 255), 0.4); background: rgba(4, 16, 25, 0.85); color: #cdeaf7; font: 600 0.8rem "IBMPlexSans", "Rubik", sans-serif; cursor: pointer; backdrop-filter: blur(6px); }
.mt-subir:hover { border-color: var(--v2-acento, #39c0ff); color: #fff; }
.mt-subir[hidden] { display: none; }
.mt-cargando { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--v2-acento, #39c0ff); pointer-events: none; }
.mt-cargando[hidden] { display: none; }
.mt-leyenda { position: absolute; right: 1rem; bottom: 5.4rem; z-index: 2; display: flex; flex-direction: column; gap: 0.3rem; width: 15rem; padding: 0.55rem 0.7rem; border-radius: 0.6rem; background: rgba(4, 16, 25, 0.8); border: 1px solid rgba(var(--v2-acento-rgb, 57, 192, 255), 0.15); backdrop-filter: blur(6px); }
.mt-leyenda-tit { font-size: 0.7rem; color: #9bc6dc; line-height: 1.3; }
.mt-leyenda-barra { display: block; height: 0.5rem; border-radius: 999px; }
.mt-leyenda-marcas { display: flex; justify-content: space-between; font: 0.66rem "KodeMono-Medium", monospace; color: #7fa3b8; }

.mt-tiempo { display: flex; align-items: center; gap: 0.9rem; padding: 0.6rem 0.4rem 0; border-top: 1px solid rgba(var(--v2-acento-rgb, 57, 192, 255), 0.12); transition: opacity 0.2s ease; }
.mt-tiempo.mt-off { opacity: 0.35; pointer-events: none; }
.mt-play { flex: none; display: flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; background: var(--v2-acento, #39c0ff); color: #021825; font-size: 0.95rem; cursor: pointer; box-shadow: 0 0 18px -3px rgba(var(--v2-acento-rgb, 57, 192, 255), 0.8); transition: transform 0.15s ease; }
.mt-play:hover { transform: scale(1.06); }
.mt-play .fa-play { margin-left: 0.15rem; }
.mt-tiempo-pista { flex: 1; min-width: 0; }
.mt-tiempo-pista input[type=range] { width: 100%; margin: 0; accent-color: var(--v2-acento, #39c0ff); cursor: pointer; }
.mt-tiempo-marcas { display: flex; justify-content: space-between; font: 0.66rem "KodeMono-Medium", monospace; color: #6f8796; }
.mt-ano-txt { flex: none; min-width: 4.6rem; text-align: right; font: 1.7rem "KodeMono-Medium", monospace; color: #fff; text-shadow: 0 0 16px rgba(var(--v2-acento-rgb, 57, 192, 255), 0.45); }
.mt-tiempo-nota { margin: 0.4rem 0.4rem 0; font-size: 0.75rem; color: #7fa3b8; }

.mt-panel { position: sticky; top: 1rem; display: flex; flex-direction: column; gap: 1rem; }
.mt-panel-cab h2 { margin: 0.15rem 0 0.2rem; font-family: "KodeMono-Medium", monospace; font-size: 1.5rem; line-height: 1.15; color: #fff; }
.mt-panel-tipo { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--v2-acento, #39c0ff); }
.mt-panel-pob { font-size: 0.78rem; color: #9bc6dc; }
.mt-panel-cifras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem; }
.mt-pc { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 0.45rem; align-items: baseline; padding: 0.5rem 0.6rem; border-radius: 0.55rem; border: 1px solid rgba(var(--v2-acento-rgb, 57, 192, 255), 0.14); background: rgba(0, 0, 0, 0.25); color: #cdeaf7; text-align: left; font-family: "IBMPlexSans", "Rubik", sans-serif; cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease; }
.mt-pc:hover { border-color: rgba(var(--v2-acento-rgb, 57, 192, 255), 0.5); }
.mt-pc.mt-on { border-color: var(--v2-acento, #39c0ff); background: rgba(var(--v2-acento-rgb, 57, 192, 255), 0.12); box-shadow: inset 0 0 0 1px rgba(var(--v2-acento-rgb, 57, 192, 255), 0.3); }
.mt-pc i { grid-row: 1; color: var(--v2-acento, #39c0ff); font-size: 0.8rem; }
.mt-pc b { grid-row: 1; font: 1.15rem "KodeMono-Medium", monospace; color: #fff; }
.mt-pc span { grid-column: 1 / -1; font-size: 0.72rem; color: #9bc6dc; }
.mt-pc em, .mt-pc small { grid-column: 1 / -1; font-style: normal; font-size: 0.64rem; color: #6f8796; }
.mt-panel-evo svg { display: block; width: 100%; height: 4.6rem; border-bottom: 1px solid rgba(var(--v2-acento-rgb, 57, 192, 255), 0.15); }
.mt-panel-evo[hidden] { display: none; }
.mt-evo-pie { display: flex; justify-content: space-between; align-items: baseline; margin-top: 0.3rem; font: 0.66rem "KodeMono-Medium", monospace; color: #6f8796; }
.mt-evo-pie b { font-size: 0.78rem; color: #ff9be3; font-weight: normal; }
.mt-panel-html { display: flex; flex-direction: column; gap: 1rem; transition: opacity 0.2s ease; }
.mt-panel-html.mt-atenuado { opacity: 0.35; }
.mt-panel-titulo { margin-bottom: 0.45rem; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: #7fa3b8; }
.mt-panel-titulo i { color: var(--v2-acento, #39c0ff); margin-right: 0.25rem; }
.mt-estudios { display: flex; flex-direction: column; gap: 0.3rem; }
.mt-estudio { display: flex; align-items: center; gap: 0.55rem; padding: 0.3rem; border-radius: 0.5rem; color: #cdeaf7 !important; text-decoration: none !important; transition: background 0.2s ease; }
.mt-estudio:hover { background: rgba(var(--v2-acento-rgb, 57, 192, 255), 0.08); }
.mt-logo { flex: none; display: flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; border-radius: 0.45rem; overflow: hidden; background: #fff; color: #005f84; font-size: 0.85rem; }
.mt-logo img { width: 100%; height: 100%; object-fit: contain; }
.mt-estudio > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.mt-estudio b { font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-estudio small { font-size: 0.68rem; color: #7fa3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-juegos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; }
.mt-juego { display: flex; flex-direction: column; gap: 0.2rem; text-decoration: none !important; }
.mt-portada { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 4; border-radius: 0.4rem; overflow: hidden; background: #0a1924; color: var(--v2-acento, #39c0ff); border: 1px solid rgba(var(--v2-acento-rgb, 57, 192, 255), 0.15); transition: border-color 0.2s ease, transform 0.2s ease; }
.mt-portada img { width: 100%; height: 100%; object-fit: cover; }
.mt-juego:hover .mt-portada { border-color: var(--v2-acento, #39c0ff); transform: translateY(-2px); }
.mt-juego small { font: 0.66rem "KodeMono-Medium", monospace; color: #7fa3b8; text-align: center; }
.mt-evento { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.35rem 0; border-bottom: 1px dashed rgba(var(--v2-acento-rgb, 57, 192, 255), 0.12); color: #cdeaf7 !important; text-decoration: none !important; font-size: 0.8rem; }
.mt-evento small { flex: none; font: 0.7rem "KodeMono-Medium", monospace; color: #5cffb1; }
.mt-evento:hover b { color: #fff; }
.mt-panel-vacio { margin: 0; font-size: 0.8rem; color: #7fa3b8; }
.mt-pc:disabled { opacity: 0.4; cursor: default; }
.mt-pc.mt-pal-naranja i { color: #ff9a3d; } .mt-pc.mt-pal-naranja.mt-on { border-color: #ff9a3d; background: rgba(255, 154, 61, 0.1); box-shadow: none; }
.mt-pc.mt-pal-oro i { color: #ffd23d; } .mt-pc.mt-pal-oro.mt-on { border-color: #ffd23d; background: rgba(255, 210, 61, 0.1); box-shadow: none; }
.mt-pc.mt-pal-violeta i { color: #a66bff; } .mt-pc.mt-pal-violeta.mt-on { border-color: #a66bff; background: rgba(166, 107, 255, 0.1); box-shadow: none; }
.mt-pc.mt-pal-verde i { color: #2fd18a; } .mt-pc.mt-pal-verde.mt-on { border-color: #2fd18a; background: rgba(47, 209, 138, 0.1); box-shadow: none; }
.mt-pc em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Bloques de los indicadores en el panel */
.mt-reparto { display: flex; height: 0.7rem; border-radius: 999px; overflow: hidden; gap: 2px; }
.mt-reparto i { display: block; min-width: 3px; }
.mt-reparto-leyenda { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem 0.8rem; margin-top: 0.5rem; font-size: 0.72rem; color: #9bc6dc; }
.mt-reparto-leyenda i { display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 2px; margin-right: 0.35rem; }
.mt-reparto-leyenda b { color: #fff; font-family: "KodeMono-Medium", monospace; font-weight: normal; }
.mt-podio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.mt-podio-juego { display: flex; flex-direction: column; gap: 0.25rem; color: #cdeaf7 !important; text-decoration: none !important; }
.mt-podio-juego .mt-portada { position: relative; }
.mt-podio-juego em { position: absolute; top: 0.25rem; left: 0.25rem; display: flex; align-items: center; justify-content: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: #ffd23d; color: #2d2a12; font: 0.7rem "KodeMono-Medium", monospace; font-style: normal; }
.mt-podio-juego b { font-size: 0.72rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mt-podio-juego small { font-size: 0.64rem; color: #7fa3b8; }
.mt-podio-juego strong { color: #ffd23d; font-family: "KodeMono-Medium", monospace; font-weight: normal; }
.mt-fila { display: flex; flex-direction: column; padding: 0.4rem 0; border-bottom: 1px dashed rgba(var(--v2-acento-rgb, 57, 192, 255), 0.12); color: #cdeaf7 !important; text-decoration: none !important; }
.mt-fila b { font-size: 0.8rem; }
.mt-fila small { font-size: 0.68rem; color: #7fa3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-fila:hover b { color: #fff; }
.mt-fila-cifra { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 0.6rem; }
.mt-fila-cifra b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-fila-cifra span { font: 0.8rem "KodeMono-Medium", monospace; color: #2fd18a; text-align: right; }
.mt-barra-fila { display: grid; grid-template-columns: minmax(0, 9rem) 1fr 2rem; align-items: center; gap: 0.5rem; padding: 0.22rem 0; font-size: 0.75rem; color: #cdeaf7; }
.mt-barra-fila span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-barra-fila i { display: block; height: 0.42rem; border-radius: 999px; background: linear-gradient(90deg, #6b3bb5, #a66bff); }
.mt-barra-fila b { font: 0.75rem "KodeMono-Medium", monospace; color: #fff; text-align: right; font-weight: normal; }
.mt-panel-mas { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.5rem; font-size: 0.75rem; color: var(--v2-acento, #39c0ff) !important; text-decoration: none !important; }
.mt-panel-mas:hover { color: #fff !important; }
.mt-panel-nota { margin: 0.45rem 0 0; font-size: 0.66rem; color: #6f8796; }
.mt-panel-acciones { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mt-panel-acciones .ex-buscar { text-decoration: none !important; }

.mt-ranking { list-style: none; margin: 0; padding: 0; columns: 2 22rem; column-gap: 1.6rem; }
.mt-ranking li { display: grid; grid-template-columns: 2rem minmax(0, 11rem) minmax(0, 1fr) 4.2rem; align-items: center; gap: 0.6rem; padding: 0.32rem 0.45rem; border-radius: 0.45rem; break-inside: avoid; font-size: 0.82rem; color: #cdeaf7; cursor: pointer; transition: background 0.15s ease; }
.mt-ranking li:hover, .mt-ranking li.mt-sel { background: rgba(var(--v2-acento-rgb, 57, 192, 255), 0.1); }
.mt-pos { font: 0.75rem "KodeMono-Medium", monospace; color: #6f8796; text-align: right; }
.mt-rk-nombre { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-rk-nombre small { display: block; font-size: 0.68rem; color: #ffd23d; overflow: hidden; text-overflow: ellipsis; }
.mt-rk-barra.mt-pal-naranja i { background: linear-gradient(90deg, #b8611c, #ff9a3d); }
.mt-rk-barra.mt-pal-oro i { background: linear-gradient(90deg, #a8901d, #ffd23d); }
.mt-rk-barra.mt-pal-violeta i { background: linear-gradient(90deg, #6b3bb5, #a66bff); }
.mt-rk-barra.mt-pal-verde i { background: linear-gradient(90deg, #1f8a5e, #2fd18a); }
.mt-rk-barra { height: 0.42rem; border-radius: 999px; background: rgba(var(--v2-acento-rgb, 57, 192, 255), 0.08); overflow: hidden; }
.mt-rk-barra i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1b84b8, var(--v2-acento, #39c0ff)); transition: width 0.3s ease; }
.mt-rk-valor { font: 0.82rem "KodeMono-Medium", monospace; color: #fff; text-align: right; }
.mt-ranking .mt-rk-vacio { display: block; cursor: default; color: #7fa3b8; }
.mt-fuentes { font-size: 0.75rem; }

@media (max-width: 1100px) {
    .mt-cuerpo { grid-template-columns: 1fr; }
    /* En una columna: mapa, panel y ranking, en ese orden */
    .mt-principal { display: contents; }
    .mt-mapa-caja { order: 1; } .mt-panel { order: 2; } .mt-ranking-caja { order: 3; }
    .mt-panel { position: static; }
    .mt-panel-cifras { grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); }
    .mt-juegos { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .mt-mapa { height: 430px; }
    .mt-cabecera-cifra { align-items: flex-start; text-align: left; }
    .mt-leyenda { position: static; width: auto; margin: 0.4rem 0.2rem 0.6rem; }
    .mt-grupos { flex: 1 1 100%; }
    .mt-grupo { flex-direction: column; align-items: stretch; gap: 0.3rem; }
    .mt-grupo-tit { width: auto; }
    .mt-modo { width: 100%; }
    .mt-modo-op { flex: 1; justify-content: center; }
    .mt-capas { max-width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -0.2rem; padding: 0 0.2rem 0.2rem; }
    .mt-capas::-webkit-scrollbar { display: none; }
    .mt-capa { flex: none; }
    .mt-ano-txt { font-size: 1.3rem; min-width: 3.4rem; }
    .mt-ranking li { grid-template-columns: 1.6rem minmax(0, 1fr) 4rem 3.6rem; }
    .mt-juegos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
