
* {
    box-sizing: border-box;
}
html {
    overflow-y: scroll;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0F1912;
    color: #EDEFEC;

    height: 100vh;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-pagina {
    width: 100%;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 10px 40px;

    background: #1A2B20;
    color: #EDEFEC;
    border-bottom: 1px solid #2A3D30;
}


.marca {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 20px;
    font-weight: 700;
}

.logo-marca {
    font-size: 22px;
}

.nav-principal {
    display: flex;
    gap: 10px;
}

.menu-item {
    position: relative;
}

.menu-btn {
    background: transparent;
    border: none;
    color: #EDEFEC;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.menu-dropdown {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;

    min-width: 200px;

    background: #1A2B20;
    border: 1px solid #2A3D30;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    overflow: hidden;

    z-index: 10;
}

.menu-item:hover .menu-dropdown {
    display: block;
}

.menu-dropdown a {
    display: block;
    padding: 12px 16px;
    color: #EDEFEC;
    text-decoration: none;
    font-size: 14px;
}

.menu-dropdown a:hover {
    background: #24382b;
}

.juego {
    width: 90%;
    max-width: 600px;
    text-align: center;

    flex: 1;
    min-height: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding-top: 0;
}

h1 {
    margin-bottom: 10px;
    color: #EDEFEC;
}


.tarjeta-partido {
    border-radius: 20px;
    border: 1px solid #2A3D30;
    overflow: hidden;

    margin: 10px 0;

    background: #f9faf9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}


.header-liga {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;

    padding: 14px 20px;

    background: linear-gradient(
        135deg,
        #f9faf9 0%,
        #f9faf9 45%,
        var(--color-liga, #3FA873) 45%,
        var(--color-liga, #3FA873) 100%
    );
}

.logo-liga {
    width: 24px;
    height: 24px;
}

#liga {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin: 0;
    color: var(--color-liga, #3FA873);

    white-space: nowrap;
    transform-origin: left center;
}

.partido {
    position: relative;

    display: flex;
    padding: 45px 40px 30px;
    align-items: center;
    justify-content: center;
    gap: 25px;
}


.data {
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    padding: 0 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

#points {
    margin-left: auto;
    color: #fdfffe;
    font-weight: 600;
}

.matchday {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #1A2B20;
}

#fecha {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #8A9690;
    margin: 2px 0;
}


.data p {
    margin: 2px 0;
}

.nombre-equipo {
    font-family: 'Oswald', Arial, sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #1A2B20;
}

#golesLocal{
    border-radius: 20px;
    background: #eeeeee;
    color: #1A2B20;
    border: 1px solid #2A3D30;
}

#golesVisitante{
    border-radius: 20px;
    background: #eeeeee;
    color: #1A2B20;
    border: 1px solid #2A3D30;
}

.equipo {
    width: 180px;
}

.equipo h2 {
    font-size: 24px;
}

.vs {
    font-weight: bold;
    color: #8A9690;
}

.prediccion {
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;

    margin: 15px 0;
}

#guion{
    color: #0F1912;
}

.campo-prediccion {
    position: relative;
}

.badge-prediccion {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);

    font-family: 'Inter', Arial, sans-serif;
    font-size: 8px;
    font-weight: 600;
    color: #8A9690;

    opacity: 0;
    transition: opacity 0.3s ease;
}

.badge-prediccion.visible {
    opacity: 1;
}

.prediccion input {
    width: 70px;
    height: 60px;

    font-size: 30px;
    text-align: center;
}

.prediccion span {
    font-size: 24px;
    white-space: nowrap;
    color: #EDEFEC;
}



.contenedor-botones {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    height: 50px;
}

.contenedor-botones button {
    position: static;
    transform: none;
}

button {
    padding: 12px 30px;

    border: none;
    border-radius: 8px;

    font-size: 18px;
    cursor: pointer;
}

