/* ============================================================
   V2.CSS — Capa de la versión 2 sobre los módulos base
   Scroll lateral por secciones, equipos dinámicos, staff por
   categorías, noticias y ajustes de legibilidad.
   dimonix.gg
   ============================================================ */

/* ── 1. VARIABLES ── */
:root {
    /* Azul de marca aclarado: solo para texto pequeño sobre fondo oscuro */
    --brand-bright:  #8576ff;
    --cal-val:   #ff4655;
    --cal-cs2:   #e4c269;
    --cal-lol:   #00ccff;
    --cal-cod:   #9bd13c;
    --cal-cyan:  #00ccff;
    --cal-dark:  #0a0c10;
    --cal-navy:  #121c3e;
}
[data-theme="light"] { --brand-bright: #2e0fd7; }

/* ── 2. ESTRUCTURA: CABECERA FIJA + PISTA LATERAL + FOOTER ── */
body.v2-home {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}
@media (max-width: 1680px) and (min-width: 1201px) {
    body.v2-home { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
}

.hx-stage {
    position: relative;
    flex: 1;
    min-height: 0;
    width: 100%;
    margin-top: var(--header-height);
    z-index: 1;
}
.hx-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}
.hx-track::-webkit-scrollbar { display: none; }

.hx-panel {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: #000;
}
.hx-panel > * { flex: 1; min-width: 0; }

/* Las secciones originales ocupaban el alto de la ventana: ahora ocupan su panel */
.hx-panel .hero-section          { margin-top: 0; height: 100%; }
.hx-panel .tech-roster-section,
.hx-panel .staff-section,
.hx-panel .creators-section      { height: 100%; padding-top: 0; }
.hx-panel .creators-title-overlay { top: 18px; }

/* Lo que inyecta Google Translate no debe ocupar sitio en la columna */
body.v2 > div[class*="VIpgJd"] { position: fixed !important; }

/* ── 3. NAVEGACIÓN ENTRE SECCIONES ── */

/* Avance sobre la línea azul de la cabecera */
.hx-progress {
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    pointer-events: none;
}
.hx-progress span {
    display: block;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--brand-primary), #00ccff);
    box-shadow: 0 0 12px rgba(0, 204, 255, 0.6);
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 0.25s linear;
}

