/* =========================================================
   switzerland/lineup.css | generado por _build/build.py
   Paleta de switzerland/index.css + /lineup.css original. NO EDITAR AQUÍ:
   cambia el original, index.css o _build/templates/css/ y reconstruye.
   ========================================================= */

:root {
    --bg-black: #050505;
    --bg-deep: #2a0505;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;

    --card-bg: rgba(26, 8, 8, 0.8);
    --card-bg-hover: #240404;
    --card-border: rgba(255, 42, 42, 0.18);

    --accent: #ff2a2a;
    --accent-soft: rgba(255, 42, 42, 0.14);
    --accent-line: rgba(255, 42, 42, 0.35);
    --accent-glow: rgba(255, 42, 42, 0.45);
    --accent-peak: #ff6b6b;

    --badge-bg: rgba(38, 10, 10, 0.92);
    --badge-fg: #ffffff;
    --cta-bg: #ff2a2a;
    --cta-fg: #ffffff;

    --feat-bg: rgba(30, 9, 9, 0.92);
    --track-bg: rgba(18, 4, 4, 0.6);
}

:root {
    --neon-blue: var(--accent);
    --neon-blue-glow: var(--accent-glow);
    --bg-color: var(--bg-black);
    --border-dark: #1f2430;
    --neon-pink: #ff0055;
    --neon-pink-glow: rgba(255, 0, 85, 0.4);
}

/* ---- lineup.css original (raíz), con el color de la liga ---- */
/* --- guesstheclub.css | THE PUCK GAMES STYLE --- */

:root {
    --bg-dark: #0a0e17;
    --card-bg: #131a26;
    --border-dark: #2a3441;
    --text-primary: #ffffff;
    --text-secondary: #8892b0;
    
    /* Colores de estado */
    --correct-glass: rgba(0, 255, 136, 0.15);
    --correct-border: #00ff88;
    --wrong-glass: rgba(255, 255, 255, 0.05);
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Inter', sans-serif; 
}

body { 
    background: var(--bg-dark); 
    color: var(--text-primary); 
}

.hidden { display: none !important; }

/* --- NAVEGACIÓN --- */
.navbar { 
    padding: 20px; 
    text-align: center; 
    border-bottom: 1px solid var(--border-dark); 
    background: var(--card-bg); 
}

.logo { 
    font-size: 2rem; 
    font-weight: 900; 
    letter-spacing: 1px;
}

.highlight { color: var(--neon-blue); }