#btnAdivinar {
    background: #3FA873;
    color: #0F1912;

    font-family: 'Oswald', Arial, sans-serif;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.5px;
    text-transform: uppercase;

    padding: 14px 40px;
    border-radius: 10px;

    box-shadow: 0 6px 16px rgba(63, 168, 115, 0.3);

    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

#btnAdivinar:hover {
    background: #4fc186;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(63, 168, 115, 0.35);
}

#btnAdivinar:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(63, 168, 115, 0.3);
}

#btnNextGame {
    background: transparent;
    color: #3FA873;
    border: 2px solid #3FA873;
    white-space: nowrap;

    font-family: 'Oswald', Arial, sans-serif;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.5px;
    text-transform: uppercase;

    padding: 12px 38px;
    border-radius: 10px;

    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

#btnNextGame:hover {
    background: #4fc186;
    color: #0F1912;
    transform: translateY(-2px);
}

#btnNextGame:active {
    transform: translateY(0);
}

#resultado {
    margin-top: 20px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 15px;
    color: #8A9690;
}

#resultado strong {
    color: #EDEFEC;
}

.escudo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 10px;
}


.puntos-overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    pointer-events: none;
}

.punto-grande {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, 0);
    z-index: 2;

    font-family: 'Oswald', Arial, sans-serif;
    font-weight: 700;
    font-size: 90px;
    color: #3FA873;
    text-shadow: 0 4px 20px rgba(63, 168, 115, 0.5);

    opacity: 0;

    animation: puntoGrande 1.2s ease forwards;
}

@keyframes puntoGrande {
    0% {
        opacity: 0;
        transform: translate(-50%, 30px) scale(0.5);
    }
    25% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1.1);
    }
    40% {
        transform: translate(-50%, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -10px) scale(0.6);
    }
}
.punto-chico {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;

    font-family: 'Oswald', Arial, sans-serif;
    font-weight: 700;
    font-size: 26px;
    color: #3FA873;

    opacity: 0;

    animation: puntoChico 1.1s ease-out forwards;
}

@keyframes puntoChico {
    0% {
        opacity: 0;
        transform: translate(-50%, 10px) scale(0.6);
    }
    20% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--dx)), var(--dy)) scale(1);
    }
}


@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(6px); }
}

.prediccion input.incorrecto {
    border-color: #FF7A5C;
    animation: shake 0.4s ease;
}

.prediccion input.correct {
    border-color: #3FA873;
    color: #3FA873;
    font-weight: bold;
}

/* =========================
   PISTAS DE SCOREGUESS
========================= */

.pistas-scoreguess {
    width: 100%;
    max-width: 560px;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;

    margin: 0 0 12px;
    padding: 0 10px;

    align-items: stretch;
}

.pista-sg {
    flex: 1 1 120px;
    max-width: 160px;

    background: #0F1912;
    border: 1px solid #2A3D30;
    border-radius: 12px;
    padding: 10px 8px;

    text-align: center;

    transition: background 0.3s ease, border-color 0.3s ease;
}

.pista-sg-etiqueta {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 11px;
    color: #8A9690;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.pista-sg-valor {
    font-family: 'Oswald', Arial, sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #EDEFEC;
    min-height: 1.4em;
}

.pista-sg.acierto {
    background: #1a4a35;
    border-color: #3FA873;
}

.pista-sg.fallo {
    background: #5c1f1f;
    border-color: #ff5c3d;
}

.pista-sg.neutro {
    background: #4a3a12;
    border-color: #f39c12;
}

.pista-sg.lejos {
    background: #3a3a3a;
    border-color: #888;
}



.pistas-scoreguess {
    align-items: stretch;
}