/* Flechas laterales */
.hx-arrow {
    position: absolute;
    top: 50%;
    z-index: 20;
    width: 44px; height: 64px;
    margin-top: -32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    background: rgba(10, 12, 16, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    clip-path: polygon(22% 0, 100% 0, 100% 78%, 78% 100%, 0 100%, 0 22%);
    opacity: 0.6;
    transition: var(--transition);
}
.hx-prev { left: 10px; }
.hx-next { right: 10px; }
.hx-arrow:hover,
.hx-arrow:focus-visible {
    opacity: 1;
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    box-shadow: 0 0 24px rgba(46, 15, 215, 0.6);
}
.hx-arrow[disabled] { opacity: 0; pointer-events: none; }

/* Paginador: una marca por sección y el nombre de la actual */
.hx-pager {
    position: absolute;
    top: 14px;
    left: clamp(16px, 2vw, 34px);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 12px 7px 10px;
    background: rgba(10, 12, 16, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.hx-dots { display: flex; align-items: center; gap: 6px; }
.hx-dots button {
    width: 16px; height: 5px;
    padding: 0;
    background: rgba(255, 255, 255, 0.28);
    transform: skewX(-25deg);
    transition: width 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    /* Zona de pulsación mayor que la marca visible */
    position: relative;
}
.hx-dots button::after { content: ''; position: absolute; inset: -10px -3px; }
.hx-dots button:hover { background: rgba(255, 255, 255, 0.6); }
.hx-dots button.active {
    width: 34px;
    background: var(--brand-bright);
    box-shadow: 0 0 12px rgba(133, 118, 255, 0.8);
}
.hx-label {
    font-family: "Courier New", monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
}

/* ── 4. CABECERA ── */
[data-theme="light"] .logo img { content: url('../img/logo-negro-web.png'); }

/* Enlaces activos legibles sobre el fondo oscuro */
body.v2 .nav-link:hover,
body.v2 .nav-link.active { color: var(--brand-bright); }
body.v2 .special-live .nav-link,
body.v2 .special-live .nav-link:hover { color: var(--live-red); }
body.v2 .share-btn:hover,
body.v2 .has-submenu:hover .share-btn { color: #fff; }

/* Pantallas medianas: el menú no se apelotona contra el logo */
body.v2 .nav-menu { gap: 14px; }
@media (max-width: 1600px) and (min-width: 1201px) {
    body.v2 .main-header { padding: 0 3% 0 4%; }
    body.v2 .logo        { margin-left: 0; margin-right: 3%; }
    body.v2 .logo img    { height: 50px; }
}
@media (max-width: 1360px) and (min-width: 1201px) {
    body.v2 .nav-link { font-size: 0.92rem; }
    body.v2 .theme-switch-wrapper { width: 116px; }
}
@media (max-width: 1200px) {
    body.v2 .nav-menu { gap: 20px; }
}

/* Equipos: logo + bandera */
.submenu-teams li a.team-box { position: relative; }
.submenu-teams li a.team-box img.team-flag {
    position: absolute;
    right: -5px; bottom: -5px;
    width: 20px; height: auto;
    max-width: none; max-height: none;
    border: 1px solid var(--bg-card);
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
.submenu-teams li a.team-box:hover img.team-flag { transform: none; }
.team-box-text {
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 0.7rem;
    color: var(--text-main);
}

/* Botón de bingo (igual que en la web actual) */
@property --blb-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
#bingo-live-btn {
    position: fixed; top: 22px; right: 36px; z-index: 99999;
    width: 42px; height: 42px; border-radius: 50%;
    background: linear-gradient(135deg, #0a0c1a, #0e1228);
    display: flex; align-items: center; justify-content: center;
    filter: drop-shadow(0 0 8px rgba(0,212,255,.25)) drop-shadow(0 0 20px rgba(99,45,255,.15));
    transition: transform .25s cubic-bezier(.34,1.56,.64,1), filter .2s;
}
#bingo-live-btn::before {
    content: ''; position: absolute; inset: -2px; border-radius: 50%; z-index: -1;
    background: conic-gradient(from var(--blb-angle), #00d4ff 0deg, #2e0fd7 80deg, #632dff 160deg, #ff4655 200deg, #632dff 260deg, #2e0fd7 320deg, #00d4ff 360deg);
    animation: blbSpin 3s linear infinite;
}
#bingo-live-btn::after {
    content: ''; position: absolute; inset: 2px; border-radius: 50%; z-index: -1;
    background: linear-gradient(135deg, #0a0c1a, #0e1228);
}
#bingo-live-btn:hover { transform: scale(1.15) translateY(-3px); }
.blb-ring, .blb-ring-2 {
    position: absolute; inset: -8px; border-radius: 50%;
    border: 1.5px solid rgba(0,212,255,.4);
    animation: blbRing 2s ease-out infinite; pointer-events: none;
}
.blb-ring-2 { border-color: rgba(0,212,255,.2); animation-delay: .7s; }
.blb-live-dot {
    position: absolute; top: 1px; right: 1px; width: 10px; height: 10px; border-radius: 50%;
    background: #00d4ff; box-shadow: 0 0 6px #00d4ff; border: 2px solid #0a0c1a; z-index: 2;
}
.blb-b {
    font-family: 'Orbitron', sans-serif; font-size: 18px; font-weight: 800; line-height: 1;
    background: linear-gradient(160deg, #fff 0%, #a0ecff 50%, #7fdfff 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    position: relative; z-index: 1;
}
@keyframes blbSpin { to { --blb-angle: 360deg; } }
@keyframes blbRing { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
@media (max-width: 1900px) {
    #bingo-live-btn { top: auto; bottom: 92px; right: 34px; }
}

/* Efecto del código secreto */
.shake-effect { animation: cyber-shake 0.15s infinite; }
@keyframes cyber-shake {
    0%   { margin-left: 0; }
    25%  { margin-left: 5px; margin-top: -5px; }
    50%  { margin-left: -5px; margin-top: 5px; }
    75%  { margin-left: 5px; }
    100% { margin-left: 0; }
}

/* ── 5. INICIO: CALENDARIO (mismas reglas que la portada actual) ── */
.cal-header { justify-content: center; gap: clamp(10px, 1.4vw, 18px); }
.cal-header-divider {
    width: 1px; height: clamp(28px, 3.5vh, 44px);
    background: linear-gradient(to bottom, transparent, rgba(0,204,255,0.4), transparent);
    flex-shrink: 0;
}
.cal-header-text { flex: none; text-align: left; }

.day-name { border-radius: 7px 7px 0 0; }
.day-matches { position: relative; }

.match-card {
    padding: clamp(6px,0.9vh,11px) clamp(8px,0.8vw,11px);
    box-shadow: inset 4px 0 0 0 rgba(255,255,255,0.15);
    overflow: visible;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, z-index 0s;
    z-index: 1;
    cursor: default;
}
.match-card::before { content: none; }
.match-card:hover {
    transform: scale(1.08);
    background: rgba(10,12,20,0.96);
    z-index: 50;
}
.match-card.valorant { box-shadow: inset 4px 0 0 0 var(--cal-val); }
.match-card.cs2      { box-shadow: inset 4px 0 0 0 var(--cal-cs2); }
.match-card.lol      { box-shadow: inset 4px 0 0 0 var(--cal-lol); }
.match-card.cod      { box-shadow: inset 4px 0 0 0 var(--cal-cod); }
.match-card.dimonix  { box-shadow: inset 4px 0 0 0 rgba(255,255,255,0.4); }
.match-card.valorant:hover { box-shadow: inset 4px 0 0 0 var(--cal-val), 0 8px 24px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,204,255,0.2); }
.match-card.cs2:hover      { box-shadow: inset 4px 0 0 0 var(--cal-cs2), 0 8px 24px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,204,255,0.2); }
.match-card.lol:hover      { box-shadow: inset 4px 0 0 0 var(--cal-lol), 0 8px 24px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,204,255,0.2); }
.match-card.cod:hover      { box-shadow: inset 4px 0 0 0 var(--cal-cod), 0 8px 24px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,204,255,0.2); }
.match-card.dimonix:hover  { box-shadow: inset 4px 0 0 0 rgba(255,255,255,0.4), 0 8px 24px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,204,255,0.2); }
.match-card.cod .game-badge { color: #a9d85a; }

.game-badge { white-space: normal; overflow: visible; line-height: 1.25; }
.rival-name { max-height: none; transition: all 0.2s ease; }
.match-card:hover .rival-name { display: block; overflow: visible; -webkit-line-clamp: unset; }

.match-card.cancelado::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(0,0,0,.45); border-radius: 5px;
    z-index: 2; pointer-events: none;
}
.sello-cancelado {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-22deg);
    z-index: 3; pointer-events: none; text-align: center; white-space: nowrap;
}
.sello-cancelado span {
    display: block;
    font-family: 'Rajdhani', 'Orbitron', sans-serif;
    font-size: clamp(11px, 1.1vw, 15px);
    font-weight: 900; letter-spacing: .25em; color: #ff3b3b;
    border: 2.5px solid #ff3b3b; padding: 3px 10px; border-radius: 4px;
    background: rgba(20,5,5,.75);
    box-shadow: 0 0 12px rgba(255,59,59,.3), inset 0 0 8px rgba(255,59,59,.1);
    text-shadow: 0 0 8px rgba(255,59,59,.6);
}
.sello-resultado {
    position: absolute;
    width:  clamp(48px, 5vw, 58px);
    height: clamp(48px, 5vw, 58px);
    top:   calc(clamp(48px, 5vw, 58px) * -.28);
    right: calc(clamp(48px, 5vw, 58px) * -.28);
    border-radius: 50%;
    clip-path: inset(28% 28% 0% 0%);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Rajdhani', 'Orbitron', sans-serif;
    font-weight: 900;
    pointer-events: none;
    z-index: 3;
}
.sello-resultado.win {
    background: rgba(5, 22, 5, .95);
    border: 2.5px solid #2ecc71;
    box-shadow: 0 0 0 2px rgba(5, 22, 5, .95), 0 0 0 4.5px #2ecc71;
    color: #2ecc71;
}
.sello-resultado.defeat {
    background: rgba(22, 5, 5, .95);
    border: 2.5px solid #ff5e5e;
    box-shadow: 0 0 0 2px rgba(22, 5, 5, .95), 0 0 0 4.5px #ff5e5e;
    color: #ff5e5e;
}
.sello-resultado .res-inner {
    transform: rotate(-20deg) translate(-18%, 18%);
    display: flex; flex-direction: column; align-items: center; line-height: 1.1;
}
.sello-resultado .res-letter { font-size: clamp(11px, 1.2vw, 15px); line-height: 1; }
.sello-resultado .res-score  { font-size: clamp(8px, .75vw, 10px); opacity: .9; line-height: 1; }

.footer-cal a { color: inherit; display: flex; align-items: center; transition: opacity 0.2s ease; }
.footer-cal a:hover { opacity: 0.75; }
/* Los textos pequeños del calendario ganan contraste */
.footer-cal { color: rgba(255, 255, 255, 0.6); }
.training-text { color: rgba(255, 255, 255, 0.24); }

/* ── 6. EQUIPOS ── */
.hx-panel .tech-roster-section { --brand-primary: var(--team-accent, #2e0fd7); }

.roster-header h2 { display: flex; align-items: center; justify-content: center; gap: 0.45em; flex-wrap: wrap; }
.roster-flag {
    height: 0.62em; width: auto;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.tech-panel.active .stat-box .value {
    text-shadow: 0 0 10px color-mix(in srgb, var(--team-accent, #2e0fd7) 80%, transparent);
}
.tech-bg-empty, .staff-bg-empty {
    background: linear-gradient(160deg, #15171c, #050506);
    filter: none; opacity: 1;
}
.hud-socials { display: flex; gap: 14px; }
.hud-bio .typewriter { color: #d6d9de; }
.stat-box .label { color: #a3a8b0; }

/* Escritorio: el jugador activo a la izquierda y su ficha a la derecha, sin taparle la cara */
@media (min-width: 1201px) {
    .hx-panel .tech-panel .tech-bg { transition: width 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.8s ease, opacity 0.8s ease; }
    .hx-panel .tech-panel.active .tech-bg {
        width: 56%;
        transform: none !important;
        object-position: center 12%;
        -webkit-mask-image: linear-gradient(to right, #000 70%, transparent);
        mask-image: linear-gradient(to right, #000 70%, transparent);
    }
    .hx-panel .scouter-hud { right: 4%; width: min(450px, 46%); }
    .hx-panel .hud-name    { font-size: clamp(2rem, 2.9vw, 4rem); overflow-wrap: anywhere; }
}

/* Equipo sin jugadores todavía */
.roster-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    padding: 20px;
    background:
        radial-gradient(ellipse at 50% 120%, color-mix(in srgb, var(--team-accent, #2e0fd7) 28%, transparent), transparent 62%),
        #050506;
}
.roster-empty-logo { width: clamp(90px, 12vw, 160px); height: auto; opacity: 0.9; }
.roster-empty-title {
    font-family: var(--font-headings);
    font-weight: 900;
    font-size: clamp(1.3rem, 2.6vw, 2.4rem);
    letter-spacing: 1px;
    color: #fff;
}
.roster-empty-text {
    font-family: "Courier New", monospace;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
}

/* ── 7. STAFF POR CATEGORÍAS ── */
.staff-club { --staff-accent: #8576ff; --staff-accent-rgb: 133, 118, 255; }
.staff-club .staff-grid        { display: none; }
.staff-club .staff-grid.active { display: flex; }
.staff-header .subtitle { color: rgba(255, 255, 255, 0.55); }
.staff-bio { color: rgba(255, 255, 255, 0.72); }

.staff-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.staff-tab {
    padding: 7px 20px;
    font-family: "Courier New", monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.16);
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    transition: var(--transition);
}
.staff-tab:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.staff-tab.active {
    color: #fff;
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

/* ── 8. NOTICIAS ── */
.news-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: clamp(16px, 2vw, 34px);
    padding: clamp(56px, 7vh, 70px) clamp(60px, 6vw, 110px) clamp(18px, 3vh, 36px);
    background:
        linear-gradient(rgba(10, 11, 14, 0.86), rgba(10, 11, 14, 0.94)),
        url('../img/fondo.webp') center / cover no-repeat;
}
.news-lead-card {
    position: relative;
    min-height: 0;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background: #0f1012;
    border: 1px solid rgba(255, 255, 255, 0.12);
    clip-path: polygon(34px 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%, 0 34px);
}
.news-lead-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.news-lead-card:hover .news-lead-img { transform: scale(1.04); }
.news-lead-card::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.72) 42%, rgba(0, 0, 0, 0.1) 100%);
}
.news-lead-body {
    position: relative;
    z-index: 2;
    padding: clamp(18px, 2.4vw, 40px);
    max-width: 780px;
}
.news-chip {
    display: inline-block;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #00131a;
    background: #00ccff;
    border-radius: 3px;
}
.news-lead-title {
    margin: 14px 0 8px;
    font-size: clamp(1.3rem, 2.3vw, 2.4rem);
    line-height: 1.08;
    letter-spacing: 0;
    color: #fff;
    text-wrap: balance;
}
.news-date {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.62);
}
.news-excerpt {
    margin: 12px 0 22px;
    padding-left: 14px;
    border-left: 3px solid var(--cal-val);
    font-size: clamp(0.9rem, 1vw, 1.05rem);
    line-height: 1.6;
    color: #d6d9de;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-more {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    overflow-y: auto;
}
.news-more-title {
    font-family: "Courier New", monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.6);
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.news-item {
    display: flex;
    gap: 14px;
    align-items: stretch;
    padding: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}
a.news-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--brand-bright);
    transform: translateX(4px);
}
.news-item img { width: 132px; height: 88px; object-fit: cover; flex-shrink: 0; }
.news-item-body { display: flex; flex-direction: column; gap: 5px; justify-content: center; min-width: 0; }
.news-item-tag { font-size: 0.66rem; font-weight: 800; letter-spacing: 1.5px; color: #00ccff; text-transform: uppercase; }
.news-item-title { font-weight: 800; font-size: 0.98rem; line-height: 1.25; color: #fff; }

/* ── 9. CREADORES ── */
body.v2 .creator-info .role { color: var(--brand-bright); }

/* ── 10. ENTRADA DE CADA SECCIÓN ── */
.hx-panel .roster-header h2,
.hx-panel .staff-header,
.hx-panel .creators-title-overlay h2,
.hx-panel .news-lead-body,
.hx-panel .news-more {
    opacity: 0;
    transform: translateX(46px);
    transition: opacity 0.6s ease 0.15s, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s;
}
.hx-panel.is-seen .roster-header h2,
.hx-panel.is-seen .staff-header,
.hx-panel.is-seen .creators-title-overlay h2,
.hx-panel.is-seen .news-lead-body,
.hx-panel.is-seen .news-more {
    opacity: 1;
    transform: none;
}

/* ── 11. FOCO VISIBLE ── */
body.v2 a:focus-visible,
body.v2 button:focus-visible,
body.v2 [tabindex]:focus-visible {
    outline: 2px solid #00ccff;
    outline-offset: 2px;
}

/* ── 12. PANTALLAS BAJAS (portátiles, escala 125 %) ── */
@media (min-width: 1201px) and (max-height: 860px) {
    .roster-header            { padding: 10px 0 !important; }
    .roster-header h2         { font-size: 1.9rem; }
    .scouter-hud              { padding: 24px 28px; width: 400px; }
    .hud-name                 { font-size: 2.8rem; margin-bottom: 16px; padding-bottom: 14px; }
    .hud-grid                 { margin-bottom: 16px; }
    .hud-bio                  { margin-bottom: 12px; min-height: 0; }
    .typewriter               { font-size: 0.85rem; }
    .staff-header             { padding: 10px 0 8px; }
    .staff-header h2          { font-size: 1.8rem; }
    .staff-name               { font-size: 2.2rem; }
    .staff-info               { padding: 20px 26px 24px; }
    .creators-title-overlay h2 { font-size: 2.2rem; }
    .creator-info h3          { font-size: 1.9rem; }
    .hx-pager                 { top: 8px; }
}

/* ── 13. TABLET Y MÓVIL: deslizar de lado, cada sección con su scroll ── */
@media (max-width: 1200px) {
    body.v2-home {
        height: auto;
        overflow-x: hidden;
        overflow-y: auto;
    }
    .hx-stage {
        flex: none;
        height: calc(100vh - var(--header-height));
        height: calc(100dvh - var(--header-height));
    }
    .hx-panel { overflow-y: auto; align-items: flex-start; }
    .hx-panel > * { min-height: 100%; }
    .hx-panel .hero-section { height: auto; min-height: 100%; }
    .hx-panel .tech-roster-section,
    .hx-panel .staff-section,
    .hx-panel .creators-section { height: auto; min-height: 100%; overflow: visible; }
    .hx-panel .roster-header { padding-top: 52px !important; }
    .hx-panel .staff-header  { padding-top: 52px; }
    .hx-panel .hero-split-container { padding-top: 60px; }
    /* El calendario crece con su contenido: el scroll es el de la sección */
    .hx-panel .hero-split-right,
    .hx-panel .hero-split-right .calendar-container { min-height: 0; max-height: none; overflow: visible; }
    .hx-panel .cal-grid { flex: none; min-height: 0; }
    .hx-panel .day-col  { min-height: 60px; }
    .hx-panel .cal-bg   { border-radius: 14px; overflow: hidden; }
    .cal-header-text    { min-width: 0; }
    .cal-header h2      { letter-spacing: 2px; }
    .cal-header small   { letter-spacing: 1px; }
    .footer-cal         { flex-wrap: wrap; gap: 6px 12px; justify-content: center; }
    .hx-arrow { display: none; }
    .hx-pager { top: 10px; left: 12px; }
    .roster-empty { min-height: 60vh; }

    .staff-card.active { height: 500px; }

    .news-panel {
        grid-template-columns: 1fr;
        padding: 58px 16px 24px;
        height: auto;
    }
    .news-lead-card { min-height: 420px; }
    .news-more { overflow: visible; }
}
@media (max-width: 768px) {
    .roster-header h2 { font-size: 1.5rem; }
    .staff-header h2  { font-size: 1.5rem; }
    .hx-panel .creators-title-overlay { padding-top: 52px; }
    .hx-panel .creators-title-overlay h2 { font-size: 1.6rem; }
    .staff-card.active { height: 420px; }
    .news-item img { width: 96px; height: 72px; }
    .hx-label { letter-spacing: 2px; }
}

/* ── 14. MENOS MOVIMIENTO ── */
@media (prefers-reduced-motion: reduce) {
    .hx-panel .roster-header h2,
    .hx-panel .staff-header,
    .hx-panel .creators-title-overlay h2,
    .hx-panel .news-lead-body,
    .hx-panel .news-more { opacity: 1; transform: none; transition: none; }
    .hx-progress span { transition: none; }
    .marquee-track { animation-duration: 120s; }
}

/* Ventana del código de acceso (cinco toques en el logo) */
.dx-code {
    position: fixed; inset: 0; z-index: 100000;
    display: flex; align-items: center; justify-content: center; padding: 20px;
    background: rgba(4, 5, 12, 0.78); backdrop-filter: blur(6px);
}
.dx-code-card {
    width: min(380px, 100%); padding: 26px 26px 22px;
    background: var(--bg-card, #12131c); border: 1px solid var(--brand-primary, #2e0fd7);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
    display: flex; flex-direction: column; gap: 12px;
}
.dx-code-tag { font-family: monospace; font-size: 0.7rem; letter-spacing: 3px; color: #00ccff; }
.dx-code-card label { font-family: var(--font-headings); font-weight: 800; font-size: 1.05rem; color: #fff; letter-spacing: 1px; }
.dx-code-card input {
    height: 46px; padding: 0 14px; font: 600 1rem monospace; letter-spacing: 2px;
    color: #fff; background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.18); outline: none;
}
.dx-code-card input:focus { border-color: #00ccff; box-shadow: 0 0 0 2px rgba(0, 204, 255, 0.2); }
.dx-code-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.dx-code-actions button {
    height: 40px; padding: 0 18px; cursor: pointer;
    font-family: var(--font-headings); font-weight: 800; font-size: 0.8rem; letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.25); background: transparent; color: #fff;
}
.dx-code-actions .dx-code-ok { background: var(--brand-primary, #2e0fd7); border-color: var(--brand-primary, #2e0fd7); }
.dx-code-actions button:hover { filter: brightness(1.2); }

/* ── PANTALLAS MUY GRANDES (2K ancho, 4K, 5K) ──
   Los tamaños de la web están pensados para ~1920 px. En monitores de mucha resolución sin
   escalado del sistema todo quedaba diminuto, así que la página entera se amplía en proporción.
   (El ancho y el alto se dividen por el mismo factor para que siga ocupando justo la ventana.) */
@media (min-width: 2300px) and (min-height: 1200px) { :root { --ui-zoom: 1.15; } }
@media (min-width: 3000px) and (min-height: 1500px) { :root { --ui-zoom: 1.6; } }
@media (min-width: 4600px) and (min-height: 2400px) { :root { --ui-zoom: 2.1; } }
@media (min-width: 2300px) and (min-height: 1200px) {
    body.v2:not(.pg-bingo):not(.pg-duck):not(.pg-captura) {
        zoom: var(--ui-zoom);
        width: calc(100vw / var(--ui-zoom));
        height: calc(100vh / var(--ui-zoom));
        height: calc(100dvh / var(--ui-zoom));
    }
}

/* ── IN LIVE EN MÓVIL Y TABLETA ──
   En escritorio los canales salen al pasar el ratón por IN LIVE. Con el menú plegado no hay
   ratón, así que: (1) dentro del menú se ven todos los canales con su nombre y los que están
   en directo destacados; (2) fuera del menú, un aviso fijo bajo la cabecera cuando hay alguien
   en directo; (3) un punto rojo en el botón del menú. */
.live-name, .live-tag, .live-none, .live-bar { display: none; }

@media (max-width: 1200px) {
    body.v2 .submenu-live {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center !important;
        align-items: flex-start !important;
        gap: 16px 8px;
        padding: 4px 0 18px;
    }
    body.v2 .submenu-live li,
    body.v2 .submenu-live li:has(.live-box:not(.is-live)) { display: flex !important; width: auto !important; margin: 0; }
    body.v2 .submenu-live li:has(.live-box.is-live) { order: -1; }
    body.v2 .submenu-live .live-box,
    body.v2 .submenu-live .live-box:not(.is-live),
    body.v2 .submenu-live .live-box.is-live {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        width: 88px !important;
        height: auto !important;
        margin: 0;
        border: 0;
        border-radius: 0 !important;
        background: none;
        overflow: visible !important;
        transform: none;
    }
    body.v2 .submenu-live .live-box::after,
    body.v2 .submenu-live .live-box.is-live::after { content: none !important; display: none !important; }
    body.v2 .submenu-live .live-box img {
        width: 58px !important; height: 58px !important;
        min-width: 58px; min-height: 58px;
        border: 2px solid rgba(255, 255, 255, 0.16);
        border-radius: 50% !important;
        opacity: 0.75;
    }
    body.v2 .submenu-live .live-box.is-live img {
        opacity: 1;
        border-color: var(--live-red);
        box-shadow: 0 0 0 3px rgba(255, 59, 59, 0.22), 0 0 18px rgba(255, 59, 59, 0.45);
    }
    body.v2 .submenu-live .live-status-dot { display: none; }
    .live-name {
        display: block;
        max-width: 88px;
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
        font-size: 0.68rem; font-weight: 800; letter-spacing: 0.5px;
        color: var(--text-muted);
    }
    .live-box.is-live .live-name { color: var(--text-main); }
    .live-box.is-live .live-tag {
        display: block;
        padding: 3px 7px;
        font-size: 0.56rem; font-weight: 800; letter-spacing: 1px;
        color: #fff; background: var(--live-red); border-radius: 3px;
    }

    /* Aviso fijo bajo la cabecera */
    .live-bar {
        position: fixed;
        top: calc(var(--header-height) + 10px);
        right: 12px;
        z-index: 900;
        display: flex;
        align-items: center;
        gap: 8px;
        max-width: min(62vw, 300px);
        padding: 7px 12px;
        font-size: 0.7rem; font-weight: 800; letter-spacing: 1px;
        color: #fff;
        background: rgba(20, 6, 8, 0.92);
        border: 1px solid var(--live-red);
        border-radius: 999px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 14px rgba(255, 59, 59, 0.25);
        backdrop-filter: blur(6px);
    }
    .live-bar[hidden] { display: none; }
    .live-bar .live-dot { flex: none; }
    .live-bar-text { flex: none; color: var(--live-red); }
    .live-bar strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .live-bar i { flex: none; color: #b48cff; font-size: 0.9rem; }

    /* Punto rojo en el botón del menú */
    .hamburger { position: relative; }
    .hamburger.has-live::after {
        content: '';
        position: absolute; top: 4px; right: -6px;
        width: 10px; height: 10px; border-radius: 50%;
        background: var(--live-red);
        box-shadow: 0 0 10px var(--live-red);
        animation: pulse 1.5s infinite;
    }
}
@media (max-width: 420px) {
    .live-bar-text { display: none; }
}

/* ── CALENDARIO EN MÓVIL: la cabecera cabe sin cortarse ── */
@media (max-width: 600px) {
    .hx-panel .cal-header { gap: 10px; }
    .hx-panel .cal-header-logo { height: 30px; }
    .hx-panel .cal-header-divider { height: 30px; }
    .hx-panel .cal-header h2 { font-size: clamp(1rem, 5.4vw, 1.35rem); letter-spacing: 1.5px; }
    .hx-panel .cal-header small { font-size: 0.56rem; letter-spacing: 0.4px; white-space: normal; line-height: 1.3; }
}
@media (max-width: 1200px) {
    /* Hueco al final del menú para que los botones flotantes no tapen lo último */
    body.v2 .nav-menu { padding-bottom: 110px; }
}
@media (max-width: 600px) {
    .hx-panel .cal-header-logo, .hx-panel .cal-header-divider { height: 26px; }
    .hx-panel .cal-header h2 { font-size: clamp(0.95rem, 4.6vw, 1.3rem); letter-spacing: 1px; }
}
@media (max-width: 600px) {
    /* Con el aviso de directo a la vista, la etiqueta de sección se queda solo con las rayas */
    body.v2:has(#liveBar:not([hidden])) .hx-label { display: none; }
}

/* Nombre del jugador en su ficha: siempre en una sola línea (app.js le ajusta el tamaño si es largo) */
.hx-panel .hud-name { white-space: nowrap; overflow-wrap: normal; }

/* ── «SIN DIRECTOS» EN EL MENÚ IN LIVE ──
   Etiqueta discreta (no una frase) y SOLO cuando ya se ha preguntado a Twitch y no hay nadie:
   app.js pone .live-checked tras la primera respuesta buena y .has-live si alguien emite.
   Va con !important porque `.submenu-live li { display:flex }` ganaba al `display:none`
   y el aviso salía siempre en escritorio, también con gente en directo. */
body.v2 .submenu-live li.live-none { display: none !important; }
body.v2 .special-live.live-checked:not(.has-live) .submenu-live li.live-none {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100% !important;
    order: -2;
    margin: 0;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--text-muted);
}
.live-none-dot {
    flex: none;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.55;
}
@media (min-width: 1201px) {
    body.v2 .special-live.live-checked:not(.has-live) .submenu-live li.live-none {
        width: calc(100% - 24px) !important;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--border-color);
    }
}