/* --- CONTENEDOR PRINCIPAL --- */
.game-wrapper { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 20px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

/* --- BARRA SUPERIOR (CONTADOR) --- */
.stats-top-bar { 
    width: 100%; 
    display: flex; 
    justify-content: flex-end; 
    margin-bottom: 20px; 
    z-index: 10;
}

.attempts-counter { 
    font-size: 1.1rem; 
    font-weight: 900; 
    color: var(--neon-blue); 
    background: var(--card-bg); 
    padding: 10px 20px; 
    border: 1px solid var(--border-dark); 
    border-radius: 8px; 
    text-transform: uppercase; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* --- CAJA MISTERIOSA --- */
.mystery-container { 
    margin-bottom: 40px; 
    display: flex; 
    justify-content: center; 
}

.mystery-box { 
    width: 200px; 
    height: 200px; 
    background: var(--card-bg); 
    border-radius: 15px; 
    border: 3px solid var(--neon-blue); 
    box-shadow: 0 0 25px var(--neon-blue-glow); 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

.question-overlay { 
    font-size: 7rem; 
    font-weight: 900; 
    color: var(--neon-blue); 
    text-shadow: 0 0 20px var(--neon-blue-glow); 
}

/* --- BUSCADOR / AUTOCOMPLETADO --- */
.search-section { 
    width: 100%; 
    display: flex; 
    justify-content: center; 
    margin-bottom: 40px; 
}

.autocomplete-wrapper { 
    position: relative; 
    width: 100%; 
    max-width: 600px; 
}

.custom-input { 
    width: 100%; 
    padding: 20px 25px; 
    border-radius: 12px; 
    background: var(--card-bg); 
    border: 1px solid var(--border-dark); 
    color: #fff; 
    font-size: 1.3rem; 
    font-weight: 700; 
    outline: none; 
    transition: 0.3s; 
}

.custom-input:focus { 
    border-color: var(--neon-blue); 
    box-shadow: 0 0 15px var(--neon-blue-glow); 
}

.suggestions-list { 
    position: absolute; 
    top: 105%; 
    width: 100%; 
    background: #0d1117; 
    border: 1px solid var(--border-dark); 
    border-radius: 12px; 
    z-index: 1000; 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
}

.sugg-item { 
    display: flex; 
    align-items: center; 
    padding: 15px; 
    gap: 20px; 
    border-bottom: 1px solid #222; 
    cursor: pointer; 
    transition: 0.2s; 
}

.sugg-item:hover { background: color-mix(in srgb, var(--neon-blue) 10%, transparent); }
.sugg-logo { width: 50px; height: 50px; object-fit: contain; }
.sugg-name { font-weight: 900; font-size: 1.2rem; color: #fff; }

/* --- TABLERO GRID GIGANTE --- */
.guesses-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.grid-table { 
    min-width: 1100px; 
}

.grid-header { 
    display: grid; 
    grid-template-columns: 2.5fr 1fr 1fr 1.2fr 1.5fr 1fr 1.2fr; 
    gap: 15px; 
    margin-bottom: 15px; 
    text-align: center; 
}

.grid-header div {
    font-weight: 900;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.grid-attempt-row { 
    display: grid; 
    grid-template-columns: 2.5fr 1fr 1fr 1.2fr 1.5fr 1fr 1.2fr; 
    gap: 15px; 
    margin-bottom: 15px; 
}

.grid-box { 
    height: 110px; /* Celdas grandes y premium */
    background: var(--wrong-glass); 
    border: 1px solid var(--border-dark); 
    border-radius: 15px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    font-size: 1.4rem; /* Tamaño de texto generoso */
    font-weight: 900; 
    position: relative; 
}

.correct { 
    background: var(--correct-glass) !important; 
    border: 2px solid var(--correct-border) !important; 
    color: var(--correct-border) !important; 
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

/* Caja específica para el Club (Logo + Nombre) */
.club-box { 
    flex-direction: row; 
    justify-content: flex-start; 
    padding-left: 20px; 
}

.box-logo { 
    width: 65px; 
    height: 65px; 
    margin-right: 15px; 
    object-fit: contain; 
}

.box-name { 
    font-size: 1.2rem; 
    text-align: left; 
    line-height: 1.2; 
}

/* Indicadores de flechas (Establecimiento y Capacidad) */
.arrow-indicator { 
    position: absolute; 
    bottom: 5px; 
    right: 12px; 
    font-size: 2rem; 
    color: var(--neon-blue); 
    text-shadow: 0 0 10px var(--neon-blue-glow);
}

/* --- MODAL DE FINAL --- */
.final-modal { 
    position: fixed; 
    inset: 0; 
    background: rgba(0,0,0,0.9); 
    backdrop-filter: blur(10px); 
    display: none; 
    justify-content: center; 
    align-items: center; 
    z-index: 2000; 
}

.final-modal.show { display: flex; }

.modal-content { 
    background: var(--card-bg); 
    border: 2px solid var(--neon-blue); 
    padding: 50px; 
    border-radius: 20px; 
    text-align: center; 
    box-shadow: 0 0 40px var(--neon-blue-glow);
    max-width: 500px;
    width: 90%;
}

#endMessage { 
    font-size: 2.5rem; 
    font-weight: 900; 
    margin-bottom: 25px; 
    text-shadow: 0 0 10px currentColor; 
}

.revealed-player-info { margin-bottom: 30px; }

.revealed-player-info img { 
    width: 180px; 
    height: 180px; 
    object-fit: contain; 
    margin-bottom: 20px; 
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    border: 4px solid var(--neon-blue);
}

#revealed-name {
    font-size: 1.8rem;
    font-weight: 900;
}

.b2b-stats-grid { margin-bottom: 25px; }

.stat-box {
    background: var(--wrong-glass);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-dark);
    display: inline-block;
    min-width: 120px;
}

.stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--neon-blue);
}

.stat-text {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 700;
}

.modal-actions { 
    display: flex; 
    gap: 15px; 
    justify-content: center; 
}

.b2b-btn { 
    padding: 15px 25px; 
    border-radius: 8px; 
    font-weight: 900; 
    border: none; 
    cursor: pointer; 
    font-size: 1.1rem; 
    transition: 0.2s;
}

.b2b-btn:hover { transform: scale(1.05); }

.btn-share { background: #5c4dff; color: white; }
.btn-finish { background: #ccff00; color: black; }

/* =========================================
   ANIMACIONES DEL JUEGO
   ========================================= */

/* 1. Animación en cascada para las celdas del intento */
.grid-attempt-row .grid-box {
    opacity: 0;
    /* Usamos forwards para que se queden visibles al terminar */
    animation: flipIn 0.5s ease forwards;
}

/* Retrasos escalonados para cada columna (efecto Wordle) */
.grid-attempt-row .grid-box:nth-child(1) { animation-delay: 0.1s; }
.grid-attempt-row .grid-box:nth-child(2) { animation-delay: 0.25s; }
.grid-attempt-row .grid-box:nth-child(3) { animation-delay: 0.4s; }
.grid-attempt-row .grid-box:nth-child(4) { animation-delay: 0.55s; }
.grid-attempt-row .grid-box:nth-child(5) { animation-delay: 0.7s; }
.grid-attempt-row .grid-box:nth-child(6) { animation-delay: 0.85s; }
.grid-attempt-row .grid-box:nth-child(7) { animation-delay: 1.0s; }

@keyframes flipIn {
    0% { 
        opacity: 0; 
        transform: rotateX(90deg); /* Empieza girado hacia atrás */
    }
    100% { 
        opacity: 1; 
        transform: rotateX(0); /* Termina de frente */
    }
}

/* 2. Animación de entrada para el Modal Final */
.final-modal.show { 
    display: flex; 
    animation: fadeInBg 0.4s ease forwards;
}

.final-modal.show .modal-content {
    /* cubic-bezier crea ese efecto de "rebote" elástico */
    animation: popInModal 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes fadeInBg {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popInModal {
    0% { 
        opacity: 0; 
        transform: scale(0.5) translateY(50px); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

/* =========================================
   HOW TO PLAY / FAQ SECTION (Minimalist)
   ========================================= */

.faq-section {
    width: 100%;
    margin: 2rem 0 0 0;
    padding: 4rem 2rem;
    border-top: 1px solid color-mix(in srgb, var(--neon-blue) 20%, transparent); 
    border-bottom: 1px solid color-mix(in srgb, var(--neon-blue) 20%, transparent);
    background: rgba(13, 17, 26, 0.4); 
    box-sizing: border-box; 
}

.faq-container {
    max-width: 800px; 
    margin: 0 auto;
    text-align: left;
}

.faq-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

.faq-title .accent {
    color: var(--neon-blue); 
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--neon-blue);
    margin-top: 1.8rem;
    margin-bottom: 0.6rem;
    letter-spacing: -0.3px;
}

.faq-answer {
    font-size: 0.95rem;
    color: var(--text-secondary, #8892b0);
    line-height: 1.6;
    margin-bottom: 0;
}

.faq-answer strong {
    color: #fff;
    font-weight: 700;
}

/* =========================================
   AJUSTES PARA MÓVILES (Evitar scroll horizontal)
   ========================================= */
   /* Ocultar textos de móvil en pantallas grandes por defecto */
.hide-desktop {
    display: none;
}
@media (max-width: 768px) {
    /* Quitamos el ancho mínimo que forzaba el scroll */
    /* Quitamos el ancho mínimo que forzaba el scroll de forma obligatoria */
    .grid-table {
        min-width: 0 !important;
        width: 100%;
    }

    /* Reducimos las columnas y el espacio (gap) entre ellas */
    .grid-header, .grid-attempt-row {
        grid-template-columns: 1.5fr 0.8fr 0.8fr 1fr 1.3fr 0.8fr 1.1fr;
        gap: 3px;
    }

    /* Hacemos el texto de las cabeceras muy pequeñito */
    .grid-header div {
        font-size: 0.5rem;
        letter-spacing: 0;
        word-wrap: break-word;
    }

    /* Reducimos el tamaño general de las cajas */
    .grid-box {
        height: 55px; /* Mitad de altura */
        font-size: 0.65rem; /* Texto de los datos más pequeño */
        border-radius: 6px;
        padding: 2px;
    }

    /* Adaptamos la primera columna (Club) para que el logo y el nombre se apilen */
    .club-box {
        padding-left: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .box-logo {
        width: 24px;
        height: 24px;
        margin-right: 0;
        margin-bottom: 2px;
    }

    .box-name {
        font-size: 0.45rem;
        text-align: center;
        line-height: 1;
    }

    /* Hacemos las flechas de indicador (↑ ↓) más pequeñas */
    .arrow-indicator {
        font-size: 0.7rem;
        bottom: 2px;
        right: 2px;
    }

    /* Ocultar textos largos y mostrar los resumidos en móvil */
    .hide-mobile {
        display: none;
    }
    
    .hide-desktop {
        display: inline;
    }
}
/* --- lineup.css | THE PUCK GAMES STYLE --- */
/* Se complementa con las variables de guesstheclub.css */

/* =========================================
   CABECERA DEL JUEGO (ESTADO Y CONTADORES)
   ========================================= */
.game-header {
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    z-index: 10;
}

.status-badge {
    font-size: 0.9rem;
    font-weight: 900;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    background: var(--wrong-glass);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-dark);
}

/* =========================================
   ZONA DE LA PISTA DE HOCKEY (RINK)
   ========================================= */
.rink-area {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.rink-container {
    width: 100%;
    max-width: 700px;
    height: 500px;
    /* Gradiente mágico para dibujar las líneas de la pista (Azul - Roja - Azul) */
    background: linear-gradient(
        to bottom,
        #0b101a 0%,
        #0b101a 34%,
        rgba(0, 153, 255, 0.25) 34%, rgba(0, 153, 255, 0.25) 35%,
        #0b101a 35%,
        #0b101a 49.5%,
        rgba(255, 51, 51, 0.25) 49.5%, rgba(255, 51, 51, 0.25) 50.5%,
        #0b101a 50.5%,
        #0b101a 65%,
        rgba(0, 153, 255, 0.25) 65%, rgba(0, 153, 255, 0.25) 66%,
        #0b101a 66%,
        #0b101a 100%
    );
    border: 2px solid var(--border-dark);
    border-radius: 60px; /* Bordes redondeados imitando la pista */
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    position: relative;
    box-shadow: 
        inset 0 0 50px rgba(0,0,0,0.6),
        0 10px 30px rgba(0,0,0,0.3);
}

/* Filas de posiciones */
.rink-row {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    z-index: 1; /* Para estar encima de las líneas pintadas */
}

.forwards { padding: 0 10%; }
.defense { padding: 0 20%; }
.goalie { padding: 0; }

/* Nodos de Posición Vacíos */
.pos-node {
    width: 80px;
    height: 80px;
    border: 2px solid var(--neon-blue);
    border-radius: 50%;
    background: rgba(19, 26, 38, 0.85); /* var(--card-bg) con un poco de transparencia */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: var(--neon-blue);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efecto rebote */
    box-shadow: 0 0 15px color-mix(in srgb, var(--neon-blue) 15%, transparent);
    backdrop-filter: blur(4px);
}

.pos-label {
    font-size: 1.4rem;
    font-weight: 900;
}

/* Nodos de Posición Rellenados (Jugador adivinado) */
.pos-node.filled {
    border-color: var(--correct-border);
    background: var(--correct-glass);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    text-align: center;
    padding: 5px;
}

.pos-node.filled .pos-label {
    font-size: 0.7rem;
    color: var(--correct-border);
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   ZONA DE CONTROLES (EQUIPO ACTUAL Y BUSCADOR)
   ========================================= */
.controls-area {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 0 auto;
}

/* =========================================
   EQUIPO ACTUAL (ANCLADO EN LA PISTA)
   ========================================= */
.current-challenge {
    position: absolute;
    bottom: 20px; /* Distancia desde abajo */
    left: 20px;   /* Distancia desde la izquierda */
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(19, 26, 38, 0.85); /* Fondo semitransparente oscuro */
    backdrop-filter: blur(5px); /* Efecto cristal para que se vean las líneas de la pista */
    padding: 15px;
    border-radius: 15px;
    border: 2px solid var(--border-dark);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    z-index: 10;
    width: 140px; /* Tamaño compacto */
    text-align: center;
}

/* =========================================
   EQUIPO ACTUAL (ANCLADO EN LA PISTA)
   ========================================= */
.current-challenge {
    position: absolute;
    bottom: 20px; 
    left: 20px;   
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Centramos el contenido dentro del cuadrado */
    background: rgba(19, 26, 38, 0.85); 
    backdrop-filter: blur(5px); 
    padding: 10px;
    border-radius: 12px; /* Un poco menos redondeado para dar sensación de cromo/cuadrado */
    border: 2px solid var(--border-dark);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    z-index: 10;
    width: 125px;  /* Fijamos el ancho */
    height: 125px; /* Fijamos el mismo alto para que sea un cuadrado perfecto */
    text-align: center;
}

/* Ocultamos el texto de "Buscando jugador" sin tocar el HTML */
.challenge-hint {
    display: none;
}

.team-display-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent; 
    border: none;
    box-shadow: none;
    min-width: unset;
    padding: 0;
}

.team-display-card img {
    width: 80px; /* ¡Logo mucho más grande! Ocupará casi todo el cuadrado */
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.2)); 
}

.team-display-card h2 {
    font-size: 0.75rem; /* Un pelín más pequeño para que quepa bien bajo el logo gigante */
    font-weight: 900;
    color: #fff;
    margin: 0;
    line-height: 1.1;
    text-transform: uppercase;
}
/* 2. Autocompletado (Sugerencias) */
/* Eliminamos el estilo anterior de .sugg-logo-team ya que no usaremos <img> */

/* Nuevo estilo para la medalla de posición */
.sugg-pos-badge {
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--neon-blue);
    border-radius: 4px;
    color: var(--neon-blue);
    font-weight: 900;
    font-size: 1.1rem;
    background: color-mix(in srgb, var(--neon-blue) 10%, transparent); /* Fondo sutil azul neón */
}

/* Input y Botón */
.search-container {
    width: 100%;
    display: flex;
    gap: 15px;
}

.autocomplete-wrapper {
    flex-grow: 1;
    position: relative;
}

.btn-secondary {
    background: rgba(255, 51, 102, 0.1);
    border: 2px solid #ff3366;
    color: #ff3366;
    border-radius: 12px;
    padding: 0 25px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #ff3366;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.4);
    transform: translateY(-2px);
}

/* Toast de Error */
.error-toast {
    background: rgba(255, 51, 102, 0.15);
    color: #ff3366;
    border: 1px solid #ff3366;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    width: 100%;
    text-align: center;
    animation: shake 0.4s ease-in-out;
}

/* --- AUTOCOMPLETADO --- */
.autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--card-bg, #131a26);
    border: 1px solid var(--border-dark, #2a3441);
    border-radius: 8px;
    margin-top: 5px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 9999; /* Z-index altísimo para que pase por encima de la pista */
    list-style: none;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.sugg-item {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: white;
    transition: background 0.2s ease;
}

.sugg-item:hover {
    background: color-mix(in srgb, var(--neon-blue) 10%, transparent); /* Efecto hover azul neón */
}

.sugg-logo {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}
/* --- lineup.css --- */

/* El cuadrado principal donde va el jugador */
.pos-node {
    width: 85px; 
    height: 85px;
    border: 2px solid var(--neon-blue);
    border-radius: 14px; /* Cambiado de 50% a 14px para hacerlo un cuadrado suavizado */
    background: rgba(19, 26, 38, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: all 0.4s ease;
}

.pos-node.filled {
    border-color: var(--correct-border);
    background: var(--card-bg);
    padding: 0;
    overflow: visible; 
}

/* EL CUADRADO PEQUEÑO EN LA ESQUINA (NUEVO) */
.pos-label {
    position: absolute;
    top: -8px;    /* Sobresale un poco por arriba */
    left: -8px;   /* Sobresale un poco por la izquierda */
    width: 28px;
    height: 28px;
    background: var(--bg-dark, #0a0e17);
    border: 2px solid var(--neon-blue);
    border-radius: 6px; /* Cuadradito pequeño */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--neon-blue);
    z-index: 5; /* Asegura que quede por encima de la foto */
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* Cambiar de color el cuadradito cuando acertamos */
.pos-node.filled .pos-label {
    border-color: var(--correct-border);
    color: var(--correct-border);
    background: var(--card-bg, #131a26);
}

/* La foto del jugador se adapta al nuevo cuadrado */
.player-photo-rink {
    width: 100%;
    height: 100%;
    border-radius: 12px; /* Borde un pelín más pequeño para encajar perfecto en la caja */
    object-fit: cover;
    border: 1px solid var(--correct-border);
}

.player-name-rink {
    position: absolute;
    top: 100%; 
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    margin-top: 5px;
    line-height: 1.1;
}

/* Ajuste para el logo del equipo en las sugerencias */
.sugg-logo-team {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* =========================================
   HOW TO PLAY / FAQ SECTION (Minimalist)
   ========================================= */

.faq-section {
    width: 100%;
    margin: 2rem 0 0 0;
    padding: 4rem 2rem;
    border-top: 1px solid color-mix(in srgb, var(--neon-blue) 20%, transparent); 
    border-bottom: 1px solid color-mix(in srgb, var(--neon-blue) 20%, transparent);
    background: rgba(13, 17, 26, 0.4); 
    box-sizing: border-box; 
}

.faq-container {
    max-width: 800px; 
    margin: 0 auto;
    text-align: left;
}

.faq-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

.faq-title .accent {
    color: var(--neon-blue); 
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--neon-blue);
    margin-top: 1.8rem;
    margin-bottom: 0.6rem;
    letter-spacing: -0.3px;
}

.faq-answer {
    font-size: 0.95rem;
    color: var(--text-secondary, #8892b0);
    line-height: 1.6;
    margin-bottom: 0;
}

.faq-answer strong {
    color: #fff;
    font-weight: 700;
}

/* =========================================
   AJUSTES PARA MÓVILES (The Lineup)
   ========================================= */
@media (max-width: 768px) {
    /* 1. Arreglar transparencia del autocompletado */
    .suggestions-list {
        background-color: #131a26 !important; /* Forzamos un color sólido oscuro */
        box-shadow: 0 15px 35px rgba(0,0,0,0.9); /* Sombra más fuerte para separarlo del fondo */
    }
    
    .sugg-item {
        background-color: #131a26; /* Color sólido para cada fila */
    }

    /* 2. Encoger el recuadro del equipo para no tapar al portero */
    .current-challenge {
        width: 85px;       /* Mucho más pequeño (antes 125px) */
        height: 85px;      /* Cuadrado perfecto */
        bottom: 15px;      /* Lo pegamos más al borde inferior */
        left: 15px;        /* Lo pegamos más al borde izquierdo */
        padding: 5px;
    }

    .team-display-card img {
        width: 50px;       /* Reducimos el logo */
        height: 50px;
    }

    .team-display-card h2 {
        font-size: 0.6rem; /* Reducimos el texto */
    }
}

/* --- MERCADO DE PASES --- */
.transfer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    width: 100%;
}

.transfer-card {
    background: rgba(20, 26, 38, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-height: 220px;
}

.transfer-card:hover {
    border-color: var(--neon-blue);
    background: color-mix(in srgb, var(--neon-blue) 5%, transparent);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px color-mix(in srgb, var(--neon-blue) 15%, transparent);
}

.transfer-action {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.transfer-team {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 900;
    text-align: center;
    line-height: 1.2;
    margin-bottom: 15px;
}

.transfer-logo {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.transfer-logo img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.transfer-league {
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsivo para móviles */
@media (max-width: 650px) {
    .transfer-grid {
        grid-template-columns: 1fr; /* Una oferta debajo de otra en el móvil */
    }
    .transfer-card {
        min-height: auto;
        padding: 15px;
        flex-direction: row;
        text-align: left;
    }
    .transfer-team { margin-bottom: 0; font-size: 1rem; text-align: left;}
    .transfer-logo img { width: 45px; height: 45px; margin: 0 15px; }
    .transfer-action { margin-bottom: 0; display: block;}
    .transfer-league { font-size: 0.65rem; padding: 3px 8px; }
    
    /* Agrupar textos a la izquierda en móvil */
    .transfer-card > div:not(.transfer-logo) { display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
}
/* ---- ajustes de liga ---- */
:root {
    --neon-blue: var(--accent);
    --neon-blue-glow: var(--accent-glow);
    --bg-color: var(--bg-black);
    --border-dark: #1f2430;
    --neon-pink: #ff0055;
    --neon-pink-glow: rgba(255, 0, 85, 0.4);
}
:root {
    --card-bg: #131a26;
    --bg-dark: #0a0e17;
}
body {
    background-color: var(--bg-black);
    background-image: radial-gradient(circle at top, var(--bg-deep) 0%, var(--bg-black) 70%);
    background-attachment: fixed;
}
/* ---------- The Lineup · ajustes de liga sobre el lineup.css original ---------- */
.game-head { padding-top: 6px; }
.player-photo-rink { background: #1c2230; }
#currentTeamLogo { object-fit: contain; }
.btn-secondary:disabled { opacity: .4; cursor: default; }
.modal-content p strong { color: var(--neon-blue); }
.btn-secondary { white-space: nowrap; }
