
    .nexoia-tresraya {
        width: 100%;
        max-width: 700px;
        margin: 20px auto;
        font-family: Arial, Helvetica, sans-serif;
        color: #212529;
    }
    /* ================================================================
   TARJETA
   ================================================================ */
    .nexoia-tresraya-card {
        background: #fff;
        border: 1px solid #e1e5e9;
        border-radius: 18px;
        overflow: hidden;
        box-shadow:
            0 8px 30px rgba(0, 0, 0, .10);
    }
    /* ================================================================
   CABECERA
   ================================================================ */
    .nexoia-tresraya-header {
        background:
            linear-gradient(135deg,
                #0d6efd,
                #084298);
        color: #fff;
        text-align: center;
        padding: 25px;
    }
    .nexoia-tresraya-header h2 {
        margin:
            0 0 8px;
        font-size: 28px;
    }
    .nexoia-tresraya-header p {
        margin: 0;
        opacity: .9;
    }
    /* ================================================================
   CONTENIDO
   ================================================================ */
    .nexoia-tresraya-content {
        padding: 25px;
    }
    /* ================================================================
   CONTROLES
   ================================================================ */
    .nexoia-tresraya-controls {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 20px;
    }
    .nexoia-tresraya-select {
        border:
            1px solid #ced4da;
        border-radius: 8px;
        padding:
            10px 14px;
        font-size: 14px;
        background: #fff;
    }
    .nexoia-tresraya-btn {
        border: 0;
        border-radius: 9px;
        padding:
            10px 17px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: .2s;
    }
    .nexoia-tresraya-btn:hover {
        transform:
            translateY(-1px);
    }
    .nexoia-tresraya-btn-primary {
        background: #0d6efd;
        color: #fff;
    }
    /* ================================================================
   MARCADOR
   ================================================================ */
    .nexoia-tresraya-score {
        display: grid;
        grid-template-columns:
            repeat(3, 1fr);
        gap: 10px;
        margin-bottom: 20px;
    }
    .nexoia-tresraya-score-box {
        background: #f8f9fa;
        border-radius: 10px;
        text-align: center;
        padding: 12px;
    }
    .nexoia-tresraya-score-label {
        display: block;
        font-size: 12px;
        color: #6c757d;
    }
    .nexoia-tresraya-score-value {
        display: block;
        font-size: 24px;
        font-weight: bold;
        margin-top: 3px;
    }
    /* ================================================================
   ESTADO
   ================================================================ */
    .nexoia-tresraya-status {
        text-align: center;
        font-size: 18px;
        font-weight: 600;
        min-height: 28px;
        margin-bottom: 18px;
    }
    /* ================================================================
   TABLERO
   ================================================================ */
    /* Tablero cuadrado y fijo: filas y columnas de un tercio exacto, sea cual sea el
       contenido, y la letra proporcional al ancho del tablero (unidades cqi). Antes las
       filas eran «auto» y crecían al poner una X o una O. */
    .nexoia-tresraya-board {
        width: min(100%, 450px);
        aspect-ratio: 1;
        margin:
            0 auto 25px;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: repeat(3, minmax(0, 1fr));
        gap: 7px;
        background: #212529;
        border:
            7px solid #212529;
        border-radius: 15px;
        box-sizing: border-box;
        overflow: hidden;
        container-type: inline-size;
    }
    .nexoia-tresraya-cell {
        background: #fff;
        border: 0;
        padding: 0;
        margin: 0;
        min-width: 0;
        min-height: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        line-height: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: inherit;
        font-size: clamp(32px, 15vw, 100px);
        font-size: 21cqi;
        font-weight: 800;
        appearance: none;
        -webkit-appearance: none;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        color: #212529;
        cursor: pointer;
        user-select: none;
        transition:
            background .15s,
            transform .1s;
    }
    .nexoia-tresraya-cell:hover {
        background: #f1f3f5;
    }
    .nexoia-tresraya-cell:active {
        transform:
            scale(.96);
    }
    .nexoia-tresraya-cell.x {
        color: #0d6efd;
    }
    .nexoia-tresraya-cell.o {
        color: #dc3545;
    }
    .nexoia-tresraya-cell.winner {
        background: #d1e7dd;
    }
    /* ================================================================
   MENSAJE FINAL
   ================================================================ */
    .nexoia-tresraya-result {
        display: none;
        text-align: center;
        padding: 15px;
        margin-top: 5px;
        border-radius: 12px;
        background: #f8f9fa;
    }
    .nexoia-tresraya-result-icon {
        font-size: 50px;
    }
    .nexoia-tresraya-result h3 {
        margin:
            8px 0;
        font-size: 25px;
    }
    .nexoia-tresraya-help {
        text-align: center;
        color: #6c757d;
        font-size: 13px;
        margin-top: 10px;
    }
    @media(max-width:600px) {
        .nexoia-tresraya-content {
            padding: 15px;
        }
        .nexoia-tresraya-controls {
            flex-direction: column;
        }
        .nexoia-tresraya-select,
        .nexoia-tresraya-btn {
            width: 100%;
        }
    }
