
    .nexoia-sudoku-game {
        width: 100%;
        max-width: 850px;
        margin: 20px auto;
        font-family: Arial, Helvetica, sans-serif;
        color: #212529;
    }
    .nexoia-sudoku-card {
        background: #fff;
        border: 1px solid #e2e5e9;
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 8px 30px rgba(0, 0, 0, .10);
    }
    .nexoia-sudoku-header {
        background: linear-gradient(135deg, #198754, #146c43);
        color: white;
        text-align: center;
        padding: 25px;
    }
    .nexoia-sudoku-header h2 {
        margin: 0 0 8px;
        font-size: 28px;
    }
    .nexoia-sudoku-header p {
        margin: 0;
        opacity: .9;
    }
    .nexoia-sudoku-content {
        padding: 25px;
    }
    /* ================================================================
   CONTROLES
   ================================================================ */
    .nexoia-sudoku-controls {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 20px;
    }
    .nexoia-sudoku-select {
        border: 1px solid #ced4da;
        border-radius: 8px;
        padding: 10px 14px;
        font-size: 15px;
        background: white;
    }
    .nexoia-sudoku-btn {
        border: 0;
        border-radius: 9px;
        padding: 10px 17px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: .2s;
    }
    .nexoia-sudoku-btn:hover {
        transform: translateY(-1px);
    }
    .nexoia-sudoku-btn-primary {
        background: #198754;
        color: white;
    }
    .nexoia-sudoku-btn-secondary {
        background: #6c757d;
        color: white;
    }
    .nexoia-sudoku-btn-warning {
        background: #ffc107;
        color: #212529;
    }
    /* ================================================================
   INFORMACIÓN
   ================================================================ */
    .nexoia-sudoku-info {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        margin-bottom: 20px;
    }
    .nexoia-sudoku-info-box {
        background: #f8f9fa;
        border-radius: 10px;
        padding: 10px;
        text-align: center;
    }
    .nexoia-sudoku-info-label {
        display: block;
        font-size: 11px;
        color: #6c757d;
    }
    .nexoia-sudoku-info-value {
        display: block;
        font-size: 19px;
        font-weight: bold;
        margin-top: 3px;
    }
    /* ================================================================
   TABLERO
   ================================================================ */
    .nexoia-sudoku-board-container {
        display: flex;
        justify-content: center;
        margin: 10px 0 25px;
    }
    .nexoia-sudoku-board {
        display: grid;
        grid-template-columns: repeat(9, 1fr);
        width: min(90vw, 540px);
        aspect-ratio: 1;
        border: 3px solid #212529;
        background: #212529;
        gap: 1px;
    }
    .nexoia-sudoku-cell {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        background: white;
        font-size: clamp(19px, 4vw, 30px);
        font-weight: 600;
        cursor: pointer;
        user-select: none;
    }
    .nexoia-sudoku-cell:nth-child(3n) {
        border-right: 2px solid #212529;
    }
    .nexoia-sudoku-cell:nth-child(9n) {
        border-right: 0;
    }
    /*
 * Bordes de las cajas 3x3.
 */
    .nexoia-sudoku-cell.box-bottom {
        border-bottom: 2px solid #212529;
    }
    .nexoia-sudoku-cell.box-right {
        border-right: 2px solid #212529;
    }
    .nexoia-sudoku-cell.fixed {
        background: #e9ecef;
        color: #212529;
        cursor: default;
    }
    .nexoia-sudoku-cell.selected {
        background: #d1e7dd;
    }
    .nexoia-sudoku-cell.related {
        background: #f1f8f4;
    }
    .nexoia-sudoku-cell.same-number {
        background: #cfe2ff;
    }
    .nexoia-sudoku-cell.error {
        background: #f8d7da;
        color: #842029;
    }
    .nexoia-sudoku-cell.correct {
        color: #198754;
    }
    /* ================================================================
   MENSAJE
   ================================================================ */
    .nexoia-sudoku-message {
        min-height: 28px;
        text-align: center;
        font-weight: 600;
        margin: 10px 0;
    }
    .nexoia-sudoku-message.success {
        color: #198754;
    }
    .nexoia-sudoku-message.error {
        color: #dc3545;
    }
    /* ================================================================
   TECLADO
   ================================================================ */
    .nexoia-sudoku-keyboard {
        display: grid;
        grid-template-columns: repeat(10, 1fr);
        gap: 7px;
        max-width: 540px;
        margin: 0 auto;
    }
    .nexoia-sudoku-key {
        border: 1px solid #ced4da;
        background: white;
        border-radius: 8px;
        padding: 10px 4px;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
    }
    .nexoia-sudoku-key:hover {
        background: #f1f3f5;
    }
    .nexoia-sudoku-key.erase {
        background: #f8d7da;
        color: #842029;
    }
    /* ================================================================
   AYUDA
   ================================================================ */
    .nexoia-sudoku-help {
        text-align: center;
        color: #6c757d;
        font-size: 13px;
        margin-top: 15px;
    }
    /* ================================================================
   VICTORIA
   ================================================================ */
    .nexoia-sudoku-win {
        display: none;
        text-align: center;
        padding: 20px 0;
    }
    .nexoia-sudoku-win-icon {
        font-size: 70px;
    }
    .nexoia-sudoku-win h3 {
        font-size: 28px;
        margin: 10px 0;
    }
    .nexoia-sudoku-final-score {
        font-size: 45px;
        font-weight: bold;
        color: #198754;
        margin: 15px 0;
    }
    @media(max-width:600px) {
        .nexoia-sudoku-content {
            padding: 15px;
        }
        .nexoia-sudoku-info {
            grid-template-columns: repeat(2, 1fr);
        }
        .nexoia-sudoku-controls {
            flex-direction: column;
        }
        .nexoia-sudoku-select,
        .nexoia-sudoku-btn {
            width: 100%;
        }
        .nexoia-sudoku-keyboard {
            grid-template-columns: repeat(5, 1fr);
        }
    }
