
    /* ================================================================
       CONTENEDOR GENERAL
       ================================================================ */
    .nexoia-fraction-game {
        width: 100%;
        max-width: 900px;
        margin: 20px auto;
        font-family: Arial, Helvetica, sans-serif;
        color: #212529;
    }
    .nexoia-fraction-card {
        background: #ffffff;
        border-radius: 18px;
        overflow: hidden;
        border: 1px solid #e5e7eb;
        box-shadow: 0 8px 30px rgba(0, 0, 0, .10);
    }
    /* ================================================================
       CABECERA
       ================================================================ */
    .nexoia-fraction-header {
        background: linear-gradient(135deg,
                #6f42c1,
                #4f2d8f);
        color: white;
        text-align: center;
        padding: 25px;
    }
    .nexoia-fraction-header h2 {
        margin: 0 0 8px 0;
        font-size: 28px;
    }
    .nexoia-fraction-header p {
        margin: 0;
        opacity: .9;
    }
    .nexoia-fraction-content {
        padding: 30px;
    }
    /* ================================================================
       PANTALLA INICIAL
       ================================================================ */
    .nexoia-fraction-start {
        text-align: center;
    }
    .nexoia-fraction-icon {
        font-size: 65px;
        margin-bottom: 10px;
    }
    .nexoia-fraction-start h3 {
        margin: 10px 0;
        font-size: 25px;
    }
    .nexoia-fraction-start p {
        color: #6c757d;
        margin-bottom: 25px;
    }
    /* ================================================================
       MODOS
       ================================================================ */
    .nexoia-fraction-modes {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin: 25px 0;
    }
    .nexoia-fraction-mode {
        border: 2px solid #dee2e6;
        border-radius: 12px;
        padding: 18px 10px;
        cursor: pointer;
        transition: .2s;
        background: white;
    }
    .nexoia-fraction-mode:hover {
        border-color: #6f42c1;
        transform: translateY(-2px);
    }
    .nexoia-fraction-mode.selected {
        border-color: #6f42c1;
        background: #f5f0ff;
    }
    .nexoia-fraction-mode-icon {
        font-size: 30px;
        margin-bottom: 8px;
    }
    .nexoia-fraction-mode-title {
        font-weight: bold;
    }
    .nexoia-fraction-mode-description {
        font-size: 13px;
        color: #6c757d;
        margin-top: 5px;
    }
    /* ================================================================
       REPRESENTACIONES
       ================================================================ */
    .nexoia-fraction-representation-title {
        margin-top: 30px;
        margin-bottom: 12px;
        font-weight: bold;
    }
    .nexoia-fraction-representations {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
        margin-bottom: 25px;
    }
    .nexoia-fraction-representation {
        border: 2px solid #dee2e6;
        background: #ffffff;
        border-radius: 10px;
        padding: 10px 5px;
        cursor: pointer;
        transition: .2s;
        font-size: 13px;
    }
    .nexoia-fraction-representation:hover {
        border-color: #6f42c1;
        transform: translateY(-1px);
    }
    .nexoia-fraction-representation.selected {
        border-color: #6f42c1;
        background: #f5f0ff;
    }
    .nexoia-fraction-representation-icon {
        display: block;
        font-size: 24px;
        margin-bottom: 4px;
    }
    /* ================================================================
       BOTONES
       ================================================================ */
    .nexoia-fraction-btn {
        border: 0;
        border-radius: 10px;
        padding: 13px 25px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: .2s;
    }
    .nexoia-fraction-btn:hover {
        transform: translateY(-1px);
    }
    .nexoia-fraction-btn-primary {
        background: #6f42c1;
        color: white;
    }
    .nexoia-fraction-btn-primary:hover {
        background: #56339a;
    }
    /* ================================================================
       JUEGO
       ================================================================ */
    .nexoia-fraction-game-screen {
        display: none;
    }
    .nexoia-fraction-info {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        margin-bottom: 25px;
    }
    .nexoia-fraction-info-box {
        background: #f8f9fa;
        border-radius: 10px;
        padding: 12px 8px;
        text-align: center;
    }
    .nexoia-fraction-info-label {
        display: block;
        font-size: 12px;
        color: #6c757d;
    }
    .nexoia-fraction-info-value {
        display: block;
        font-size: 20px;
        font-weight: bold;
        margin-top: 4px;
    }
    /* ================================================================
       PROGRESO
       ================================================================ */
    .nexoia-fraction-progress-container {
        margin-bottom: 30px;
    }
    .nexoia-fraction-progress-bar {
        height: 10px;
        background: #e9ecef;
        border-radius: 20px;
        overflow: hidden;
    }
    .nexoia-fraction-progress {
        width: 0;
        height: 100%;
        background: #6f42c1;
        transition: width .3s;
    }
    /* ================================================================
       PREGUNTA
       ================================================================ */
    .nexoia-fraction-question {
        text-align: center;
        margin: 25px 0;
    }
    .nexoia-fraction-question-title {
        font-size: 16px;
        color: #6c757d;
        margin-bottom: 20px;
    }
    .nexoia-fraction-display {
        font-size: 52px;
        font-weight: bold;
        margin: 20px 0;
    }
    /* ================================================================
       FRACCIÓN
       ================================================================ */
    .nexoia-frac {
        display: inline-flex;
        flex-direction: column;
        vertical-align: middle;
        line-height: 1;
        text-align: center;
        min-width: 55px;
    }
    .nexoia-frac-top {
        border-bottom: 3px solid currentColor;
        padding: 0 8px 5px;
    }
    .nexoia-frac-bottom {
        padding: 5px 8px 0;
    }
    /* ================================================================
       ÁREA VISUAL
       ================================================================ */
    .nexoia-fraction-visual {
        max-width: 620px;
        margin: 30px auto;
        min-height: 160px;
    }
    /* ================================================================
       BARRA
       ================================================================ */
    .nexoia-fraction-bar {
        display: flex;
        width: 100%;
        height: 55px;
        border: 2px solid #343a40;
        border-radius: 9px;
        overflow: hidden;
        background: #f1f3f5;
        box-shadow:
            0 2px 5px rgba(0, 0, 0, .08);
    }
    .nexoia-fraction-piece {
        flex: 1;
        background: #f1f3f5;
        border-right: 2px solid #d1d5db;
        transition: background .25s;
    }
    .nexoia-fraction-piece:last-child {
        border-right: 0;
    }
    .nexoia-fraction-piece.filled {
        background: #6f42c1;
        border-right-color: #ffffff;
    }
    /* ================================================================
       SVG
       ================================================================ */
    .nexoia-fraction-svg {
        display: block;
        width: 100%;
        max-width: 330px;
        height: 300px;
        margin: 0 auto;
    }
    .nexoia-fraction-svg .piece-empty {
        fill: #f1f3f5;
        stroke: #b8bec5;
        stroke-width: 1.5;
    }
    .nexoia-fraction-svg .piece-filled {
        fill: #6f42c1;
        stroke: #ffffff;
        stroke-width: 1.5;
    }
    .nexoia-fraction-svg .shape-outline {
        fill: none;
        stroke: #343a40;
        stroke-width: 3;
    }
    /* ================================================================
       LEYENDA
       ================================================================ */
    .nexoia-fraction-legend {
        margin-top: 14px;
        font-size: 15px;
        color: #6c757d;
        font-weight: 500;
    }
    .nexoia-fraction-legend strong {
        color: #6f42c1;
    }
    /* ================================================================
       OPCIONES
       ================================================================ */
    .nexoia-fraction-options {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        max-width: 600px;
        margin: 25px auto;
    }
    .nexoia-fraction-option {
        padding: 16px;
        background: white;
        border: 2px solid #dee2e6;
        border-radius: 10px;
        font-size: 24px;
        font-weight: bold;
        cursor: pointer;
        transition: .2s;
    }
    .nexoia-fraction-option:hover {
        border-color: #6f42c1;
        background: #f5f0ff;
    }
    .nexoia-fraction-option.correct {
        border-color: #198754;
        background: #eaf7ef;
    }
    .nexoia-fraction-option.incorrect {
        border-color: #dc3545;
        background: #fff0f1;
    }
    .nexoia-fraction-option:disabled {
        cursor: default;
    }
    /* ================================================================
       FEEDBACK
       ================================================================ */
    .nexoia-fraction-feedback {
        min-height: 30px;
        text-align: center;
        font-size: 17px;
        font-weight: bold;
        margin-top: 15px;
    }
    .nexoia-fraction-feedback.correct {
        color: #198754;
    }
    .nexoia-fraction-feedback.incorrect {
        color: #dc3545;
    }
    /* ================================================================
       RESULTADO
       ================================================================ */
    .nexoia-fraction-result {
        display: none;
        text-align: center;
    }
    .nexoia-fraction-result-icon {
        font-size: 70px;
    }
    .nexoia-fraction-result h3 {
        font-size: 30px;
    }
    .nexoia-fraction-final-score {
        font-size: 55px;
        font-weight: bold;
        color: #6f42c1;
        margin: 20px 0;
    }
    .nexoia-fraction-result-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin: 25px 0;
    }
    .nexoia-fraction-result-stat {
        background: #f8f9fa;
        padding: 18px;
        border-radius: 12px;
    }
    .nexoia-fraction-result-stat strong {
        display: block;
        font-size: 25px;
    }
    .nexoia-fraction-result-stat span {
        display: block;
        color: #6c757d;
        font-size: 13px;
        margin-top: 5px;
    }
    /* ================================================================
       RESPONSIVE
       ================================================================ */
    @media(max-width: 700px) {
        .nexoia-fraction-content {
            padding: 20px;
        }
        .nexoia-fraction-modes {
            grid-template-columns: 1fr;
        }
        .nexoia-fraction-representations {
            grid-template-columns: repeat(2, 1fr);
        }
        .nexoia-fraction-info {
            grid-template-columns: repeat(2, 1fr);
        }
        .nexoia-fraction-options {
            grid-template-columns: 1fr;
        }
        .nexoia-fraction-display {
            font-size: 42px;
        }
        .nexoia-fraction-result-stats {
            grid-template-columns: 1fr;
        }
        .nexoia-fraction-svg {
            height: 260px;
        }
    }