.pista-sg {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 480px) {

    .header-liga {
        padding: 10px 14px;
        background: linear-gradient(
            135deg,
            #f9faf9 0%,
            #f9faf9 55%,
            var(--color-liga, #3FA873) 55%,
            var(--color-liga, #3FA873) 100%
        );
    }

    .juego {
        padding-top: 30px;
    }

    .pistas-scoreguess {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.pista-sg {
    flex: none;
    max-width: none;
    padding: 8px 6px;
}

    .header-liga {
        padding: 10px 14px;
    }

    .logo-liga {
        width: 20px;
        height: 20px;
    }

    .partido {
        padding: 50px 12px 30px;
        gap: 10px;
    }

    .data {
        padding: 0 12px;
    }

    .matchday {
        font-size: 11px;
    }

    #fecha {
        font-size: 11px;
    }

    .equipo {
        width: 78px;
    }

    .escudo {
        width: 46px;
        height: 46px;
        margin-bottom: 6px;
    }

    .nombre-equipo {
        font-size: 11px;
        letter-spacing: 0.2px;
    }

    .prediccion {
        gap: 8px;
        margin: 20px 0;
    }

    .prediccion input {
        width: 42px;
        height: 48px;
        font-size: 20px;
    }

    .prediccion span {
        font-size: 18px;
    }

    #btnAdivinar {
        padding: 12px 28px;
        font-size: 15px;
    }

    #btnNextGame {
        padding: 10px 26px;
        font-size: 15px;
    }

    .pista-sg {
        flex: 1 1 100px;
        padding: 8px 6px;
    }

    .pista-sg-etiqueta {
        font-size: 10px;
    }

    .pista-sg-valor {
        font-size: 12px;
    }

    #golesLocal{
    border-radius: 14px;
}

#golesVisitante{
    border-radius: 14px;
}

}

.btn-rendirse {
    background: transparent;
    color: #FF7A5C;
    border: 2px solid #FF7A5C;
    padding: 12px 24px;
    border-radius: 10px;

    font-family: 'Oswald', Arial, sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;

    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.btn-rendirse:hover {
    background: #FF7A5C;
    color: #0F1912;
}

.prediccion input.rendido {
    border-color: #FF7A5C;
    color: #FF7A5C;
    font-weight: bold;
}


.overlay-rendirse {
    position: fixed;
    inset: 0;
    z-index: 9999;

    background: radial-gradient(circle, rgba(255, 92, 61, 0.35) 0%, rgba(0, 0, 0, 0.75) 70%);

    opacity: 0;
    pointer-events: none;

    animation: flash-rendirse 0.7s ease-out forwards;
}

@keyframes flash-rendirse {
    0% { opacity: 0; }
    15% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes shake-fuerte {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-10px, 2px); }
    20% { transform: translate(9px, -3px); }
    30% { transform: translate(-8px, 3px); }
    40% { transform: translate(7px, -2px); }
    50% { transform: translate(-6px, 2px); }
    60% { transform: translate(5px, -1px); }
    70% { transform: translate(-4px, 1px); }
    80% { transform: translate(3px, -1px); }
    90% { transform: translate(-2px, 0); }
}

.tarjeta-juego.rendirse-shake,
.tarjeta-partido.rendirse-shake {
    animation: shake-fuerte 0.5s ease-in-out;
}

.indicador-partido {
    font-family: 'Oswald', Arial, sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #8A9690;
    text-align: center;
    margin: 0 0 10px;
}


.escala-puntos {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 10px;
}

.chip-punto {
    width: 26px;
    height: 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    border: 2px solid #2A3D30;
    background: #0F1912;

    font-family: 'Oswald', Arial, sans-serif;
    font-weight: 700;
    font-size: 11px;
    color: #8A9690;

    transition: all 0.25s ease;
}

.chip-punto.usado {
    opacity: 0.3;
    border-color: #2A3D30;
    color: #8A9690;
    transform: scale(0.85);
}

.chip-punto.actual {
    border-color: #3FA873;
    background: rgba(63, 168, 115, 0.15);
    color: #3FA873;
    transform: scale(1.15);
    box-shadow: 0 0 8px rgba(63, 168, 115, 0.4);
}

.chip-punto.ganador {
    border-color: #3FA873;
    background: #3FA873;
    color: #0F1912;
    transform: scale(1.25);
    box-shadow: 0 0 12px rgba(63, 168, 115, 0.6);
}