
    /* ================================================================
   CONTENEDOR PRINCIPAL
   ================================================================ */
    .nexoia-math-game {
        width: 100%;
        max-width: 850px;
        margin: 20px auto;
        font-family: Arial, Helvetica, sans-serif;
        color: #212529;
    }
    /* ================================================================
   TARJETA
   ================================================================ */
    .nexoia-game-card {
        background: #ffffff;
        border-radius: 18px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
        overflow: hidden;
        border: 1px solid #e9ecef;
    }
    /* ================================================================
   CABECERA
   ================================================================ */
    .nexoia-game-header {
        background: linear-gradient(135deg, #1f6feb, #1557b0);
        color: white;
        padding: 25px;
        text-align: center;
    }
    .nexoia-game-header h2 {
        margin: 0 0 8px 0;
        font-size: 28px;
        font-weight: 700;
    }
    .nexoia-game-header p {
        margin: 0;
        opacity: 0.90;
        font-size: 15px;
    }
    /* ================================================================
   CONTENIDO
   ================================================================ */
    .nexoia-game-content {
        padding: 30px;
    }
    /* ================================================================
   PANTALLA INICIAL
   ================================================================ */
    .nexoia-start-screen {
        text-align: center;
    }
    .nexoia-start-icon {
        font-size: 65px;
        margin-bottom: 10px;
    }
    .nexoia-start-screen h3 {
        margin: 10px 0;
        font-size: 24px;
    }
    .nexoia-start-screen p {
        color: #6c757d;
        margin-bottom: 25px;
    }
    /* ================================================================
   NIVELES
   ================================================================ */
    .nexoia-levels {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin: 25px 0;
    }
    .nexoia-level {
        border: 2px solid #dee2e6;
        border-radius: 12px;
        padding: 18px 10px;
        cursor: pointer;
        transition: all 0.2s ease;
        background: #ffffff;
    }
    .nexoia-level:hover {
        transform: translateY(-2px);
        border-color: #1f6feb;
        box-shadow: 0 5px 15px rgba(31, 111, 235, 0.12);
    }
    .nexoia-level.selected {
        border-color: #1f6feb;
        background: #eef5ff;
    }
    .nexoia-level-icon {
        font-size: 30px;
        margin-bottom: 8px;
    }
    .nexoia-level-title {
        font-weight: bold;
        font-size: 16px;
    }
    .nexoia-level-description {
        font-size: 13px;
        color: #6c757d;
        margin-top: 5px;
    }
    /* ================================================================
   BOTONES
   ================================================================ */
    .nexoia-btn {
        border: none;
        border-radius: 10px;
        padding: 13px 25px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    .nexoia-btn:hover {
        transform: translateY(-1px);
    }
    .nexoia-btn-primary {
        background: #1f6feb;
        color: white;
    }
    .nexoia-btn-primary:hover {
        background: #1557b0;
    }
    .nexoia-btn-success {
        background: #198754;
        color: white;
    }
    .nexoia-btn-secondary {
        background: #6c757d;
        color: white;
    }
    /* ================================================================
   ZONA DEL JUEGO
   ================================================================ */
    .nexoia-game-screen {
        display: none;
    }
    .nexoia-game-info {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        margin-bottom: 25px;
    }
    .nexoia-info-box {
        background: #f8f9fa;
        border-radius: 10px;
        padding: 12px 8px;
        text-align: center;
    }
    .nexoia-info-label {
        display: block;
        font-size: 12px;
        color: #6c757d;
        margin-bottom: 4px;
    }
    .nexoia-info-value {
        display: block;
        font-size: 20px;
        font-weight: bold;
    }
    /* ================================================================
   PROGRESO
   ================================================================ */
    .nexoia-progress-container {
        margin-bottom: 30px;
    }
    .nexoia-progress-bar {
        width: 100%;
        height: 10px;
        background: #e9ecef;
        border-radius: 20px;
        overflow: hidden;
    }
    .nexoia-progress {
        width: 0%;
        height: 100%;
        background: #1f6feb;
        border-radius: 20px;
        transition: width 0.3s ease;
    }
    /* ================================================================
   OPERACIÓN
   ================================================================ */
    .nexoia-operation {
        text-align: center;
        margin: 30px 0;
    }
    .nexoia-operation-label {
        font-size: 14px;
        color: #6c757d;
        margin-bottom: 15px;
    }
    .nexoia-operation-number {
        font-size: 60px;
        font-weight: 700;
        letter-spacing: 2px;
        margin-bottom: 25px;
    }
    /* ================================================================
   RESPUESTA
   ================================================================ */
    .nexoia-answer-area {
        max-width: 350px;
        margin: auto;
    }
    .nexoia-answer-input {
        width: 100%;
        box-sizing: border-box;
        padding: 16px;
        border: 2px solid #ced4da;
        border-radius: 10px;
        font-size: 28px;
        text-align: center;
        outline: none;
        transition: border-color 0.2s ease;
    }
    .nexoia-answer-input:focus {
        border-color: #1f6feb;
    }
    .nexoia-answer-input.correct {
        border-color: #198754;
        background: #eaf7ef;
    }
    .nexoia-answer-input.incorrect {
        border-color: #dc3545;
        background: #fff0f1;
    }
    .nexoia-submit {
        width: 100%;
        margin-top: 12px;
    }
    /* ================================================================
   MENSAJE
   ================================================================ */
    .nexoia-feedback {
        min-height: 28px;
        margin-top: 15px;
        font-size: 17px;
        font-weight: 600;
        text-align: center;
    }
    .nexoia-feedback.correct {
        color: #198754;
    }
    .nexoia-feedback.incorrect {
        color: #dc3545;
    }
    /* ================================================================
   PANTALLA FINAL
   ================================================================ */
    .nexoia-result-screen {
        display: none;
        text-align: center;
    }
    .nexoia-result-icon {
        font-size: 70px;
    }
    .nexoia-result-screen h3 {
        font-size: 30px;
        margin: 10px 0;
    }
    .nexoia-final-score {
        font-size: 55px;
        font-weight: bold;
        color: #1f6feb;
        margin: 20px 0;
    }
    .nexoia-result-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin: 25px 0;
    }
    .nexoia-result-stat {
        background: #f8f9fa;
        border-radius: 12px;
        padding: 18px 10px;
    }
    .nexoia-result-stat strong {
        display: block;
        font-size: 25px;
    }
    .nexoia-result-stat span {
        display: block;
        font-size: 13px;
        color: #6c757d;
        margin-top: 5px;
    }
    /* ================================================================
   ANIMACIONES
   ================================================================ */
    @keyframes nexoiaShake {
        0% {
            transform: translateX(0);
        }
        25% {
            transform: translateX(-7px);
        }
        50% {
            transform: translateX(7px);
        }
        75% {
            transform: translateX(-7px);
        }
        100% {
            transform: translateX(0);
        }
    }
    .nexoia-shake {
        animation: nexoiaShake 0.3s ease;
    }
    @keyframes nexoiaPop {
        0% {
            transform: scale(0.9);
            opacity: 0.5;
        }
        100% {
            transform: scale(1);
            opacity: 1;
        }
    }
    .nexoia-pop {
        animation: nexoiaPop 0.25s ease;
    }
    /* ================================================================
   RESPONSIVE
   ================================================================ */
    @media (max-width: 650px) {
        .nexoia-game-content {
            padding: 20px;
        }
        .nexoia-levels {
            grid-template-columns: 1fr;
        }
        .nexoia-game-info {
            grid-template-columns: repeat(2, 1fr);
        }
        .nexoia-operation-number {
            font-size: 45px;
        }
        .nexoia-result-stats {
            grid-template-columns: 1fr;
        }
    }
