:root {
    --neon-blue: #00f2ff;
    --neon-pink: #ff00e5;
    --neon-purple: #7000ff;
    --neon-green: #39ff14;
    --neon-red: #ff3131;
    --dark-bg: #050505;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Rajdhani', sans-serif;
    background: var(--dark-bg) url('background.png') center/cover no-repeat fixed;
    color: white;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
}

#game-box {
    width: 90%;
    max-width: 900px;
    /* Hacemos la caja un poco más ancha */
    background: rgba(0, 0, 0, 0.85);
    border: 3px solid var(--neon-blue);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 0 30px var(--neon-blue);
    text-align: center;
    position: relative;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
}

#game-logo {
    position: fixed;
    top: 20px;
    left: 20px;
    height: 120px;
    z-index: 100;
    filter: drop-shadow(0 0 15px var(--neon-blue));
}

#mute-toggle {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 100;
    text-shadow: 0 0 10px var(--neon-blue);
}

#external-link-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 25px;
    background-color: #333;
    color: #fff;
    border: 2px solid #555;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
}

#external-link-btn:hover {
    background-color: var(--neon-pink);
    border-color: var(--neon-pink);
    color: black;
    box-shadow: 0 0 20px var(--neon-pink);
    transform: scale(1.05);
}

/* --- TEXTOS Y TÍTULOS --- */
.main-title {
    font-family: 'Orbitron';
    font-size: 3.5rem;
    color: var(--neon-blue);
    margin-top: 0;
}

.mode-btn {
    background: transparent;
    border: 2px solid var(--neon-pink);
    color: var(--neon-pink);
    padding: 20px 40px;
    font-family: 'Orbitron';
    font-size: 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    margin: 15px;
    transition: all 0.3s;
}

.mode-btn:hover {
    background: var(--neon-pink);
    color: black;
    box-shadow: 0 0 25px var(--neon-pink);
}

/* Estilo botón estudio */
.study-btn {
    border-color: #ffae00;
    color: #ffae00;
    font-size: 1.2rem;
    padding: 15px 30px;
}

.study-btn:hover {
    background: #ffae00;
    color: black;
    box-shadow: 0 0 25px #ffae00;
}

.difficulty-screen .mode-title {
    font-family: 'Orbitron';
    font-size: 2rem;
}

.difficulty-btn {
    background: var(--neon-purple);
    color: white;
    padding: 15px 40px;
    font-family: 'Orbitron';
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    margin: 10px;
    transition: transform 0.2s;
}

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

.easy-btn {
    background: var(--neon-green);
    color: black;
}

.back-btn {
    background: #444;
    color: white;
    font-size: 0.9rem;
    padding: 8px 20px;
    border-radius: 20px;
    margin-top: 20px;
    cursor: pointer;
    border: none;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.stat-item {
    font-family: 'Orbitron';
    font-size: 1.5rem;
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

.lives-container {
    color: var(--neon-pink);
}

.lives-container i {
    margin-right: 5px;
}

#btn-home {
    font-size: 1.8rem;
    cursor: pointer;
    color: #ccc;
    transition: color 0.2s, transform 0.2s;
}

#btn-home:hover {
    color: white;
    transform: scale(1.1);
}

.timer-container {
    width: 100%;
    height: 15px;
    background: #222;
    border-radius: 10px;
    border: 1px solid #444;
    margin-bottom: 30px;
    overflow: hidden;
}

#timer-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
    box-shadow: 0 0 15px var(--neon-green);
    transition: width 0.1s linear, background 0.3s;
}

#verb-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    border-left: 5px solid var(--neon-pink);
}

/* --- AQUI ESTÁN LOS CAMBIOS PRINCIPALES DE TAMAÑO --- */

#instruction {
    color: var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.8rem;
    /* Aumentado de 1rem a 1.8rem */
    font-weight: bold;
    /* Añadido negrita */
    display: block;
    margin-bottom: 10px;
    line-height: 1.2;
}

#verb-text {
    font-family: 'Orbitron';
    font-size: 3rem;
    letter-spacing: 3px;
    margin: 10px 0;
    display: block;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    /* Más espacio entre botones */
}

.opt-btn {
    background: transparent;
    border: 2px solid var(--neon-purple);
    color: white;
    padding: 20px;
    /* Botones más gordos */
    font-size: 1.5rem;
    /* Aumentado de 1.1rem a 1.5rem */
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.1;
    /* Para que respuestas largas no se separen mucho */
    font-weight: 500;
}

.opt-btn:hover {
    background: var(--neon-purple);
    box-shadow: 0 0 20px var(--neon-purple);
    transform: translateY(-3px);
}

/* --- FIN CAMBIOS PRINCIPALES --- */

.wildcards {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.wild-btn {
    background: rgba(255, 165, 0, 0.2);
    border: 1px solid orange;
    border-radius: 50px;
    cursor: pointer;
    padding: 10px 25px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    color: orange;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    font-size: 1rem;
}

.wild-btn:hover {
    box-shadow: 0 0 15px orange;
    transform: scale(1.05);
}

.wild-btn img {
    height: 24px;
}

.wild-btn.active,
.wild-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.big-btn {
    background: var(--neon-green);
    color: black;
    padding: 20px 40px;
    font-family: 'Orbitron';
    font-size: 1.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    margin: 10px;
}

@keyframes shake {
    0% {
        transform: translateX(0)
    }

    25% {
        transform: translateX(-10px)
    }

    50% {
        transform: translateX(10px)
    }

    75% {
        transform: translateX(-10px)
    }

    100% {
        transform: translateX(0)
    }
}

.error-anim {
    animation: shake 0.4s;
    border-color: var(--neon-red) !important;
}

/* AJUSTES PARA MÓVILES */
@media (max-width: 600px) {
    .opt-btn {
        font-size: 1.2rem;
        padding: 15px;
    }

    /* Un poco más pequeño en móvil para que quepa */
    #instruction {
        font-size: 1.4rem;
    }

    #verb-text {
        font-size: 2.2rem !important;
    }

    .main-title {
        font-size: 2.5rem;
    }

    #game-logo {
        height: 80px;
    }

    #verbs-list-container {
        max-height: 200px;
    }

    .options-grid {
        gap: 10px;
    }
}

/* --- ESTILOS MODO REPASO DE VERBO --- */
.review-box {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #ffae00;
    border-radius: 10px;
    padding: 20px;
    max-height: 40vh;
    /* Altura máxima para permitir scroll */
    overflow-y: auto;
    text-align: left;
    margin-bottom: 20px;
    box-shadow: inset 0 0 10px rgba(255, 174, 0, 0.2);
}

/* Personalizar el scrollbar webkit */
.review-box::-webkit-scrollbar {
    width: 8px;
}

.review-box::-webkit-scrollbar-track {
    background: #222;
    border-radius: 10px;
}

.review-box::-webkit-scrollbar-thumb {
    background: #ffae00;
    border-radius: 10px;
}

.tense-block {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed rgba(255, 174, 0, 0.4);
}

.tense-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tense-title {
    color: #ffae00;
    font-family: 'Orbitron';
    font-size: 1.3rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-shadow: 0 0 5px rgba(255, 174, 0, 0.5);
}

.tense-conjugations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Dos columnas */
    gap: 8px;
    color: white;
    font-size: 1.1rem;
}

.pronoun-text {
    color: #888;
    display: inline-block;
    width: 80px;
    /* Alineación limpia para los pronombres */
    font-size: 1rem;
}

/* Ajuste móvil para el modo repaso */
@media (max-width: 600px) {
    .tense-conjugations {
        grid-template-columns: 1fr;
        /* Una columna en móviles */
    }

    .review-box {
        max-height: 50vh;
    }
}

/* Botón flotante de pantalla completa */
.fullscreen-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 174, 0, 0.2);
    border: 1px solid #ffae00;
    color: #ffae00;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
    z-index: 10;
}

.fullscreen-btn:hover {
    background: #ffae00;
    color: black;
    box-shadow: 0 0 15px #ffae00;
}

/* Ajustes cuando la ventana está en PANTALLA COMPLETA */
#screen-verb-review:fullscreen {
    background: var(--dark-bg) url('background.png') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow-y: auto;
    /* Permite scroll si la tabla es muy larga */
}

/* Ocultar el botón de "Volver" en pantalla completa si quieres una vista limpia (opcional) */
#screen-verb-review:fullscreen .back-btn {
    display: none;
}
